Workaround PR68256 on AArch64
[gcc.git] / gcc / ChangeLog
1 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2
3 PR bootstrap/68256
4 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5 Return false.
6
7 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
8
9 PR target/57845
10 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
11 not promote the mode for aggregate types.
12
13 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
14
15 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
16 * omp-low.c (build_oacc_routine_dims): New.
17
18 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19
20 * config/rs6000/constraints.md (wF constraint): New constraints
21 for power9/toc fusion.
22 (wG constraint): Likewise.
23
24 * config/rs6000/predicates.md (u6bit_cint_operand): New
25 predicate, recognize 0..63.
26 (upper16_cint_operand): New predicate for power9 and toc fusion.
27 (fpr_reg_operand): Likewise.
28 (toc_fusion_or_p9_reg_operand): Likewise.
29 (toc_fusion_mem_raw): Likewise.
30 (toc_fusion_mem_wrapped): Likewise.
31 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
32 address range.
33 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
34 instead.
35 (fusion_addis_mem_combo_load): Add support for power9 fusion of
36 floating point loads, floating point stores, and gpr stores.
37 (fusion_addis_mem_combo_store): Likewise.
38 (fusion_offsettable_mem_operand): Likewise.
39
40 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
41 declarations.
42 (emit_fusion_load_store): Likewise.
43 (fusion_p9_p): Likewise.
44 (expand_fusion_p9_load): Likewise.
45 (expand_fusion_p9_store): Likewise.
46 (emit_fusion_p9_load): Likewise.
47 (emit_fusion_p9_store): Likewise.
48 (fusion_wrap_memory_address): Likewise.
49
50 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
51 elements for power9 fusion.
52 (rs6000_debug_print_mode): Rework debug information to print more
53 information about fusion.
54 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
55 support.
56 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
57 offsettable memory address.
58 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
59 (emit_fusion_gpr_load): Move most of the code from
60 emit_fusion_gpr_load into emit_fusion-addis that handles both
61 power8 and power9 fusion.
62 (emit_fusion_addis): Likewise.
63 (emit_fusion_load_store): Likewise.
64 (fusion_wrap_memory_address): Add support for TOC fusion.
65 (fusion_split_address): Likewise.
66 (fusion_p9_p): Add support for power9 fusion.
67 (expand_fusion_p9_load): Likewise.
68 (expand_fusion_p9_store): Likewise.
69 (emit_fusion_p9_load): Likewise.
70 (emit_fusion_p9_store): Likewise.
71
72 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
73 new instructions in ISA 3.0.
74 (TARGET_CTZ): Likewise.
75 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
76 (TARGET_TOC_FUSION_FP): Likewise.
77
78 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
79 fusion unspecs.
80 (UNSPEC_FUSION_ADDIS): Likewise.
81 (QHSI mode iterator): New iterator for power9 fusion.
82 (GPR_FUSION): Likewise.
83 (FPR_FUSION): Likewise.
84 (mod<mode>3): Add support for ISA 3.0
85 modulus instructions.
86 (umod<mode>3): Likewise.
87 (divmod peephole): Likewise.
88 (udivmod peephole): Likewise.
89 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
90 instructions.
91 (ctz<mode>2_h): Likewise.
92 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
93 (ashdi3_extswsli_dot): Likewise.
94 (ashdi3_extswsli_dot2): Likewise.
95 (power9 fusion splitter): New power9/toc fusion support.
96 (toc_fusionload_<mode>): Likewise.
97 (toc_fusionload_di): Likewise.
98 (fusion_gpr_load_<mode>): Update predicate function.
99 (power9 fusion peephole2s): New power9/toc fusion support.
100 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
101 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
102 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
103 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
104 (fusion_p9_<mode>_constant): Likewise.
105
106 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
107
108 * optabs.c (prepare_libcall_arg): New function.
109 (expand_fixed_convert): Add call to prepare_libcall_arg.
110
111 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
112
113 * sched-int.h (dump_rgn_dependencies_dot): Declare
114 * sched-rgn.c (dump_rgn_dependencies_dot): New function
115 * print-rtl.h (print_insn): Add prototype
116
117 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
118 * common.opt (-fsched-verbose): Set default value to 1.
119 * invoke.texi (-fsched-verbose): Update the option's description.
120
121 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
122
123 * config/visium/visium.h (PRINT_OPERAND): Delete.
124 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
125 (PRINT_OPERAND_ADDRESS): Likewise.
126 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
127 to...
128 (visium_print_operand_punct_valid_p): ...this. New function.
129 (TARGET_PRINT_OPERAND): Define to...
130 (print_operand): Rename to...
131 (visium_print_operand): ...this.
132 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
133 (visium_output_address): Rename to...
134 (visium_print_operand_address): ...this.
135 (print_operand_address): Delete.
136
137 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
138
139 PR middle-end/68259
140 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
141 Check that the type of the first operand is an aggregate type.
142
143 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
144
145 * omp-low.c: Fix some OpenACC comment typos.
146 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
147 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
148 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
149
150 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
151
152 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
153
154 2015-11-09 Jeff Law <law@redhat.com>
155
156 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
157 being in gimple/ssa form. Remove redundant check for SSA_NAME.
158 Fix comment typo.
159
160 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
161
162 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
163 ISA 3.0 (power9).
164 (-mpower9-vector): Likewise.
165 (-mpower9-dform): Likewise.
166 (-mpower9-minmax): Likewise.
167 (-mtoc-fusion): Likewise.
168 (-mmodulo): Likewise.
169 (-mfloat128-hardware): Likewise.
170
171 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
172 mask for ISA 3.0 (power9).
173 (POWERPC_MASKS): Add new ISA 3.0 switches.
174 (power9 cpu): Add power9 cpu.
175
176 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
177 power9.
178 (ASM_CPU_SPEC): Likewise.
179 (EXTRA_SPECS): Likewise.
180
181 * config/rs6000/rs6000-opts.h (enum processor_type): Add
182 PROCESSOR_POWER9.
183
184 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
185 power9.
186 (rs6000_debug_reg_global): Add support for power9 fusion.
187 (rs6000_setup_reg_addr_masks): Cache mode size.
188 (rs6000_option_override_internal): Until real power9 tuning is
189 added, use -mtune=power8 for -mcpu=power9.
190 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
191 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
192 of Altivec registers.
193 (rs6000_option_override_internal): Add support for ISA 3.0
194 switches.
195 (rs6000_loop_align): Add support for power9 cpu.
196 (rs6000_file_start): Likewise.
197 (rs6000_adjust_cost): Likewise.
198 (rs6000_issue_rate): Likewise.
199 (insn_must_be_first_in_group): Likewise.
200 (insn_must_be_last_in_group): Likewise.
201 (force_new_group): Likewise.
202 (rs6000_register_move_cost): Likewise.
203 (rs6000_opt_masks): Likewise.
204
205 * config/rs6000/rs6000.md (cpu attribute): Add power9.
206 * config/rs6000/rs6000-tables.opt: Regenerate.
207
208 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
209 _ARCH_PWR9 if power9 support is available.
210
211 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
212 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
213
214 * configure.ac: Determine if the assembler supports the ISA 3.0
215 instructions.
216 * config.in (HAVE_AS_POWER9): Likewise.
217 * configure: Regenerate.
218
219 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
220 switches.
221
222 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
223
224 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
225 Remove integer CONST_DOUBLE handling. It should never occur.
226
227 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
228
229 PR target/68129
230 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
231 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
232 Delete VOIDmode case. Assert that mode is not VOIDmode.
233 * config/aarch64/predicates.md (const0_operand): Remove const_double
234 match.
235
236 2015-11-09 Martin Liska <mliska@suse.cz>
237
238 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
239 body_info release function.
240 * ipa-prop.c (ipa_release_body_info): New function.
241 (ipa_analyze_node): Call the function.
242 (ipa_node_params::~ipa_node_params): Release known_csts.
243 * ipa-prop.h (ipa_release_body_info): Declare.
244
245 2015-11-09 Martin Liska <mliska@suse.cz>
246
247 * gcc.c (record_temp_file): Release name string.
248 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
249 of vec.
250 * lra-lives.c (free_live_range_list): Utilize
251 lra_live_range_pool for allocation and deallocation.
252 (create_live_range): Likewise.
253 (copy_live_range): Likewise.
254 (lra_merge_live_ranges): Likewise.
255 (remove_some_program_points_and_update_live_ranges): Likewise.
256 (lra_create_live_ranges_1): Release point_freq_vec that can
257 be not freed from previous iteration of the function.
258 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
259 vec.
260 * tree-sra.c (sra_deinitialize): Release all vectors in
261 base_access_vec.
262 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
263 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
264 Release edge_info for a removed edge.
265 (thread_through_all_blocks): Free region vector.
266 * tree-ssa.h (free_dom_edge_info): Declare function extern.
267
268 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
269
270 * optabs.c (expand_vec_cond_expr): Always get sign from type.
271 * tree.c (wide_int_to_tree): Support negative values for boolean.
272 (build_nonstandard_boolean_type): Use signed type for booleans.
273
274 2015-11-09 Richard Biener <rguenther@suse.de>
275
276 PR tree-optimization/68248
277 * tree-vect-generic.c (expand_vector_operations_1): Handle
278 scalar rhs2.
279
280 2015-11-09 Richard Biener <rguenther@suse.de>
281
282 PR tree-optimization/56118
283 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
284 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
285 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
286 function.
287 (vect_slp_analyze_data_ref_dependences): Instead of computing
288 all dependences of the region DRs just analyze the code motions
289 SLP vectorization will perform. Remove SLP instances that
290 cannot have their store/load motions applied.
291 (vect_analyze_data_refs): Allow DRs without a vectype
292 in BB vectorization.
293
294 2015-11-09 Julian Brown <julian@codesourcery.com>
295
296 * final.c (output_asm_insn): Pass VOIDmode to output_address.
297 (output_address): Add MODE argument. Pass to print_operand_address
298 hook.
299 * targhooks.c (default_print_operand_address): Add MODE argument.
300 * targhooks.h (default_print_operand_address): Update prototype.
301 * output.h (output_address): Update prototype.
302 * target.def (print_operand_address): Add MODE argument.
303 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
304 output_address.
305 (print_operand): Pass access mode to output_address.
306 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
307 argument.
308 (mcore_print_operand): Update calls to mcore_print_operand_address.
309 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
310 output_address.
311 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
312 output_address.
313 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
314 global.
315 (tilegx_print_operand): Don't set above global. Update calls to
316 output_address.
317 (tilegx_print_operand_address): Add MODE argument. Use instead of
318 output_memory_reference_mode global.
319 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
320 (frv_print_operand): Pass mode to frv_print_operand_address calls.
321 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
322 output_address.
323 * config/cris/cris.c (cris_print_operand_address): Add MODE
324 argument.
325 (cris_print_operand): Pass mode to output_address calls.
326 * config/spu/spu.c (print_operand): Pass mode to output_address
327 calls.
328 * config/aarch64/aarch64.h (aarch64_print_operand)
329 (aarch64_print_operand_address): Remove prototypes.
330 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
331 global.
332 (aarch64_print_operand): Make static. Update calls to
333 output_address.
334 (aarch64_print_operand_address): Add MODE argument. Use instead of
335 aarch64_memory_reference_mode global.
336 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
337 hooks.
338 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
339 Delete macro definitions.
340 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
341 calls.
342 * config/xtensa/xtensa.c (print_operand): Pass mode in
343 output_address calls.
344 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
345 argument.
346 (h83000_print_operand): Update calls to h8300_print_operand_address
347 and output_address.
348 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
349 argument.
350 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
351 global.
352 (tilepro_print_operand): Pass mode to output_address.
353 (tilepro_print_operand_address): Add MODE argument. Use instead of
354 output_memory_reference_mode.
355 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
356 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
357 to output_address calls.
358 (nvptx_print_operand_address): Add MODE argument.
359 * config/alpha/alpha.c (print_operand): Pass mode argument in
360 output_address calls.
361 * config/m68k/m68k.c (print_operand): Pass mode argument in
362 output_address call.
363 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
364 (avr_print_operand): Update calls to avr_print_operand_address.
365 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
366 argument. Update calls to output_address.
367 (sparc_print_operand): Pass mode to output_address.
368 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
369 argument.
370 (iq2000_print_operand): Pass mode in output_address calls.
371 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
372 MODE argument.
373 (xstormy16_print_operand): Pass mode to
374 xstormy16_print_operand_address calls.
375 * config/mips/mips.c (mips_print_operand): Update calls to
376 output_address.
377 (mips_print_operand_address): Add MODE argument.
378 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
379 to output_address.
380 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
381 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
382 output_address.
383 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
384 (rx_print_operand): Update calls to output_address,
385 rx_print_operand_address.
386 * config/nds32/nds32.c (nds32_print_operand): Update calls to
387 output_address.
388 (nds32_print_operand_address): Add MODE argument.
389 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
390 output_address calls.
391 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
392 output_address call.
393 (c6x_print_address_operand): Update calls to output_address.
394 (c6x_print_operand_address): Pass mode to above.
395 * config/v850/v850.c (v850_print_operand_address): Add MODE
396 argument.
397 (v850_print_operand): Pass mode to v850_print_operand_address,
398 output_address.
399 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
400 argument.
401 (mmix_print_operand): Pass mode in output_address calls.
402 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
403 (sh_print_operand): Pass mem mode to output_address,
404 sh_print_operand_address.
405 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
406 argument.
407 (cr16_print_operand): Pass mode to output_address,
408 cr16_print_operand_address.
409 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
410 output_address.
411 * config/microblaze/microblaze.c (print_operand): Pass mode to
412 output_address.
413 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
414 output_address.
415 (nios2_print_operand_address): Add MODE argument. Update call to
416 nios2_print_operand_address.
417 * config/s390/s390.c (print_operand): Pass mode to output_address.
418 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
419 argument.
420 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
421 output_address.
422 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
423 Use instead of output_memory_reference_mode.
424 (output_memory_reference_mode): Delete global.
425 (arm_print_operand): Pass mem mode to output_address.
426 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
427 argument.
428 (m32r_print_operand): Pass mode to output_address.
429 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
430 argument.
431 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
432 * config/i386/i386.c (ix86_print_operand): Pass mode to
433 output_address calls.
434 (ix86_print_operand_address): Add MODE argument.
435
436 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
437
438 PR middle-end/68251
439 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
440 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
441 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
442 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
443
444 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
445
446 PR rtl-optimization/67749
447 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
448 case before emitting the two blocks. Instead modify the register
449 in the corresponding final insn of the basic block.
450
451 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
452
453 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
454 assembler syntax.
455 Support Solaris ld.
456 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
457
458 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
459 HAVE_INITFINI_ARRAY_SUPPORT.
460 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
461 value.
462
463 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
464 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
465 Don't check HAVE_AS_SPARC_NOBITS.
466 Heed SECTION_NOTYPE.
467
468 * configure: Regenerate.
469 * config.in: Regenerate.
470
471 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
472
473 PR middle-end/68253
474 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
475
476 2015-11-09 Richard Henderson <rth@redhat.com>
477
478 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
479 __SEG_GS, __SEG_TLS.
480 (ix86_register_pragmas): Register address spaces __seg_fs,
481 __seg_gs, __seg_tls.
482 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
483 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
484 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
485 * config/i386/i386.c (ix86_decompose_address): Likewise.
486 (ix86_legitimate_address_p): Likewise.
487 (memory_address_length): Likewise. Check mem address space too.
488 (ix86_print_operand): Use ix86_print_operand_address_as.
489 (ix86_print_operand_address_as): Rename from
490 ix86_print_operand_address, add new addr_space_t parameter.
491 Validate that either the parameter or the ix86_address segment
492 is default address space. Handle ADDR_SPACE_SEG_TLS.
493 (ix86_print_operand_address): New.
494 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
495 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
496 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
497 (ix86_addr_space_zero_address_valid): New.
498 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
499 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
500 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
501 * config/i386/predicates.md (address_no_seg_operand): Likewise.
502 (vsib_address_operand): Likewise.
503 (address_mpx_no_base_operand): Likewise.
504 (address_mpx_no_index_operand): Likewise.
505 * doc/extend.texi (x86 Named Address Spaces): New section.
506
507 * config/i386/i386.c (ix86_check_no_addr_space): New.
508 (decide_alg): Add have_as parameter.
509 (alg_usable_p): Likewise; disable rep algorithms if set.
510 (ix86_expand_set_or_movmem): Notice if either MEM has a
511 non-default address space.
512 (ix86_expand_strlen): Likewise.
513 * config/i386/i386.md (strmov, strset): Likewise.
514 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
515 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
516 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
517 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
518 *cmpstrnqi_1, *strlenqi_1): Likewise.
519
520 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
521 (*movabs<mode>_2): Likewise.
522
523 * dwarf2out.c (modified_type_die): Pass the address space number
524 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
525 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
526 * targhooks.c (default_addr_space_debug): New.
527 * targhooks.h (default_addr_space_debug): Declare.
528 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
529 * doc/tm.texi: Rebuild.
530
531 * gimple.c (check_loadstore): Return false when 0 is a valid address.
532 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
533 null when 0 is valid in the source address space.
534 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
535 * targhooks.c (default_addr_space_zero_address_valid): New.
536 * targhooks.h (default_addr_space_zero_address_valid): Declare.
537 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
538 * doc/tm.texi: Rebuild.
539
540 * cselib.c (add_mem_for_addr): Compare address spaces when
541 matching memories.
542 (cselib_lookup_mem): Likewise.
543 * fold-const.c (operand_equal_p): Check address spaces of
544 pointer types before checking integer constants.
545
546 PR tree-opt/66768
547 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
548 the correct type for the base.
549
550 2015-11-09 Jeff Law <law@redhat.com>
551
552 * tree-into-ssa.c (names_to_release): No longer static.
553 * tree-into-ssa.h (names_to_release): Declare.
554 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
555 (release_free_names_and_compact_live_names): New function extracted
556 from pass_release_ssa_names::execute.
557 (pass_release_ssa_names::execute): Use it.
558
559 2015-11-09 Alan Modra <amodra@gmail.com>
560
561 * gensupport.c (add_mnemonic_string): Make len param a size_t.
562 (gen_mnemonic_setattr): Make "size" var a size_t. Use
563 obstack_blank_fast to shrink obstack. Cast obstack_next_free
564 return value.
565
566 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
567
568 PR rtl-optimization/68182
569 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
570 branch with only one successor just like unconditional branches.
571
572 2015-11-08 Jeff Law <law@redhat.com>
573
574 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
575 non-FSM path has no edges marked with EDGE_DFS_BACK.
576 (ssa_redirect_edges): No longer call mark_loop_for_removal.
577 (thread_single_edge, def_split_header_continue_p): Remove.
578 (bb_ends_with_multiway_branch): Likewise.
579 (thread_through_loop_header): Remove cases of threading from
580 latch through the header. Simplify knowing we won't thread
581 the latch.
582 (thread_through_all_blocks): Simplify knowing that only the FSM
583 threader needs to handle backedges.
584
585 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
586
587 * doc/extend.texi (type attributes): Document scalar_storage_order.
588 (Structure-Packing Pragmas): Rename into...
589 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
590 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
591 (Warnings): Document -Wno-scalar-storage-order.
592 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
593 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
594 extract_bit_field and store_bit_field.
595 (initialize_argument_information): Adjust call to store_expr.
596 (load_register_parameters): Adjust call to extract_bit_field.
597 * expmed.c (check_reverse_storage_order_support): New function.
598 (check_reverse_float_storage_order_support): Likewise.
599 (flip_storage_order): Likewise.
600 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
601 of the value if it is true. Pass REVERSE to recursive call after
602 adjusting the target offset.
603 Do not use extraction or movstrict instruction if REVERSE is true.
604 Pass REVERSE to store_fixed_bit_field.
605 (store_bit_field): Add REVERSE parameter and pass to it to above.
606 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
607 store_split_bit_field and store_fixed_bit_field_1.
608 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
609 order of the value if it is true and adjust the target offset.
610 (store_split_bit_field): Add REVERSE parameter and pass it to
611 store_fixed_bit_field. Adjust the target offset if it is true.
612 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
613 of the value if it is true. Pass REVERSE to recursive call after
614 adjusting the target offset.
615 Do not use extraction or subreg instruction if REVERSE is true.
616 Pass REVERSE to extract_fixed_bit_field.
617 (extract_bit_field): Add REVERSE parameter and pass to it to above.
618 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
619 extract_split_bit_field and extract_fixed_bit_field_1.
620 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
621 order of the value if it is true and adjust the target offset.
622 (extract_split_bit_field): Add REVERSE parameter and pass it to
623 extract_fixed_bit_field. Adjust the target offset if it is true.
624 * expmed.h (flip_storage_order): Declare.
625 (store_bit_field): Adjust prototype.
626 (extract_bit_field): Likewise.
627 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
628 (emit_group_store): Adjust call to store_bit_field.
629 (copy_blkmode_from_reg): Likewise.
630 (copy_blkmode_to_reg): Likewise.
631 (write_complex_part): Likewise.
632 (read_complex_part): Likewise.
633 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
634 that it isn't true if the target is a register.
635 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
636 and flip the storage order of the value.
637 <BIT_IOR_EXPR>: Flip the storage order of the value.
638 (get_bit_range): Adjust call to get_inner_reference.
639 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
640 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
641 with reverse storage order.
642 (store_expr_with_bounds): Add REVERSE parameter and pass it to
643 recursive calls and call to store_bit_field. Force the value into a
644 register if it is true and then flip the storage order of the value.
645 (store_expr): Add REVERSE parameter and pass it to above.
646 (categorize_ctor_elements_1): Adjust call to
647 initializer_constant_valid_p.
648 (store_constructor_field): Add REVERSE parameter and pass it to
649 recursive calls and call to store_field.
650 (store_constructor): Add REVERSE parameter and pass it to calls to
651 store_constructor_field and store_expr. Set it to true for an
652 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
653 (store_field): Add REVERSE parameter and pass it to recursive calls
654 and calls to store_expr and store_bit_field. Temporarily flip the
655 storage order of the value with record type and integral mode and
656 adjust the shift if it is true.
657 (get_inner_reference): Add PREVERSEP parameter and set it to true
658 upon encoutering a reference with reverse storage order.
659 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
660 (expand_constructor): Adjust call to store_constructor.
661 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
662 of the union type to store_expr in the MEM case and assert that it
663 isn't set in the REG case. Adjust call to store_field.
664 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
665 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
666 get_inner_reference and extract_bit_field. Temporarily flip the
667 storage order of the value with record type and integral mode and
668 adjust the shift if it is true. Flip the storage order of the value
669 at the end if it is true.
670 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
671 get_inner_reference. Do not fetch an inner reference if it is true.
672 * expr.h (store_expr_with_bounds): Ajust prototype.
673 (store_expr): Likewise.
674 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
675 REF_REVERSE_STORAGE_ORDER on the reference according to it.
676 (optimize_bit_field_compare): Deal with reverse storage order.
677 Adjust calls to get_inner_reference and make_bit_field_ref.
678 (decode_field_reference): Add PREVERSEP parameter and adjust call to
679 get_inner_reference.
680 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
681 to decode_field_reference and make_bit_field_ref.
682 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
683 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
684 (fold_comparison): Adjust call to get_inner_reference.
685 (split_address_to_core_and_offset): Adjust call to
686 get_inner_reference.
687 * gimple-expr.c (useless_type_conversion_p): Return false for array
688 types with different TYPE_REVERSE_STORAGE_ORDER flag.
689 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
690 REF_REVERSE_STORAGE_ORDER flag.
691 * lto-streamer-out.c (hash_tree): Deal with
692 TYPE_REVERSE_STORAGE_ORDER.
693 * output.h (assemble_real): Adjust prototype.
694 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
695 * stor-layout.c (finish_record_layout): Propagate the
696 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
697 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
698 (TYPE_SATURATING): Adjust.
699 (REF_REVERSE_STORAGE_ORDER): Document.
700 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
701 set it to true upon encoutering a reference with reverse storage
702 order.
703 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
704 * tree-inline.c (remap_gimple_op_r): Propagate the
705 REF_REVERSE_STORAGE_ORDER flag.
706 (copy_tree_body_r): Likewise.
707 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
708 store_expr.
709 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
710 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
711 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
712 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
713 REF_REVERSE_STORAGE_ORDER flag.
714 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
715 (gimple_canonical_types_compatible_p): Likewise.
716 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
717 (TYPE_SATURATING): Adjust.
718 (REF_REVERSE_STORAGE_ORDER): New flag.
719 (reverse_storage_order_for_component_p): New inline predicate.
720 (storage_order_barrier_p): Likewise.
721 (get_inner_reference): Adjust prototype.
722 * varasm.c: Include expmed.h.
723 (assemble_variable_contents): Adjust call to output_constant.
724 (assemble_real): Add REVERSE parameter. Flip the storage
725 order of the value if REVERSE is true.
726 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
727 (assemble_constant_contents): Adjust call to output_constant.
728 (output_constant_pool_2): Adjust call to assemble_real.
729 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
730 TYPE_REVERSE_STORAGE_ORDER.
731 (initializer_constant_valid_p): Add REVERSE parameter.
732 (output_constant): Add REVERSE parameter.
733 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
734 <REAL_TYPE>: Adjust call to assemble_real.
735 <COMPLEX_TYPE>: Pass it to recursive calls.
736 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
737 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
738 (struct oc_local_state): Add REVERSE field.
739 (output_constructor_array_range): Adjust calls to output_constant.
740 (output_constructor_regular_field): Likewise.
741 (output_constructor_bitfield): Adjust call to output_constructor.
742 Flip the storage order of the value if REVERSE is true.
743 (output_constructor): Add REVERSE parameter. Set it to true for an
744 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
745 output_constructor_bitfield.
746 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
747 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
748 * builtins.c (get_object_alignment_2): Likewise.
749 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
750 and get_ref_base_and_extent.
751 * dbxout.c (dbxout_expand_expr): Likewise.
752 * dwarf2out.c (add_var_loc_to_decl): Likewise.
753 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
754 (loc_list_from_tree): Likewise.
755 (fortran_common): Likewise.
756 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
757 get_ref_base_and_extent.
758 (get_base_constructor): Likewise.
759 (fold_const_aggregate_ref_1): Likewise.
760 * gimple-laddress.c (pass_laddress::execute): Adjust call to
761 get_inner_reference.
762 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
763 get_inner_reference and bail out on reverse storage order.
764 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
765 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
766 build_ref_for_offset.
767 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
768 get_ref_base_and_extent.
769 (ipa_polymorphic_call_context): Likewise.
770 (extr_type_from_vtbl_ptr_store): Likewise.
771 (check_stmt_for_type_change): Likewise.
772 (get_dynamic_type): Likewise.
773 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
774 get_ref_base_and_extent.
775 (compute_complex_assign_jump_func): Likewise.
776 (get_ancestor_addr_info): Likewise.
777 (compute_known_type_jump_func): Likewise.
778 (determine_known_aggregate_parts): Likewise.
779 (ipa_get_adjustment_candidate): Likewise.
780 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
781 MEM_REF.
782 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
783 (build_ref_for_offset): Adjust prototype.
784 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
785 get_inner_reference.
786 * tree-affine.c (tree_to_aff_combination): Adjust call to
787 get_inner_reference.
788 (get_inner_reference_aff): Likewise.
789 * tree-data-ref.c (split_constant_offset_1): Likewise.
790 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
791 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
792 get_inner_reference.
793 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
794 (dump_access): Print new fields.
795 (create_access): Adjust call to get_ref_base_and_extent and set the
796 REVERSE flag according to the result.
797 (completely_scalarize_record): Set the REVERSE flag.
798 (scalarize_elem): Add REVERSE parameter.
799 (build_access_from_expr_1): Preserve storage order barriers.
800 (build_accesses_from_assign): Likewise.
801 (build_ref_for_offset): Add REVERSE parameter and set the
802 REF_REVERSE_STORAGE_ORDER flag accordingly.
803 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
804 the REF_REVERSE_STORAGE_ORDER flag if there are components.
805 (analyze_access_subtree): Likewise.
806 (create_artificial_child_access): Set the REVERSE flag.
807 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
808 (turn_representatives_into_adjustments): Propagate REVERSE flag.
809 (ipa_sra_check_caller): Adjust call to get_inner_reference.
810 * tree-ssa-alias.c (ao_ref_base): Adjust call to
811 get_ref_base_and_extent.
812 (aliasing_component_refs_p): Likewise.
813 (stmt_kills_ref_p_1): Likewise.
814 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
815 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
816 Return true if reverse storage order.
817 <BIT_FIELD_REF>: Likewise.
818 <COMPONENT_REF>: Likewise.
819 <ARRAY_REF>: Likewise.
820 <ARRAY_RANGE_REF>: Likewise.
821 (split_address_cost): Likewise. Bail out if reverse storage order.
822 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
823 get_inner_reference. Bail out if reverse storage order.
824 (bswap_replace): Adjust call to get_inner_reference.
825 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
826 the REF_REVERSE_STORAGE_ORDER flag.
827 <BIT_FIELD_REF>: Likewise.
828 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
829 barriers.
830 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
831 to the REF_REVERSE_STORAGE_ORDER flag.
832 <BIT_FIELD_REF>: Likewise.
833 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
834 (contains_storage_order_barrier_p): New predicate.
835 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
836 Punt on storage order barriers if necessary.
837 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
838 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
839 call to get_ref_base_and_extent.
840 (do_structure_copy): Likewise.
841 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
842 get_inner_reference.
843 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
844 order.
845 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
846 * ubsan.c (instrument_bool_enum_load): Likewise.
847 (instrument_object_size): Likewise.
848 * var-tracking.c (track_expr_p): Adjust call to
849 get_ref_base_and_extent
850 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
851 get_inner_reference.
852 * config/s390/s390.c (s390_expand_atomic): Adjust call to
853 store_bit_field.
854 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
855 extract_bit_field.
856 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
857
858 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
859
860 * config/sparc/sparc.opt (mfix-at697f): Add final period.
861
862 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
863
864 PR rtl-optimization/67864
865 * common/config/i386/i386-common.c (ix86_option_optimization_table)
866 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
867 at -Os and up.
868
869 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
870
871 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
872 internal functions.
873
874 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
875
876 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
877 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
878
879 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
880
881 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
882 * internal-fn.c: Don't undef it here.
883 * tree-core.h: Likewise.
884
885 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
886
887 * builtins.c (fold_builtin_nan): Delete.
888 (fold_builtin_memcmp): Remove case where both arguments are constant.
889 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
890 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
891 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
892 * fold-const-call.c: Include fold-const.h.
893 (host_size_t_cst_p): New function.
894 (build_cmp_result, fold_const_builtin_nan): Likewise.
895 (fold_const_call_1): New function, split out from...
896 (fold_const_call): ...here (for all three interfaces). Handle
897 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
898
899 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
900
901 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
902 (fold_builtin_1): Don't call them.
903 * fold-const-call.c: Include tm.h.
904 (fold_const_call_ss): New variant for integer-to-integer folds.
905 (fold_const_call): Call it.
906
907 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
908
909 * builtins.c (fold_builtin_classify): Move constant cases to...
910 * fold-const-call.c (fold_const_call_ss): ...here.
911
912 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
913
914 * builtins.h (c_getstr): Move to...
915 * fold-const.h (c_getstr): ...here.
916 * builtins.c (c_getstr): Move to...
917 * fold-const.c (c_getstr): ...here.
918
919 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
920
921 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
922 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
923
924 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
925
926 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
927 the dominance info; free it if we can't.
928 (pass_call_cdce::execute): Don't free the dominance info here.
929
930 2015-11-06 Jeff Law <law@redhat.com>
931
932 * tree-ssa-threadedge.c (dummy_simplify): Remove.
933 (thread_around_empty_blocks): Remove backedge_seen_p argument.
934 If we thread to a backedge, then return false. Update recursive
935 call to eliminate backedge_seen_p argument.
936 (thread_through_normal_block): Remove backedge_seen_p argument.
937 Remove backedge_seen_p argument from calls to
938 thread_around_empty_blocks. Remove checks on backedge_seen_p.
939 If we thread to a backedge, then return 0.
940 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
941 pass it to thread_through_normal_block or thread_through_empty_blocks.
942 For joiner handling, if we see a backedge, do not try normal
943 threading.
944
945 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
946
947 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
948 * graphite-poly.c (new_scop): Initialize original_schedule.
949 (free_scop): Free original_schedule.
950 * graphite-poly.h (struct scop): Add field original_schedule.
951 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
952 (build_poly_scop): Call build_scop_original_schedule.
953
954 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
955
956 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
957 (build_pbb_minimal_scattering_polyhedrons): New.
958 (build_scop_scattering): Remove.
959 (build_scop_minimal_scattering): New.
960 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
961 (build_poly_scop): Call build_scop_minimal_scattering.
962
963 2015-11-06 Jeff Law <law@redhat.com>
964
965 * cfg-flags.def (IGNORE): New edge flag.
966 * tree-vrp.c (identify_jump_threads): Mark and clear edges
967 scheduled for removal with EDGE_IGNORE around call into
968 jump threader. Do no thread across edges with EDGE_IGNORE,
969 but do allow threading across those with EDGE_DFS_BACK.
970
971 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
972
973 * doc/md.texi (multi-alternative constraints): Don't document
974 alternatives inherently tied to reload for the user documentation.
975
976 2015-11-06 Michael Collison <michael.collison@linaro.org
977 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
978
979 Revert:
980 2015-08-01 Michael Collison <michael.collison@linaro.org
981 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
982
983 * config/arm/arm.md (*arm_smin_cmp): New pattern.
984 (*arm_umin_cmp): Likewise.
985
986 2015-11-06 Jakub Jelinek <jakub@redhat.com>
987
988 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
989 wording.
990 * omp-low.c (check_omp_nesting_restrictions): Update for the
991 various new OpenMP 4.5 nesting restrictions, clarified
992 nesting glossary, closely nested region relationship clarified
993 to mean explicit or implicit parallel regions (target/teams),
994 use %</%> or %qs where appropriate.
995
996 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
997 Sebastian Pop <s.pop@samsung.com>
998
999 * graphite-scop-detection.c (loop_is_valid_scop): Call
1000 optimize_loop_nest_for_speed_p.
1001
1002 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1003 Sebastian Pop <s.pop@samsung.com>
1004
1005 * graphite-optimize-isl.c (optimize_isl): Call
1006 isl_options_set_schedule_maximize_band_depth.
1007
1008 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
1009 Sebastian Pop <s.pop@samsung.com>
1010
1011 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
1012 and exit edges should not be a part of irreducible loop.
1013 (scop_detection::can_represent_loop_1): Loops should not be
1014 irreducible.
1015 (scop_detection::harmful_stmt_in_region): All the basic block
1016 should belong to reducible loops.
1017
1018 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
1019
1020 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1021 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
1022 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
1023 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
1024 (aarch64_tbx4v8qi): Rename to...
1025 aarch64_tbx4<mode>): ... this.
1026 (aarch64_qtbl3<mode>): New pattern.
1027 (aarch64_qtbx3<mode>): New pattern.
1028 (aarch64_qtbl4<mode>): New pattern.
1029 (aarch64_qtbx4<mode>): New pattern.
1030 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
1031 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
1032 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
1033 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
1034 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
1035 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
1036 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
1037 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
1038 functions.
1039
1040 2015-11-06 Mike Stump <mikestump@comcast.net>
1041
1042 PR debug/66728
1043 * dwarf2out.c (get_full_len): Return a value based upon the actual
1044 precision needed for the value.
1045 (add_const_value_attribute): Use a maximal wide-int for
1046 CONST_WIDE_INTs, not VOIDmode.
1047 (output_die): Don't ever output NULL with printf.
1048
1049 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
1050 BLKmode nor VOIDmode values.
1051
1052 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1053
1054 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
1055 and "range2".
1056 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
1057 * diagnostic-core.h (warning_at_rich_loc): New declaration.
1058 (error_at_rich_loc): New declaration.
1059 (permerror_at_rich_loc): New declaration.
1060 (inform_at_rich_loc): New declaration.
1061 * diagnostic-show-locus.c (adjust_line): Delete.
1062 (struct point_state): New struct.
1063 (class colorizer): New class.
1064 (class layout_point): New class.
1065 (class layout_range): New class.
1066 (struct line_bounds): New.
1067 (class layout): New class.
1068 (colorizer::colorizer): New ctor.
1069 (colorizer::~colorizer): New dtor.
1070 (layout::layout): New ctor.
1071 (layout::print_source_line): New method.
1072 (layout::print_annotation_line): New method.
1073 (layout::get_state_at_point): New method.
1074 (layout::get_x_bound_for_row): New method.
1075 (diagnostic_show_locus): Reimplement in terms of class layout.
1076 (diagnostic_print_caret_line): Delete.
1077 * diagnostic.c (diagnostic_initialize): Replace
1078 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
1079 (diagnostic_set_info_translated): Convert param from location_t
1080 to rich_location *. Eliminate calls to set_location on the
1081 message in favor of storing the rich_location ptr there.
1082 (diagnostic_set_info): Convert param from location_t to
1083 rich_location *.
1084 (diagnostic_build_prefix): Break out array into...
1085 (diagnostic_kind_color): New variable.
1086 (diagnostic_get_color_for_kind): New function.
1087 (diagnostic_report_diagnostic): Colorize the option_text
1088 using the color for the severity.
1089 (diagnostic_append_note): Update for change in signature of
1090 diagnostic_set_info.
1091 (diagnostic_append_note_at_rich_loc): New function.
1092 (emit_diagnostic): Update for change in signature of
1093 diagnostic_set_info.
1094 (inform): Likewise.
1095 (inform_at_rich_loc): New function.
1096 (inform_n): Update for change in signature of diagnostic_set_info.
1097 (warning): Likewise.
1098 (warning_at): Likewise.
1099 (warning_at_rich_loc): New function.
1100 (warning_n): Update for change in signature of diagnostic_set_info.
1101 (pedwarn): Likewise.
1102 (permerror): Likewise.
1103 (permerror_at_rich_loc): New function.
1104 (error): Update for change in signature of diagnostic_set_info.
1105 (error_n): Likewise.
1106 (error_at): Likewise.
1107 (error_at_rich_loc): New function.
1108 (sorry): Update for change in signature of diagnostic_set_info.
1109 (fatal_error): Likewise.
1110 (internal_error): Likewise.
1111 (internal_error_no_backtrace): Likewise.
1112 (source_range::debug): New function.
1113 * diagnostic.h (struct diagnostic_info): Eliminate field
1114 "override_column". Add field "richloc".
1115 (struct diagnostic_context): Add field "colorize_source_p".
1116 (diagnostic_override_column): Delete.
1117 (diagnostic_set_info): Convert param from location_t to
1118 rich_location *.
1119 (diagnostic_set_info_translated): Likewise.
1120 (diagnostic_append_note_at_rich_loc): New function.
1121 (diagnostic_num_locations): New function.
1122 (diagnostic_expand_location): Get the location from the
1123 rich_location.
1124 (diagnostic_print_caret_line): Delete.
1125 (diagnostic_get_color_for_kind): New declaration.
1126 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
1127 (error_cb): Update for change in signature of "error" callback.
1128 (fatal_at): Likewise.
1129 (warning_at): Likewise.
1130 * input.c (linemap_client_expand_location_to_spelling_point): New.
1131 * pretty-print.c (text_info::set_range): New method.
1132 (text_info::get_location): New method.
1133 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
1134 (struct text_info): Eliminate "locations" array in favor of
1135 "m_richloc", a rich_location *.
1136 (textinfo::set_location): Add a "caret_p" param, and reimplement
1137 in terms of a call to set_range.
1138 (textinfo::get_location): Eliminate inline implementation in favor of
1139 an out-of-line reimplementation.
1140 (textinfo::set_range): New method.
1141 * rtl-error.c (diagnostic_for_asm): Update for change in signature
1142 of diagnostic_set_info.
1143 * tree-diagnostic.c (default_tree_printer): Update for new
1144 "caret_p" param for textinfo::set_location.
1145 * tree-pretty-print.c (percent_K_format): Likewise.
1146
1147 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1148
1149 Properly apply.
1150 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1151 * config/aarch64/aarch64.c
1152 (aarch64_can_use_per_function_literal_pools_p): New.
1153 (aarch64_use_blocks_for_constant_p): Adjust declaration
1154 and use aarch64_can_use_function_literal_pools_p.
1155 (aarch64_select_rtx_section): Update.
1156
1157 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1158
1159 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1160 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1161 (arm_output_multireg_pop): Likewise.
1162 (output_move_double): Likewise.
1163 (output_move_quad): Likewise.
1164 (output_return_instruction): Likewise.
1165 (arm_print_operand): Remove support for %( and %. print modifiers.
1166 (arm_output_shift): Make unified asm.
1167 (arm_declare_function_name): Likewise.
1168 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1169 (ASM_APP_OFF): Adjust.
1170 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1171 (ASM_OUTPUT_REG_POP): Likewise.
1172 * config/arm/arm.md: Adjust uses of %., %(, %)
1173 * config/arm/sync.md: Likewise.
1174 * config/arm/thumb2.md: Likewise.
1175 * config/arm/ldmstm.md: Regenerate.
1176 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1177 * doc/invoke.texi (masm-unified-syntax): Update documentation.
1178
1179 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1180
1181 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1182
1183 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1184
1185 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1186 add OEP_MATCH_SIDE_EFFECTS.
1187 * fold-const.c (operand_equal_p): Update documentation; handle
1188 OEP_MATCH_SIDE_EFFECTS.
1189 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1190 OEP_MATCH_SIDE_EFFECTS.
1191
1192 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
1193 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1194
1195 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1196 * config/aarch64/aarch64-protos.h: Declare.
1197 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1198 frsqrts.
1199 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1200 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
1201 code when applicable.
1202 * config/aarch64/aarch64.md: Added enum entries.
1203 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1204 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
1205 macros for assembly checks.
1206 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1207 frsqrts and frsqrte are not emitted.
1208 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
1209 frsqrts and frsqrte are emitted.
1210 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1211
1212 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1213
1214 PR ipa/68057
1215 PR ipa/68220
1216 * ipa-polymorphic-call.c
1217 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1218 issue when offset is out of range.
1219 (contains_type_p): Fix out of range check, clear dynamic flag.
1220
1221 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
1222
1223 * config.gcc (e6500): Fix cpu_is_64bit typo.
1224
1225 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
1226
1227 * tree-sra.c (completely_scalarize): Properly handle negative array
1228 indices using offset_int.
1229
1230 2015-11-06 Richard Biener <rguenther@suse.de>
1231
1232 * alloc-pool.h (object_allocator::allocate): Default-initialize
1233 object.
1234
1235 2015-11-06 Richard Biener <rguenther@suse.de>
1236
1237 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1238 * lra.c (init_reg_info): Truncate copy_vec instead of
1239 re-allocating a new one and leaking the old.
1240 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1241 bb_infos vec.
1242 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1243 * postreload-gcse.c (free_mem): Free modify_mem_list and
1244 canon_modify_mem_list.
1245
1246 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
1247
1248 PR tree-optimization/68145
1249 * tree-vect-stmts.c (vectorizable_operation): Fix
1250 determination for booleans.
1251
1252 2015-11-06 Tom de Vries <tom@codesourcery.com>
1253
1254 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1255 cond_jump, instead of split after last nondebug insn before cond_jump.
1256 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1257 returning.
1258
1259 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1260
1261 PR target/68088
1262 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1263 subregs from accumulator and make sure it's a register.
1264
1265 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
1266
1267 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1268 low part to scalar.
1269 (reduc_uplus_<mode>): Remove.
1270 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1271 loongson_extract_lo_<mode>.
1272 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1273 reduc_smax_<mode>, reduc_smax_<mode>, use vec
1274 loongson_extract_lo_<mode>.
1275 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1276
1277 2015-11-06 Richard Biener <rguenther@suse.de>
1278
1279 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1280 members.
1281 (vect_stmt_in_region_p): Declare.
1282 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1283 (destroy_bb_vec_info): Likewise.
1284 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1285 (vect_get_and_check_slp_defs): Likewise.
1286 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1287 (vect_slp_bb): Likewise.
1288 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1289 in terms of vect_stmt_in_region_p.
1290 (vect_pattern_recog): Iterate over the BB region.
1291 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1292 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1293 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1294 * config/i386/i386.c: Include gimple-iterator.h.
1295 * config/aarch64/aarch64.c: Likewise.
1296
1297 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
1298
1299 PR rtl-optimization/67753
1300 PR rtl-optimization/64164
1301 * function.c (assign_parm_setup_block): Avoid allocating a
1302 stack slot if we don't have an ABI-reserved one. Emit the
1303 copy to target_reg in the conversion seq if the copy from
1304 entry_parm is in it too. Don't use the conversion seq to copy
1305 a PARALLEL to a REG or a CONCAT.
1306
1307 2015-11-06 Richard Biener <rguenther@suse.de>
1308
1309 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1310 equal_keys.
1311
1312 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1313 Thomas Schwinge <thomas@codesourcery.com>
1314 James Norris <jnorris@codesourcery.com>
1315
1316
1317 * gimplify.c (gimplify_scan_omp_clauses): Add support for
1318 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
1319 (gimplify_adjust_omp_clauses): Likewise.
1320 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1321 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1322 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1323 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1324 (omp_clause_code_name): Likewise.
1325 (walk_tree_1): Handle OMP_CLAUSE_TILE.
1326 * tree.h (OMP_TILE_LIST): New macro.
1327
1328 2015-11-05 Martin Sebor <msebor@redhat.com>
1329
1330 PR c++/67942
1331 * doc/invoke.texi (-Wplacement-new): Document new option.
1332
1333 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
1334
1335 PR tree-optimization/65963
1336 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1337 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1338
1339 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
1340
1341 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1342 (noce_convert_multiple_sets): Likewise.
1343 (noce_process_if_block): Call them.
1344
1345 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1346
1347 * gimple-fold.c: Include omp-low.h.
1348 (fold_internal_goacc_dim): New.
1349 (gimple_fold_call): Call it.
1350
1351 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1352 Ilya Verbin <ilya.verbin@intel.com>
1353
1354 * builtin-types.def
1355 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1356 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1357 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1358 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1359 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1360 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1361 (struct cgraph_simd_clone_arg): Adjust comment.
1362 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1363 to GOMP_target_ext. Add num_teams and thread_limit arguments.
1364 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1365 to GOMP_target_data_ext.
1366 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1367 to GOMP_target_update_ext.
1368 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1369 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1370 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1371 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1372 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1373 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1374 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1375 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1376 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1377 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1378 * tree-core.h (enum omp_clause_schedule_kind): Add
1379 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1380 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1381 OMP_CLAUSE_SCHEDULE_LAST value.
1382 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1383 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1384 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1385 OMP_FOR_CHECK. Remove comment.
1386 * tree-pretty-print.c (dump_omp_clause): Handle
1387 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1388 Simplify. Print schedule clause modifiers.
1389 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1390 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1391 cases.
1392 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1393 (omp_default_clause): Tweak for
1394 private/firstprivate/is_device_ptr variables on target
1395 construct and use_device_ptr on target data.
1396 (omp_check_private): Likewise.
1397 (omp_notice_variable): For references check whether what it refers
1398 to has mappable type, rather than the reference itself.
1399 (omp_is_private): Diagnose linear iteration variables on non-simd
1400 constructs.
1401 (omp_no_lastprivate): Return true only for Fortran.
1402 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1403 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1404 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1405 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1406 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
1407 lastprivate and linear when combined with distribute. Gimplify
1408 variable low-bound for array reduction. Look through
1409 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1410 reductions.
1411 (gimplify_adjust_omp_clauses_1): For implicit references to
1412 variables with reference type and when not ref to scalar or
1413 ref to pointer, map what they refer to using tofrom and
1414 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1415 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1416 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1417 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
1418 Diagnose the same var on both firstprivate and lastprivate on
1419 distribute construct.
1420 (gimplify_omp_for): Fix up handling of predetermined
1421 lastprivate or linear iter vars when combined with distribute.
1422 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1423 functions.
1424 (gimplify_omp_workshare): Call optimize_target_teams.
1425 * omp-low.c (struct omp_region): Add sched_modifiers field.
1426 (struct omp_for_data): Likewise.
1427 (omp_any_child_fn_dumped): New variable.
1428 (extract_omp_for_data): Fill in sched_modifiers, and mask out
1429 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1430 from sched_kind.
1431 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1432 bits of OMP_CLAUSE_SCHED_KIND.
1433 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1434 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
1435 for array section reductions.
1436 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1437 for distribute parallel for, if there are lastprivate clauses on the
1438 for.
1439 (lower_rec_input_clauses): Handle non-zero low-bound on array
1440 section reductions.
1441 (lower_reduction_clauses): Likewise.
1442 (lower_send_clauses): Look through POINTER_PLUS_EXPR
1443 for array section reductions.
1444 (expand_parallel_call): Use nonmonotonic entrypoints for
1445 nonmonotonic: dynamic/guided.
1446 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1447 child_fn if current_function_decl has assembler name set, but child_fn
1448 does not. Dump the header and IL of the child function when not in SSA
1449 form.
1450 (expand_omp_target): Likewise. Pass num_teams and thread_limit
1451 arguments to BUILT_IN_GOMP_TARGET.
1452 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1453 Initialize the extra _looptemp_ clause to fd->loop.n2.
1454 (expand_omp_for): Use nonmonotonic entrypoints for
1455 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
1456 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
1457 again if we have dumped any child functions.
1458 (lower_omp_for_lastprivate): Determine the right count variable
1459 for distribute simd, or distribute parallel for{, simd}.
1460 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1461 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
1462 support.
1463 (simd_clone_clauses_extract): Handle variable step
1464 for references and arguments passed by reference.
1465 (simd_clone_mangle): Mangle ref/uval/val variable steps.
1466 (simd_clone_adjust_argument_types): Handle
1467 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1468 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1469 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1470 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1471 (simd_clone_linear_addend): New function.
1472 (simd_clone_adjust): Handle variable step like similarly
1473 to constant step, use simd_clone_linear_addend to determine
1474 the actual step at runtime.
1475
1476 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1477
1478 * target.def (goacc.dim_limit): New hook.
1479 * targhooks.h (default_goacc_dim_limit): Declare.
1480 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
1481 * doc/tm.texi: Rebuilt.
1482 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
1483 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
1484 (default_goacc_dim_limit): New.
1485 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1486 (nvptx_goacc_dim_limit) New.
1487 (TARGET_GOACC_DIM_LIMIT): Override.
1488 * tree-vrp.c: Include omp-low.h, target.h.
1489 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
1490 IFN_GOACC_DIM_POS.
1491
1492 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1493
1494 * tree-vect-generic.c (do_compare): Use -1 for true
1495 result instead of 1.
1496
1497 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1498
1499 * config/aarch64/aarch64.c
1500 (aarch64_can_use_per_function_literal_pools_p): New.
1501 (aarch64_use_blocks_for_constant_p): Adjust declaration
1502 and use aarch64_can_use_function_literal_pools_p.
1503 (aarch64_select_rtx_section): Update.
1504
1505 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1506
1507 * targhooks.c (default_get_mask_mode): Use BLKmode in
1508 case target doesn't support required vector mode.
1509 * stor-layout.c (layout_type); Check for BLKmode.
1510
1511 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1512 Sebastian Pop <s.pop@samsung.com>
1513
1514 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1515 Remove use of parameter_rename_map.
1516 (copy_def): Remove.
1517 (copy_internal_parameters): Remove.
1518 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1519 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1520 (free_sese_info): Do not free parameter_rename_map.
1521 (set_rename): Do not use parameter_rename_map.
1522 (rename_uses): Update call to set_rename.
1523 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1524 * sese.h (parameter_rename_map_t): Remove.
1525 (struct sese_info_t): Remove field parameter_rename_map.
1526
1527 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1528 Sebastian Pop <s.pop@samsung.com>
1529
1530 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
1531 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
1532 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
1533 anonymous namespace.
1534 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
1535 (isl_id_for_pbb): Use a buffer of size 10.
1536 (isl_id_for_ssa_name): Same.
1537 * sese.c (set_rename): Add more dumps.
1538
1539 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1540
1541 * omp-low.c (struct omp_context): Remove reduction_map field.
1542 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
1543 (new_omp_context, delete_omp_context, scan_omp_target): Remove
1544 reduction_map handling.
1545 (lower_omp_target): Remove obsolete openacc reduction handling.
1546
1547 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1548
1549 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
1550
1551 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1552 Cesar Philippidis <cesar@codesourcery.com>
1553
1554 * config/nvptx/nvptx.c: Include gimple headers.
1555 (worker_red_size, worker_red_align, worker_red_name,
1556 worker_red_sym): New.
1557 (nvptx_option_override): Initialize worker reduction buffer.
1558 (nvptx_file_end): Write out worker reduction buffer var.
1559 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1560 nvptx_expand_cmp_swap): New builtin expanders.
1561 (enum nvptx_builtins): New.
1562 (nvptx_builtin_decls): New.
1563 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
1564 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1565 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
1566 nvptx_lockless_update): New helpers.
1567 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
1568 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
1569 (nvptx_goacc_reduction): New.
1570 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1571 TARGET_BUILTIN_DECL): Override.
1572 (TARGET_GOACC_REDUCTION): Override.
1573
1574 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1575 Cesar Philippidis <cesar@codesourcery.com>
1576
1577 * internal-fn.def (GOACC_REDUCTION): New.
1578 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1579 * internal-fn.c (expand_GOACC_REDUCTION): New.
1580 * target.def (goacc.reduction): New OpenACC hook.
1581 * targhooks.h (default_goacc_reduction): Declare.
1582 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1583 * doc/tm.texi: Rebuilt.
1584 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1585 scan_sharing_clauses): Remove oacc reduction handling here.
1586 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1587 (oacc_lower_reduction_var_helper): Delete.
1588 (lower_oacc_reductions): New.
1589 (lower_reduction_clauses): Don't handle OpenACC reductions here.
1590 (lower_oacc_head_tail): Call lower_oacc_reductions.
1591 (oacc_gimple_assign, oacc_init_reduction_array,
1592 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1593 oacc_process_reduction_data): Delete.
1594 (lower_omp_target): Remove old OpenACC reduction handling. Insert
1595 dummy OpenACC gang reduction for reductions at outer level.
1596 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1597 (default_goacc_reduction): New.
1598 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1599
1600 2015-11-04 Martin Liska <mliska@suse.cz>
1601
1602 * cgraphunit.c (cgraph_node::expand_thunk): Call
1603 allocate_struct_function before init_function_start.
1604 (cgraph_node::expand): Use push_cfun and pop_cfun.
1605 * config/i386/i386.c (ix86_code_end): Call
1606 allocate_struct_function before init_function_start.
1607 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1608 * function.c (init_function_start): Move preamble to all
1609 callers.
1610 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1611 (execute_one_pass): Handle newly added TODO_discard_function.
1612 (execute_pass_list_1): Terminate if cfun equals to NULL.
1613 (execute_pass_list): Do not push and pop cfun, expect that
1614 cfun is set.
1615 * tree-pass.h (TODO_discard_function): Define.
1616
1617 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1618
1619 * cfganal.c (inverted_post_order_compute): Remove conditional
1620 compilation, use flag_checking.
1621 * config.in: Regenerate.
1622 * configure: Regenerate.
1623 * configure.ac: Remove ENABLE_CHECKING.
1624 * genconditions.c: Do not #undef ENABLE_CHECKING.
1625 * sese.h (bb_in_region): Comment out broken check.
1626 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1627 conditional compilation, use flag_checking.
1628
1629 2015-11-04 Tom de Vries <tom@codesourcery.com>
1630
1631 PR tree-optimization/67742
1632 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1633 field.
1634 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1635 (create_variable_info_for_1): Add and handle handle_param parameter.
1636 Add restrict handling.
1637 (create_variable_info_for): Call create_variable_info_for_1 with extra
1638 arg.
1639 (make_param_constraints): Drop restrict_name parameter. Ignore
1640 vi->only_restrict_pointers.
1641 (intra_create_variable_infos): Call create_variable_info_for_1 with
1642 extra arg. Remove restrict handling. Call make_param_constraints with
1643 one fewer arg.
1644
1645 2015-11-04 Tom de Vries <tom@codesourcery.com>
1646
1647 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1648 variable.
1649
1650 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1651
1652 * config/arm/coff.h: Remove.
1653
1654 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
1655
1656 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1657 check for aggregate types and beef up comment for mode check.
1658
1659 2015-11-03 Richard Biener <rguenther@suse.de>
1660
1661 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1662 data references here.
1663 * tree-vect-loop.c: Include cgraph.h.
1664 (vect_analyze_loop_2): Collect data references here.
1665 * tree-vect-slp.c (find_bb_location): Inline ...
1666 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
1667 Factor in vect_slp_transform_bb.
1668 (vect_slp_transform_bb): Removed.
1669 (vect_slp_analyze_bb_1): Collect data references here.
1670 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1671 vect_slp_bb.
1672 * tree-vectorizer.h (vect_slp_bb): Declare.
1673 (vect_slp_analyze_bb): Remove.
1674 (vect_slp_transform_bb): Remove.
1675 (find_bb_location): Remove.
1676 (vect_analyze_data_refs): Remove stmt count reference parameter.
1677
1678 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
1679
1680 * multiple_target.c (create_dispatcher_calls): Add target check
1681 on ifunc.
1682 (create_target_clone): Change assembler name for versioned declarations.
1683
1684 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1685 Chung-Lin Tang <cltang@codesourcery.com>
1686
1687 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1688 * omp-low.c (check_omp_nesting_restrictions): Allow
1689 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1690 contexts.
1691
1692 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
1693
1694 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1695 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1696 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1697 builtin.
1698 (vmulxq_f32): Likewise.
1699 (vmulx_f64): New.
1700 (vmulxq_f64): Rewrite to call fmulx builtin.
1701 (vmulxs_f32): Likewise.
1702 (vmulxd_f64): Likewise.
1703 (vmulx_lane_f32): Remove.
1704 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1705
1706 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
1707
1708 * config/aarch64/aarch64.md (*movhf_aarch64): Use
1709 aarch64_reg_or_fp_zero for second operand.
1710
1711 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
1712
1713 * gimple-expr.c: Include hash-set.h and rtl.h.
1714 (mark_addressable_queue): New var.
1715 (mark_addressable): Factor actual marking into...
1716 (mark_addressable_1): ... this. Queue it up during expand.
1717 (mark_addressable_2): New.
1718 (flush_mark_addressable_queue): New.
1719 * gimple-expr.h (flush_mark_addressable_queue): Declare.
1720 * cfgexpand.c: Include gimple-expr.h.
1721 (pass_expand::execute): Flush mark_addressable queue.
1722
1723 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
1724
1725 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1726 bb_no_side_effects_p tests...
1727 (tree_ssa_ifcombine_bb): ... here.
1728
1729 PR tree-optimization/68083
1730 * tree-ssa-ifcombine.c: Include tree-ssa.h.
1731 (bb_no_side_effects_p): Test for undefined uses too.
1732 * tree-ssa.c (gimple_uses_undefined_value_p): New.
1733 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1734
1735 2015-11-02 Jeff Law <law@redhat.com>
1736
1737 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1738 cases where the loop latch edge is in the middle of an FSM path.
1739
1740 2015-11-03 Tom de Vries <tom@codesourcery.com>
1741
1742 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1743 (make_param_constraints): ... this. Add and handle restrict_name
1744 parameter. Handle is_full_var case.
1745 (intra_create_variable_infos): Use make_param_constraints.
1746
1747 2015-11-03 Tom de Vries <tom@codesourcery.com>
1748
1749 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1750 make_copy_constraint call with make_constraint_from call.
1751
1752 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
1753
1754 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1755 PIE executables.
1756
1757 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
1758
1759 * builtins.h (fold_fma): Move to fold-const-call.h.
1760 * builtins.c: Include fold-const-call.h.
1761 (mathfn_built_in_2): New function, split out from...
1762 (mathfn_built_in_1): ...here.
1763 (do_real_to_int_conversion, fold_const_builtin_pow)
1764 (fold_const_builtin_logb, fold_const_builtin_significand)
1765 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1766 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1767 (fold_builtin_sincos): Use fold_const_call to handle constants.
1768 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1769 checks for ERROR_MARK. Use fold_const_call to handle constant
1770 folds for math functions.
1771 (fold_fma): Move to fold-const-call.c.
1772 * fold-const.c: Include fold-const-call.h.
1773 * Makefile.in (OBJS): Add fold-const-call.o.
1774 (PLUGIN_HEADERS): Add fold-const-call.h.
1775 * realmpfr.h (real_from_mpfr): Allow the format to be specified
1776 directly.
1777 * realmpfr.c (real_from_mpfr): Likewise.
1778 * fold-const-call.h, fold-const-call.c: New files.
1779
1780 2015-11-02 Julian Brown <julian@codesourcery.com>
1781
1782 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
1783 brackets and semicolon.
1784
1785 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
1786
1787 Revert:
1788 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1789
1790 PR tree-optimization/65963
1791 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1792 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1793
1794 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
1795
1796 PR middle-end/68166
1797 * fold-const.c: Include "md5.h".
1798
1799 2015-11-01 Jeff Law <law@redhat.com>
1800
1801 * vmsdbgout.c: Revert unused header file reduction patch.
1802
1803 * config/mcore/mcore.c: Include regs.h.
1804
1805 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1806
1807 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
1808
1809 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1810
1811 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
1812 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
1813 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
1814
1815 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
1816
1817 * ggc-common.c: Restore needed header for checking=release.
1818
1819 2015-10-31 Tom de Vries <tom@codesourcery.com>
1820
1821 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
1822
1823 2015-10-31 Tom de Vries <tom@codesourcery.com>
1824
1825 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
1826 existing varinfo for arguments.
1827
1828 2015-10-31 Tom de Vries <tom@codesourcery.com>
1829
1830 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
1831 create_function_info_for. Dump constraints generated during
1832 create_function_info_for. Move intra_create_variable_infos call and
1833 function-return-values-escape bit to ...
1834 (create_function_info_for): ... here, and merge
1835 intra_create_variable_infos call with argument loop. Add and handle
1836 nonlocal_p parameter.
1837
1838 2015-10-31 Tom de Vries <tom@codesourcery.com>
1839
1840 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
1841 updating is alap, and seperated from preceding code. Make sure
1842 insert_vi_for_tree is seperated from surrounding code.
1843
1844 2015-10-31 Tom de Vries <tom@codesourcery.com>
1845
1846 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
1847
1848 2015-10-30 Jeff Law <law@redhat.com>
1849 Nathan Sidwell <nathan@acm.org>
1850
1851 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
1852 args.
1853 (MOVE_MAX): Set to 8.
1854
1855 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
1856
1857 * cgraph.c: Include context.h for offloading.
1858 * varpool.c: Include context.h and omp-low.h.
1859
1860 2015-10-30 Anatoly Sokolov <aesok@post.ru>
1861
1862 * rtl.h (contains_symbol_ref_p): Declare.
1863 (SYMBOL_REF_P): Define.
1864 * rtlanal.c (contains_symbol_ref_p: New function.
1865 * lra-constraints.c (contains_symbol_ref_p): Remove.
1866 * var-tracking.c (contains_symbol_ref): Remove.
1867 (track_expr_p): Use contains_symbol_ref_p instead of
1868 contains_symbol_ref.
1869
1870 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
1871
1872 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
1873 * fold-const.c (get_array_ctor_element_at_index): New.
1874 (fold): Remove binary-search through CONSTRUCTOR, call previous.
1875
1876 * fold-const.h (get_array_ctor_element_at_index): New.
1877
1878 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1879
1880 * Makefile.in (OBJS): Add multiple_target.o.
1881 * attrib.c (make_attribute): Moved from config/i386/i386.c
1882 * config/i386/i386.c (make_attribute): Deleted.
1883 * multiple_target.c (create_dispatcher_calls): New.
1884 (get_attr_len): Ditto.
1885 (get_attr_str): Ditto.
1886 (separate_attrs): Ditto.
1887 (is_valid_asm_symbol): Ditto.
1888 (create_new_asm_name): Ditto.
1889 (create_target_clone): Ditto.
1890 (expand_target_clones): Ditto.
1891 (ipa_target_clone): Ditto.
1892 (ipa_dispatcher_calls): Ditto.
1893 * passes.def (pass_target_clone): Two new ipa passes.
1894 * tree-pass.h (make_pass_target_clone): Ditto.
1895 * doc/extend.texi (target_clones): New attribute description.
1896
1897 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
1898
1899 PR rtl-optimization/68106
1900 * lra-remat.c (input_regno_present_p): Process hard regs
1901 explicitly present in machine description insns.
1902 (call_used_input_regno_present_p): Ditto.
1903 (calculate_gen_cands): Ditto.
1904 (do_remat): Ditto.
1905
1906 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
1907
1908 * config/arm/neon-testgen.ml: Fix comment typo.
1909
1910 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1911
1912 * rtlanal.c (reg_set_p): Expand function comment.
1913
1914 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
1915
1916 * alias.c: Remove unused headers.
1917 * asan.c: Likewise.
1918 * attribs.c: Likewise.
1919 * auto-inc-dec.c: Likewise.
1920 * auto-profile.c: Likewise.
1921 * bb-reorder.c: Likewise.
1922 * bitmap.c: Likewise.
1923 * bt-load.c: Likewise.
1924 * builtins.c: Likewise.
1925 * caller-save.c: Likewise.
1926 * calls.c: Likewise.
1927 * ccmp.c: Likewise.
1928 * cfg.c: Likewise.
1929 * cfganal.c: Likewise.
1930 * cfgbuild.c: Likewise.
1931 * cfgcleanup.c: Likewise.
1932 * cfgexpand.c: Likewise.
1933 * cfghooks.c: Likewise.
1934 * cfgloop.c: Likewise.
1935 * cfgloopanal.c: Likewise.
1936 * cfgloopmanip.c: Likewise.
1937 * cfgrtl.c: Likewise.
1938 * cgraph.c: Likewise.
1939 * cgraphbuild.c: Likewise.
1940 * cgraphclones.c: Likewise.
1941 * cgraphunit.c: Likewise.
1942 * cilk-common.c: Likewise.
1943 * combine-stack-adj.c: Likewise.
1944 * combine.c: Likewise.
1945 * compare-elim.c: Likewise.
1946 * convert.c: Likewise.
1947 * coverage.c: Likewise.
1948 * cppbuiltin.c: Likewise.
1949 * cprop.c: Likewise.
1950 * cse.c: Likewise.
1951 * cselib.c: Likewise.
1952 * data-streamer-in.c: Likewise.
1953 * data-streamer-out.c: Likewise.
1954 * data-streamer.c: Likewise.
1955 * dbxout.c: Likewise.
1956 * dce.c: Likewise.
1957 * ddg.c: Likewise.
1958 * debug.c: Likewise.
1959 * df-core.c: Likewise.
1960 * df-problems.c: Likewise.
1961 * df-scan.c: Likewise.
1962 * dfp.c: Likewise.
1963 * dojump.c: Likewise.
1964 * dominance.c: Likewise.
1965 * domwalk.c: Likewise.
1966 * double-int.c: Likewise.
1967 * dse.c: Likewise.
1968 * dumpfile.c: Likewise.
1969 * dwarf2asm.c: Likewise.
1970 * dwarf2cfi.c: Likewise.
1971 * dwarf2out.c: Likewise.
1972 * emit-rtl.c: Likewise.
1973 * except.c: Likewise.
1974 * explow.c: Likewise.
1975 * expmed.c: Likewise.
1976 * expr.c: Likewise.
1977 * final.c: Likewise.
1978 * fixed-value.c: Likewise.
1979 * fold-const.c: Likewise.
1980 * function.c: Likewise.
1981 * fwprop.c: Likewise.
1982 * gcse.c: Likewise.
1983 * generic-match-head.c: Likewise.
1984 * ggc-common.c: Likewise.
1985 * gimple-builder.c: Likewise.
1986 * gimple-expr.c: Likewise.
1987 * gimple-fold.c: Likewise.
1988 * gimple-iterator.c: Likewise.
1989 * gimple-low.c: Likewise.
1990 * gimple-match-head.c: Likewise.
1991 * gimple-pretty-print.c: Likewise.
1992 * gimple-ssa-isolate-paths.c: Likewise.
1993 * gimple-ssa-strength-reduction.c: Likewise.
1994 * gimple-streamer-in.c: Likewise.
1995 * gimple-streamer-out.c: Likewise.
1996 * gimple-walk.c: Likewise.
1997 * gimple.c: Likewise.
1998 * gimplify-me.c: Likewise.
1999 * gimplify.c: Likewise.
2000 * godump.c: Likewise.
2001 * graph.c: Likewise.
2002 * graphds.c: Likewise.
2003 * haifa-sched.c: Likewise.
2004 * hw-doloop.c: Likewise.
2005 * ifcvt.c: Likewise.
2006 * init-regs.c: Likewise.
2007 * internal-fn.c: Likewise.
2008 * ipa-chkp.c: Likewise.
2009 * ipa-comdats.c: Likewise.
2010 * ipa-cp.c: Likewise.
2011 * ipa-devirt.c: Likewise.
2012 * ipa-icf-gimple.c: Likewise.
2013 * ipa-icf.c: Likewise.
2014 * ipa-inline-analysis.c: Likewise.
2015 * ipa-inline-transform.c: Likewise.
2016 * ipa-inline.c: Likewise.
2017 * ipa-polymorphic-call.c: Likewise.
2018 * ipa-profile.c: Likewise.
2019 * ipa-prop.c: Likewise.
2020 * ipa-pure-const.c: Likewise.
2021 * ipa-ref.c: Likewise.
2022 * ipa-reference.c: Likewise.
2023 * ipa-split.c: Likewise.
2024 * ipa-utils.c: Likewise.
2025 * ipa-visibility.c: Likewise.
2026 * ipa.c: Likewise.
2027 * ira-build.c: Likewise.
2028 * ira-color.c: Likewise.
2029 * ira-conflicts.c: Likewise.
2030 * ira-costs.c: Likewise.
2031 * ira-emit.c: Likewise.
2032 * ira-lives.c: Likewise.
2033 * ira.c: Likewise.
2034 * jump.c: Likewise.
2035 * langhooks.c: Likewise.
2036 * lcm.c: Likewise.
2037 * lists.c: Likewise.
2038 * loop-doloop.c: Likewise.
2039 * loop-init.c: Likewise.
2040 * loop-invariant.c: Likewise.
2041 * loop-iv.c: Likewise.
2042 * loop-unroll.c: Likewise.
2043 * lower-subreg.c: Likewise.
2044 * lra-assigns.c: Likewise.
2045 * lra-coalesce.c: Likewise.
2046 * lra-constraints.c: Likewise.
2047 * lra-eliminations.c: Likewise.
2048 * lra-lives.c: Likewise.
2049 * lra-remat.c: Likewise.
2050 * lra-spills.c: Likewise.
2051 * lra.c: Likewise.
2052 * lto-cgraph.c: Likewise.
2053 * lto-compress.c: Likewise.
2054 * lto-opts.c: Likewise.
2055 * lto-section-in.c: Likewise.
2056 * lto-section-out.c: Likewise.
2057 * lto-streamer-in.c: Likewise.
2058 * lto-streamer-out.c: Likewise.
2059 * lto-streamer.c: Likewise.
2060 * mcf.c: Likewise.
2061 * mode-switching.c: Likewise.
2062 * modulo-sched.c: Likewise.
2063 * optabs.c: Likewise.
2064 * opts-global.c: Likewise.
2065 * passes.c: Likewise.
2066 * plugin.c: Likewise.
2067 * postreload-gcse.c: Likewise.
2068 * postreload.c: Likewise.
2069 * predict.c: Likewise.
2070 * print-tree.c: Likewise.
2071 * profile.c: Likewise.
2072 * real.c: Likewise.
2073 * realmpfr.c: Likewise.
2074 * recog.c: Likewise.
2075 * ree.c: Likewise.
2076 * reg-stack.c: Likewise.
2077 * regcprop.c: Likewise.
2078 * reginfo.c: Likewise.
2079 * regrename.c: Likewise.
2080 * regstat.c: Likewise.
2081 * reload.c: Likewise.
2082 * reload1.c: Likewise.
2083 * reorg.c: Likewise.
2084 * resource.c: Likewise.
2085 * rtl-chkp.c: Likewise.
2086 * rtl-error.c: Likewise.
2087 * rtlanal.c: Likewise.
2088 * rtlhooks.c: Likewise.
2089 * sanopt.c: Likewise.
2090 * sched-deps.c: Likewise.
2091 * sched-ebb.c: Likewise.
2092 * sched-rgn.c: Likewise.
2093 * sdbout.c: Likewise.
2094 * sel-sched-dump.c: Likewise.
2095 * sel-sched-ir.c: Likewise.
2096 * sel-sched.c: Likewise.
2097 * sese.c: Likewise.
2098 * shrink-wrap.c: Likewise.
2099 * simplify-rtx.c: Likewise.
2100 * stack-ptr-mod.c: Likewise.
2101 * statistics.c: Likewise.
2102 * stmt.c: Likewise.
2103 * stor-layout.c: Likewise.
2104 * store-motion.c: Likewise.
2105 * stringpool.c: Likewise.
2106 * symtab.c: Likewise.
2107 * target-globals.c: Likewise.
2108 * targhooks.c: Likewise.
2109 * toplev.c: Likewise.
2110 * tracer.c: Likewise.
2111 * trans-mem.c: Likewise.
2112 * tree-affine.c: Likewise.
2113 * tree-call-cdce.c: Likewise.
2114 * tree-cfg.c: Likewise.
2115 * tree-cfgcleanup.c: Likewise.
2116 * tree-chkp-opt.c: Likewise.
2117 * tree-chkp.c: Likewise.
2118 * tree-chrec.c: Likewise.
2119 * tree-complex.c: Likewise.
2120 * tree-data-ref.c: Likewise.
2121 * tree-dfa.c: Likewise.
2122 * tree-diagnostic.c: Likewise.
2123 * tree-dump.c: Likewise.
2124 * tree-eh.c: Likewise.
2125 * tree-emutls.c: Likewise.
2126 * tree-if-conv.c: Likewise.
2127 * tree-inline.c: Likewise.
2128 * tree-into-ssa.c: Likewise.
2129 * tree-iterator.c: Likewise.
2130 * tree-loop-distribution.c: Likewise.
2131 * tree-nested.c: Likewise.
2132 * tree-nrv.c: Likewise.
2133 * tree-object-size.c: Likewise.
2134 * tree-outof-ssa.c: Likewise.
2135 * tree-parloops.c: Likewise.
2136 * tree-phinodes.c: Likewise.
2137 * tree-predcom.c: Likewise.
2138 * tree-pretty-print.c: Likewise.
2139 * tree-profile.c: Likewise.
2140 * tree-scalar-evolution.c: Likewise.
2141 * tree-sra.c: Likewise.
2142 * tree-ssa-address.c: Likewise.
2143 * tree-ssa-alias.c: Likewise.
2144 * tree-ssa-ccp.c: Likewise.
2145 * tree-ssa-coalesce.c: Likewise.
2146 * tree-ssa-copy.c: Likewise.
2147 * tree-ssa-dce.c: Likewise.
2148 * tree-ssa-dse.c: Likewise.
2149 * tree-ssa-forwprop.c: Likewise.
2150 * tree-ssa-ifcombine.c: Likewise.
2151 * tree-ssa-live.c: Likewise.
2152 * tree-ssa-loop-ch.c: Likewise.
2153 * tree-ssa-loop-im.c: Likewise.
2154 * tree-ssa-loop-ivcanon.c: Likewise.
2155 * tree-ssa-loop-ivopts.c: Likewise.
2156 * tree-ssa-loop-manip.c: Likewise.
2157 * tree-ssa-loop-niter.c: Likewise.
2158 * tree-ssa-loop-prefetch.c: Likewise.
2159 * tree-ssa-loop-unswitch.c: Likewise.
2160 * tree-ssa-loop.c: Likewise.
2161 * tree-ssa-math-opts.c: Likewise.
2162 * tree-ssa-operands.c: Likewise.
2163 * tree-ssa-phiopt.c: Likewise.
2164 * tree-ssa-phiprop.c: Likewise.
2165 * tree-ssa-pre.c: Likewise.
2166 * tree-ssa-propagate.c: Likewise.
2167 * tree-ssa-reassoc.c: Likewise.
2168 * tree-ssa-scopedtables.c: Likewise.
2169 * tree-ssa-sink.c: Likewise.
2170 * tree-ssa-strlen.c: Likewise.
2171 * tree-ssa-structalias.c: Likewise.
2172 * tree-ssa-tail-merge.c: Likewise.
2173 * tree-ssa-ter.c: Likewise.
2174 * tree-ssa-threadupdate.c: Likewise.
2175 * tree-ssa-uncprop.c: Likewise.
2176 * tree-ssa-uninit.c: Likewise.
2177 * tree-ssa.c: Likewise.
2178 * tree-ssanames.c: Likewise.
2179 * tree-stdarg.c: Likewise.
2180 * tree-streamer-in.c: Likewise.
2181 * tree-streamer-out.c: Likewise.
2182 * tree-streamer.c: Likewise.
2183 * tree-switch-conversion.c: Likewise.
2184 * tree-tailcall.c: Likewise.
2185 * tree-vect-data-refs.c: Likewise.
2186 * tree-vect-generic.c: Likewise.
2187 * tree-vect-loop-manip.c: Likewise.
2188 * tree-vect-loop.c: Likewise.
2189 * tree-vect-patterns.c: Likewise.
2190 * tree-vect-slp.c: Likewise.
2191 * tree-vect-stmts.c: Likewise.
2192 * tree-vectorizer.c: Likewise.
2193 * tree-vrp.c: Likewise.
2194 * tree.c: Likewise.
2195 * tsan.c: Likewise.
2196 * ubsan.c: Likewise.
2197 * value-prof.c: Likewise.
2198 * var-tracking.c: Likewise.
2199 * varasm.c: Likewise.
2200 * varpool.c: Likewise.
2201 * vmsdbgout.c: Likewise.
2202 * vtable-verify.c: Likewise.
2203 * web.c: Likewise.
2204 * wide-int-print.cc: Likewise.
2205 * wide-int.cc: Likewise.
2206 * xcoffout.c: Likewise.
2207
2208 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
2209
2210 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2211 between pass numbering and execution order.
2212
2213 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2214
2215 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2216 check for dependencies.
2217
2218 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2219
2220 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2221 CDI_DOMINATORS.
2222
2223 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2224
2225 * real.h (format_helper): New.
2226 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2227 (real_from_target, real_nan, real_2expN, real_value_truncate)
2228 (significand_size, real_from_string2, exact_real_inverse)
2229 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2230 (real_round, real_isinteger, real_from_integer): Replace
2231 machine_mode arguments with format_helper arguments.
2232 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2233 (real_from_integer, real_nan, real_2expN, real_convert)
2234 (real_value_truncate, exact_real_truncate, real_to_target)
2235 (real_from_target, significand_size, real_powi, real_trunc)
2236 (real_floor, real_ceil, real_round, real_isinteger): Replace
2237 machine_mode arguments with format_helper arguments.
2238 (real_to_target_fmt, real_from_target_fmt): Delete.
2239 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2240 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2241 argument with real_format.
2242 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2243
2244 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2245
2246 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2247 (fixed_to_decimal, fixed_convert_from_real)
2248 (real_convert_from_fixed): Fix mode arguments to real_2expN.
2249
2250 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2251
2252 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2253 SCALAR_FLOAT_MODE_P.
2254
2255 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2256
2257 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2258 (completely_scalarize): Comment zero-length arrays.
2259 (get_access_replacement): Correct comment re. precondition.
2260
2261 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2262
2263 * config/i386/i386.c (get_builtin_code_for_version): Set priority
2264 for PROCESSOR_ZNVER1.
2265 (enum processor_model): Add M_AMDFAM17H_znver1.
2266 (struct arch_names_table): Likewise.
2267 * doc/extend.texi: ADD znver1.
2268
2269 2015-10-30 Richard Biener <rguenther@suse.de>
2270
2271 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2272 fold () on single RHSs. Allow CONSTRUCTORS with trailing
2273 zeros to be folded to VECTOR_CSTs.
2274 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2275 * fold-const.c (fold): Use build_vector_from_ctor.
2276
2277 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
2278
2279 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2280 "mov %0.h[0], %1.h[0] to "neon_move".
2281 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2282 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2283 "mov_imm".
2284 (*cmovsi_insn_uxtw): Likewise.
2285
2286 2015-10-30 Tom de Vries <tom@codesourcery.com>
2287
2288 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2289 unsigned, and initialize, and use initial value instead of hardcoded
2290 constant. Add generic constraints dumping section. Don't dump global
2291 initializers constraints dumping section if empty. Don't update
2292 variable from if unused.
2293
2294 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2295
2296 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2297 flag_checking and/or CHECKING_P to eliminate conditional compilation
2298 on ENABLE_CHECKING.
2299 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2300 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2301 * config/i386/i386.c (ix86_print_operand_address): Likewise.
2302 (output_387_binary_op): Likewise.
2303 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2304 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2305 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2306 Likewise.
2307 * config/rs6000/rs6000.h: Likewise.
2308 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2309
2310 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
2311
2312 * config/sh/sh.opt (mfdpic): Add missing period.
2313
2314 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2315
2316 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2317 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2318 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2319 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2320 mcore_base_register_rtx_p, mcore_legitimate_index_p,
2321 mcore_legitimate_address_p): New functions.
2322 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2323
2324 2015-10-29 Jeff Law <law@redhat.com>
2325
2326 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2327 method.
2328 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2329 * tree-ssa-threadedge.c
2330 (record_temporary_equivalences_from_stmts_at_dest): Remove
2331 backedge_seen argument and associated code which invalidated
2332 equivalences based on the value of that argument.
2333 (thread_through_normal_block): Corresponding changes.
2334
2335 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2336
2337 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2338 function earlier in the file.
2339 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2340 df_regs_ever_live_p.
2341
2342 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2343
2344 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2345 by ignoring it.
2346
2347 2015-10-29 Richard Henderson <rth@redhat.com>
2348
2349 PR target/68124
2350 PR rtl-opt/67609
2351 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2352 sse check to the exact conditions of PR 67609.
2353
2354 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2355
2356 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2357 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2358 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2359 of the traditional names that TFmode uses for handling IEEE
2360 extended double. If -mfloat128, add KFmode functions for all of
2361 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2362 make TFmode use the same emulation functions as KFmode.
2363 (init_float128_ibm): Likewise.
2364 (init_float128_ieee): Likewise.
2365 (rs6000_generate_compare): For IEEE 128-bit floating point
2366 comparisons, call the unordered comparison function instead of the
2367 ordered comparison function.
2368 (rs6000_expand_float128_convert): Deal with operands that are
2369 memory operands. Restructure the code to use a switch statement on
2370 the mode. Add support for TFmode defaulting to either IBM extended
2371 double or IEEE 128-bit floating point. If the underlying types are
2372 the same, use a move instead of a conversion function.
2373 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2374 use for IEEE 128-bit floating point constants with -mfloat128.
2375 (rs6000_c_mode_for_suffix): Likewise.
2376 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2377 128-bit floating point with IBM extended double floating point.
2378 (rs6000_invalid_binary_op): Likewise.
2379 (rs6000_gen_le_vsx_permute): On little endian systems generate a
2380 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2381 types that can go in vector registers.
2382 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2383 point types that can go in vector registers on little endian
2384 PowerPC systems.
2385 (mark_swaps_for_removal): Likewise.
2386 (rs6000_analyze_swaps): Likewise.
2387 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2388
2389 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2390 rework IEEE 128-bit floating point insns to deal with TFmode being
2391 either IBM extended double or IEEE 128-bit floating point.
2392 (IFKF): Likewise.
2393 (IBM128): Update iterator to add condition that the mode is IBM
2394 extended double.
2395 (IEEE128): New iterator for IEEE 128-bit floating point.
2396 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2397 (FLOAT128): Likewise.
2398 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2399 iterator.
2400 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2401 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2402 instead of hard coding TFmode or KFmode.
2403 (negtf2_internal): Likewise.
2404 (neg<mode>2_internal): Likewise.
2405 (abs<mode>2): Likewise.
2406 (abstf2_internal): Likewise.
2407 (abs<mode>2_internal): Likewise.
2408 (ieee_128bit_neg<mode>2): Likewise.
2409 (ieee_128bit_neg<mode>2_internal): Likewise.
2410 (ieee_128bit_abs<mode>2): Likewise.
2411 (ieee_128bit_abs<mode>2_internal): Likewise.
2412 (ieee_128bit_nabs<mode>2): Likewise.
2413 (ieee_128bit_nabs<mode>2_internal): Likewise.
2414 (extendiftf2): Add explicit conversions between 128-bit floating
2415 point types. Drop the old conversions that had become unwieldy.
2416 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2417 (extendifkf2): Likewise.
2418 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2419 (extendtfkf2): Likewise.
2420 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2421 (trunciftf2): Likewise.
2422 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2423 (truncifkf2): Likewise.
2424 (float<SDI:mode><IFKF:mode>2): Likewise.
2425 (trunckftf2): Likewise.
2426 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2427 (trunctfif2): Likewise.
2428 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2429 (extenddftf2): Rework 128-bit floating point conversions to
2430 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2431 KFmode expanders into one function.
2432 (extenddf<mode>2): Likewise.
2433 (extenddftf2_fprs): Likewise.
2434 (extenddf<mode>2_fprs): Likewise.
2435 (extenddftf2_vsx): Likewise.
2436 (extenddf<mode>2_vsx): Likewise.
2437 (extendsftf2): Likewise.
2438 (extendsf<mode>2): Likewise.
2439 (trunctfdf2): Likewise.
2440 (trunc<mode>df2): Likewise.
2441 (trunctfdf2_internal1): Likewise.
2442 (trunc<mode>df2_internal1): Likewise.
2443 (trunctfdf2_internal2): Likewise.
2444 (trunc<mode>df2_internal2): Likewise.
2445 (trunctfsf2): Likewise.
2446 (trunc<mode>sf2): Likewise.
2447 (trunctfsf2_fprs): Likewise.
2448 (trunc<mode>sf2_fprs): Likewise.
2449 (floatsit2f): Likewise.
2450 (floatsi<mode>2): Likewise.
2451 (fix_trunc_helper): Likewise.
2452 (fix_trunc_helper<mode>): Likewise.
2453 (fix_trunctfsi2): Likewise.
2454 (fix_trunc<mode>si2): Likewise.
2455 (fix_trunctfsi2_fprs): Likewise.
2456 (fix_trunc<mode>si2_fprs): Likewise.
2457 (fix_trunctfsi2_internal): Likewise.
2458 (fix_trunc<mode>si2_internal): Likewise.
2459 (fix_trunctfdi2): Likewise.
2460 (fix_trunc<mode>di2): Likewise.
2461 (fixuns_trunctf<mode>2): Likewise.
2462 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2463 (floatditf2): Likewise.
2464 (floatdi<mode>2): Likewise.
2465 (floatuns<mode>tf2): Likewise.
2466 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2467 (cmptf_internal1): Use a mode iterator to add support for both
2468 types (IFmode, TFmode) that support IBM extended double.
2469 (cmp<mode>_internal1): Likewise.
2470 (cmptf_internal2): Likewise.
2471 (cmp<mode>_internal2): Likewise.
2472
2473 * doc/extend.texi (Floating Types): Document __ibm128 and
2474 __float128 on PowerPC.
2475
2476 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2477 -mfloat128 and -mno-float128.
2478
2479 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2480
2481 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
2482 floating point modes that can go in vector registers.
2483 (MODES_TIEABLE_P): Move tests for vector modes before tests for
2484 scalar floating point, so that IEEE 128-bit floating point that
2485 can go in vector registers bind with vectors and not FP.
2486 (struct rs6000_args): Add libcall field.
2487
2488 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
2489 and -mfloat128-software switches. Replace them with a binary
2490 -mfloat128 switch.
2491 (-mfloat128): Likewise.
2492
2493 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
2494 128-bit floating point types in GPRs, even if the appropriate
2495 option enabling the type was not used.
2496 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
2497 debugging.
2498 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
2499 pre-decrement on IEEE 128-bit floating point values.
2500 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
2501 is IEEE 128-bit floating point.
2502 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
2503 128-bit floating point types that can go in vector registers.
2504 (rs6000_option_override_internal): Change -mfloat128-none and
2505 -mfloat128-software to -mfloat128, and move code to be near other
2506 VSX option handling.
2507 (rs6000_option_override_internal): Disable -mfloat128 if we don't
2508 have the Altivec ABI.
2509 (rs6000_init_builtins): Don't make TFmode use either IFmode or
2510 KFmode floating point nodes. Instead, have three separate nodes.
2511 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
2512 eventually moving the long double default to IEEE 128-bit floating
2513 point.
2514 (rs6000_opt_masks): Add -mfloat128.
2515 (struct rs6000_opt_var): Fix typo in comment.
2516 (init_cumulative_args): Initialize libcall field in
2517 CUMULATIVE_ARGS.
2518 (rs6000_function_arg): Treat library functions as if they had
2519 prototypes to prevent IEEE 128-bit support functions from passing
2520 arguments in both GPRs and vector registers.
2521 (rs6000_arg_partial_bytes): Likewise.
2522
2523 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
2524 an option that can be turned on via -mcpu=<xxx>.
2525
2526 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
2527 longer used.
2528
2529 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2530 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
2531 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
2532 double is IBM extended double.
2533
2534 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
2535 SUBREGs.
2536
2537 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2538
2539 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
2540 * genconditions.c: Define CHECKING_P in the generated code.
2541 * genextract.c: Use flag_checking in insn_extract.
2542 * gengtype.c (main): Remove conditional compilation.
2543 * gengtype.h: Likewise.
2544
2545 2015-10-29 Jeff Law <law@redhat.com>
2546
2547 PR tree-optimization/67892
2548 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
2549 in comment.
2550 (thread_through_normal_block): If we have seen a backedge, then
2551 do nothing. No longer call find_jump_threads_backwards here.
2552 (thread_across_edge): Use find_jump_threads_backwards to find
2553 jump threads if the old style threader was not successful.
2554 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
2555 gsi_last_nondebug_bb. Return NULL if the block does not end
2556 with a control statement.
2557 (find_jump_threads_backwards): Setup code moved here from
2558 tree-ssa-threadedge.c::thread_through_normal_block. Accept
2559 single edge argument instead of name & block.
2560 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
2561 prototype.
2562
2563 2015-10-29 Tom de Vries <tom@codesourcery.com>
2564
2565 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
2566 types.
2567
2568 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
2569
2570 * omp-low.c (lower_omp_target): Remove unreachable code & merge
2571 ifs.
2572
2573 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
2574
2575 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2576
2577 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2578
2579 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2580 guard_bb0 and use guard_bb throughout.
2581
2582 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2583
2584 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2585 unnecessary label.
2586
2587 2015-10-29 Richard Biener <rguenther@suse.de>
2588
2589 PR middle-end/68142
2590 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2591 overflow.
2592
2593 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
2594
2595 * alias.c: Reorder #include statements and remove duplicates.
2596 * asan.c: Likewise.
2597 * attribs.c: Likewise.
2598 * auto-inc-dec.c: Likewise.
2599 * auto-profile.c: Likewise.
2600 * bb-reorder.c: Likewise.
2601 * bt-load.c: Likewise.
2602 * builtins.c: Likewise.
2603 * caller-save.c: Likewise.
2604 * calls.c: Likewise.
2605 * ccmp.c: Likewise.
2606 * cfg.c: Likewise.
2607 * cfganal.c: Likewise.
2608 * cfgbuild.c: Likewise.
2609 * cfgcleanup.c: Likewise.
2610 * cfgexpand.c: Likewise.
2611 * cfghooks.c: Likewise.
2612 * cfgloop.c: Likewise.
2613 * cfgloopanal.c: Likewise.
2614 * cfgloopmanip.c: Likewise.
2615 * cfgrtl.c: Likewise.
2616 * cgraph.c: Likewise.
2617 * cgraphbuild.c: Likewise.
2618 * cgraphclones.c: Likewise.
2619 * cgraphunit.c: Likewise.
2620 * cilk-common.c: Likewise.
2621 * combine-stack-adj.c: Likewise.
2622 * combine.c: Likewise.
2623 * compare-elim.c: Likewise.
2624 * convert.c: Likewise.
2625 * coverage.c: Likewise.
2626 * cppbuiltin.c: Likewise.
2627 * cprop.c: Likewise.
2628 * cse.c: Likewise.
2629 * cselib.c: Likewise.
2630 * data-streamer-in.c: Likewise.
2631 * data-streamer-out.c: Likewise.
2632 * data-streamer.c: Likewise.
2633 * dbxout.c: Likewise.
2634 * dce.c: Likewise.
2635 * ddg.c: Likewise.
2636 * debug.c: Likewise.
2637 * df-core.c: Likewise.
2638 * df-problems.c: Likewise.
2639 * df-scan.c: Likewise.
2640 * dfp.c: Likewise.
2641 * dojump.c: Likewise.
2642 * dominance.c: Likewise.
2643 * double-int.c: Likewise.
2644 * dse.c: Likewise.
2645 * dumpfile.c: Likewise.
2646 * dwarf2asm.c: Likewise.
2647 * dwarf2cfi.c: Likewise.
2648 * dwarf2out.c: Likewise.
2649 * emit-rtl.c: Likewise.
2650 * except.c: Likewise.
2651 * explow.c: Likewise.
2652 * expmed.c: Likewise.
2653 * expr.c: Likewise.
2654 * final.c: Likewise.
2655 * fixed-value.c: Likewise.
2656 * fold-const.c: Likewise.
2657 * function.c: Likewise.
2658 * fwprop.c: Likewise.
2659 * gcse.c: Likewise.
2660 * generic-match-head.c: Likewise.
2661 * ggc-common.c: Likewise.
2662 * gimple-builder.c: Likewise.
2663 * gimple-expr.c: Likewise.
2664 * gimple-fold.c: Likewise.
2665 * gimple-iterator.c: Likewise.
2666 * gimple-low.c: Likewise.
2667 * gimple-match-head.c: Likewise.
2668 * gimple-pretty-print.c: Likewise.
2669 * gimple-ssa-isolate-paths.c: Likewise.
2670 * gimple-ssa-strength-reduction.c: Likewise.
2671 * gimple-streamer-in.c: Likewise.
2672 * gimple-streamer-out.c: Likewise.
2673 * gimple-walk.c: Likewise.
2674 * gimple.c: Likewise.
2675 * gimplify-me.c: Likewise.
2676 * gimplify.c: Likewise.
2677 * godump.c: Likewise.
2678 * graph.c: Likewise.
2679 * graphite-poly.c: Likewise.
2680 * haifa-sched.c: Likewise.
2681 * hw-doloop.c: Likewise.
2682 * ifcvt.c: Likewise.
2683 * incpath.c: Likewise.
2684 * init-regs.c: Likewise.
2685 * internal-fn.c: Likewise.
2686 * ipa-chkp.c: Likewise.
2687 * ipa-comdats.c: Likewise.
2688 * ipa-cp.c: Likewise.
2689 * ipa-devirt.c: Likewise.
2690 * ipa-icf-gimple.c: Likewise.
2691 * ipa-icf.c: Likewise.
2692 * ipa-inline-analysis.c: Likewise.
2693 * ipa-inline-transform.c: Likewise.
2694 * ipa-inline.c: Likewise.
2695 * ipa-polymorphic-call.c: Likewise.
2696 * ipa-profile.c: Likewise.
2697 * ipa-prop.c: Likewise.
2698 * ipa-pure-const.c: Likewise.
2699 * ipa-ref.c: Likewise.
2700 * ipa-reference.c: Likewise.
2701 * ipa-split.c: Likewise.
2702 * ipa-utils.c: Likewise.
2703 * ipa-visibility.c: Likewise.
2704 * ipa.c: Likewise.
2705 * ira-build.c: Likewise.
2706 * ira-color.c: Likewise.
2707 * ira-conflicts.c: Likewise.
2708 * ira-costs.c: Likewise.
2709 * ira-emit.c: Likewise.
2710 * ira-lives.c: Likewise.
2711 * ira.c: Likewise.
2712 * jump.c: Likewise.
2713 * langhooks.c: Likewise.
2714 * lcm.c: Likewise.
2715 * lists.c: Likewise.
2716 * loop-doloop.c: Likewise.
2717 * loop-init.c: Likewise.
2718 * loop-invariant.c: Likewise.
2719 * loop-iv.c: Likewise.
2720 * loop-unroll.c: Likewise.
2721 * lower-subreg.c: Likewise.
2722 * lra-assigns.c: Likewise.
2723 * lra-coalesce.c: Likewise.
2724 * lra-constraints.c: Likewise.
2725 * lra-eliminations.c: Likewise.
2726 * lra-lives.c: Likewise.
2727 * lra-remat.c: Likewise.
2728 * lra-spills.c: Likewise.
2729 * lra.c: Likewise.
2730 * lto-cgraph.c: Likewise.
2731 * lto-compress.c: Likewise.
2732 * lto-opts.c: Likewise.
2733 * lto-section-in.c: Likewise.
2734 * lto-section-out.c: Likewise.
2735 * lto-streamer-in.c: Likewise.
2736 * lto-streamer-out.c: Likewise.
2737 * lto-streamer.c: Likewise.
2738 * mode-switching.c: Likewise.
2739 * modulo-sched.c: Likewise.
2740 * omp-low.c: Likewise.
2741 * optabs.c: Likewise.
2742 * opts-global.c: Likewise.
2743 * passes.c: Likewise.
2744 * plugin.c: Likewise.
2745 * postreload-gcse.c: Likewise.
2746 * postreload.c: Likewise.
2747 * predict.c: Likewise.
2748 * print-tree.c: Likewise.
2749 * profile.c: Likewise.
2750 * real.c: Likewise.
2751 * realmpfr.c: Likewise.
2752 * recog.c: Likewise.
2753 * ree.c: Likewise.
2754 * reg-stack.c: Likewise.
2755 * regcprop.c: Likewise.
2756 * reginfo.c: Likewise.
2757 * regrename.c: Likewise.
2758 * regstat.c: Likewise.
2759 * reload.c: Likewise.
2760 * reload1.c: Likewise.
2761 * reorg.c: Likewise.
2762 * resource.c: Likewise.
2763 * rtl-chkp.c: Likewise.
2764 * rtl-error.c: Likewise.
2765 * rtlanal.c: Likewise.
2766 * rtlhooks.c: Likewise.
2767 * sanopt.c: Likewise.
2768 * sched-deps.c: Likewise.
2769 * sched-ebb.c: Likewise.
2770 * sched-rgn.c: Likewise.
2771 * sese.c: Likewise.
2772 * shrink-wrap.c: Likewise.
2773 * simplify-rtx.c: Likewise.
2774 * stack-ptr-mod.c: Likewise.
2775 * statistics.c: Likewise.
2776 * stmt.c: Likewise.
2777 * stor-layout.c: Likewise.
2778 * store-motion.c: Likewise.
2779 * stringpool.c: Likewise.
2780 * symtab.c: Likewise.
2781 * target-globals.c: Likewise.
2782 * targhooks.c: Likewise.
2783 * toplev.c: Likewise.
2784 * tracer.c: Likewise.
2785 * trans-mem.c: Likewise.
2786 * tree-affine.c: Likewise.
2787 * tree-call-cdce.c: Likewise.
2788 * tree-cfg.c: Likewise.
2789 * tree-cfgcleanup.c: Likewise.
2790 * tree-chkp-opt.c: Likewise.
2791 * tree-chkp.c: Likewise.
2792 * tree-chrec.c: Likewise.
2793 * tree-complex.c: Likewise.
2794 * tree-data-ref.c: Likewise.
2795 * tree-dfa.c: Likewise.
2796 * tree-diagnostic.c: Likewise.
2797 * tree-dump.c: Likewise.
2798 * tree-eh.c: Likewise.
2799 * tree-emutls.c: Likewise.
2800 * tree-if-conv.c: Likewise.
2801 * tree-inline.c: Likewise.
2802 * tree-into-ssa.c: Likewise.
2803 * tree-iterator.c: Likewise.
2804 * tree-loop-distribution.c: Likewise.
2805 * tree-nested.c: Likewise.
2806 * tree-nrv.c: Likewise.
2807 * tree-object-size.c: Likewise.
2808 * tree-outof-ssa.c: Likewise.
2809 * tree-parloops.c: Likewise.
2810 * tree-phinodes.c: Likewise.
2811 * tree-predcom.c: Likewise.
2812 * tree-pretty-print.c: Likewise.
2813 * tree-profile.c: Likewise.
2814 * tree-scalar-evolution.c: Likewise.
2815 * tree-sra.c: Likewise.
2816 * tree-ssa-address.c: Likewise.
2817 * tree-ssa-alias.c: Likewise.
2818 * tree-ssa-ccp.c: Likewise.
2819 * tree-ssa-coalesce.c: Likewise.
2820 * tree-ssa-copy.c: Likewise.
2821 * tree-ssa-dce.c: Likewise.
2822 * tree-ssa-dom.c: Likewise.
2823 * tree-ssa-dse.c: Likewise.
2824 * tree-ssa-forwprop.c: Likewise.
2825 * tree-ssa-ifcombine.c: Likewise.
2826 * tree-ssa-live.c: Likewise.
2827 * tree-ssa-loop-ch.c: Likewise.
2828 * tree-ssa-loop-im.c: Likewise.
2829 * tree-ssa-loop-ivcanon.c: Likewise.
2830 * tree-ssa-loop-ivopts.c: Likewise.
2831 * tree-ssa-loop-manip.c: Likewise.
2832 * tree-ssa-loop-niter.c: Likewise.
2833 * tree-ssa-loop-prefetch.c: Likewise.
2834 * tree-ssa-loop-unswitch.c: Likewise.
2835 * tree-ssa-loop.c: Likewise.
2836 * tree-ssa-math-opts.c: Likewise.
2837 * tree-ssa-operands.c: Likewise.
2838 * tree-ssa-phiopt.c: Likewise.
2839 * tree-ssa-phiprop.c: Likewise.
2840 * tree-ssa-pre.c: Likewise.
2841 * tree-ssa-propagate.c: Likewise.
2842 * tree-ssa-reassoc.c: Likewise.
2843 * tree-ssa-sccvn.c: Likewise.
2844 * tree-ssa-scopedtables.c: Likewise.
2845 * tree-ssa-sink.c: Likewise.
2846 * tree-ssa-strlen.c: Likewise.
2847 * tree-ssa-structalias.c: Likewise.
2848 * tree-ssa-tail-merge.c: Likewise.
2849 * tree-ssa-ter.c: Likewise.
2850 * tree-ssa-threadedge.c: Likewise.
2851 * tree-ssa-threadupdate.c: Likewise.
2852 * tree-ssa-uncprop.c: Likewise.
2853 * tree-ssa-uninit.c: Likewise.
2854 * tree-ssa.c: Likewise.
2855 * tree-ssanames.c: Likewise.
2856 * tree-stdarg.c: Likewise.
2857 * tree-streamer-in.c: Likewise.
2858 * tree-streamer-out.c: Likewise.
2859 * tree-streamer.c: Likewise.
2860 * tree-switch-conversion.c: Likewise.
2861 * tree-tailcall.c: Likewise.
2862 * tree-vect-data-refs.c: Likewise.
2863 * tree-vect-generic.c: Likewise.
2864 * tree-vect-loop-manip.c: Likewise.
2865 * tree-vect-loop.c: Likewise.
2866 * tree-vect-patterns.c: Likewise.
2867 * tree-vect-slp.c: Likewise.
2868 * tree-vect-stmts.c: Likewise.
2869 * tree-vectorizer.c: Likewise.
2870 * tree-vrp.c: Likewise.
2871 * tree.c: Likewise.
2872 * tsan.c: Likewise.
2873 * ubsan.c: Likewise.
2874 * value-prof.c: Likewise.
2875 * var-tracking.c: Likewise.
2876 * varasm.c: Likewise.
2877 * varpool.c: Likewise.
2878 * vtable-verify.c: Likewise.
2879 * web.c: Likewise.
2880 * wide-int-print.cc: Likewise.
2881 * wide-int.cc: Likewise.
2882 * xcoffout.c: Likewise.
2883
2884 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
2885
2886 * Makefile.in (NO_PIE_CFLAGS): New.
2887 (NO_PIE_FLAG): Likewise.
2888 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2889 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2890 (BUILD_NO_PIE_CFLAGS): Likewise.
2891 (BUILD_NO_PIE_FLAG): Likewise.
2892 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2893 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2894 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2895 $(BUILD_NO_PIE_CFLAGS).
2896 (BUILD_CXXFLAGS): Likewise.
2897 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2898 $(BUILD_NO_PIE_FLAG).
2899 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
2900 (BUILD_NO_PIE_FLAG): Likewise.
2901 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2902 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2903 * configure: Regenerated.
2904
2905 2015-10-29 Richard Biener <rguenther@suse.de>
2906
2907 PR middle-end/56956
2908 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2909 unsigned conditonal negation to ABS_EXPR.
2910
2911 2015-10-29 Richard Biener <rguenther@suse.de>
2912
2913 * gimple-match-head.c (gimple_simplify): Remove premature checking
2914 of builtin_decl_implicit of function calls we simplify.
2915
2916 2015-10-29 Bin Cheng <bin.cheng@arm.com>
2917
2918 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2919 (get_computation_cost_at): Ditto.
2920 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2921 and inv_expr_id.
2922
2923 2015-10-28 Tom de Vries <tom@codesourcery.com>
2924
2925 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2926 superfluous code.
2927
2928 2015-10-28 Jason Merrill <jason@redhat.com>
2929
2930 * Makefile.in (TAGS): Include libcpp and libiberty.
2931
2932 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2933
2934 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2935 (extract_omp_for_data): Remove OpenACC special handling of
2936 chunking.
2937
2938 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2939 (struct parallel): Update comment.
2940 (nvptx_reorg): Likewise.
2941 (nvptx_neuter): Cleanup whitespace.
2942
2943 2015-10-28 Richard Henderson <rth@redhat.com>
2944
2945 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2946
2947 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2948
2949 PR target/67839
2950 * config/avr/predicates.md (low_io_address_operand): Don't
2951 consider MODE when computing upper bound.
2952 (io_address_operand): Likewise.
2953
2954 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
2955
2956 * fold-const.c (operand_equal_p): Do not verify that types are
2957 compatible for MEM_REFs.
2958
2959 2015-10-28 Richard Biener <rguenther@suse.de>
2960
2961 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2962 in simplifying VEC_COND_EXPR conditions.
2963
2964 2015-10-28 Tom de Vries <tom@codesourcery.com>
2965
2966 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2967 into vi_next of a full_var.
2968
2969 2015-10-28 Tom de Vries <tom@codesourcery.com>
2970
2971 * tree-ssa-structalias.c (new_var_info, make_heapvar)
2972 (make_constraint_from_restrict, make_constraint_from_global_restrict)
2973 (create_function_info_for, create_variable_info_for_1)
2974 (create_variable_info_for): Add and handle add_id parameter.
2975 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2976 (init_base_vars): Add extra argument to calls to new_var_info.
2977 (get_vi_for_tree): Add extra argument to call to
2978 create_variable_info_for.
2979 (process_constraint, do_deref, process_all_all_constraints): Add extra
2980 argument to calls to new_scalar_tmp_constraint_exp.
2981 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2982 argument to calls to make_heapvar.
2983 (make_restrict_var_constraints): Add extra argument to call to
2984 make_constraint_from_global_restrict.
2985 (intra_create_variable_infos): Add extra argument to call to
2986 create_variable_info_for_1.
2987 (ipa_pta_execute): Add extra argument to call to
2988 create_function_info_for.
2989
2990 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2991
2992 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
2993 (sibcall_value): Likewise.
2994
2995 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2996
2997 * config/nvptx/nvptx.h (struct machine_function): Add
2998 axis_predicate.
2999 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
3000 nvptx_expand_oacc_join): Declare.
3001 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
3002 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
3003 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
3004 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
3005 UNSPECV_JOINING, UNSPECV_JOIN): New.
3006 (BITS, BITD): New mode iterators.
3007 (br_true_uni, br_false_uni): New.
3008 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
3009 (oacc_dim_size, oacc_dim_pos): New.
3010 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
3011 (oacc_fork, oacc_join): New.
3012 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
3013 (worker_load<mode>, worker_store<mode>): New.
3014 (nvptx_barsync): New.
3015 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
3016 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
3017 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
3018 worker_bcast_sym): New.
3019 (nvptx_option_override): Initialize worker broadcast buffer.
3020 (nvptx_emit_forking, nvptx_emit_joining): New.
3021 (nvptx_init_axis_predicate): New.
3022 (nvptx_declare_function_name): Init axis predicates.
3023 (nvptx_expand_call): Add fork/join markers around routine call.
3024 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
3025 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
3026 (nvptx_gen_vcast): New.
3027 (struct wcast_data_t): New.
3028 (enum propagate_mask): New.
3029 (nvptx_gen_wcast): New.
3030 (nvptx_print_operand): Add 'S' case.
3031 (struct parallel): New.
3032 (parallel::parallel, parallel::~parallel): New.
3033 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
3034 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
3035 nvptx_find_par, nvptx_discover_pars): New.
3036 (nvptx_propagate): New.
3037 (vprop_gen, nvptx_vpropagate): New.
3038 (wprop_gen, nvptx_wpropagate): New.
3039 (nvptx_wsync): New.
3040 (nvptx_single, nvptx_skip_par): New.
3041 (nvptx_process_pars, nvptx_neuter_pars): New.
3042 (ntptx_reorg): Split blocks, generate parallel structure, apply
3043 neutering.
3044 (nvptx_cannot_copy_insn_p): New.
3045 (nvptx_file_end): Emit worker broadcast decl.
3046 (nvptx_goacc_fork_join): New.
3047 (TARGET_CANNOT_COPY_INSN_P): Override.
3048 (TARGET_GOACC_FORK_JOIN): Override.
3049
3050 2015-10-28 Richard Biener <rguenther@suse.de>
3051
3052 * fold-const.c (negate_expr_p): Adjust the division case to
3053 properly avoid introducing undefined overflow.
3054 (fold_negate_expr): Likewise.
3055
3056 2015-10-28 Richard Biener <rguenther@suse.de>
3057
3058 PR tree-optimization/65962
3059 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3060 Avoid creating loop carried dependences also for outer loops
3061 of the loop a use to replace is in.
3062
3063 2015-10-28 Richard Biener <rguenther@suse.de>
3064
3065 * common.opt (fchecking): New flag controlling flag_checking.
3066 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
3067 * timevar.c (timer::print): Adjust output.
3068 * doc/invoke.texi (fchecking): Document.
3069
3070 2015-10-28 Richard Biener <rguenther@suse.de>
3071
3072 PR middle-end/68067
3073 * fold-const.c (negate_expr_p): We cannot negate plus or minus
3074 if overflow is not wrapping. Likewise multiplication unless
3075 one operand is constant and not power of two.
3076 (fold_negate_expr): Adjust accordingly.
3077
3078 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3079
3080 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
3081 fields.
3082 (is_oacc_parallel, is_oacc_kernels): New.
3083 (enclosing_target_ctx): May return NULL.
3084 (ctx_in_oacc_kernels_region): New.
3085 (check_oacc_kernel_gwv): New.
3086 (oacc_loop_or_target_p): Delete.
3087 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
3088 operands. Strip reductions fro kernels.
3089 (scan_omp_target): Don't calculate gwv mask.
3090 (lower_oacc_head_mark, lower_oacc_loop_marker,
3091 lower_oacc_head_tail): New.
3092 (struct oacc_collapse): New.
3093 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
3094 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3095 Remove OpenACC handling.
3096 (expand_oacc_for): New.
3097 (expand_omp_for): Call expand_oacc_for.
3098 (lower_omp_for): Call lower_oacc_head_tail.
3099
3100 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
3101
3102 * attribs.c (check_attribute_tables): New function, broken out from...
3103 (init_attributes): Use it.
3104 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
3105 gcc_checking_assert and checking_* functions to eliminate
3106 ENABLE_CHECKING conditionals.
3107 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
3108 (pass_expand::execute): Likewise.
3109 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
3110 * cgraphunit.c (mark_functions_to_output): Likewise.
3111 (cgraph_node::expand_thunk): Likewise.
3112 (symbol_table::compile): Likewise.
3113 * ddg.c (add_cross_iteration_register_deps): Likewise.
3114 (create_ddg_all_sccs): Likewise.
3115 * df-core.c (df_finish_pass, df_analyze): Likewise.
3116 * diagnostic-core.h: Likewise.
3117 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
3118 * dominance.c (calculate_dominance_info): Likewise.
3119 * dwarf2out.c (add_AT_die_ref): Likewise.
3120 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
3121 (loc_list_from_tree, gen_lexical_block_die): Likewise.
3122 gen_type_die_with_usage, gen_type_die): Likewise.
3123 (dwarf2out_decl): Likewise.
3124 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
3125 * except.c (duplicate_eh_regions): Likewise.
3126 * fwprop.c (register_active_defs, update_df_init): Likewise.
3127 (fwprop_init, fwprop_done): Likewise.
3128 (update_uses): Likewise.
3129 * ggc-page.c (ggc_grow): Likewise.
3130 * gimplify.c (gimplify_body): Likewise.
3131 (gimplify_hasher::equal): Likewise.
3132 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
3133 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
3134 Likewise.
3135 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
3136 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
3137 * hash-table.h (::find_empty_slot_for_expand): Likewise.
3138 * ifcvt.c (if_convert): Likewise.
3139 * ipa-cp.c (ipcp_propagate_stage): Likewise.
3140 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
3141 (odr_type_p, odr_types_equivalent_p): Likewise.
3142 (add_type_duplicate, get_odr_type): Likewise.
3143 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
3144 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3145 (sem_item_optimizer::verify_classes): Likewise.
3146 (sem_item_optimizer::traverse_congruence_split): Likewise.
3147 (sem_item_optimizer::checking_verify_classes): New.
3148 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
3149 method.
3150 * cfgrtl.c (commit_edge_insertions): Likewise.
3151 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
3152 (rtl_flow_call_edges_add): Likewise.
3153 * cgraph.c (symbol_table::create_edge): Likewise.
3154 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3155 * cgraph.h (symtab_node): Likewise.
3156 (symtab_node::checking_verify_symtab_nodes): Define.
3157 (cgraph_node::checking_verify_cgraph_nodes): Define.
3158 * cfghooks.h (checking_verify_flow_info): Define.
3159 * cfgloop.h (checking_verify_loop_structure): Define.
3160 * dominance.h (checking_verify_dominators): Define.
3161 * et-forest.c: Fix comment.
3162 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3163 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3164 ENABLE_CHECKING conditionals.
3165 * ipa-inline-transform.c (save_inline_function_body): Likewise.
3166 * ipa-inline.c (inline_small_functions): Likewise.
3167 (early_inliner): Likewise.
3168 * ipa-inline.h (estimate_edge_growth): Likewise.
3169 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3170 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3171 (ipa_single_use): Likewise.
3172 * ira-int.h: Likewise.
3173 * ira.c (ira): Likewise.
3174 * loop-doloop.c (doloop_optimize_loops): Likewise.
3175 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3176 * loop-invariant.c (move_loop_invariants): Likewise.
3177 * lra-assigns.c (lra_assign): Likewise.
3178 * lra-constraints.c (lra_constraints): Likewise.
3179 * lra-eliminations.c (lra_eliminate): Likewise.
3180 * lra-int.h (struct lra_reg): Likewise.
3181 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3182 (lra_create_live_ranges_1): Likewise.
3183 * lra-remat.c (create_remat_bb_data): Likewise.
3184 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3185 (lra): Likewise.
3186 (check_rtl): Always define. Remove incorrect guard around
3187 extract_constrain_insn call.
3188 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3189 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3190 ENABLE_CHECKING conditionals.
3191 * lto-streamer-out.c (DFS::DFS): Likewise.
3192 (lto_output): Likewise.
3193 * lto-streamer.c (lto_streamer_init): Likewise.
3194 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3195 expand_omp_target, execute_expand_omp): Likewise.
3196 (lower_omp_target): Likewise.
3197 * passes.c (execute_function_todo): Likewise.
3198 (execute_todo, execute_one_pass): Likewise.
3199 (verify_curr_properties): Always define.
3200 * predict.c (tree_estimate_probability: Use flag_checking,
3201 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3202 ENABLE_CHECKING conditionals.
3203 (propagate_freq): Likewise.
3204 * pretty-print.c (pp_format): Likewise.
3205 * real.c (real_to_decimal_for_mode): Likewise.
3206 * recog.c (split_all_insns): Likewise.
3207 * regcprop.c (kill_value_one_regno): Likewise.
3208 (copy_value): Likewise.
3209 (validate_value_data): Define unconditionally.
3210 * reload.c: Fix comment.
3211 * timevar.c: Include options.h
3212 * tree-ssa.h (checking_verify_ssa): Define.
3213 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3214 * sched-deps.c (CHECK): Remove unused macro.
3215 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3216 gcc_checking_assert and checking_* functions to eliminate
3217 ENABLE_CHECKING conditionals.
3218 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3219 * sel-sched.c (struct moveop_static_params): Likewise.
3220 (find_best_reg_for_expr, move_cond_jump): Likewise.
3221 (move_op_orig_expr_not_found): Likewise.
3222 (code_motion_process_successors, move_op): Likewise.
3223 * ssa-iterators.h (first_readonly_imm_use): Likewise.
3224 (next_readonly_imm_use): Likewise.
3225 * store-motion.c (compute_store_table): Likewise.
3226 * symbol-summary.h (function_summary::function_summary): Likewise.
3227 * target.h (cumulative_args_t): Likewise.
3228 (get_cumulative_args, pack_cumulative_args): Likewise.
3229 * timevar.c: (timer::print): Likewise.
3230 * trans-mem.c (ipa_tm_execute): Likewise.
3231 * tree-cfg.c (move_stmt_op): Likewise.
3232 (move_sese_region_to_fn): Likewise.
3233 (gimple_flow_call_edges_add): Likewise.
3234 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3235 Likewise.
3236 * tree-eh.c (remove_unreachable_handlers): Likewise.
3237 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3238 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3239 * tree-into-ssa.c (update_ssa): Likewise.
3240 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3241 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3242 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3243 * tree-predcom.c (suitable_component_p): Likewise.
3244 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3245 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3246 * tree-ssa-live.c (verify_live_on_entry): Likewise.
3247 * tree-ssa-live.h (register_ssa_partition): Likewise.
3248 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3249 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3250 (tree_transform_and_unroll_loop): Likewise.
3251 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3252 * tree-ssa-operands.c (get_expr_operands): Likewise.
3253 * tree-ssa-propagate.c (replace_exp_1): Likewise.
3254 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3255 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3256 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3257 * tree-ssanames.c (release_ssa_name_fn): Likewise.
3258 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3259 * tree-vect-loop-manip.c
3260 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3261 (slpeel_checking_verify_cfg_after_peeling): Likewise.
3262 (vect_do_peeling_for_loop_bound): Likewise.
3263 (vect_do_peeling_for_alignment): Likewise.
3264 * tree-vrp.c (supports_overflow_infinity): Likewise.
3265 (set_value_range): Likewise.
3266 * tree.c (free_lang_data_in_cgraph): Likewise.
3267 * value-prof.c (gimple_remove_histogram_value): Likewise.
3268 (free_hist): Likewise.
3269 * var-tracking.c (canonicalize_values_star): Likewise.
3270 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3271
3272 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3273
3274 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3275 IFN_GOACC_LOOP): New.
3276 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3277 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3278 IFN_UNIQUE_OACC_TAIL_MARK.
3279 (enum ifn_goacc_loop_kind): New.
3280 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3281 IFN_UNIQUE_OACC_JOIN cases.
3282 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3283 (expand_GOACC_LOOP): New.
3284 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3285 * omp-low.c: Include gimple-pretty-print.h.
3286 (struct oacc_loop): New.
3287 (enum oacc_loop_flags): New.
3288 (oacc_thread_numbers): New.
3289 (oacc_xform_loop): New.
3290 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3291 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3292 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3293 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3294 oacc_loop_discovery): New.
3295 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3296 oacc_loop_process): New.
3297 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3298 (execute_oacc_device_lower): Discover & process loops. Process
3299 internal fns.
3300 * target.def (goacc.fork_join): Change sense of hook, clarify
3301 documentation.
3302 * doc/tm.texi: Regenerated.
3303
3304 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3305
3306 * target-insns.def (oacc_fork, oacc_join): Define.
3307 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3308 (goacc.fork_join): New GOACC hook.
3309 * targhooks.h (default_goacc_fork_join): Declare.
3310 * omp-low.c (default_goacc_forkjoin): New.
3311 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3312 * doc/tm.texi: Regenerate.
3313
3314 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3315
3316 * omp-low.c (oacc_init_rediction_array): New.
3317 (oacc_initialize_reduction_data): Initialize array.
3318
3319 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3320
3321 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3322
3323 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3324
3325 * internal-fn.c (expand_UNIQUE): New.
3326 * internal-fn.h (enum ifn_unique_kind): New.
3327 * internal-fn.def (IFN_UNIQUE): New.
3328 * target-insns.def (unique): Define.
3329 * gimple.h (gimple_call_internal_unique_p): New.
3330 * gimple.c (gimple_call_same_target_p): Check internal fn
3331 uniqueness.
3332 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3333 * tree-ssa-threadedge.c
3334 (record_temporary_equivalences_from_stmts): Likewise.
3335 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3336
3337 2015-10-27 Richard Henderson <rth@redhat.com>
3338
3339 PR rtl-opt/67609
3340 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3341 narrowing subregs on SSE and MMX registers.
3342 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3343 appear to be sub-words of multi-register pseudos must be rejected.
3344 * doc/tm.texi: Regenerate.
3345
3346 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3347
3348 PR target/68102
3349 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3350 operands[0] is a reg before taking its REGNO in split condition.
3351 (*movdi_aarch64): Likewise.
3352
3353 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3354
3355 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3356 Handle floating point inner modes properly.
3357
3358 2015-10-27 Alan Hayward <alan.hayward@arm.com>
3359
3360 * tree-vect-looop.c
3361 (vectorizable_live_operation): Change iterator.
3362
3363 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3364 Aditya Kumar <aditya.k7@samsung.com>
3365
3366 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3367 function to schedule based on isl_schedule_node.
3368 (get_schedule_map_st): New schedule optimizer based on
3369 isl_schedule_node.
3370 (scop_get_domains): New. Return the isl_union_set containing the
3371 domains of all the pbbs.
3372 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3373
3374 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
3375
3376 PR target/67215
3377 * calls.c (prepare_call_address): Don't handle -fno-plt here.
3378 * config/i386/i386.c (ix86_expand_call): Generate indirect call
3379 via GOT for -fno-plt. Support indirect call via GOT for x32.
3380 * config/i386/predicates.md (sibcall_memory_operand): Allow
3381 GOT memory operand.
3382
3383 2015-10-27 Richard Biener <rguenther@suse.de>
3384
3385 PR tree-optimization/68104
3386 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3387 strided access check ...
3388 (vect_compute_data_refs_alignment): ... here.
3389
3390 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
3391 Joseph Myers <joseph@codesourcery.com>
3392 Mark Shinwell <shinwell@codesourcery.com>
3393 Andrew Stubbs <ams@codesourcery.com>
3394 Rich Felker <dalias@libc.org>
3395
3396 * config.gcc: Handle --enable-fdpic.
3397 * config/sh/constraints.md (Ccl): New constraint.
3398 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3399 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3400 __SH_FDPIC__.
3401 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3402 library functions.
3403 * config/sh/sh-protos.h (function_symbol_result): New struct.
3404 (function_symbol): Return function_symbol_result.
3405 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3406 declarations.
3407 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3408 target hook.
3409 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3410 (sh_option_override): Force -fPIC if FDPIC is in effect.
3411 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3412 UNSPEC_GOTOFFFUNCDESC cases.
3413 (prepare_move_operands): Use FDPIC initial GOT register for
3414 TLS-related GOT access; inhibit cross-section address offset constants
3415 for FDPIC.
3416 (sh_assemble_integer): New function.
3417 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3418 PC-relative call sites.
3419 (expand_ashiftrt): Adapt invocation of function_symbol.
3420 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3421 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3422 UNSPEC_GOTOFFFUNCDESC.
3423 (legitimize_pic_address): Resolve function symbols to function
3424 descriptors for FDPIC. Do not use GOT-relative addressing for local
3425 data that may be read-only on FDPIC.
3426 (sh_emit_storesi, sh_emit_storehi): New functions.
3427 (sh_trampoline_init): Generate FDPIC trampolines.
3428 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3429 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3430 (sh_output_mi_thunk): Generate FDPIC call.
3431 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
3432 FDPIC, generate call site labels to use PC-relative addressing rather
3433 than GOT-relative addressing.
3434 (sh_conditional_register_usage): Make PIC register fixed and call used
3435 when FDPIC is in effect.
3436 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3437 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3438 sh_get_fdpic_reg_initial_val): New functions.
3439 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3440 Handle -mfdpic.
3441 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3442 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3443 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3444 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3445 FDPIC_SELF_SPECS.
3446 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3447 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3448 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3449 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3450 constants.
3451 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3452 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3453 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3454 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3455 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3456 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3457 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3458 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3459 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3460 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3461 block_move_real, block_lump_real, block_move_real_i4,
3462 block_lump_real_i4): Add support for FDPIC calls.
3463 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3464 call_value_pop): Adjust for new function_symbol signature.
3465 * config/sh/sh.opt (-mfdpic): New option.
3466 * doc/install.texi (Options specification): Document --enable-fdpic.
3467 * doc/invoke.texi (SH Options): Document -mfdpic.
3468
3469
3470 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
3471
3472 PR tree-optimization/65963
3473 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3474 LSHIFT_EXPRs as equivalent MULT_EXPRs.
3475
3476 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3477
3478 PR target/67929
3479 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
3480 * config/arm/constraints.md (Dp): Update callsite.
3481 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
3482
3483 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3484
3485 * builtins.c (fold_builtin_load_exponent): Rename to...
3486 (fold_const_builtin_load_exponent): ...this and only handle
3487 constant arguments.
3488 (fold_builtin_2): Update accordingly.
3489 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
3490
3491 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3492
3493 * builtins.c (fold_builtin_logb): Rename to...
3494 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
3495 (fold_builtin_significand): Rename to...
3496 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
3497 (fold_builtin_1): Update accordingly.
3498
3499 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3500
3501 * builtins.c (fold_builtin_fmin_fmax): Delete.
3502 (fold_builtin_2): Handle constant fmin and fmax arguments here.
3503 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
3504
3505 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
3506
3507 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
3508 for register extension into sign and zero register extension.
3509 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
3510 for sign and zero register extension.
3511 (cortexa57_addrcost_table): Likewise.
3512 (xgene1_addrcost_table): Likewise.
3513
3514 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3515
3516 * fold-const.c (fold_minmax): Delete.
3517 (fold_binary_loc): Don't call it.
3518 * match.pd: Add rules previously handled by fold_minmax.
3519
3520 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3521
3522 * builtins.c (fold_builtin_fma): Remove constant handling.
3523 (fold_builtin_3): Handle constant fma arguments here.
3524
3525 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3526
3527 * builtins.c (fold_builtin_fabs): Remove constant handling.
3528 (fold_builtin_abs): Likewise.
3529
3530 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3531
3532 * builtins.c (fold_builtin_copysign): Delete.
3533 (fold_builtin_2): Handle constant copysign arguments here.
3534 * match.pd: Add rules previously handled by fold_builtin_copysign.
3535
3536 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3537
3538 * builtins.c (fold_builtin_signbit): Delete.
3539 (fold_builtin_2): Handle constant signbit arguments here.
3540 * match.pd: Add rules previously handled by fold_builtin_signbit.
3541
3542 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3543
3544 * match.pd: Handle sqrt(x) cmp 0 specially.
3545
3546 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
3547
3548 * tree-vect-generic.c (expand_vector_operations_1): Check
3549 optab type before using it.
3550
3551 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3552
3553 * config/aarch64/aarch64-protos.h
3554 (struct tune_params): Add autoprefetcher_model field.
3555 * config/aarch64/aarch64.c: Include params.h
3556 (generic_tunings): Specify autoprefetcher_model value.
3557 (cortexa53_tunings): Likewise.
3558 (cortexa57_tunings): Likewise.
3559 (cortexa72_tunings): Likewise.
3560 (thunderx_tunings): Likewise.
3561 (xgene1_tunings): Likewise.
3562 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
3563 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
3564 (aarch64_override_options_internal): Set
3565 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
3566
3567 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3568
3569 * builtins.c (fold_builtin_exponent): Delete.
3570 (fold_builtin_2): Handle constant expN arguments here.
3571 * match.pd: Fold expN(logN(x)) -> x.
3572
3573 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3574
3575 * builtins.c (fold_builtin_powi): Delete.
3576 (fold_builtin_2): Handle constant powi arguments here.
3577 * match.pd: Add rules previously handled by fold_builtin_powi.
3578
3579 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3580
3581 * builtins.c (fold_builtin_pow): Delete in favor of...
3582 (fold_const_builtin_pow): ...this new function. Only handle constant
3583 arguments.
3584 (fold_builtin_2): Update accordingly.
3585 * match.pd: Add rules previously handled by fold_builtin_pow.
3586
3587 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3588
3589 * builtins.c (fold_builtin_hypot): Delete.
3590 (fold_builtin_2): Handle constant hypot arguments here.
3591 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
3592 hypot(x, x) to fabs(x)*sqrt(2).
3593
3594 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3595
3596 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3597 instead of make_ssa_name if not yet in SSA form.
3598
3599 2015-10-27 Richard Biener <rguenther@suse.de>
3600
3601 * cfg.c (free_edge): Add function argument and use it instead of cfun.
3602 (clear_edges): Likewise.
3603 * cfg.h (clear_edges): Adjust prototype.
3604 * cfgexpand.c (pass_expand::execute): Adjust.
3605 * cfgloop.c (release_recorded_exits): Add function argument and use
3606 it instead of cfun.
3607 * cfgloop.h (release_recorded_exits): Adjust prototype.
3608 (loops_state_satisfies_p): Add overload with function argument.
3609 (loops_state_set): Likewise.
3610 (loops_state_clear): Likewise.
3611 (struct loop_iterator): Add function argument to constructor
3612 and iterator and use it instead of cfun.
3613 (FOR_EACH_LOOP_FN): New macro.
3614 (loop_optimizer_finalize): Add overload with function argument.
3615 * loop-init.c (loop_optimizer_init): Adjust.
3616 (fix_loop_structure): Likewise.
3617 (loop_optimizer_finaliz): Add function argument and use it
3618 instead of cfun.
3619 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3620 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3621 * cgraph.c (release_function_body): Do not push/pop cfun.
3622 * final.c (rest_of_clean_state): Adjust.
3623 * graphite.c (graphite_finalize): Likewise.
3624 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3625 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3626 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3627 (tree_unroll_loops_completely): Likewise.
3628 (pass_complete_unrolli::execute): Likewise.
3629 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3630 Add function argument and use it instead of cfun.
3631 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3632 Adjust prototype.
3633 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3634 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3635 instead of cfun.
3636 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3637 * tree-ssanames.c (fini_ssanames): Add function argument and use it
3638 instead of cfun.
3639 * tree-ssanames.c (fini_ssanames): Adjust prototype.
3640 * tree-vrp.c (execute_vrp): Adjust.
3641 * value-prof.c (free_histograms): Add function argument and use it
3642 instead of cfun.
3643 * value-prof.h (free_histograms): Adjust prototype.
3644
3645 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3646
3647 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3648 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3649 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
3650
3651 2015-10-27 Tom de Vries <tom@codesourcery.com>
3652
3653 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3654 field_type.
3655
3656 2015-10-27 Bin Cheng <bin.cheng@arm.com>
3657
3658 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3659 (inv_can_prop_to_addr_use): New function.
3660 (record_use): Call can_prop_to_addr_uses, set the new field.
3661 (get_inv_cost): Count cost if inv can't be propagated into its
3662 address uses.
3663
3664 2015-10-26 Doug Evans <dje@google.com>
3665
3666 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3667
3668 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
3669
3670 * match.pd (fold_widened_comparison): Apply simplifications to all
3671 integral types.
3672
3673 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
3674
3675 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3676 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3677 * doc/tm.texi: Regenerated.
3678 * reorg.c (dbr_schedule): Use new hook.
3679 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3680
3681 2015-10-26 Jeff Law <law@redhat.com>
3682
3683 PR tree-optimization/68013
3684 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3685 Make sure the first block in the path is in VISITED_BBs.
3686
3687 2015-10-26 Richard Biener <rguenther@suse.de>
3688 Dominik Vogt <vogt@linux.vnet.ibm.com>
3689
3690 PR middle-end/67443
3691 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3692 Properly prune ref->ref for accesses outside of ref.
3693
3694 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3695
3696 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3697 new statements to be inserted if inplace. Allow calls to have
3698 nonempty sequences.
3699
3700 2015-10-26 Richard Biener <rguenther@suse.de>
3701
3702 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3703 (do_valueize): New function.
3704 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3705 replace_uses_by.
3706 * tree-ssa-threadedge.c: Remove builtins.h include, include
3707 gimple-fold.h
3708 (fold_assignment_stmt): Remove.
3709 (threadedge_valueize): New function.
3710 (record_temporary_equivalences_from_stmts): Use
3711 gimple_fold_stmt_to_constant_1, note additional cleanup
3712 opportunities.
3713
3714 2015-10-26 Richard Biener <rguenther@suse.de>
3715
3716 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3717 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3718
3719 2015-10-26 Alan Hayward <alan.hayward@arm.com>
3720
3721 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3722 VEC_COND_EXPR types.
3723
3724 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3725
3726 * auto-inc-dec.c (insert_move_insn_before): Delete.
3727 (attempt_change): Remember to cost the simple move in the
3728 FORM_PRE_ADD and FORM_POST_ADD cases.
3729
3730 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
3731
3732 PR target/68091
3733 * config/sh/sh.c (sh_vector_mode_supported_p): Use
3734 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3735
3736 2015-10-26 Tom de Vries <tom@codesourcery.com>
3737
3738 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3739 factored out of ...
3740 (intra_create_variable_infos): ... here.
3741
3742 2015-10-26 Tom de Vries <tom@codesourcery.com>
3743
3744 * tree-ssa-structalias.c (intra_create_variable_infos): Add
3745 restrict_pointer_p and recursive_restrict_p variables.
3746
3747 2015-10-26 Tom de Vries <tom@codesourcery.com>
3748
3749 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3750 get_vi_for_tree call.
3751
3752 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3753
3754 PR middle-end/67989
3755 * optabs.c (expand_atomic_compare_and_swap): Handle case when
3756 ptarget_oval or ptarget_bool are const0_rtx.
3757
3758 2015-10-26 Christian Bruel <christian.bruel@st.com>
3759
3760 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3761 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3762 * cp/method.c (implicitly_declare_fn): Likewise.
3763 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3764 * java/class.c (add_method_1): Likewise.
3765
3766 2015-10-26 Richard Biener <rguenther@suse.de>
3767
3768 * alloc-pool.h (base_pool_allocator): Use placement new.
3769 (base_pool_allocator::remove): Likewise. Compute size outside of
3770 flag_checking.
3771
3772 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3773
3774 * builtins.c (do_real_to_int_conversion): New function.
3775 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
3776 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
3777 arguments here.
3778 * match.pd: Add rules previously handled by fold_fixed_mathfn
3779 and fold_builtin_int_roundingfn.
3780
3781 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3782
3783 * match.pd: Use macros to define built-in operator lists.
3784
3785 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
3786 Richard Biener <rguenther@suse.de>
3787
3788 * genmatch.c (dt_simplify::gen): Skip captures that are
3789 part of the result.
3790 (parser::parse_expr): Allow captures in results too.
3791 * builtins.c (fold_builtin_cexp): Delete.
3792 (fold_builtin_1): Handle constant cexp arguments here.
3793 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
3794
3795 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
3796
3797 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
3798 conditional compilation.
3799 (base_pool_allocator::remove): Use flag_checking.
3800
3801 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
3802
3803 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
3804
3805 PR middle-end/68079
3806 * dojump.c (do_compare_and_jump): Canonicalize both function and
3807 method types.
3808
3809 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
3810
3811 PR target/68084
3812 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
3813 for =@ccae.
3814
3815 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3816
3817 PR ipa/pr67600
3818 * ipa-polymorphic-call.c
3819 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
3820 instance offset with offset of outer type.
3821
3822 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3823
3824 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
3825
3826 2015-10-23 Caroline Tice <cmtice@google.com>
3827
3828 (from Richard Biener
3829 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
3830 call to iterative_hash_host_wide_int.
3831
3832 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3833
3834 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
3835 Define as yes.
3836
3837 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3838
3839 * tree-vect-generic.c (expand_vector_operations_1): Check
3840 optab exists before use it.
3841
3842 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3843
3844 * tree-vect-generic.c (expand_vector_condition): Avoid
3845 uninitialized variable warning.
3846
3847 2015-10-23 Jeff Law <law@redhat.com>
3848
3849 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
3850 here. Instead...
3851 (execute_todo): Call it here.
3852 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
3853 statistics
3854 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
3855
3856 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3857 Szabolcs Nagy <szabolcs.nagy@arm.com>
3858
3859 * config.gcc (enable_secureplt): Add *-linux*-musl*.
3860
3861 2015-10-23 Jeff Law <law@redhat.com>
3862
3863 PR tree-optimization/67830
3864 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3865 Explicitly verify the mask has no bits outside the type of
3866 the innermost operands.
3867
3868 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3869 Szabolcs Nagy <szabolcs.nagy@arm.com>
3870
3871 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3872 (MUSL_DYNAMIC_LINKER64): Define.
3873 (GNU_USER_DYNAMIC_LINKER32): Update.
3874 (GNU_USER_DYNAMIC_LINKER64): Update.
3875 (CHOOSE_DYNAMIC_LINKER): Update.
3876
3877 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3878 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3879 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3880 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3881 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3882 (CHOOSE_DYNAMIC_LINKER): Update.
3883 (INCLUDE_DEFAULTS): Redefine.
3884
3885 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3886
3887 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3888
3889 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3890 comparing addresses.
3891
3892 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3893
3894 * fold-const.c (operand_equal_p): Handle matching of vector
3895 constructors.
3896
3897 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3898
3899 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3900
3901 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
3902 Andrew Pinski <apinski@cavium.com>
3903
3904 PR rtl-optimization/67736
3905 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3906 of gen_lowpart.
3907
3908 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3909
3910 PR middle-end/68066
3911 * tree.c (build_truth_vector_type): Support BLK mode
3912 returned for boolean vector.
3913
3914 2015-10-23 Alan Hayward <alan.hayward@arm.com>
3915
3916 PR tree-optimization/65947
3917 * tree-vect-loop.c
3918 (vect_is_simple_reduction_1): Find condition reductions.
3919 (vect_model_reduction_cost): Add condition reduction costs.
3920 (get_initial_def_for_reduction): Add condition reduction initial var.
3921 (vect_create_epilog_for_reduction): Add condition reduction epilog.
3922 (vectorizable_reduction): Condition reduction support.
3923 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3924 * doc/sourcebuild.texi (Vector-specific attributes): Document
3925 vect_max_reduc
3926
3927 2015-10-23 Richard Biener <rguenther@suse.de>
3928
3929 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3930 and builtins.def.
3931
3932 2015-10-23 Richard Biener <rguenther@suse.de>
3933 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3934
3935 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3936 into (A ^ B) - B to match.pd
3937 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3938
3939 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3940 New simplifier.
3941 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3942 New simplifier.
3943 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3944 New simplifier.
3945 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3946 New simplifier.
3947 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3948 INTEGER_CST@1)): New simplifier.
3949
3950 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
3951
3952 * builtins.c (integer_valued_real_p): Move to fold-const.c.
3953 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3954 (fold_builtin_ceil, fold_builtin_round): Delete.
3955 (fold_builtin_1): Handle constant trunc, floor, ceil and round
3956 arguments here.
3957 * convert.c (convert_to_real): Remove narrowing of rounding
3958 functions.
3959 * fold-const.h (integer_valued_real_unary_p)
3960 (integer_valued_real_binary_p, integer_valued_real_call_p)
3961 (integer_valued_real_single_p, integer_valued_real_p): Declare.
3962 * fold-const.c (tree_single_nonnegative_warnv_p): Move
3963 name_registered_for_update_p check to SSA_NAME case statement.
3964 Don't call tree_simple_nonnegative_warnv_p for SSA names.
3965 (integer_valued_real_unary_p, integer_valued_real_binary_p)
3966 (integer_valued_real_call_p, integer_valued_real_single_p)
3967 (integer_valued_real_invalid_p): New functions.
3968 (integer_valued_real_p): Move from fold-const.c and rework
3969 to call the functions above. Handle SSA names.
3970 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3971 * gimple-fold.c (gimple_assign_integer_valued_real_p)
3972 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3973 (gimple_stmt_integer_valued_real_p): New functions.
3974 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3975 Fold f(x)->x for the same f if x is known to be integer-valued.
3976 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3977 the result. Canonicalize floor(x) as trunc(x) if x is
3978 nonnegative.
3979
3980 2015-10-23 Tom de Vries <tom@codesourcery.com>
3981
3982 * tree-ssa-structalias.c (intra_create_variable_infos): Use
3983 make_constraint_from.
3984
3985 2015-10-23 Tom de Vries <tom@codesourcery.com>
3986
3987 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
3988 setting of is_full_var in case of a single field.
3989
3990 2015-10-22 Martin Sebor <msebor@redhat.com>
3991
3992 PR driver/68043
3993 * config/i386/i386.opt: Add missing periods to the ends of sentences.
3994 * config/msp430/msp430.opt: Same.
3995
3996 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
3997
3998 * doc/extend.exp (Global Register Variables): Rewrite.
3999
4000 2015-10-22 Jeff Law <law@redhat.com>
4001
4002 * genattrtab.c (main): If we do not have any annul-true or annul-false
4003 slots, then write out a dummy eligible_for_annul_true or
4004 eligible_for_annul_false as needed.
4005
4006 2015-10-22 Nick Clifton <nickc@redhat.com>
4007
4008 * config/msp430/msp430.opt: Add -msilicon-errata and
4009 -msilicon-errata-warn.
4010 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
4011 assembler.
4012 * doc/invoke.texi: Document new options.
4013
4014 2015-10-22 Richard Biener <rguenther@suse.de>
4015
4016 PR tree-optimization/58497
4017 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
4018 (expand_vector_operations_1): Use it. Lower operations on
4019 all uniform vectors to scalar operations if the HW supports it.
4020
4021 2015-10-22 Richard Biener <rguenther@suse.de>
4022
4023 PR tree-optimization/19049
4024 PR tree-optimization/65962
4025 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
4026 to strided accesses if single-element interleaving doesn't work.
4027
4028 2015-10-22 Richard Biener <rguenther@suse.de>
4029
4030 PR middle-end/68046
4031 PR middle-end/61893
4032 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
4033 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
4034 (expand_unop): Likewise.
4035
4036 2015-10-22 Richard Biener <rguenther@suse.de>
4037
4038 * fold-const.c (fold_addr_of_array_ref_difference): Properly
4039 convert operands before folding a MINUS_EXPR.
4040 (fold_binary_loc): Move simplification of MINUS_EXPR on
4041 converted POINTER_PLUS_EXPRs ...
4042 * match.pd: ... here.
4043
4044 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4045
4046 * builtins.c (fold_builtin_tan): Delete.
4047 (fold_builtin_1): Handle constant tan arguments here.
4048 * match.pd: Simplify (tan (atan x)) to x.
4049
4050 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
4051
4052 * builtins.c (fold_builtin_cproj): Delete.
4053 (fold_builtin_1): Handle constant arguments here.
4054 (build_complex_cproj): Move and rename to...
4055 * tree.c: (build_complex_inf): ...this.
4056 * tree.h (build_complex_inf): Declare.
4057 * match.pd: Fold cproj(x)->x if x has no infinity.
4058 Use build_complex_inf for existing cproj rules.
4059
4060 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4061
4062 PR target/68015
4063 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
4064 already have a comparison result.
4065
4066 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4067
4068 PR target/63304
4069 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
4070 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
4071 (aarch64_classify_address): Likewise.
4072 (aarch64_secondary_reload): Likewise.
4073 (aarch64_override_options_after_change_1): Adjust.
4074 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
4075 Use aarch64_nopcrelative_literal_loads.
4076 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4077 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4078 Declare.
4079
4080 2015-10-21 Martin Sebor <msebor@redhat.com>
4081
4082 PR driver/68043
4083 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
4084 (print_filtered_help): Reference aliased option's name and encourage
4085 readers to use it in preference to the alias if the former is not
4086 documented. Mention when using an option is diagnosed.
4087 * gcc.c (display_help): End each sentence with a period.
4088
4089 * common.opt: End each sentence that describes an option with
4090 a period.
4091 * config/aarch64/aarch64.opt: Same.
4092 * config/alpha/alpha.opt: Same.
4093 * config/arc/arc.opt: Same.
4094 * config/arm/arm.opt: Same.
4095 * config/avr/avr.opt: Same.
4096 * config/bfin/bfin.opt: Same.
4097 * config/c6x/c6x.opt: Same.
4098 * config/cr16/cr16.opt: Same.
4099 * config/cris/cris.opt: Same.
4100 * config/cris/linux.opt: Same.
4101 * config/darwin.opt: Same.
4102 * config/epiphany/epiphany.opt: Same.
4103 * config/fr30/fr30.opt: Same.
4104 * config/frv/frv.opt: Same.
4105 * config/ft32/ft32.opt: Same.
4106 * config/g.opt: Same.
4107 * config/h8300/h8300.opt: Same.
4108 * config/i386/cygming.opt: Same.
4109 * config/i386/djgpp.opt: Same.
4110 * config/i386/i386.opt: Same.
4111 * config/i386/interix.opt: Same.
4112 * config/i386/mingw-w64.opt: Same.
4113 * config/i386/mingw.opt: Same.
4114 * config/ia64/ia64.opt: Same.
4115 * config/ia64/ilp32.opt: Same.
4116 * config/iq2000/iq2000.opt: Same.
4117 * config/linux.opt: Same.
4118 * config/lm32/lm32.opt: Same.
4119 * config/lynx.opt: Same.
4120 * config/m32c/m32c.opt: Same.
4121 * config/m32r/m32r.opt: Same.
4122 * config/m68k/ieee.opt: Same.
4123 * config/m68k/m68k.opt: Same.
4124 * config/mcore/mcore.opt: Same.
4125 * config/mep/mep.opt: Same.
4126 * config/microblaze/microblaze.opt: Same.
4127 * config/mips/mips.opt: Same.
4128 * config/mmix/mmix.opt: Same.
4129 * config/mn10300/mn10300.opt: Same.
4130 * config/moxie/moxie.opt: Same.
4131 * config/msp430/msp430.opt: Same.
4132 * config/nios2/elf.opt: Same.
4133 * config/nios2/nios2.opt: Same.
4134 * config/nvptx/nvptx.opt: Same.
4135 * config/pa/pa-hpux.opt: Same.
4136 * config/pa/pa-hpux1010.opt: Same.
4137 * config/pa/pa-hpux1111.opt: Same.
4138 * config/pa/pa-hpux1131.opt: Same.
4139 * config/pa/pa.opt: Same.
4140 * config/pa/pa64-hpux.opt: Same.
4141 * config/pdp11/pdp11.opt: Same.
4142 * config/rl78/rl78.opt: Same.
4143 * config/rs6000/476.opt: Same.
4144 * config/rs6000/aix64.opt: Same.
4145 * config/rs6000/darwin.opt: Same.
4146 * config/rs6000/linux64.opt: Same.
4147 * config/rs6000/rs6000.opt: Same.
4148 * config/rs6000/sysv4.opt: Same.
4149 * config/s390/s390.opt: Same.
4150 * config/s390/tpf.opt: Same.
4151 * config/sh/sh.opt: Same.
4152 * config/sol2.opt: Same.
4153 * config/sparc/long-double-switch.opt: Same.
4154 * config/sparc/sparc.opt: Same.
4155 * config/spu/spu.opt: Same.
4156 * config/stormy16/stormy16.opt: Same.
4157 * config/tilegx/tilegx.opt: Same.
4158 * config/tilepro/tilepro.opt: Same.
4159 * config/v850/v850.opt: Same.
4160 * config/vax/vax.opt: Same.
4161 * config/visium/visium.opt: Same.
4162 * config/vms/vms.opt: Same.
4163 * config/vxworks.opt: Same.
4164 * config/xtensa/xtensa.opt: Same.
4165
4166 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4167 Sebastian Pop <s.pop@samsung.com>
4168
4169 * graphite-scop-detection.c (parameter_index_in_region): Update call to
4170 invariant_in_sese_p_rec.
4171 * graphite-sese-to-poly.c (extract_affine): Same.
4172 * sese.c (invariant_in_sese_p_rec): Pass in an extra
4173 parameter has_vdefs.
4174 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4175 variable depends on virtual definitions in the current region.
4176 * sese.h (invariant_in_sese_p_rec): Update declaration.
4177
4178 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4179 Sebastian Pop <s.pop@samsung.com>
4180
4181 * graphite-scop-detection.c (build_scops): Do not handle scops
4182 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4183 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4184
4185 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
4186
4187 * config.in: Regenerate.
4188 * configure: Regenerate.
4189 * configure.ac (CHECKING_P): Define.
4190 * system.h: Use CHECKING_P.
4191
4192 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4193
4194 PR ipa/67056
4195 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4196 is negative we don't know the type.
4197 (check_stmt_for_type_change): Skip constructors of non-polymorphic
4198 types as those won't help devirutalization.
4199
4200 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4201
4202 * fold-const.c (operand_equal_p): Add code matching empty constructors.
4203
4204 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
4205
4206 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4207 comments.
4208 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4209 Add comments on sign of the result.
4210 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4211 Recurse on operand #1 instead of operand #0.
4212 <CEIL_MOD_EXPR>: Do not recurse.
4213 <ROUND_MOD_EXPR>: Likewise.
4214
4215 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4216
4217 * cfgrtl.c (pass_free_cfg::execute): Adjust.
4218 * final.c (dbr_sequence_length): Always define.
4219 (shorten_branches): Adjust.
4220 * genattr-common.c (main): Always define DELAY_SLOTS.
4221 * genattr.c (main): Unconditionally declare functions and define
4222 macros related to delay slots.
4223 * genattrtab.c (write_eligible_delay): Adjust.
4224 (main): Always write out delay slot functions.
4225 * opts.c (default_options_table): Adjust.
4226 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4227 (redirect_with_delay_list_safe_p): Likewise.
4228 (fill_simple_delay_slots): Likewise.
4229 (fill_slots_from_thread): Likewise.
4230 (make_return_insns): Likewise.
4231 (dbr_schedule): Likewise.
4232 (rest_of_handle_delay_slots): Likewise.
4233 (pass_delay_slots::gate): Likewise.
4234 * toplev.c (process_options): Likewise.
4235
4236 2015-10-21 Richard Henderson <rth@redhat.com>
4237
4238 * targhooks.c (default_addr_space_pointer_mode): Remove check
4239 for generic address space.
4240 (default_addr_space_address_mode): Likewise.
4241 (default_addr_space_valid_pointer_mode): Likewise.
4242 (default_addr_space_legitimate_address_p): Likewise.
4243 (default_addr_space_legitimize_address): Likewise.
4244 * target.def (addr_space.pointer_mode): Update documentation
4245 of default behavior.
4246 (addr_space.address_mode): Likewise.
4247 * tm.texi: Update.
4248
4249 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4250 address spaces.
4251
4252 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4253
4254 * builtins.c (fold_builtin_cabs): Delete.
4255 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4256 * match.pd: Add rules previously handled by fold_builtin_cabs.
4257
4258 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4259
4260 * fold-const.h (fold_strip_sign_ops): Delete.
4261 * fold-const.c (fold_strip_sign_ops): Likewise.
4262 (fold_unary_loc, fold_binary_loc): Remove calls to it.
4263 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4264 (fold_builtin_ccos): Delete.
4265 (fold_builtin_pow): Don't call fold_strip_sign_ops.
4266 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4267 Remove fndecl argument.
4268 (fold_builtin_1): Update calls accordingly. Handle constant
4269 cos, cosh, ccos and ccosh here.
4270
4271 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4272
4273 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4274 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4275 * common.opt (fssa-backprop): New option.
4276 * fold-const.h (negate_mathfn_p): Declare.
4277 * fold-const.c (negate_mathfn_p): Make public.
4278 * timevar.def (TV_TREE_BACKPROP): New.
4279 * tree-pass.h (make_pass_backprop): Declare.
4280 * passes.def (pass_backprop): Add.
4281 * gimple-ssa-backprop.c: New file.
4282
4283 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4284 Sebastian Pop <s.pop@samsung.com>
4285
4286 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4287 Do not call create_empty_if_region_on_edge when cond_expr is true.
4288 (translate_isl_ast_node_for): Check whether a guard has been generated.
4289
4290 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4291
4292 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4293 (operator=): Removed.
4294 (dr_info): Make alias_set number the last argument with default
4295 value of invalid_alias_set.
4296 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4297 of dr_info.
4298 (rewrite_reductions_out_of_ssa): Iterate only through the
4299 basic blocks which are inside region.
4300 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4301 * sese.h (struct sese_l): Removed assignment operator.
4302 (split_region_for_bb): Removed dead code.
4303
4304 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4305
4306 * graphite-poly.h (struct dr_info): Removed conversion constructor.
4307 (struct scop): Renamed scop::region to scop::scop_info
4308 (scop_set_region): Same.
4309 (SCOP_REGION): Removed
4310 (SCOP_CONTEXT): Removed.
4311 (POLY_SCOP_P): Removed.
4312 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4313 Rename scop->region to scop->scop_info.
4314 (add_parameters_to_ivs_params): Same.
4315 (graphite_regenerate_ast_isl): Same.
4316 * graphite-poly.c (new_scop): Same.
4317 (free_scop): Same.
4318 (print_scop_params): Same.
4319 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4320 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4321 (dot_all_scops_1): Rename scop->region to scop->scop_info.
4322 (scop_detection::nb_pbbs_in_loops): Same.
4323 (find_scop_parameters): Same.
4324 (try_generate_gimple_bb): Same.
4325 (gather_bbs::before_dom_children): Same.
4326 (gather_bbs::after_dom_children): Same.
4327 (build_scops): Same.
4328 * graphite-sese-to-poly.c (build_scop_scattering): Same.
4329 (extract_affine_chrec): Same.
4330 (extract_affine): Same.
4331 (set_scop_parameter_dim): Same.
4332 (build_loop_iteration_domains): Same.
4333 (create_pw_aff_from_tree): Same.
4334 (add_param_constraints): Same.
4335 (build_scop_iteration_domain): Same.
4336 (build_scop_drs): Same.
4337 (analyze_drs_in_stmts): Same.
4338 (insert_out_of_ssa_copy_on_edge): Same.
4339 (rewrite_close_phi_out_of_ssa):Same.
4340 (rewrite_reductions_out_of_ssa):Same.
4341 (handle_scalar_deps_crossing_scop_limits):Same.
4342 (rewrite_cross_bb_scalar_deps):Same.
4343 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4344 (build_poly_scop):Same.
4345 (build_alias_set): Use pointer to dr_info.
4346 * graphite.c (print_graphite_scop_statistics):
4347 (graphite_transform_loops):
4348 * sese.h (struct sese_l): Remove conversion constructor.
4349
4350 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4351
4352 PR middle-end/67966
4353 * tree.c (verify_type): Verify that TYPE_MODE match
4354 between TYPE_CANONICAL and type.
4355 * expr.c (store_expr_with_bounds): Revert my previous change.
4356 * expmed.c (store_bit_field_1): Revert prevoius change.
4357 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4358 to match for all types.
4359
4360 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
4361
4362 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4363 nesting.
4364
4365 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4366
4367 * doc/tm.texi: Regenerated.
4368 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4369 * stor-layout.c (layout_type): Use mode to get vector mask size.
4370 * target.def (get_mask_mode): New.
4371 * targhooks.c (default_get_mask_mode): New.
4372 * targhooks.h (default_get_mask_mode): New.
4373 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4374 for boolean vector.
4375 * tree.c (MAX_BOOL_CACHED_PREC): New.
4376 (nonstandard_boolean_type_cache): New.
4377 (build_nonstandard_boolean_type): New.
4378 (make_vector_type): Vector mask has no canonical type.
4379 (build_truth_vector_type): New.
4380 (build_same_sized_truth_vector_type): New.
4381 (truth_type_for): Support vector masks.
4382 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4383 (build_truth_vector_type): New.
4384 (build_same_sized_truth_vector_type): New.
4385 (build_nonstandard_boolean_type): New.
4386 * tree-cfg.c (verify_gimple_comparison) Require boolean
4387 vector type for vector comparison.
4388 (verify_gimple_assign_ternary): Likewise.
4389 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4390 condition operand.
4391 * tree-vect-stmts.c (vectorizable_condition): Use boolean
4392 vector type for vector comparison.
4393 * tree-vect-generic.c (elem_op_func): Add new operand to hold
4394 vector type.
4395 (do_unop): Adjust to modified function type.
4396 (do_binop): Likewise.
4397 (do_plus_minus): Likewise.
4398 (do_negate); Likewise.
4399 (expand_vector_piecewise): Likewise.
4400 (do_cond): Likewise.
4401 (do_compare): Use comparison instead of condition.
4402 (expand_vector_divmod): Use boolean vector type for comparison.
4403 (expand_vector_operations_1): Skip scalar mask operations.
4404
4405 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4406
4407 * omp-low.c (simd_clone_create): Set in_other_partition
4408 for created clones.
4409
4410 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4411
4412 * doc/extend.exp (Local Register Variables): Rewrite.
4413
4414 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4415
4416 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4417 and x*x in cases where the operands are sign ops. Extend these
4418 rules to handle copysign as a sign op (including for cos, cosh
4419 and pow, which already treated negate and abs as sign ops).
4420
4421 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
4422
4423 PR target/68018
4424 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4425 for 64-bit MS_ABI targets also when default incoming stack boundary
4426 is overriden.
4427
4428 2015-10-21 Richard Biener <rguenther@suse.de>
4429
4430 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4431 cond stmts, enhanced and split out from ...
4432 (vn_phi_eq): ... here.
4433
4434 2015-10-21 Richard Biener <rguenther@suse.de>
4435
4436 PR middle-end/68031
4437 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4438 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4439 (tree_single_nonnegative_warnv_p): ... here. For SSA names
4440 make sure they are not registered for update.
4441
4442 2015-10-21 Richard Biener <rguenther@suse.de>
4443
4444 PR tree-optimization/68026
4445 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4446 unsigned VARYING values.
4447
4448 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4449
4450 * asan.c (asan_emit_stack_protection): Don't pass local stack to
4451 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4452 NULL and use local stack than.
4453 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4454 in addition to __asan_init.
4455 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4456 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4457 * asan.h (asan_intercepted_p): Handle new string builtins.
4458 * ubsan.c (ubsan_use_new_style_p): New function.
4459 (ubsan_instrument_float_cast): If location is unknown, assign
4460 input_location to loc. Propagate loc to ubsan_create_data if
4461 ubsan_use_new_style_p returned true.
4462
4463 2015-10-21 Jeff Law <law@redhat.com>
4464
4465 * Makefile.in (OBJS): Remove sched-vis.c
4466 * sched-vis.c: Removed. Code moved into...
4467 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
4468 * rtl.h: Remove prototypes for functions now living in print-rtl.c
4469 * print-rtl.h Add prototypes for new functions in print-rtl.c.
4470 * auto-inc-dec.c: Include print-rtl.h
4471 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4472 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4473
4474 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4475 ATTRIBUTE_UNUSED.
4476
4477 2015-10-21 Richard Biener <rguenther@suse.de>
4478 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4479
4480 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
4481 to match.pd.
4482 Move (a * (1 << b)) is (a << b) to match.pd.
4483 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
4484 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
4485 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
4486
4487 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
4488 New simplifier.
4489 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
4490 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
4491 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
4492 : New simplifier.
4493 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
4494 New simplifier.
4495 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
4496
4497 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
4498 Szabolcs Nagy <szabolcs.nagy@arm.com>
4499 Alan Modra <amodra@gmail.com>
4500
4501 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
4502 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
4503 (LINK_SPEC): Add %(link_secure_plt).
4504 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
4505 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
4506
4507 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
4508 Szabolcs Nagy <szabolcs.nagy@arm.com>
4509
4510 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
4511 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
4512
4513 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4514
4515 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
4516 New function.
4517 (fusion_load_store): Use it.
4518 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
4519 ldp and stp in VD modes.
4520 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
4521 (store_pair<mode>, VD): Likewise.
4522
4523 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
4524
4525 PR rtl-optimization/67609
4526 * lra-splill.c (lra_final_code_change): Don't remove all
4527 sub-registers.
4528
4529 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4530
4531 * simplify-rtx.c (simplify_binary_operation): If either operand was
4532 a constant pool reference use them if all other simplifications failed.
4533
4534 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4535
4536 * config/aarch64/aarch64.md
4537 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
4538 * config/aarch64/aarch64-simd.md
4539 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
4540 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
4541 (aarch64_fpconst_pow_of_2): New function.
4542 (aarch64_vec_fpconst_pow_of_2): Likewise.
4543 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
4544 prototype.
4545 (aarch64_vec_fpconst_pow_of_2): Likewise.
4546 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
4547 (aarch64_fp_vec_pow2): Likewise.
4548
4549 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
4550
4551 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
4552 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
4553 * config/alpha/alpha.c (alpha_function_arg_advance): Update
4554 ALPHA_ARG_SIZE usage.
4555 (alpha_arg_partial_bytes): Ditto.
4556
4557 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4558
4559 PR target/66810
4560 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4561 error_mark_node decls.
4562
4563 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4564
4565 PR target/67963
4566 PR target/67985
4567 * common/config/i386/i386-common.c (ix86_handle_option): Remove
4568 OPT_miamcu handling.
4569 * config/i386/i386.c (PTA_NO_80387): New macro.
4570 (processor_alias_table): Add PTA_NO_80387 to lakemont.
4571 (ix86_option_override_internal): Update MASK_80387 from
4572 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
4573 SSE math only if 80387 is supported. Don't change
4574 MASK_FLOAT_RETURNS.
4575 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4576 80387 is supported.
4577 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4578 if TARGET_80387 is true and TARGET_IAMCU is false.
4579 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4580 is true and TARGET_IAMCU_P is false.
4581
4582 2015-10-20 Richard Biener <rguenther@suse.de>
4583
4584 PR tree-optimization/68017
4585 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4586
4587 2015-10-20 Martin Liska <mliska@suse.cz>
4588
4589 * cgraphclones.c (cgraph_node::create_virtual_clone):
4590 Verify cgraph_node.local.versionable instead of calling
4591 tree_versionable_function_p.
4592 * ipa-cp.c (determine_versionability): Save the information
4593 to ipa_node_params summary.
4594 (ipcp_versionable_function_p): Use it.
4595 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4596 (ipcp_generate_summary): Do not compute cgraph_node
4597 versionability.
4598 * ipa-inline-analysis.c (inline_generate_summary): Compute
4599 versionability for all cgraph nodes.
4600 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4601 ipa_node_params::versionability.
4602 * ipa-prop.h (struct ipa_node_params): Declare it.
4603
4604 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4605
4606 PR other/67868
4607 * varasm.c (assemble_variable): Move special vtv handling to..
4608 (handle_vtv_comdat_sections): .. here. New function.
4609 (output_object_block): Handle vtv sections.
4610
4611 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
4612
4613 PR target/66912
4614 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4615
4616 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
4617
4618 * doc/extend.texi: Update documentation WRT inline functions.
4619
4620 2015-10-20 Alan Modra <amodra@gmail.com>
4621
4622 PR go/66870
4623 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4624 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4625 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4626
4627 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
4628
4629 PR rtl-optimization/66790
4630 * df.h (DF_MIR): New macro.
4631 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4632 (DF_MIR_INFO_BB): New macro.
4633 (DF_MIR_IN, DF_MIR_OUT): New macros.
4634 (struct df_mir_bb_info): New.
4635 (df_mir): New macro.
4636 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4637 declarations.
4638 (df_mir_get_bb_info): New.
4639 * df-problems.c (struct df_mir_problem_data): New.
4640 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4641 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4642 df_mir_confluence_0, df_mir_confluence_n,
4643 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4644 df_mir_bottom_dump, df_mir_verify_solution_start,
4645 df_mir_verify_solution_end): New.
4646 (problem_MIR): New.
4647 (df_mir_add_problem, df_mir_simulate_one_insn): New.
4648 * timevar.def (TV_DF_MIR): New.
4649 * ree.c: Include bitmap.h
4650 (add_removable_extension): Add an INIT_REGS parameter. Use it
4651 to skip zero-extensions that may get an uninitialized register.
4652 (find_removable_extensions): Compute must-initialized registers
4653 using the MIR dataflow problem. Update the call to
4654 add_removable_extension.
4655 (find_and_remove_re): Call df_mir_add_problem.
4656
4657 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
4658
4659 * common/config/mn10300/mn10300-common.c
4660 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4661 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4662
4663 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
4664
4665 * doc/extend.texi (Explicit Register Variables): Simplify and
4666 avoid unnecessary and confusion abbreviations. Update cross
4667 references.
4668 doc/implement-c.tex: Update cross reference.
4669
4670 2015-10-19 Jeff Law <law@redhat.com>
4671
4672 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4673 that create irreducible loops unless the path elimiantes a multiway
4674 branch.
4675
4676 2015-10-19 Richard Biener <rguenther@suse.de>
4677
4678 PR tree-optimization/67975
4679 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4680 * tree-cfg.c (extract_true_false_controlled_edges): Split out
4681 core worker from ...
4682 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4683 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4684 instead of block number for PHIs with two or one args.
4685 (vn_phi_eq): Compare edge predicates of PHIs that are in different
4686 blocks.
4687
4688 2015-10-19 Richard Biener <rguenther@suse.de>
4689
4690 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4691 (gimple_stmt_nonnegative_warnv_p): Use it.
4692 * match.pd (CPROJ): New operator list.
4693 (cproj (complex ...)): Move simplifications from ...
4694 * builtins.c (fold_builtin_cproj): ... here.
4695
4696 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4697
4698 * config/i386/i386.c (ix86_expand_vector_move): Use
4699 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4700 alignment.
4701
4702 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4703
4704 * doc/invoke.texi: Replace @optindex with @opindex.
4705
4706 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4707
4708 PR target/67995
4709 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4710 arch= is set, clear all bits in x_ix86_isa_flags, except for
4711 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4712
4713 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
4714
4715 PR middle-end/68002
4716 * common.opt (fkeep-static-functions): New option.
4717 * doc/invoke.texi: Document it.
4718 * cgraphunit.c (cgraph_node::finalize_function): Use it.
4719
4720 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4721
4722 * sched-int.h (struct autopref_multipass_data_): Remove offset
4723 field. Add min_offset, max_offset, multi_mem_insn_p fields.
4724 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4725 (autopref_multipass_init): Use it. Handle PARALLEL sets.
4726 (autopref_rank_data): New function.
4727 (autopref_rank_for_schedule): Use it.
4728 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4729
4730 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
4731
4732 PR other/65800
4733 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4734
4735 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4736
4737 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4738 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
4739 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4740 (STANDARD_STARTFILE_PREFIX_1): New.
4741 (STANDARD_STARTFILE_PREFIX_2): New.
4742
4743 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4744
4745 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4746 (darwin_driver_init): Note a version-min when provided on the c/l.
4747 * config/darwin.h (%darwin_minversion): Remove.
4748 * config/i386/darwin.h: Likewise.
4749 * config/rs6000/darwin.h: Likewise.
4750 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4751 rather than an arbitrary constant.
4752
4753 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4754
4755 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4756 PPC, detect conflicts between -arch and multilib settings. Detect
4757 and warn about conflicts between multiple -arch definitions.
4758
4759 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4760
4761 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4762
4763 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4764
4765 * lra-constraints.c (add_next_usage_insn): Change argument type
4766 from rtx to rtx_insn *.
4767
4768 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
4769
4770 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4771 for Lakemont.
4772
4773 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
4774
4775 * config/tilepro/gen-mul-tables.cc: Adjust include files.
4776 * config/tilegx/mul-tables.c: Regenerate.
4777 * config/tilepro/mul-tables.c: Regenerate.
4778
4779 * config/tilegx/tilegx-c.c: Adjust include files.
4780 * config/tilegx/tilegx.c: Likewise.
4781 * config/tilepro/tilepro-c.c: Likewise.
4782 * config/tilepro/tilepro.c: Likewise.
4783 * config/aarch64/aarch64-builtins.c: Likewise.
4784 * config/aarch64/aarch64.c: Likewise.
4785 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4786 * config/alpha/alpha.c: Likewise.
4787 * config/arc/arc.c: Likewise.
4788 * config/arm/aarch-common.c: Likewise.
4789 * config/arm/arm-builtins.c: Likewise.
4790 * config/arm/arm-c.c: Likewise.
4791 * config/arm/arm.c: Likewise.
4792 * config/avr/avr-c.c: Likewise.
4793 * config/avr/avr-devices.c: Likewise.
4794 * config/avr/avr-log.c: Likewise.
4795 * config/avr/avr.c: Likewise.
4796 * config/bfin/bfin.c: Likewise.
4797 * config/c6x/c6x.c: Likewise.
4798 * config/cr16/cr16.c: Likewise.
4799 * config/cris/cris.c: Likewise.
4800 * config/darwin-c.c: Likewise.
4801 * config/darwin-driver.c: Likewise.
4802 * config/darwin.c: Likewise.
4803 * config/default-c.c: Likewise.
4804 * config/epiphany/epiphany.c: Likewise.
4805 * config/epiphany/mode-switch-use.c: Likewise.
4806 * config/epiphany/resolve-sw-modes.c: Likewise.
4807 * config/fr30/fr30.c: Likewise.
4808 * config/frv/frv.c: Likewise.
4809 * config/ft32/ft32.c: Likewise.
4810 * config/glibc-c.c: Likewise.
4811 * config/h8300/h8300.c: Likewise.
4812 * config/i386/host-cygwin.c: Likewise.
4813 * config/i386/host-mingw32.c: Likewise.
4814 * config/i386/i386-c.c: Likewise.
4815 * config/i386/i386.c: Likewise.
4816 * config/i386/msformat-c.c: Likewise.
4817 * config/i386/winnt-cxx.c: Likewise.
4818 * config/i386/winnt-stubs.c: Likewise.
4819 * config/i386/winnt.c: Likewise.
4820 * config/ia64/ia64-c.c: Likewise.
4821 * config/ia64/ia64.c: Likewise.
4822 * config/iq2000/iq2000.c: Likewise.
4823 * config/lm32/lm32.c: Likewise.
4824 * config/m32c/m32c-pragma.c: Likewise.
4825 * config/m32c/m32c.c: Likewise.
4826 * config/m32r/m32r.c: Likewise.
4827 * config/mcore/mcore.c: Likewise.
4828 * config/mep/mep-pragma.c: Likewise.
4829 * config/mep/mep.c: Likewise.
4830 * config/microblaze/microblaze-c.c: Likewise.
4831 * config/microblaze/microblaze.c: Likewise.
4832 * config/mips/mips-tables.opt
4833 * config/mips/mips.c: Likewise.
4834 * config/mmix/mmix.c: Likewise.
4835 * config/mn10300/mn10300.c: Likewise.
4836 * config/moxie/moxie.c: Likewise.
4837 * config/msp430/msp430-c.c: Likewise.
4838 * config/msp430/msp430.c: Likewise.
4839 * config/nds32/nds32-cost.c: Likewise.
4840 * config/nds32/nds32-fp-as-gp.c: Likewise.
4841 * config/nds32/nds32-intrinsic.c: Likewise.
4842 * config/nds32/nds32-isr.c: Likewise.
4843 * config/nds32/nds32-md-auxiliary.c: Likewise.
4844 * config/nds32/nds32-memory-manipulation.c: Likewise.
4845 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4846 * config/nds32/nds32-predicates.c: Likewise.
4847 * config/nds32/nds32.c: Likewise.
4848 * config/nios2/nios2.c: Likewise.
4849 * config/nvptx/mkoffload.c: Likewise.
4850 * config/nvptx/nvptx.c: Likewise.
4851 * config/pa/pa.c: Likewise.
4852 * config/pdp11/pdp11.c: Likewise.
4853 * config/rl78/rl78-c.c: Likewise.
4854 * config/rl78/rl78.c: Likewise.
4855 * config/rs6000/host-darwin.c: Likewise.
4856 * config/rs6000/rs6000-c.c: Likewise.
4857 * config/rs6000/rs6000-linux.c: Likewise.
4858 * config/rs6000/rs6000.c: Likewise.
4859 * config/rx/rx.c: Likewise.
4860 * config/s390/s390-c.c: Likewise.
4861 * config/s390/s390.c: Likewise.
4862 * config/sh/sh-c.c: Likewise.
4863 * config/sh/sh-mem.cc: Likewise.
4864 * config/sh/sh.c: Likewise.
4865 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4866 * config/sh/sh_treg_combine.cc: Likewise.
4867 * config/sol2-c.c: Likewise.
4868 * config/sol2-cxx.c: Likewise.
4869 * config/sol2-stubs.c: Likewise.
4870 * config/sol2.c: Likewise.
4871 * config/sparc/sparc-c.c: Likewise.
4872 * config/sparc/sparc.c: Likewise.
4873 * config/spu/spu-c.c: Likewise.
4874 * config/spu/spu.c: Likewise.
4875 * config/stormy16/stormy16.c: Likewise.
4876 * config/v850/v850-c.c: Likewise.
4877 * config/v850/v850.c: Likewise.
4878 * config/vax/vax.c: Likewise.
4879 * config/visium/visium.c: Likewise.
4880 * config/vms/vms-c.c: Likewise.
4881 * config/vms/vms.c: Likewise.
4882 * config/vxworks.c: Likewise.
4883 * config/winnt-c.c: Likewise.
4884 * config/xtensa/xtensa.c: Likewise.
4885
4886 2015-10-16 Christian Bruel <christian.bruel@st.com>
4887
4888 PR target/67745
4889 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4890 (FUNCTION_BOUNDARY_P): New macro:
4891 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4892 New hook.
4893 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4894 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4895 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4896 * function.c (allocate_struct_function): Call
4897 relayout_function hook.
4898 * passes.c (rest_of_decl_compilation): Likewise.
4899
4900 2015-10-16 Christian Bruel <christian.bruel@st.com>
4901
4902 PR target/67745
4903 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4904 * config/arm/arm.c (arm_option_override_internal): Call
4905 arm_override_options_after_change_1.
4906 (arm_override_options_after_change): New function.
4907 (arm_override_options_after_change_1): Likewise.
4908 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4909
4910 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4911
4912 Revert:
4913 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4914 empty constructors.
4915
4916 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
4917
4918 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4919 argument is an ADDR_EXPR.
4920
4921 2015-10-16 Richard Biener <rguenther@suse.de>
4922
4923 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4924 and get rid of force_gimple_operand_gsi.
4925 (gimple_fold_builtin_memory_chk): Likewise.
4926 (gimple_fold_builtin_stxcpy_chk): Likewise.
4927 (rewrite_to_defined_overflow): Likewise.
4928 (gimple_convert_to_ptrofftype): New function.
4929 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4930
4931 2015-10-16 Richard Biener <rguenther@suse.de>
4932
4933 * tree-nested.h (build_addr): Adjust prototype.
4934 * tree-nested.c (build_addr): Remove context argument and use
4935 mark_addressable.
4936 (get_static_chain): Adjust calls to build_addr.
4937 (convert_nl_goto_reference): Likewise.
4938 (convert_tramp_reference_op): Likewise.
4939 (finalize_nesting_tree_1): Likewise.
4940 * value-prof.c (gimple_ic): Likewise.
4941 * gimple-low.c (lower_builtin_setjmp): Likewise.
4942 * tree-parloops.c (take_address_of): Likewise.
4943 (create_call_for_reduction_1): Likewise.
4944 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4945 (gimple_gen_ic_func_profiler): Likewise.
4946
4947 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4948
4949 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4950 empty constructors.
4951
4952 2015-10-16 Michael Collison <michael.collison@linaro.org>
4953 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4954
4955 * match.pd ((x < y) && (x < z) -> x < min (y,z),
4956 (x > y) and (x > z) -> x > max (y,z))
4957
4958 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
4959 Szabolcs Nagy <szabolcs.nagy@arm.com>
4960
4961 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4962 (DYNAMIC_LINKER): Renamed to ...
4963 (GLIBC_DYNAMIC_LINKER): This.
4964 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4965
4966 2015-10-15 Marek Polacek <polacek@redhat.com>
4967
4968 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4969 gimple_call_builtin instead of is_gimple_call.
4970
4971 2015-10-15 Richard Biener <rguenther@suse.de>
4972
4973 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4974
4975 2015-10-15 Richard Biener <rguenther@suse.de>
4976
4977 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4978 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4979 * tree-vect-loop.c (get_initial_def_for_induction): Drop
4980 use of force_gimple_operand in favor of gimple_build.
4981 Use vect_get_new_ssa_name.
4982 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
4983 (vectorizable_mask_load_store): Likewise.
4984 (vectorizable_call): Likewise.
4985 (vectorizable_store): Likewise.
4986 (vectorizable_load): Likewise.
4987 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
4988
4989 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
4990
4991 PR tree-optimization/67945
4992 * tree-pass.h (PROP_gimple_opt_math): New property flag.
4993 * generic-match-head.c (canonicalize_math_p): New function.
4994 * gimple-match-head.c: Include tree-pass.h.
4995 (canonicalize_math_p): New function.
4996 * match.pd: Group math built-in rules into simplifications
4997 and canonicalizations. Guard the latter with canonicalize_math_p.
4998 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
4999 PROP_gimple_opt_math property.
5000
5001 2015-10-15 Marek Polacek <polacek@redhat.com>
5002
5003 PR tree-optimization/67953
5004 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
5005
5006 2015-10-15 Jiong Wang <jiong.wang@arm.com>
5007
5008 * config.gcc: Recognize "." in architecture base name for AArch64.
5009
5010 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5011
5012 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
5013 ROUND_UP macro.
5014 * config/mips/mips.c (mips_setup_incoming_varargs): Use
5015 ROUND_DOWN to calculate off.
5016 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
5017 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
5018 rounded_size.
5019
5020 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
5021
5022 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
5023
5024 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
5025 Torvald Riegel <triegel@redhat.com>
5026
5027 PR target/67281
5028 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
5029 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5030 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
5031 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
5032 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
5033 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
5034 trechkpt, treclaim, tsr, ttest): New define_expands.
5035 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5036 __TM_FENCE__ for htm.
5037 * doc/extend.texi: Update documentation for htm builtins.
5038
5039 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
5040
5041 PR target/67967
5042 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
5043 REG_CFA_EXPRESSION to aligned SSE stores.
5044
5045 2015-10-14 Jeff Law <law@redhat.com>
5046
5047 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
5048 num_threaded_edges for successful FSM threads too.
5049
5050 2015-10-14 Richard Biener <rguenther@suse.de>
5051
5052 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
5053 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
5054 (vect_get_vec_def_for_operand): Remove unused parameter.
5055 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
5056 (vect_create_epilog_for_reduction): Likewise.
5057 (vectorizable_reduction): Likewise.
5058 (vectorizable_live_operation): Likewise.
5059 * tree-vect-patterns.c (type_conversion_p): Likewise.
5060 (vect_recog_vector_vector_shift_pattern): Likewise.
5061 (check_bool_pattern): Likewise.
5062 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5063 (vect_analyze_slp_cost_1): Likewise.
5064 * tree-vect-stmts.c (process_use): Likewise.
5065 (vect_get_vec_def_for_operand): Do not handle reductions.
5066 (vect_get_vec_defs): Adjust.
5067 (vectorizable_mask_load_store): Likewise.
5068 (vectorizable_call): Likewise.
5069 (vectorizable_simd_clone_call): Likewise.
5070 (vect_get_loop_based_defs): Likewise.
5071 (vectorizable_conversion): Likewise.
5072 (vectorizable_assignment): Likewise.
5073 (vectorizable_shift): Likewise.
5074 (vectorizable_operation): Likewise.
5075 (vectorizable_store): Likewise.
5076 (vectorizable_load): Likewise.
5077 (vect_is_simple_cond): Likewise.
5078 (vectorizable_condition): Likewise.
5079 (vect_is_simple_use): Remove unused parameters.
5080 (vect_is_simple_use_1): Adjust and rename.
5081
5082 2015-10-14 Richard Biener <rguenther@suse.de>
5083
5084 PR tree-optimization/67915
5085 * match.pd: Handle comparisons of addresses of STRING_CSTs.
5086 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
5087 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
5088 stmt folding in favor of GIMPLE one.
5089
5090 2015-10-14 Marek Polacek <polacek@redhat.com>
5091
5092 PR tree-optimization/67815
5093 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
5094 (reassociate_bb): Call it.
5095
5096 2015-10-14 Richard Biener <rguenther@suse.de>
5097
5098 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5099 Reset info at start.
5100 (vect_analyze_group_access_1): Add debug print.
5101 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
5102 (vect_compute_single_scalar_iteration_cost): ... to this.
5103 (vect_analyze_loop_2): Adjust.
5104 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
5105 * tree-vectorizer.h: ... here.
5106 (add_stmt_info_to_vec): Remove.
5107 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
5108
5109 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
5110
5111 * targhooks.c (default_target_option_pragma_parse): Do not warn if
5112 called on behalf of "#pragma GCC pop_options".
5113
5114 2015-10-14 Tom de Vries <tom@codesourcery.com>
5115
5116 * cfganal.c (verify_no_unreachable_blocks): New function.
5117 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
5118 verify_no_unreachable_blocks.
5119 cfganal.h (verify_no_unreachable_blocks): Declare.
5120
5121 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
5122
5123 * common.opt: Add flag_checking.
5124 * system.h (CHECKING_P): Define.
5125
5126 2015-10-13 Jakub Jelinek <jakub@redhat.com>
5127 Aldy Hernandez <aldyh@redhat.com>
5128 Ilya Verbin <ilya.verbin@intel.com>
5129
5130 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
5131 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
5132 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
5133 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
5134 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
5135 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
5136 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
5137 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
5138 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
5139 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
5140 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
5141 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
5142 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
5143 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5144 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
5145 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
5146 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
5147 (struct cgraph_simd_clone_arg): Adjust comment.
5148 * coretypes.h (struct gomp_ordered): New forward decl.
5149 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
5150 set critical clauses to it.
5151 (gimple_build_omp_ordered): Return gomp_ordered * instead of
5152 gimple *. Add CLAUSES argument, set ordered clauses to it.
5153 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
5154 GIMPLE_OMP_ORDERED.
5155 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
5156 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
5157 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
5158 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5159 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
5160 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5161 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
5162 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5163 renumber
5164 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5165 (gomp_critical): Add clauses field.
5166 (gomp_ordered): New struct.
5167 (is_a_helper <gomp_ordered *>::test): New inline.
5168 (gimple_build_omp_critical): Add CLAUSES argument.
5169 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
5170 instead of gimple *.
5171 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5172 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5173 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5174 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5175 inline functions.
5176 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5177 (dump_gimple_omp_target): Handle enter data and exit data.
5178 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5179 (dump_gimple_omp_critical): Print clauses.
5180 (dump_gimple_omp_ordered): New function.
5181 (dump_gimple_omp_task): Handle taskloop.
5182 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5183 GIMPLE_OMP_ORDERED.
5184 * gimple-walk.c (walk_gimple_op): Walk clauses on
5185 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5186 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5187 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5188 (struct gimplify_omp_ctx): Add loop_iter_var,
5189 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5190 and target_firstprivatize_array_bases fields.
5191 (delete_omp_context): Release loop_iter_var.
5192 (gimplify_bind_expr): Handle ORT_NONE.
5193 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5194 ORT_COMBINED_TARGET.
5195 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5196 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5197 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
5198 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
5199 ctx->target_map_scalars_firstprivate.
5200 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
5201 data sharing clauses. For data sharing clause with VLA decl
5202 on omp target/target data don't add firstprivate for the pointer.
5203 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5204 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5205 the addition of ORT_COMBINED_TARGET.
5206 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
5207 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
5208 pointers as zero length array sections and
5209 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5210 data sharing.
5211 (omp_check_private): Handle omp_member_access_dummy_var vars.
5212 (find_decl_expr): New function.
5213 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
5214 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5215 Handle OMP_CLAUSE_GANG separately. Handle
5216 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5217 clauses. Diagnose linear clause on combined
5218 distribute {, parallel for} simd construct, unless it is the loop
5219 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5220 Handle map clauses with COMPONENT_REF. Initialize
5221 ctx->target_map_scalars_firstprivate,
5222 ctx->target_firstprivatize_array_bases and
5223 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
5224 linear clause even to target region if combined. Remove
5225 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5226 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
5227 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5228 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
5229 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5230 For linear clause on worksharing loop combined with parallel add
5231 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
5232 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
5233 omp_member_access_dummy_var vars. Add lastprivate clause to outer
5234 taskloop if needed.
5235 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5236 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5237 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5238 GOMP_MAP_POINTER.
5239 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
5240 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5241 in target body. Handle removal of struct mapping if struct is not
5242 seen in target body. Remove GOMP_MAP_STRUCT map clause on
5243 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
5244 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
5245 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5246 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5247 clause appear together. Handle
5248 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
5249 clause if it has map-type-modifier always. Handle
5250 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5251 clauses.
5252 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5253 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5254 callers.
5255 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
5256 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
5257 iterators in doacross loops.
5258 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5259 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
5260 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
5261 for the addition of ORT_COMBINED_TARGET.
5262 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5263 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
5264 and OMP_TARGET_EXIT_DATA.
5265 (gimplify_omp_ordered): New function.
5266 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5267 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
5268 Gimplify clauses on OMP_CRITICAL.
5269 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5270 expand_GOMP_SIMD_ORDERED_END): New functions.
5271 * internal-fn.def (GOMP_SIMD_ORDERED_START,
5272 GOMP_SIMD_ORDERED_END): New internal functions.
5273 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5274 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5275 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5276 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5277 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5278 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5279 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5280 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5281 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5282 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5283 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5284 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5285 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5286 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5287 adjust type.
5288 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5289 GOMP_target_data_41, adjust type.
5290 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5291 GOMP_target_update_41, adjust type.
5292 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5293 field.
5294 (struct omp_for_data): Add ordered and simd_schedule fields.
5295 (omp_member_access_dummy_var, unshare_and_remap_1,
5296 unshare_and_remap, is_taskloop_ctx): New functions.
5297 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5298 (extract_omp_for_data): Handle taskloops and doacross loops
5299 and simd schedule modifier.
5300 (omp_adjust_chunk_size): New function.
5301 (get_ws_args_for): Use it.
5302 (lookup_sfield): Change first argument to splay_tree_key,
5303 add overload with first argument tree.
5304 (maybe_lookup_field): Likewise.
5305 (use_pointer_for_field): Handle omp_member_access_dummy_var.
5306 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5307 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5308 (build_outer_var_ref): Add LASTPRIVATE argument, handle
5309 taskloops and omp_member_access_dummy_var vars.
5310 (build_sender_ref): Change first argument to splay_tree_key,
5311 add overload with first argument tree.
5312 (install_var_field): For mask & 8 use &DECL_UID as key instead
5313 of the tree itself.
5314 (fixup_child_record_type): Const qualify *.omp_data_i.
5315 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5316 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5317 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5318 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5319 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5320 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5321 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5322 kinds.
5323 (add_taskreg_looptemp_clauses): New function.
5324 (scan_omp_parallel): Use it.
5325 (scan_omp_task): Likewise.
5326 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5327 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5328 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5329 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
5330 sandwiched taskloop constructs. Type check
5331 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
5332 region. Diagnose depend(source) or depend(sink:...) on
5333 target constructs or task/taskloop.
5334 (handle_simd_reference): Use get_name.
5335 (lower_rec_input_clauses): Likewise. Ignore all
5336 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5337 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
5338 before passing it to omp_clause_{default,copy}_ctor. Handle
5339 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
5340 lastprivate_firstprivate flag for linear that needs copyin and
5341 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5342 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5343 on taskloop lookup decl in outer context. Pass true to
5344 build_outer_var_ref lastprivate argument. Handle
5345 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5346 outside of outer taskloop for.
5347 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5348 OMP_CLAUSE_DECL.
5349 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5350 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
5351 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
5352 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
5353 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5354 abstract origin. Handle omp_member_access_dummy_var vars.
5355 (expand_parallel_call): Use expand_omp_build_assign.
5356 (expand_task_call): Handle taskloop construct expansion. Add
5357 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
5358 integers. Add priority argument to GOMP_task* calls. Or in
5359 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5360 GOMP_task call.
5361 (expand_omp_build_assign): Add prototype. Add AFTER
5362 argument, if true emit statements after *GSI_P and continue linking.
5363 (expand_omp_taskreg): Adjust expand_task_call caller.
5364 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5365 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5366 zero_iter2_bb and first_zero_iter2 arguments, handle computation
5367 of counts even for ordered loops.
5368 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5369 (expand_omp_ordered_source, expand_omp_ordered_sink,
5370 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5371 functions.
5372 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
5373 clauses on worksharing loop. Handle DOACROSS loop expansion.
5374 (expand_omp_for_static_nochunk): Handle linear clauses on
5375 worksharing loop. Adjust expand_omp_for_init_counts
5376 callers.
5377 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
5378 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
5379 expand_omp_for_init_counts callers.
5380 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5381 functions.
5382 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5383 Handle doacross loops.
5384 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5385 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
5386 GOMP_target_{41,update_41,enter_exit_data} libcalls.
5387 (expand_omp): Don't expand ordered depend constructs here, record
5388 ord_stmt instead for later expand_omp_for_generic.
5389 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5390 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5391 clause as stand-alone directive.
5392 (lower_omp_ordered_clauses): New function.
5393 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5394 don't lower anything.
5395 (lower_omp_for_lastprivate): Use last _looptemp_ clause
5396 on taskloop for comparison.
5397 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
5398 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5399 expansion for linear adjustments.
5400 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5401 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5402 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
5403 to tree * pointing to the stmt's clauses.
5404 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5405 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5406 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5407 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5408 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5409 clauses. Always use short kind and 8-bit align shift.
5410 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5411 (struct lower_omp_regimplify_operands_data): New type.
5412 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5413 New functions.
5414 (lower_omp_1): Use lower_omp_regimplify_operands instead of
5415 gimple_regimplify_operands.
5416 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5417 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5418 clause as stand-alone directive.
5419 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5420 (simd_clone_mangle): Mangle the various linear kinds
5421 per the new ABI.
5422 (simd_clone_adjust_argument_types): Handle
5423 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5424 (simd_clone_init_simd_arrays): Don't do anything for uval.
5425 (simd_clone_adjust): Handle
5426 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5427 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5428 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5429 * omp-low.h (omp_member_access_dummy_var): New prototype.
5430 * passes.def (pass_simduid_cleanup): Schedule another copy of the
5431 pass after all optimizations.
5432 * tree.c (omp_clause_code_name): Add entries for
5433 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5434 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5435 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
5436 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5437 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5438 OMP_CLAUSE_REDUCTION 5 arguments. Handle
5439 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5440 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5441 clauses.
5442 * tree-core.h (enum omp_clause_linear_kind): New.
5443 (struct tree_omp_clause): Change type of map_kind
5444 from unsigned char to unsigned int. Add subcode.if_modifier
5445 and subcode.linear_kind fields.
5446 (enum omp_clause_code): Add
5447 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5448 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5449 (OMP_CLAUSE_REDUCTION): Document
5450 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5451 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5452 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5453 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
5454 operand.
5455 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
5456 operand.
5457 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5458 codes.
5459 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5460 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5461 char.
5462 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5463 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5464 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5465 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5466 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5467 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5468 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5469 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5470 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5471 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5472 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5473 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5474 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5475 * tree-inline.c (remap_gimple_stmt): Handle clauses on
5476 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
5477 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
5478 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
5479 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5480 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5481 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5482 (convert_local_omp_clauses): Likewise.
5483 * tree-pretty-print.c (dump_omp_clause): Handle
5484 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5485 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5486 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
5487 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
5488 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
5489 GOMP_MAP_FORCE_DEALLOC. Handle
5490 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
5491 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
5492 and clauses on OMP_ORDERED and OMP_CRITICAL.
5493 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
5494 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
5495 (vectorize_loops): Adjust comments.
5496 (pass_simduid_cleanup::execute): Likewise.
5497 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5498 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
5499 * wide-int.h (wi::gcd): New.
5500
5501 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5502
5503 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
5504 (ix86_function_arg_advance): Ditto.
5505 (ix86_function_arg): Ditto.
5506 (ix86_gimplify_va_arg): Ditto.
5507 (ix86_class_max_nregs): Ditto.
5508 (inline_memory_move_cost): Ditto.
5509 (ix86_set_reg_reg_cost): Ditto.
5510 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
5511
5512 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
5513
5514 PR middle-end/67912
5515 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
5516
5517 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5518
5519 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
5520 ROUND_UP macro and UNITS_PER_WORD * 2.
5521 * config/sparc/sparc.c (sparc_compute_frame_size):
5522 Use ROUND_UP and ROUND_DOWN macros where applicable.
5523 (function_arg_record_value, function_arg_record_value_1)
5524 (function_arg_record_value_1): Ditto.
5525 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
5526 alignment to double-word.
5527 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
5528 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
5529 rounded_size.
5530
5531 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
5532
5533 * rtl.h (print_insn): Fix prototype.
5534
5535 2015-10-13 Tom de Vries <tom@codesourcery.com>
5536
5537 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
5538 -1. Add assert that returned entry matches phi argument.
5539 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
5540 free_stmt_vec_info_vec ...
5541 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
5542 with -1.
5543
5544 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
5545
5546 PR tree-optimization/67909, 67947
5547 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
5548 really skip the inner loop.
5549
5550 2015-10-13 Jeff Law <law@redhat.com>
5551
5552 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5553 Allow single block jump threading paths.
5554
5555 2015-10-13 Tom de Vries <tom@codesourcery.com>
5556
5557 PR tree-optimization/67476
5558 * doc/invoke.texi (@item parloops-schedule): New item.
5559 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5560 * tree-parloops.c: Include params-enum.h.
5561 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
5562
5563 2015-10-13 Tom de Vries <tom@codesourcery.com>
5564
5565 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
5566 * params-enum.h: New file.
5567 * opts.c (handle_param): Handle case that param arg is a string.
5568 * params-list.h: Handle DEFPARAMENUM5 in params.def.
5569 * params.c (find_param): New function, factored out of ...
5570 (set_param_value): ... here.
5571 (param_string_value_p): New function.
5572 * params.h (struct param_info): Add value_names field.
5573 (find_param, param_string_value_p): Declare.
5574
5575 2015-10-13 Tom de Vries <tom@codesourcery.com>
5576
5577 PR tree-optimization/67476
5578 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5579
5580 2015-10-13 Richard Biener <rguenther@suse.de>
5581
5582 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5583 the data dependence vector.
5584 (vect_peeling_hash_insert): Get the peeling hash table as argument.
5585 (vect_peeling_hash_get_lowest_cost): Likewise.
5586 (vect_enhance_data_refs_alignment): Adjust.
5587 (struct _vect_peel_info, struct _vect_peel_extended_info,
5588 struct peel_info_hasher): Move from ...
5589 * tree-vectorizer.h: ... here.
5590 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5591 (LOOP_VINFO_PEELING_HTAB): Likewise.
5592 (struct _loop_vec_info): Remove min_profitable_iters and
5593 peeling_htab members.
5594 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5595 here.
5596 (destroy_loop_vec_info): Adjust.
5597 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5598 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5599 to estimate alias versioning cost.
5600 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5601
5602 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
5603
5604 * real.h (real_isinteger): Declare.
5605 * real.c (real_isinteger): New function.
5606 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5607 if y is an even integer.
5608
5609 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5610
5611 revert:
5612 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5613 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5614 counts when these are more informative.
5615
5616 2015-10-12 Jeff Law <law@redhat.com>
5617
5618 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5619 (fsm_find_control_stmt_paths): Change name of first argument to
5620 more accurately relfect what it really is. Handle simplification
5621 of GIMPLE_COND after finding a thread path for NAME.
5622 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5623 nontrivial conditions to be handled by FSM threader.
5624 (thread_through_normal_block): Extract the name to looup via
5625 FSM threader from COND_EXPR.
5626
5627 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5628 restriction that traced SSA_NAME is a user variable.
5629
5630 2015-10-12 Tom de Vries <tom@codesourcery.com>
5631
5632 PR tree-optimization/67476
5633 * omp-low.c (expand_omp_for_generic): Add missing phis.
5634
5635 2015-10-12 Tom de Vries <tom@codesourcery.com>
5636
5637 PR tree-optimization/67476
5638 * omp-low.c (expand_omp_for_generic): Handle simple latch.
5639
5640 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
5641
5642 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5643 tables: add tbl3 and tbx4.
5644 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5645 (aarch64_tbx4v8qi): New.
5646 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5647 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5648 Rewrite using builtin functions.
5649 * config/aarch64/iterators.md (UNSPEC_TBX): New.
5650
5651 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5652
5653 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5654 ROUND_UP macro.
5655 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5656 Use ROUND_UP and ROUND_DOWN macros where applicable.
5657 (rs6000_darwin64_record_arg_flush): Ditto.
5658 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5659 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5660 rounded_size.
5661
5662 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5663
5664 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5665 (AARCH64_ROUND_DOWN): Ditto.
5666 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5667
5668 2015-10-12 Richard Biener <rguenther@suse.de>
5669
5670 PR ipa/67783
5671 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5672 code that analyzes IVs on each stmt but in a cheaper way avoiding
5673 quadratic behavior.
5674
5675 2015-10-12 Nick Clifton <nickc@redhat.com>
5676
5677 * config/msp430/msp430.c (msp430_mcu_names): Rename to
5678 msp430_mcu_data, add fields for ISA and hardware multiply
5679 support. Import latest data from the devices.csv file.
5680 (msp430_override_option): Use the data from the new array.
5681 (msp430_use_f5_series_hwmult): Likewise.
5682 (use_32bit_hwmult): Likewise.
5683 (msp430_no_hwmult): Likewise.
5684 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5685 MCU names.
5686 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5687 not recognised then no hardware multiply support is assumed and
5688 that only the MSP430 ISA is allowed.
5689
5690 2015-10-12 Richard Biener <rguenther@suse.de>
5691
5692 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5693 related code ...
5694 (vect_analyze_loop_2): ... here.
5695
5696 2015-10-11 Jason Merrill <jason@redhat.com>
5697
5698 PR c++/67557
5699 * expr.c (store_field): Call store_constructor directly when
5700 storing a CONSTRUCTOR into a target smaller than its type.
5701 Guard against unsafe bitwise copy.
5702
5703 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5704
5705 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5706 counts when these are more informative.
5707
5708 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5709
5710 * tree-profile.c (tree_profiling): Do not clear
5711 pure/const when not instrumenting.
5712 (pass tree_profile): Add dump of symtab.
5713
5714 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5715
5716 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5717 addresses.
5718 (fold_addr_of_array_ref_difference): Likewise.
5719
5720 2015-10-11 Jeff Law <law@redhat.com>
5721
5722 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5723 tree-ssa-threadbackward.c.
5724 (fsm_find_control_statement_thread_paths): Likewise.
5725 (thread_through_normal_block): Break out FSM bits and move them
5726 into a new function in tree-ssa-threadbackward.c. Call new function
5727 instead.
5728 Minimize header file usage.
5729 * tree-ssa-threadbackward.h: New file.
5730 * tree-ssa-threadbackward.c: Likewise.
5731 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5732
5733 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
5734
5735 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5736
5737 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
5738
5739 PR rtl-optimization/67864
5740 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5741 fallthrough edges for conditional jumps. Don't sort candidate
5742 edges if not optimizing for speed.
5743
5744 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5745
5746 * defaults.h (REVERSE_CONDITION): New default definition.
5747 * jump.c (reversed_comparison_code_parts): Adjust.
5748
5749 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5750
5751 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5752 check HARD_FRAME_POINTER_IS_ARG_POINTER.
5753
5754 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5755
5756 * defaults.h (FRAME_ADDR_RTX): New default definition.
5757 * builtins.c (expand_builtin_return_addr): Adjust.
5758
5759 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5760
5761 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5762 * builtins.c (expand_builtin_return_addr): Adjust.
5763
5764 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5765
5766 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5767 * builtins.c (expand_builtin_return_addr): Adjust.
5768 * doc/tm.texi: Likewise.
5769 * doc/tm.texi.in: Likewise.
5770 * except.c (expand_builtin_unwind_init): Likewise.
5771
5772 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5773
5774 * builtins.c (expand_builtin_return_addr): Adjust.
5775 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
5776
5777 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5778
5779 * tree.c (type_with_interoperable_signedness): New.
5780 (gimple_canonical_types_compatible_p): Use it.
5781 * tree.h (type_with_interoperable_signedness): Declare
5782
5783 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5784
5785 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
5786 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
5787 when OEP_ADDRESS_OF is se.
5788
5789 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5790 Sebastian Pop <s.pop@samsung.com>
5791
5792 * graphite-dependences.c (scop_get_dependences): Add dump of the
5793 data dependence graph.
5794 * graphite-poly.c (print_isl_union_map): New.
5795 (debug_isl_union_map): New.
5796 * graphite-poly.h (print_isl_union_map): Declare.
5797 (debug_isl_union_map): Declare.
5798
5799 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5800 Sebastian Pop <s.pop@samsung.com>
5801
5802 * graphite-poly.c (print_iteration_domain): Remove verbosity.
5803 Remove OpenScop formatting.
5804 (print_iteration_domains): Same.
5805 (debug_iteration_domain): Same.
5806 (debug_iteration_domains): Same.
5807 (print_pdr): Same.
5808 (debug_pdr): Same.
5809 (dump_gbb_cases): Same.
5810 (dump_gbb_conditions): Same.
5811 (print_pdrs): Same.
5812 (debug_pdrs): Same.
5813 (print_pbb_body): Same.
5814 (print_pbb): Same.
5815 (print_scop_params): Same.
5816 (print_scop_context): Same.
5817 (print_scop): Same.
5818 (debug_pbb_domain): Same.
5819 (debug_pbb): Same.
5820 (debug_scop_context): Same.
5821 (debug_scop): Same.
5822 (debug_scop_params): Same.
5823 * graphite-poly.h: Same.
5824 * graphite.c (graphite_transform_loops): Same.
5825
5826 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5827
5828 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
5829 call that isn't needed.
5830
5831 2015-10-09 Jeff Law <law@redhat.com>
5832
5833 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
5834 rather than moving each name to the freelist individually.
5835
5836 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
5837
5838 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
5839 * frame-header-opt.c: New file.
5840 * config/mips/mips-proto.h (mips_register_frame_header_opt):
5841 Add prototype.
5842 * config/mips/mips.c (mips_compute_frame_info): Check
5843 optimize_call_stack flag.
5844 (mips_option_override): Register new frame_header_opt pass.
5845 (mips_frame_info, mips_int_mask, mips_shadow_set,
5846 machine_function): Move these types to...
5847 * config/mips/mips.h: here.
5848 (machine_function): Add does_not_use_frame_header and
5849 optimize_call_stack fields.
5850 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
5851 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
5852 Document new flags.
5853 * config/mips/mips.opt (mframe-header-opt): Add new option.
5854
5855 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
5856
5857 * config/i386/i386.c
5858 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
5859 ROUND_DOWN where applicable.
5860
5861 2015-10-09 Jeff Law <law@redhat.com>
5862
5863 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
5864 correct statement.
5865
5866 2015-10-09 Renlin Li <renlin.li@arm.com>
5867
5868 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
5869 operands[0] and operands[2].
5870 (neon_vtrn<mode>_insn): Likewise.
5871 (neon_vzip<mode>_insn): Likewise.
5872
5873 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
5874
5875 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
5876 ((X & C2) << C1): Expand to...
5877 (X {&,^,|} C2 << C1): ...This.
5878 ((X & C2) >> C1): Expand to...
5879 (X {&,^,|} C2 >> C1): ...This.
5880
5881 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
5882
5883 PR target/67895
5884 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5885 Adjust embedded rounding/SAE specifier position.
5886 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5887 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5888 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5889 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5890 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5891 Likewise.
5892 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5893
5894 2015-10-09 Martin Jambor <mjambor@suse.cz>
5895
5896 tree-optimization/67794
5897 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5898 between types of state,ents but accept original definitions as a
5899 parameter.
5900 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5901 iterate over definitions.
5902
5903 2015-10-09 James Norris <jnorris@codesourcery.com>
5904
5905 * config/rs6000/rs6000.c (rs6000_offload_options): New.
5906 (TARGET_OFFLOAD_OPTIONS): New.
5907
5908 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
5909
5910 PR middle-end/67891
5911 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5912
5913 PR middle-end/67766
5914 * function.c (expand_function_end): Move return value
5915 promotion past the handling of PARALLELs and CONCATs.
5916
5917 PR rtl-optimization/67828
5918 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5919 (tree_may_unswitch_on): Don't unswitch on expressions
5920 involving undefined values.
5921
5922 2015-10-09 Richard Biener <rguenther@suse.de>
5923
5924 * genmatch.c (print_operand): Fix formatting.
5925 (dt_node::append_simplify): Warn for multiple simplifiers
5926 that match the same pattern.
5927 * match.pd (log (exp @0)): Remove duplicates.
5928
5929 2015-10-09 Richard Biener <rguenth@suse.de>
5930
5931 PR target/67366
5932 * gimple-fold.c (optabs-query.h): Include
5933 (gimple_fold_builtin_memory_op): Allow unaligned stores
5934 when movmisalign_optabs are available.
5935
5936 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5937
5938 PR target/67366
5939 * config/arm/arm.md (movmisalign<mode>): New.
5940 * config/arm/iterators.md (HSI): New.
5941
5942 2015-10-09 Richard Biener <rguenther@suse.de>
5943
5944 PR tree-optimization/67891
5945 * gimple-match.h (gimple_simplified_result_is_gimple_val):
5946 New helper.
5947 (gimple_resimplify1): Declare.
5948 (gimple_resimplify2): Likewise.
5949 (gimple_resimplify3): Likewise.
5950 * gimple-match-head.c (gimple_resimplify1): Export.
5951 (gimple_resimplify2): Likewise.
5952 (gimple_resimplify3): Likewise.
5953 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5954 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5955 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5956 to avoid creating stmts without VN info.
5957
5958 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
5959
5960 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5961 of availability.
5962
5963 2015-10-08 Jeff Law <law@redhat.com>
5964
5965 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5966 and release_ssa_name in two places.
5967 (gimple_stringop_fixed_value): Similarly.
5968
5969 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5970 release_defs.
5971
5972 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5973 unlink_stmt_vdef and release_ssa_name_fn.
5974
5975 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5976 release_defs.
5977
5978 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
5979
5980 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5981 SSE register save area to 16 bytes only if the incoming stack
5982 boundary is no less than 16 bytes.
5983
5984 2015-10-08 Jeff Law <law@redhat.com>
5985
5986 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
5987 release_ssa_name. Fix typo in comment.
5988
5989 2015-10-08 Nathan Sidwell <nathan@acm.org>
5990
5991 * config/nvptx/nvptx.h (struct machine_function): Add comment.
5992 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
5993 may return pointer as well as in memory.
5994 (nvptx_output_return): Likewise.
5995
5996 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5997
5998 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
5999 (fold_builtin_1): Update accordingly. Handle constant arguments here.
6000 * match.pd: Add rules previously handled by fold_builtin_sqrt
6001 and fold_builtin_cbrt.
6002
6003 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
6004
6005 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
6006 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
6007 * fold-const.h (tree_unary_nonnegative_warnv_p)
6008 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6009 (tree_expr_nonnegative_warnv_p): Add depth parameters.
6010 * fold-const.c: Include gimple-fold.h and params.h.
6011 (tree_ssa_name_nonnegative_warnv_p): New function.
6012 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
6013 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
6014 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
6015 Add a depth parameter and increment it for recursive calls to
6016 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
6017 to handle SSA names.
6018 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
6019 (gimple_stmt_nonnegative_warnv_p): Declare.
6020 * tree-vrp.c (remove_range_assertions): Remove assert that condition
6021 cannot be proven false.
6022 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
6023 (gimple_stmt_nonnegative_warnv_p): Move to...
6024 * gimple-fold.c: ...here. Add depth parameters and pass them
6025 down to the tree routines. Accept statements that aren't
6026 assignments or calls but just return false for them.
6027 (gimple_val_nonnegative_real_p): Delete.
6028 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
6029 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
6030 Check HONOR_NANs first.
6031
6032 2015-10-08 Martin Jambor <mjambor@suse.cz>
6033
6034 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
6035 unnecessary MIN.
6036
6037 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6038
6039 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
6040 in the tail of outer-loop.
6041
6042 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
6043
6044 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
6045 return UI_NONE.
6046
6047 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6048
6049 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
6050 "cfghooks.h", add prototypes for introduced new functions.
6051 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
6052 checks on ability of loop unswitching to tree_unswitch_single_loop;
6053 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
6054 on innermost loop check.
6055 (tree_unswitch_single_loop): Add all required checks on ability of
6056 loop unswitching under zero recursive level guard.
6057 (tree_unswitch_outer_loop): New function.
6058 (find_loop_guard): Likewise.
6059 (empty_bb_without_guard_p): Likewise.
6060 (used_outside_loop_p): Likewise.
6061 (get_vop_from_header): Likewise.
6062 (hoist_guard): Likewise.
6063 (check_exit_phi): Likewise.
6064
6065 2015-10-08 Marek Polacek <polacek@redhat.com>
6066
6067 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
6068 ops element.
6069
6070 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6071
6072 PR c/65345
6073 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6074 create_tmp_var_raw instead of create_tmp_var.
6075
6076 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
6077
6078 * expr.c (store_expr_with_bounds): Handle aggregate moves from
6079 BLKmode.
6080 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
6081 to define gimple type system; compare aggregates only by size.
6082
6083 2015-10-07 Jeff Law <law@redhat.com>
6084
6085 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
6086 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
6087 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
6088 unnecessarily.
6089
6090 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6091 Sebastian Pop <s.pop@samsung.com>
6092
6093 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
6094 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
6095 (generate_isl_schedule): Same.
6096 * graphite-optimize-isl.c (scop_get_domains): Same.
6097 (apply_schedule_map_to_scop): Same.
6098 * graphite-poly.c (print_iteration_domains): Same.
6099 (remove_gbbs_in_scop): Same.
6100 (new_scop): Same.
6101 (free_scop): Same.
6102 (print_scop): Same.
6103 * graphite-poly.h (struct scop): Rename bbs to pbbs.
6104 (SCOP_BBS): Remove.
6105 * graphite-scop-detection.c (compare_bb_depths): Remove.
6106 (graphite_sort_dominated_info): Remove.
6107 (try_generate_gimple_bb): Move out of scop_detection.
6108 (all_non_dominated_preds_marked_p): Remove.
6109 (build_scop_bbs_1): Remove.
6110 (build_scop_bbs): Remove.
6111 (nb_pbbs_in_loops): Do not use SCOP_BBS.
6112 (find_scop_parameters): Same.
6113 (sese_dom_walker): Rename gather_bbs.
6114 (before_dom_children): Call try_generate_gimple_bb and collect gbb
6115 and pbb.
6116 (build_scops): Call gather_bbs.
6117 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
6118 (add_conditions_to_constraints): Same.
6119 (build_scop_iteration_domain): Same.
6120 (build_scop_drs): Same.
6121 (new_pbb_from_pbb): Same.
6122 * sese.c (new_sese_info): Create bbs.
6123 * sese.h (struct sese_info_t): Add bbs.
6124
6125 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
6126
6127 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
6128 encoding in 64-bit mode.
6129
6130 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
6131
6132 PR target/66697
6133 * config/i386/i386.c (ix86_option_override_internal): Always use
6134 8-byte minimum stack boundary in 64-bit mode.
6135 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
6136 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
6137 Add a REG_CFA_EXPRESSION note if needed.
6138 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
6139 (ix86_handle_force_align_arg_pointer_attribute): New.
6140 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
6141 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
6142 with ix86_handle_force_align_arg_pointer_attribute.
6143 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
6144
6145 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6146 Sebastian Pop <s.pop@samsung.com>
6147
6148 * graphite-scop-detection.c (parameter_index_in_region): Remove
6149 use of SESE_ADD_PARAMS.
6150 (find_scop_parameters): Same.
6151 * sese.c (new_sese_info): Same.
6152 * sese.h (struct sese_info_t): Remove add_params.
6153 (SESE_ADD_PARAMS): Remove.
6154
6155 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
6156 Sebastian Pop <s.pop@samsung.com>
6157
6158 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6159 an sese_info_p.
6160 (copy_def): Same.
6161 (copy_internal_parameters): Same.
6162 (translate_isl_ast_to_gimple): Use an sese_l.
6163 (build_iv_mapping): Same.
6164 * graphite-poly.c (new_sese): Rename new_sese_info.
6165 (free_sese): Rename free_sese_info.
6166 * graphite-poly.h (struct scop): Use an sese_info_p.
6167 (scop_set_region): Same.
6168 * graphite-scop-detection.c (struct sese_l): Moved...
6169 (get_entry_bb): Moved...
6170 (get_exit_bb): Moved...
6171 (parameter_index_in_region_1): Use an sese_info_p.
6172 (parameter_index_in_region): Same.
6173 (scan_tree_for_params): Same.
6174 (find_params_in_bb): Same.
6175 (sese_dom_walker): Use an sese_l.
6176 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6177 (reduction_phi_p): Same.
6178 (parameter_index_in_region_1): Use an sese_info_p.
6179 (propagate_expr_outside_region): Use an sese_l.
6180 * graphite.c: Replace uses of SCOP_REGION.
6181 * sese.c (sese_record_loop): Use an sese_info_p.
6182 (build_sese_loop_nests): Same.
6183 (sese_build_liveouts_use): Same.
6184 (sese_build_liveouts_bb): Same.
6185 (sese_build_liveouts_bb): Same.
6186 (sese_bad_liveouts_use): Same.
6187 (sese_reset_debug_liveouts_bb): Same.
6188 (sese_build_liveouts): Same.
6189 (new_sese): Renamed new_sese_info.
6190 (free_sese): Renamed free_sese_info.
6191 (set_rename): Use an sese_info_p.
6192 (graphite_copy_stmts_from_block): Same.
6193 (copy_bb_and_scalar_dependences): Same.
6194 (outermost_loop_in_sese_1): Use an sese_l.
6195 (outermost_loop_in_sese): Same.
6196 (if_region_set_false_region): Use an sese_info_p.
6197 (move_sese_in_condition): Same.
6198 (scalar_evolution_in_region): Use an sese_l.
6199 * sese.h (struct sese_l): ... here.
6200 (SESE_ENTRY): Remove.
6201 (SESE_ENTRY_BB): Remove.
6202 (SESE_EXIT): Remove.
6203 (SESE_EXIT_BB): Remove.
6204 (sese_contains_loop): Use an sese_info_p.
6205 (sese_nb_params): Same.
6206 (bb_in_sese_p): Use an sese_l.
6207 (stmt_in_sese_p): Same.
6208 (defined_in_sese_p): Same.
6209 (loop_in_sese_p): Same.
6210 (sese_loop_depth): Same.
6211 (struct ifsese_s): Use an sese_info_p.
6212 (gbb_loop_at_index): Use an sese_l.
6213 (nb_common_loops): Same.
6214 (scev_analyzable_p): Same.
6215
6216 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6217
6218 * config/i386/i386.c (ix86_conditional_register_usage): Use
6219 CALL_USED_REGISTERS_MASK.
6220 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6221
6222 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6223
6224 PR bootstrap/67385
6225 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6226 * configure: Regenerated.
6227
6228 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6229
6230 PR target/67850
6231 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6232 (ix86_set_current_function): This.
6233 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6234
6235 2015-10-07 Richard Biener <rguenther@suse.de>
6236
6237 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6238 (vinfo_for_stmt): Adjust.
6239 (set_vinfo_for_stmt): Likewise.
6240 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6241 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6242 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6243 of inner loop.
6244 (vect_analyze_loop_1): Remove.
6245 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6246 inner loop when vectorizing an outer loop by splitting out from ...
6247 (vect_analyze_loop_form): ... here.
6248
6249 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6250
6251 PR c/65345
6252 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6253 Use create_tmp_var_raw instead of create_tmp_var.
6254
6255 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
6256
6257 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6258 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6259 * real.c (CACHED_FRACTION): New helper macro.
6260 (dconst_third_ptr): Use it.
6261 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6262 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6263 dconst_sixth.
6264 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6265
6266 2015-10-06 Jeff Law <law@redhat.com>
6267
6268 PR tree-optimization/67816
6269 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6270 from remove_jump_threads_starting_at. Accept an edge rather than
6271 a basic block.
6272 * tree-ssa-threadupdate.c (removed_edges): New hash table.
6273 (remove_jump_threads_including): Note edges that get removed from
6274 the CFG for later pruning of jump threading paths including them.
6275 (thread_through_all_blocks): Remove paths which include edges that
6276 have been removed.
6277 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6278 on each outgoing edges when optimizing away a control statement.
6279
6280 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6281
6282 * reorg.c (emit_delay_sequence): Store list of delay slot insns
6283 in a vector instead of rtx_insn_list.
6284 (add_to_delay_list): Likewise.
6285 (delete_from_delay_slot): Likewise.
6286 (optimize_skip): Likewise.
6287 (redirect_with_delay_list_safe_p): Likewise.
6288 (check_annul_list_true_false): Likewise.
6289 (steal_delay_list_from_target): Likewise.
6290 (steal_delay_list_from_fallthrough): Likewise.
6291 (redundant_insn): Likewise.
6292 (fill_simple_delay_slots): Likewise.
6293 (fill_slots_from_thread): Likewise.
6294 (fill_eager_delay_slots): Likewise.
6295 (relax_delay_slots): Likewise.
6296
6297 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
6298
6299 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6300 For -mgpopt=local, also exclude unintialized common symbols.
6301 * doc/invoke.texi (Nios II Options): Document the change.
6302
6303 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6304
6305 * config/aarch64/iterators.md (vwcore): Add missing cases for
6306 V4HF/V8HF modes.
6307
6308 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6309 Sebastian Pop <s.pop@samsung.com>
6310
6311 * graphite-poly.c (new_scop): Initialize drs.
6312 * graphite-poly.h (struct dr_info): New.
6313 (struct scop): Add drs.
6314 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6315 (pdr_add_memory_accesses): Same.
6316 (build_poly_dr): Same.
6317 (build_alias_set): Same.
6318 (build_scop_drs): Same.
6319 (build_pbb_drs): Remove.
6320 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6321 * tree-data-ref.h (data_reference): Remove alias_set.
6322
6323 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6324 Sebastian Pop <s.pop@samsung.com>
6325
6326 * graphite-poly.c (free_data_refs_aux): Remove.
6327 (free_gimple_poly_bb): Do not call free_data_refs_aux.
6328 * graphite-poly.h (struct base_alias_pair): Remove.
6329 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6330 base_alias_pair and dr->aux.
6331 (build_alias_set): Same.
6332 * tree-data-ref.c (create_data_ref): Initialize alias_set.
6333 * tree-data-ref.h (data_reference): Add alias_set.
6334
6335 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6336 Sebastian Pop <s.pop@samsung.com>
6337
6338 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6339 Do not set PDR_BASE_OBJECT_SET.
6340 * graphite-poly.h (poly_dr): Same.
6341 (PDR_BASE_OBJECT_SET): Remove.
6342 (new_poly_dr): Update decl.
6343 * graphite-sese-to-poly.c (build_poly_dr): Update call to
6344 new_poly_dr.
6345 (write_alias_graph_to_ascii_dimacs): Remove.
6346 (write_alias_graph_to_ascii_dot): Remove.
6347 (write_alias_graph_to_ascii_ecc): Remove.
6348 (dr_same_base_object_p): Remove.
6349 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
6350 code.
6351 (build_base_obj_set_for_drs): Remove.
6352 (dump_alias_graphs): Remove.
6353 (build_scop_drs): Remove dead code.
6354
6355 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6356 Peter Bergner <bergner@vnet.ibm.com>
6357
6358 PR target/67808
6359 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6360 allow registers, but provide insns for the combiner to create for
6361 loads from memory. Separate VSX code from non-VSX code. For
6362 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6363 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6364 so that registers come before memory operations. Drop support from
6365 converting DFmode to TFmode, if the DFmode value is in a GPR
6366 register.
6367 (extenddftf2_fprs): Likewise.
6368 (extenddftf2_internal): Likewise.
6369 (extenddftf2_vsx): Likewise.
6370 (extendsftf2): In the expander, only allow registers, but provide
6371 insns for the combiner to create for stores and loads.
6372
6373 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6374
6375 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6376 from the decl parameter.
6377
6378 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
6379
6380 PR 67861
6381 * gimple-fold.c (gimple_fold_builtin): Add break after
6382 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6383
6384 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
6385
6386 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6387 to scop->isl_context.
6388
6389 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6390
6391 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6392 (output_probe_stack_range): Rotate the loop and simplify.
6393 (thumb1_expand_prologue): Tweak sorry message.
6394 * config/arm/arm.md (probe_stack): Use bare string.
6395
6396 2015-10-06 Nick Clifton <nickc@redhat.com>
6397
6398 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6399
6400 2015-10-06 Nick Clifton <nickc@redhat.com>
6401
6402 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6403 (ATTR_PERSIST): New constant.
6404 (msp430_data_attr): New function - verifies an attribute that only
6405 applies to variables.
6406 (msp430_attributes): Add noinit and persistent attributes.
6407 (noinit_section): New variable.
6408 (presis_section): New variable.
6409 (TARGET_ASM_INIT_SECTIONS): Define.
6410 (msp430_init_sections): New function - initialises the noinit and
6411 persist section variables.
6412 (msp430_select_section): Add support for noinit and persist
6413 attributes.
6414 (msp430_section_type_flags): Likewise.
6415 * doc/extend.texi: Document the reent, critical, wakeup, noinit
6416 and persistent attributes.
6417
6418 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6419 Sebastian Pop <s.pop@samsung.com>
6420
6421 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6422 (no_violations): Remove.
6423 (subtract_commutative_associative_deps): Remove.
6424 (compute_deps): Do not call subtract_commutative_associative_deps.
6425 (transform_is_safe): Remove.
6426 (graphite_legal_transform): Remove.
6427 * graphite-poly.h (graphite_legal_transform): Remove.
6428
6429 2015-10-05 Aditya Kumar <hiraditya@msn.com>
6430
6431 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6432 which are in this region are passed so gcc_assert and remove redundant
6433 computation.
6434 * sese.c (sese_build_liveouts): Pass only those bbs which are not
6435 in region.
6436 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6437 gcc_assert on that and remove unnecessary computation.
6438 (sese_build_liveouts_use): Same.
6439
6440 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6441
6442 * graphite-dependences.c (scop_get_reads): Renamed scop->context
6443 to scop->param_context.
6444 (scop_get_must_writes): Same.
6445 (scop_get_may_writes): Same.
6446 (scop_get_original_schedule): Same.
6447 (scop_get_transformed_schedule): Same.
6448 (subtract_commutative_associative_deps): Same.
6449 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6450 (generate_isl_context): Same.
6451 (generate_isl_schedule): Same.
6452 (scop_to_isl_ast): Same.
6453 (graphite_regenerate_ast_isl): Same.
6454 * graphite-optimize-isl.c (scop_get_domains): Same.
6455 (optimize_isl): Renamed scop->context to scop->param_context.
6456 * graphite-poly.c (new_poly_bb): Change the type of argument to
6457 gimple_poly_bb_p.
6458 (new_scop): Renamed scop->context to scop->param_context.
6459 (free_scop): Same.
6460 (print_scop_context): Same.
6461 * graphite-poly.h (new_poly_dr): Change the type of argument from
6462 void* to data_reference_p.
6463 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6464 (new_poly_bb): Change the type of argument from void* to
6465 gimple_poly_bb_p.
6466 (pbb_set_black_box): Same.
6467 (struct scop): Rename context to param_context, ctx to isl_context.
6468 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6469 Move declarations closer to assignment.
6470 (find_params_in_bb): Same.
6471 (find_scop_parameters): Same.
6472 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6473 Global to be used for statement IDs.
6474 (isl_id_for_pbb): Use ssa_name_version_typesize.
6475 (simple_copy_phi_p): Move declarations closer to assignment.
6476 (build_pbb_scattering_polyhedrons): Same.
6477 (build_scop_scattering): Same.
6478 (isl_id_for_ssa_name): Same.
6479 (extract_affine_name): Same.
6480 (extract_affine_int): Same.
6481 (extract_affine): Same.
6482 (set_scop_parameter_dim): Use renamed member.
6483 (build_loop_iteration_domains): Same.
6484 (add_param_constraints): Same.
6485 (build_scop_iteration_domain): Same.
6486 (pdr_add_data_dimensions): Same.
6487 (build_poly_dr): Same.
6488 (build_scop_drs): Move declarations closer to assignment.
6489 (analyze_drs_in_stmts): Same.
6490 (insert_out_of_ssa_copy): Same.
6491 (insert_out_of_ssa_copy_on_edge): Same.
6492 (propagate_expr_outside_region): Same.
6493 (rewrite_phi_out_of_ssa): Same.
6494 (rewrite_degenerate_phi): Same.
6495 (rewrite_reductions_out_of_ssa): Same.
6496 (rewrite_cross_bb_scalar_dependence): Same.
6497 (handle_scalar_deps_crossing_scop_limits): Same.
6498 (rewrite_cross_bb_scalar_deps): Same.
6499 * graphite.c (graphite_transform_loops): Use renamed member.
6500
6501 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
6502
6503 PR c/65345
6504 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
6505 create_tmp_var_raw instead of create_tmp_var.
6506
6507 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6508
6509 PR c/65345
6510 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
6511 Use create_tmp_var_raw instead of create_tmp_var.
6512
6513 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
6514
6515 PR target/67849
6516 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
6517 split for upper-bank registers when target does not support
6518 AVX512VL.
6519 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
6520 split when target does not support AVX512VL.
6521
6522 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
6523
6524 PR c/65345
6525 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
6526 Adjust to use create_tmp_var_raw instead of create_tmp_var.
6527
6528 2015-10-06 Nick Clifton <nickc@redhat.com>
6529
6530 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
6531 multiplication.
6532
6533 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6534
6535 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
6536 (case ${target}): Add znver1.
6537 * config/i386/cpuid.h(bit_CLZERO): Define.
6538 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6539 -march=native recognize znver1 processors.
6540 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6541 znver1, clzero def_and_undef.
6542 * config/i386/i386.c (struct processor_costs znver1_cost): New.
6543 (m_znver1): New definition.
6544 (m_AMD_MULTIPLE): Includes m_znver1.
6545 (processor_target_table): Add znver1 entry.
6546 (ix86_target_string) : Add clzero entry.
6547 (static const char *const cpu_names): Add znver1 entry.
6548 (ix86_option_override_internal): Add znver1 instruction sets.
6549 (PTA_CLZERO) : New definition.
6550 (ix86_option_override_internal): Handle new clzerooption.
6551 (ix86_issue_rate): Add znver1.
6552 (ix86_adjust_cost): Add znver1.
6553 (ia32_multipass_dfa_lookahead): Add znver1.
6554 (has_dispatch): Add znver1.
6555 * config/i386/i386.h (TARGET_znver1): New definition.
6556 (TARGET_CLZERO): Define.
6557 (TARGET_CLZERO_P): Define.
6558 (struct ix86_size_cost): Add TARGET_ZNVER1.
6559 (enum processor_type): Add PROCESSOR_znver1.
6560 * config/i386/i386.md (define_attr "cpu"): Add znver1.
6561 (set_attr znver1_decode): New definitions for znver1.
6562 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
6563 (mclzero): New.
6564 * config/i386/mmx.md (set_attr znver1_decode): New definitions
6565 for znver1.
6566 * config/i386/sse.md (set_attr znver1_decode): Likewise.
6567 * config/i386/x86-tune.def: Add znver1 tunings.
6568 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
6569 * doc/invoke.texi: Add details about znver1
6570
6571 2015-10-06 Richard Biener <rguenther@suse.de>
6572
6573 PR tree-optimization/67859
6574 * tree-ssa-pre.c (create_expression_by_pieces): Properly
6575 discard not inserted stmts.
6576
6577 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
6578
6579 * doc/extend.texi (Template Instantiation): Reorder options and
6580 de-emphasize -frepo.
6581 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6582 example instead of -frepo.
6583
6584 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6585
6586 PR c/65345
6587 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6588 use create_tmp_var_raw rather than create_tmp_var.
6589
6590 2015-10-06 Richard Biener <rguenther@suse.de>
6591
6592 * tree-vectorizer.h (vec_info): New base class for...
6593 (_loop_vec_info): ... this and ...
6594 (_bb_vec_info): ... this.
6595 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6596 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6597 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6598 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6599 vect_destroy_datarefs): Adjust interface to take a vec_info *
6600 rather than both a loop_vec_info and a bb_vec_info argument.
6601 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6602 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6603 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6604 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6605 accordingly.
6606 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6607 (destroy_loop_vec_info, vect_analyze_loop_2,
6608 vect_is_simple_reduction_1, get_initial_def_for_induction,
6609 vect_create_epilog_for_reduction, vectorizable_reduction,
6610 vectorizable_live_operation, vect_transform_loop): Adjust.
6611 * tree-vect-patterns.c (type_conversion_p,
6612 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6613 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6614 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6615 check_bool_pattern, vect_recog_bool_pattern,
6616 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6617 * tree-vect-slp.c (vect_get_and_check_slp_defs,
6618 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6619 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6620 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6621 (new_bb_vec_info): Initialize base classs.
6622 * tree-vect-stmts.c (record_stmt_cost, process_use,
6623 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6624 vectorizable_mask_load_store, vectorizable_call,
6625 vectorizable_simd_clone_call, vectorizable_conversion,
6626 vectorizable_assignment, vectorizable_shift,
6627 vectorizable_operation, vectorizable_store,
6628 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6629 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6630 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6631
6632 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6633
6634 PR c/65345
6635 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6636 create_tmp_var_raw rather than create_tmp_var.
6637
6638 2015-10-05 Marek Polacek <polacek@redhat.com>
6639
6640 * tree-ssa-loop-im.c
6641 (move_computations_dom_walker::before_dom_children): Don't set
6642 SSA_NAME_ANTI_RANGE_P.
6643 * tree-ssa-phiopt.c (value_replacement): Likewise.
6644
6645 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6646 Sebastian Pop <s.pop@samsung.com>
6647
6648 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6649
6650 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6651 Sebastian Pop <s.pop@samsung.com>
6652
6653 * graphite-poly.c (new_gimple_poly_bb): ... here.
6654 (free_data_refs_aux): ... here.
6655 (free_gimple_poly_bb): ... here.
6656 (remove_gbbs_in_scop): ... here.
6657 (new_scop): Call new_sese.
6658 (free_scop): Call remove_gbbs_in_scop and free_sese.
6659 * graphite-poly.h (base_alias_pair): ... here.
6660 (new_gimple_poly_bb): Declare.
6661 (free_gimple_poly_bb): Declare.
6662 * graphite-scop-detection.c (parameter_index_in_region_1):
6663 (parameter_index_in_region): ... here.
6664 (scan_tree_for_params): ... here.
6665 (find_params_in_bb): ... here.
6666 (find_scop_parameters): ... here.
6667 (build_scops): Call find_scop_parameters.
6668 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6669 (free_scops): Move...
6670 (single_pred_cond_non_loop_exit): Move...
6671 (sese_dom_walker::before_dom_children): Move...
6672 (sese_dom_walker::after_dom_children): Move...
6673 (build_poly_scop): Move...
6674 * graphite-sese-to-poly.h (base_alias_pair): Move...
6675 * graphite.c (free_scops): ... here.
6676
6677 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6678 Sebastian Pop <s.pop@samsung.com>
6679
6680 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6681 (trivially_empty_bb_p): Move...
6682 (same_close_phi_node): Move...
6683 (new_gimple_poly_bb): Move...
6684 (compare_bb_depths): Move...
6685 (graphite_sort_dominated_info): Move...
6686 (remove_duplicate_close_phi): Move...
6687 (make_close_phi_nodes_unique): Move...
6688 (canonicalize_loop_closed_ssa): Move...
6689 (canonicalize_loop_closed_ssa_form): Move...
6690 (loop_ivs_can_be_represented): Move...
6691 (single_pred_cond_non_loop_exit): Move...
6692 (graphite_can_represent_init): Move...
6693 (graphite_can_represent_scev): Move...
6694 (stmt_has_simple_data_refs_p): Move...
6695 (stmt_has_side_effects): Move...
6696 (graphite_can_represent_stmt): Move...
6697 (scop_detection): ... here.
6698 (sese_dom_walker): ... and here.
6699 (build_scops): Call all moved functions.
6700 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6701 (all_non_dominated_preds_marked_p): Move...
6702 (build_scop_bbs_1): Move...
6703 (build_scop_bbs): Move...
6704 (set_scop_parameter_dim): Move...
6705 (nb_pbbs_in_loops): Move...
6706 (build_poly_scop): Do not call all the moved functions.
6707
6708 2015-10-05 Martin Jambor <mjambor@suse.cz>
6709 Jan Hubicka <hubicka@ucw.cz>
6710
6711 * ipa-cp.c (ipcp_alignment_lattice): New type.
6712 (ipcp_param_lattices): Use the above to represent alignment.
6713 (ipcp_alignment_lattice::print): New function.
6714 (print_all_lattices): Use it to print alignment information.
6715 (ipcp_alignment_lattice::top_p): New function.
6716 (ipcp_alignment_lattice::bottom_p): Likewise.
6717 (ipcp_alignment_lattice::set_to_bottom): Likewise.
6718 (ipcp_alignment_lattice::meet_with_1): Likewise.
6719 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6720 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6721 (initialize_node_lattices): Likewise.
6722 (propagate_alignment_accross_jump_function): Work with the new class
6723 for alignment lattices.
6724 (propagate_constants_accross_call): Pass only the alignment lattice to
6725 propagate_alignment_accross_jump_function.
6726 (ipcp_store_alignment_results): Work with the new class for alignment
6727 lattices.
6728
6729 2015-10-05 Marek Polacek <polacek@redhat.com>
6730
6731 PR tree-optimization/67821
6732 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6733
6734 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
6735
6736 PR other/65021
6737 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6738 function to...
6739 (mkoffload_cleanup): ... this. Adjust all users.
6740 (maybe_unlink): Look at save_temps and verbose flags instead of
6741 debug flag.
6742 (main): Parse "-save-temps" flag.
6743 (generate_target_descr_file, generate_target_offloadend_file)
6744 (generate_host_descr_file, prepare_target_image): Pass it on.
6745 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6746 (mkoffload_cleanup): New function.
6747 (maybe_unlink): Look at save_temps and verbose flags instead of
6748 debug flag.
6749 (main): Instead of calling utils_cleanup, register atexit handler
6750 for mkoffload_cleanup.
6751 (main): Parse "-save-temps" flag.
6752 (compile_native, main): Pass it on.
6753 * lto-wrapper.c (compile_offload_image): Likewise.
6754
6755 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6756
6757 * gimple.h (gimple_op_ptr): Require a non const gimple *.
6758 (gimple_assign_lhs_ptr): Likewise.
6759 (gimple_assign_rhs1_ptr): Likewise.
6760 (gimple_assign_rhs2_ptr): Likewise.
6761 (gimple_assign_rhs3_ptr): Likewise.
6762 (gimple_call_lhs_ptr): Likewise.
6763 (gimple_call_fn_ptr): Likewise.
6764 (gimple_call_chain_ptr): Likewise.
6765 (gimple_call_arg_ptr): Likewise.
6766 (gimple_cond_lhs_ptr): Likewise.
6767 (gimple_cond_rhs_ptr): Likewise.
6768 (gimple_switch_index_ptr): Likewise.
6769 (gimple_return_retval_ptr): Likewise.
6770
6771 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6772
6773 * gimple.h (gimple_asm_input_op_ptr): Remove.
6774 (gimple_asm_output_op_ptr): Likewise.
6775
6776 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6777
6778 * gimple.h (gimple_location_ptr): Remove.
6779 * tree-vrp.c (check_all_array_refs): Adjust.
6780
6781 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6782
6783 * tree-ssa-operands.c (build_uses): store tree * instead of
6784 tree.
6785 (finalize_ssa_uses): Adjust.
6786 (append_use): Likewise.
6787 (verify_ssa_operands): Likewise.
6788
6789 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6790
6791 * real.h (build_real_truncate): Declare.
6792 * tree.c (build_real_truncate): New function.
6793 (strip_float_extensions): Use it.
6794 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
6795 (fold_builtin_hypot, fold_builtin_pow): Likewise.
6796 * match.pd: Likewise.
6797
6798 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
6799 Jiong Wang <jiong.wang@arm.com>
6800
6801 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
6802
6803 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6804
6805 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
6806 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
6807 (aarch64_print_operand, aarch64_float_const_representable_p)
6808 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
6809 instead of REAL_VALUE_FROM_CONST_DOUBLE.
6810 * config/arc/arc.c (arc_print_operand): Likewise.
6811 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
6812 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
6813 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
6814 Likewise.
6815 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
6816 (consttable_16): Likewise.
6817 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
6818 * config/avr/avr.c (avr_print_operand): Likewise.
6819 * config/bfin/bfin.md: Likewise (in a define_split).
6820 * config/c6x/c6x.md: Likewise (in a define_split).
6821 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
6822 (cr16_print_operand): Likewise.
6823 * config/cris/cris.c (cris_print_operand): Likewise.
6824 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
6825 * config/fr30/fr30.c (fr30_print_operand): Likewise.
6826 (fr30_const_double_is_zero): Likewise.
6827 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
6828 * config/frv/frv.md: Likewise (in a define_split).
6829 * config/frv/predicates.md (int_2word_operand): Likewise.
6830 * config/h8300/h8300.c (h8300_print_operand): Likewise.
6831 * config/i386/i386.c (standard_80387_constant_p): Likewise.
6832 (ix86_print_operand, ix86_split_to_parts): Likewise.
6833 * config/i386/i386.md: Likewise (in a define_split).
6834 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
6835 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
6836 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
6837 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
6838 (print_operand): Likewise.
6839 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
6840 * config/mep/mep.md: Likewise (in define_split).
6841 * config/microblaze/microblaze.c (microblaze_const_double_ok)
6842 (print_operand): Likewise.
6843 * config/mips/mips.md (consttable_float): Likewise.
6844 * config/mmix/mmix.c (mmix_intval): Likewise.
6845 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
6846 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
6847 * config/pa/pa.c (pa_singlemove_string): Likewise.
6848 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
6849 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
6850 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
6851 (output_toc): Likewise.
6852 * config/rs6000/rs6000.md: Likewise (in define_splits).
6853 * config/rx/rx.c (rx_print_operand): Likewise.
6854 * config/s390/s390.c (s390_output_pool_entry): Likewise.
6855 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6856 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
6857 (and also in define_splits).
6858 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
6859 (fp_high_losum_p): Likewise.
6860 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
6861 (*movsf_high): Likewise.
6862 * config/spu/spu.c (const_double_to_hwint): Likewise.
6863 * config/v850/v850.c (const_double_split): Likewise.
6864 * config/vax/vax.c (vax_float_literal): Likewise.
6865 * config/visium/visium.c (visium_expand_copysign): Likewise.
6866 * config/visium/visium.md: Likewise (in define_split).
6867 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6868 * config/xtensa/xtensa.c (print_operand): Likewise.
6869 (xtensa_output_literal): Likewise.
6870 * cprop.c (implicit_set_cond_p): Likewise.
6871 * dwarf2out.c (insert_float): Likewise.
6872 * expmed.c (expand_mult, make_tree): Likewise.
6873 * expr.c (compress_float_constant): Likewise.
6874 * rtlanal.c (split_double): Likewise.
6875 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6876 (simplify_const_unary_operation, simplify_binary_operation_1)
6877 (simplify_const_binary_operation): Likewise.
6878 (simplify_const_relational_operation): Likewise.
6879 * varasm.c (output_constant_pool_2): Likewise.
6880
6881 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6882
6883 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6884 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6885 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6886 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6887 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6888 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6889 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6890 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6891 (ix86_emit_swsqrtsf): Likewise.
6892 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6893 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6894 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6895 * config/pa/pa.c (pa_expand_builtin): Likewise.
6896 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6897 (rs6000_scale_v2df): Likewise.
6898 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6899 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6900 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6901 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6902 (vec_ctul): Likewise.
6903 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6904 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6905 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6906 * cse.c (fold_rtx): Likewise.
6907 * emit-rtl.c (immed_double_const): Likewise (in comments).
6908 (init_emit_once): Likewise.
6909 * expr.c (compress_float_constant, expand_expr_real_1)
6910 (const_vector_from_tree): Likewise.
6911 * optabs.c (expand_float, expand_fix): Likewise.
6912 * reg-stack.c (reg_to_stack): Likewise.
6913 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6914 (simplify_const_unary_operation, simplify_binary_operation_1)
6915 (simplify_const_binary_operation, simplify_relational_operation)
6916 (simplify_immed_subreg): Likewise.
6917
6918 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6919
6920 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6921 * doc/tm.texi: Regenerate.
6922 * real.h (REAL_ARITHMETIC): Delete.
6923 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6924 (ix86_expand_round_sse4): Use real_arithmetic instead of
6925 REAL_ARITHMETIC.
6926 * config/i386/sse.md (round<mode>2): Likewise.
6927 * rtl.h (rtx_to_tree_code): Likewise (in comment).
6928 * explow.c (rtx_to_tree_code): Likewise (in comment).
6929 * match.pd: Likewise.
6930 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6931 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6932 (expand_pow_as_sqrts): Likewise.
6933 * tree-pretty-print.c (dump_generic_node): Remove code that
6934 was conditional on REAL_ARITHMETIC being undefined.
6935
6936 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6937
6938 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6939 * doc/tm.texi: Regenerate.
6940 * real.h (real_less): Declare.
6941 (REAL_VALUES_LESS): Delete.
6942 * real.c (real_less): New function.
6943 (real_compare): Use it.
6944 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6945 of REAL_VALUES_LESS.
6946 * config/microblaze/microblaze.c (microblaze_const_double_ok):
6947 Likewise.
6948 * fold-const.c (fold_convert_const_int_from_real): Likewise.
6949 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6950 (simplify_const_relational_operation): Likewise.
6951 * tree-call-cdce.c (check_pow): Likewise.
6952 (gen_conditions_for_pow_cst_base): Likewise.
6953
6954 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6955
6956 * real.h (REAL_VALUES_IDENTICAL): Delete.
6957 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6958 instead of REAL_VALUES_IDENTICAL.
6959 * fold-const.c (operand_equal_p): Likewise.
6960 * ipa-icf.c (sem_variable::equals): Likewise.
6961 * tree-complex.c (some_nonzerop): Likewise.
6962 (expand_complex_multiplication): Likewise.
6963 * tree.c (simple_cst_equal): Likewise.
6964 * varasm.c (compare_constant): Likewise.
6965
6966 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6967
6968 * real.h (real_equal): Declare.
6969 (REAL_VALUES_EQUAL): Delete.
6970 * real.c (real_equal): New function.
6971 (real_compare): Use it.
6972 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6973 * doc/tm.texi: Regenerate.
6974 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6975 real_equal instead of REAL_VALUES_EQUAL.
6976 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6977 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6978 (fp_const_from_val): Likewise.
6979 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6980 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6981 (floating_exact_log2): Likewise.
6982 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6983 * config/vax/vax.c (vax_float_literal): Likewise.
6984 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6985 * cprop.c (implicit_set_cond_p): Likewise.
6986 * expmed.c (expand_mult): Likewise.
6987 * fold-const.c (const_binop): Likewise.
6988 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6989 (simplify_const_binary_operation): Likewise.
6990 (simplify_const_relational_operation): Likewise.
6991 * tree-call-cdce.c (check_pow): Likewise.
6992 (gen_conditions_for_pow_cst_base): Likewise.
6993 * tree-inline.c (estimate_num_insns): Likewise.
6994 * tree-ssa-dom.c (record_equality): Likewise.
6995 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6996 (gimple_expand_builtin_pow): Likewise.
6997 (pass_optimize_widening_mul::execute): Likewise.
6998 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6999 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
7000 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
7001
7002 2015-10-05 Richard Biener <rguenther@suse.de>
7003
7004 PR ipa/67783
7005 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
7006 consider loop header PHI defs as IVs.
7007
7008 2015-10-05 Richard Biener <rguenther@suse.de>
7009
7010 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
7011 call handling ...
7012 (create_expression_by_pieces): ... here and build GIMPLE
7013 calls directly. Use gimple_build API and avoid force_gimple_operand.
7014 (insert_into_preds_of_block): Simplify.
7015 (do_regular_insertion): Add comment.
7016
7017 2015-10-04 Jason Merrill <jason@redhat.com>
7018
7019 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
7020
7021 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
7022
7023 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
7024 check for general register.
7025 (ix86_emit_save_regs): Ditto.
7026 (ix86_emit_save_regs_using_mov): Ditto.
7027 (ix86_emit_restore_regs_using_pop): Ditto.
7028 (ix86_emit_restore_regs_using_mov): Ditto.
7029
7030 2015-10-03 Marek Polacek <polacek@redhat.com>
7031
7032 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
7033 (insn-dfatab.o): Likewise.
7034
7035 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
7036
7037 * config.gcc (xtensa*-*-uclinux*): New configuration.
7038 * config/xtensa/uclinux.h: New file.
7039 * config/xtensa/uclinux.opt: New file.
7040
7041 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
7042
7043 * doc/cpp.texi (Standard Predefined Macros): Document value of
7044 __cplusplus for C++14.
7045
7046 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
7047
7048 * gcc.c (process_command): Use spec_machine rather than
7049 spec_host_machine to build tooldir_prefix2.
7050
7051 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7052 Bernd Schmidt <bernds@codesourcery.com>
7053
7054 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
7055 (Token, Stmt): Remove structs.
7056 (decls, vars, fns): Remove variables.
7057 (alloc_comment, append_stmt, is_keyword): Remove macros.
7058 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
7059 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
7060 (parse_init, parse_file): Remove functions.
7061 (read_file): Accept a pointer to a length and store into it.
7062 (process): Don't try to parse the input file, just write it out as
7063 a string, but looking for maps. Also write out the length.
7064 (main): Don't use "-S" to compile PTX code.
7065
7066 2015-10-02 Jeff Law <law@redhat.com>
7067
7068 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
7069 fixups.
7070
7071 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
7072
7073 PR target/67822
7074 * config/nvptx/mkoffload.c (main): Scan the argument vector for
7075 -fopenmp, and skip generating an offloading image if specified.
7076
7077 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
7078
7079 * system.h (ROUND_UP): New macro definition.
7080 (ROUND_DOWN): Ditto.
7081 * ggc-page.c (ROUND_UP): Remove local macro definition.
7082 (PAGE_ALIGN): Implement using ROUND_UP macro.
7083
7084 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
7085 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
7086 to align values.
7087 (ix86_compute_frame_layout): Ditto.
7088 (ix86_expand_prologue): Ditto.
7089 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
7090 to round down values.
7091 (expand_set_or_movmem_via_rep): Ditto.
7092
7093 2015-10-02 Marek Polacek <polacek@redhat.com>
7094
7095 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
7096
7097 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
7098
7099 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
7100 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
7101 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
7102 (free_gimple_bb): Renamed free_gimple_poly_bb.
7103 (try_generate_gimple_bb): Hoist loop invariant code.
7104 (analyze_drs_in_stmts): Same.
7105 (build_scop_drs): Call renamed functions.
7106 (new_pbb_from_pbb): Same.
7107 (scop_ivs_can_be_represented): Delete as functionality now moved to
7108 graphite-scop-detection.c
7109 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
7110
7111 2015-10-02 Aditya Kumar <hiraditya@msn.com>
7112
7113 * graphite-scop-detection.c (stmt_has_side_effects): New function
7114 outlined from stmt_simple_for_scop_p.
7115 (graphite_can_represent_stmt): Same.
7116 (stmt_simple_for_scop_p): Moved code out of this function for better
7117 readability.
7118
7119 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7120
7121 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
7122 F_AVX512IFMA.
7123 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
7124
7125 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7126
7127 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
7128
7129 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
7130
7131 PR rtl-optimization/67756
7132 * lra-constraints.c (match_reload): Add a new parameter. Use it
7133 for creating a pseudo with the same value.
7134 (curr_insn_transform): Pass a new argument to match_reload.
7135
7136 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7137
7138 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
7139 (expand_vec_perm_even_odd_1): Handle V64QImode.
7140 (ix86_expand_vec_perm_const_1): Try expansion with
7141 expand_vec_perm_even_odd_trunc as well.
7142 * config/i386/sse.md (VI124_AVX512F): Rename to ...
7143 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
7144 to V54QI.
7145 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
7146 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
7147 to V32HI and V16SI.
7148 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
7149 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
7150 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
7151 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
7152 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
7153 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
7154
7155 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
7156
7157 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
7158 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7159
7160 2015-10-02 Jason Merrill <jason@redhat.com>
7161
7162 PR c/59218
7163 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7164 (diagnose_tm_1_op): Also diagnose volatile accesses in
7165 transaction_safe function.
7166
7167 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
7168
7169 * system.h (malloc.h): Don't include obsolete header.
7170
7171 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7172
7173 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7174 (TLS_SECTION_ASM_FLAG): Delete.
7175
7176 2015-10-02 Marek Polacek <polacek@redhat.com>
7177
7178 PR c/64249
7179 * doc/invoke.texi: Document -Wduplicated-cond.
7180 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7181 (insn-dfatab.o): Likewise.
7182 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7183 warning.
7184
7185 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
7186
7187 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7188 sequences.
7189
7190 2015-10-02 Renlin Li <renlin.li@arm.com>
7191
7192 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7193
7194 2015-10-02 Renlin Li <renlin.li@arm.com>
7195
7196 PR target/66776
7197 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7198
7199 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7200
7201 PR rtl-optimization/67786
7202 PR rtl-optimization/67787
7203 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7204 it modifies a reg used in the condition calculation.
7205
7206 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
7207
7208 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7209 alternatives for reads from memory and moves from general-purpose
7210 registers.
7211 (*aarch64_combinez_be<mode>): Likewise.
7212
7213 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
7214
7215 PR target/51726
7216 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7217 selectany within this function without need to keep attribute.
7218 (i386_pe_encode_section_info): Remove selectany-code.
7219
7220 2015-10-02 Richard Biener <rguenther@suse.de>
7221
7222 * tree-ssa-sccvn.c (has_VN_INFO): New function.
7223 (free_scc_vn): Use it.
7224 (visit_use): Remove dead code and refactor to use gassign
7225 and use less indentation.
7226
7227 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7228
7229 PR target/67788
7230 PR target/67789
7231 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7232 (rs6000_cannot_copy_insn_p): New function.
7233 * config/rs6000/rs6000.md (cannot_copy): New attribute.
7234 (load_toc_v4_PIC_1_normal): Set cannot_copy.
7235 (load_toc_v4_PIC_1_476): Ditto.
7236
7237 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7238
7239 * graphite-scop-detection.c (struct sese_l): New conversion constructor
7240 so that this type can be pushed into a vec.
7241 (class scop_builder): use sese_l to collect scops.
7242 (get_scops): New getter function.
7243 (remove_intersecting_scops): Use sese_l instead of scops_p.
7244 (intersects): Same.
7245 (add_scop): Same.
7246 (subsumes): Same.
7247 (remove_subscops): Same.
7248 (build_scops): Add scops to vec<scops_p> once all the scops have been
7249 detected.
7250
7251 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7252
7253 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7254 Renamed type from gimple_bb_p to gimple_poly_bb_p.
7255 (translate_isl_ast_node_user): Same.
7256 * graphite-poly.c (new_poly_bb): Same.
7257 * graphite-poly.h (gbb_from_bb): Same.
7258 * sese.h: Same.
7259 * graphite-sese-to-poly.c (new_gimple_bb):
7260 gimple_bb_p -> gimple_poly_bb_p
7261 (build_scop_scattering): Same.
7262 (find_params_in_bb): Same.
7263 (add_conditions_to_domain): Same.
7264 (sese_dom_walker::before_dom_children): Same.
7265 (analyze_drs_in_stmts): Same.
7266 (new_pbb_from_pbb): Same.
7267 (free_data_refs_aux): New pointer to type base_alias_pair.
7268 * graphite-sese-to-poly.h: Same.
7269 * sese.c (if_region_set_false_region): Fixed Indentation.
7270 (move_sese_in_condition): Same.
7271
7272 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7273 Aditya Kumar <aditya.k7@samsung.com>
7274
7275 PR tree-optimization/66980
7276 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7277 when data reference analysis has failed.
7278
7279 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7280 Aditya Kumar <aditya.k7@samsung.com>
7281
7282 PR tree-optimization/67754
7283 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7284 scev analysis on the same loop nest as analyze_drs_in_stmts.
7285 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7286 renamed...
7287 (try_generate_gimple_bb): Call outermost_loop_in_sese.
7288 (analyze_drs_in_stmts): Same.
7289 * sese.c (outermost_loop_in_sese): ...here.
7290
7291 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7292 Aditya Kumar <aditya.k7@samsung.com>
7293
7294 PR tree-optimization/67754
7295 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7296 recursion on the inner loops.
7297
7298 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7299
7300 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7301 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7302 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7303 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7304 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7305
7306 2015-10-01 Marek Polacek <polacek@redhat.com>
7307
7308 PR c/65345
7309 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7310 create_tmp_var_raw rather than create_tmp_var.
7311
7312 2015-10-01 Marek Polacek <polacek@redhat.com>
7313
7314 PR tree-optimization/67769
7315 * tree-ssa-phiopt.c (conditional_replacement): Call
7316 reset_flow_sensitive_info_in_bb.
7317 (minmax_replacement): Likewise.
7318 (abs_replacement): Likewise.
7319
7320 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
7321
7322 * builtins.c: Don't include gomp-constants.h.
7323 (fold_builtin_1): Don't fold acc_on_device here.
7324 * gimple-fold.c: Include gomp-constants.h.
7325 (gimple_fold_builtin_acc_on_device): New.
7326 (gimple_fold_builtin): Call it.
7327
7328 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
7329
7330 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7331 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7332
7333 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
7334
7335 * config/arm/aarch-common-protos.h
7336 (aarch_accumulator_forwarding): New.
7337 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7338 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7339 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7340 * config/arm/cortex-a53.md: Rewrite.
7341
7342 2015-10-01 Richard Biener <rguenther@suse.de>
7343
7344 * gimple-match.h (mprts_hook): Declare.
7345 * gimple-match.head.c (mprts_hook): Define.
7346 (maybe_push_res_to_seq): Use new hook.
7347 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7348 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7349 (vn_ssa_aux::has_constants): Remove.
7350 * tree-ssa-sccvn.c: Include gimple-match.h.
7351 (VN_INFO_GET): Assert we don't re-use SSA names.
7352 (vn_get_expr_for): Remove.
7353 (expr_has_constants): Likewise.
7354 (stmt_has_constants): Likewise.
7355 (simplify_binary_expression): Likewise.
7356 (simplify_unary_expression): Likewise.
7357 (vn_lookup_simplify_result): New hook.
7358 (visit_copy): Adjust.
7359 (visit_reference_op_call): Likewise.
7360 (visit_phi): Likewise.
7361 (visit_use): Likewise.
7362 (process_scc): Likewise.
7363 (init_scc_vn): Likewise.
7364 (visit_reference_op_load): Likewise. Use match-and-simplify and
7365 a gimple seq for inserted expressions.
7366 (try_to_simplify): Remove GENERIC stmt combining code.
7367 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7368 * tree-ssa-pre.c (eliminate_insert): Adjust.
7369 (eliminate_dom_walker::before_dom_children): Likewise.
7370
7371 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7372
7373 * doc/invoke.texi (Optimization Options): Add
7374 -freorder-blocks-algorithm=.
7375 (Optimize Options) <-O>: Add -freorder-blocks.
7376 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
7377 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7378 <-freorder-blocks>: Also enabled at levels -O and -Os.
7379 <-freorder-blocks-algorithm=>: Document new option.
7380
7381 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7382
7383 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7384 with flag_reorder_blocks_algorithm.
7385 * common.opt (freorder-blocks-algorithm=): New flag.
7386 (reorder_blocks_algorithm): New enum.
7387 * flag-types.h (reorder_blocks_algorithm): New enum.
7388 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7389 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7390
7391 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7392
7393 * bb-reorder.c: Add intro comment.
7394 (reorder_basic_blocks_software_trace_cache): Print a header to
7395 the dump file.
7396 (edge_order): New function.
7397 (reorder_basic_blocks_simple): New function.
7398 (reorder_basic_blocks): Choose between the STC and the simple
7399 algorithms (always choose the former).
7400
7401 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7402
7403 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7404 function, factored out from ...
7405 (reorder_basic_blocks): ... here.
7406
7407 2015-10-01 Tom de Vries <tom@codesourcery.com>
7408
7409 * tree-cfg.c (dump_function_to_file): Dump function attributes using
7410 __attribute__(()) string. Move dumping of function attributes to before
7411 function name.
7412
7413 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
7414
7415 PR target/66870
7416 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7417 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7418 based on gold linker version.
7419 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7420 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7421 * configure, config.in: Regenerate.
7422
7423 2015-10-01 Alan Modra <amodra@gmail.com>
7424
7425 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7426 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7427 (rs6000_output_mi_thunk): Likewise.
7428
7429 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7430
7431 * config/nvptx/mkoffload.c (process): Change offload data format.
7432
7433 2015-09-30 Jeff Law <law@redhat.com>
7434
7435 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7436 with constant conditions.
7437 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7438 (remove_ctrl_stmt_and_useless_edges): No longer static.
7439 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7440 (remove_ctrl_stmt_and_useless_edges): Likewise.
7441
7442 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7443 Cesar Philippidis <cesar@codesourcery.com>
7444
7445 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7446 (TARGET_GOACC_VALIDATE_DIMS): Override.
7447 * target.def (TARGET_GOACC): New target hook prefix.
7448 (validate_dims): New hook.
7449 * targhooks.h (default_goacc_validate_dims): New.
7450 * omp-low.c (oacc_validate_dims): New.
7451 (execute_oacc_device_lower): New.
7452 (default_goacc_validate_dims): New.
7453 (pass_data_oacc_device_lower): New.
7454 (pass_oacc_device_lower): New pass.
7455 (make_pass_oacc_device_lower): New.
7456 * tree-pass.h (make_pass_oacc_device_lower): Declare.
7457 * passes.def (pass_oacc_device_lower): Add it.
7458 * doc/tm.texi: Rebuilt.
7459 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7460 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7461
7462 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7463
7464 PR rtl-optimization/67037
7465 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7466
7467 2015-09-30 Bernd Schmidt <bernds@redhat.com>
7468
7469 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7470 * passes.c: Include tree-ssanames.h.
7471 (execute_function_todo): Flush the pending free SSA_NAMEs after
7472 eliminating unreachable basic blocks.
7473 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7474 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7475 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
7476 (flush_ssanames_freelist): New function.
7477 (release_ssaname_fn): Put released names on the queue.
7478 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
7479 * tree-ssanames.h (flush_ssanames_freelist): Declare.
7480
7481 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7482
7483 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
7484 (generate_target_descr_file, generate_target_offloadend_file)
7485 (generate_host_descr_file, prepare_target_image): Pass it on.
7486 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
7487 (compile_native, main): Pass it on.
7488 * lto-wrapper.c (compile_offload_image): Likewise.
7489
7490 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7491 Ilya Verbin <ilya.verbin@intel.com>
7492 Andrey Turetskiy <andrey.turetskiy@intel.com>
7493
7494 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
7495 (prepare_target_image, main): Refactor argv building to use
7496 obstacks.
7497
7498 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7499
7500 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
7501 * config/spu/spu.c (spu_expand_atomic_op): New function.
7502 * config/spu/spu.md (AINT): New mode iterator.
7503 (ATOMIC): New code iterator.
7504 (atomic_name, atomic_pred): New code predicates.
7505 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
7506 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
7507 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
7508 "atomic_<atomic_name>_fetch<mode>"): Likewise.
7509
7510 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
7511
7512 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
7513 debug insns.
7514 (scalar_chain::convert_reg): Likewise.
7515
7516 2015-09-30 Richard Biener <rguenther@suse.de>
7517
7518 * builtins.c: Add comment that no new simplifications should
7519 be added here.
7520
7521 2015-09-30 Marek Polacek <polacek@redhat.com>
7522
7523 PR tree-optimization/67690
7524 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
7525 reset_flow_sensitive_info_in_bb.
7526 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7527 * tree-ssanames.c: Include "gimple-iterator.h".
7528 (reset_flow_sensitive_info_in_bb): New function.
7529 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
7530
7531 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7532
7533 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
7534 variable, replacing it with...
7535 (offload_abi): ... this new variable. Adjust all users.
7536 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7537
7538 2015-09-30 Matthias Klose <doko@ubuntu.com>
7539
7540 * configure.ac: Remove extraneous ;;.
7541 * configure: Regenerate.
7542
7543 2015-09-29 James Bowman <james.bowman@ftdichip.com>
7544
7545 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
7546 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
7547 predicate, disallow register for operand 2.
7548
7549 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
7550
7551 * graphite-dependences.c (scop_get_dependences): Moved in down
7552 in order to be visible to its caller.
7553 * graphite-poly.h: Removed compute_deps, and extend_schedule.
7554
7555 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7556 Aditya Kumar <aditya.k7@samsung.com>
7557
7558 PR tree-optimization/67754
7559 * graphite-optimize-isl.c (optimize_isl): Call
7560 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
7561
7562 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7563
7564 * builtins.c (expand_builtin_acc_on_device): Delete.
7565 (expand_builtin): Don't call it.
7566 (fold_builtin_1): Fold acc_on_device.
7567
7568 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
7569
7570 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7571 (ix86_nsaved_sseregs): Likewise.
7572
7573 2015-09-29 Jeff Law <law@redhat.com>
7574
7575 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7576 computation of unused value.
7577
7578 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7579 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7580 inline macro expansion.
7581
7582 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7583
7584 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7585 (gen_shl_sext): Likewise.
7586 * config/sh/sh.md (divsi3): Likewise.
7587 (imm->ext_dest_operand splitter): Likewise.
7588
7589 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7590 Aditya Kumar <aditya.k7@samsung.com>
7591
7592 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7593 (nb_data_writes_in_bb): Remove.
7594 (split_pbb): Remove.
7595 (split_reduction_stmt): Remove.
7596 (is_reduction_operation_p): Remove.
7597 (phi_contains_arg): Remove.
7598 (follow_ssa_with_commutative_ops): Remove.
7599 (detect_commutative_reduction_arg): Remove.
7600 (detect_commutative_reduction_assign): Remove.
7601 (follow_inital_value_to_phi): Remove.
7602 (edge_initial_value_for_loop_phi): Remove.
7603 (initial_value_for_loop_phi): Remove.
7604 (used_outside_reduction): Remove.
7605 (detect_commutative_reduction): Remove.
7606 (translate_scalar_reduction_to_array_for_stmt): Remove.
7607 (remove_phi): Remove.
7608 (dr_indices_valid_in_loop): Remove.
7609 (close_phi_written_to_memory): Remove.
7610 (translate_scalar_reduction_to_array): Remove.
7611 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7612 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7613 (rewrite_commutative_reductions_out_of_ssa): Remove.
7614 (build_poly_scop): Remove call to
7615 rewrite_commutative_reductions_out_of_ssa.
7616
7617 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
7618
7619 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7620 Add new insn types for vector load and store pairs.
7621 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7622 types "neon_ldp{,_q}".
7623 * config/arm/cortex-a57.md (neon_load_c): Add insn types
7624 "neon_ldp{,_q}".
7625 (neon_store_complex): Add insn types "neon_stp{,_q}".
7626 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7627 "neon_{ldp,stp}_q".
7628
7629 2015-09-29 Jeff Law <law@redhat.com>
7630
7631 * config/rx/constraints.md (Int08): Fix undefined left shift
7632 behaviour.
7633 (Sint08, Sint16, Sint24): Likewise.
7634 * config/rx/rx.c (rx_get_stack_layout): Likewise.
7635
7636 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7637 behaviour.
7638
7639 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7640 left shift behaviour.
7641 * config/msp430/constraints.md ('L' constraint): Similarly.
7642 ('Ys' constraint): Similarly.
7643
7644 2015-09-29 Richard Biener <rguenther@suse.de>
7645
7646 PR tree-optimization/67170
7647 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7648 the translate function pointer parameter to get the
7649 bool whether to disambiguate only by reference.
7650 (walk_non_aliased_vuses): Likewise.
7651 * tree-ssa-alias.c (maybe_skip_until): Adjust.
7652 (get_continuation_for_phi_1): Likewise.
7653 (get_continuation_for_phi): Likewise.
7654 (walk_non_aliased_vuses): Likewise.
7655 * tree-ssa-sccvn.c (const_parms): New bitmap.
7656 (vn_reference_lookup_3): Adjust for interface change.
7657 Disambiguate parameters pointing to readonly memory.
7658 (free_scc_vn): Free const_parms.
7659 (run_scc_vn): Initialize const_parms from a fn spec attribute.
7660
7661 2015-09-29 Richard Biener <rguenther@suse.de>
7662
7663 PR tree-optimization/67741
7664 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7665 builtin calls with correct signature.
7666
7667 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
7668
7669 PR target/65105
7670 * config/i386/i386.c: Include dbgcnt.h.
7671 (has_non_address_hard_reg): New.
7672 (convertible_comparison_p): New.
7673 (scalar_to_vector_candidate_p): New.
7674 (remove_non_convertible_regs): New.
7675 (scalar_chain): New.
7676 (scalar_chain::scalar_chain): New.
7677 (scalar_chain::~scalar_chain): New.
7678 (scalar_chain::add_to_queue): New.
7679 (scalar_chain::mark_dual_mode_def): New.
7680 (scalar_chain::analyze_register_chain): New.
7681 (scalar_chain::add_insn): New.
7682 (scalar_chain::build): New.
7683 (scalar_chain::compute_convert_gain): New.
7684 (scalar_chain::replace_with_subreg): New.
7685 (scalar_chain::replace_with_subreg_in_insn): New.
7686 (scalar_chain::emit_conversion_insns): New.
7687 (scalar_chain::make_vector_copies): New.
7688 (scalar_chain::convert_reg): New.
7689 (scalar_chain::convert_op): New.
7690 (scalar_chain::convert_insn): New.
7691 (scalar_chain::convert): New.
7692 (convert_scalars_to_vector): New.
7693 (pass_data_stv): New.
7694 (pass_stv): New.
7695 (make_pass_stv): New.
7696 (ix86_option_override): Created and register stv pass.
7697 (flag_opts): Add -mstv.
7698 (ix86_option_override_internal): Likewise.
7699 * config/i386/i386.md (SWIM1248x): New.
7700 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7701 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7702 (*anddi3_doubleword): New.
7703 (*zext<mode>_doubleword): New.
7704 (*zextsi_doubleword): New.
7705 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7706 (*<code>di3_doubleword): New.
7707 * config/i386/i386.opt (mstv): New.
7708 * dbgcnt.def (stv_conversion): New.
7709
7710 2015-09-29 Tom de Vries <tom@codesourcery.com>
7711
7712 * tree-cfg.c (dump_function_to_file): Dump function attributes.
7713
7714 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
7715
7716 PR target/67716
7717 * config/sh/sh.c (sh_override_options_after_change): New.
7718 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7719 (sh_option_override): Move align_loops, align_jumps and
7720 align_functions handling into sh_override_options_after_change.
7721
7722 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7723
7724 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7725 (nvptx_record_offload_symbol): Record function execution geometry.
7726 * config/nvptx/mkoffload.c (process): Include launch geometry in
7727 function data.
7728 * omp-low.c (oacc_launch_pack): New.
7729 (replace_oacc_fn_attrib): New.
7730 (set_oacc_fn_attrib): New.
7731 (get_oacc_fn_attrib): New.
7732 (expand_omp_target): Create keyed varargs for GOACC_parallel call
7733 generation.
7734 * omp-low.h (get_oacc_fn_attrib): Declare.
7735 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7736 (DEF_FUNCTION_TYPE_VAR_11): Delete.
7737 * tree.h (OMP_CLAUSE_EXPR): New.
7738 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7739
7740 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7741 Sebastian Pop <s.pop@samsung.com>
7742
7743 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7744
7745 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7746 Sebastian Pop <s.pop@samsung.com>
7747
7748 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7749 * graphite-scop-detection.c (struct sese_l): New type.
7750 (get_entry_bb): API for getting entry bb of SESE.
7751 (get_exit_bb): API for getting exit bb of SESE.
7752 (class debug_printer): New type. Simple printer in debug mode.
7753 (trivially_empty_bb_p): New. Return true when BB is empty or
7754 contains only debug instructions.
7755 (graphite_can_represent_expr): Call scalar_evoution_in_region
7756 instead of analyze_scalar_evolution. Pass in scop instead of only
7757 the scop entry.
7758 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7759 scop entry.
7760 (stmt_simple_for_scop_p): Same.
7761 (harmful_stmt_in_bb): Same.
7762 (graphite_can_represent_loop): Deleted.
7763 (struct scopdet_info): Deleted.
7764 (scopdet_basic_block_info): Deleted.
7765 (build_scops_1): Deleted.
7766 (bb_in_sd_region): Deleted.
7767 (find_single_entry_edge): Deleted.
7768 (find_single_exit_edge): Deleted.
7769 (create_single_entry_edge): Deleted.
7770 (sd_region_without_exit): Deleted.
7771 (create_single_exit_edge): Deleted.
7772 (unmark_exit_edges): Deleted.
7773 (mark_exit_edges): Deleted.
7774 (create_sese_edges): Deleted.
7775 (build_graphite_scops): Deleted.
7776 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
7777 (build_scops): Use the new scop_builder to build scops.
7778 (dot_all_scops_1): Use the new pretty printer. Print loop father
7779 as well.
7780 (loop_body_is_valid_scop): New. Return true if loop body is a
7781 valid scop.
7782 (class scop_builder): New. Builds SCoPs for polyhedral
7783 optimizations.
7784 (scop_builder): New constructor.
7785 (static sese_l invalid_sese): sese_l with invalid edges.
7786 (get_sese): Get an sese (from a loop) if possible, invalid_sese
7787 otherwise.
7788 (get_nearest_dom_with_single_entry): Get nearest dominator of a
7789 basic_block with single entry. Return NULL if we get to the
7790 beginning of a function.
7791 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
7792 a basic_block with single exit. Return NULL if we get to the
7793 beginning of a function.
7794 (print_sese): Pretty-print SESE.
7795 (merge_sese): Merge two SESEs if possible and return the new SESE.
7796 (build_scop_depth): Start building the SCoP within a loop nest.
7797 (build_scop_breadth): Start building the SCoP at a single loop
7798 depth. Merge adjacent SESEs if valid.
7799 (can_represent_loop_1): Returns true if Graphite can represent
7800 loop inside SCoP. Helper for can_represent_loop.
7801 (can_represent_loop): Returns true if Graphite can represent LOOP
7802 and all its nested loops in SCoP.
7803 (loop_is_valid_scop): Returns true if LOOP and all its nests
7804 constitute a valid SCoP.
7805 (region_has_one_loop): Returns true of a region has only one loop.
7806 (add_scop): Add SCoP to the list of valid scops. Removes an
7807 already existing scop if it intersects with or subsumed by this one.
7808 (harmful_stmt_in_region): Returns true if SCoP has any statment
7809 which cannot be represented by Graphite.
7810 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
7811 (remove_subscops): Remove any SCoP from the list of already found
7812 SCoPs, if subsumed by S1.
7813 (intersects): Return true if region bounded by SCoPs S1 and S2
7814 intersect.
7815 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
7816 * graphite.c (print_graphite_scop_statistics):
7817 (print_graphite_statistics): Print SCoP info while debugging.
7818 (graphite_initialize): Early exit in case number of loops in a
7819 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
7820 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7821 (graphite_finalize):
7822 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
7823 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
7824 (recompute_all_dominators): Recalculate POST_DOMINATORS.
7825 * tree-cfg.c (print_loops): Print the function name while printing
7826 loops.
7827
7828 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7829 Sebastian Pop <s.pop@samsung.com>
7830
7831 PR tree-optimization/67700
7832 * graphite-sese-to-poly.c (parameter_index_in_region): Call
7833 invariant_in_sese_p_rec.
7834 (extract_affine): Same.
7835 (rewrite_cross_bb_scalar_deps): Call update_ssa.
7836 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
7837 * sese.h (invariant_in_sese_p_rec): Declare.
7838
7839 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
7840
7841 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
7842
7843 2015-09-28 Jiong Wang <jiong.wang@arm.com>
7844
7845 Revert:
7846 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7847 Jiong Wang <jiong.wang@arm.com>
7848
7849 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7850 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7851 (REG_CLASS_NAMES): Likewise.
7852 (REG_CLASS_CONTENTS): Likewise.
7853 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7854 (aarch64_register_move_cost): Likewise.
7855 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7856 possible.
7857 * config/aarch64/constraints.md (Uc0): New constraint.
7858
7859 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
7860
7861 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
7862
7863 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
7864
7865 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
7866 SECTION_EXCLUDE in XO mapping class.
7867
7868 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7869
7870 PR target/54236
7871 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
7872 and handle ne and eq codes.
7873 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
7874 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
7875 CONST_INT_P. Use reverse_condition.
7876 (sh_split_treg_set_expr): Likewise.
7877
7878 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
7879
7880 * config/arm/types.md (type): Add rotate_imm.
7881 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7882 ROR immediate case.
7883 (*rorsi3_insn_uxtw): Likewise.
7884 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7885 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7886 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7887
7888 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7889
7890 PR rtl-optimization/67481
7891 * ifcvt.c (contains_ccmode_rtx_p): New function.
7892 (insn_valid_noce_process_p): Use it.
7893
7894 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7895
7896 PR rtl-optimization/67456
7897 PR rtl-optimization/67464
7898 PR rtl-optimization/67465
7899 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7900 move in the mode of x. Handle combination of complex and simple
7901 block pairs as well as the case when one is empty.
7902
7903 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7904
7905 * doc/gimple.texi: Update references to gimple_statement_base.
7906 * gdbhooks.py: Likewise.
7907 * gimple.h: Likewise.
7908
7909 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7910
7911 * config/sparc/driver-sparc.c: map LEON to leon3
7912
7913 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7914
7915 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7916 and make it inverse to change default
7917 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7918 supervisor mode
7919 * doc/invoke.texi: Document change of default
7920
7921 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7922
7923 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7924 true on %f0 for a target without FPU.
7925 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7926 without FPU.
7927 (untyped_return): Do not load %f0 for a target without FPU.
7928
7929 2015-09-28 Andrew Pinski <apinski@cavium.com>
7930
7931 * config/aarch64/aarch64.md (prefetch):
7932 Change the predicate of operand 0 to register_operand.
7933
7934 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
7935
7936 * config/i386/predicates.md (register_sse4nonimm_operand): New
7937 predicate.
7938 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7939 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7940 Use register_sse4nonimm_operand as operand 0 predicate.
7941 (*vec_extractv8hi_sse2): Remove insn pattern.
7942 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7943 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7944
7945 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7946 Kaz Kojima <kkojima@gcc.gnu.org>
7947
7948 PR target/67391
7949 * config/sh/sh-protos.h (sh_lra_p): Declare.
7950 * config/sh/sh.c (sh_lra_p): Make non-static.
7951 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7952 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
7953 Expand into addsi3_scr if operands[2] if needed.
7954 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
7955 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
7956 (addsi3_scr, *addsi3): New insn_and_split patterns.
7957
7958 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
7959
7960 PR rtl-optimization/64164
7961 PR tree-optimization/67312
7962 PR middle-end/67340
7963 PR middle-end/67490
7964 PR bootstrap/67597
7965 * cfgexpand.c (parm_in_stack_slot_p): Remove.
7966 (ssa_default_def_partition): Remove.
7967 (get_rtl_for_parm_ssa_default_def): Remove.
7968 (set_rtl): Check that RTL assignments match expectations.
7969 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
7970 default def location for params and results. Record SSA names
7971 or types in REG and MEM attrs, respectively.
7972 (set_parm_rtl): New.
7973 (expand_one_ssa_partition): Drop logic that assigned MEMs with
7974 unassigned addresses.
7975 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7976 deferred stack alloc vars.
7977 (expand_used_vars): Skip partitions holding parm default defs.
7978 Move adjust_one_expanded_partition_var loop...
7979 (pass_expand::execute): ... here. Drop redundant assert.
7980 Adjust comments before the final loop over all ssa names.
7981 Require assigned rtl of parms and results to match exactly.
7982 Reset its attributes to match them, not any other variables in
7983 the same partition.
7984 (expand_debug_expr): Use entry value for PARM's default defs
7985 only iff they have zero nondebug uses.
7986 * cfgexpand.h (parm_in_stack_slot_p): Remove.
7987 (get_rtl_for_parm_ssa_default_def): Remove.
7988 (set_parm_rtl): Declare.
7989 * doc/invoke.texi: Improve wording.
7990 * explow.c (promote_decl_mode): Fix promote_function_mode for
7991 result decls not by reference.
7992 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
7993 bypass TYPE_MODE to get the actual vector mode.
7994 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
7995 2015-08-19's changes as follows. Drop include of
7996 basic-block.h and df.h.
7997 (rtl_for_parm): Remove.
7998 (maybe_reset_rtl_for_parm): Remove.
7999 (parm_in_unassigned_mem_p): Remove.
8000 (use_register_for_decl): Add logic for RESULT_DECLs matching
8001 assign_parms' behavior.
8002 (split_complex_args): Revert.
8003 (assign_parms_augmented_arg_list): Revert. Add comment
8004 referencing the logic above.
8005 (assign_parm_adjust_stack_rtl): Revert.
8006 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
8007 of SET_DECL_RTL. Set up a REG if the parm demands so.
8008 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
8009 calls into a single set_parm_rtl. Set up a temporary RTL
8010 temporarily for expand_assignment.
8011 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
8012 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
8013 (assign_bounds): Revert.
8014 (assign_parms): Revert. Use set_parm_rtl.
8015 (allocate_struct_function): Relayout result and parms of
8016 non-abstruct functions.
8017 (expand_function_start): Revert. Use set_parm_rtl. If the
8018 result is not a hard reg, create a pseudo from the promoted
8019 mode of the default def. Promote static chain mode.
8020 * tree-outof-ssa.c (remove_ssa_form): Drop unused
8021 partition_has_default_def. Set up
8022 partitions_for_parm_default_defs.
8023 (finish_out_of_ssa): Remove partition_has_default_def.
8024 Release partitions_for_parm_default_defs.
8025 * tree-outof-ssa.h (struct ssaexpand): Remove
8026 partition_has_default_def. Add
8027 partitions_for_parm_default_defs.
8028 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
8029 stor-layout.h.
8030 (build_ssa_conflict_graph): Fix conflict-detection of default
8031 defs of even unused default defs of params and results.
8032 (for_all_parms): New.
8033 (create_default_def): New.
8034 (register_default_def): New.
8035 (coalesce_with_default): New.
8036 (create_outofssa_var_map): Create default defs for all parms
8037 and results, and register their partitions. Add GIMPLE_RETURN
8038 operands as coalesce candidates with results. Add default
8039 defs of each parm or result as coalesce candidates with its
8040 other defs. Mark each result def, and each default def of
8041 parms, as used_in_copy.
8042 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
8043 with the ssa names, even anonymous ones. Drop
8044 parm_in_stack_slot_p calls. Require same signedness and
8045 alignment.
8046 (coalesce_ssa_name): Add coalesce candidates for all defs of
8047 each parm and result, even unused ones.
8048 (parm_default_def_partition_arg): New type.
8049 (set_parm_default_def_partition): New.
8050 (get_parm_default_def_partitions): New.
8051 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
8052 * tree-ssa-live.c (partition_view_init): Regard unused defs of
8053 parms and results as used.
8054 (verify_live_on_entry): Don't error out just because they're
8055 not live.
8056
8057 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
8058
8059 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8060 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
8061 (output_fde): Don't output length for debug_frame on AIX.
8062 (output_call_frame_info): Don't output length for debug_frame on AIX.
8063 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
8064 HAVE_XCOFF_DWARF_EXTRAS.
8065 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
8066 HAVE_XCOFF_DWARF_EXTRAS.
8067 (output_compilation_unit_header): Don't output length on AIX.
8068 (output_pubnames): Don't output length on AIX.
8069 (output_aranges): Delete argument. Compute length locally. Don't
8070 output length on AIX.
8071 (output_line_info): Don't output length on AIX.
8072 (dwarf2out_finish): Don't compute aranges_length.
8073 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
8074 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
8075 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
8076 symbol decoration for AIX.
8077 (rs6000_xcoff_debug_unwind_info): New.
8078 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
8079 for SECTION_DEBUG.
8080 (rs6000_xcoff_declare_function_name): Emit different
8081 .function pseudo-op when DWARF2_DEBUG. Don't call
8082 xcoffout_declare_function for DWARF2_DEBUG.
8083 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
8084 Redefine.
8085 * config/rs6000/aix71.h: New.
8086 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
8087 locations support.
8088 * configure: Regenerate.
8089 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
8090 DWARF support.
8091
8092 2015-09-26 Jeff Law <law@redhat.com>
8093
8094 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
8095 behaviour.
8096 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
8097 behaviour.
8098
8099 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
8100 behaviour
8101
8102 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
8103 undefined behaviour.
8104
8105 * config/cris/cris.md (asrandb): Fix left shift undefined
8106 behaviour.
8107 (asrandw): Likewise.
8108
8109 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
8110
8111 PR target/61578
8112 * lra-constarints.c (match_reload): Check presence of the input pseudo
8113 in the output operand.
8114
8115 2015-09-25 Tobias Burnus <burnus@net-b.de>
8116
8117 * doc/invoke.texi (-fsanitize): Minor wording tweak.
8118
8119 2015-09-25 Tobias Burnus <burnus@net-b.de>
8120
8121 * doc/invoke.texi (-fsanitize): Update URLs.
8122
8123 2015-09-25 Teresa Johnson <tejohnson@google.com>
8124
8125 * opts.c (finish_options): Unset -freorder-blocks-and-partition
8126 if not using profile.
8127
8128 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
8129
8130 PR pretty-print/67567
8131 * pretty-print.c (pp_string): Add gcc_checking_assert.
8132 * pretty-print.h (output_buffer_append_r): Likewise.
8133
8134 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8135
8136 PR target/67675
8137 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
8138 addr2 individually. Don't emit logical or insn if one is known to
8139 be aligned approriately.
8140 (sh_expand_cmpnstr): Likewise.
8141
8142 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
8143
8144 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
8145 __builtin_aarch64_fp[sc]r arguments into a register.
8146
8147 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
8148
8149 * config.gcc (x86_archs): Replace lakemount with lakemont.
8150 (with_cpu): Likewise.
8151 (with_arch): Likewise.
8152 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8153 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
8154 __tune_lakemount__ with __tune_lakemont__.
8155 * config/i386/i386.c (lakemount_cost): Renamed to ...
8156 (lakemont_cost): This.
8157 (m_LAKEMOUNT): Renamed to ...
8158 (m_LAKEMONT): This.
8159 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8160 (processor_target_table): Replace "lakemount" with "lakemont".
8161 (processor_alias_table): Likewise.
8162 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8163 PROCESSOR_LAKEMONT.
8164 (ix86_adjust_cost): Likewise.
8165 (ia32_multipass_dfa_lookahead): Likewise.
8166 * config/i386/i386.h (processor_type): Likewise.
8167 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8168 * doc/invoke.texi: Replace lakemount with lakemont. Replace
8169 Lakemount with Lakemont.
8170
8171 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
8172
8173 * config.gcc (x86_archs): Replace iamcu with lakemount.
8174 (with_cpu): Likewise.
8175 (with_arch): Likewise.
8176 * doc/invoke.texi: Likewise.
8177 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8178 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
8179 __tune_iamcu__ with __tune_lakemount__.
8180 * config/i386/i386.c (iamcu_cost): Renamed to ...
8181 (lakemount_cost): This.
8182 (m_IAMCU): Renamed to ...
8183 (m_LAKEMOUNT): This.
8184 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8185 (processor_target_table): Replace "iamcu" with "lakemount".
8186 (processor_alias_table): Likewise.
8187 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8188 PROCESSOR_LAKEMOUNT.
8189 (ix86_adjust_cost): Likewise.
8190 (ia32_multipass_dfa_lookahead): Likewise.
8191 * config/i386/i386.h (processor_type): Likewise.
8192 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8193
8194 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
8195
8196 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8197 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8198 Declare.
8199 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8200 (pa_expand_compare_and_swap_loop): New.
8201 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8202 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8203 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8204 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8205 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8206 Revise.
8207
8208 2015-09-24 Michael Collison <michael.collison@linaro.org>
8209
8210 PR other/57195
8211 * read-md.c (read_name): Allow mode iterators inside angle
8212 brackets in rtl expressions.
8213
8214 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
8215
8216 PR target/61578
8217 * ira-color.c (update_allocno_cost): Add parameter.
8218 (update_costs_from_allocno): Decrease conflict cost. Pass the new
8219 parameter.
8220
8221 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8222
8223 PR driver/67640
8224 * opts-common.c (prune_options): Discard all -fdiagnostics-color
8225 but the last one, which is moved to the front to be processed
8226 first.
8227 * opts.c (enable_warning_as_error): Reject options that do not
8228 control warnings.
8229
8230 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8231
8232 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8233
8234 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8235
8236 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8237 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8238 (aarch64_cannot_force_const_mem): Likewise.
8239 (aarch64_classify_address): Likewise.
8240 (aarch64_classify_symbolic_expression): Likewise.
8241 (aarch64_print_operand): Likewise.
8242 (aarch64_classify_symbol): Likewise.
8243 (aarch64_mov_operand_p): Likewise.
8244 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8245 (aarch64_mov_operand): Likewise.
8246
8247 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
8248
8249 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8250 for info->spe_gp_size.
8251
8252 2015-09-24 Richard Biener <rguenther@suse.de>
8253
8254 PR lto/67699
8255 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8256 abstract origins.
8257
8258 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
8259
8260 * tree-object-size.c (plus_stmt_object_size)
8261 (cond_expr_object_size): Change the formal parameters from gimple
8262 to gimple *.
8263 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8264 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8265 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8266
8267 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8268
8269 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8270 Check for ld -type pie on Solaris 11.x and 12.
8271 * configure: Regenerate.
8272 * config.in: Regenerate.
8273
8274 * gcc.c (LD_PIE_SPEC): Allow redefinition.
8275
8276 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8277 (STARTFILE_SPEC): Use it.
8278 (ENDFILE_CRTEND_SPEC): Define.
8279 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8280 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8281 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8282 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8283 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8284 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8285 (ENDFILE_ARCH_SPEC): Define.
8286 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8287
8288 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8289
8290 * configure.ac (gcc_cv_solaris_crts): New test.
8291 * configure. Regenerate.
8292 * config.in: Regenerate.
8293 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8294 HAVE_SOLARIS_CRTS variant.
8295
8296 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8297
8298 * tree-inline.h (count_insns_seq): Delete prototype.
8299 (estimate_num_insns_seq): Define prototype.
8300 * tree-inline.c (count_insns_seq): Delete.
8301 (estimate_num_insns_seq): Remove static qualifier.
8302 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8303 with estimate_num_insns_seq.
8304
8305 2015-09-24 Richard Biener <rguenther@suse.de>
8306
8307 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8308 members.
8309 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8310 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
8311 offset.
8312 (ao_ref_init_from_vn_reference): Record clique and base in the
8313 built base.
8314 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8315
8316 2015-09-24 Richard Biener <rguenther@suse.de>
8317
8318 PR tree-optimization/48885
8319 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8320 as not including any restrict tags from other pointers.
8321
8322 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8323
8324 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8325 character when appending to offload_targets.
8326
8327 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8328 offload targets by commas, not colons.
8329 * config.in: Regenerate.
8330 * configure: Likewise.
8331 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8332 instead of setting up the default offload targets here...
8333 (process_command): ..., do it here.
8334 libgomp/
8335 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8336 targets are separated by commas.
8337 * config.h.in: Regenerate.
8338
8339 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8340 Nathan Sidwell <nathan@codesourcery.com>
8341
8342 * omp-low.h (omp_reduction_init_op): Declare.
8343 * omp-low.c (omp_reduction_init_op): New, broken out of ...
8344 (omp_reduction_init): ... here. Call it.
8345 * tree-parloops.c (initialize_reductions): Use
8346 omp_reduction_init_op.
8347
8348 2015-09-23 Richard Biener <rguenther@suse.de>
8349
8350 PR middle-end/67662
8351 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8352 undefined overflow unless they will cancel out.
8353
8354 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8355
8356 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8357 insn emit.
8358
8359 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8360
8361 PR c/49655
8362 * opts.h (write_langs): Declare.
8363 * opts-global.c (write_langs): Make it extern.
8364
8365 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
8366
8367 PR target/67391
8368 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8369 overlapping regs when matching the pattern.
8370
8371 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
8372
8373 * config/aarch64/aarch64-simd.md
8374 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8375 (aarch64_float_truncate_hi_v4sf_le): New.
8376 (aarch64_float_truncate_hi_v4sf_be): Likewise.
8377
8378 2015-09-23 Richard Biener <rguenther@suse.de>
8379
8380 * tree-ssa-structalias.c (intra_create_variable_infos): Build
8381 representatives for all restrict qualified pointer destinations.
8382
8383 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8384
8385 * config/i386/i386.md (define_code_attr mshift): New.
8386 (define_mode_iterator SWI1248_AVX512BW): Rename ...
8387 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8388 only.
8389 (define_insn "*k<logic><mode>"): Use new iterator name.
8390 (define_insn "*<mshift><mode>3"): New.
8391
8392 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
8393
8394 PR middle-end/67649
8395 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8396 mark the block as accessible.
8397
8398 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
8399
8400 * function.c (thread_prologue_and_epilogue_insns): Delete
8401 orig_entry_edge argument to try_shrink_wrapping.
8402 * shrink-wrap.c (can_get_prologue): New function.
8403 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8404 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
8405 can_get_prologue where needed. Remove code that finds a single
8406 edge for the prologue. Remove code that tests if any reg clobbered
8407 by the prologue is live on the prologue edge. Remove code that finds
8408 the new prologue edge after duplicating blocks. Make a new prologue
8409 block and edge.
8410 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8411
8412 2015-09-22 Jeff Law <law@redhat.com>
8413
8414 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8415 behavior.
8416
8417 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
8418
8419 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
8420 -Wtemplates, -Wnamespaces): Document.
8421
8422 2015-09-22 Tom de Vries <tom@codesourcery.com>
8423
8424 PR tree-optimization/67671
8425 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8426 pointer references as restrict.
8427
8428 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8429
8430 * config/nios2/nios2.c (nios2_legitimize_address): When handling
8431 'reg + reloc' cases, allow first operand to be non-REG, and use
8432 force_reg() to enforce address pattern.
8433
8434 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
8435
8436 PR target/67480
8437 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8438 (define_mode_iterator VI12_AVX_AVX512F): New.
8439 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8440 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8441 (define_insn "*<code><mode>3"): ... Into new pattern using
8442 VI12_AVX_AVX512F iterators without masking.
8443
8444 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8445
8446 * config.gcc: Support "skylake-avx512".
8447 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8448 PROCESSOR_SKYLAKE_AVX512.
8449 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8450 (processor_target_table): Add "skylake-avx512".
8451 (PTA_SKYLAKE_AVX512): Define.
8452 (ix86_option_override_internal): Add "skylake_avx512".
8453 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8454 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8455 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8456 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8457 * doc/invoke.texi (skylake-avx512): New.
8458
8459 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8460
8461 * config/i386/i386.md (define_insn "kunpckhi"): Fix
8462 operand in pattern.
8463 (define_insn "kunpcksi"): Ditto.
8464 (define_insn "kunpckdi"): Ditto.
8465
8466 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8467
8468 * config/i386/i386.md (define_split not/xor SWI1248x): Use
8469 iterator instead of fixed modes.
8470
8471 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8472
8473 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8474 Adjust declaration.
8475 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
8476 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
8477 out_result. Update to support update-fetch operations.
8478 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
8479 Adjust for change to aarch64_gen_atomic_ldop.
8480 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
8481 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
8482 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
8483 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
8484 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
8485
8486 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8487
8488 * config/aarch64/aarch64-protos.h
8489 (aarch64_atomic_ldop_supported_p): Declare.
8490 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
8491 (enum aarch64_atomic_load_op_code): New.
8492 (aarch64_emit_atomic_load_op): New.
8493 (aarch64_gen_atomic_ldop): Update to support load-operate
8494 patterns.
8495 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
8496 to an expander.
8497 (aarch64_atomic_<atomic_optab><mode>): New.
8498 (aarch64_atomic_<atomic_optab><mode>_lse): New.
8499 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
8500 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
8501 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
8502
8503 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8504
8505 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
8506 (UNSPECV_ATOMIC_LDOP_OR): New.
8507 (UNSPECV_ATOMIC_LDOP_BIC): New.
8508 (UNSPECV_ATOMIC_LDOP_XOR): New.
8509 (UNSPECV_ATOMIC_LDOP_PLUS): New.
8510 (ATOMIC_LDOP): New.
8511 (atomic_ldop): New.
8512 (aarch64_atomic_load<atomic_ldop><mode>): New.
8513
8514 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8515
8516 * config/aarch64/aarch64.md
8517 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
8518 pattern.
8519
8520 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8521
8522 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8523 Declare.
8524 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
8525 (aarch64_gen_atomic_ldop): New.
8526 (aarch64_split_atomic_op): Fix whitespace and add a comment.
8527 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
8528 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
8529 (atomic_exchange<mode>): Replace with an expander.
8530 (aarch64_atomic_exchange<mode>): New.
8531 (aarch64_atomic_exchange<mode>_lse): New.
8532 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
8533 (aarch64_atomic_swp<mode>): New.
8534
8535 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8536
8537 * tree-inline.c (expand_call_inline): Use inform for extra note.
8538 Do not give a note with UNKNOWN_LOCATION.
8539 Replace input_location with gimple_location (stmt).
8540 Use true/false instead of TRUE/FALSE.
8541
8542 2015-09-22 Tom de Vries <tom@codesourcery.com>
8543
8544 PR tree-optimization/67666
8545 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
8546 with single field non-conservative.
8547
8548 2015-09-21 David S. Miller <davem@davemloft.net>
8549
8550 PR/67622
8551 Revert:
8552 2015-09-11 David S. Miller <davem@davemloft.net>
8553
8554 * config/sparc/constraints.md: Make "U" constraint a real register
8555 constraint.
8556 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8557 (D_MODES, DF_MODES): Add missing cast.
8558 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8559 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8560 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8561 cost to 8.
8562 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8563 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8564 provide these insn when flag_pic.
8565
8566 2015-09-17 David S. Miller <davem@davemloft.net>
8567
8568 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
8569 Declare.
8570 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8571 function.
8572 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8573 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8574 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8575 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8576 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8577 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8578 provide when flag_pic.
8579
8580 2015-09-21 Jeff Law <law@redhat.com>
8581
8582 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8583 behavior.
8584
8585 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8586
8587 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8588
8589 2015-09-21 Richard Biener <rguenther@suse.de>
8590
8591 * passes.c (rest_of_decl_compilation): Do not call
8592 dwarf2out_early_global_decl for aliases.
8593
8594 2015-09-21 Richard Biener <rguenther@suse.de>
8595
8596 PR debug/67664
8597 * dwarf2out.c (add_location_or_const_value_attribute): Remove
8598 attribute parameter. Early exit if either DW_AT_const_value
8599 or DW_AT_location are present already.
8600 (gen_variable_die): Adjust caller.
8601 (dwarf2out_late_global_decl): Likewise.
8602
8603 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8604
8605 PR target/67657
8606 * config/sh/sh.c (sh_remove_overlapping_post_inc,
8607 sh_peephole_emit_move_insn): Add new functions.
8608 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8609 sh_peephole_emit_move_insn): Declere them.
8610 * config/sh/sh.md: Use them in various peephole2 patterns.
8611
8612 2015-09-21 Richard Biener <rguenther@suse.de>
8613
8614 PR middle-end/67651
8615 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8616 address with -fno-delete-null-pointer-checks.
8617
8618 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
8619
8620 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8621 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8622 (reduc_uplus_v16qi): Remove.
8623
8624 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8625 (reduc_<VEC_reduc_name>_v2df): Remove.
8626 (reduc_<VEC_reduc_name>_v4sf): Remove.
8627 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8628
8629 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8630 gen_ function by removing * prefix.
8631 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8632
8633 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8634
8635 PR middle-end/60832
8636 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8637 Print i_bound without converting it to a tree.
8638
8639 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
8640
8641 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8642 operands[4] operands[5] swap with std::swap, removed tmp variable.
8643 (arm_evpc_neon_vzip): Replaced in0/in1 and
8644 out0/out1 swaps with std::swap, removed x variable.
8645 (arm_evpc_neon_vtrn): Replaced in0/int1 and
8646 out0/out1 swaos with std::swap, removed x variable.
8647 (arm_expand_vec_perm_const_1): Replaced
8648 d->op0/d->op1 swap with std::swap, removed x variable.
8649 (arm_evpc_neon_vuzp): Replaced in0/in1 and
8650 out0/out1 swaps with std::swap, removed x variable.
8651
8652 2015-09-21 Jonathan Yong <10walls@gmail.com>
8653
8654 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8655 sysroot/usr/lib/32api for additional win32 libraries,
8656 fixes failing Cygwin bootstrapping.
8657
8658 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8659
8660 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8661
8662 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8663
8664 PR target/67126
8665 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8666 (*mov_t_msb_neg): Rewrite negc pattern.
8667
8668 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8669
8670 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8671 immediate generation code.
8672
8673 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8674
8675 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8676 redundant immediate generation code.
8677
8678 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8679
8680 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8681 (AARCH64_NUM_BITMASKS): Remove.
8682 (aarch64_bitmasks_cmp): Remove.
8683 (aarch64_build_bitmask_table): Remove.
8684
8685 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8686
8687 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8688 slow immediate matching loops with a faster algorithm.
8689
8690 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8691
8692 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8693 faster algorithm.
8694
8695 2015-09-20 Jeff Law <law@redhat.com>
8696
8697 PR tree-optimization/47679
8698 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8699 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8700 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8701 (thread_through_normal_block): Use record_temporary_equivalences.
8702
8703 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
8704
8705 * coretypes.h (gimple): Change typedef to be a forward declaration.
8706 * gimple.h (gimple_statement_base): rename to gimple.
8707 * (all functions and types using gimple): Adjust.
8708 * *.[ch]: Likewise.
8709
8710 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
8711 David Edelsohn <dje.gcc@gmail.com>
8712
8713 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8714 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8715 (EH_FRAME_THROUGH_COLLECT2): Define.
8716 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8717 (ASM_OUTPUT_DWARF_PCREL): Define.
8718 (ASM_OUTPUT_DWARF_DATAREL): Define.
8719
8720 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
8721
8722 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8723 of TARGET_ELF32.
8724
8725 2015-09-18 Jeff Law <law@redhat.com>
8726
8727 PR tree-optimization/47679
8728 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
8729 it here ...
8730 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8731 object. Update constructor.
8732 (pass_dominator::execute): Corresponding chagnes to declaration
8733 and initialization of avail_exprs_stack. Update constructor call
8734 for dom_opt_dom_walker object.
8735 (lookup_avail_expr, record_cond): Accept additional argument. Pass
8736 it down to children as needed.
8737 (record_equivalences_from_incoming_edge): Likewise.
8738 (eliminate_redundant_computations): Likewise.
8739 (record_equivalences_from_stmt): Likewise.
8740 (simplify_stmt_for_jump_threading): Likewise.
8741 (record_temporary_equivalences): Likewise.
8742 (optimize_stmt): Likewise.
8743 (dom_opt_dom_walker::thread_across_edge): Update access to
8744 avail_exprs_stack object and pass it to children as needed.
8745 (dom_opt_dom_walker::before_dom_children): Similarly.
8746 (dom_opt_dom_walker::after_dom_children): Similarly.
8747 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8748 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8749 Add avail_expr_stack argument. Pass it to children as needed.
8750 (dummy_simplify): Likewise.
8751 (simplify_control_stmt_condition): Likewise.
8752 (thread_around_empty_blocks): Likewise.
8753 (thread_through_normal_block): Likewise.
8754 (thread_across_edge): Likewise.
8755 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8756 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8757
8758 PR tree-optimization/47679
8759 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
8760 it here ...
8761 (dom_opt_dom_walker): New private member holding the const_and_copies
8762 object. Update constructor.
8763 (pass_dominator::execute): Corresponding changes to declaration
8764 and initialization of const_and_copies. Update constructor call
8765 for the dom_opt_dom_walker object.
8766 (record_temporary_equivalences): Accept const_and_copies argument
8767 pass it down to children as needed.
8768 (record_equality): Likewise.
8769 (record_equivalences_from_incoming_edge): Likewise.
8770 (cprop_into_successor_phis, optimize_stmt): Likewise.
8771 (eliminate_redundant_computations): Likewise.
8772 (dom_opt_dom_walker::thread_across_edge): Update access to
8773 const_and_copies object and pass it to children as needed.
8774 (dom_opt_dom_walker::before_dom_children): Similarly.
8775 (dom_opt_dom_walker::after_dom_children): Similarly.
8776
8777 PR tree-optimization/47679
8778 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
8779 it into the avail_exprs_stack class.
8780 (pass_dominator::execute): Corresponding changes to declaration
8781 and initialization of avail_exprs. Pass avail_exprs to
8782 dump_dominator_optimization_stats.
8783 (record_cond): Extract avail_exprs from avail_exprs_stack.
8784 (lookup_avail_expr): Similarly.
8785 (htab_staticstics): Remove unnecessary prototype. Move to earlier
8786 position in file.
8787 (dump_dominator_optimization_stats): Make static and prototype.
8788 Add argument for the hash table to dump.
8789 (debug_dominator_optimization_stats): Remove.
8790 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
8791 prototype.
8792 (debug_dominator_optimization_stats): Similarly.
8793 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
8794 "void" in prototype for pop_to_marker method. Add accessor method
8795 for the underlying avail_exprs table.
8796
8797 * tree-ssa-threadedge.c: Remove trailing whitespace.
8798
8799 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
8800
8801 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
8802 unsigned.
8803 (pa_ldil_cint_p): Likewise.
8804 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
8805 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
8806 Update callers.
8807 * config/pa/pa.md: Likewise.
8808
8809 2015-09-18 David Malcolm <dmalcolm@redhat.com>
8810
8811 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
8812 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
8813 (diagnostic_show_locus): Likewise.
8814 (diagnostic_print_caret_line): Likewise.
8815 * diagnostic-show-locus.c: New file.
8816
8817 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
8818
8819 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
8820 "back" parameter. Declare label in #if block.
8821
8822 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
8823
8824 PR middle-end/67619
8825 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
8826 the address to a register.
8827
8828 2015-09-18 Jeff Law <law@redhat.com>
8829
8830 PR tree-optimization/47679
8831 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
8832 * tree-ssa-dom.c: Remove unnecessary header includes.
8833 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
8834 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
8835 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
8836 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
8837 (pass_phi_only_cprop::execute): Likewise.
8838 (make_pass_phi_only_cprop): Likewise.
8839 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
8840 uses of file scoped statics by passing the required objects
8841 as parameters wherever needed.
8842
8843 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
8844 David Edelsohn <dje.gcc@gmail.com>
8845
8846 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
8847 EH_FRAME_THROUGH_COLLECT2.
8848 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8849 DW_EH_PE_datarel.
8850 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
8851 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
8852 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
8853 * except.c (switch_to_exception_section): Use a read-only section
8854 even if EH_FRAME_SECTION_NAME is undefined.
8855 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
8856 * collect2.c (write_c_file_stat): Provide dbase on AIX.
8857 (scan_prog_file): Don't export __dso_handle nor
8858 __gcc_unwind_dbase.
8859 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8860 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8861 (ASM_OUTPUT_DWARF_PCREL): Define.
8862 (ASM_OUTPUT_DWARF_DATAREL): Define.
8863 (EH_FRAME_THROUGH_COLLECT2): Define.
8864 (EH_FRAME_IN_DATA_SECTION): Delete.
8865 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
8866 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
8867 Declare.
8868 (rs6000_asm_output_dwarf_datarel): Declare.
8869 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
8870 (rs6000_aix_asm_output_dwarf_datarel): New.
8871 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
8872 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
8873 (EH_FRAME_THROUGH_COLLECT2): Define.
8874 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
8875 (EH_FRAME_THROUGH_COLLECT2): Define.
8876 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8877 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8878 (EH_FRAME_THROUGH_COLLECT2): New.
8879 (ASM_OUTPUT_DWARF_DATAREL): New.
8880 * doc/tm.texi: Regenerate.
8881
8882 2015-09-18 Richard Biener <rguenther@suse.de>
8883
8884 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8885 we're in early phase.
8886 (schedule_generic_params_dies_gen): Likewise.
8887 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8888 work as possible, retaining unhandled cases.
8889 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8890 clear out generic_type_instances at the end.
8891 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8892 (dwarf2out_early_finish): ... here. Do most of
8893 gen_remaining_tmpl_value_param_die_attribute here.
8894
8895 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
8896
8897 PR tree-optimization/67283
8898 * tree-sra.c (type_consists_of_records_p): Rename to...
8899 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8900 (completely_scalarize_record): Rename to...
8901 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8902 (scalarize_elem): New.
8903 (analyze_all_variable_accesses): Follow renamings.
8904
8905 2015-09-18 Richard Biener <rguenther@suse.de>
8906
8907 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8908 in early-dwarf.
8909
8910 2015-09-18 Richard Biener <rguenther@suse.de>
8911
8912 PR tree-optimization/66142
8913 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8914 treat MEM[&x] and x the same.
8915 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8916 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8917 when we simplified sth.
8918 (vn_reference_maybe_forwprop_address): Likewise.
8919 (valueize_refs_1): When we simplified through
8920 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8921 set valueized_anything to true.
8922 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8923 one ref kills the other instead of just a offset-based test.
8924 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8925 for the operand_equal_p test to compare bases and also compare
8926 sizes.
8927
8928 2015-09-17 Christian Bruel <christian.bruel@st.com>
8929
8930 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8931
8932 2015-09-17 Richard Henderson <rth@redhat.com>
8933
8934 PR libstdc++/65913
8935 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8936 pointers that encode the alignment of the object.
8937
8938 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8939
8940 PR rtl-optimization/66790
8941 * df-problems.c (LIVE): Amend documentation.
8942
8943 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
8944
8945 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8946 and optabs-tree.o.
8947 (GTFILES): Replace optabs.c with optabs-libfunc.c.
8948 * genopinit.c (main): Add an include guard to insn-opinit.h.
8949 Protect the rtx_code parts with NUM_RTX_CODE.
8950 * optabs.h: Split parts out to...
8951 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8952 * optabs.c: Split parts out to...
8953 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8954 * cilk-common.c: Include optabs-query.h rather than optabs.h.
8955 * fold-const.c: Likewise.
8956 * target-globals.c: Likewise.
8957 * tree-if-conv.c: Likewise.
8958 * tree-ssa-forwprop.c: Likewise.
8959 * tree-ssa-loop-prefetch.c: Likewise.
8960 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8961 Remove unncessary include files.
8962 * tree-ssa-phiopt.c: Likewise.
8963 * tree-ssa-reassoc.c: Likewise.
8964 * tree-switch-conversion.c: Likewise.
8965 * tree-vect-data-refs.c: Likewise.
8966 * tree-vect-generic.c: Likewise.
8967 * tree-vect-loop.c: Likewise.
8968 * tree-vect-patterns.c: Likewise.
8969 * tree-vect-slp.c: Likewise.
8970 * tree-vect-stmts.c: Likewise.
8971 * tree-vrp.c: Likewise.
8972 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8973 rather than optabs.h.
8974 * expr.c: Include optabs-tree.h.
8975 * function.c: Likewise.
8976
8977 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8978
8979 PR middle-end/65958
8980 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8981 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8982 * config/arm/arm.c: Include common/common-target.h.
8983 (use_return_insn): Return 0 if the static chain register was saved
8984 above a non-APCS frame.
8985 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
8986 (struct scratch_reg): New.
8987 (get_scratch_register_on_entry): New function.
8988 (release_scratch_register_on_entry): Likewise.
8989 (arm_emit_probe_stack_range): Likewise.
8990 (output_probe_stack_range): Likewise.
8991 (arm_expand_prologue): Factor out code dealing with the IP register
8992 for nested function and adjust it for stack checking.
8993 Invoke arm_emit_probe_stack_range if static builtin stack checking
8994 is enabled.
8995 (thumb1_expand_prologue): Sorry out if static builtin stack checking
8996 is enabled.
8997 (arm_expand_epilogue): Add the saved static chain register, if any, to
8998 the amount of pre-pushed registers to pop.
8999 (arm_frame_pointer_required): Return true if static stack checking is
9000 enabled and we want to catch the exception with the EABI unwinder.
9001 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
9002 (UNSPEC_PROBE_STACK_RANGE): Likewise.
9003 * config/arm/arm.md (probe_stack): New insn.
9004 (probe_stack_range): Likewise.
9005
9006 2015-09-17 Richard Biener <rguenther@suse.de>
9007
9008 * genmatch.c (parser::parse_expr): Improve error message
9009 for mis-placed flags.
9010
9011 2015-09-17 Richard Biener <rguenther@suse.de>
9012
9013 * passes.c (rest_of_decl_compilation): Always call early_global_decl
9014 debug hook when we created a varpool node.
9015 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
9016 dwarf2out_early_global_decl, when not just add location or
9017 value attributes to existing DIEs.
9018
9019 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
9020
9021 * config/aarch64/aarch64.md (copysigndf3): New.
9022 (copysignsf3): Likewise.
9023
9024 2015-09-17 David S. Miller <davem@davemloft.net>
9025
9026 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
9027 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
9028 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9029 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9030 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9031 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9032 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9033 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9034 provide when flag_pic.
9035
9036 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
9037
9038 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
9039 object_allocator change.
9040
9041 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9042
9043 PR tree-optimization/66388
9044 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
9045 (dump_iv): Dump no_overflow information.
9046 (alloc_iv): Initialize new field for struct iv.
9047 (mark_bivs): Count number of no_overflow bivs.
9048 (find_deriving_biv_for_expr, record_biv_for_address_use): New
9049 functions.
9050 (idx_find_step): Call new functions above.
9051 (add_candidate_1, add_candidate): New paramter.
9052 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
9053 (get_computation_aff): Simplify convertion of cand for BIV.
9054 (get_computation_cost_at): Step cand's base if necessary.
9055
9056 2015-09-17 Bin Cheng <bin.cheng@arm.com>
9057
9058 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
9059 parameter.
9060 (tree_simplify_using_condition): Ditto.
9061 (simplify_using_initial_conditions): Ditto.
9062 (loop_exits_before_overflow): Pass new argument to function
9063 simplify_using_initial_conditions. Remove case for type conversions
9064 simplification.
9065 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
9066 parameter.
9067 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
9068 in iv base using loop initial conditions.
9069
9070 2015-09-16 Jeff Law <law@redhat.com>
9071
9072 PR tree-optimization/47679
9073 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
9074 (free_all_edge_infos): Use it.
9075 (allocate_edge_info): Free preexisting edge info data.
9076 (pass_dominator::execute): Set up initial edge info structures.
9077 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
9078 thread_across_edge.
9079 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
9080 If non-null, then push/pop markers appropriately.
9081 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
9082 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
9083 thread-across_edge.
9084
9085 2015-09-16 James Bowman <james.bowman@ftdichip.com>
9086
9087 * config/ft32/ft32.c: Fix the memory address space predicate.
9088
9089 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9090
9091 PR target/67573
9092 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
9093 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9094
9095 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
9096
9097 * toplev.h (check_global_declaration): Remove declaration.
9098 * toplev.c (check_global_declaration): Move to ...
9099 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
9100 (analyze_functions): Update call.
9101
9102 2015-09-16 David S. Miller <davem@davemloft.net>
9103
9104 * lra-constraints.c (simplify_operand_subreg): Do not assume that
9105 lowpart of a SUBREG has offset zero.
9106
9107 2015-09-16 Jeff Law <law@redhat.com>
9108
9109 PR tree-optimization/47679
9110 * tree-ssa-dom.c (enum expr_kind): Moved from here to
9111 tree-ssa-scopedtables.h.
9112 (struct hashable_expr, class expr_hash_elt): Likewise.
9113 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
9114 Move associated methods into tree-ssa-scopedtables.c.
9115 (avail_expr_hash, initialize_expr_from_cond): Similarly.
9116 (hashable_expr_equal_p, add_expr_commutative): Likewise.
9117 (add_hashable_expr): Likewise.
9118 (record_cond): Delete element directly.
9119 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
9120 private copy ctor and assignment operator methods.
9121 (expr_elt_hasher): Inline trivial methods.
9122 (initialize_expr_from_cond): Prototype.
9123 * tree-ssa-scopedtables.c: Add necessary includes, functions and
9124 methods that were previously in tree-ssa-dom.c. Improve various
9125 comments.
9126
9127 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
9128
9129 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
9130
9131 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
9132
9133 PR bootstrap/67587
9134 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
9135 fixup_partitions.
9136
9137 2015-09-16 Richard Biener <rguenther@suse.de>
9138
9139 PR middle-end/67253
9140 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
9141 location of possibly shared trees.
9142
9143 2015-09-16 Richard Biener <rguenther@suse.de>
9144
9145 PR middle-end/67271
9146 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
9147
9148 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
9149
9150 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
9151 offset and size computations instead of HOST_WIDE_INT.
9152
9153 2015-09-16 Richard Biener <rguenther@suse.de>
9154
9155 PR middle-end/67442
9156 * fold-const.c (extract_muldiv_1): Properly extend multiplication
9157 result before builting a tree via wide_int_to_tree.
9158
9159 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
9160
9161 * Makefile.in: Add memory-block.cc
9162 (pool_allocator::initialize): Use fixed block size.
9163 (pool_allocator::release): Use memory_block_pool.
9164 (pool_allocator::allocate): Likewise.
9165 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9166 object pools.
9167 * cfg.c (initialize_original_copy_tables): Likewise.
9168 * cselib.c (elt_list_pool, elt_loc_list_pool,
9169 cselib_val_pool): Likewise.
9170 * df-problems.c (df_chain_alloc): Likewise.
9171 * df-scan.c (df_scan_alloc): Likewise.
9172 * dse.c (cse_store_info_pool, rtx_store_info_pool,
9173 read_info_type_pool, insn_info_type_pool, bb_info_pool,
9174 group_info_pool, deferred_change_pool): Likewise.
9175 * et-forest.c (et_nodes, et_occurrences): Likewise.
9176 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9177 ipcp_agg_lattice_pool): Likewise.
9178 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9179 * ipa-profile.c (histogram_pool): Likewise.
9180 * ipa-prop.c (ipa_refdesc_pool): Likewise.
9181 * ira-build.c (live_range_pool, allocno_pool, object_pool,
9182 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9183 * ira-color.c (update_cost_record_pool): Likewise.
9184 * lra-lives.c (lra_live_range_pool): Likewise.
9185 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9186 * memory-block.cc: New file.
9187 * memory-block.h: New file.
9188 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9189 * sched-deps.c (sched_deps_init): Likewise.
9190 * sel-sched-ir.c (sched_lists_pool): Likewise.
9191 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9192 * tree-sra.c (access_pool): Likewise.
9193 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9194 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9195 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9196 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9197 * tree-ssa-strlen.c (strinfo_pool): Likewise.
9198 * tree-ssa-structalias.c (variable_info_pool): Likewise.
9199 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9200 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9201
9202 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9203
9204 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9205 definition.
9206 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9207 call0 ABI.
9208
9209 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9210
9211 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9212 to pass TLS call argument, according to current ABI.
9213 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9214 callx0 for TLS call, according to current ABI.
9215
9216 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9217
9218 * tree-eh.c (lower_try_finally_dup_block): Clear location information
9219 on stack restore statements.
9220 (decide_copy_try_finally): Do not consider a stack restore statement as
9221 coming from sources.
9222
9223 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
9224
9225 * config/alpha/alpha.c (alpha_expand_block_clear): Use
9226 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9227
9228 2015-09-15 Jeff Law <law@redhat.com>
9229
9230 PR tree-optimization/47679
9231 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9232 methods and private members.
9233 (avail_exprs_stack): Similarly. Change type of global
9234 from a pair of expr_hash_elt_t to the new class.
9235 (expr_elt_hasher::hash): Corresponding changes.
9236 (expr_elt_hasher::equal): Similarly.
9237 (avail_expr_hash): Similarly.
9238 (pass_dominator::execute): Similarly.
9239 (dom_opt_dom_walker::thread_across_edge): Similarly.
9240 (record_cond): Similarly.
9241 (dom_opt_dom_walker::before_dom_children): Similarly.
9242 (dom_opt_dom_walker::after_dom_children): Similarly.
9243 (lookup_avail_expr): Likewise.
9244 (initialize_hash_element): Now a expr_hash_elt constructor.
9245 (initialize_hash_element_from_expr): Similarly.
9246 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9247 (free_expr_hash_elt): Call dtor for the element.
9248 (remove_local_expressions_from_table): Now the "pop_to_marker"
9249 method in the available_exprs_stack class.
9250 (avail_expr_stack::record_expr): Method factored out.
9251 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9252 Fix formatting.
9253 (hashable_expr_equal_p): Fix formatting.
9254
9255 2015-09-15 David Malcolm <dmalcolm@redhat.com>
9256
9257 * input.h (location_get_source_line): Drop "expanded_location"
9258 param in favor of a file and line number.
9259 * input.c (location_get_source_line): Likewise.
9260 (dump_location_info): Update for change in signature of
9261 location_get_source_line.
9262 * diagnostic.c (diagnostic_print_caret_line): Likewise.
9263
9264 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9265
9266 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9267 Bump to 4KB for SJLJ exceptions.
9268 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
9269 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9270 * doc/tm.texi: Regenerate.
9271
9272 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9273
9274 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9275 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
9276 Update prototype.
9277
9278 2015-09-15 Richard Biener <rguenther@suse.de>
9279
9280 PR tree-optimization/67470
9281 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9282 structure for PHI hoisting by inserting a forwarder block
9283 if appropriate.
9284
9285 2015-09-15 Christian Bruel <christian.bruel@st.com>
9286
9287 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9288 (arm_option_print): New function.
9289
9290 2015-09-15 Christian Bruel <christian.bruel@st.com>
9291
9292 PR target/52144
9293 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9294 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9295 Remove flags parameter.
9296 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9297 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9298 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9299 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9300 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9301 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9302 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9303 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9304
9305 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9306
9307 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9308
9309 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9310 AARCH64_VALID_SIMD_DREG_MODE.
9311
9312 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9313
9314 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9315 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9316 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9317 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9318 aarch64_ld4_lane<mode>): Combine together, making...
9319 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9320 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9321 aarch64_st4_lane<mode>): Combine together, making...
9322 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9323 * config/aarch64/iterators.md (nregs): Add comment.
9324
9325 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9326
9327 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9328 Change operand mode from <V_TWO_ELEM> to BLK.
9329 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9330 (aarch64_vec_store_lanesoi_lane<mode): Likewise
9331 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9332 (aarch64_ld2_lane<mode>): Likewise.
9333 (aarch64_st2_lane<VQ:mode>): Likewise.
9334 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9335
9336 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9337
9338 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9339 Change operand mode from <V_FOUR_ELEM> to BLK.
9340 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9341 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9342 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9343 (aarch64_ld4_lane<mode>): Likewise.
9344 (aarch64_st4_lane<mode>): Likewise.
9345 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9346
9347 2015-09-15 Richard Biener <rguenther@suse.de>
9348
9349 PR middle-end/67563
9350 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9351 transfer EH info from old to new stmt.
9352 (replace_call_with_value): Likewise.
9353 (replace_call_with_call_and_fold): Likewise.
9354 (gimple_fold_builtin_memory_op): Likewise.
9355 (gimple_fold_builtin_memset): Likewise.
9356 (gimple_fold_builtin_stpcpy): Likewise.
9357 (gimple_fold_call): Likewise.
9358
9359 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9360
9361 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9362 comment.
9363 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9364 (aarch64_simd_intEI_type_node): Likewise.
9365 (aarch64_simd_builtin_std_type): Remove EImode case.
9366 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9367 * config/aarch64/aarch64-modes.def: Remove EImode.
9368
9369 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9370
9371 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9372 Change operand mode from <V_THREE_ELEM> to BLK.
9373 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9374 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9375 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9376 (aarch64_ld3_lane<mode>): Likewise.
9377 (aarch64_st3_lane<mode>): Likewise.
9378 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9379
9380 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9381
9382 * config/aarch64/aarch64-simd.md
9383 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9384 Change all TImode operands to BLKmode.
9385 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9386 Change all EImode operands to BLKmode.
9387 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9388 Change all OImode operands to BLKmode.
9389
9390 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9391 and call set_mem_size.
9392 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9393
9394 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9395
9396 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9397
9398 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9399 to...
9400 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9401
9402 (vec_store_lanesci_lane<mode>): Rename to...
9403 (aarch64_vec_store_lanesci_lane<mode>): ...this.
9404
9405 (vec_store_lanesxi_lane<mode>): Rename to...
9406 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9407
9408 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9409 aarch64_st4_lane<mode>): Follow renaming.
9410
9411 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9412
9413 * config/s390/s390.c (s390_const_operand_ok): Add missing
9414 brackets.
9415
9416 2015-09-15 Richard Biener <rguenther@suse.de>
9417
9418 PR lto/67568
9419 * lto-streamer.h (lto_location_cache::current_sysp): Properly
9420 initialize.
9421 * lto-streamer-out.c (clear_line_info): Likewise.
9422
9423 2015-09-15 Richard Biener <rguenther@suse.de>
9424
9425 * doc/match-and-simplify.texi: Fix wording.
9426
9427 2015-09-15 Bin Cheng <bin.cheng@arm.com>
9428
9429 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9430 unnecessary type conversion in op1.
9431
9432 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9433
9434 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9435 (dup_block_and_redirect): Delete function.
9436 (can_dup_for_shrink_wrapping): New function.
9437 (fix_fake_fallthrough_edge): New function.
9438 (try_shrink_wrapping): Rewrite function.
9439 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9440
9441 2015-09-14 Rich Felker <dalias@libc.org>
9442
9443 * configure.ac: Change target pattern for sh TLS support
9444 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9445 * configure: Regenerate.
9446
9447 2015-09-14 Jeff Law <law@redhat.com>
9448
9449 PR tree-optimization/47679
9450 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9451 type rather than void *.
9452
9453 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9454
9455 PR fortran/67460
9456 * diagnostic.c (diagnostic_initialize): Do not set
9457 some_warnings_are_errors.
9458 (diagnostic_finish): Use DK_WERROR count instead.
9459 (diagnostic_report_diagnostic): Do not set
9460 some_warnings_are_errors.
9461 * diagnostic.h (struct diagnostic_context): Remove
9462 some_warnings_are_errors.
9463
9464 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
9465
9466 * config/sparc/predicates.md (const_all_ones_operand): Use
9467 CONSTM1_RTX to simplify definition.
9468
9469 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
9470
9471 PR target/67061
9472 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9473 Handle call insns.
9474
9475 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
9476
9477 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
9478 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
9479 OPT_fshow_column to handled saved option cases.
9480 (append_compiler_options): Do not skip the above added options.
9481
9482 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9483
9484 PR target/63304
9485 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
9486 nopcrelative_literal_loads.
9487 (aarch64_classify_address): Likewise.
9488 (aarch64_constant_pool_reload_icode): Define.
9489 (aarch64_secondary_reload): Handle secondary reloads for
9490 literal pools.
9491 (aarch64_override_options): Handle nopcrelative_literal_loads.
9492 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
9493 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9494 Define.
9495 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9496 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
9497 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
9498 predicate.
9499 * doc/invoke.texi (mpc-relative-literal-loads): Document.
9500
9501 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
9502
9503 PR middle-end/67401
9504 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
9505 sync_compare_and_swap_optab libcall to target_oval.
9506
9507 2015-09-14 Marek Polacek <polacek@redhat.com>
9508
9509 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
9510 value.
9511 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
9512
9513 2015-09-11 Mark Wielaard <mjw@redhat.com>
9514
9515 PR c/28901
9516 * toplev.c (check_global_declaration): Check and use
9517 warn_unused_const_variable.
9518 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
9519 (-Wunused-variable): Remove non-constant. For C implies
9520 -Wunused-const-variable.
9521 (-Wunused-const-variable): New.
9522
9523 2015-09-14 Richard Biener <rguenther@suse.de>
9524
9525 * doc/match-and-simplify.texi: Update for changed syntax
9526 of inner ifs and the new switch expression.
9527
9528 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9529
9530 * config/i386/haswell.md: New file describing Haswell pipeline.
9531 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
9532 haswell-like processors.
9533 (ix86_reassociation_width): Increase reassociation width for 64-bit
9534 Haswell processor family.
9535 * config/i386/i386.md: Introduce haswell cpu and include new md file.
9536
9537 2015-09-14 Richard Biener <rguenther@suse.de>
9538
9539 * doc/match-and-simplify.texi: Fixup some formatting issues
9540 and document the 's' flag.
9541
9542 2015-09-13 Olivier Hainque <hainque@adacore.com>
9543 Eric Botcazou <ebotcazou@adacore.com>
9544
9545 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
9546 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
9547 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
9548 (TARGET_CPU_gr5): Likewise.
9549 (TARGET_CPU_gr6): Likewise.
9550 (MULTILIB_DEFAULTS): Likewise.
9551 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
9552 for mcpu=gr5 and mcpu=gr6.
9553 (MULTILIB_DIRNAMES): Adjust accordingly.
9554
9555 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9556
9557 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9558 (mem_ref_p): Likewise.
9559 (outermost_indep_loop): Adjust.
9560 (mem_ref_in_stmt): Likewise.
9561 (determine_max_movement): Likewise.
9562 (mem_ref_alloc): Likewise.
9563 (record_mem_ref_loc): Likewise.
9564 (set_ref_stored_in_loop): Likewise.
9565 (mark_ref_stored): Likewise.
9566 (gather_mem_refs_stmt): Likewise.
9567 (mem_refs_may_alias_p): Likewise.
9568 (for_all_locs_in_loop): Likewise.
9569 (struct rewrite_mem_ref_loc): Likewise.
9570 (rewrite_mem_refs): Likewise.
9571 (struct first_mem_ref_loc_1): Likewise.
9572 (first_mem_ref_loc): Likewise.
9573 (struct sm_set_flag_if_changed): Likewise.
9574 (execute_sm_if_changed_flag_set): Likewise.
9575 (execute_sm): Likewise.
9576 (hoist_memory_references):
9577 (struct ref_always_accessed): Likewise.
9578 (ref_always_accessed_p): Likewise.
9579 (refs_independent_p): Likewise.
9580 (record_dep_loop): Likewise.
9581 (ref_indep_loop_p_1): Likewise.
9582 (ref_indep_loop_p_2): Likewise.
9583 (ref_indep_loop_p): Likewise.
9584 (can_sm_ref_p): Likewise.
9585 (find_refs_for_sm): Likewise.
9586 (tree_ssa_lim_finalize): Likewise.
9587
9588 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9589
9590 * dwarf2out.c (dw_attr_ref): Remove typedef.
9591 (dw_line_info_ref): Likewise.
9592 (pubname_ref): Likewise.
9593 (dw_ranges_ref): Likewise.
9594 (dw_ranges_by_label_ref): Likewise.
9595 (comdat_type_node_ref): Likewise.
9596 (get_AT): Adjust.
9597 (get_AT_low_pc): Likewise.
9598 (get_AT_hi_pc): Likewise.
9599 (get_AT_string): Likewise.
9600 (get_AT_flag): Likewise.
9601 (get_AT_unsigned): Likewise.
9602 (get_AT_ref): Likewise.
9603 (get_AT_file): Likewise.
9604 (remove_AT): Likewise.
9605 (print_die): Likewise.
9606 (check_die): Likewise.
9607 (die_checksum): Likewise.
9608 (attr_checksum_ordered): Likewise.
9609 (struct checksum_attributes): Likewise.
9610 (collect_checksum_attributes): Likewise.
9611 (die_checksum_ordered): Likewise.
9612 (same_die_p): Likewise.
9613 (is_declaration_die): Likewise.
9614 (clone_die): Likewise.
9615 (clone_as_declaration): Likewise.
9616 (copy_declaration_context): Likewise.
9617 (break_out_comdat_types): Likewise.
9618 (copy_decls_walk): Likewise.
9619 (output_location_lists): Likewise.
9620 (external_ref_hasher::hash): Likewise.
9621 (optimize_external_refs_1): Likewise.
9622 (build_abbrev_table): Likewise.
9623 (size_of_die): Likewise.
9624 (unmark_all_dies): Likewise.
9625 (size_of_pubnames): Likewise.
9626 (output_die_abbrevs): Likewise.
9627 (output_die): Likewise.
9628 (output_pubnames): Likewise.
9629 (add_ranges_num): Likewise.
9630 (add_ranges_by_labels): Likewise.
9631 (add_high_low_attributes): Likewise.
9632 (gen_producer_string): Likewise.
9633 (dwarf2out_set_name): Likewise.
9634 (new_line_info_table): Likewise.
9635 (prune_unused_types_walk_attribs): Likewise.
9636 (prune_unused_types_update_strings): Likewise.
9637 (prune_unused_types): Likewise.
9638 (resolve_addr): Likewise.
9639 (optimize_location_lists_1): Likewise.
9640 (index_location_lists): Likewise.
9641 (dwarf2out_finish): Likewise.
9642
9643 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9644
9645 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9646
9647 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9648
9649 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9650 (dump_asserts_for): Adjust.
9651 (register_new_assert_for): Likewise.
9652 (process_assert_insertions): Likewise.
9653 (insert_range_assertions): Likewise.
9654
9655 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9656
9657 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9658 and remove typedef.
9659 (new_temp_expr_table): Adjust.
9660 (free_temp_expr_table): Likewise.
9661 (version_to_be_replaced_p): Likewise.
9662 (make_dependent_on_partition): Likewise.
9663 (add_to_partition_kill_list): Likewise.
9664 (remove_from_partition_kill_list): Likewise.
9665 (add_dependence): Likewise.
9666 (finished_with_expr): Likewise.
9667 (process_replaceable): Likewise.
9668 (kill_expr): Likewise.
9669 (kill_virtual_exprs): Likewise.
9670 (mark_replaceable): Likewise.
9671 (find_replaceable_in_bb): Likewise.
9672 (find_replaceable_exprs): Likewise.
9673 (debug_ter): Likewise.
9674
9675 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9676
9677 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9678 (struct btr_user): Rename from btr_user_s.
9679 (struct btr_def): Rename from btr_def_s.
9680 (find_btr_def_group): Adjust.
9681 (add_btr_def): Likewise.
9682 (new_btr_user): Likewise.
9683 (note_other_use_this_block): Likewise.
9684 (compute_defs_uses_and_gen): Likewise.
9685 (link_btr_uses): Likewise.
9686 (build_btr_def_use_webs): Likewise.
9687 (block_at_edge_of_live_range_p): Likewise.
9688 (btr_def_live_range): Likewise.
9689 (combine_btr_defs): Likewise.
9690 (move_btr_def): Likewise.
9691 (migrate_btr_def): Likewise.
9692 (migrate_btr_defs): Likewise.
9693
9694 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9695
9696 * var-tracking.c (shared_hash_def): Rename to shared_hash.
9697 (shared_hash): Remove typedef.
9698 (struct dataflow_set): Adjust.
9699 (shared_hash_unshare): Likewise.
9700 (dataflow_set_merge): Likewise.
9701 (vt_initialize): Likewise.
9702 (vt_finalize): Likewise.
9703
9704 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9705
9706 * var-tracking.c (struct location_chain): Rename from
9707 location_chain_def.
9708 (struct variable_part): Adjust.
9709 (variable_htab_free): Likewise.
9710 (unshare_variable): Likewise.
9711 (get_init_value): Likewise.
9712 (get_addr_from_local_cache): Likewise.
9713 (drop_overlapping_mem_locs): Likewise.
9714 (val_reset): Likewise.
9715 (struct variable_union_info): Likewise.
9716 (variable_union): Likewise.
9717 (find_loc_in_1pdv): Likewise.
9718 (insert_into_intersection): Likewise.
9719 (intersect_loc_chains): Likewise.
9720 (canonicalize_loc_order_check): Likewise.
9721 (canonicalize_values_mark): Likewise.
9722 (canonicalize_values_star): Likewise.
9723 (canonicalize_vars_star): Likewise.
9724 (variable_merge_over_cur): Likewise.
9725 (remove_duplicate_values): Likewise.
9726 (variable_post_merge_new_vals): Likewise.
9727 (variable_post_merge_perm_vals): Likewise.
9728 (find_mem_expr_in_1pdv): Likewise.
9729 (dataflow_set_preserve_mem_locs): Likewise.
9730 (dataflow_set_remove_mem_locs): Likewise.
9731 (variable_part_different_p): Likewise.
9732 (onepart_variable_different_p): Likewise.
9733 (find_src_set_src): Likewise.
9734 (dump_var): Likewise.
9735 (set_slot_part): Likewise.
9736 (clobber_slot_part): Likewise.
9737 (delete_slot_part): Likewise.
9738 (vt_expand_var_loc_chain): Likewise.
9739 (emit_note_insn_var_location): Likewise.
9740 (vt_finalize): Likewise.
9741
9742 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9743
9744 * dse.c (store_info_t): Remove typedef.
9745 (group_info_t): Likewise.
9746 (const_group_info_t): Likewise.
9747 (deferred_change_t): Likewise.
9748 (get_group_info): Adjust.
9749 (free_store_info): Likewise.
9750 (canon_address): Likewise.
9751 (clear_rhs_from_active_local_stores): Likewise.
9752 (record_store): Likewise.
9753 (replace_read): Likewise.
9754 (check_mem_read_rtx): Likewise.
9755 (scan_insn): Likewise.
9756 (remove_useless_values): Likewise.
9757 (dse_step1): Likewise.
9758 (dse_step2_init): Likewise.
9759 (dse_step2_nospill): Likewise.
9760 (scan_stores_nospill): Likewise.
9761 (scan_reads_nospill): Likewise.
9762 (dse_step3_exit_block_scan): Likewise.
9763 (dse_step3): Likewise.
9764 (dse_step5_nospill): Likewise.
9765 (dse_step6): Likewise.
9766
9767 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9768
9769 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9770 (alias_set_entry): Remove typedef.
9771 (alias_set_subset_of): Adjust.
9772 (alias_sets_conflict_p): Likewise.
9773 (init_alias_set_entry): Likewise.
9774 (get_alias_set): Likewise.
9775 (new_alias_set): Likewise.
9776 (record_alias_subset): Likewise.
9777
9778 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
9779
9780 * doc/install.texi (Downloading the source): Mark up
9781 contrib/download_prerequisites properly and drop leading "./".
9782
9783 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9784
9785 * config/arc/arc.h: Remove define of STRUCT_VALUE.
9786 * config/lm32/lm32.h: Likewise.
9787 * config/mep/mep.h: Likewise.
9788 * config/visium/visium.h: Likewise.
9789 * system.h: Poison STRUCT_VALUE macro.
9790
9791 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
9792
9793 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
9794 CONSTANT_P operands.
9795
9796 2015-09-11 David S. Miller <davem@davemloft.net>
9797
9798 * config/sparc/constraints.md: Make "U" constraint a real register
9799 constraint.
9800 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9801 (D_MODES, DF_MODES): Add missing cast.
9802 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9803 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9804 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9805 cost to 8.
9806 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9807 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9808 provide these insn when flag_pic.
9809
9810 2015-09-11 Jeff Law <law@redhat.com>
9811
9812 PR tree-optimization/47679
9813 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
9814 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
9815 member with m_. Update inline member functions as necessary. Add
9816 toplevel comment.
9817 * tree-ssa-scopedtables.c: Update const_and_copies's member
9818 functions to use m_ prefix to access the stack.
9819
9820 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9821
9822 * graphite-optimize-isl.c (disable_tiling): Remove.
9823 (get_schedule_for_band): Do not use disable_tiling.
9824 (get_prevector_map): Delete function.
9825 (enable_polly_vector): Remove.
9826 (get_schedule_for_band_list): Remove dead code.
9827
9828 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9829
9830 * graphite-optimize-isl.c (get_tile_map): Refactor.
9831 (get_schedule_for_band): Same.
9832 (getScheduleForBand): Same.
9833 (get_prevector_map): Same.
9834 (get_schedule_for_band_list): Same.
9835 (get_schedule_map): Same.
9836 (get_single_map): Same.
9837 (apply_schedule_map_to_scop): Same.
9838 (optimize_isl): Same.
9839
9840 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9841
9842 PR target/63304
9843 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
9844 (movtf): Delete.
9845 * config/aarch64/iterators.md (GPF_TF_F16): New.
9846 (GPF_F16): Delete.
9847
9848 2015-09-10 Nathan Sidwell <nathan@acm.org>
9849
9850 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
9851 (nvptx_reorg): Adjust comments.
9852
9853 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
9854
9855 PR bootstrap/67363
9856 * configure.ac: Check if setenv and unsetenv are declared.
9857 * configure: Rebuild.
9858 * config.in: Rebuild.
9859 * system.h: Declare setenv and unsetenv if not declared.
9860
9861 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9862
9863 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
9864 commentary to simplify permute mask adjustment equation.
9865 (special_handling_values): Add SH_VPERM.
9866 (const_load_sequence_p): New function.
9867 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
9868 the mask loaded from the constant pool.
9869 (adjust_vperm): New function.
9870 (handle_special_swappables): Call adjust_vperm.
9871 (dump_swap_insn_table): Handle SH_VPERM.
9872
9873 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
9874
9875 * shrink-wrap.c (requires_stack_frame_p): Remove static.
9876 * shrink-wrap.h (requires_stack_frame_p): Put back.
9877
9878 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
9879
9880 * reload1.c (elimination_costs_in_insn): Locally turn
9881 -Wmaybe-uninitialized into a warning.
9882
9883 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
9884
9885 * shrink-wrap.c (requires_stack_frame_p): Make static.
9886 (prepare_shrink_wrap): Likewise.
9887 (dup_block_and_redirect): Likewise.
9888 * shrink-wrap.h: Remove declarations of those functions.
9889
9890 2015-09-10 Mark Wielaard <mjw@redhat.com>
9891
9892 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9893
9894 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
9895
9896 PR target/67506
9897 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9898 missing simplify_gen_subreg.
9899
9900 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9901
9902 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9903 the vector element is bigger than 64 bit.
9904
9905 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9906
9907 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9908 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9909
9910 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9911
9912 * config/s390/s390.c: Add V1TImode to constant pool modes.
9913
9914 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9915
9916 PR target/67439
9917 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9918 predicate. Set predicable_short_it attr to "no".
9919
9920 2015-09-10 Jiong Wang <jiong.wang@arm.com>
9921
9922 PR rtl-optimization/67421
9923 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9924 left wide shift tranformation.
9925
9926 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9927
9928 * common/config/arc/arc-common.c: Remove references to A5.
9929 * config/arc/arc-opts.h: Likewise.
9930 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9931 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9932 * config/arc/t-arc-newlib: Likewise.
9933
9934 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9935
9936 * config/arc/arc.md (length): Fix attribute length for conditional
9937 executed instructions with long immediate.
9938
9939 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9940
9941 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9942 type for second alternative.
9943
9944 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
9945
9946 * doc/invoke.texi (Downloading GCC): Mention
9947 contrib/download_prerequisites script.
9948
9949 2015-09-10 Jakub Jelinek <jakub@redhat.com>
9950
9951 PR c++/67523
9952 * gimplify.c (gimplify_omp_for): If inner stmt is not found
9953 for combined loop, assert seen_error () and return GS_ERROR.
9954
9955 PR middle-end/67521
9956 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9957 if decl is already in outer->variables.
9958
9959 PR middle-end/67517
9960 * gimplify.c (gimplify_scan_omp_clauses): Instead of
9961 asserting that decl is not specified in octx->variables,
9962 break out of the loop if it is.
9963
9964 PR c++/67514
9965 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9966 iterator is not explicitly determined, but is defined inside
9967 of the combined workshare region, handle it like if it has
9968 DECL_EXPR in OMP_FOR_PRE_BODY.
9969
9970 2015-09-09 Nathan Sidwell <nathan@acm.org>
9971
9972 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9973 (*cmp<mode>): Add assembler spacing.
9974 (setcc_int<mode>, set_cc_float<mode>): Likewise.
9975 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9976 level.
9977 (write_func_decl_from_insn): Refactor argument loops & comma emission.
9978 (nvptx_expand_call): Likewise.
9979 (nvptx_output_call_insn): Likewise.
9980 (nvptx_reorg_subreg): Add spacing.
9981
9982 2015-09-09 Marek Polacek <polacek@redhat.com>
9983
9984 PR middle-end/67512
9985 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
9986 for comparisons.
9987
9988 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9989
9990 PR c++/53184
9991 * doc/invoke.texi ([Wsubobject-linkage]): Document.
9992
9993 2015-09-09 Tom de Vries <tom@codesourcery.com>
9994
9995 * params-list.h: Add missing copyright notice.
9996
9997 2015-09-09 Nathan Sidwell <nathan@acm.org>
9998
9999 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
10000 sel_truesi, not andsi.
10001
10002 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10003
10004 * config/arm/arm.md (*subsi3_compare0): Rename to...
10005 (subsi3_compare0): ... This.
10006 (modsi3): New define_expand.
10007 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
10008 when operand is power of 2.
10009
10010 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10011
10012 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
10013 (*neg<mode>2_compare0): Rename to...
10014 (neg<mode>2_compare0): ... This.
10015 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
10016 Move check for speed inside the if-then-elses. Reflect
10017 CSNEG sequence in MOD by power of 2 case.
10018
10019 2015-09-09 Alan Modra <amodra@gmail.com>
10020
10021 PR target/67378
10022 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
10023 reload replacement for PRE_MODIFY address reg.
10024
10025 2015-09-09 Sebastian Pop <s.pop@samsung.com>
10026
10027 PR tree-optimization/53852
10028 * config.in: Regenerate.
10029 * configure: Regenerate.
10030 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
10031 * graphite-optimize-isl.c (optimize_isl): Stop computation when
10032 PARAM_MAX_ISL_OPERATIONS is reached.
10033 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
10034 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
10035 result equal to isl_stat_ok as the status now can be isl_error_quota.
10036 (subtract_commutative_associative_deps): Same.
10037 (compute_deps): Same.
10038
10039 2015-09-08 Aditya Kumar <hiraditya@msn.com>
10040 Sebastian Pop <s.pop@samsung.com>
10041
10042 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
10043 Return the parameter if it was saved in corresponding
10044 parameter_rename_map of the region.
10045 (copy_def): Copy def from sese region to the newly created region.
10046 (copy_internal_parameters): Copy all the internal parameters defined
10047 within a region to the newly created region.
10048 (graphite_regenerate_ast_isl): Copy parameters to the new region before
10049 translating isl to gimple.
10050 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
10051 the loop-nest does not have any data-references.
10052 (build_graphite_scops): Create a scop only when there is at least one
10053 loop inside it.
10054 (contains_only_close_phi_nodes): Deleted.
10055 (print_graphite_scop_statistics): Deleted
10056 (print_graphite_statistics): Deleted
10057 (limit_scops): Deleted.
10058 (build_scops): Removed call to limit_scops.
10059 * sese.c (new_sese): Construct.
10060 (free_sese): Destruct.
10061 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
10062 added.
10063 (set_rename): Pass sese region so that parameters inside the region can
10064 be added to its parameter_rename_map.
10065 (rename_uses): Pass sese region.
10066 (graphite_copy_stmts_from_block): Do not copy parameters that have been
10067 generated in the header of the scop. For each SSA_NAME in the
10068 parameter_rename_map rename its usage.
10069 (invariant_in_sese_p_rec): Return false if tree t is defined outside
10070 sese region.
10071 (scalar_evolution_in_region): If the tree t is invariant just return t.
10072 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
10073 struct sese to keep track of all the parameters which need renaming.
10074 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
10075 any data-refs.
10076 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
10077
10078 2015-09-08 Tom de Vries <tom@codesourcery.com>
10079
10080 * Makefile.in (generated_files): Add params.list.
10081 (params.list, s-params.list): Add rule.
10082 * params.h (enum compiler_param): Include params-list.h. Move define
10083 DEFPARAM, include params.def and undef DEFPARAM ...
10084 * params-list.h: ... here. New file.
10085
10086 2015-09-08 David Malcolm <dmalcolm@redhat.com>
10087
10088 * pretty-print.h (printer_fn): Fix typo in comment.
10089
10090 2015-09-07 Jeff Law <law@redhat.com>
10091
10092 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
10093
10094 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10095
10096 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
10097 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
10098 (arm_neon_fp16_hw): New.
10099
10100 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10101
10102 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
10103 UNITS_PER_WORD >= 4.
10104
10105 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10106
10107 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
10108 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
10109 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
10110 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
10111 (aarch64_float_extend_lo_v2df): Rename to...
10112 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
10113
10114 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
10115 (float_extend_lo): Add v4sf.
10116
10117 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
10118 * config/aarch64/iterators.md (VQ_HSF): New iterator.
10119 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
10120 (Vwide): New mode_attr.
10121
10122 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10123
10124 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
10125 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
10126 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
10127 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
10128 V4HF and V8HF variants to iterator.
10129
10130 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
10131
10132 * config/aarch64/iterators.md (VDQF_F16): New.
10133 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
10134
10135 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10136
10137 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
10138 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10139 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
10140 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
10141 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
10142 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10143 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
10144 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
10145 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
10146 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
10147 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
10148 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10149 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
10150 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
10151 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
10152 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
10153 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
10154 vld1q_dup_f16): New.
10155
10156 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10157
10158 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10159 Reparameterize to...
10160 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10161 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10162 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10163
10164 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10165 v8hf variant.
10166 (float_truncate_lo_): Use BUILTIN_VDF iterator.
10167
10168 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10169
10170 * config/aarch64/iterators.md (VDF, Vdtype): New.
10171 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10172
10173 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10174
10175 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10176 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10177 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10178 Add __builtin_aarch64_simd_hf.
10179 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10180 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10181 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10182 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10183 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10184 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10185 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10186 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10187 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10188
10189 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10190 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10191 (VDC, Vdbl): Add V4HF.
10192
10193 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10194
10195 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10196 V4HFmode and V8HFmode.
10197 (aarch64_split_simd_move): Add case for V8HFmode.
10198 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10199 (aarch64_simd_builtin_std_type): Handle HFmode.
10200 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10201
10202 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10203 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10204 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10205
10206 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10207 Float16x8_t.
10208
10209 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10210 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10211 New typedefs.
10212 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10213 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10214 vst1q_lane_f16): New.
10215 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10216 (VALLDI_F16, VALL_F16): New.
10217 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10218 Add cases for V4HF and V8HF.
10219 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10220
10221 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10222
10223 * config/arm/arm-builtins.c (VAR11, VAR12): New.
10224 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10225 vld4_dup): Add v4hf variant.
10226 (vget_high, vget_low): Add v8hf variant.
10227 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10228 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10229 v4hf and v8hf variants.
10230
10231 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10232 (VDX): Add V4HF.
10233 (V_DOUBLE): Add case for V4HF.
10234 (VQX): Add V8HF.
10235 (V_HALF): Add case for V8HF.
10236 (VDQX): Add V4HF, V8HF.
10237 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10238 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10239
10240 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10241 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10242 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10243 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10244 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10245 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10246 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10247 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10248 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10249
10250 (neon_vcreate, neon_vreinterpretv8qi<mode>,
10251 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10252 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10253 Change VDX to VD_RE.
10254
10255 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10256 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10257 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10258
10259 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10260 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10261 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10262 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10263 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10264 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10265 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10266 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10267 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10268
10269 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10270
10271 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10272 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10273 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10274 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10275 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10276 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10277 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10278 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10279 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10280 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10281 New.
10282
10283 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10284
10285 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10286
10287 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10288
10289 * config/arm/arm-builtins.c (v8hf_UP): New.
10290 (arm_init_simd_builtin_types): Initialise Float16x8_t.
10291
10292 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10293
10294 * config/arm/arm_neon.h (float16x8_t): New typedef.
10295
10296 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10297
10298 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10299 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10300 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10301 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10302 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10303 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10304 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10305 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10306 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10307 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10308
10309 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
10310
10311 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10312 non-alphanumeric characters in the symbol name.
10313
10314 2015-09-07 Marek Polacek <polacek@redhat.com>
10315
10316 PR inline-asm/67448
10317 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10318 a memory input.
10319
10320 2015-09-07 Marek Polacek <polacek@redhat.com>
10321
10322 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10323
10324 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
10325
10326 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10327 not warn.
10328
10329 2015-09-04 Jakub Jelinek <jakub@redhat.com>
10330
10331 PR middle-end/67452
10332 * tree-ssa-live.c: Include cfgloop.h.
10333 (remove_unused_locals): Clear loop->simduid if simduid is about
10334 to be removed from cfun->local_decls.
10335
10336 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10337
10338 PR target/65210
10339 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10340 attribute as well.
10341
10342 2015-09-04 Tom de Vries <tom@codesourcery.com>
10343
10344 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10345
10346 2015-09-04 Jeff Law <law@redhat.com>
10347
10348 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10349 unnecessary constructor. It's now trivial and implemented inside...
10350 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10351 constructor. Add comments to various methods. Remove unused
10352 private fields.
10353 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10354 * tree-vrp.c (identify_jump_threads): Likewise.
10355 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10356 indentation issues.
10357 (thread_across_edge): Similarly.
10358 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10359 arguments in constructor call.
10360
10361 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10362
10363 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10364 temp path contains a '-'.
10365
10366 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10367 Petr Murzin <petr.murzin@intel.com>
10368 Kirill Yukhin <kirill.yukhin@intel.com>
10369
10370 * config/i386/i386-builtin-types.def
10371 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10372 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10373 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10374 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10375 * config/i386/i386.c
10376 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10377 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10378 IX86_BUILTIN_SCATTERALTDIV16SI.
10379 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10380 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10381 __builtin_ia32_scatteraltdiv8si.
10382 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10383 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10384 IX86_BUILTIN_SCATTERALTDIV16SI.
10385 (ix86_vectorize_builtin_scatter): New.
10386 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10387 ix86_vectorize_builtin_scatter.
10388
10389 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10390 Petr Murzin <petr.murzin@intel.com>
10391 Kirill Yukhin <kirill.yukhin@intel.com>
10392
10393 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10394 * doc/tm.texi: Regenerate.
10395 * target.def: Add scatter builtin.
10396 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10397 for loads/stores in case of gather/scatter accordingly.
10398 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10399 STMT_VINFO_GATHER_P(S).
10400 (vect_check_gather): Rename to ...
10401 (vect_check_gather_scatter): this.
10402 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10403 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10404 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10405 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10406 variable and new checkings for it accordingly.
10407 * tree-vect-stmts.c
10408 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10409 STMT_VINFO_GATHER_P(S).
10410 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10411 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10412
10413 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10414
10415 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10416 define_insn.
10417 (mulv16qi3): New define_expand.
10418
10419 2015-09-03 Martin Sebor <msebor@redhat.com>
10420
10421 PR c/66516
10422 * doc/extend.texi (Other Builtins): Document when the address
10423 of a built-in function can be taken.
10424
10425 2015-09-03 Richard Biener <rguenther@suse.de>
10426
10427 * dwarf2out.c (flush_limbo_die_list): Split out from ...
10428 (dwarf2out_early_finish): ... here.
10429 (dwarf2out_finish): Do not call dwarf2out_early_finish but
10430 flush_limbo_die_list. Assert we have no deferred asm names.
10431
10432 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10433
10434 * optabs.c (expand_binop): Don't create a broadcast vector with a
10435 source element wider than the inner mode.
10436
10437 2015-09-03 Richard Biener <rguenther@suse.de>
10438
10439 * varasm.c (output_constant): Use fold_convert instead of
10440 wide_int_to_tree.
10441
10442 2015-09-03 Tom de Vries <tom@codesourcery.com>
10443
10444 PR tree-optimization/65637
10445 * omp-low.c (expand_omp_for_static_chunk): Handle case that
10446 fin_bb has 2 predecessors.
10447
10448 2015-09-03 Tom de Vries <tom@codesourcery.com>
10449
10450 PR tree-optimization/65637
10451 * omp-low.c (find_phi_with_arg_on_edge): New function.
10452 (expand_omp_for_static_chunk): Fix inner loop phi.
10453
10454 2015-09-03 Tom de Vries <tom@codesourcery.com>
10455
10456 PR tree-optimization/65637
10457 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10458 that head is NULL.
10459
10460 2015-09-03 Tom de Vries <tom@codesourcery.com>
10461
10462 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10463
10464 2015-09-03 Tom de Vries <tom@codesourcery.com>
10465
10466 * doc/invoke.texi (parloops-chunk-size): Add item.
10467 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10468 * tree-parloops.c: Include params.h.
10469 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10470 param parloops-chunk-size is used.
10471
10472 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10473
10474 PR middle-end/67351
10475 * fold-const.c (fold_binary_loc) : Move
10476 Transform (x >> c) << c into x & (-1<<c) or
10477 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
10478 types using simplify and match.
10479 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
10480 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
10481
10482 2015-09-03 Richard Biener <rguenther@suse.de>
10483
10484 PR ipa/66705
10485 * tree-ssa-structalias.c (ctor_for_analysis): New function.
10486 (create_variable_info_for_1): Use ctor_for_analysis instead
10487 of get_constructor.
10488 (create_variable_info_for): Likewise.
10489
10490 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
10491
10492 PR ipa/67280
10493 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
10494 in new callgraph edge.
10495
10496 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
10497
10498 PR target/59810
10499 PR target/63652
10500 PR target/63653
10501 * config/aarch64/aarch64-simd.md
10502 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
10503 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
10504 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
10505 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
10506
10507 2015-09-02 Alan Modra <amodra@gmail.com>
10508
10509 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
10510 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
10511 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
10512
10513 2015-09-02 Alan Modra <amodra@gmail.com>
10514
10515 PR target/67417
10516 * config/rs6000/predicates.md (current_file_function_operand): Don't
10517 return true for weak symbols.
10518 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
10519
10520 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
10521 Andrew Bennett <andrew.bennett@imgtec.com>
10522
10523 * config/mips/mips-opts.h (mips_cb_setting): New enum.
10524 * config/mips/mips-protos.h: Add definitions for
10525 mips_output_jump and mips_output_equal_conditional_branch
10526 * config/mips/mips.c (MIPS_JR): Change to support the
10527 JIC instruction.
10528 (mips_emit_compare): Add support for the MIPS R6 conditional
10529 compact branches.
10530 (mips_process_sync_loop): Likewise.
10531 (mips_output_order_conditional_branch): Likewise.
10532 (mips16_build_call_stub): Change MIPS_CALL to
10533 mips_output_jump.
10534 (mips_print_operand_punctuation): Update 's' case to only
10535 apply to micromips r2.
10536 (mips_adjust_insn_length): Add support for forbidden slot
10537 hazards.
10538 (mips_avoid_hazard): Likewise.
10539 (mips_reorg_process_insns): Likewise.
10540 (mips_output_jump): New function.
10541 (mips_output_equal_conditional_branch): Likewise.
10542 (mips_output_conditional_branch): Use jrc/bc if compact
10543 branch support is enabled. Ensure the forbidden slots
10544 between the two branch instructions is filled with a nop.
10545 (mips_option_override): Add support to process the compact
10546 branch option and set the correct defaults. Prevent
10547 non-explict relocs being using for MIPS R6.
10548 (mips_trampoline_init): Add compact branch support.
10549 (mips_mult_zero_zero_cost): Allow zero initialisation of
10550 accumulators with TARGET_DSP.
10551 * config/mips/mips.h (TARGET_CB_NEVER): New define.
10552 (TARGET_CB_MAYBE): New define.
10553 (TARGET_CB_ALWAYS): New define.
10554 (ISA_HAS_DELAY_SLOTS): New define.
10555 (ISA_HAS_COMPACT_BRANCHES): New define.
10556 (ISA_HAS_JRC): New define.
10557 (MIPS_BRANCH_C): New define.
10558 (MIPS_CALL): Removed.
10559 (MICROMIPS_J): Removed.
10560 * config/mips/mips.md (compact_form): New attr.
10561 (hazard): Add support for forbidden slots.
10562 (define_delay): Add support for compact branches.
10563 (*branch_order<mode>): Likewise.
10564 (*branch_order<mode>_inverted): Likewise.
10565 (*branch_equality<mode>): Likewise.
10566 (*branch_equality<mode>_inverted): Likewise.
10567 (*jump_absolute): Likewise.
10568 (*jump_pic): Likewise.
10569 (indirect_jump): Use mips_output_jump to produce assembly output.
10570 (tablejump_<mode>"): Likewise.
10571 (*<optab>"): Likewise.
10572 (<optab>_internal): Likewise.
10573 (sibcall_internal): Likewise.
10574 (sibcall_value_internal): Likewise.
10575 (sibcall_value_multiple_internal): Likewise.
10576 (call_internal): Likewise.
10577 (call_split): Likewise.
10578 (call_internal_direct): Likewise.
10579 (call_direct_split): Likewise.
10580 (call_value_internal): Likewise.
10581 (call_value_split): Likewise.
10582 (call_value_internal_direct): Likewise.
10583 (call_value_direct_split): Likewise.
10584 (call_value_multiple_internal): Likewise.
10585 (call_value_multiple_split): Likewise.
10586 (mips_get_fcsr_mips16_<mode>): Likewise.
10587 (mips_set_fcsr_mips16_<mode>): Likewise.
10588 (tls_get_tp_mips16_<mode>): Likewise.
10589 * config/mips/mips.opt: Add -mcompact-branches option.
10590 * config/mips/predicates.md (order_operator): Ensure the
10591 conditional compact branches are only used if the ISA them.
10592 * doc/invoke.texi: Document -mcompact-branches option.
10593
10594 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
10595
10596 PR target/61578
10597 * lra-lives.c (process_bb_lives): Process move pseudos with the
10598 same value for copies and preferences
10599 * lra-constraints.c (match_reload): Create match reload pseudo
10600 with the same value from single dying input pseudo.
10601
10602 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
10603
10604 PR target/67405
10605 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10606
10607 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
10608
10609 * trans-mem.c: Add contributed-by.
10610 * trans-mem.h: Same.
10611
10612 2015-09-01 Richard Biener <rguenther@suse.de>
10613
10614 * expr.c (expand_expr_real_1): For expanding TERed defs
10615 set the current location to that of the def if not UNKNOWN.
10616
10617 2015-09-01 David Sherwood <david.sherwood@arm.com>
10618
10619 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10620
10621 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10622
10623 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10624 then_cost, else_cost fields. Change branch_cost field to unsigned int.
10625 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10626 Include rtl-iter.h.
10627 (noce_simple_bbs): New function.
10628 (noce_try_move): Bail if basic blocks are not simple.
10629 (noce_try_store_flag): Likewise.
10630 (noce_try_store_flag_constants): Likewise.
10631 (noce_try_addcc): Likewise.
10632 (noce_try_store_flag_mask): Likewise.
10633 (noce_try_cmove): Likewise.
10634 (noce_try_minmax): Likewise.
10635 (noce_try_abs): Likewise.
10636 (noce_try_sign_mask): Likewise.
10637 (noce_try_bitop): Likewise.
10638 (bbs_ok_for_cmove_arith): New function.
10639 (noce_emit_all_but_last): Likewise.
10640 (noce_emit_insn): Likewise.
10641 (noce_emit_bb): Likewise.
10642 (noce_try_cmove_arith): Handle non-simple basic blocks.
10643 (insn_valid_noce_process_p): New function.
10644 (contains_mem_rtx_p): Likewise.
10645 (bb_valid_for_noce_process_p): Likewise.
10646 (noce_process_if_block): Allow non-simple basic blocks
10647 where appropriate.
10648
10649 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
10650
10651 * tree-ssa-dom.c (record_equivalences_from_phis,
10652 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10653 (lookup_avail_expr): Likewise, and remove comment and unused temp.
10654
10655 2015-09-01 Nick Clifton <nickc@redhat.com>
10656
10657 * config/msp430/msp430.opt (mcpu): Fix typo.
10658
10659 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10660
10661 * config/aarch64/aarch64.c (aarch64_set_current_function):
10662 Re-layout any vector parameters have non-simd layout.
10663 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10664 Delete.
10665 (aarch64_simd_expand_args): Delete call to the above.
10666
10667 2015-08-31 Mike Frysinger <vapier@gentoo.org>
10668
10669 * doc/invoke.texi (asan-stack): Add space before option.
10670
10671 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10672
10673 * tree.h (zerop): New function.
10674 * tree.c (zerop): Likewise.
10675 (element_precision): Handle expressions.
10676 * match.pd (define_predicates): Add zerop.
10677 (x <= +Inf): Fix comment.
10678 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10679 * fold-const.c (fold_binary_loc): ... here. Remove.
10680
10681 2015-08-31 Richard Biener <rguenther@suse.de>
10682
10683 PR middle-end/67381
10684 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10685
10686 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10687
10688 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10689 (CEXPI): New operator list.
10690 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10691 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10692 Converted from ...
10693 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10694
10695 2015-08-31 Tom de Vries <tom@codesourcery.com>
10696
10697 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10698 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10699 parameter.
10700 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10701 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10702 (rewrite_into_loop_closed_ssa): ... here.
10703 (replace_uses_in_dominated_bbs): Remove function.
10704 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10705 rewrite_into_loop_closed_ssa_1.
10706
10707 2015-08-31 Michael Matz <matz@suse.de>
10708
10709 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10710 enter entry and exit blocks for reverse post order.
10711
10712 2015-08-31 Richard Biener <rguenther@suse.de>
10713
10714 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10715 (lto_location_cache::current_sysp): Likewise.
10716 (output_block::current_sysp): Likewise.
10717 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10718 (lto_location_cache::apply_location_cache): Properly record
10719 system header locations.
10720 (lto_location_cache::input_location): Input whether a file
10721 is a system header.
10722 * lto-streamer-out.c (lto_output_location): Stream whether a file
10723 is a system header.
10724
10725 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10726
10727 PR bootstrap/67363
10728 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10729
10730 2015-08-31 Tom de Vries <tom@codesourcery.com>
10731
10732 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10733 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10734 Improve function header comments.
10735
10736 2015-08-30 Michael Collison <michael.collison@linaro.org>
10737
10738 PR other/67320
10739 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10740 standard names
10741
10742 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10743
10744 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10745 special_handling bitfield.
10746 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10747 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10748 that represents a general xxpermdi.
10749 (insn_is_swappable_p): Add handling for vec_concat of two
10750 doublewords, which maps to a specific xxpermdi.
10751 (adjust_xxpermdi): New function.
10752 (adjust_concat): Likewise.
10753 (handle_special_swappables): Call adjust_xxpermdi and
10754 adjust_concat.
10755 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10756
10757 2015-08-30 Rich Felker <dalias@libc.org>
10758
10759 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10760 case instead of sh[123456ble]-*-*.
10761
10762 2015-08-29 Anatoly Sokolov <aesok@post.ru>
10763
10764 * ira.c (print_unform_and_important_classes,
10765 print_translated_classes): Remove reg_class_names static array.
10766 (print_unform_and_important_classes): Rename to ...
10767 (print_uniform_and_important_classes): ... this.
10768 (ira_debug_allocno_classes): Update accordingly.
10769
10770 2015-08-29 Tom de Vries <tom@codesourcery.com>
10771
10772 PR tree-optimization/46193
10773 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
10774 clause.
10775
10776 2015-08-28 Jeff Law <law@redhat.com>
10777
10778 PR lto/66752
10779 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10780 unable to find X NE 0 in the tables, return X as the simplified
10781 condition.
10782 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10783 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10784 to VISISTED_BBS.
10785 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10786 after removing the control flow statement and unnecessary edges.
10787
10788 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
10789
10790 Revert:
10791 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10792
10793 PR tree-optimization/67283
10794 * tree-sra.c (type_consists_of_records_p): Rename to...
10795 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10796
10797 (completely_scalarize_record): Rename to...
10798 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
10799 code to:
10800 (scalarize_elem): New.
10801
10802 2015-08-28 Jiong Wang <jiong.wang@arm.com>
10803
10804 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
10805 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
10806 (aarch64_symbol_type): Likewise.
10807 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10808 Likewise.
10809 (aarch64_expand_mov_immediate): Likewise.
10810 (aarch64_print_operand): Likewise.
10811 (aarch64_classify_tls_symbol): Likewise.
10812
10813 2015-08-28 Richard Biener <rguenther@suse.de>
10814
10815 * cgraphunit.c (symbol_table::compile): Move early debug generation
10816 and finish...
10817 (symbol_table::finalize_compilation_unit): ... back here and
10818 add a !seen_error () guard.
10819
10820 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10821
10822 * toplev.c (process_options): Do not use flag_loop_block,
10823 flag_loop_interchange, and flag_loop_strip_mine. Add check for
10824 flag_loop_optimize_isl.
10825
10826 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10827
10828 * Makefile.in (OBJS): Remove graphite-blocking.o and
10829 graphite-interchange.o.
10830 * common.opt (floop-strip-mine, floop-interchange, floop-block):
10831 Alias of floop-nest-optimize.
10832 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
10833 Document as alias of -floop-nest-optimize.
10834 * graphite-blocking.c: Remove.
10835 * graphite-interchange.c: Remove.
10836 * graphite-optimize-isl.c: Include dumpfile.h.
10837 (getScheduleForBand): Add dump for tiled loops. Use
10838 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
10839 * graphite-poly.c (scop_max_loop_depth): Remove.
10840 (print_scattering_function_1): Remove.
10841 (print_scattering_function): Remove.
10842 (print_scattering_functions): Remove.
10843 (debug_scattering_function): Remove.
10844 (debug_scattering_functions): Remove.
10845 (apply_poly_transforms): Remove use of flag_loop_block,
10846 flag_loop_strip_mine, and flag_loop_interchange.
10847 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
10848 PBB_ORIGINAL.
10849 (print_pdr_access_layout): Remove.
10850 (print_pdr): Print ISL representation.
10851 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
10852 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
10853 (free_scop): Same.
10854 (openscop_print_pbb_domain): Remove.
10855 (print_pbb): Remove call to print_scattering_function.
10856 (openscop_print_scop_context): Remove.
10857 (print_scop_context): Do not print matrices anymore.
10858 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
10859 SCOP_TRANSFORMED_SCHEDULE.
10860 (print_isl_set): Add printing of a new line.
10861 (print_isl_map): Same.
10862 (print_isl_aff): Same.
10863 (print_isl_constraint): Same.
10864 (loop_to_lst): Remove.
10865 (scop_to_lst): Remove.
10866 (lst_indent_to): Remove.
10867 (print_lst): Remove.
10868 (debug_lst): Remove.
10869 (dot_lst_1): Remove.
10870 (dot_lst): Remove.
10871 (reverse_loop_at_level): Remove.
10872 (reverse_loop_for_pbbs): Remove.
10873 * graphite-poly.h (pdr_dim_iter_domain): Remove.
10874 (pdr_nb_params): Remove.
10875 (pdr_alias_set_dim): Remove.
10876 (pdr_subscript_dim): Remove.
10877 (pdr_iterator_dim): Remove.
10878 (pdr_parameter_dim): Remove.
10879 (same_pdr_p): Remove.
10880 (struct poly_scattering): Remove.
10881 (struct poly_bb): Remove _original, _transformed, _saved.
10882 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10883 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10884 (PBB_NB_LOCAL_VARIABLES): Remove.
10885 (PBB_NB_SCATTERING_TRANSFORM): Remove.
10886 (schedule_to_scattering): Remove.
10887 (number_of_write_pdrs): Remove.
10888 (pbb_dim_iter_domain): Remove.
10889 (pbb_nb_params): Remove.
10890 (pbb_nb_scattering_orig): Remove.
10891 (pbb_nb_scattering_transform): Remove.
10892 (pbb_nb_dynamic_scattering_transform): Remove.
10893 (pbb_nb_local_vars): Remove.
10894 (pbb_iterator_dim): Remove.
10895 (pbb_parameter_dim): Remove.
10896 (psco_scattering_dim): Remove.
10897 (psct_scattering_dim): Remove.
10898 (psct_local_var_dim): Remove.
10899 (psco_iterator_dim): Remove.
10900 (psct_iterator_dim): Remove.
10901 (psco_parameter_dim): Remove.
10902 (psct_parameter_dim): Remove.
10903 (psct_dynamic_dim): Remove.
10904 (psct_static_dim): Remove.
10905 (psct_add_local_variable): Remove.
10906 (new_lst_loop): Remove.
10907 (new_lst_stmt): Remove.
10908 (free_lst): Remove.
10909 (copy_lst): Remove.
10910 (lst_add_loop_under_loop): Remove.
10911 (lst_depth): Remove.
10912 (lst_dewey_number): Remove.
10913 (lst_dewey_number_at_depth): Remove.
10914 (lst_pred): Remove.
10915 (lst_succ): Remove.
10916 (lst_find_pbb): Remove.
10917 (find_lst_loop): Remove.
10918 (lst_find_first_pbb): Remove.
10919 (lst_empty_p): Remove.
10920 (lst_find_last_pbb): Remove.
10921 (lst_contains_p): Remove.
10922 (lst_contains_pbb): Remove.
10923 (lst_create_nest): Remove.
10924 (lst_remove_from_sequence): Remove.
10925 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10926 (lst_niter_for_loop): Remove.
10927 (pbb_update_scattering): Remove.
10928 (lst_update_scattering_under): Remove.
10929 (lst_update_scattering): Remove.
10930 (lst_insert_in_sequence): Remove.
10931 (lst_replace): Remove.
10932 (lst_substitute_3): Remove.
10933 (lst_distribute_lst): Remove.
10934 (lst_remove_all_before_including_pbb): Remove.
10935 (lst_remove_all_before_excluding_pbb): Remove.
10936 (struct scop): Remove original_schedule, transformed_schedule, and
10937 saved_schedule.
10938 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10939 (SCOP_SAVED_SCHEDULE): Remove.
10940 (poly_scattering_new): Remove.
10941 (poly_scattering_free): Remove.
10942 (poly_scattering_copy): Remove.
10943 (store_scattering_pbb): Remove.
10944 (store_lst_schedule): Remove.
10945 (restore_lst_schedule): Remove.
10946 (store_scattering): Remove.
10947 (restore_scattering_pbb): Remove.
10948 (restore_scattering): Remove.
10949 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10950 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
10951 compute the scattering polyhedron dimension from the dimension of
10952 pbb->domain.
10953 (build_scop_scattering): Update call to
10954 build_pbb_scattering_polyhedrons.
10955 (build_poly_scop): Remove call to scop_to_lst.
10956 * graphite.c (graphite_transform_loops): Add call to print_scop.
10957 (gate_graphite_transforms): Remove use of flag_loop_block,
10958 flag_loop_interchange, and flag_loop_strip_mine.
10959
10960 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10961
10962 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10963 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10964 -floop-nest-optimize.
10965 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10966 (generate_luj_sepclass): Remove.
10967 (generate_luj_options): Remove.
10968 (set_options): Remove opt_luj.
10969 (scop_to_isl_ast): Remove opt_luj.
10970 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10971 flag_loop_unroll_jam.
10972 (getPrevectorMap_full): Remove.
10973 (getScheduleForBandList): Remove map_sepcl.
10974 (getScheduleMap): Same.
10975 (apply_schedule_map_to_scop): Remove sepcl.
10976 (optimize_isl): Same.
10977 * graphite-poly.c (apply_poly_transforms): Remove check for
10978 flag_loop_unroll_jam.
10979 (new_poly_bb): Remove map_sepclass.
10980 * graphite-poly.h (struct poly_bb): Same.
10981 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10982 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
10983 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
10984 * toplev.c (process_options): Remove flag_loop_unroll_jam.
10985
10986 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
10987
10988 PR target/67317
10989 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
10990 (addqi3_cc): Ditto.
10991 (UNSPEC_ADD_CARRY): Remove.
10992 (addqi3_cconly_overflow): New expander.
10993 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
10994 Adjust for changed add<mode>3_carry.
10995 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
10996 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
10997 (<plusminus_insn><mode>3_carry): Remove expander.
10998 (*<plusminus_insn><mode>3_carry): Split insn pattern to
10999 add<mode>3_carry and sub<mode>3_carry.
11000 (plusminus_carry_mnemonic): Remove code attribute.
11001 (add<mode>3_carry): Canonicalize insn pattern.
11002 (*addsi3_carry_zext): Ditto.
11003 (sub<mode>3_carry): Ditto.
11004 (*subsi3_carry_zext): Ditto.
11005 (adcx<mode>3): Remove insn pattern.
11006 (addcarry<mode>): New insn pattern.
11007 (subborrow<mode>): Ditto.
11008 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
11009 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
11010 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
11011 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
11012 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
11013 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
11014 Rewrite expander to not clobber carry flag chains.
11015
11016 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
11017
11018 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
11019 instead of a rotate.
11020
11021 2015-08-27 Marek Polacek <polacek@redhat.com>
11022
11023 PR middle-end/67005
11024 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
11025 an entry into an irreducible region.
11026
11027 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11028
11029 * configure: Regenerate.
11030
11031 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11032
11033 PR tree-optimization/67283
11034 * tree-sra.c (type_consists_of_records_p): Rename to...
11035 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
11036
11037 (completely_scalarize_record): Rename to...
11038 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
11039 (scalarize_elem): New.
11040
11041 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
11042
11043 * tree-sra.c (completely_scalarize_var): Rename to...
11044 (create_total_scalarization_access): ... Here. Drop call to
11045 completely_scalarize_record.
11046
11047 (analyze_all_variable_accesses): Replace completely_scalarize_var
11048 with create_total_scalarization_access and completely_scalarize_record.
11049
11050 2015-08-27 Alan Modra <amodra@gmail.com>
11051
11052 PR target/67356
11053 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
11054 for operand 1.
11055
11056 2015-08-27 Richard Biener <rguenther@suse.de>
11057
11058 * passes.c (rest_of_decl_compilation): Guard early_global_decl
11059 call with !seen_error ().
11060 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
11061 early debug generation and finish...
11062 (symbol_table::compile): ... here to put it after a !seen_error ()
11063 guard.
11064
11065 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11066
11067 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
11068 Solaris 12+.
11069
11070 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11071 Andre Vieira <andre.simoesdiasvieira@arm.com>
11072
11073 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
11074 (*cb<optab><mode>1): Likewise.
11075 (*tb<optab><mode>1): Likewise.
11076 (*cb<optab><mode>1): Likewise.
11077 * config/aarch64/iterators.md (inv_cb): New code attribute.
11078 (inv_tb): Likewise.
11079 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
11080 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
11081
11082 2015-08-27 Richard Biener <rguenther@suse.de>
11083
11084 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
11085
11086 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
11087
11088 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
11089 trap to fix ICE.
11090
11091 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11092
11093 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
11094 Add declaration.
11095
11096 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
11097 comment.
11098 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
11099 floating point in VSX registers.
11100 (rs6000_output_move_128bit): Always print out the set insn if we
11101 can't generate an appropriate 128-bit move.
11102 (rs6000_generate_compare): Add support for IEEE 128-bit floating
11103 point in VSX registers comparisons.
11104 (rs6000_expand_float128_convert): Likewise.
11105
11106 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
11107 predicate for only GPR hard registers.
11108
11109 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
11110 modes to iterators. Add new iterators for moving 128-bit values in
11111 scalar FPR registers and VSX registers.
11112 (FMOVE128): Likewise.
11113 (FMOVE128_FPR): Likewise.
11114 (FMOVE128_GPR): Likewise.
11115 (FMOVE128_VSX): Likewise.
11116 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
11117 in VSX registers.
11118 (IFKF): Likewise.
11119 (IBM128): Likewise.
11120 (TFIFKF): Likewise.
11121 (RELOAD): Add IEEE 128-bit floating point modes.
11122 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
11123 floating point in VSX registers modes.
11124 (signbit<mode>2, IBM128 iterator): Likewise.
11125 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
11126 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
11127 (negtf2): Likewise.
11128 (neg<mode>2, TFIFKF iterator): Likewise.
11129 (negtf2_internal): Likewise.
11130 (abstf2): Likewise.
11131 (abs<mode>2, TFIFKF iterator): Likewise.
11132 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
11133 VSX insn support for negate, absolute value, and negative absolute
11134 value.
11135 (ieee_128bit_vsx_neg<mode>2): Likewise.
11136 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
11137 (ieee_128bit_vsx_abs<mode>2): Likewise.
11138 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11139 (ieee_128bit_vsx_nabs<mode>2): Likewise.
11140 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11141 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
11142 floating point in VSX registers.
11143 (unpack<mode>_dm): Likewise.
11144 (unpack<mode>_nodm): Likewise.
11145 (pack<mode>): Likewise.
11146 (unpackv1ti): Likewise.
11147 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
11148 (packv1ti): Likewise.
11149 (pack<mode>, FMOVE128_VSX iterator): Likewise.
11150 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
11151 registers.
11152 (extenddftf2_internal): Likewise.
11153 (trunctfdf2): Likewise.
11154 (trunctfdf2_internal2): Likewise.
11155 (fix_trunc_helper): Likewise.
11156 (fix_trunctfdi2"): Likewise.
11157 (floatditf2): Likewise.
11158 (floatuns<mode>tf2): Likewise.
11159 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11160 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11161 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11162 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11163 (float<SDI:mode><IFKF:mode>2): Likewise.
11164 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11165
11166 2015-08-26 Renlin Li <renlin.li@arm.com>
11167
11168 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11169
11170 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11171 Jiong Wang <jiong.wang@arm.com>
11172
11173 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11174 (tlsie_tiny_<mode>): New define_insn.
11175 (tlsie_tiny_sidi): Likewise.
11176 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11177 SYMBOL_TINY_TLSIE.
11178 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11179 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11180 SYMBOL_TINY_TLSIE.
11181 (aarch64_expand_mov_immediate): Likewise.
11182 (aarch64_print_operand): Likewise.
11183 (arch64_classify_tls_symbol): Likewise.
11184
11185 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11186
11187 * config/arm/arm-arches.def: Replace single value flags with
11188 an initializer built from ARM_FSET_MAKE_CPU1.
11189 * config/arm/arm-cores.def: Likewise.
11190 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11191 derivation from the ARM_CORE macro definition, use the given value
11192 instead.
11193 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11194 ARM_ARCH macro definition, use the given value instead.
11195
11196 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11197
11198 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11199 feature set.
11200 (struct builtin_description): Replace field mask with field
11201 features.
11202 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11203 (IWMMXT2_BUILTIN): Likewise.
11204 (IWMMXT2_BUILTIN2): Likewise.
11205 (FP_BUILTIN): Likewise.
11206 (CRC32_BUILTIN): Likewise.
11207 (CRYPTO_BUILTIN): Likewise.
11208 (iwmmx_mbuiltin): Likewise.
11209 (iwmmx2_mbuiltin): Likewise.
11210 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11211 struct builtin_description.
11212
11213 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11214
11215 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11216 (struct builtin_description): Change type of mask to unsigned
11217 long.
11218 * config/arm/arm-protos.h (insn_flags): Declare as type
11219 arm_feature_set.
11220 (tune_flags): Likewise.
11221 * config/arm/arm.c (feature_count): New.
11222 (insn_flags): Define as type arm_feature_set.
11223 (tune_flags): Likewise.
11224 (struct processors): Define field flags as type arm_feature_set.
11225 (all_cores): Update for change to struct processors.
11226 (all_architectures): Likewise.
11227 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11228 macros.
11229 (arm_option_override_internal): Likewise.
11230 (arm_option_override): Likewise.
11231
11232 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11233 Jiong Wang <jiong.wang@arm.com>
11234
11235 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11236 tls size for tiny, small, large memory model.
11237 (aarch64_load_symref_appropriately): Support new symbol types.
11238 (aarch64_expand_mov_immediate): Likewise.
11239 (aarch64_print_operand): Likewise.
11240 (aarch64_classify_tls_symbol): Likewise.
11241 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11242 (aarch64_symbol_type): Likewise.
11243 * config/aarch64/aarch64.md (tlsle): Deleted.
11244 (tlsle12_<mode>): New define_insn.
11245 (tlsle24_<mode>): Likewise.
11246 (tlsle32_<mode>): Likewise.
11247 (tlsle48_<mode>): Likewise.
11248 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11249 "aarch64_tlsle32".
11250
11251 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11252
11253 * config/arm/arm-protos.h (FL_NONE): New.
11254 (FL_ANY): New.
11255 (arm_feature_set): New.
11256 (ARM_FSET_MAKE): New.
11257 (ARM_FSET_MAKE_CPU1): New.
11258 (ARM_FSET_MAKE_CPU2): New.
11259 (ARM_FSET_CPU1): New.
11260 (ARM_FSET_CPU2): New.
11261 (ARM_FSET_EMPTY): New.
11262 (ARM_FSET_ANY): New.
11263 (ARM_FSET_HAS_CPU1): New.
11264 (ARM_FSET_HAS_CPU2): New.
11265 (ARM_FSET_HAS_CPU): New.
11266 (ARM_FSET_ADD_CPU1): New.
11267 (ARM_FSET_ADD_CPU2): New.
11268 (ARM_FSET_DEL_CPU1): New.
11269 (ARM_FSET_DEL_CPU2): New.
11270 (ARM_FSET_UNION): New.
11271 (ARM_FSET_INTER): New.
11272 (ARM_FSET_XOR): New.
11273 (ARM_FSET_EXCLUDE): New.
11274 (AFM_FSET_IS_EMPTY): New.
11275 (ARM_FSET_CPU_SUBSET): New.
11276
11277 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11278
11279 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11280 SYMBOL_TLSLE to SYMBOL_TLSLE24.
11281 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11282 Likewise.
11283 (aarch64_expand_mov_immediate): Likewise.
11284 (aarch64_print_operand): Likewise.
11285 (aarch64_classify_symbol): Likewise.
11286
11287 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11288
11289 * config/aarch64/aarch64.opt (mtls-size): New entry.
11290 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11291 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11292 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11293
11294 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11295
11296 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11297 ARM_CORE entry. Fix some white-space.
11298 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11299 ARM_CORE definition.
11300
11301 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11302
11303 * fold-const.c (fold_binary_loc) : Move Optimize
11304 root(x)*root(y) as root(x*y) to match.pd.
11305 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11306 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11307 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11308 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11309 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11310 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11311 (mult (exps:s @0) (exps:s @1)) : New simplifier.
11312 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11313 (rdiv @0 (exps:s @1)) : New simplifier.
11314
11315 2015-08-25 Joseph Myers <joseph@codesourcery.com>
11316
11317 * gcc.c (driver::finalize): Only assign to extra_specs if
11318 [EXTRA_SPECS].
11319
11320 2015-08-25 Marek Polacek <polacek@redhat.com>
11321
11322 PR middle-end/67330
11323 * varasm.c (declare_weak): Return after giving an error.
11324
11325 2015-08-25 David Malcolm <dmalcolm@redhat.com>
11326
11327 * gcc-main.c (main): Add params to driver ctor.
11328 * gcc.c (class env_manager): New.
11329 (env): New global.
11330 (env_manager::init): New.
11331 (env_manager::get): New.
11332 (env_manager::xput): New.
11333 (env_manager::restore): New.
11334 Poison getenv and putenv.
11335 (DEFAULT_TARGET_SYSTEM_ROOT): New.
11336 (target_system_root): Update initialization to use
11337 DEFAULT_TARGET_SYSTEM_ROOT.
11338 (struct spec_list): Add field "default_ptr".
11339 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11340 (init_spec): Likewise.
11341 (set_spec): Clear field "default_ptr".
11342 (read_specs): Free "spec" and "buffer".
11343 (xputenv): Reimplement in terms of env_manager.
11344 (process_command): Replace ::getenv calls with calls to the
11345 env_manager singleton.
11346 (process_brace_body): Free string in three places.
11347 (driver::driver): New.
11348 (driver::~driver): New.
11349 (used_arg): Convert from a function to...
11350 (class used_arg_t): ...this class, and...
11351 (used_arg): ...this new global instance.
11352 (used_arg_t::finalize): New function.
11353 (getenv_spec_function): Add "const" to local "value". Replace
11354 ::getenv call with call to the env_manager singleton.
11355 (path_prefix_reset): New function.
11356 (driver::finalize): New function.
11357 * gcc.h (driver::driver): New.
11358 (driver::~driver): New.
11359 (driver::finalize): New.
11360
11361 2015-08-25 Nathan Sidwell <nathan@acm.org>
11362
11363 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11364 target doesn't have one.
11365
11366 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11367
11368 PR target/67346
11369 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11370
11371 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11372
11373 PR target/67344
11374 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11375 a define_insn, remove second alternative.
11376
11377 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
11378 Joseph Myers <joseph@codesourcery.com>
11379
11380 * gcc.c (struct switchstr): Expand comment.
11381
11382 2015-08-25 Nathan Sidwell <nathan@acm.org>
11383
11384 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11385 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11386
11387 2015-08-25 Richard Biener <rguenther@suse.de>
11388
11389 PR middle-end/67306
11390 * genmatch.c (expr::gen_transform): Verify the result of
11391 builtin_decl_implicit.
11392 (dt_simplify::gen_1): Likewise.
11393
11394 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
11395
11396 * config/arm/constraints.md: Also list Cs and US ARM-specific
11397 constraints as used.
11398
11399 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
11400
11401 PR target/66609
11402 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11403 UNSPEC_PCREL.
11404 (nonpic_symbol_mentioned_p): Likewise.
11405 (sh_delegitimize_address): Likewise.
11406 (sh_function_ok_for_sibcall): Take into account weak symbols.
11407 (sh_expand_sym_label2reg): New.
11408 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11409 * config/sh/sh.md (UNSPEC_PCREL): New enum.
11410 (call_pcrel): Use sh_expand_sym_label2reg.
11411 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11412 (symPCREL_label2reg) New expand.
11413
11414 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11415
11416 * graphite-poly.c: Change type of region from void* to sese.
11417 * graphite-poly.h (struct scop): Changing the type of scop::region
11418 from void* to sese. Change accessor macro accordingly.
11419 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11420
11421 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11422
11423 * graphite-scop-detection.c (stmt_simple_for_scop_p):
11424 Constrain only on INTEGER_TYPE.
11425
11426 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11427
11428 PR target/67211
11429 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11430 -mefficient-unaligned-vsx on ISA 2.7.
11431
11432 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11433 option to a masked option.
11434
11435 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11436 logic for -mefficient-unaligned-vsx so that it is set via an arch
11437 ISA option, instead of being set if -mtune=power8 is set. Move
11438 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11439 near other default option handling.
11440
11441 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11442
11443 * genflags.c (gen_macro): Delete.
11444 (gen_proto): Don't create GEN.*CALL.* macros.
11445 * gensupport.h (get_file_location): Declare.
11446 * gensupport.c (rtx_locs): New variable.
11447 (read_md_rtx): Record rtx locations.
11448 (get_file_location): New function.
11449 * target-insns.def (call, call_pop, call_value, call_value_pop)
11450 (sibcall, sibcall_value): New patterns.
11451 * gentarget-def.c (parse_argument): New function.
11452 (def_target_insn): Use it. Handle optional operands. Raise an
11453 error if an .md pattern has the wrong number of operands for the
11454 pattern name. Remove the names of unused operands from the prototype.
11455 * builtins.c (expand_builtin_apply): Use targetm functions
11456 instead of HAVE_call_value and GEN_CALL_VALUE.
11457 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
11458 and sibcall_value_pop.
11459 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11460 of GEN_CALL.
11461 * config/alpha/alpha.md (untyped_call): Likewise.
11462 * config/iq2000/iq2000.md (untyped_call): Likewise.
11463 * config/m68k/m68k.md (untyped_call): Likewise.
11464 * config/mips/mips.md (untyped_call): Likewise.
11465 * config/pa/pa.md (untyped_call): Likewise.
11466 * config/rs6000/rs6000.md (untyped_call): Likewise.
11467 * config/sparc/sparc.md (untyped_call): Likewise.
11468 * config/tilegx/tilegx.md (untyped_call): Likewise.
11469 * config/tilepro/tilepro.md (untyped_call): Likewise.
11470 * config/visium/visium.md (untyped_call): Likewise.
11471 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11472 gen_call_value instead of GEN_CALL_VALUE.
11473 * config/arm/arm.md (untyped_call): Likewise.
11474 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11475 GEN_CALL.
11476
11477 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11478
11479 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
11480 (have_cbranchcc4): New variable.
11481 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
11482 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
11483 (if_convert): Initialize have_cbranchcc4.
11484
11485 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11486
11487 * builtins.c (expand_cmpstrn): Rename to...
11488 (expand_cmpstrn_or_cmpmem): ...this.
11489 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
11490 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
11491 Remove mode argument.
11492 (expand_builtin): Update accordingly.
11493
11494 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11495
11496 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
11497 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
11498 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
11499 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
11500 Add predicates for operands 0 and 3.
11501 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
11502 operand.
11503 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
11504 immediate_operand to nonmemory_operand.
11505
11506 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11507
11508 * df-scan.c (df_insn_info_init_fields): New function, split out
11509 from...
11510 (df_insn_create_insn_record): ...here.
11511 (df_insn_info_free_fields): New function, split out from...
11512 (df_insn_info_delete): ...here.
11513 (df_insn_rescan): Use the new functions instead of freeing and
11514 reallocating the df_insn_info.
11515
11516 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11517
11518 * doc/install.texi (Binaries): Remove links no longer valid.
11519
11520 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
11521
11522 * config/nvptx/mkoffload.c (process): Replace
11523 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
11524
11525 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
11526
11527 PR target/67329
11528 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
11529
11530 2015-08-24 Renlin Li <renlin.li@arm.com>
11531
11532 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
11533 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
11534 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
11535 * config/arm/constraints.md ("j"): Add check for high code.
11536
11537 2015-08-24 Tom de Vries <tom@codesourcery.com>
11538
11539 PR tree-optimization/65468
11540 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
11541 chunk_size is one.
11542
11543 2015-08-24 Nathan Sidwell <nathan@acm.org>
11544
11545 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
11546 change to nvptx_type_from_mode call. Use arg_promotion for both
11547 split and non-split args.
11548
11549 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11550
11551 * target-insns.def (movstr): New pattern.
11552 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
11553 (expand_movstr): Use targetm rather than HAVE_movstr/
11554 CODE_FOR_movstr.
11555
11556 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11557
11558 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11559 cast syntax.
11560
11561 2015-08-24 Andrew Pinski <apinski@cavium.com>
11562
11563 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
11564 AARCH64_EXTRA_TUNING_OPTION.
11565 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
11566 New enum.
11567 (aarch64_extra_tuning_flags): Base the shifted value on the index
11568 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
11569 * config/aarch64/aarch64.c: Remove the last argument to
11570 AARCH64_EXTRA_TUNING_OPTION.
11571
11572 2015-08-23 Nathan Sidwell <nathan@acm.org>
11573
11574 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11575 decls.
11576 (nvptx_declare_function_name): Insert formatting tabs for
11577 consistency.
11578
11579 2015-08-23 Tom de Vries <tom@codesourcery.com>
11580
11581 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11582 parm_decl, rather than generating a dummy default def in cfun.
11583 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
11584 ssa_name from cfun and child_fn do not share a stmt as def stmt.
11585 (move_stmt_op): Handle PARM_DECl.
11586 (gather_ssa_name_hash_map_from): New function.
11587 (move_sese_region_to_fn): Add default defs for function params, and add
11588 them to vars_map. Release copied ssa names.
11589 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11590
11591 2015-08-23 Tom de Vries <tom@codesourcery.com>
11592
11593 * doc/sourcebuild.texi: Rename vect_no_int_max with
11594 vect_no_int_min_max. Update description.
11595
11596 2015-08-22 Andrew Pinski <apinski@cavium.com>
11597
11598 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11599 * config/aarch64/aarch64-protos.h
11600 (aarch64_fusion_pairs_index): New enum.
11601 (aarch64_fusion_pairs): Base the shifted value on the index instead
11602 Rewrite AARCH64_FUSE_ALL to be based on the end index.
11603 of the argument to AARCH64_FUSION_PAIR.
11604 * config/aarch64/aarch64.c: Remove the last argument to
11605 AARCH64_FUSION_PAIR.
11606
11607 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
11608
11609 * dominance.c (new_zero_array): Define.
11610 (dom_info): Redefine as class with proper encapsulation.
11611 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11612 Add new members.
11613 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
11614 allocations/deallocations. Pass function as parameter (instead of
11615 using cfun).
11616 (dom_info::get_idom): Define accessor method.
11617 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11618 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
11619 (calculate_dominance_info): Adjust to use dom_info class.
11620 (verify_dominators): Likewise.
11621
11622 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
11623
11624 * print-rtl.c (print_rtx): Check the correct range for
11625 flag_dump_unnumbered_links to behave as documented.
11626
11627 PR rtl-optimization/67227
11628 PR rtl-optimization/64164
11629 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11630 (nonoverlapping_memrefs_p): Test offsets and sizes when given
11631 identical gimple_reg exprs.
11632
11633 2015-08-21 Nathan Sidwell <nathan@acm.org>
11634
11635 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11636 expansion.
11637 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11638 crtl->stack_alignment_needed to determine alignment.
11639 (nvptx_get_drap_rtx): New.
11640 (TARGET_GET_DRAP_RTX): Override.
11641 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11642
11643 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11644
11645 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11646
11647 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11648
11649 * configure.ac: Remove uwin* cases.
11650 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11651 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11652 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11653 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11654 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11655 i[34567]86-*-uwin*, powerpc-*-beos*.
11656
11657 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
11658
11659 * gencodes.c (gencodes): Print the comma for the preceding
11660 enum value rather than the current one. Use aliased enum values
11661 rather than #defines for compiled-out patterns.
11662 (main): Update accordingly. Replace LAST_INSN_CODE with
11663 NUM_INSN_CODES.
11664 * lra.c (insn_code_data): Update accordingly.
11665 (finish_insn_code_data_once, get_static_insn_data): Likewise.
11666 * recog.h (target_recog): Likewise.
11667 (preprocess_insn_constraints): Change parameter to unsigned int.
11668 * recog.c (preprocess_insn_constraints): Likewise.
11669 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11670 * tree-vect-stmts.c (vectorizable_operation): Simplify.
11671
11672 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11673
11674 PR rtl-optimization/61657
11675 * loop-iv.c (iv_number_of_iterations): Declare up and down as
11676 unsigned. Remove superflous uint64_t cast.
11677
11678 2014-08-21 Felix Yang <felix.yang@huawei.com>
11679 Jiji Jiang <jiangjiji@huawei.com>
11680
11681 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11682 argument and get builtin function code directly from CALL.
11683 (gimple_stringop_fixed_value): Modified accordingly.
11684 (gimple_stringops_transform, gimple_stringops_values_to_profile):
11685 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11686
11687 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
11688
11689 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11690
11691 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11692
11693 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11694 to match.pd.
11695 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11696 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11697 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11698 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11699 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11700 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11701 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11702 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11703 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11704 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11705
11706 * match.pd (SIN ) : New Operator.
11707 (TAN) : New Operator.
11708 (mult (SQRT@1 @0) @1) : New simplifier.
11709 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11710 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11711 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11712 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11713 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11714 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11715 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11716 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11717 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11718 (rdiv @0 (POW:s @1 @2)) : New simplifier.
11719
11720 2015-08-21 Bin Cheng <bin.cheng@arm.com>
11721
11722 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11723 loop if EXPR is simplified to const value.
11724
11725 2015-08-21 Yury Gribov <y.gribov@samsung.com>
11726
11727 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11728 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11729
11730 2015-08-21 Richard Biener <rguenther@suse.de>
11731
11732 PR middle-end/67285
11733 * gimple-fold.c (replace_stmt_with_simplification): Assert
11734 seq is empty when replacing a call with itself but different
11735 arguments.
11736 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11737 a call require that it is const.
11738
11739 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11740
11741 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11742 * builtins.c (get_object_alignment_2): Adjust.
11743 * varasm.c (align_variable): Likewise.
11744 (get_variable_align): Likewise.
11745 (build_constant_desc): Likewise.
11746 (force_const_mem): Likewise.
11747 * doc/tm.texi.in: Likewise.
11748 * doc/tm.texi: Regenerate.
11749
11750 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11751
11752 * genconfig.c (main): Always define HAVE_cc0.
11753 * recog.c (rest_of_handle_peephole2): Adjust.
11754
11755 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11756
11757 * reorg.c (relax_delay_slots): Don't use #if to check value of
11758 HAVE_cc0.
11759
11760 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11761
11762 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11763 * targhooks.c (default_have_conditional_execution): Adjust.
11764
11765 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11766
11767 * rtl.h (rtvec_all_equal_p): Declare.
11768 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11769 * rtl.c (rtvec_all_equal_p): New function.
11770 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11771 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11772 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11773 * config/arm/arm.c (neon_vdup_constant): Likewise.
11774 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
11775 * config/tilegx/constraints.md (W, Y): Likewise.
11776 * config/tilepro/constraints.md (W, Y): Likewise.
11777 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
11778 (classify_immediate): Use unwrap_const_vec_duplicate.
11779 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
11780 (reg_or_v2s8bit_operand): Likewise.
11781 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
11782 (reg_or_v4s8bit_operand): Likewise.
11783
11784 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11785
11786 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
11787 (vec_shasigma_be): New #define.
11788 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
11789 (VPMSUMH): Likewise.
11790 (VPMSUMW): Likewise.
11791 (VPMSUMD): Likewise.
11792 (VPMSUM): New BU_P8V_OVERLOAD_2.
11793 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
11794 entries for VEC_MADD and VEC_VPMSUM.
11795
11796 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
11797
11798 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
11799 Multiply argument avr_n_flash by 64 to match unit of "KiB".
11800 (avr_pgm_check_var_decl): Same.
11801
11802 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
11803
11804 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
11805 initialization of HFmode scalar type (float16_t) to...
11806 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
11807 code.
11808
11809 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
11810
11811 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
11812 having an -mfp16-format.
11813
11814 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11815
11816 * config/i386/predicates.md (vector_all_ones_operand): Use
11817 CONSTM1_RTX to simplify definition.
11818
11819 2015-08-20 Richard Biener <rguenther@suse.de>
11820
11821 * toplev.c (compile_file): Remove loop calling late_global_decl
11822 on all symbols.
11823 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
11824 on decls we assembled.
11825
11826 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
11827
11828 * common/config/aarch64/aarch64-common.c
11829 (AARCH64_CPU_NAME_LENGTH): Delete.
11830 (aarch64_option_extension): New.
11831 (all_extensions): Likewise.
11832 (processor_name_to_arch): Likewise.
11833 (arch_to_arch_name): Likewise.
11834 (all_cores): New.
11835 (all_architectures): Likewise.
11836 (aarch64_get_extension_string_for_isa_flags): Likewise.
11837 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
11838 architecture names.
11839 * config/aarch64/aarch64-protos.h
11840 (aarch64_get_extension_string_for_isa_flags): New.
11841 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
11842 (aarch64_option_print): Get the string to print from
11843 aarch64_get_extension_string_for_isa_flags.
11844 (aarch64_declare_function_name): Likewise.
11845 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
11846 (MCPU_TO_MARCH_SPEC): This.
11847 (ASM_CPU_SPEC): Use it.
11848 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
11849 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
11850 (EXTRA_SPEC_FUNCTIONS): Use it.
11851
11852 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
11853
11854 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
11855 expansion when !ISA_HAS_LWL_LWR.
11856 (mips_block_move_straight): Update the size of elements copied to
11857 account for alignment when !ISA_HAS_LWL_LWR.
11858 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
11859
11860 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11861
11862 * expr.c (expand_expr_real_2): Check gimple statement during
11863 LSHIFT_EXPR expand.
11864
11865 2015-08-19 Magnus Granberg <zorry@gentoo.org>
11866
11867 * common.opt (fstack-protector): Initialize to -1.
11868 (fstack-protector-all): Likewise.
11869 (fstack-protector-strong): Likewise.
11870 (fstack-protector-explicit): Likewise.
11871 * configure.ac: Add --enable-default-ssp.
11872 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
11873 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
11874 -1.
11875 * doc/install.texi: Document --enable-default-ssp.
11876 * config.in: Regenerated.
11877 * configure: Likewise.
11878
11879 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
11880
11881 PR rtl-optimization/64164
11882 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11883 (parm_in_stack_slot_p): ... this. Disregard mode, what
11884 matters is whether the parm will live in a pseudo or a stack
11885 slot.
11886 (expand_one_ssa_partition): Deal with params without a default
11887 def. Disregard mode.
11888 * cfgexpand.h: Renamed function declaration.
11889 * tree-ssa-coalesce.c: Adjust.
11890 * function.c (split_complex_args): Allocate stack slot for
11891 unassigned parms before splitting.
11892 (parm_in_unassigned_mem_p): New. Use it instead of
11893 parm_maybe_byref_p throughout this file.
11894 (assign_parm_setup_block): Use it. Accept pseudos in the
11895 expand-assigned rtl.
11896 (assign_parm_setup_reg): Drop BLKmode requirement.
11897 (assign_parm_setup_stack): Allocate and fill in the address of
11898 unassigned MEM parms.
11899
11900 2015-08-19 David Sherwood <david.sherwood@arm.com>
11901
11902 * genmodes.c (emit_mode_unit_size_inline): New function.
11903 (emit_mode_unit_precision_inline): New function.
11904 (emit_insn_modes_h): Emit new #define. Emit new functions.
11905 (emit_mode_unit_size): New function.
11906 (emit_mode_unit_precision): New function.
11907 (emit_mode_adjustments): Add mode_unit_size adjustments.
11908 (emit_insn_modes_c): Emit new arrays.
11909 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11910 use new inline methods.
11911
11912 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11913
11914 * config/aarch64/aarch64.c (bit_count): Delete prototype
11915 and definition.
11916 (aarch64_print_operand): Use popcount_hwi instead of the above.
11917
11918 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11919
11920 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11921 comment.
11922
11923 2015-08-19 Marek Polacek <polacek@redhat.com>
11924
11925 PR middle-end/67133
11926 * gimple-ssa-isolate-paths.c
11927 (insert_trap_and_remove_trailing_statements): Rename to ...
11928 (insert_trap): ... this. Don't remove trailing statements; split
11929 block instead.
11930 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11931
11932 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
11933
11934 PR other/67042
11935 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11936 conditionalize the whole on __GNUC__. Add fallback code
11937 depending neither on undefined nor implementation-defined behaviour.
11938
11939 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11940
11941 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11942 whitespaces with tab.
11943
11944 2015-08-19 Florian Weimer <fweimer@redhat.com>
11945
11946 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11947 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11948 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11949 Move Name_Ids instantiation to the Prj.Proc package, to avoid
11950 trampolines.
11951
11952 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11953
11954 * config/arm/arm.c (bounds_check): Use %wd print format
11955 for HOST_WIDE_INT arguments.
11956
11957 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
11958
11959 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11960 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11961 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11962 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11963 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11964 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11965 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11966 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11967 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11968 typedefs.
11969
11970 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
11971
11972 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11973 function.c, graphite-scop-detection.c, haifa-sched.c,
11974 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11975 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11976 varasm.c: Remove typedefs of structs.
11977
11978 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11979
11980 * config/rs6000/altivec.h (vec_adde): New define.
11981 (vec_addec): Likewise.
11982 (vec_double): Likewise.
11983 (vec_bperm): Likewise.
11984 (vec_gb): Likewise.
11985 * config/rs6000/rs6000-builtin.def (ADDE): New
11986 BU_ALTIVEC_OVERLOAD_3.
11987 (ADDEC): Likewise.
11988 (DOUBLE): New BU_VSX_OVERLOAD_1.
11989 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
11990 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
11991 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
11992 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
11993 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
11994 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
11995 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
11996 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
11997 and P8V_BUILTIN_VEC_VBPERMQ.
11998
11999 2015-08-18 Jason Merrill <jason@redhat.com>
12000
12001 * print-tree.c (print_node): Handle TREE_BINFO.
12002
12003 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12004
12005 PR middle-end/36757
12006 * builtins.c (expand_builtin_signbit): Add asserts to make sure
12007 we can expand BUILT_IN_SIGNBIT inline.
12008 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
12009 * doc/extend.texi: Document the type-generic __builtin_signbit.
12010
12011 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
12012
12013 PR rtl-optimization/67218
12014 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
12015 (simplify_unary_operation_1): Use it.
12016
12017 2015-08-18 Marek Polacek <polacek@redhat.com>
12018
12019 PR middle-end/67222
12020 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
12021 if the call isn't valid.
12022 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
12023 gimple_call_builtin_p.
12024 (call_may_clobber_ref_p_1): Likewise.
12025 (stmt_kills_ref_p): Likewise.
12026
12027 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
12028
12029 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
12030 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
12031 (mips_hard_regno_scratch_ok): Likewise.
12032 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
12033 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
12034
12035 2015-08-18 Bin Cheng <bin.cheng@arm.com>
12036
12037 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12038 (determine_value_range): Call refine_value_range_using_guard for
12039 each loop initial condition to improve value range.
12040
12041 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
12042
12043 * config/i386/i386.c: Remove include of fibheap.h.
12044
12045 2015-08-17 Richard Biener <rguenther@suse.de>
12046
12047 PR tree-optimization/67221
12048 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
12049 (sccvn_dom_walker::before_dom_children): Mark backedges of
12050 non-executable blocks as not executable.
12051
12052 2015-08-17 David Sherwood <david.sherwood@arm.com>
12053
12054 * config/arm/arm.c (neon_element_bits): Replace call to
12055 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
12056 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
12057 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
12058 (neon_vdup_lane<mode>): Likewise.
12059 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
12060 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
12061 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
12062 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
12063 * config/spu/spu.c (arith_immediate_p): Likewise.
12064 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
12065 * expr.c (expand_expr_real_2): Likewise.
12066 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
12067 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12068 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12069 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
12070 New variable.
12071 * fold-const.c (fold_binary_loc): Replace call to
12072 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
12073 GET_MODE_UNIT_PRECISION (m).
12074
12075 2015-08-17 Mike Stump <mikestump@comcast.net>
12076
12077 * config/arm/arm.c (arm_block_move_unaligned_straight):
12078 Emit normal move instead of unaligned load when source or destination
12079 are appropriately aligned.
12080
12081 2015-08-17 Richard Biener <rguenther@suse.de>
12082 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12083
12084 PR middle-end/16107
12085 * match.pd (div (coss (op @0) : New simplifier.
12086
12087 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
12088
12089 PR rtl-optimization/64164
12090 PR bootstrap/66978
12091 PR middle-end/66983
12092 PR rtl-optimization/67000
12093 PR middle-end/67034
12094 PR middle-end/67035
12095 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12096 * tree-ssa-copyrename.c: Removed.
12097 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12098 -ftree-coalesce-vars.
12099 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12100 * common.opt (ftree-copyrename): Ignore.
12101 (ftree-coalesce-inlined-vars): Likewise.
12102 * doc/invoke.texi: Remove the ignored options above.
12103 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12104 * tree-ssa-coalesce.h: ... here.
12105 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12106 headers required by it.
12107 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12108 across variables when flag_tree_coalesce_vars. Check register
12109 use and promoted modes to allow coalescing. Do not coalesce
12110 maybe-byref parms with SSA_NAMEs of other variables, or
12111 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
12112 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12113 with its member functions to tree-ssa-coalesce.c.
12114 (var_map_base_init): Likewise. Renamed to
12115 compute_samebase_partition_bases.
12116 (partition_view_normal): Drop want_bases parameter.
12117 (partition_view_bitmap): Likewise.
12118 * tree-ssa-live.h: Adjust declarations.
12119 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
12120 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12121 default defs at the entry point.
12122 (dump_part_var_map): New.
12123 (compute_optimized_partition_bases): New, called by...
12124 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12125 of compute_samebase_partition_bases. Adjust.
12126 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12127 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
12128 (ssa_default_def_partition): New.
12129 (get_rtl_for_parm_ssa_default_def): New.
12130 (align_local_variable, add_stack_var): Support anonymous SSA
12131 names.
12132 (defer_stack_allocation): Likewise. Declare earlier.
12133 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12134 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12135 Do no record deferred-allocation marker in
12136 SA.partition_to_pseudo.
12137 (expand_stack_vars): Adjust check for the marker in it.
12138 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12139 redundant MEM attr setting.
12140 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12141 from...
12142 (expand_one_stack_var): ... this. New wrapper to check and
12143 skip already expanded SSA partitions.
12144 (record_alignment_for_reg_var): New, factored out of...
12145 (expand_one_var): ... this.
12146 (expand_one_ssa_partition): New.
12147 (adjust_one_expanded_partition_var): New.
12148 (expand_one_register_var): Check and skip already expanded SSA
12149 partitions.
12150 (expand_used_vars): Don't create DECLs for anonymous SSA
12151 names. Expand all SSA partitions, then adjust all SSA names.
12152 (pass::execute): Replace the loops that set
12153 SA.partition_to_pseudo from partition leaders and cleared
12154 DECL_RTL for multi-location variables, and that which used to
12155 rename vars and set attrs, with one that clears DECL_RTL and
12156 checks that PARMs and RESULTs default_defs match DECL_RTL.
12157 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
12158 * emit-rtl.c: Include stor-layout.h.
12159 (set_reg_attrs_for_parm): Handle NULL decl.
12160 (set_reg_attrs_for_decl_rtl): Take mode from expression if
12161 it's not a DECL.
12162 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12163 rather than its possibly-NULL DECL.
12164 * explow.c (promote_ssa_mode): New.
12165 * explow.h (promote_ssa_mode): Declare.
12166 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12167 (read_complex_part): Export.
12168 * expr.h (read_complex_part): Declare.
12169 * cfgexpand.h (parm_maybe_byref_p): Declare.
12170 * function.c: Include cfgexpand.h.
12171 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12172 (use_register_for_parm_decl): Wrapper for the above to
12173 special-case the result_ptr.
12174 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12175 (split_complex_args): Take assign_parm_data_all argument.
12176 Pass it to rtl_for_parm. Set up rtl and context for split
12177 args. Reset complex parm before fetching its default decl
12178 rtl.
12179 (assign_parms_unsplit_complex): Use the default-def complex
12180 parm rtl if it matches the components.
12181 (assign_parms_augmented_arg_list): Adjust.
12182 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12183 multiple locations. Recognize split complex args.
12184 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12185 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12186 (assign_parm_setup_block): Prefer SSA-assigned location, and
12187 fill in its address if the memory location of a maybe-byref
12188 parm was not assigned by cfgexpand.
12189 (assign_parm_setup_reg): Likewise. Adjust its mode as
12190 needed. Use entry_parm for equiv if stack_parm is NULL. Make
12191 sure passed_pointer parms don't need conversion. Copy address
12192 or value as needed.
12193 (assign_parm_setup_stack): Prefer SSA-assigned location.
12194 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12195 rtl before testing for pointer bounds. Special-case result_ptr.
12196 (expand_function_start): Maybe reset DECL_RTL of result.
12197 Prefer SSA-assigned location for result and static chain.
12198 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
12199 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
12200 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12201 anonymous SSA names. Use promote_ssa_mode.
12202 (get_temp_reg): Likewise.
12203 (remove_ssa_form): Adjust.
12204 * stor-layout.c (layout_decl): Don't set mem attributes of
12205 non-MEMs.
12206 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12207 and get its reg_usage for reg invalidation.
12208 (compute_bb_dataflow): Pass it insn.
12209 (emit_notes_in_bb): Likewise.
12210
12211 2015-08-14 Marek Polacek <polacek@redhat.com>
12212
12213 * tree-core.h (tree_base): Fix typo.
12214
12215 2015-08-14 Marek Polacek <polacek@redhat.com>
12216
12217 PR middle-end/67133
12218 * gimple.c (infer_nonnull_range_by_attribute): Check that the
12219 nonnull argument position is not outside function arguments.
12220
12221 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
12222
12223 PR target/67143
12224 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12225 'lconst_atomic' with 'const_atomic'.
12226 (atomic_fetch_<optab><mode>): Likewise.
12227 (atomic_<optab>_fetch<mode>): Likewise.
12228 * config/aarch64/iterators.md (lconst-atomic): Move below
12229 'const_atomic'.
12230 (const_atomic): New.
12231
12232 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
12233 Bernd Schmidt <bernds@codesourcery.com>
12234
12235 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12236 debug options.
12237 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12238 (DWARF2_DEBUGGING_INFO): Don't define.
12239 * debug.h (dwarf2_lineno_debug_hooks): Declare.
12240 * toplev.c (process_options): Add a case for it.
12241 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12242 (dwarf2out_init): Skip most initializations if
12243 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12244 case.
12245 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12246 DWARF2_LINENO_DEBUGGING_INFO.
12247 * opts.c (set_debug_level): Likewise.
12248
12249 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
12250
12251 * config/arm/types.md (is_neon_type): Add missing types.
12252
12253 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12254
12255 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12256 for skylake.
12257 * config/i386/i386.c (PTA_SKYLAKE): New macros.
12258 (processor_alias_table): Add skylake description.
12259 (enum processor_model): Add skylake processor.
12260 (arch_names_table): Add skylake record.
12261 * doc/invoke.texi: Add skylake item.
12262
12263 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
12264
12265 * ira-int.h: Include recog.h.
12266 * ira-build.c: Don't include recog.h.
12267 * ira-color.c: Likewise.
12268 * ira-conflicts.c: Likewise.
12269 * ira-costs.c: Likewise.
12270 * ira-emit.c: Likewise.
12271 * ira-lives.c: Likewise.
12272 * ira.c: Likewise.
12273 * sched-deps.c: Likewise.
12274 * sel-sched.c: Likewise.
12275 * target-globals.c: Likewise.
12276
12277 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
12278
12279 PR bootstrap/55035
12280 * reload1.c (elimination_costs_in_insn): Make it obvious to the
12281 compiler that the n_dups and n_operands loop bounds are invariant.
12282
12283 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12284
12285 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12286 expressions in A and B.
12287
12288 2015-08-13 Richard Biener <rguenther@suse.de>
12289
12290 * tree.c (nonnull_arg_p): Move from ...
12291 * tree-vrp.c (nonnull_arg_p): ... here.
12292 * tree.h (nonnull_arg_p): Declare.
12293 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12294 here, register ptr != 0 for nonnull_arg_p pointer arguments.
12295 Properly initialize static chain and by-reference result pointer.
12296 (run_scc_vn): Adjust.
12297
12298 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12299
12300 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12301 TUNE_I6400.
12302
12303 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12304
12305 * config/aarch64/aarch64-protos.h
12306 (aarch64_gen_atomic_cas): Declare.
12307 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12308 Choose appropriate instruction pattern for the target.
12309 (aarch64_gen_atomic_cas): New.
12310 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12311 (atomic_compare_and_swap<mode>_1): Rename to
12312 aarch64_compare_and_swap<mode>. Fix some indentation.
12313 (aarch64_compare_and_swap<mode>_lse): New.
12314 (aarch64_atomic_cas<mode>): New.
12315
12316 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12317
12318 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12319 (TARGET_LSE): New.
12320
12321 2015-08-13 Richard Biener <rguenther@suse.de>
12322
12323 PR tree-optimization/67191
12324 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12325 assert we value-numbered last stmts operand because it can validly
12326 trigger for unreachable code.
12327
12328 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12329
12330 PR rtl-optimization/67103
12331 * ifcvt.c (noce_try_store_flag_constants): Move
12332 x = (-(test != 0) & (b - a)) + a transformation to...
12333 (noce_try_cmove): ... Here. Try it if normal conditional
12334 move fails.
12335
12336 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12337
12338 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12339 pseudo-processors.
12340 * config/mips/mips.md (processor): Remove w32 and w64.
12341
12342 2015-08-13 Richard Biener <rguenther@suse.de>
12343
12344 PR tree-optimization/66502
12345 PR tree-optimization/67167
12346 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12347 backedge arguments.
12348 (vn_phi_lookup): Adjust.
12349 (vn_phi_insert): Likewise.
12350 (visit_phi): Prefer to value-number to another PHI node
12351 over value-numbering to a PHI argument.
12352 (init_scc_vn): Mark DFS back edges.
12353
12354 2015-08-13 Richard Biener <rguenther@suse.de>
12355
12356 * gimple.h (gcall::code_): New constant static member.
12357 (gcond::code_): Likewise.
12358 * gimple.c (gcall::code_): Define.
12359 (gcond::code_): Likewise.
12360 (is_a_helper <const gcond *>): Add.
12361 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12362 and forward to a new gcall overload with less checking and a
12363 cheaper way to access the operand.
12364 (gimple_call_lhs_ptr): Likewise.
12365 (gimple_call_set_lhs): Likewise.
12366 (gimple_call_internal_p): Likewise.
12367 (gimple_call_with_bounds_p): Likewise.
12368 (gimple_call_set_with_bounds): Likewise.
12369 (gimple_call_internal_fn): Likewise.
12370 (gimple_call_set_ctrl_altering): Likewise.
12371 (gimple_call_ctrl_altering_p): Likewise.
12372 (gimple_call_fntype): Likewise.
12373 (gimple_call_fn): Likewise.
12374 (gimple_call_fn_ptr): Likewise.
12375 (gimple_call_set_fndecl): Likewise.
12376 (gimple_call_fndecl): Likewise.
12377 (gimple_call_chain): Likewise.
12378 (gimple_call_num_args): Likewise.
12379 (gimple_call_arg): Likewise.
12380 (gimple_call_arg_ptr): Likewise.
12381 (gimple_call_set_arg): Likewise.
12382 (gimple_call_noreturn_p): Likewise.
12383 (gimple_cond_code): Likewise.
12384 (gimple_cond_lhs): Likewise.
12385 (gimple_cond_rhs): Likewise.
12386 (gimple_has_lhs): Reduce checking.
12387
12388 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12389
12390 PR middle-end/25529
12391 * match.pd (div (mult @0 @1) @1) : New simplifier.
12392
12393 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12394
12395 PR target/67071
12396 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12397 predicate to allow construction of vector constants using the
12398 VSLDOI vector shift instruction.
12399
12400 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12401 declaration.
12402
12403 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12404 the number of bytes to be shifted left and filled in with either
12405 all zero or all one bits.
12406 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12407 methods exist.
12408 (output_vec_const_move): On power8, generate XXLORC to generate
12409 a vector constant with all 1's. Do a split if we need to use a
12410 VSLDOI instruction.
12411
12412 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12413 properly test for the MSB.
12414
12415 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12416 vector constants that can be created with VSLDOI.
12417
12418 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12419
12420 revert:
12421 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12422 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12423 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12424 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12425 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12426 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12427 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12428 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12429 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12430
12431 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
12432
12433 * config/xtensa/constraints.md (define_constraint "Y"): New
12434 constraint.
12435 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12436 * config/xtensa/linux.h (ASM_SPEC): Likewise.
12437 * config/xtensa/predicates.md (move_operand): Match constants
12438 and symbols in the presence of TARGET_AUTO_LITPOOLS.
12439 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12440 immediate references to TLS data.
12441 (xtensa_emit_move_sequence): Don't force constants to memory in
12442 the presence of TARGET_AUTO_LITPOOLS.
12443 (print_operand): Add 'y' format, same as default, but capable of
12444 printing SF mode constants as well.
12445 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12446 (movsf_internal): Add movi pattern that loads literal.
12447 (movsf, movdf): Don't force constants to memory in the presence
12448 of TARGET_AUTO_LITPOOLS.
12449 (movdf_internal): Add 'Y' constraint.
12450 * config/xtensa/xtensa.opt (mauto-litpools): New option.
12451 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12452
12453 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12454
12455 * config/arm/arm-fpus.def: Replace booleans with feature flags.
12456 Update comment.
12457 * config/arm/arm.c (ARM_FPU): Update macro.
12458 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12459 (TARGET_FP16): Likewise.
12460 (TARGET_CRYPTO): Likewise.
12461 (TARGET_NEON): Likewise.
12462 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
12463 field features.
12464
12465 2015-08-12 Tom de Vries <tom@codesourcery.com>
12466
12467 PR other/67092
12468 PR other/67098
12469 * doc/install.texi: Remove --with_host_libstdcxx item. Update
12470 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12471 accordingly. Mention default for --with-stage1-ldflags.
12472
12473 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12474
12475 * config/arm/arm.h (arm_fpu_feature_set): New.
12476 (ARM_FPU_FSET_HAS): New.
12477 (FPU_FL_NONE): New.
12478 (FPU_FL_NEON): New.
12479 (FPU_FL_FP16): New.
12480 (FPU_FL_CRYPTO): New.
12481
12482 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12483
12484 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
12485 after -mcmodel=large -fPIC sorry.
12486
12487 2015-08-12 Richard Biener <rguenther@suse.de>
12488
12489 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
12490 comparison operand order and commutative ternary op operand order.
12491 (sccvn_dom_walker::cond_stack): New state to track temporary
12492 expressions.
12493 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
12494 no longer valid.
12495 (sccvn_dom_walker::record_cond): Add a single temporary conditional
12496 expression.
12497 (sccvn_dom_walker::record_conds): Add a temporary conditional
12498 expressions and all related expressions also true/false.
12499 (sccvn_dom_walker::before_dom_children): Record temporary
12500 expressions based on the controlling condition of a single
12501 predecessor. When trying to simplify a conditional statement
12502 lookup expressions we might have inserted earlier.
12503
12504 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
12505
12506 PR target/67127
12507 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
12508 to ARM core registers.
12509
12510 2015-08-12 Nathan Sidwell <nathan@acm.org>
12511
12512 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
12513 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
12514
12515 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
12516
12517 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
12518 line with comments.
12519 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
12520
12521 2015-08-12 Richard Biener <rguenther@suse.de>
12522
12523 * gimple.h (remove_pointer): New trait.
12524 (GIMPLE_CHECK2): New inline template function.
12525 (gassign::code_): New constant static member.
12526 (is_a_helper<const gassign *>): Add.
12527 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
12528 and forward to a new gassign overload with less checking and a
12529 cheaper way to access the operand.
12530 (gimple_assign_lhs_ptr): Likewise.
12531 (gimple_assign_set_lhs): Likewise.
12532 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
12533 Likewise.
12534 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
12535 Likewise.
12536 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
12537 Likewise.
12538 (gimple_assign_rhs_code): Likewise.
12539 * gimple.c (gassign::code_): Define.
12540
12541 2015-08-12 Richard Biener <rguenther@suse.de>
12542
12543 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12544 Eliminate edges marked as not executable by SCCVN.
12545 * tree-ssa-sccvn.c: Include gimple-iterator.h.
12546 (cond_dom_walker): Rename to sccvn_dom_walker.
12547 (sccvn_dom_walker::before_dom_children): Value-number defs
12548 of all stmts.
12549 (run_scc_vn): Remove loop value-numbering all SSA names.
12550 Drop not visited SSA names to varying.
12551
12552 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12553
12554 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12555 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12556 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12557 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12558 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12559 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12560 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12561 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12562 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12563
12564 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
12565
12566 PR target/66954
12567 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
12568 to enum feature_priority and feature_list.
12569 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
12570 and isa_names_table.
12571
12572 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
12573
12574 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12575 vect_induction_def.
12576
12577 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12578
12579 PR c/66098
12580 PR c/66711
12581 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12582 account when deciding what was the command-line status.
12583
12584 2015-08-11 Nathan Sidwell <nathan@acm.org>
12585
12586 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12587
12588 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12589 we're not the only contributor to target phi.
12590
12591 2015-08-11 Jiong Wang <jiong.wang@arm.com>
12592
12593 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12594 FIXED_REG0.
12595
12596 2015-08-11 Tom de Vries <tom@codesourcery.com>
12597
12598 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12599
12600 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
12601
12602 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12603 with CPU_SLM.
12604 * config/i386/i386.md (cpu): Remove knl.
12605
12606 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12607
12608 PR libgomp/65742
12609 PR middle-end/66332
12610 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12611 open-coded sequence.
12612 * omp-low.c (oacc_process_reduction_data): Remove handline of
12613 GOMP_DEVICE_HOST_NONSHM.
12614
12615 * lto-streamer-in.c (lto_input_mode_table): Adjust to
12616 GET_MODE_INNER changes.
12617
12618 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12619 Ilya Verbin <ilya.verbin@intel.com>
12620
12621 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12622
12623 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12624
12625 * doc/options.texi (EnabledBy): Document that the argument must be
12626 a Common option.
12627 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12628 Not enabled by -Wall.
12629 * optc-gen.awk: Give nicer error messages. Detect if the argument
12630 of EnabledBy is not a Common option.
12631 * common.opt (Wnull-dereference): Not enabled by -Wall.
12632 * opt-functions.awk (lang_enabled_by): Nicer error messages.
12633
12634 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
12635
12636 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12637 model == 0x4f as Broadwell.
12638
12639 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
12640
12641 PR rtl-optimization/67028
12642 * combine.c (simplify_comparison): Fix comment. Rearrange code.
12643 Add test to see if a const_int fits in the new mode.
12644
12645 2015-08-07 DJ Delorie <dj@redhat.com>
12646
12647 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12648
12649 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
12650
12651 PR rtl-optimization/67029
12652 * ira-color.c: Include "recog.h" before including "ira-int.h".
12653 * target-globals.c: Likewise.
12654 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12655 adds an alternative_mask argument and use it instead of
12656 preferred_alternatives.
12657 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12658 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12659 * sched-deps.c: Include "ira-int.h" after including "ira.h".
12660 (sched_analyze_insn): Update call to
12661 ira_implicitly_set_insn_hard_regs.
12662 * sel-sched.c: Include "ira-int.h" after including "ira.h".
12663 (implicit_clobber_conflict_p): Update call to
12664 ira_implicitly_set_insn_hard_regs.
12665
12666 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12667
12668 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12669
12670 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
12671
12672 PR target/67002
12673 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12674 currently_expanding_to_rtl is set.
12675
12676 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
12677
12678 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12679 * configure: Regenerate.
12680
12681 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12682 Jiong Wang <jiong.wang@arm.com>
12683
12684 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12685 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12686 (REG_CLASS_NAMES): Likewise.
12687 (REG_CLASS_CONTENTS): Likewise.
12688 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12689 (aarch64_register_move_cost): Likewise.
12690 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12691 possible.
12692 * config/aarch64/constraints.md (Uc0): New constraint.
12693
12694 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12695
12696 * config/aarch64/constraints.md (Usf): Add the test of
12697 aarch64_is_noplt_call_p.
12698
12699 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12700
12701 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12702 declaration.
12703 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12704 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12705 (call_symbol): Likewise.
12706
12707 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12708
12709 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12710 for vectorizing multiplication patterns.
12711 * tree-vectorizer.h: Adjust the number of patterns.
12712
12713 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12714
12715 * config/i386/sse.md (*vec_concatv2df): Declare added
12716 alternatives as sselog type.
12717
12718 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12719
12720 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12721 all GPRs.
12722
12723 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12724
12725 * config/s390/s390.c (s390_expand_tbegin): Expand either
12726 tbegin_1_z13 or tbegin_1 depending on VX flag.
12727 * config/s390/s390.md ("tbegin_1_z13"): New expander.
12728
12729 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12730
12731 * config/s390/s390.opt: Clarify description for -mzvector
12732 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12733 -mzvector.
12734
12735 2015-08-06 Richard Biener <rguenther@suse.de>
12736
12737 * gimple.h (gimple_call_set_fn): Access op member directly.
12738 (gimple_call_chain_ptr): Likewise.
12739 (gimple_call_set_chain): Likewise.
12740 (gimple_cond_lhs_ptr): Likewise.
12741 (gimple_cond_set_lhs): Likewise.
12742 (gimple_cond_rhs_ptr): Likewise.
12743 (gimple_cond_set_rhs): Likewise.
12744 (gimple_cond_true_label): Likewise.
12745 (gimple_cond_set_true_label): Likewise.
12746 (gimple_cond_set_false_label): Likewise.
12747 (gimple_cond_false_label): Likewise.
12748 (gimple_label_label): Likewise.
12749 (gimple_label_set_label): Likewise.
12750 (gimple_goto_set_dest): Likewise.
12751 (gimple_asm_input_op): Likewise.
12752 (gimple_asm_input_op_ptr): Likewise.
12753 (gimple_asm_set_input_op): Likewise.
12754 (gimple_asm_output_op): Likewise.
12755 (gimple_asm_output_op_ptr): Likewise.
12756 (gimple_asm_set_output_op): Likewise.
12757 (gimple_asm_clobber_op): Likewise.
12758 (gimple_asm_set_clobber_op): Likewise.
12759 (gimple_asm_label_op): Likewise.
12760 (gimple_asm_set_label_op): Likewise.
12761 (gimple_switch_index): Likewise.
12762 (gimple_switch_index_ptr): Likewise.
12763 (gimple_return_retval_ptr): Likewise.
12764 (gimple_return_retval): Likewise.
12765 (gimple_return_set_retval): Likewise.
12766 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
12767 (gimple_switch_label): Likewise.
12768 (gimple_switch_set_label): Likewise.
12769
12770 2015-08-06 Richard Biener <rguenther@suse.de>
12771
12772 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12773 bool comparison canonicalization and restrict to integers.
12774
12775 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
12776
12777 * coretypes.h (enum symbol_visibility): Relocate here.
12778 * flag-types.h (enum symbol_visibility): Remove.
12779 * tree-core.h (enum symbol_visibility): Remove.
12780
12781 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
12782
12783 PR target/66870
12784 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
12785 for no_split_stack function attribute along with
12786 flag_split_stack.
12787 (rs6000_expand_split_stack_prologue): Likewise.
12788
12789 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
12790 Jeff Law <law@redhat.com>
12791
12792 PR c/16351
12793 * doc/invoke.texi (Wnull-dereference): New.
12794 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
12795 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
12796 Warn for potential NULL dereferences.
12797 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
12798 * ubsan.c (instrument_nonnull_arg): Call
12799 infer_nonnull_range_by_attribute.
12800 (instrument_nonnull_return): Likewise.
12801 * common.opt (Wnull-dereference); New.
12802 * gimple.c (infer_nonnull_range): Remove bool arguments.
12803 (infer_nonnull_range_by_dereference): New.
12804 (infer_nonnull_range_by_attribute): New.
12805 * gimple.h: Update declarations.
12806
12807 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12808
12809 * gensupport.c (sequence_num): Replace with...
12810 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
12811 ...these new variables.
12812 (init_rtx_reader_args_cb): Update accordingly.
12813 (get_num_code_insns): Likewise.
12814 (read_md_rtx): Rework to use a while loop and get_c_test.
12815 Use the new counters. Remove redundant DEFINE_SUBST case.
12816 * genoutput.c (gen_split): Delete.
12817 (main): Don't call it.
12818
12819 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12820
12821 * gensupport.h (get_c_test): Declare.
12822 * gensupport.c (get_c_test): New function.
12823 * genconditions.c (main): Use it.
12824 * genrecog.c (validate_pattern): Likewise.
12825 (match_pattern_1): Likewise. Remove c_test argument.
12826 (match_pattern): Update accordingly and remove c_test argument.
12827 (main): Update accordingly.
12828
12829 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12830
12831 * gensupport.h (get_num_insn_codes): Declare.
12832 * gensupport.c (get_num_insn_codes): New function.
12833 * genattrtab.c (optimize_attrs): Rename max_insn_code to
12834 num_insn_codes.
12835 (main): Likewise. Use get_num_insn_codes.
12836 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
12837
12838 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12839
12840 PR middle-end/66311
12841 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
12842 is zero- rather than sign-extended.
12843
12844 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12845
12846 * target-insns.def (can_extend): Delete.
12847
12848 2015-08-05 Richard Biener <rguenther@suse.de>
12849
12850 PR tree-optimization/67121
12851 * tree-if-conv.c (combine_blocks): Clear range-info produced
12852 by stmts no longer executed conditionally.
12853
12854 2015-08-05 Nick Clifton <nickc@redhat.com>
12855
12856 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
12857 to allow identical far pointers to remain.
12858
12859 2015-08-05 Richard Biener <rguenther@suse.de>
12860
12861 PR middle-end/67120
12862 * match.pd: Compare address bases with == if they are decls
12863 or SSA names, not operand_equal_p. Otherwise fail.
12864
12865 2015-08-05 Richard Biener <rguenther@suse.de>
12866
12867 PR tree-optimization/67055
12868 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
12869 NULL gimple_block.
12870
12871 * g++.dg/torture/pr67055.C: New testcase.
12872
12873 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12874
12875 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
12876 noavx512vl.
12877 (define_attr "enabled"): Handle avx521vl and noavx512vl.
12878 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12879 AVX-512 alternative out of SSE.
12880 (define_insn "*vec_concatv2df"): Ditto.
12881
12882 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12883
12884 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12885 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12886 CODE_FOR_avx_ptestv4di.
12887 * config/i386/sse.md (define_mode_iterator V_AVX): New.
12888 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12889 (define_insn "avx_ptest256"): Merge this ...
12890 (define_insn "sse4_1_ptest"): And this ...
12891 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12892
12893 2015-08-05 Richard Biener <rguenther@suse.de>
12894
12895 PR tree-optimization/67109
12896 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12897 against too big groups. Print whether this is a load or store
12898 group. Rename from ...
12899 (vect_analyze_group_access): ... this which is now a wrapper
12900 dissolving an invalid group.
12901 (vect_analyze_data_ref_accesses): Print whether this is a load
12902 or store group.
12903
12904 2015-08-05 Richard Biener <rguenther@suse.de>
12905
12906 PR middle-end/67107
12907 * match.pd: Guard const_binop result checking against NULL_TREE
12908 result.
12909
12910 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12911
12912 * cse.c (cse_insn): Restoring old behaviour for src_eqv
12913 when dest and value in the REG_EQUAL are same and dest
12914 is STRICT_LOW_PART.
12915
12916 2015-08-04 Anatoly Sokolov <aesok@post.ru>
12917
12918 * config/moxie/moxie.h (PRINT_OPERAND,
12919 PRINT_OPERAND_ADDRESS): Remove macros.
12920 * config/moxie/moxie-protos.h (moxie_print_operand,
12921 moxie_print_operand_address): Remove declaration.
12922 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12923 TARGET_PRINT_OPERAND_ADDRESS): Define.
12924 (moxie_print_operand, moxie_print_operand_address): Make static.
12925
12926 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12927
12928 PR target/66731
12929 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12930 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12931
12932 2015-08-04 Richard Biener <rguenther@suse.de>
12933
12934 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12935 generated code.
12936 (dt_operand::gen_gimple_expr): Adjust.
12937
12938 2015-08-04 Richard Biener <rguenther@suse.de>
12939
12940 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12941 bool compares on RHS.
12942 * match.pd: Add X ==/!= !X is false/true pattern.
12943
12944 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
12945
12946 * config/aarch64/aarch64.c: Change inner loop statement cost
12947 to be consistent with other targets.
12948
12949 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
12950
12951 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12952 targets.
12953
12954 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
12955
12956 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12957 (machine_function): Remove pseudos field.
12958
12959 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12960
12961 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12962 Exit early and use target_option_current_node if processing current
12963 pragma.
12964
12965 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12966
12967 * doc/extend.texi (AArch64 Function Attributes): New node.
12968 (AArch64 Pragmas): Likewise.
12969
12970 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12971
12972 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12973 Initialize simd builtins if TARGET_SIMD.
12974 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12975 Make sure that the builtins are initialized only once no matter how
12976 many times the function is called.
12977 (aarch64_init_builtins): Unconditionally initialize crc builtins.
12978 (aarch64_relayout_simd_param): New function.
12979 (aarch64_simd_expand_args): Use above during argument expansion.
12980 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12981 simd builtins if TARGET_SIMD.
12982 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
12983 prototype.
12984 (aarch64_relayout_simd_types): Likewise.
12985
12986 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12987
12988 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
12989 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
12990 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
12991 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12992 static keyword.
12993 (aarch64_reset_previous_fndecl): New function.
12994 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
12995 the string.
12996 * config/aarch64/aarch64-c.c: New file.
12997 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
12998 Push and pop options at beginning and end. Remove ifdef
12999 __ARM_FEATURE_CRC32.
13000 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
13001 Add pragma +nothing+simd and +nothing+crypto where appropriate.
13002 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
13003 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
13004 Define prototype.
13005 (aarch64_register_pragmas): Likewise.
13006 (aarch64_reset_previous_fndecl): Likewise.
13007 (aarch64_process_target_attr): Likewise.
13008 (aarch64_override_options_internal): Likewise.
13009
13010 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13011
13012 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
13013 New function.
13014 (aarch64_can_inline_p): Likewise.
13015 (TARGET_CAN_INLINE_P): Define.
13016
13017 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13018
13019 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13020 Remove static. Handle OPT_mgeneral_regs_only,
13021 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
13022 OPT_momit_leaf_frame_pointer.
13023 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
13024 (aarch64_attr_opt_type): New enum.
13025 (aarch64_attribute_info): New struct.
13026 (aarch64_handle_attr_arch): New function.
13027 (aarch64_handle_attr_cpu): Likewise.
13028 (aarch64_handle_attr_tune): Likewise.
13029 (aarch64_handle_attr_isa_flags): Likewise.
13030 (aarch64_attributes): New table.
13031 (aarch64_process_one_target_attr): New function.
13032 (num_occurences_in_str): Likewise.
13033 (aarch64_process_target_attr): Likewise.
13034 (aarch64_option_valid_attribute_p): Likewise.
13035 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
13036 * config/aarch64/aarch64-protos.h: Include input.h
13037 (aarch64_handle_option): Declare prototype.
13038
13039 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13040
13041 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
13042 * config/aarch64/aarch64.c: Include target-globals.h
13043 (aarch64_previous_fndecl): New variable.
13044 (aarch64_set_current_function): New function.
13045 (TARGET_SET_CURRENT_FUNCTION): Define.
13046
13047 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13048
13049 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
13050 (explicit_arch): Likewise.
13051 (x_aarch64_isa_flags): Likewise.
13052 (mgeneral-regs-only): Mark as Save.
13053 (mfix-cortex-a53-835769): Likewise.
13054 (mcmodel=): Likewise.
13055 (mstrict-align): Likewise.
13056 (momit-leaf-frame-pointer): Likewise.
13057 (mtls-dialect): Likewise.
13058 (master=): Likewise.
13059 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
13060 (aarch64_isa_flags): Remove extern declaration.
13061 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
13062 to indicate success or failure.
13063 (aarch64_validate_march): Likewise.
13064 (aarch64_validate_mtune): Likewise.
13065 (aarch64_isa_flags): Delete.
13066 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
13067 instead of aarch64_isa_flags.
13068 (aarch64_get_tune_cpu): New function.
13069 (aarch64_get_arch): Likewise.
13070 (aarch64_override_options): Use above and set up explicit_tune_core
13071 and explicit_arch.
13072 (aarch64_print_extension): Move earlier in file. Add isa_flags
13073 argument and use that instead of the global aarch64_isa_flags.
13074 (aarch64_option_save): New function.
13075 (aarch64_option_restore): Likewise.
13076 (aarch64_option_print): Likewise.
13077 (aarch64_declare_function_name): Likewise.
13078 (aarch64_start_file): Delete.
13079 (TARGET_ASM_FILE_START): Do not define.
13080 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
13081 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
13082 Declare prototype.
13083
13084 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13085
13086 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
13087 flag_omit_leaf_frame_pointer to 2.
13088
13089 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13090
13091 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
13092 define to 0 or 1.
13093 (TARGET_FIX_ERR_A53_835769): New macro.
13094 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
13095 handling of opts->x_aarch64_fix_a53_err835769.
13096 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
13097 than aarch64_fix_a53_err835769.
13098 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
13099 * config/aarch64/aarch64-linux.h: Likewise.
13100
13101 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
13102
13103 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
13104 ix86_expand_int_movcc as boolean.
13105
13106 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13107
13108 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
13109 (aarch64_cpu_string): Likewise.
13110 (aarch64_tune_string): Likewise.
13111 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
13112 (aarch64_parse_extension): Return aarch64_parse_opt_result.
13113 Add extra argument to put result into.
13114 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
13115 (aarch64_parse_cpu): Add arguments to put results into. Return
13116 aarch64_parse_opt_result.
13117 (aarch64_parse_tune): Likewise.
13118 (aarch64_override_options_after_change_1): New function.
13119 (aarch64_override_options_internal): New function.
13120 (aarch64_validate_mcpu): Likewise.
13121 (aarch64_validate_march): Likewise.
13122 (aarch64_validate_mtune): Likewise.
13123 (aarch64_override_options): Update to reflect above changes.
13124 Move some logic into aarch64_override_options_internal.
13125 Initialize target_option_default_node and target_option_current_node.
13126 (aarch64_override_options_after_change): Move logic into
13127 aarch64_override_options_after_change_1 and call it with global_options.
13128 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
13129 flag values from that.
13130
13131 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13132
13133 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13134 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
13135 * config/aarch64/aarch64.c (struct processor): Add arch field.
13136 (all_architectures): Handle above, move above all_cores.
13137 (all_cores): Handle above.
13138 (aarch64_parse_arch): Handle above changes.
13139 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
13140 above. Update comments.
13141 (armv8.1-a): Likewise.
13142 * config/aarch64/aarch64-cores.def: Update according to above.
13143 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
13144 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
13145 aarch64_arch_driver_info.
13146
13147 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13148
13149 * config/aarch64/aarch64.c (struct processor): Add ident field.
13150 Rename core sched_core.
13151 (all_cores): Handle above changes.
13152 (all_architectures): Likewise.
13153 (aarch64_parse_arch): Likewise.
13154 (aarch64_override_options): Likewise.
13155
13156 2015-08-04 Richard Biener <rguenther@suse.de>
13157
13158 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13159 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13160 comparisons embedded in [VEC_]COND_EXPRs.
13161
13162 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
13163
13164 * tree-if-conv.c: Fix various typos in comments.
13165 * tree-vect-stmts.c: Likewise.
13166
13167 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13168
13169 PR tree-optimization/67043
13170 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13171 preheader after hoisting invariant in it.
13172 (find_defs): Force recomputation of all luids.
13173
13174 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
13175
13176 * config/rs6000/htm.md (tabort.): Restrict the source operand to
13177 using a base register.
13178
13179 2015-08-03 David Malcolm <dmalcolm@redhat.com>
13180
13181 * main.c (main): Pass in NULL for toplev's external_timer.
13182 * timevar.c: Include coretypes.h.
13183 (class timer::named_items): New.
13184 (timer::named_items::named_items): New.
13185 (timer::named_items::~named_items): New.
13186 (timer::named_items::push): New.
13187 (timer::named_items::pop): New.
13188 (timer::named_items::print): New.
13189 (timer::timer): Initialize field "m_jit_client_items".
13190 (timer::~timer): New.
13191 (timer::push): Move bulk of implementation to...
13192 (timer::push_internal): ...here. New function.
13193 (timer::pop): Move bulk of implementation to...
13194 (timer::pop_internal): ...here. New function.
13195 (timer::push_client_item): New.
13196 (timer::pop_client_item): New.
13197 (timer::print_row): New function, taken from timer::print.
13198 (timer::print): Print "GCC items" header if we also have client
13199 items. Move row-printing to timer::print_row. Print any client
13200 items.
13201 (timer::get_topmost_item_name): New method.
13202 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13203 (TV_JIT_CLIENT_CODE): New.
13204 * timevar.h (timer::push_client_item): New declaration.
13205 (timer::pop_client_item): New declaration.
13206 (timer::get_topmost_item_name): New method.
13207 (timer::push_internal): New declaration.
13208 (timer::pop_internal): New declaration.
13209 (timer::print_row): New declaration.
13210 (timer::named_items): New declaration.
13211 (timer::m_jit_client_items): New field.
13212 (timer): Add friend class named_items.
13213 (auto_timevar::auto_timevar): Add timer param.
13214 (auto_timevar::~auto_timevar): Use field "m_timer".
13215 (auto_timevar::m_timer): New field.
13216 * toplev.c (initialize_rtl): Add g_timer as param when
13217 constructing auto_timevar instance.
13218 (toplev::toplev): Add "external_timer" param, and use it to
13219 initialize the "g_timer" global if non-NULL.
13220 (toplev::~toplev): If this created "g_timer", delete it.
13221 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13222 with "external_timer" timer *.
13223
13224 2015-08-03 Alexander Basov <coohpt@gmail.com>
13225
13226 PR middle-end/64744
13227 PR middle-end/48470
13228 PR middle-end/43404
13229 * cfgexpand.c (expand_one_var): Add check if stack is going to
13230 be used in naked function.
13231 * expr.c (expand_expr_addr_expr_1): Remove excess checking
13232 whether expression should not reside in MEM.
13233 * function.c (use_register_for_decl): Do not use registers for
13234 non-register things (volatile, float, BLKMode) in naked functions.
13235
13236 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
13237
13238 PR target/67060
13239 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13240 Adjust splits to match new pattern.
13241
13242 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13243
13244 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13245 (VEC_M): Likewise.
13246 (VEC_N): Likewise.
13247 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13248 point in VSX registers.
13249
13250 * config/rs6000/constraints.md (wb constraint): Document unused
13251 w<x> constraint.
13252 (we constraint): Likewise.
13253 (wo constraint): Likewise.
13254 (wp constraint): New constraint for IEEE 128-bit floating point in
13255 VSX registers.
13256 (wq constraint): Likewise.
13257
13258 * config/rs6000/predicates.md (easy_fp_constant): Add support for
13259 IEEE 128-bit floating point in VSX registers.
13260 (easy_scalar_constant): Likewise.
13261
13262 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13263 constraints (wp, wq) for IEEE 128-bit floating point in VSX
13264 registers.
13265 (rs6000_init_hard_regno_mode_ok): Likewise.
13266
13267 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13268 floating point in VSX registers.
13269 (VSX_L): Likewise.
13270 (VSX_M): Likewise.
13271 (VSX_M2): Likewise.
13272 (VSm): Likewise.
13273 (VSs): Likewise.
13274 (VSr): Likewise.
13275 (VSa): Likewise.
13276 (VSv): Likewise.
13277 (vsx_le_permute_<mode>): Add support to properly swap bytes for
13278 IEEE 128-bit floating point in VSX registers on little endian.
13279 (vsx_le_undo_permute_<mode>): Likewise.
13280 (vsx_le_perm_load_<mode>): Likewise.
13281 (vsx_le_perm_store_<mode>): Likewise.
13282 (splitters for IEEE 128-bit fp moves): Likewise.
13283
13284 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13285 wq constraints.
13286
13287 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13288 floating point in VSX registers.
13289 (VM2): Likewise.
13290
13291 * doc/md.text (Machine Constraints): Document wp and wq
13292 constraints on PowerPC.
13293
13294 2015-08-03 Jeff Law <law@redhat.com>
13295
13296 PR middle-end/66314
13297 PR gcov-profile/66899
13298 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13299 iterate over the jump threading paths when an element in the
13300 jump threading paths array is eliminated.
13301
13302 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
13303
13304 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13305
13306 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
13307
13308 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13309 is_use_properly_guarded the variable def_preds. Free its
13310 contents before returning.
13311 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13312 (is_use_properly_guarded): Replace local variable def_preds with
13313 a parameter. Adjust accordingly. Only update *def_preds if it's
13314 the empty vector.
13315
13316 2015-08-03 Richard Biener <rguenther@suse.de>
13317
13318 * genmatch.c (simplify::for_subst_vec): New member.
13319 (binary_ok): New helper for for lowering.
13320 (lower_for): Delay substituting operators into result expressions
13321 if we can merge the results eventually again.
13322 (capture_info::walk_result): Adjust for user_id appearing as
13323 result expression operator.
13324 (expr::gen_transform): Likewise.
13325 (dt_simplify::gen_1): Likewise.
13326 (dt_simplify::gen): Pass not substituted operators to tail
13327 functions or initialize local variable with it.
13328 (decision_tree::gen): Adjust function signature.
13329 * match.pd: Fix tests against global code and add default
13330 cases to switch stmts.
13331
13332 2015-08-03 Richard Biener <rguenther@suse.de>
13333
13334 * genmatch.c (dt_simplify::gen): Create captures array
13335 with an initializer.
13336
13337 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13338
13339 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13340 the host compiler is affected by placement new aliasing bug.
13341 * configure: Regenerate.
13342 * Makefile.in (ALIASING_FLAGS): New variable.
13343 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13344
13345 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
13346
13347 PR target/66731
13348 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13349 (negmulsf3_vfp): Likewise.
13350 (muldf3negdf_vfp): Disable for -frounding-math.
13351 (mulsf3negsf_vfp): Likewise.
13352 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13353 fix MULT cost with -frounding-math.
13354
13355 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13356
13357 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13358 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13359 explicit. Prefer to add the flag whenever possible.
13360 (noce_process_if_block): Try noce_try_store_flag_constants before
13361 noce_try_cmove.
13362
13363 2015-08-03 Richard Biener <rguenther@suse.de>
13364
13365 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13366 New hash-map to record equivalent transforms.
13367 (dt_node::analyze): Populate the equivalent transforms hash-map.
13368 (dt_simplify::info): Add reference to hash-map entry.
13369 (dt_simplify::gen): If we have split out a function for the
13370 transform, generate a call to it.
13371 (sinfo_hashmap_traits::hash): New function.
13372 (compare_op): New helper function for ...
13373 (sinfo_hashmap_traits::equal_keys): ... this new function.
13374 (decision_tree::gen): Split out common equivalent transforms
13375 into functions.
13376
13377 2015-08-03 Richard Biener <rguenther@suse.de>
13378
13379 * gimple-fold.c (fold_gimple_assign): Remove folding of
13380 the comparison in COND_EXPRs.
13381
13382 2015-08-03 Richard Biener <rguenther@suse.de>
13383
13384 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13385 on the rhs of assignments first simplify the embedded
13386 GENERIC condition.
13387
13388 2015-08-03 Richard Biener <rguenther@suse.de>
13389
13390 PR tree-optimization/66917
13391 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13392 field.
13393 (DR_VECT_AUX): New macro.
13394 (set_dr_misalignment): Adjust.
13395 (dr_misalignment): Likewise.
13396 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13397 Compute whether the base is at least element aligned.
13398 * tree-vect-stmts.c (ensure_base_align): Adjust.
13399 (vectorizable_store): If the base is not element aligned
13400 preserve alignment of the original access if misalignment is unknown.
13401 (vectorizable_load): Likewise.
13402
13403 2015-08-02 Martin Sebor <msebor@redhat.com>
13404
13405 * c-family/c.opt (-Wframe-address): New warning option.
13406 * doc/invoke.texi (Wframe-address): Document it.
13407 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13408 Clarify possible effects of calling the functions with non-zero
13409 arguments and mention -Wframe-address.
13410 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13411
13412 2015-08-01 Michael Collison <michael.collison@linaro.org
13413 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13414
13415 * config/arm/arm.md (*arm_smin_cmp): New pattern.
13416 (*arm_umin_cmp): Likewise.
13417
13418 2015-08-01 Caroline Tice <cmtice@google.com>
13419
13420 PR 66521
13421 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13422 global variables.
13423 (vtbl_find_mangled_name): New function.
13424 (vtbl_register_mangled_name): New function.
13425 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
13426 mangled name in mangled name vectors.
13427 (find_or_create_vtbl_map_node): Ditto.
13428 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
13429 update recursion_depth on function entry; pass it to every recursive
13430 call; automatically exit if depth > 25 (give up looking at that point).
13431 (verify_bb_vtables): Initialize recursion_depth and pass it to
13432 var_is_used_for_virtual_call_p.
13433 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13434 global variable decls.
13435 (vtbl_register_mangled_name): New extern function decl.
13436
13437 2015-08-01 Tom de Vries <tom@codesourcery.com>
13438
13439 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13440 function.
13441 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13442 Declare.
13443 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13444 operation_no_trapping_overflow. Allow non-overflow operations.
13445 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13446 operations.
13447
13448 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
13449
13450 PR target/67049
13451 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13452
13453 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13454
13455 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13456 Enable for TARGET_32BIT.
13457 (*if_move_neg): Likewise.
13458
13459 2015-07-31 Nick Clifton <nickc@redhat.com>
13460
13461 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13462 Returns true for __model__.
13463 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13464
13465 2015-07-31 Alan Modra <amodra@gmail.com>
13466
13467 PR target/66870
13468 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13469 (rs6000_emit_prologue): Set it.
13470 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13471
13472 2015-07-31 Richard Biener <rguenther@suse.de>
13473
13474 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13475 -> X == (C1 ^ C2) which is already implemented in match.pd.
13476 Remove redundant dispatching to fold_relational_const.
13477 Move unordered self and NaN compares ...
13478 * match.pd: ... as patterns here. Remove some stray captures
13479 and add a comment.
13480
13481 2015-07-31 Petr Murzin <petr.murzin@intel.com>
13482
13483 * config/i386/i386.c
13484 (bdesc_special_args): Convert mask type from signed to unsigned for
13485 masked builtins.
13486 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
13487 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
13488 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
13489 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
13490 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
13491 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
13492 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
13493 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
13494 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
13495 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
13496 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
13497 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
13498 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
13499 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
13500 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
13501 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
13502 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
13503 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
13504 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
13505 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
13506 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
13507 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
13508 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
13509 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
13510 * config/i386/i386-builtin-types.def
13511 (V16QI_FTYPE_V16SI): Remove.
13512 (V8DF_FTYPE_V8SI): Ditto.
13513 (V8HI_FTYPE_V8DI): Ditto.
13514 (V8SI_FTYPE_V8DI): Ditto.
13515 (V8SF_FTYPE_V8DF): Ditto.
13516 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
13517 (V16HI_FTYPE_V16SI): Ditto.
13518 (V16SF_FTYPE_V16HI): Ditto.
13519 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
13520 (V16SF_FTYPE_V16SI): Ditto.
13521 (V4DI_FTYPE_V4DI): Ditto.
13522 (V16SI_FTYPE_V16SF): Ditto.
13523 (V16SF_FTYPE_FLOAT): Ditto.
13524 (V8DF_FTYPE_DOUBLE): Ditto.
13525 (V8DI_FTYPE_INT64): Ditto.
13526 (V8DI_FTYPE_V4DI): Ditto.
13527 (V16QI_FTYPE_V8DI): Ditto.
13528 (UINT_FTYPE_V4SF): Ditto.
13529 (UINT64_FTYPE_V4SF): Ditto.
13530 (UINT_FTYPE_V2DF): Ditto.
13531 (UINT64_FTYPE_V2DF): Ditto.
13532 (V16SI_FTYPE_V16SI): Ditto.
13533 (V8DI_FTYPE_V8DI): Ditto.
13534 (V16SI_FTYPE_PV4SI): Ditto.
13535 (V16SF_FTYPE_PV4SF): Ditto.
13536 (V8DI_FTYPE_PV2DI): Ditto.
13537 (V8DF_FTYPE_PV2DF): Ditto.
13538 (V4DI_FTYPE_PV2DI): Ditto.
13539 (V4DF_FTYPE_PV2DF): Ditto.
13540 (V16SI_FTYPE_PV2SI): Ditto.
13541 (V16SF_FTYPE_PV2SF): Ditto.
13542 (V8DI_FTYPE_PV4DI): Ditto.
13543 (V8DF_FTYPE_PV4DF): Ditto.
13544 (V8SF_FTYPE_FLOAT): Ditto.
13545 (V4SF_FTYPE_FLOAT): Ditto.
13546 (V4DF_FTYPE_DOUBLE): Ditto.
13547 (V8SF_FTYPE_PV4SF): Ditto.
13548 (V8SI_FTYPE_PV4SI): Ditto.
13549 (V4SI_FTYPE_PV2SI): Ditto.
13550 (V8SF_FTYPE_PV2SF): Ditto.
13551 (V8SI_FTYPE_PV2SI): Ditto.
13552 (V16SF_FTYPE_PV8SF): Ditto.
13553 (V16SI_FTYPE_PV8SI): Ditto.
13554 (V8DI_FTYPE_V8SF): Ditto.
13555 (V4DI_FTYPE_V4SF): Ditto.
13556 (V2DI_FTYPE_V4SF): Ditto.
13557 (V64QI_FTYPE_QI): Ditto.
13558 (V32HI_FTYPE_HI): Ditto.
13559 (V8UHI_FTYPE_V8UHI): Ditto.
13560 (V16UHI_FTYPE_V16UHI): Ditto.
13561 (V32UHI_FTYPE_V32UHI): Ditto.
13562 (V2UDI_FTYPE_V2UDI): Ditto.
13563 (V4UDI_FTYPE_V4UDI): Ditto.
13564 (V8UDI_FTYPE_V8UDI): Ditto.
13565 (V4USI_FTYPE_V4USI): Ditto.
13566 (V8USI_FTYPE_V8USI): Ditto.
13567 (V16USI_FTYPE_V16USI): Ditto.
13568 (V2DF_FTYPE_V2DF_UINT64): Ditto.
13569 (V2DI_FTYPE_V2DF_V2DF): Ditto.
13570 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13571 (V8DF_FTYPE_V8DF_V8DI): Ditto.
13572 (V4SF_FTYPE_V4SF_UINT64): Ditto.
13573 (V4SI_FTYPE_V4SF_V4SF): Ditto.
13574 (V16SF_FTYPE_V16SF_V16SI): Ditto.
13575 (V64QI_FTYPE_V32HI_V32HI): Ditto.
13576 (V32HI_FTYPE_V16SI_V16SI): Ditto.
13577 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13578 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13579 (V32HI_FTYPE_V64QI_V64QI): Ditto.
13580 (V32HI_FTYPE_V32HI_V32HI): Ditto.
13581 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13582 (V16SI_FTYPE_V16SI_V4SI): Ditto.
13583 (V16SI_FTYPE_V16SI_V16SI): Ditto.
13584 (V16SI_FTYPE_V32HI_V32HI): Ditto.
13585 (V16SI_FTYPE_V16SI_SI): Ditto.
13586 (V8DI_FTYPE_V8DI_V8DI): Ditto.
13587 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13588 (V8DI_FTYPE_V16SI_V16SI): Ditto.
13589 (V8DI_FTYPE_V8DI_V2DI): Ditto.
13590 (QI_FTYPE_QI): Ditto.
13591 (SI_FTYPE_SI): Ditto.
13592 (DI_FTYPE_DI): Ditto.
13593 (QI_FTYPE_QI_QI): Ditto.
13594 (QI_FTYPE_QI_INT): Ditto.
13595 (HI_FTYPE_HI_INT): Ditto.
13596 (SI_FTYPE_SI_INT): Ditto.
13597 (DI_FTYPE_DI_INT): Ditto.
13598 (HI_FTYPE_V16QI_V16QI): Ditto.
13599 (SI_FTYPE_V32QI_V32QI): Ditto.
13600 (DI_FTYPE_V64QI_V64QI): Ditto.
13601 (QI_FTYPE_V8HI_V8HI): Ditto.
13602 (HI_FTYPE_V16HI_V16HI): Ditto.
13603 (SI_FTYPE_V32HI_V32HI): Ditto.
13604 (QI_FTYPE_V4SI_V4SI): Ditto.
13605 (QI_FTYPE_V8SI_V8SI): Ditto.
13606 (QI_FTYPE_V2DI_V2DI): Ditto.
13607 (QI_FTYPE_V4DI_V4DI): Ditto.
13608 (QI_FTYPE_V8DI_V8DI): Ditto.
13609 (HI_FTYPE_V16SI_V16SI): Ditto.
13610 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13611 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13612 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13613 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13614 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13615 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13616 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13617 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13618 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13619 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13620 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13621 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13622 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13623 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13624 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13625 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13626 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13627 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13628 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13629 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13630 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13631 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13632 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13633 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13634 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13635 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13636 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13637 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13638 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13639 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13640 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13641 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13642 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13643 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13644 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13645 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13646 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13647 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13648 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13649 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13650 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13651 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13652 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13653 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13654 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13655 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13656 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13657 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13658 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13659 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13660 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13661 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13662 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13663 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13664 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13665 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13666 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13667 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13668 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13669 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13670 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13671 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13672 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13673 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13674 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13675 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13676 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13677 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13678 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13679 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13680 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13681 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13682 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13683 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13684 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13685 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13686 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13687 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13688 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13689 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13690 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13691 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13692 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13693 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13694 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13695 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13696 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13697 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13698 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13699 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13700 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13701 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13702 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13703 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13704 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13705 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13706 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13707 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13708 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13709 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13710 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13711 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13712 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13713 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13714 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13715 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13716 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13717 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13718 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13719 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13720 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13721 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13722 (HI_FTYPE_HI): Ditto.
13723 (HI_FTYPE_V16QI): Ditto.
13724 (SI_FTYPE_V32QI): Ditto.
13725 (DI_FTYPE_V64QI): Ditto.
13726 (QI_FTYPE_V8HI): Ditto.
13727 (HI_FTYPE_V16HI): Ditto.
13728 (SI_FTYPE_V32HI): Ditto.
13729 (QI_FTYPE_V4SI): Ditto.
13730 (QI_FTYPE_V8SI): Ditto.
13731 (HI_FTYPE_V16SI): Ditto.
13732 (QI_FTYPE_V2DI): Ditto.
13733 (QI_FTYPE_V4DI): Ditto.
13734 (QI_FTYPE_V8DI): Ditto.
13735 (V16QI_FTYPE_HI): Ditto.
13736 (V32QI_FTYPE_SI): Ditto.
13737 (V64QI_FTYPE_DI): Ditto.
13738 (V8HI_FTYPE_QI): Ditto.
13739 (V16HI_FTYPE_HI): Ditto.
13740 (V32HI_FTYPE_SI): Ditto.
13741 (V4SI_FTYPE_QI): Ditto.
13742 (V4SI_FTYPE_HI): Ditto.
13743 (V8SI_FTYPE_QI): Ditto.
13744 (V8SI_FTYPE_HI): Ditto.
13745 (V2DI_FTYPE_QI): Ditto.
13746 (V4DI_FTYPE_QI): Ditto.
13747 (HI_FTYPE_HI_HI): Ditto.
13748 (SI_FTYPE_SI_SI): Ditto.
13749 (DI_FTYPE_DI_DI): Ditto.
13750 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13751 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13752 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13753 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13754 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13755 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13756 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13757 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13758 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13759 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13760 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13761 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13762 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13763 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13764 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13765 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13766 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13767 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13768 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13769 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13770 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13771 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13772 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13773 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
13774 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
13775 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
13776 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
13777 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
13778 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
13779 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
13780 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
13781 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
13782 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
13783 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
13784 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
13785 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
13786 (V16SI_FTYPE_HI): Ditto.
13787 (V8DI_FTYPE_QI): Ditto.
13788 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
13789 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
13790 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
13791 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
13792 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
13793 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
13794 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
13795 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
13796 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
13797 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
13798 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
13799 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
13800 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
13801 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
13802 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
13803 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
13804 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
13805 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
13806 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
13807 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
13808 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
13809 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
13810 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
13811 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
13812 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
13813 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
13814 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
13815 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
13816 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
13817 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
13818 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
13819 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
13820 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
13821 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
13822 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
13823 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
13824 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
13825 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
13826 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
13827 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
13828 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
13829 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
13830 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
13831 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
13832 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
13833 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
13834 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
13835 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
13836 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
13837 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
13838 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
13839 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
13840 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
13841 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
13842 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
13843 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
13844 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
13845 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
13846 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
13847 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
13848 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
13849 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
13850 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
13851 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
13852 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
13853 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
13854 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
13855 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
13856 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
13857 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
13858 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
13859 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
13860 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
13861 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
13862 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
13863 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
13864 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
13865 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
13866 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
13867 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
13868 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
13869 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
13870 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
13871 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
13872 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
13873 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
13874 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
13875 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
13876 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
13877 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13878 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13879 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13880 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13881 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13882 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13883 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13884 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13885 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13886 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13887 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13888 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13889 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13890 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13891 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13892 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13893 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13894 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13895 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13896 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13897 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13898 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13899 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13900 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13901 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13902 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13903 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13904 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13905 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13906 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13907 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13908 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13909 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13910 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13911 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13912 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13913 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13914 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13915 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13916 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13917 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13918 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13919 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13920 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13921 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13922 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13923 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13924 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13925 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13926 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13927 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13928 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13929 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13930 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13931 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13932 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13933 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13934 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13935 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13936 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13937 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13938 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13939 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13940 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13941 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13942 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13943 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13944 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13945 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13946 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13947 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13948 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13949 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13950 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13951 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13952 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13953 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13954 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13955 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13956 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13957 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13958 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13959 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13960 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13961 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13962 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13963 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13964 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13965 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13966 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13967 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13968 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13969 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13970 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13971 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13972 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13973 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13974 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13975 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13976 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13977 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13978 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13979 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13980 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13981 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13982 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
13983 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
13984 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
13985 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
13986 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
13987 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
13988 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
13989 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
13990 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
13991 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
13992 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
13993 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
13994 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
13995 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
13996 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
13997 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
13998 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
13999 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
14000 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
14001 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
14002 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
14003 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
14004 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
14005 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
14006 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
14007 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
14008 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
14009 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
14010 (QI_FTYPE_V8DF_INT_QI): Ditto.
14011 (QI_FTYPE_V4DF_INT_QI): Ditto.
14012 (QI_FTYPE_V2DF_INT_QI): Ditto.
14013 (HI_FTYPE_V16SF_INT_HI): Ditto.
14014 (QI_FTYPE_V8SF_INT_QI): Ditto.
14015 (QI_FTYPE_V4SF_INT_QI): Ditto.
14016 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
14017
14018 2015-07-31 Richard Biener <rguenther@suse.de>
14019
14020 * gimple-fold.c (fold_gimple_assign): Remove folding of
14021 GIMPLE_BINARY_RHS.
14022
14023 2015-07-31 Tom de Vries <tom@codesourcery.com>
14024
14025 PR tree-optimization/66846
14026 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
14027 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
14028 (expand_omp_target) [ENABLE_CHECKING]: Same.
14029 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
14030 cfun if !LOOPS_NEED_FIXUP.
14031 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
14032 that omp_for already has its own loop struct.
14033 * tree-parloops.c (create_phi_for_local_result)
14034 (create_call_for_reduction): Handle simple latch bb.
14035 (create_parallel_loop): Add simple latch bb to preserve
14036 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
14037 (gen_parallel_loop): Remove call to cancel_loop_tree.
14038 (parallelize_loops): Skip loops that are inner loops of parallelized
14039 loops.
14040 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
14041 verify_loop_structure.
14042
14043 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14044
14045 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
14046 * config/v850/v850.md (RV_REGNUM): New constants.
14047 * config/v850/v850.c (v850_libcall_value): New functions.
14048 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
14049 (TARGET_LIBCALL_VALUE): Define.
14050
14051 2015-07-30 Anatoly Sokolov <aesok@post.ru>
14052
14053 * rtl.h (lowpart_subreg): Move in file.
14054 * loop-iv.c (lowpart_subreg): Move to...
14055 * simplify-rtx.c (lowpart_subreg): ...here.
14056 (simplify_binary_operation_1): Use lowpart_subreg instead of
14057 simplify_gen_subreg.
14058 * expr.c (expand_expr_real_2): Ditto.
14059 * emit-rtl.c (gen_lowpart_common): Ditto.
14060 * combine.c (gen_lowpart_for_combine): Ditto.
14061 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
14062 expand_debug_source_expr): Ditto.
14063
14064 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
14065
14066 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
14067 (expand_builtin_atomic_clear): Remove support for atomic_clear
14068 pattern.
14069
14070 2015-07-30 Richard Biener <rguenther@suse.de>
14071
14072 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
14073 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
14074 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
14075 redundant operand canonicalization.
14076
14077 2015-07-30 David Sherwood <david.sherwood@arm.com>
14078
14079 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
14080 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
14081 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
14082 * config/arm/arm.c (neon_valid_immediate): Likewise.
14083 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
14084 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
14085 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
14086 (expand_vec_perm_vpshufb2_vpermq): Likewise.
14087 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
14088 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
14089 * config/i386/sse.md
14090 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
14091 (*ssse3_palignr<mode>_perm): Likewise.
14092 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
14093 * config/spu/spu.c (arith_immediate_p): Likewise.
14094 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14095 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
14096
14097 2015-07-30 Richard Biener <rguenther@suse.de>
14098
14099 * genmatch.c (decision_tree::gen_gimple): Merge with ...
14100 (decision_tree::gen_generic): ... this into ...
14101 (decision_tree::gen): ... this.
14102 (main): Adjust callers.
14103
14104 2015-07-30 Richard Biener <rguenther@suse.de>
14105
14106 * genmatch.c (verbose): New global.
14107 (warning_at): Add overload with source_location.
14108 (capture_info::capture_info): Add bool whether generating gimple
14109 or generic. Add gimple member.
14110 (capture_info::cinfo): Add capture member.
14111 (capture_info::walk_match): Record capture. Warn on
14112 non-captured leafs.
14113 (capture_info::walk_c_expr): Add more fragments captures cannot
14114 escape through. Warn on escaped captures.
14115 (dt_simplify::gen_1): Warn on operands we force to have no
14116 side-effects.
14117 (main): Initialize verbose.
14118 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
14119
14120 2015-07-30 Richard Biener <rguenther@suse.de>
14121
14122 PR middle-end/67053
14123 * match.pd: Allow both operands to independently have conversion
14124 when simplifying compares of addresses.
14125
14126 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
14127
14128 PR target/66217
14129 PR target/67045
14130 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
14131 around those cases that need one.
14132
14133 2015-07-29 Aditya Kumar <hiraditya@msn.com>
14134
14135 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
14136
14137 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
14138
14139 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
14140 New. Copied from config/i386/gnu-user.h.
14141 (ASM_COMMENT_START): Likewise.
14142 (DBX_REGISTER_NUMBER): Likewise.
14143
14144 2015-07-29 Richard Biener <rguenther@suse.de>
14145
14146 * gimple-fold.c (fold_gimple_cond): Remove.
14147 (fold_stmt_1): Do not call it.
14148
14149 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
14150
14151 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
14152 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
14153
14154 * config/aarch64/aarch64-modes.def: Add HFmode.
14155
14156 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14157 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14158
14159 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14160 aarch64_promoted_type): New.
14161
14162 (aarch64_float_const_representable_p): Disable HFmode.
14163 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14164 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14165 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14166
14167 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14168 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14169
14170 * config/aarch64/iterators.md (GPF_F16): New.
14171
14172 2015-07-29 Richard Biener <rguenther@suse.de>
14173
14174 * match.pd: Merge address comparison patterns and make them
14175 handle some more cases.
14176
14177 2015-07-29 Richard Biener <rguenther@suse.de>
14178
14179 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14180 (parser::parse_capture): Add bool argument on whether to reject
14181 unknown captures.
14182 (parser::parse_expr): Adjust.
14183 (parser::parse_op): Likewise.
14184 (parser::parse_pattern): Likewise.
14185
14186 2015-07-29 Richard Biener <rguenther@suse.de>
14187
14188 * gimple-fold.c (has_use_on_stmt): New function.
14189 (replace_stmt_with_simplification): Use it to allow
14190 abnormals originally referenced in the stmt.
14191 (fold_stmt_1): Canonicalize operand order.
14192
14193 2015-07-28 David Sherwood <david.sherwood@arm.com>
14194
14195 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14196 GET_MODE_INNER unconditionally.
14197 * config/spu/spu.c (arith_immediate_p): Likewise.
14198 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14199 * expmed.c (synth_mult): Remove check for VOIDmode result from
14200 GET_MODE_INNER.
14201 (expand_mult_const): Likewise.
14202 * fold-const.c (fold_binary_loc): Replace call to element_precision
14203 with call to GET_MODE_PRECISION.
14204 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14205 m->name.
14206 (emit_mode_inner): Likewise.
14207 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14208 result check.
14209 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14210 (GET_MODE_UNIT_PRECISION): Likewise.
14211 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14212 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14213 * stor-layout.c (bitwise_type_for_mode): Update assert.
14214 (element_precision): Remove.
14215
14216 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14217
14218 * target-insns.def (reload_load_address): New targetm instruction
14219 pattern.
14220 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14221
14222 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14223
14224 * target-insns.def (atomic_test_and_set): New targetm instruction
14225 pattern.
14226 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14227 HAVE_*/gen_* interface.
14228
14229 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14230
14231 * target-insns.def (can_extend, ptr_extend): New targetm instruction
14232 patterns.
14233 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14234 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14235 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14236 * rtlanal.c (nonzero_bits1): Likewise.
14237 (num_sign_bit_copies1): Likewise.
14238
14239 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14240
14241 * target-insns.def (eh_return): New targetm instruction pattern.
14242 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14243 interface.
14244 * function.c (thread_prologue_and_epilogue_insns): Remove
14245 preprocessor condition.
14246
14247 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14248
14249 * target-insns.def (indirect_jump): New targetm instruction pattern.
14250 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14251 interface.
14252
14253 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14254
14255 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14256 instead of nonimmediate_operand. Remove C condiition.
14257
14258 2015-07-28 Richard Biener <rguenther@suse.de>
14259
14260 * match.pd: Add more simplification of address comparisons.
14261
14262 2015-07-28 Richard Biener <rguenther@suse.de>
14263
14264 * match.pd: Re-order two cases in comparison with max/min
14265 value simplification to make it apply for bools.
14266
14267 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14268
14269 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14270 Handle simple SIGN_EXTEND or ZERO_EXTEND.
14271 (aarch64_rtx_costs): Properly strip extend or extract before
14272 passing down to rtx costs again.
14273
14274 2015-07-28 Nick Clifton <nickc@redhat.com>
14275
14276 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14277 Optimizes the case where -mes0 is active and a constant symbolic
14278 address is used.
14279 * config/rl78/rl78-protos.h: Prototype the new function.
14280 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14281
14282 2015-07-28 Tom de Vries <tom@codesourcery.com>
14283
14284 * tree-parloops.c (reduc_stmt_res): New function.
14285 (initialize_reductions, add_field_for_reduction)
14286 (create_phi_for_local_result, create_loads_for_reductions)
14287 (create_stores_for_reduction, build_new_reduction): Handle case that
14288 reduc_stmt is a phi.
14289 (gather_scalar_reductions): Allow double_reduc reductions.
14290
14291 2015-07-28 Richard Biener <rguenther@suse.de>
14292
14293 * fold-const.c (fold_comparison): Remove equality folding
14294 of decl addresses ...
14295 * match.pd: ... here and merge with existing pattern.
14296
14297 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14298
14299 PR tree-optimization/66828
14300 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14301 from int64_t to uint64_t.
14302
14303 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
14304
14305 * opts-common.c (read_cmdline_option): List DriverOnly enum values
14306 as valid only in the error message of the driver, not in the
14307 messages of the language compilers.
14308
14309 2015-07-27 Tom de Vries <tom@codesourcery.com>
14310
14311 * tree-parloops.c (gather_scalar_reductions): Simplify function
14312 structure.
14313
14314 2015-07-27 Marek Polacek <polacek@redhat.com>
14315
14316 * ipa-devirt.c (types_same_for_odr): Fix typo.
14317
14318 2015-07-27 Jason Merrill <jason@redhat.com>
14319
14320 PR debug/66468
14321 * dwarf2out.c (gen_inlined_subroutine_die): Check
14322 cgraph_function_possibly_inlined_p.
14323
14324 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14325
14326 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14327 Place integer variant first.
14328 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14329
14330 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14331
14332 PR/63870
14333 * config/arm/arm-builtins.c (enum arm_builtins):
14334 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14335 (ARM_BUILTIN_NEON_BASE): Rename macro to....
14336 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14337 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14338 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14339
14340 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14341
14342 PR/63870
14343 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14344 Add qualifier_lane_index.
14345 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14346 (arm_getlane_qualifiers): Use qualifier_lane_index.
14347 (arm_lanemac_qualifiers): Rename to...
14348 (arm_mac_n_qualifiers): ...this.
14349 (LANEMAC_QUALIFIERS): Rename to...
14350 (MAC_N_QUALIFIERS): ...this.
14351 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14352 (arm_setlane_qualifiers): Use qualifier_lane_index.
14353 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14354 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14355 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14356 (arm_expand_neon_builtin): Handle qualifier_lane_index.
14357
14358 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14359 * config/arm/arm.c (bounds_check): Likewise, improve error message.
14360 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14361 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14362 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14363 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14364 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14365 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14366 qualifiers to TERNOP_IMM.
14367 (vdup_lane): Change qualifiers to GETLANE.
14368 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14369 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14370 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14371 vqdmlsl_n): Change qualifiers to MAC_N.
14372
14373 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14374 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14375 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14376 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14377 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14378 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14379 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14380 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14381 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14382 Remove call to neon_lane_bounds.
14383
14384 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14385
14386 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14387 Place integer variant first.
14388
14389 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
14390
14391 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14392 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14393 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14394 for armv6kz targets.
14395 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14396 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14397 (FL_FOR_ARCH6ZK): Remove.
14398 (FL_FOR_ARCH6KZ): New.
14399 (arm_arch6zk): New declaration.
14400 * config/arm/arm-tables.opt: Regenerate.
14401 * config/arm/arm.c (arm_arch6kz): New.
14402 (arm_option_override): Set arm_arch6kz.
14403 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14404 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14405 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14406
14407 2015-07-27 Marek Polacek <polacek@redhat.com>
14408
14409 PR c++/66555
14410 PR c/54979
14411 * doc/invoke.texi: Document -Wtautological-compare.
14412
14413 2015-07-27 Richard Biener <rguenther@suse.de>
14414
14415 * genmatch.c (decision_tree::gen_gimple): Split out large
14416 subtrees into separate functions.
14417 (decision_tree::gen_generic): Likewise.
14418
14419 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
14420
14421 * config/alpha/alpha.c: Use SUBREG_P predicate.
14422 * config/alpha/predicates.md: Ditto.
14423
14424 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14425
14426 * config.host (s390*-*-*): Include driver-native.c only when
14427 building with s390* as host *and* target.
14428
14429 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
14430
14431 PR target/66930
14432 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14433 T bit register modified_between_p check.
14434
14435 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14436
14437 * config/i386/i386.c: Use SUBREG_P predicate.
14438 * config/i386/i386.md: Ditto.
14439 * config/i386/sse.md: Ditto.
14440 * config/i386/predicates.md: Ditto.
14441
14442 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14443
14444 PR target/67004
14445 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14446 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14447
14448 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14449
14450 * Makefile.in: Remove use of TREEBROWSER.
14451 * config.in: Regenerated.
14452 * configure: Regenerated.
14453 * configure.ac: Remove definition of TREEBROWSER.
14454 * tree-browser.c: Removed.
14455 * tree-browser.def: Removed.
14456
14457 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14458
14459 * graphite-scop-detection.c: Include gimple-pretty-print.h.
14460 (stmt_simple_for_scop_p): Print when a stmt is not handled in
14461 Graphite.
14462 (scopdet_basic_block_info): Print when a loop or bb cannot be
14463 represented in Graphite.
14464
14465 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14466
14467 PR target/66648
14468 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14469 execution guard when min_size is less than size_needed.
14470
14471 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14472
14473 * doc/install.texi: Document supported versions of ISL.
14474
14475 2015-07-25 Jeff Law <law@redhat.com>
14476
14477 Revert:
14478 PR lto/66752
14479 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14480 unable to find X NE 0 in the tables, return X as the simplified
14481 condition.
14482 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14483 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14484 to VISISTED_BBS. */
14485 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14486 after removing the control flow statement and unnecessary edges.
14487
14488 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
14489
14490 Revert:
14491 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14492
14493 PR rtl-optimization/64164
14494 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14495 * tree-ssa-copyrename.c: Removed.
14496 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14497 -ftree-coalesce-vars.
14498 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14499 * common.opt (ftree-copyrename): Ignore.
14500 (ftree-coalesce-inlined-vars): Likewise.
14501 * doc/invoke.texi: Remove the ignored options above.
14502 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14503 * tree-ssa-coalesce.h: ... here.
14504 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14505 headers required by it.
14506 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14507 across variables when flag_tree_coalesce_vars. Check register
14508 use and promoted modes to allow coalescing. Moved to
14509 tree-ssa-coalesce.c.
14510 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14511 with its member functions to tree-ssa-coalesce.c.
14512 (var_map_base_init): Likewise. Renamed to
14513 compute_samebase_partition_bases.
14514 (partition_view_normal): Drop want_bases parameter.
14515 (partition_view_bitmap): Likewise.
14516 * tree-ssa-live.h: Adjust declarations.
14517 * tree-ssa-coalesce.c: Include explow.h.
14518 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14519 default defs at the entry point.
14520 (dump_part_var_map): New.
14521 (compute_optimized_partition_bases): New, called by...
14522 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14523 of compute_samebase_partition_bases. Adjust.
14524 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14525 * cfgexpand.c (leader_merge): New.
14526 (get_rtl_for_parm_ssa_default_def): New.
14527 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14528 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14529 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14530 redundant MEM attr setting.
14531 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14532 from...
14533 (expand_one_stack_var): ... this. New wrapper to check and
14534 skip already expanded SSA partitions.
14535 (record_alignment_for_reg_var): New, factored out of...
14536 (expand_one_var): ... this.
14537 (expand_one_ssa_partition): New.
14538 (adjust_one_expanded_partition_var): New.
14539 (expand_one_register_var): Check and skip already expanded SSA
14540 partitions.
14541 (expand_used_vars): Don't create DECLs for anonymous SSA
14542 names. Expand all SSA partitions, then adjust all SSA names.
14543 (pass::execute): Replace the loops that set
14544 SA.partition_to_pseudo from partition leaders and cleared
14545 DECL_RTL for multi-location variables, and that which used to
14546 rename vars and set attrs, with one that clears DECL_RTL and
14547 checks that PARMs and RESULTs default_defs match DECL_RTL.
14548 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14549 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14550 * explow.c (promote_ssa_mode): New.
14551 * explow.h (promote_ssa_mode): Declare.
14552 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14553 * function.c: Include cfgexpand.h.
14554 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14555 (use_register_for_parm_decl): Wrapper for the above to
14556 special-case the result_ptr.
14557 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14558 (split_complex_args): Take assign_parm_data_all argument.
14559 Pass it to rtl_for_parm. Set up rtl and context for split
14560 args.
14561 (assign_parms_augmented_arg_list): Adjust.
14562 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14563 multiple locations. Recognize split complex args.
14564 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14565 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14566 (assign_parm_setup_block): Prefer SSA-assigned location.
14567 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14568 if stack_parm is NULL.
14569 (assign_parm_setup_stack): Prefer SSA-assigned location.
14570 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14571 rtl before testing for pointer bounds. Special-case result_ptr.
14572 (expand_function_start): Maybe reset DECL_RTL of result.
14573 Prefer SSA-assigned location for result and static chain.
14574 Factor out DECL_RESULT and SET_DECL_RTL.
14575 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14576 anonymous SSA names. Use promote_ssa_mode.
14577 (get_temp_reg): Likewise.
14578 (remove_ssa_form): Adjust.
14579 * stor-layout.c (layout_decl): Don't set mem attributes of
14580 non-MEMs.
14581 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14582 and get its reg_usage for reg invalidation.
14583 (compute_bb_dataflow): Pass it insn.
14584 (emit_notes_in_bb): Likewise.
14585
14586 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14587
14588 * config/i386/i386.c (ix86_va_start): Remove
14589 unneeded !TARGET_64BIT check.
14590 (ix86_gimplify_va_arg): Ditto.
14591
14592 2015-07-24 Tom de Vries <tom@codesourcery.com>
14593
14594 * graphite-sese-to-poly.c (build_poly_scop): Always call
14595 rewrite_commutative_reductions_out_of_ssa.
14596
14597 2015-07-24 Tom de Vries <tom@codesourcery.com>
14598
14599 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14600 flag_associative_math to FLOAT_TYPE_P. Honour
14601 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14602
14603 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14604
14605 PR c++/64079
14606 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14607 and "%qD" in warning_at instead of "%q+D" in warning.
14608
14609 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14610
14611 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14612 (ix86_function_abi): Cleanup.
14613
14614 2015-07-24 Michael Darling <darlingm@gmail.com>
14615
14616 PR other/66259
14617 * acinclude.m4: Reflects renaming of configure.in to configure.ac
14618 * configure: Likewise
14619 * configure.ac: Likewise
14620 * doc/install.texi: Likewise
14621 * doc/tm.texi: Likewise
14622 * doc/tm.texi.in: Likewise
14623
14624 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14625
14626 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14627 manually swapping values.
14628 * cse.c (fold_rtx): Likewise.
14629 * lra-eliminations.c (form_sum): Likewise.
14630
14631 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14632
14633 PR target/64003
14634 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14635 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14636 (*jcc_1, *jcc_2, jump, simple_return_internal)
14637 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14638 Set length_nobnd attribute instead of length attribute.
14639 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14640 (length_nobnd): Remove attribute.
14641 (length): Remove length_nobnd processing.
14642
14643 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
14644
14645 * gimplify.c (omp_default_clause): New function. Reorganize flow
14646 for clarity. Broken out of ...
14647 (omp_notice_variable): ... here.
14648
14649 2015-07-24 Gary Funck <gary@intrepid.com>
14650
14651 PR middle-end/66984
14652 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14653 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14654
14655 2015-07-24 Tom de Vries <tom@codesourcery.com>
14656
14657 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14658 exit-first loop transform.
14659
14660 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14661
14662 PR 66714
14663 * tree-cfg.c (struct replace_decls_d): New struct.
14664 (replace_block_vars_by_duplicates_1): New function.
14665 (replace_block_vars_by_duplicates): Use it to replace the decls
14666 in the value exprs by duplicates.
14667
14668 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14669
14670 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14671 -shared, -symbolic, -rdynamic.
14672
14673 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14674
14675 PR target/65711
14676 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14677 -dynamic-linker within %{!static %{!shared, and -rdynamic within
14678 %{!static.
14679
14680 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
14681
14682 PR ipa/66566
14683 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14684 edge summary is available.
14685
14686 2015-07-24 Richard Biener <rguenther@suse.de>
14687
14688 * genmatch.c (struct dt_node): Add statistic fields.
14689 (dt_node::analyze): New method.
14690 (decision_tree::gen_gimple): Call analyze on the root node
14691 and print statistics to stderr.
14692 (decision_tree::gen_generic): Likewise.
14693
14694 2015-07-24 Richard Biener <rguenther@suse.de>
14695
14696 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14697 against the highest or lowest possible integer ...
14698 * match.pd: ... as patterns here.
14699
14700 2015-07-24 Richard Biener <rguenther@suse.de>
14701
14702 * genmatch.c (struct capture_info): Add same_as field.
14703 (capture_info::capture_info): Initialize same_as.
14704 (capture_info::walk_match): Compute same_as.
14705 (capture_info::walk_result): Compute stuff for the leader.
14706 (capture_info::walk_c_expr): Likewise.
14707 (dt_simplify::gen_1): Only look at leaders when deciding
14708 to force no side-effects or emit side-effects of omitted operands.
14709
14710 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14711
14712 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14713 reg note to the GPR -> FPR save instructions.
14714
14715 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14716
14717 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14718 cheaper.
14719 (s390_expand_insv): Don't generate risbg pattern for constant zero
14720 sources.
14721 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14722 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
14723 splitters.
14724
14725 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14726
14727 * config/s390/s390.c (s390_reorg): Clean up handling of processors
14728 with
14729 -mtune=
14730 (s390_issue_rate): Likewise.
14731 (s390_sched_reorder): Likewise.
14732 (s390_sched_variable_issue): Likewise.
14733 (s390_loop_unroll_adjust): Likewise.
14734 (s390_option_override): Likewise.
14735
14736 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14737
14738 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14739 processor capabilities with -march=native.
14740 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14741 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
14742 (S390_TARGET_BITS_STRING): Macro to simplify specs.
14743
14744 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14745
14746 * config/s390/s390.c (s390_issue_rate): Handle
14747 PROCESSOR_2094_Z9_EC.
14748 (s390_option_override): Likewise.
14749 (s390_adjust_priority): Likewise.
14750
14751 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14752
14753 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14754 when cross compiling.
14755
14756 2015-07-24 Richard Biener <rguenther@suse.de>
14757
14758 * fold-const.c (maybe_canonicalize_comparison_1): Move
14759 A code CST canonicalization ...
14760 * match.pd: ... to a pattern here.
14761
14762 2015-07-24 Jiong Wang <jiong.wang@arm.com>
14763
14764 Revert:
14765 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14766 PR target/63521
14767 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14768 (HONOR_REG_ALLOC_ORDER): Define.
14769
14770 2015-07-24 Richard Biener <rguenther@suse.de>
14771
14772 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14773 * fold-const.c (fold_comparison): Move parameter does not
14774 alias &local simplification ...
14775 * match.pd: ... as a pattern here.
14776
14777 2015-07-24 Richard Biener <rguenther@suse.de>
14778
14779 * gimple-fold.c (replace_stmt_with_simplification): Special-case
14780 valueizing call operands.
14781 * gimple-match-head.c (maybe_push_res_to_seq): Take
14782 number of call arguments from ops array.
14783 (do_valueize): New function.
14784 (gimple_simplify): Return true if valueization changed
14785 any operand even if the result didn't simplify further.
14786
14787 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14788
14789 PR middle-end/25530
14790 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
14791
14792 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14793
14794 PR middle-end/25529
14795 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
14796
14797 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14798
14799 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
14800 instruction.
14801
14802 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14803
14804 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
14805 clean up.
14806
14807 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
14808
14809 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
14810 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
14811 targets here.
14812 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
14813 ms_va_list_type_node initialization.
14814
14815 2015-07-23 Jeff Law <law@redhat.com>
14816
14817 PR lto/66752
14818 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14819 unable to find X NE 0 in the tables, return X as the simplified
14820 condition.
14821 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14822 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14823 to VISISTED_BBS. */
14824 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14825 after removing the control flow statement and unnecessary edges.
14826
14827 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
14828
14829 * tree-pass.h (get_current_pass_name): Removed.
14830
14831 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14832
14833 PR rtl-optimization/64164
14834 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14835 * tree-ssa-copyrename.c: Removed.
14836 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14837 -ftree-coalesce-vars.
14838 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14839 * common.opt (ftree-copyrename): Ignore.
14840 (ftree-coalesce-inlined-vars): Likewise.
14841 * doc/invoke.texi: Remove the ignored options above.
14842 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14843 * tree-ssa-coalesce.h: ... here.
14844 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14845 headers required by it.
14846 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14847 across variables when flag_tree_coalesce_vars. Check register
14848 use and promoted modes to allow coalescing. Moved to
14849 tree-ssa-coalesce.c.
14850 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14851 with its member functions to tree-ssa-coalesce.c.
14852 (var_map_base_init): Likewise. Renamed to
14853 compute_samebase_partition_bases.
14854 (partition_view_normal): Drop want_bases parameter.
14855 (partition_view_bitmap): Likewise.
14856 * tree-ssa-live.h: Adjust declarations.
14857 * tree-ssa-coalesce.c: Include explow.h.
14858 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14859 default defs at the entry point.
14860 (dump_part_var_map): New.
14861 (compute_optimized_partition_bases): New, called by...
14862 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14863 of compute_samebase_partition_bases. Adjust.
14864 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14865 * cfgexpand.c (leader_merge): New.
14866 (get_rtl_for_parm_ssa_default_def): New.
14867 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14868 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14869 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14870 redundant MEM attr setting.
14871 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14872 from...
14873 (expand_one_stack_var): ... this. New wrapper to check and
14874 skip already expanded SSA partitions.
14875 (record_alignment_for_reg_var): New, factored out of...
14876 (expand_one_var): ... this.
14877 (expand_one_ssa_partition): New.
14878 (adjust_one_expanded_partition_var): New.
14879 (expand_one_register_var): Check and skip already expanded SSA
14880 partitions.
14881 (expand_used_vars): Don't create DECLs for anonymous SSA
14882 names. Expand all SSA partitions, then adjust all SSA names.
14883 (pass::execute): Replace the loops that set
14884 SA.partition_to_pseudo from partition leaders and cleared
14885 DECL_RTL for multi-location variables, and that which used to
14886 rename vars and set attrs, with one that clears DECL_RTL and
14887 checks that PARMs and RESULTs default_defs match DECL_RTL.
14888 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14889 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14890 * explow.c (promote_ssa_mode): New.
14891 * explow.h (promote_ssa_mode): Declare.
14892 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14893 * function.c: Include cfgexpand.h.
14894 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14895 (use_register_for_parm_decl): Wrapper for the above to
14896 special-case the result_ptr.
14897 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14898 (split_complex_args): Take assign_parm_data_all argument.
14899 Pass it to rtl_for_parm. Set up rtl and context for split
14900 args.
14901 (assign_parms_augmented_arg_list): Adjust.
14902 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14903 multiple locations. Recognize split complex args.
14904 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14905 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14906 (assign_parm_setup_block): Prefer SSA-assigned location.
14907 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14908 if stack_parm is NULL.
14909 (assign_parm_setup_stack): Prefer SSA-assigned location.
14910 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14911 rtl before testing for pointer bounds. Special-case result_ptr.
14912 (expand_function_start): Maybe reset DECL_RTL of result.
14913 Prefer SSA-assigned location for result and static chain.
14914 Factor out DECL_RESULT and SET_DECL_RTL.
14915 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14916 anonymous SSA names. Use promote_ssa_mode.
14917 (get_temp_reg): Likewise.
14918 (remove_ssa_form): Adjust.
14919 * stor-layout.c (layout_decl): Don't set mem attributes of
14920 non-MEMs.
14921 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14922 and get its reg_usage for reg invalidation.
14923 (compute_bb_dataflow): Pass it insn.
14924 (emit_notes_in_bb): Likewise.
14925
14926 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14927
14928 PR target/66217
14929 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14930 prototype.
14931 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14932 (rs6000_emit_2insn_and): Handle dot forms.
14933 * config/rs6000/rs6000.md (and<mode>3): Adjust.
14934 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
14935 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14936
14937 2015-07-23 Richard Biener <rguenther@suse.de>
14938
14939 * generic-match-head.c: Include cgraph.h.
14940 * gimple-match-head.c: Likewise.
14941 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14942 SSA names.
14943 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14944 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
14945 pattern.
14946
14947 2015-07-23 Richard Biener <rguenther@suse.de>
14948
14949 * gimple-fold.c (fold_gimple_cond): Do not require folding
14950 results to pass valid_gimple_rhs_p.
14951 * tree-cfg.h (fold_cond_expr_cond): Remove.
14952 * tree-cfg.c (fold_cond_expr_cond): Likewise.
14953 (make_edges): Do not call it.
14954 * tree-inline.c (tree_function_versioning): Likewise.
14955
14956 2015-07-23 Tom de Vries <tom@codesourcery.com>
14957
14958 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14959 vect_force_simple_reduction.
14960 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14961 (vect_is_simple_reduction_1): Add and handle
14962 need_wrapping_integral_overflow parameter.
14963 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14964 need_wrapping_integral_overflow parameter.
14965 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14966 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14967 decl.
14968
14969 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
14970
14971 PR tree-optimization/66926,66951
14972 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14973 INNER_LOOP and fix up condition for renaming virtual operands.
14974
14975 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14976
14977 * combine.c (try_combine): Use std::swap instead of manually
14978 swapping.
14979
14980 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
14981
14982 * config/mips/i6400.md: New file.
14983 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
14984 (mips64r6): Likewise.
14985 (i6400): Define.
14986 * config/mips/mips-tables.opt: Regenerate.
14987 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
14988 (mips_issue_rate): Add support for i6400.
14989 (mips_multipass_dfa_lookahead): Likewise.
14990 * config/mips/mips.h (TUNE_I6400): Define.
14991 * config/mips/mips.md: Include i6400.md.
14992 (processor): Add i6400.
14993 * doc/invoke.texi (-march=@var{arch}): Add i6400.
14994
14995 2015-07-23 Richard Biener <rguenther@suse.de>
14996
14997 PR middle-end/66916
14998 * match.pd: Guard widen and sign-change comparison simplification
14999 with single_use.
15000
15001 2015-07-23 Richard Biener <rguenther@suse.de>
15002
15003 PR tree-optimization/66945
15004 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
15005 ::before_dom_children): Force the propagators idea of
15006 non-executable edges to materialize, not what the folder
15007 chooses.
15008
15009 2015-07-23 Richard Biener <rguenther@suse.de>
15010
15011 * gimple.h (gimple_cond_make_false): Use 0 != 0.
15012 (gimple_cond_make_true): Use 1 != 0.
15013
15014 2015-07-22 DJ Delorie <dj@redhat.com>
15015
15016 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
15017 slashes.
15018
15019 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
15020 (ashrhi3): Likewise.
15021 (lshrhi3): Likewise.
15022 (movhi): Take advantage of zero-extend to load small constants.
15023 (movpsi): Likewise.
15024 (and<mode>3): Likewise.
15025 (zero_extendqihi2): Likewise.
15026 (zero_extendqisi2): New.
15027 * config/msp430/constraints.md (N,O): New.
15028 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
15029
15030 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
15031
15032 PR target/66954
15033 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
15034 to enum feature_priority and feature_list.
15035 (fold_builtin_cpu): Add F_AES to enum processor_features
15036 and isa_names_table.
15037
15038 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
15039
15040 PR driver/66737
15041 * config/i386/linux-common.h (MPX_SPEC): Use linker option
15042 for 64bit target only.
15043
15044 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
15045
15046 * config/nvptx/nvptx.c: Expand some comments.
15047
15048 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
15049
15050 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
15051 (cortex_a53_advsimd): ...This.
15052
15053 2015-07-22 Richard Biener <rguenther@suse.de>
15054
15055 * genmatch.c (expr::gen_transform): Clarify error message
15056 and display location.
15057
15058 2015-07-22 Richard Biener <rguenther@suse.de>
15059
15060 * genmatch.c (struct operand): Add location member.
15061 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
15062 constructors.
15063 (struct simplify): Remove match_location and result_location
15064 members.
15065 (elsehwere): Adjust.
15066
15067 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
15068
15069 * config/mips/m5100.md: New file.
15070 * config/mips/mips-cpus.def (m5100, m5101): Define.
15071 * config/mips/mips-tables.opt: Regenerate.
15072 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
15073 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
15074 -march=m5101 to -mips32r5.
15075 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
15076 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
15077 !-msoft-float.
15078 * config/mips/mips.md: Include m5100.md.
15079 (processor): Add m5100.
15080 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
15081
15082 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
15083
15084 * config/mips/mips-cpus.def (interaptiv): Define.
15085 * config/mips/mips-tables.opt: Regenerate.
15086 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
15087 -mips32r2.
15088 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
15089 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
15090
15091 2015-07-22 Jiong Wang <jiong.wang@arm.com>
15092
15093 PR target/63521
15094 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
15095 (HONOR_REG_ALLOC_ORDER): Define.
15096
15097 2015-07-22 Richard Biener <rguenther@suse.de>
15098
15099 PR tree-optimization/66952
15100 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
15101 blocks we end up executing unconditionally reset all SSA
15102 info such as range and alignment.
15103 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
15104 * tree-ssanames.c (reset_flow_sensitive_info): New function.
15105
15106 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15107
15108 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
15109 typo in attribute.
15110
15111 2015-07-22 Richard Biener <rguenther@suse.de>
15112
15113 * genmatch.c (parser::parse_result): Properly handle
15114 match with result operands and conditions.
15115
15116 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
15117
15118 PR target/63870
15119 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
15120 Add qualifier_struct_load_store_lane_index.
15121 (aarch64_types_loadstruct_lane_qualifiers): Use
15122 qualifier_struct_load_store_lane_index for lane index argument for
15123 last argument.
15124 (aarch64_types_storestruct_lane_qualifiers): Ditto.
15125 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15126 (aarch64_simd_expand_args): Add new argument describing mode of
15127 builtin. Check lane bounds for arguments with
15128 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15129 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
15130 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
15131 (aarch64_simd_expand_builtin): Handle arguments with
15132 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
15133 aarch64_simd_expand_args.
15134 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
15135 vst[234]_lane with BUILTIN_VALLDIF.
15136 * config/aarch64/aarch64-simd.md:
15137 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
15138 endianness reversal on lane index.
15139 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
15140 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
15141 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
15142 (vec_store_lanesci_lane<mode>): Ditto.
15143 (vec_store_lanesxi_lane<mode>): Ditto.
15144 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
15145 reversal of lane index.
15146 (aarch64_ld3_lane<mode>): Ditto.
15147 (aarch64_ld4_lane<mode>): Ditto.
15148 (aarch64_st2_lane<mode>): Ditto.
15149 (aarch64_st3_lane<mode>): Ditto.
15150 (aarch64_st4_lane<mode>): Ditto.
15151 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
15152 to qmode. Add new mode parameter. Update uses.
15153 (__LD3_LANE_FUNC): Ditto.
15154 (__LD4_LANE_FUNC): Ditto.
15155 (__ST2_LANE_FUNC): Ditto.
15156 (__ST3_LANE_FUNC): Ditto.
15157 (__ST4_LANE_FUNC): Ditto.
15158
15159 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
15160
15161 * doc/invoke.texi (Language Independent Options): Rename node to
15162 Diagnostic Message Formatting Options.
15163
15164 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
15165
15166 PR ipa/66424.
15167 * lra-remat.c (operand_to_remat): Prevent using insns with input
15168 subregs processed separately by IRA.
15169
15170 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
15171
15172 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15173 straight loops.
15174 (single_imm_use): Check for iterator node.
15175 (num_imm_uses): Likewise.
15176 * tree-ssa-operands.c (has_zero_uses_1): Delete.
15177 (single_imm_use_1): Check for iterator node.
15178
15179 2015-07-21 Mike Frysinger <vapier@gentoo.org>
15180 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15181
15182 * configure.ac: Add check for new options in isl-0.15.
15183 * config.in, configure: Rebuilt.
15184 * graphite-blocking.c: Include <isl/constraint.h>
15185 * graphite-interchange.c, graphite-poly.c: Likewise.
15186 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15187 * graphite.c: Likewise.
15188 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15189 <isl/union_set.h>.
15190 * graphite-dependences.c: Include <isl/constraint.h>.
15191 (max_number_of_out_dimensions): Returns isl_stat.
15192 (extend_schedule_1): Likewise
15193 (extend_schedule): Corresponding changes.
15194 * graphite-optimize-isl.c: Include <isl/constraint.h> and
15195 <isl/union_set.h>.
15196 (getSingleMap): Change return type of isl_stat.
15197 (optimize_isl): Conditionally use
15198 isl_options_set_schedule_serialize_sccs.
15199 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15200 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15201
15202 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
15203
15204 PR target/66956
15205 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15206 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15207
15208 2015-07-21 Richard Biener <rguenther@suse.de>
15209
15210 PR tree-optimization/66948
15211 * genmatch.c (capture_info::walk_match): Also recurse to
15212 captures. Properly compute expr state from captures of
15213 captures.
15214 * match.pd: Add single-use guards to
15215 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15216
15217 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15218
15219 * config/nvptx/mkoffload.c (process): Add static destructor call.
15220
15221 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15222
15223 PR middle-end/66915
15224 * match.pd (A - B -> A + (-B)): Don't allow folding
15225 when type if a fixed-point type.
15226
15227 2015-07-20 DJ Delorie <dj@redhat.com>
15228
15229 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15230 (iorqi3_real): Likewise for set1.
15231
15232 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
15233
15234 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15235 for !TARGET_64BIT.
15236
15237 2015-07-20 Aditya Kumar <hiraditya@msn.com>
15238
15239 * graphite-isl-ast-to-gimple.c:
15240 Refactor so that each function can access 'region'. This will help
15241 maintain a parameter rename_map within a region.
15242
15243 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15244
15245 * config/rs6000/rs6000.md (*lt0_disi): New.
15246
15247 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15248
15249 PR target/66217
15250 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
15251 "available letters" comment.
15252 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15253 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15254 and_2rld_operand): Delete.
15255 (and_operand): Adjust.
15256 (rotate_mask_operator): New.
15257 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15258 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15259 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15260 extract_ME): Delete.
15261 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15262 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15263 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15264 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15265 rs6000_emit_2insn_and): New.
15266 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15267 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15268 includes_rldic_lshift_p, includes_rldicr_lshift_p,
15269 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15270 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15271 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15272 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15273 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15274 rs6000_emit_2insn_and): New.
15275 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15276 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15277 handling.
15278 <NOT>: Don't fall through to next case.
15279 <AND>: Handle the various rotate-and-mask cases directly.
15280 <IOR>: Always cost as one insn.
15281 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15282 (and<mode>3): Adjust expander for the new patterns.
15283 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15284 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15285 (*and<mode>3_imm_dot_shifted): New.
15286 (*and<mode>3_mask): Delete, rewrite as ...
15287 (and<mode>3_mask): ... New.
15288 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15289 (andsi3_internal0_nomc): Delete.
15290 (*andsi3_internal6): Delete.
15291 (*and<mode>3_2insn): New.
15292 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15293 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15294 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15295 *insvdi_internal3): Delete.
15296 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15297 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15298 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15299 *ior<mode>_mask): New.
15300 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15301 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15302 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15303 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15304 Delete.
15305 (ashr<mode>3): Delete expander.
15306 (*ashr<mode>3): Rename to ...
15307 (ashr<mode>3): ... This.
15308 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15309 (*rotldi3_internal4, *rotldi3_internal5 and split,
15310 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15311 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15312 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15313 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15314 (splitter for loading a mask): Adjust.
15315 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15316
15317 2015-07-20 Marek Polacek <polacek@redhat.com>
15318
15319 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15320 output_add_clobbers, output_added_clobbers_hard_reg_p,
15321 gen_rtx_scratch): Remove declarations.
15322
15323 2015-07-20 Marek Polacek <polacek@redhat.com>
15324
15325 PR c++/55095
15326 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15327
15328 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15329
15330 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15331 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15332
15333 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15334
15335 * combine.c (combine_simplify_rtx): Move simplification step
15336 before various transformations/substitutions.
15337
15338 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
15339
15340 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15341 (struct int_traits): Likewise.
15342
15343 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15344
15345 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15346 function to vmsdbgout_function_decl.
15347
15348 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15349
15350 PR target/66922
15351 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15352 from misaligned positions.
15353 (ix86_expand_pinsr): Reject insertions to misaligned positions.
15354
15355 2015-07-18 Sebastian Pop <s.pop@samsung.com>
15356
15357 PR middle-end/46851
15358 PR middle-end/60340
15359 * Makefile.in: Removed omega.o.
15360 * common.opt: Document flag fcheck-data-deps as deprecated.
15361 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15362 its associated params: omega-max-vars, omega-max-geqs,
15363 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15364 omega-max-keys, omega-eliminate-redundant-constraints.
15365 * doc/loop.texi: Remove all the section on Omega.
15366 * graphite-blocking.c: Include missing params.h: it used to be
15367 included through tree-data-ref.h and omega.h.
15368 * graphite-isl-ast-to-gimple.c: Same.
15369 * graphite-optimize-isl.c: Same.
15370 * graphite-sese-to-poly.c: Same.
15371 * graphite.c: Same.
15372 * omega.c: Remove.
15373 * omega.h: Remove.
15374 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15375 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15376 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15377 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15378 * passes.def: Remove pass_check_data_deps.
15379 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15380 (dump_conflict_function): Same.
15381 (dump_subscript): Same.
15382 (print_direction_vector): Same.
15383 (print_dir_vectors): Same.
15384 (print_lambda_vector): Same.
15385 (print_dist_vectors): Same.
15386 (dump_data_dependence_relation): Same.
15387 (dump_data_dependence_relations): Same.
15388 (dump_dist_dir_vectors): Same.
15389 (dump_ddrs): Same.
15390 (init_omega_eq_with_af): Removed.
15391 (omega_extract_distance_vectors): Removed.
15392 (omega_setup_subscript): Removed.
15393 (init_omega_for_ddr_1): Removed.
15394 (init_omega_for_ddr): Removed.
15395 (ddr_consistent_p): Removed.
15396 (compute_affine_dependence): Do not use omega to check data
15397 dependences.
15398 (compute_data_dependences_for_bb): Removed.
15399 (analyze_all_data_dependences): Removed.
15400 (tree_check_data_deps): Removed.
15401 * tree-data-ref.h: Do not include omega.h.
15402 (compute_data_dependences_for_bb): Removed.
15403 (tree_check_data_deps): Removed.
15404 * tree-ssa-loop.c (pass_check_data_deps): Removed.
15405 (make_pass_check_data_deps): Removed.
15406 * tree-ssa-phiopt.c: Include params.h.
15407 * tree-vect-data-refs.c: Same.
15408 * tree-vect-slp.c: Same.
15409
15410 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15411
15412 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15413 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
15414 (mem->fpreg splitters): Ditto.
15415 (general_operand->nonimmediate_operand splitter): Use explicit modes.
15416 Disable DFmode for TARGET_64BIT.
15417
15418 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
15419
15420 PR target/66906
15421 * config/i386/i386.c (ix86_expand_prologue): Replicate static
15422 chain on the stack.
15423
15424 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15425
15426 * config/nvptx/mkoffload.c (process): Constify host data.
15427 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15428 Constify host data.
15429 (generate_host_descr_file): Likewise.
15430
15431 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
15432 Sebastian Pop <s.pop@samsung.com>
15433
15434 PR middle-end/61929
15435 * graphite-dependences.c (add_pdr_constraints): Renamed
15436 pdr->extent to pdr->subscript_sizes.
15437 * graphite-interchange.c (build_linearized_memory_access): Add
15438 back all gcc_assert's that the "isl_int to isl_val conversion"
15439 patch has removed. Refactored.
15440 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15441 * graphite-poly.c (new_poly_dr): Same.
15442 (free_poly_dr): Same.
15443 * graphite-poly.h (struct poly_dr): Same.
15444 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15445 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15446 * graphite-scop-detection.h: Fix space.
15447 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15448 back all gcc_assert's removed by a previous patch.
15449 (wrap): Remove the_isl_ctx global variable that the same patch has
15450 added.
15451 (build_loop_iteration_domains): Same.
15452 (add_param_constraints): Same.
15453 (pdr_add_data_dimensions): Same. Refactored.
15454 (build_poly_dr): Renamed extent to subscript_sizes.
15455
15456 2015-07-17 Marek Polacek <polacek@redhat.com>
15457
15458 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15459 * match.pd: ... here.
15460
15461 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15462
15463 * config/nvptx/mkoffload.c (process): Constify target data.
15464 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15465 Constify target data.
15466 (generate_target_offloadend_file): Likewise.
15467
15468 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15469
15470 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15471 to allow renaming of PHI arguments on edges incoming from outer
15472 loop header, add corresponding check before start PHI iterator.
15473 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15474 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15475 with true force_vectorize. Set-up dominator for outer loop too.
15476 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
15477 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
15478 was marked with force_vectorize and has restricted cfg.
15479 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
15480 inner loop.
15481 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15482 do peeling for outer loops.
15483
15484 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
15485 Matthias Klose <doko@ubuntu.com>
15486
15487 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
15488 build-sysroot, sysroot from the `Miscenalleous configure options' to
15489 the `Directories' section and strip trailing `/' from with_sysroot.
15490 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
15491 * configure: Regenerated.
15492
15493 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15494
15495 PR target/66824
15496 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
15497 (TARGET_HARD_DF_REGS): Ditto.
15498 (TARGET_HARD_XF_REGS): Ditto.
15499 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
15500 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
15501 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
15502 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
15503 (*movsf_internal): Add alternatives 16 and 17. Enable
15504 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
15505
15506 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15507
15508 PR rtl-optimization/66891
15509 * calls.c (expand_call): Wrap precompute_register_parameters with
15510 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
15511
15512 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15513
15514 * config/nvptx/mkoffload.c (process): Constify mapping variables.
15515 Define target data struct and initialize it.
15516
15517 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
15518
15519 PR rtl-optimization/66626
15520 * ira.h (emit-rtl.h): Include.
15521 (non_spilled_static_chain_regno_p): New.
15522 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
15523 unless it is non spilled static chain pseudo.
15524 (assign_hard_rego): Spill memory profitable allocno unless it is
15525 non spilled static chain pseudo.
15526 (allocno_spill_priority_compare): Put non spilled static chain
15527 pseudo at the end of sorted array.
15528 (improve_allocation): Do nothing if we have static chain and
15529 non-local goto.
15530 (allocno__priority_compare_func): Put non spilled static chain
15531 pseudo at the beginning of sorted array.
15532 (move_spill_restore): Ignore non spilled static chain pseudo.
15533 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
15534 to non spilled static chain pseudo.
15535 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
15536 pseudo at the beginning of sorted array.
15537 (spill_for): Spill non spilled static chain pseudo last.
15538 * lra-constraints.c (lra_constraints): Remove static chain pseudo
15539 check for equivalence.
15540
15541 2015-07-16 Martin Liska <mliska@suse.cz>
15542
15543 PR ipa/66896.
15544 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
15545 dst_ctx if it does not exist.
15546
15547 2015-07-16 Martin Liska <mliska@suse.cz>
15548
15549 * hash-set.h (remove): New function.
15550 (iterator): New iteration class for hash_set.
15551
15552 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15553
15554 * genattrtab.c (make_canonical): Add a file_location parameter.
15555 Use fatal_at rather than fatal.
15556 (get_attr_value): Likewise. Update call to make_canonical.
15557 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15558 (make_internal_attr): Update calls accordingly.
15559
15560 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15561
15562 * read-md.h (message_with_line, error_with_line): Delete.
15563 * read-md.c (message_with_line, error_with_line): Delete.
15564 * gensupport.h: Include read-md.h.
15565 (md_rtx_info): New structure.
15566 (read_md_rtx): Use it. Return a bool success value.
15567 * gensupport.c (read_md_rtx): Likewise.
15568 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
15569 (main): Update after interface changes.
15570 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15571 (main): Update after interface changes.
15572 * genattrtab.c (insn_code_number): Delete.
15573 (optimize_attrs): Add a max_insn_code parameter and use it instead
15574 of insn_code_number.
15575 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15576 Use *_at rather than *_with_line functions.
15577 (gen_insn): Likewise.
15578 (gen_delay): Likewise.
15579 (gen_insn_reserv): Likewise.
15580 (gen_bypass): Take an md_rtx_info rather than an rtx.
15581 (main): Update after interface changes. Use a local max_insn_code
15582 variable instead of insn_code_number.
15583 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15584 an rtx. Use fatal_at rather than fatal.
15585 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15586 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15587 (gen_absence_set, gen_final_absence_set, gen_automaton)
15588 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15589 (main): Update after interface changes.
15590 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15591 and code number.
15592 (main): Update after interface changes.
15593 * genconditions.c (main): Use new read_md_rtx interface.
15594 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15595 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15596 (main): Update after interface changes.
15597 * genemit.c (insn_code_number, insn_index_number): Delete.
15598 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15599 Use fatal_at rather than fatal.
15600 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
15601 rather than fatal.
15602 (gen_split): Likewise.
15603 (main): Update after interface changes.
15604 * genextract.c (line_no): Delete.
15605 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15606 Update call to walk_rtx.
15607 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
15608 rather than message_with_line.
15609 (walk_rtx): Add an md_rtx_info argument. Update call to
15610 VEC_safe_set_locstr.
15611 (main): Update after interface changes.
15612 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15613 and lineno. Use error_at rather than separate message_with_line
15614 calls and have_error assignments.
15615 (main): Update after interface changes.
15616 * genmddump.c (main): Use new read_md_rtx interface.
15617 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15618 (main): Update after interface changes.
15619 * genoutput.c (next_code_number): Delete.
15620 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15621 (gen_peephole, gen_expand, gen_split): Likewise.
15622 (note_constraint): Likewise. Use *_at rather than *_with_line
15623 functions.
15624 (main): Update after interface changes.
15625 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15626 rtx and lineno.
15627 (main): Update after interface changes.
15628 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15629 than an rtx and lineno.
15630 (process_define_constraint): Likewise.
15631 (process_define_register_constraint): Likewise.
15632 (main): Update after interface changes.
15633 * genrecog.c (next_insn_code, pattern_lineno): Delete.
15634 (validate_pattern): Replace top-level rtx with an md_rtx_info.
15635 Use *_at rather than *_with_line functions.
15636 (match_pattern_2): Likewise.
15637 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15638 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15639 Use *_at rather than *_with_line functions.
15640 * gentarget-def.c (add_insn): New function.
15641 (main): Use it. Use new read_md_rtx interface.
15642
15643 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15644
15645 * gensupport.h (compute_test_codes): Take a file_location rather
15646 than a line number.
15647 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
15648 rather than *_with_line functions.
15649 (process_define_predicate): Update call to compute_test_codes.
15650 * genpreds.c (validate_exp): Take a file_location rather than a
15651 line number. Use *_at functions rather than *_with_line functions.
15652 (process_define_predicate): Update call to validate_exp.
15653 (constraint_data): Replace lineno field with a file_location.
15654 (add_constraint): Take a file_location rather than a line number.
15655 Use *_at functions rather than *_with_line functions. Fix error
15656 message for address constraints. Update after changes to
15657 validate_exp, constraint_data and compute_test_codes.
15658 (process_define_constraint): Update accordingly.
15659 (process_define_register_constraint): Likewise.
15660
15661 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15662
15663 * genoutput.c (data): Use a file_location to record the source
15664 position.
15665 (nothing): Delete.
15666 (idata, idata_end): Remove initialization.
15667 (constraint_data): Replace lineno with a file_location.
15668 (output_insn_data): Update after changes to data.
15669 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15670 (scan_operands): Likewise, using *_at rather than *_with_line
15671 functions.
15672 (process_template): Likewise.
15673 (validate_insn_alternatives): Likewise.
15674 (validate_insn_operands): Likewise.
15675 (validate_optab_operands): Likewise.
15676 (init_insn_for_nothing): Initialize idata and idata_end.
15677 (note_constraint): Update after changes to constraint_data,
15678 using at rather than with_line functions.
15679 (mdep_constraint_len): Take a file_location rather than a
15680 line number. Use at rather than with_line functions.
15681
15682 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15683
15684 * read-md.h (fatal_at): Declare.
15685 * read-md.c (fatal_at): New function.
15686 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15687 to record the source position.
15688 (check_attr_test): Take a file_location instead of a line number.
15689 Use fatal_at instead of fatal.
15690 (check_attr_value): Update after above changes, using "at"
15691 rather than "with_line" reporting functions.
15692 (convert_set_attr_alternative): Likewise.
15693 (gen_attr): Likewise.
15694 (check_defs): Likewise. Don't assign to read_md_filename.
15695 (gen_insn): Update initialization after above changes.
15696 (gen_delay): Likewise.
15697 (write_insn_cases): Print the filename for a define_peephole.
15698 (gen_insn_reserv): Take a line number as argument and update
15699 the call to check_attr_test.
15700 (main): Pass a line number to gen_insn_reserv.
15701
15702 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15703
15704 * read-md.h (file_location): New structure.
15705 (directive_handler_t): Take a file_location rather than a line number.
15706 (message_at, error_at): Declare.
15707 (read_skip_construct): Delete.
15708 * read-md.c (message_with_line_1): Replace with...
15709 (message_at_1): ...this new function.
15710 (message_at, error_at): New functions.
15711 (message_with_line, error_with_line): Update to use message_at_1.
15712 (handle_enum): Take a file_location rather than a line number
15713 and use error_at for error reporting.
15714 (handle_include): Likewise.
15715 (read_skip_construct): Likewise. Make static.
15716 (handle_file): Update after above changes. Pass a file_location
15717 rather than a line number to handle_directive.
15718 * gensupport.c (queue_elem): Replace separate filename and lineno
15719 with a file_location.
15720 (queue_pattern): Replace filename and lineno arguments with a
15721 file_location. Update after change to queue_elem.
15722 (process_define_predicate): Replace lineno argument with a
15723 file_location and use error_at for error reporting. Update
15724 after above changes.
15725 (process_rtx): Likewise.
15726 (subst_pattern_match): Likewise.
15727 (get_alternatives_number): Likewise.
15728 (alter_predicate_for_insn): Likewise.
15729 (rtx_handle_directive): Likewise.
15730 (is_predicable): Update after above changes, using error_at rather
15731 than error_with_line.
15732 (has_subst_attribute): Likewise.
15733 (identify_predicable_attribute): Likewise.
15734 (alter_attrs_for_subst_insn): Likewise.
15735 (process_one_cond_exec): Likewise.
15736 (process_substs_on_one_elem): Likewise.
15737 (process_define_subst): Likewise.
15738 (check_define_attr_duplicates): Likewise.
15739 (read_md_rtx): Update after change to queue_elem.
15740
15741 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15742
15743 * genoutput.c (next_index_number): Delete.
15744 (data): Remove index_number.
15745 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15746 (main): Remove manipulation of next_index_number.
15747
15748 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15749
15750 * genattrtab.c (check_attr_value): Remove handling of null attrs.
15751 (make_canonical): Likewise.
15752
15753 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
15754
15755 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15756 instead of adjust_address_nv.
15757 (restore_stack_nonlocal): Likewise.
15758 (nonlocal_goto): Likewise.
15759
15760 2015-07-16 Tom de Vries <tom@codesourcery.com>
15761
15762 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15763 not have a corresponding loop header phi.
15764
15765 2015-07-16 Tom de Vries <tom@codesourcery.com>
15766
15767 * tree-parloops.c (create_loads_for_reductions): Handle case that
15768 reduction is unused.
15769
15770 2015-07-16 Richard Biener <rguenther@suse.de>
15771
15772 PR tree-optimization/66894
15773 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15774 about deriving NE_EXPR from truncated values.
15775
15776 2015-07-16 Martin Liska <mliska@suse.cz>
15777
15778 * alloc-pool.h
15779 (object_allocator): Add new class.
15780 (pool_allocator::initialize): Use the underlying class.
15781 (pool_allocator::allocate): Likewise.
15782 (pool_allocator::remove): Likewise.
15783 (operator new): A new generic allocator.
15784 * asan.c (struct asan_mem_ref): Remove unused members.
15785 (asan_mem_ref_new): Replace new operator with
15786 object_allocator::allocate.
15787 (free_mem_ref_resources): Change deallocation.
15788 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
15789 with object_allocator.
15790 * config/sh/sh.c (add_constant): Replace new operator with
15791 object_allocator::allocate.
15792 (sh_reorg): Change call to a release method.
15793 * cselib.c (struct elt_list): Remove unused members.
15794 (new_elt_list): Replace new operator with
15795 object_allocator::allocate.
15796 (new_elt_loc_list): Likewise.
15797 (new_cselib_val): Likewise.
15798 (unchain_one_elt_list): Change delete operator with remove method.
15799 (unchain_one_elt_loc_list): Likewise.
15800 (unchain_one_value): Likewise.
15801 (cselib_finish): Release newly added static allocators.
15802 * cselib.h (struct cselib_val): Remove unused members.
15803 (struct elt_loc_list): Likewise.
15804 * df-problems.c (df_chain_alloc): Replace pool_allocator with
15805 object_allocator.
15806 * df-scan.c (struct df_scan_problem_data): Likewise.
15807 (df_scan_alloc): Likewise.
15808 * df.h (struct dataflow): Likewise.
15809 * dse.c (struct read_info_type): Likewise.
15810 (struct insn_info_type): Likewise.
15811 (struct dse_bb_info_type): Likewise.
15812 (struct group_info): Likewise.
15813 (struct deferred_change): Likewise.
15814 (get_group_info): Likewise.
15815 (delete_dead_store_insn): Likewise.
15816 (free_read_records): Likewise.
15817 (replace_read): Likewise.
15818 (check_mem_read_rtx): Likewise.
15819 (scan_insn): Likewise.
15820 (dse_step1): Likewise.
15821 (dse_step7): Likewise.
15822 * et-forest.c (struct et_occ): Remove unused members.
15823 (et_new_occ): Use allocate instead of new operator.
15824 (et_new_tree): Likewise.
15825 (et_free_tree): Call release method explicitly.
15826 (et_free_tree_force): Likewise.
15827 (et_free_pools): Likewise.
15828 (et_split): Use remove instead of delete operator.
15829 * et-forest.h (struct et_node): Remove unused members.
15830 * ipa-cp.c: Change pool_allocator to object_allocator.
15831 * ipa-inline-analysis.c: Likewise.
15832 * ipa-profile.c: Likewise.
15833 * ipa-prop.c: Likewise.
15834 * ipa-prop.h: Likewise.
15835 * ira-build.c (initiate_cost_vectors): Cast return value.
15836 (ira_allocate_cost_vector): Likewise.
15837 * ira-color.c (struct update_cost_record): Remove unused members.
15838 * lra-int.h (struct lra_live_range): Likewise.
15839 (struct lra_copy): Likewise.
15840 (struct lra_insn_reg): Likewise.
15841 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
15842 * lra.c (new_insn_reg): Replace new operator with allocate method.
15843 (free_insn_regs): Same for operator delete.
15844 (finish_insn_regs): Release new static allocator.
15845 (finish_insn_recog_data): Likewise.
15846 (lra_free_copies): Replace delete operator with remove method.
15847 (lra_create_copy): Replace operator new with allocate method.
15848 (invalidate_insn_data_regno_info): Same for remove method.
15849 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
15850 (free_debug_insn_changes): Replace delete operator with remove method.
15851 (replace_oldest_value_reg): Replace operator new with allocate method.
15852 (pass_cprop_hardreg::execute): Release new static variable.
15853 * sched-deps.c (sched_deps_init): Change pool_allocator to
15854 object_allocator.
15855 * sel-sched-ir.c: Likewise.
15856 * sel-sched-ir.h: Likewise.
15857 * stmt.c (expand_case): Likewise.
15858 (expand_sjlj_dispatch_table): Likewise.
15859 * tree-sra.c (struct access): Remove unused members.
15860 (struct assign_link): Likewise.
15861 (sra_deinitialize): Release newly added static pools.
15862 (create_access_1):Replace operator new with allocate method.
15863 (build_accesses_from_assign): Likewise.
15864 (create_artificial_child_access): Likewise.
15865 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
15866 pool_allocator to object_allocator.
15867 * tree-ssa-pre.c: Likewise.
15868 * tree-ssa-reassoc.c: Likewise.
15869 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15870 * tree-ssa-strlen.c: Likewise.
15871 * tree-ssa-structalias.c: Likewise.
15872 * var-tracking.c (onepart_pool_allocate): New function.
15873 (unshare_variable): Use the newly added function.
15874 (variable_merge_over_cur): Likewise.
15875 (variable_from_dropped): Likewise.
15876 (variable_was_changed): Likewise.
15877 (set_slot_part): Likewise.
15878 (emit_notes_for_differences_1): Likewise.
15879 (vt_finalize): Release newly added static pools.
15880
15881 2015-07-16 Martin Jambor <mjambor@suse.cz>
15882
15883 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
15884 all uses. Fix two typos in its general comment.
15885 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
15886
15887 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
15888
15889 * config/i386/linux-common.h (LINK_MPX): New.
15890 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15891 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15892 indicating '-z bndplt' support by linker.
15893 * configure: Regenerate.
15894 * config.in: Regenerate.
15895
15896 2015-07-16 Richard Biener <rguenther@suse.de>
15897
15898 * fold-const.c (fold_widened_comparison): Remove.
15899 (fold_sign_changed_comparison): Likewise.
15900 (fold_comparison): Move widened and sign-changed comparison
15901 simplification ...
15902 * match.pd: ... to patterns here.
15903 * generic-match-head.c: Include target.h.
15904 * gimple-match-head.c: Likewise.
15905
15906 2015-07-16 Richard Biener <rguenther@suse.de>
15907
15908 * tree-ssa-dom.c (dom_valueize): New function.
15909 (record_temporary_equivalences): Also record equivalences
15910 for dominating stmts that have uses of equivalences we are
15911 about to record.
15912
15913 2015-07-16 Bin Cheng <bin.cheng@arm.com>
15914
15915 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15916 add_autoinc_candidates.
15917 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15918 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15919 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15920 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15921 Call new function.
15922 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15923 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15924 Remove parameter struct iv*. Call add_autoinc_candidates here.
15925 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15926 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15927 Call new function.
15928 (find_iv_candidates): Call new functions.
15929
15930 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
15931
15932 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15933 uninitialized-variable warning.
15934
15935 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
15936
15937 PR target/65249
15938 * config/sh/sh.md (movdi): Split simple reg move to two movsi
15939 when the destination is R0.
15940
15941 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
15942
15943 PR target/66866
15944 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15945 * config/i386/i386.c (ix86_expand_pextr): New function.
15946 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
15947 for non-lowpart subregs.
15948 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15949 (insv<mode>): Use SWI248 mode iterator.
15950 (insv<mode>_1): Ditto.
15951
15952 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15953 Sebastian Pop <s.pop@samsung.com>
15954
15955 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15956 iterator to use_stmt.
15957
15958 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15959 Sebastian Pop <s.pop@samsung.com>
15960
15961 * graphite-scop-detection.c (build_scops_1): Discard scops for
15962 which entry==exit.
15963
15964 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15965 Sebastian Pop <s.pop@samsung.com>
15966
15967 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15968 case of a return statement in scop.
15969
15970 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15971 Sebastian Pop <s.pop@samsung.com>
15972
15973 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15974 INTEGER_TYPE parameters.
15975 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15976 VECTOR_CST in scan_tree_for_params.
15977 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15978
15979 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15980
15981 * gimple-pretty-print.h: Don't include pretty-print.h.
15982 * tree-streamer.h: Don't include lto-streamer.h.
15983 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
15984 * gimple-streamer-in.c: Remove redundant includes.
15985 * gimple-streamer-out.c: Likewise.
15986 * ipa-devirt.c: Likewise.
15987 * ipa-icf.c: Likewise.
15988 * ipa-inline-analysis.c: Likewise.
15989 * ipa-polymorphic-call.c: Likewise.
15990 * ipa-profile.c: Likewise.
15991 * ipa-prop.c: Likewise.
15992 * ipa-pure-const.c: Likewise.
15993 * lto-cgraph.c: Likewise.
15994 * lto-streamer-in.c: Likewise.
15995 * lto-streamer-out.c: Likewise.
15996 * lto-streamer.c: Likewise.
15997 * tree-streamer-in.c: Likewise.
15998 * tree-streamer-out.c: Likewise.
15999 * tree-streamer.c: Likewise.
16000
16001 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
16002
16003 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
16004 include input.h.
16005 * opts.c: Remove multiline #include comment.
16006
16007 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
16008
16009 * config/nvptx/mkoffload.c (process): Add C++ protection to
16010 emitted code.
16011
16012 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16013
16014 PR target/66854
16015 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
16016 null before IEEE 128-bit floating point support patch.
16017
16018 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16019
16020 * simplify-rtx.c (simplify_ternary_operation): Add simplification
16021 for (!c) != {0,...,0} ? a : b for vector modes.
16022
16023 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
16024 Martin Jambor <mjambor@suse.cz>
16025
16026 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
16027 struct func_body_info* instead of struct ipa_node_params*, expecting
16028 fbi->info to be filled in. Replace throughout. Adjust call to
16029 ipa_load_from_parm_agg.
16030 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
16031 instead of struct ipa_node_params*. Adjust calls to other functions
16032 so that they pass either fbi or fbi->info.
16033 (set_switch_stmt_execution_predicate): Likewise.
16034 (will_be_nonconstant_predicate): Likewise.
16035 (compute_bb_predicates): Likewise.
16036 (estimate_function_body_sizes): Move asserts earlier. Fill in
16037 struct func_body_info, replace parms_info with fbi.info. Adjust
16038 calls to functions that now accept struct func_body_info.
16039 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
16040 (struct func_body_info): Likewise.
16041 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
16042 remove static. Adjust callers.
16043 (ipa_load_from_parm_agg): Remove.
16044 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
16045 (func_body_info): Likewise.
16046 (ipa_load_from_parm_agg): Adjust prototype.
16047
16048 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16049
16050 * gensupport.c (rtx_handle_directive): Adjust.
16051 * read-rtl.c (apply_iterators): Take vector to add rtxs to
16052 instead of expr list rtx.
16053 (add_define_attr_for_define_subst): Likewise.
16054 (add_define_subst_attr): Likewise.
16055 (read_subst_mapping): Likewise.
16056 (read_rtx): Likewise.
16057 * rtl.h (read_rtx): Adjust.
16058
16059 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16060
16061 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
16062
16063 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16064
16065 PR target/58066
16066 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
16067 (*tls_local_dynamic_base_64_<mode>): Ditto.
16068 (*tls_local_dynamic_base_64_largepic): Ditto.
16069 (tls_global_dynamic_64_<mode>): Update expander pattern.
16070 (tls_local_dynamic_base_64_<mode>): Ditto.
16071
16072 2015-07-15 Richard Biener <rguenther@suse.de>
16073
16074 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
16075 and bool_var == 1 -> bool_var simplifications ...
16076 * match.pd: ... to patterns here. Factor out negate_expr_p
16077 cases from the A - B -> A + (-B) patterns as negate_expr_p
16078 predicate and add a -(A + B) -> (-B) - A pattern.
16079
16080 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16081
16082 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
16083
16084 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
16085 Robert Suchanek <robert.suchanek@imgtec.com>
16086
16087 * config/mips/mips.c (mips_int_mask): New enum.
16088 (mips_shadow_set): Likewise.
16089 (int_mask): New variable.
16090 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
16091 (machine_function): Add int_mask and use_shadow_register_set.
16092 (mips_attribute_table): Add attribute handlers for interrupt and
16093 use_shadow_register_set.
16094 (mips_interrupt_mask): New static function.
16095 (mips_handle_interrupt_attr): Likewise.
16096 (mips_handle_use_shadow_register_set_attr): Likewise.
16097 (mips_use_shadow_register_set): Change return type to enum
16098 mips_shadow_set. Add argument handling for use_shadow_register_set
16099 attribute.
16100 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
16101 compare with mips_shadow_set enum.
16102 (mips_compute_frame_info): Add interrupt mask and
16103 use_shadow_register_set to per-function information structure.
16104 Add a stack slot for EPC unconditionally.
16105 (mips_expand_prologue): Compare use_shadow_register_set value
16106 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
16107 masked interrupt register but in EIC mode use K0 and save Cause in K0.
16108 EPC saved and restored unconditionally. Use PMODE_INSN macro when
16109 copying the stack pointer from the shadow register set.
16110 * config/mips/mips.h (SR_IM0): New define.
16111 * config/mips/mips.md (mips_rdpgpr): Rename to...
16112 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
16113 * doc/extend.texi (Declaring Attributes of Functions): Document
16114 optional arguments for interrupt and use_shadow_register_set
16115 attributes.
16116
16117 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
16118
16119 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
16120 interrupt attribute.
16121 (mips_expand_prologue): Disable the floating point unit in an ISR.
16122 * config/mips/mips.h (SR_COP1): New define.
16123
16124 2015-07-15 Richard Biener <rguenther@suse.de>
16125
16126 * genmatch.c (parser::peek, parser::peek_ident): Add argument
16127 to tell how many tokens to peek ahead (default 1).
16128 (parser::eat_token, parser::eat_ident): Return token consumed.
16129 (parser::parse_result): Parse new switch statement.
16130 * match.pd: Use case statements where appropriate.
16131
16132 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16133
16134 PR rtl-optimization/58066
16135 * calls.c (expand_call): Precompute register parameters before stack
16136 alignment is performed.
16137
16138 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
16139
16140 PR rtl-optimization/66838
16141 * postreload.c (reload_cse_move2add): Also process
16142 CALL_INSN_FUNCTION_USAGE when resetting information of
16143 call-clobbered registers.
16144
16145 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16146 Cesar Philippidis <cesar@codesourcery.com>
16147 Chung-Lin Tang <cltang@codesourcery.com>
16148
16149 * config/nios2/constraints.md (U, v): New constraints.
16150 * config/nios2/predicates.md (rdprs_dcache_operand): New.
16151 (ldstex_memory_operand): New.
16152 * config/nios2/sync.md: New file.
16153 * config/nios2/nios2.md (unspecv): Add new builtin function
16154 UNSPECV codes.
16155 (rdprs, flushd, flushda, wrpie, eni): New patterns.
16156 (top-level): Include sync.md.
16157 * config/nios2/nios2.c (N2_FTYPES): Add function types for
16158 new builtins.
16159 (N2_BUILTINS): Add arch field setting, add new builtins.
16160 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16161 for arch field.
16162 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16163 Also handle ldex/stex/ldsex/stsex builtins.
16164 (nios2_expand_rdprs_builtin): New function.
16165 (nios2_expand_cache_builtin): New function.
16166 (nios2_expand_wrpie_builtin): New function.
16167 (nios2_expand_eni_builtin): New function.
16168 (nios2_expand_builtin): Add arch field handling and new builtin
16169 cases.
16170 * doc/extend.texi (Altera Nios II Built-in Functions): Document
16171 new builtins.
16172 * doc/md.texi (Machine Constraints): Document U and v constraints.
16173
16174 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16175 Cesar Philippidis <cesar@codesourcery.com>
16176 Chung-Lin Tang <cltang@codesourcery.com>
16177
16178 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16179 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16180 callee_save_reg_size and uses_anonymous_args fields.
16181 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16182 (nios2_create_cfa_notes): New function.
16183 (nios2_adjust_stack): New function for adjusting stack.
16184 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16185 Use nios2_adjust_stack.
16186 (nios2_expand_epilogue): Likewise.
16187 (nios2_expand_return): New function.
16188 (nios2_can_use_return_insn): Update for CDX pop.n usage.
16189 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16190 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16191 * config/nios2/nios2.md (return): Use nios2_expand_return.
16192
16193 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16194 Cesar Philippidis <cesar@codesourcery.com>
16195 Chung-Lin Tang <cltang@codesourcery.com>
16196
16197 * config/nios2/predicates.md (pop_operation): New.
16198 (ldwm_operation, stwm_operation): New.
16199 (nios2_hard_register_operand): New.
16200 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16201 (ldstwm_operation_p): Declare.
16202 (gen_ldstwm_peep): Declare.
16203 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16204 (base_reg_adjustment_p): New.
16205 (pop_operation_p): New.
16206 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16207 (nios2_ldstwm_regset_p): New.
16208 (ldstwm_operation_p): New.
16209 (gen_ldst): New.
16210 (nios2_ldst_parallel): New.
16211 (struct ldswm_operand): Declare.
16212 (compare_ldstwm_operands): New.
16213 (can_use_cdx_ldstw): New.
16214 (gen_ldstwm_peep): New.
16215 * config/nios2/nios2-ldstwm.sml: New.
16216 * config/nios2/nios2.md: Include ldstwm.md.
16217 * config/nios2/ldstwm.md: Generated.
16218
16219 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16220 Cesar Philippidis <cesar@codesourcery.com>
16221 Chung-Lin Tang <cltang@codesourcery.com>
16222
16223 * config/nios2/nios2.h (LABEL_ALIGN): Define.
16224 (REG_ALLOC_ORDER): Define.
16225 (ADJUST_REG_ALLOC_ORDER): Define.
16226 (HONOR_REG_ALLOC_ORDER): Define.
16227 (CDX_REG_P): Define.
16228 (ANDCLEAR_INT): Define.
16229 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16230 (nios2_label_align): Declare.
16231 (nios2_cdx_narrow_form_p): Declare.
16232 (nios2_adjust_reg_alloc_order): Declare.
16233 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16234 operation.
16235 (nios2_large_unspec_reloc_p): New function, split from...
16236 (nios2_legitimate_pic_operand_p): ...here.
16237 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16238 (nios2_print_operand_punct_valid_p): New.
16239 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
16240 (split_mem_address): New.
16241 (split_alu_insn): New.
16242 (cdxreg): New.
16243 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16244 (enum nios2_add_insn_kind): New.
16245 (nios2_add_insn_names, nios2_add_insn_narrow): New.
16246 (nios2_add_insn_classify): New.
16247 (nios2_add_insn_asm): New.
16248 (nios2_cdx_narrow_form_p): New.
16249 (label_align, min_labelno, max_labelno): New.
16250 (nios2_reorg): New.
16251 (nios2_label_align): New.
16252 (nios2_adjust_reg_alloc_order): New.
16253 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16254 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16255 * config/nios2/constraints.md (P): New constraint.
16256 * config/nios2/predicates.md (const_and_operand): New.
16257 (and_operand): New.
16258 (stack_memory_operand): New.
16259 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16260 (length): Update to use nios2_cdx_narrow_form_p().
16261 (type): Add new insn type values.
16262 (control, alu, st, ld, shift): Update insn reservations with
16263 new insn type values.
16264 (*high, *lo_sum): Define new insn patterns for constant generation.
16265 (movqi_internal, movhi_internal, movsi_internal): Reduce
16266 alternatives, update asm template to handle CDX variants, update
16267 type attributes.
16268 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16269 template, update type attributes.
16270 (extendhisi2, extendqi<mode>2): Likewise.
16271 (addsi3): Change to use function for asm string.
16272 (subsi3): Add CDX notation to asm template, update type attributes.
16273 (negsi3, one_cmplsi3): Likewise.
16274 (andsi3): New pattern, specialized from logical patterns.
16275 (<code>si3): Remove and case, combine alternatives, update asm
16276 template.
16277 (<shift_op>si3): Add CDX notation, update type attributes.
16278 (rotrsi3): Update type attribute.
16279 (*merge, extzv, insv): New insn patterns.
16280 (return): Change to define_expand.
16281 (simple_return): Add CDX notation, update type attributes.
16282 (indirect_jump): Add CDX notation.
16283 (jump): Update asm cases, update length attribute expression.
16284 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16285 (nios2_cbranch): Update asm cases and length attribute expression
16286 to handle CDX variants.
16287 (nios2_cmp<code>): Update asm template.
16288 (nop): Add CDX notation, update type attributes.
16289 (trap): Add CDX notation.
16290 (ctrapsi4): Update asm cases and length attribute expression to
16291 handle CDX variant.
16292 * doc/md.texi (Machine Constraints): Document P constraint.
16293
16294 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16295 Cesar Philippidis <cesar@codesourcery.com>
16296 Chung-Lin Tang <cltang@codesourcery.com>
16297
16298 * config/nios2/nios2.h (SMALL_INT12): New macro.
16299 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16300 (nios2_valid_addr_expr_p): Use it.
16301 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16302 with implicit "io" instructions on R2.
16303 * config/nios2/constraints.md (w): New constraint.
16304 * config/nios2/predicates.md (ldstio_memory_operand): New.
16305 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16306 operand predicate and constraint.
16307 (ld<bh>io_signed, st<bhw>io>): Likewise.
16308 * doc/md.texi (Machine Constraints): Document w constraint.
16309
16310 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16311 Cesar Philippidis <cesar@codesourcery.com>
16312 Chung-Lin Tang <cltang@codesourcery.com>
16313
16314 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16315 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16316 Nios II architecture level.
16317 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16318 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16319 (OPTION_DEFAULT_SPECS): Define.
16320 (ASM_SPEC): Add -march= spec strings.
16321 * config/nios2/nios2.c (nios2_option_override): Check for
16322 conflicts involving new options.
16323 * config.gcc (nios2*-*-*): Support --with-arch=.
16324 * doc/invoke.texi (Option Summary, Nios II Options): Document
16325 -march=, -mbmx, and -mcdx.
16326
16327 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
16328
16329 PR rtl-optimization/66626
16330 * lra-constraints.c (lra_constraints): Prevent equivalence
16331 substitution for static chain pseudo in functions with nonlocal
16332 goto.
16333
16334 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16335
16336 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16337 (nios2_emit_stack_limit_check): Add size parameter. Handle
16338 -fstack-limit-symbol as well as -fstack-limit-register.
16339 (nios2_expand_prologue): Emit only a single stack limit check,
16340 even if multiple stack adjustments are required.
16341 (nios2_option_override): Diagnose unsupported combination of -fpic
16342 and -stack-limit-symbol.
16343
16344 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
16345
16346 * Makefile.in (top_srcdir): New.
16347 * configure.ac: Use AM_ZLIB.
16348 * configure: Regeneated.
16349
16350 2015-07-14 Matthias Klose <doko@ubuntu.com>
16351
16352 PR target/66840
16353 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16354
16355 2015-07-14 Richard Biener <rguenther@suse.de>
16356
16357 PR tree-optimization/66863
16358 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16359 what we record for conversion use stmt lhs inequalities.
16360
16361 2015-07-14 Richard Biener <rguenther@suse.de>
16362
16363 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16364 (decision_tree::gen_gimple): Likewise.
16365
16366 2015-07-14 Tom de Vries <tom@codesourcery.com>
16367
16368 * gcc.c (greater_than_spec_func): Declare forward.
16369 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16370 -ftree-parallelize-loops={0,1}.
16371 (static_spec_functions): Add greater_than_spec_func function with name
16372 "gt".
16373 (greater_than_spec_func): New function.
16374
16375 2015-07-14 Richard Biener <rguenther@suse.de>
16376
16377 * tree-ssa-dom.c (record_temporary_equivalences): Merge
16378 wideing type conversion case from record_equivalences_from_incoming_edge
16379 and use record_equality to record equivalences.
16380 (record_equivalences_from_incoming_edge): Call
16381 record_temporary_equivalences.
16382
16383 2015-07-14 Richard Biener <rguenther@suse.de>
16384
16385 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16386 (struct if_expr): New.
16387 (struct with_expr): Likewise.
16388 (is_a_helper): Add helpers for if_expr and with_expr.
16389 (struct simplify): Add simplify_kind enum and member. Remove
16390 ifexpr_vec member.
16391 (simplify::simplify): Adjust.
16392 (lower_commutative): Adjust.
16393 (lower_opt_convert): Likewise.
16394 (lower_cond): Likewise.
16395 (replace_id): Handle with_expr and if_expr.
16396 (lower_for): Adjust.
16397 (dt_simplify::gen_1): New recursive worker, split out from ...
16398 (dt_simplify::gen): ... here. Deal with if and with expansion
16399 recursively.
16400 (capture_info::capture_info): Take context argument
16401 (capture_info::walk_result): Only analyze specific result.
16402 (parser::parse_result): New function.
16403 (parser::parse_simplify): Adjust to parse ifs with then end
16404 else case.
16405 (parser::parse_if): Simplify.
16406 (parser::parse_pattern): Pass down simplify kind.
16407 * match.pd: Convert if structure to new syntax.
16408
16409 2015-07-13 Marek Polacek <polacek@redhat.com>
16410
16411 * rtl.c (rtx_equal_p_cb): Fix typo.
16412
16413 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
16414
16415 * omega.h: Don't include config.h, don't include params.h again if
16416 omega.h has already been included.
16417 * graphite-poly.h: Include sese.h.
16418 * graphite.c: Don't include sese.h, remove needless includes and
16419 minimize includes outside #ifdef HAVE_isl block.
16420 * graphite-blocking.c: Don't include sese.h, remove needless includes,
16421 and wrap entire file in #ifdef HAVE_isl
16422 * graphite-dependences.c: Likewise.
16423 * graphite-interchange.c: Likewise.
16424 * graphite-isl-ast-to-gimple.c: Likewise.
16425 * graphite-optimize-isl.c: Likewise.
16426 * graphite-poly.c: Likewise.
16427 * graphite-scop-detection.c: Likewise.
16428 * graphite-sese-to-poly.c: Likewise.
16429
16430 2015-07-13 Tom de Vries <tom@codesourcery.com>
16431
16432 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16433
16434 2015-07-13 Renlin Li <renlin.li@arm.com>
16435
16436 PR rtl/66556
16437 * simplify-rtx.c (simplify_const_relational_operation): Add
16438 side_effects_p checks.
16439
16440 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
16441
16442 * bitmap.h: Fix double word typos.
16443 * builtins.c: Same.
16444 * calls.c: Same.
16445 * cfgloopmanip.c: Same.
16446 * cgraph.c: Same.
16447 * cgraph.h: Same.
16448 * cgraphclones.c: Same.
16449 * combine.c: Same.
16450 * config/aarch64/aarch64-protos.h: Same.
16451 * config/aarch64/aarch64.c: Same.
16452 * config/aarch64/aarch64.md: Same.
16453 * config/arm/arm.md: Same.
16454 * config/arm/arm1020e.md: Same.
16455 * config/arm/arm1026ejs.md: Same.
16456 * config/arm/arm926ejs.md: Same.
16457 * config/arm/fa526.md: Same.
16458 * config/arm/fa606te.md: Same.
16459 * config/arm/fa626te.md: Same.
16460 * config/arm/fa726te.md: Same.
16461 * config/arm/fmp626.md: Same.
16462 * config/darwin.c: Same.
16463 * config/epiphany/epiphany.c: Same.
16464 * config/frv/frv.c: Same.
16465 * config/ft32/ft32.c: Same.
16466 * config/gnu-user.h: Same.
16467 * config/h8300/constraints.md: Same.
16468 * config/i386/i386.c: Same.
16469 * config/i386/i386.md: Same.
16470 * config/iq2000/iq2000.md: Same.
16471 * config/mips/mips.c: Same.
16472 * config/mmix/mmix.md: Same.
16473 * config/moxie/moxie.c: Same.
16474 * config/nds32/nds32.md: Same.
16475 * config/pa/pa.h: Same.
16476 * config/rs6000/aix.h: Same.
16477 * config/rs6000/rs6000.h: Same.
16478 * config/sh/sh.c: Same.
16479 * config/tilegx/tilegx.md: Same.
16480 * config/tilepro/gen-mul-tables.cc: Same.
16481 * cse.c: Same.
16482 * dbxout.c: Same.
16483 * doc/invoke.texi: Same.
16484 * dse.c: Same.
16485 * dwarf2out.c: Same.
16486 * final.c: Same.
16487 * gcc.c: Same.
16488 * genmatch.c: Same.
16489 * gimplify.c: Same.
16490 * hash-table.h: Same.
16491 * internal-fn.c: Same.
16492 * ipa-cp.c: Same.
16493 * ipa-devirt.c: Same.
16494 * ipa-icf.c: Same.
16495 * ipa-icf.h: Same.
16496 * ipa-profile.c: Same.
16497 * ipa-prop.c: Same.
16498 * ipa-prop.h: Same.
16499 * ira.c: Same.
16500 * omp-low.c: Same.
16501 * reg-stack.c: Same.
16502 * regcprop.c: Same.
16503 * reorg.c: Same.
16504 * rtl.h: Same.
16505 * sbitmap.h: Same.
16506 * tree-eh.c: Same.
16507 * tree-inline.c: Same.
16508 * tree-sra.c: Same.
16509 * tree-ssa-dom.c: Same.
16510 * tree-ssa-loop-ivopts.c: Same.
16511 * tree-ssa-structalias.c: Same.
16512 * tree-ssa-tail-merge.c: Same.
16513 * tree-ssa-ter.c: Same.
16514 * tree-ssa-threadupdate.c: Same.
16515 * tree-ssa-uninit.c: Same.
16516 * tree-ssanames.c: Same.
16517 * tree-vect-loop-manip.c: Same.
16518 * tree-vrp.c: Same.
16519 * tree.c: Same.
16520 * valtrack.c: Same.
16521 * vec.h: Same.
16522
16523 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16524
16525 PR middle-end/66726
16526 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
16527 tree_ssa_phiopt_worker): Call it.
16528
16529 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16530
16531 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
16532 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
16533 REG_EQUAL note.
16534
16535 2015-07-11 Marek Polacek <polacek@redhat.com>
16536
16537 PR middle-end/66353
16538 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
16539 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
16540 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
16541 rather than bb_has_abnormal_call_pred.
16542 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
16543 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
16544 rather than bb_has_abnormal_call_pred.
16545
16546 2015-07-10 Anatoly Sokolov <aesok@post.ru>
16547
16548 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16549 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
16550 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16551 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
16552 v850_legitimate_address_p): New functions.
16553 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16554
16555 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
16556
16557 PR target/66819
16558 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16559 indirect sibcall with register arguments if register available
16560 for argument passing.
16561 (init_cumulative_args): Set cfun->machine->arg_reg_available
16562 to (cum->nregs > 0) or to true if function has a variable
16563 argument list.
16564 (function_arg_advance_32): Set cfun->machine->arg_reg_available
16565 to false if cum->nregs <= 0.
16566 * config/i386/i386.h (machine_function): Add arg_reg_available.
16567
16568 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16569
16570 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16571 and gen_higpart instead of gen_rtx_SUBREG.
16572 * config/i386/i386.md
16573 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16574 (read-modify peephole2): Use gen_lowpart instead of
16575 gen_rtx_SUBREG for operand 5.
16576
16577 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16578
16579 * config/tilepro/gen-mul-tables.cc (main): Change include list for
16580 generated files.
16581 * config/tilepro/mul-tables.c: Regenerate.
16582 * config/tilegx/mul-tables.c: Regenerate.
16583
16584 2015-07-10 Richard Biener <rguenther@suse.de>
16585
16586 * fold-const.c (distribute_bit_expr): Remove.
16587 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16588 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16589 to A & (B | C) and simplifying A << C1 << C2 to ...
16590 * match.pd: ... patterns here.
16591
16592 2015-07-10 Jiong Wang <jiong.wang@arm.com>
16593
16594 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16595 Mark mem as READONLY and NOTRAP for PIC symbol.
16596
16597 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16598
16599 * gimple-predict.h: New file.
16600 (gimple_predict_predictor, gimple_predict_set_predictor,
16601 gimple_predict_outcome, gimple_predict_set_outcome,
16602 gimple_build_predict): Relocate here.
16603 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16604 gimple_predict_outcome, gimple_predict_set_outcome): Move to
16605 gimple-predict.h.
16606 * gimple.c (gimple_build_predict): Move to gimple-predict.h
16607 * basic-block.h: Don't include cfghooks.h.
16608 * backend.h: Don't include predict.h.
16609 * cfghooks.h: Include predict.h.
16610 * gimple-pretty-print.c: Include gimple-predict.h.
16611 * gimplify.c: Likwise.
16612 * predict.c: Adjust includes.
16613 * tree-inline.c: Likewise.
16614 * asan.c: Likewise.
16615 * auto-inc-dec.c: Likewise.
16616 * auto-profile.c: Likewise.
16617 * bb-reorder.c: Likewise.
16618 * builtins.c: Likewise.
16619 * caller-save.c: Likewise.
16620 * calls.c: Likewise.
16621 * cfganal.c: Likewise.
16622 * cfgbuild.c: Likewise.
16623 * cfg.c: Likewise.
16624 * cfgcleanup.c: Likewise.
16625 * cfgexpand.c: Likewise.
16626 * cfghooks.c: Likewise.
16627 * cfgloopanal.c: Likewise.
16628 * cfgloop.c: Likewise.
16629 * cfgloopmanip.c: Likewise.
16630 * cfgrtl.c: Likewise.
16631 * cgraph.c: Likewise.
16632 * cgraphunit.c: Likewise.
16633 * combine.c: Likewise.
16634 * cprop.c: Likewise.
16635 * cse.c: Likewise.
16636 * dce.c: Likewise.
16637 * dojump.c: Likewise.
16638 * dse.c: Likewise.
16639 * except.c: Likewise.
16640 * expmed.c: Likewise.
16641 * expr.c: Likewise.
16642 * final.c: Likewise.
16643 * fold-const.c: Likewise.
16644 * function.c: Likewise.
16645 * fwprop.c: Likewise.
16646 * gcc-plugin.h: Likewise.
16647 * gcse.c: Likewise.
16648 * genattrtab.c: Likewise.
16649 * genemit.c: Likewise.
16650 * gengtype.c: Likewise.
16651 * genopinit.c: Likewise.
16652 * genoutput.c: Likewise.
16653 * genpreds.c: Likewise.
16654 * genrecog.c: Likewise.
16655 * gimple-fold.c: Likewise.
16656 * gimple-iterator.c: Likewise.
16657 * gimple-ssa-isolate-paths.c: Likewise.
16658 * gimple-ssa-strength-reduction.c: Likewise.
16659 * graph.c: Likewise.
16660 * graphite-blocking.c: Likewise.
16661 * graphite.c: Likewise.
16662 * graphite-dependences.c: Likewise.
16663 * graphite-interchange.c: Likewise.
16664 * graphite-isl-ast-to-gimple.c: Likewise.
16665 * graphite-optimize-isl.c: Likewise.
16666 * graphite-poly.c: Likewise.
16667 * graphite-scop-detection.c: Likewise.
16668 * graphite-sese-to-poly.c: Likewise.
16669 * haifa-sched.c: Likewise.
16670 * ifcvt.c: Likewise.
16671 * internal-fn.c: Likewise.
16672 * ipa-cp.c: Likewise.
16673 * ipa-profile.c: Likewise.
16674 * ipa-split.c: Likewise.
16675 * ipa-utils.c: Likewise.
16676 * ira-build.c: Likewise.
16677 * ira-color.c: Likewise.
16678 * ira-conflicts.c: Likewise.
16679 * ira-costs.c: Likewise.
16680 * ira-emit.c: Likewise.
16681 * ira-lives.c: Likewise.
16682 * jump.c: Likewise.
16683 * loop-doloop.c: Likewise.
16684 * loop-init.c: Likewise.
16685 * loop-invariant.c: Likewise.
16686 * loop-unroll.c: Likewise.
16687 * lower-subreg.c: Likewise.
16688 * lra-assigns.c: Likewise.
16689 * lra.c: Likewise.
16690 * lra-coalesce.c: Likewise.
16691 * lra-constraints.c: Likewise.
16692 * lra-lives.c: Likewise.
16693 * lto-cgraph.c: Likewise.
16694 * lto-streamer-in.c: Likewise.
16695 * mode-switching.c: Likewise.
16696 * modulo-sched.c: Likewise.
16697 * omp-low.c: Likewise.
16698 * optabs.c: Likewise.
16699 * passes.c: Likewise.
16700 * postreload.c: Likewise.
16701 * postreload-gcse.c: Likewise.
16702 * profile.c: Likewise.
16703 * recog.c: Likewise.
16704 * regstat.c: Likewise.
16705 * reload1.c: Likewise.
16706 * reorg.c: Likewise.
16707 * rtlanal.c: Likewise.
16708 * sched-ebb.c: Likewise.
16709 * sel-sched-ir.c: Likewise.
16710 * sese.c: Likewise.
16711 * shrink-wrap.c: Likewise.
16712 * simplify-rtx.c: Likewise.
16713 * stmt.c: Likewise.
16714 * store-motion.c: Likewise.
16715 * tracer.c: Likewise.
16716 * trans-mem.c: Likewise.
16717 * tree-call-cdce.c: Likewise.
16718 * tree-cfg.c: Likewise.
16719 * tree-cfgcleanup.c: Likewise.
16720 * tree-chkp.c: Likewise.
16721 * tree-complex.c: Likewise.
16722 * tree-eh.c: Likewise.
16723 * tree-if-conv.c: Likewise.
16724 * tree-loop-distribution.c: Likewise.
16725 * tree-outof-ssa.c: Likewise.
16726 * tree-parloops.c: Likewise.
16727 * tree-predcom.c: Likewise.
16728 * tree-pretty-print.c: Likewise.
16729 * tree-profile.c: Likewise.
16730 * tree-sra.c: Likewise.
16731 * tree-ssa.c: Likewise.
16732 * tree-ssa-coalesce.c: Likewise.
16733 * tree-ssa-dce.c: Likewise.
16734 * tree-ssa-dom.c: Likewise.
16735 * tree-ssa-forwprop.c: Likewise.
16736 * tree-ssa-ifcombine.c: Likewise.
16737 * tree-ssa-loop-ch.c: Likewise.
16738 * tree-ssa-loop-im.c: Likewise.
16739 * tree-ssa-loop-ivcanon.c: Likewise.
16740 * tree-ssa-loop-ivopts.c: Likewise.
16741 * tree-ssa-loop-manip.c: Likewise.
16742 * tree-ssa-loop-prefetch.c: Likewise.
16743 * tree-ssa-loop-unswitch.c: Likewise.
16744 * tree-ssa-math-opts.c: Likewise.
16745 * tree-ssa-phiopt.c: Likewise.
16746 * tree-ssa-pre.c: Likewise.
16747 * tree-ssa-reassoc.c: Likewise.
16748 * tree-ssa-sink.c: Likewise.
16749 * tree-ssa-tail-merge.c: Likewise.
16750 * tree-ssa-threadedge.c: Likewise.
16751 * tree-ssa-threadupdate.c: Likewise.
16752 * tree-switch-conversion.c: Likewise.
16753 * tree-tailcall.c: Likewise.
16754 * tree-vect-data-refs.c: Likewise.
16755 * tree-vect-loop.c: Likewise.
16756 * tree-vect-loop-manip.c: Likewise.
16757 * tree-vectorizer.c: Likewise.
16758 * tree-vrp.c: Likewise.
16759 * ubsan.c: Likewise.
16760 * value-prof.c: Likewise.
16761 * varasm.c: Likewise.
16762 * var-tracking.c: Likewise.
16763 * config/aarch64/aarch64-builtins.c: Likewise.
16764 * config/aarch64/aarch64.c: Likewise.
16765 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16766 * config/alpha/alpha.c: Likewise.
16767 * config/arc/arc.c: Likewise.
16768 * config/arm/arm.c: Likewise.
16769 * config/avr/avr.c: Likewise.
16770 * config/bfin/bfin.c: Likewise.
16771 * config/c6x/c6x.c: Likewise.
16772 * config/cr16/cr16.c: Likewise.
16773 * config/cris/cris.c: Likewise.
16774 * config/darwin.c: Likewise.
16775 * config/darwin-c.c: Likewise.
16776 * config/epiphany/epiphany.c: Likewise.
16777 * config/epiphany/mode-switch-use.c: Likewise.
16778 * config/epiphany/resolve-sw-modes.c: Likewise.
16779 * config/fr30/fr30.c: Likewise.
16780 * config/frv/frv.c: Likewise.
16781 * config/ft32/ft32.c: Likewise.
16782 * config/h8300/h8300.c: Likewise.
16783 * config/i386/i386.c: Likewise.
16784 * config/i386/winnt.c: Likewise.
16785 * config/ia64/ia64.c: Likewise.
16786 * config/iq2000/iq2000.c: Likewise.
16787 * config/lm32/lm32.c: Likewise.
16788 * config/m32c/m32c.c: Likewise.
16789 * config/m32r/m32r.c: Likewise.
16790 * config/m68k/m68k.c: Likewise.
16791 * config/mcore/mcore.c: Likewise.
16792 * config/mep/mep.c: Likewise.
16793 * config/microblaze/microblaze.c: Likewise.
16794 * config/mips/mips.c: Likewise.
16795 * config/mmix/mmix.c: Likewise.
16796 * config/mn10300/mn10300.c: Likewise.
16797 * config/moxie/moxie.c: Likewise.
16798 * config/msp430/msp430.c: Likewise.
16799 * config/nds32/nds32.c: Likewise.
16800 * config/nds32/nds32-cost.c: Likewise.
16801 * config/nds32/nds32-fp-as-gp.c: Likewise.
16802 * config/nds32/nds32-intrinsic.c: Likewise.
16803 * config/nds32/nds32-isr.c: Likewise.
16804 * config/nds32/nds32-md-auxiliary.c: Likewise.
16805 * config/nds32/nds32-memory-manipulation.c: Likewise.
16806 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16807 * config/nds32/nds32-predicates.c: Likewise.
16808 * config/nios2/nios2.c: Likewise.
16809 * config/nvptx/nvptx.c: Likewise.
16810 * config/pa/pa.c: Likewise.
16811 * config/pdp11/pdp11.c: Likewise.
16812 * config/rl78/rl78.c: Likewise.
16813 * config/rs6000/rs6000.c: Likewise.
16814 * config/rx/rx.c: Likewise.
16815 * config/s390/s390.c: Likewise.
16816 * config/sh/sh.c: Likewise.
16817 * config/sh/sh-mem.cc: Likewise.
16818 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16819 * config/sh/sh_treg_combine.cc: Likewise.
16820 * config/sparc/sparc.c: Likewise.
16821 * config/spu/spu.c: Likewise.
16822 * config/stormy16/stormy16.c: Likewise.
16823 * config/tilegx/tilegx.c: Likewise.
16824 * config/tilepro/tilepro.c: Likewise.
16825 * config/v850/v850.c: Likewise.
16826 * config/vax/vax.c: Likewise.
16827 * config/visium/visium.c: Likewise.
16828 * config/xtensa/xtensa.c: Likewise.
16829
16830 2015-07-10 Richard Biener <rguenther@suse.de>
16831
16832 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
16833 (decision_tree::gen_gimple): Likewise.
16834 (decision_tree::gen_generic): Likewise.
16835
16836 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16837
16838 PR target/66813
16839 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
16840 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
16841
16842 2015-07-10 Jakub Jelinek <jakub@redhat.com>
16843
16844 PR middle-end/66820
16845 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
16846 or ORT_TASK contexts.
16847 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
16848 is non-zero.
16849
16850 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16851
16852 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
16853 above function.
16854
16855 2015-07-10 Tom de Vries <tom@codesourcery.com>
16856
16857 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
16858 insert nit + 1 bound.
16859
16860 2015-07-10 Richard Biener <rguenther@suse.de>
16861
16862 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
16863 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
16864 (if_convertible_loop_p_1): For this always compute bb predicates.
16865 (if_convertible_loop_p): And free them.
16866
16867 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16868
16869 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
16870 in dump message.
16871
16872 2015-07-10 Richard Biener <rguenther@suse.de>
16873
16874 PR tree-optimization/66823
16875 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
16876 inverted predicate.
16877
16878 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
16879
16880 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16881 to handle mips[32|64]r3 and mips[32|64]r5.
16882
16883 2015-07-09 Jakub Jelinek <jakub@redhat.com>
16884
16885 PR middle-end/66633
16886 * tree-nested.c (get_static_chain): Or in a flag into
16887 info->static_chain_added.
16888 (get_frame_field, get_nonlocal_debug_decl): Likewise.
16889 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16890 2015-07-01 changes.
16891 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16892 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16893 add it to clauses.
16894
16895 PR tree-optimization/66718
16896 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16897 field.
16898 (vect_simd_lane_linear): New function.
16899 (vectorizable_simd_clone_call): Support using linear arguments for
16900 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16901
16902 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16903
16904 PR target/66821
16905 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16906
16907 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16908
16909 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16910 Use machine mode, not enum machine_mode in the prototype.
16911
16912 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16913 classify 128-bit floating point support.
16914 (FLOAT128_IBM_P): Likewise.
16915 (FLOAT128_VECTOR_P): Likewise.
16916 (FLOAT128_2REG_P): Likewise.
16917 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16918 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16919 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16920 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16921
16922 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16923 tests against TFmode/TDmode, since those modes do not use VSX
16924 addresses.
16925 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16926 support.
16927 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16928 tests against TFmode, etc.
16929 (invalid_e500_subreg): Add tests against IFmode/KFmode.
16930 (reg_offset_addressing_ok_p): Likewise.
16931 (rs6000_legitimate_offset_address_p): Likewise.
16932 (rs6000_legitimize_address): Likewise.
16933 (rs6000_legitimize_reload_address): Likewise.
16934 (rs6000_legitimate_address_p): Clean up tests against TFmode and
16935 TDmode to use the new helper macros, which will include IFmode and
16936 KFmode.
16937 (rs6000_emit_move): Likewise.
16938 (rs6000_darwin64_record_arg_recurse): Likewise.
16939 (print_operand): Likewise.
16940 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16941 that uses a single vector register as a vector and not as a
16942 floating point register in terms of the calling sequence.
16943 (rs6000_discover_homogeneous_aggregate): Likewise.
16944 (rs6000_return_in_memory): Likewise.
16945 (init_cumulative_args): Likewise.
16946 (rs6000_function_arg_boundary): Likewise.
16947 (rs6000_function_arg_advance_1): Likewise.
16948 (rs6000_function_arg): Likewise.
16949 (rs6000_pass_by_reference): Likewise.
16950 (rs6000_gimplify_va_arg): Likewise.
16951 (rs6000_secondary_reload_memory): Use machine_mode not enum
16952 machine mode.
16953 (rs6000_split_multireg_move): Use new helper macros.
16954 (spe_func_has_64bit_regs_p): Likewise.
16955 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16956 (output_toc): Use new helper macros.
16957 (rs6000_register_move_cost): Likewise.
16958 (rs6000_function_value): Add IEEE 128-bit floating point calling
16959 sequence support.
16960 (rs6000_libcall_value): Likewise.
16961 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16962 floating point support.
16963 (rs6000_vector_mode_supported_p): Likewise.
16964
16965 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
16966
16967 PR rtl-optimization/66782
16968 * lra-int.h (struct lra_insn_recog_data): Add comment about
16969 clobbered hard regs for arg_hard_regs.
16970 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16971 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16972 Add condition for processing used hard regs.
16973 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16974 Process clobbered hard regs.
16975
16976 2015-07-09 Michael Matz <matz@suse.de>
16977
16978 * genmatch.c (fprintf_indent): New function.
16979 (operand::gen_transform): Add indent parameter.
16980 (expr::gen_transform, c_expr::gen_transform,
16981 capture::gen_transform): Ditto and use fprintf_indent.
16982 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
16983 (dt_operand::gen, dt_operand::gen_predicate,
16984 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
16985 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
16986 (decision_tree::gen_gimple): Adjust calls and indent generated
16987 code.
16988 (decision_tree::gen_generic): Ditto.
16989 (write_predicate): Ditto.
16990
16991 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16992
16993 PR target/66814
16994 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
16995 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
16996 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
16997 {GENERAL,SSE,MMX}_REG_P where appropriate.
16998
16999 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17000
17001 * lto-streamer.h: Don't include target.h and alloc-pool.h.
17002 * builtins.c: Adjust includes.
17003 * gimple.c: Likewise.
17004 * ipa-icf.c: Likewise.
17005 * lto-opts.c: Likewise.
17006 * ipa-reference.c: Likewise.
17007 * lto-section-out.c: Likewise.
17008 * lto-streamer-in.c: Likewise.
17009 * lto-streamer-out.c: Likewise.
17010 * opts-global.c: Likewise.
17011 * symtab.c: Likewise.
17012 * tree-chkp.c: Likewise.
17013 * tree-ssa-live.c: Likewise.
17014 * tree-streamer-in.c: Likewise.
17015 * tree-streamer-out.c: Likewise.
17016 * config/darwin.c: Likewise.
17017 * config/i386/winnt.c: Likewise.
17018
17019 2015-07-09 Richard Biener <rguenther@suse.de>
17020
17021 * genmatch.c (struct expr): Add force_single_use flag.
17022 (expr::expr): Add copy constructor.
17023 (capture_info::walk_match): Gather force_single_use captures.
17024 (expr::gen_transform): Use possibly NULLified sequence.
17025 (dt_simplify::gen): Apply single-use restrictions by NULLifying
17026 seq if any constrained expr is not single-use.
17027 (parser::parse_expr): Refactor to allow multiple flags. Handle
17028 's' flag to force an expression have a single-use if the pattern
17029 simplifies to more than one statement.
17030 * match.pd: Convert most single_use conditionals to :s flags.
17031
17032 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17033
17034 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
17035 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
17036 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
17037
17038 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
17039
17040 * flags.h: Don't include flag-types.h or options.h.
17041 * opts-common.c: Adjust includes.
17042 * opts-global.c: Likewise.
17043 * common/config/epiphany/epiphany-common.c: Likewise.
17044
17045 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17046
17047 PR target/66818
17048 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
17049 for IA MCU.
17050
17051 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
17052
17053 PR target/66817
17054 * config/i386/i386.c (ix86_return_in_memory): Return true
17055 if int_size_in_bytes returns negative for IA MCU.
17056
17057 2015-07-09 Marek Polacek <polacek@redhat.com>
17058
17059 PR tree-optimization/66718
17060 * Makefile.in (OBJS): Add gimple-laddress.o.
17061 * passes.def: Schedule pass_laddress.
17062 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
17063 * tree-pass.h (make_pass_laddress): Declare.
17064 * gimple-laddress.c: New file.
17065
17066 2015-07-09 Richard Biener <rguenther@suse.de>
17067
17068 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
17069
17070 2015-07-09 Richard Biener <rguenther@suse.de>
17071
17072 PR tree-optimization/66807
17073 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
17074
17075 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
17076
17077 * function.c (stack_protect_epilogue): Use if rather than switch for
17078 check targetm.have_stack_protect_test.
17079
17080 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17081
17082 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
17083 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
17084 * config/arc/arc.h: Likewise.
17085 * config/arm/arm.h: Likewise.
17086 * config/bfin/bfin.h: Likewise.
17087 * config/epiphany/epiphany.h: Likewise.
17088 * config/frv/frv.h: Likewise.
17089 * config/ia64/ia64.h: Likewise.
17090 * config/iq2000/iq2000.h: Likewise.
17091 * config/lm32/lm32.h: Likewise.
17092 * config/m32r/m32r.h: Likewise.
17093 * config/mcore/mcore.h: Likewise.
17094 * config/mep/mep.h: Likewise.
17095 * config/microblaze/microblaze.h: Likewise.
17096 * config/mips/mips.h: Likewise.
17097 * config/mmix/mmix.h: Likewise.
17098 * config/mn10300/mn10300.h: Likewise.
17099 * config/nds32/nds32.h: Likewise.
17100 * config/nios2/nios2.h: Likewise.
17101 * config/pa/pa.h: Likewise.
17102 * config/rl78/rl78.h: Likewise.
17103 * config/sh/sh.h: Likewise.
17104 * config/sparc/sparc.h: Likewise.
17105 * config/stormy16/stormy16.h: Likewise.
17106 * config/tilegx/tilegx.h: Likewise.
17107 * config/tilepro/tilepro.h: Likewise.
17108 * config/v850/v850.h: Likewise.
17109 * config/xtensa/xtensa.h: Likewise.
17110 * doc/tm.texi: Regenerate.
17111 * doc/tm.texi.in: Adjust.
17112 * combine.c (simplify_set): Likewise.
17113 (simplify_comparison): Likewise.
17114 * expr.c (store_constructor): Likewise.
17115 * internal-fn.c (expand_arith_overflow): Likewise.
17116 * reload.c (push_reload): Likewise.
17117 (find_reloads): Likewise.
17118 (find_reloads_subreg_address): Likewise.
17119 * reload1.c (eliminate_regs_1): Likewise.
17120 * rtlanal.c (nonzero_bits1): Likewise.
17121 (num_sign_bit_copies1): Likewise.
17122 * simplify-rtx.c (simplify_truncation): Likewise.
17123
17124 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17125
17126 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
17127 of AUTO_INC_DEC with the preprocessor.
17128 * combine.c (combine_instructions): Likewise.
17129 (can_combine_p): Likewise.
17130 (try_combine): Likewise.
17131 * emit-rtl.c (try_split): Likewise.
17132 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17133 * lower-subreg.c (resolve_simple_move): Likewise.
17134 * lra.c (update_inc_notes): Likewise.
17135 * recog.c (asm_operand_ok): Likewise.
17136 (constrain_operands): Likewise.
17137 * regrename.c (scan_rtx_address): Likewise.
17138 * reload.c (update_auto_inc_notes): Likewise.
17139 (reg_inc_found_and_valid_p): Likewise.
17140 * reload1.c (reload): Likewise.
17141 (emit_input_reload_insns): Likewise.
17142 (delete_output_reload): Likewise.
17143 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17144 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17145
17146 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17147
17148 * rtl.h: Always define AUTO_INC_DEC.
17149 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
17150 * combine.c (combine_instructions): Likewise.
17151 (can_combine_p): Likewise.
17152 (try_combine): Likewise.
17153 * emit-rtl.c (try_split): Likewise.
17154 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17155 * lower-subreg.c (resolve_simple_move): Likewise.
17156 * lra.c (update_inc_notes): Likewise.
17157 * recog.c (asm_operand_ok): Likewise.
17158 (constrain_operands): Likewise.
17159 * regrename.c (scan_rtx_address): Likewise.
17160 * reload.c (update_auto_inc_notes): Likewise.
17161 (find_equiv_reg): Likewise.
17162 * reload1.c (reload): Likewise.
17163 (reload_as_needed): Likewise.
17164 (choose_reload_regs): Likewise.
17165 (emit_input_reload_insns): Likewise.
17166 (delete_output_reload): Likewise.
17167 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17168 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17169
17170 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17171
17172 * combine.c (can_combine_def_p): Don't check the value of
17173 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17174 (combinable_i3pat): Likewise.
17175 (mark_used_regs_combine): Likewise.
17176 * regrename.c (rename_chains): Likewise.
17177 * reload.c (find_reloads_address): Likewise.
17178 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17179
17180 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17181
17182 * combine.c (update_rsp_from_reg_equal): Don't check if
17183 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17184 (reg_nonzero_bits_for_combine): Likewise.
17185 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17186 1.
17187 * config/frv/frv.h: Likewise.
17188 * config/lm32/lm32.h: Likewise.
17189 * config/mep/mep.h: Likewise.
17190 * config/mips/mips.h: Likewise.
17191 * config/rs6000/rs6000.h: Likewise.
17192 * config/sh/sh.h: Likewise.
17193 * config/tilegx/tilegx.h (enum reg_class): Likewise.
17194 * config/tilepro/tilepro.h: Likewise.
17195 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17196 * doc/tm.texi: Regenerate.
17197 * doc/tm.texi.in: Adjust.
17198 * rtlanal.c (nonzero_bits1): Likewise.
17199
17200 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17201
17202 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17203 with the preprocessor.
17204 (combine_instructions): Likewise.
17205 (try_combine): Likewise.
17206 (subst): Likewise.
17207 (distribute_notes): Likewise.
17208
17209 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17210
17211 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17212 defined.
17213 (simplify_set): Likewise.
17214 * cse.c (cse_insn): Likewise.
17215 * fold-const.c (fold_single_bit_test): Likewise.
17216 (fold_unary_loc): Likewise.
17217 * postreload.c (reload_cse_simplify_set): Likewise.
17218 (reload_cse_simplify_operands): Likewise.
17219
17220 2015-07-08 Jiong Wang <jiong.wang@arm.com>
17221
17222 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17223 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17224
17225 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17226
17227 PR target/66746
17228 * config/i386/x86intrin.h: Include <adxintrin.h> even if
17229 __iamcu__ is defined.
17230
17231 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17232
17233 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17234
17235 2015-07-08 Iain Sandoe <iain@codesourcery.com>
17236
17237 PR target/66523
17238 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17239 names from preservation.
17240
17241 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17242
17243 PR target/66806
17244 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17245 change for IAMCU.
17246 (function_arg_advance_32): Don't pass vectors in registers for
17247 IAMCU.
17248 (function_arg_32): Likewise.
17249 (ix86_return_in_memory): Don't return vectors in registers for
17250 IAMCU.
17251
17252 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
17253
17254 PR middle-end/66334
17255 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17256 hard regno live at the start of BB with incoming abnormal edges.
17257 * lra-lives.c (process_bb_lives): Ditto.
17258
17259 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
17260
17261 PR libgomp/65099
17262 * config/nvptx/mkoffload.c (main): Create an offload image only in
17263 64-bit configurations.
17264
17265 2015-07-08 Martin Liska <mliska@suse.cz>
17266
17267 PR bootstrap/66744
17268 * tree-sra.c (create_access_1): Call ctor without brackets.
17269 (create_artificial_child_access): Likewise.
17270
17271 2015-07-08 Richard Biener <rguenther@suse.de>
17272
17273 PR tree-optimization/66793
17274 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17275 Properly split the block after stmts ending it.
17276
17277 2015-07-08 Richard Biener <rguenther@suse.de>
17278
17279 PR tree-optimization/66794
17280 * passes.c (execute_function_todo): Assert that post-dominators
17281 are not computed.
17282 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17283 Free post-dominators.
17284
17285 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17286
17287 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17288 with early exit.
17289
17290 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17291
17292 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17293 more than or equal 8 and less than 32 when optimizing for size.
17294
17295 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17296
17297 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17298 COSTS_N_INSNS (1) and increment it appropriately throughout the
17299 function.
17300
17301 2015-07-08 Richard Biener <rguenther@suse.de>
17302
17303 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17304
17305 2015-07-08 Alan Modra <amodra@gmail.com>
17306
17307 * target.def (rtx_costs): Remove "code" param, add "mode".
17308 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17309 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
17310 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17311 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
17312 call. Track mode when given in rtx.
17313 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
17314 (default_address_cost): Pass Pmode to rtx_cost.
17315 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17316 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17317 with NULL set.
17318 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
17319 (notreg_cost): Add mode param. Use it.
17320 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
17321 mode param and pass to set_src_cost. Update all calls.
17322 (hash_scan_set): Formatting.
17323 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17324 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17325 * hooks.h: Ditto.
17326 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17327 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17328 emit_store_flag): Update set_src_cost and rtx_cost calls.
17329 * auto-inc-dec.c (attempt_change): Likewise.
17330 * calls.c (precompute_register_parameters): Likewise.
17331 * combine.c (expand_compound_operation, make_extraction,
17332 force_to_mode, distribute_and_simplify_rtx): Likewise.
17333 * dojump.c (prefer_and_bit_test): Likewise.
17334 * dse.c (find_shift_sequence): Likewise.
17335 * expr.c (compress_float_constant): Likewise.
17336 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17337 * ifcvt.c (noce_try_sign_mask): Likewise.
17338 * loop-doloop.c (doloop_optimize): Likewise.
17339 * loop-invariant.c (create_new_invariant): Likewise.
17340 * lower-subreg.c (shift_cost, compute_costs): Likewise.
17341 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17342 lshift_cheap_p): Likewise.
17343 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17344 try_replace_in_use, reload_cse_move2add): Likewise.
17345 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17346 Likewise.
17347 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17348 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17349 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17350 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17351 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17352 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
17353 to rtx_cost calls.
17354 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17355 * config/arc/arc.c (arc_rtx_costs): Likewise.
17356 * config/arm/arm.c (arm_rtx_costs): Likewise.
17357 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17358 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17359 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17360 * config/cris/cris.c (cris_rtx_costs): Likewise.
17361 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17362 * config/frv/frv.c (frv_rtx_costs): Likewise.
17363 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17364 * config/i386/i386.c (ix86_rtx_costs): Likewise.
17365 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17366 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17367 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17368 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17369 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17370 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17371 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17372 * config/mep/mep.c (mep_rtx_cost): Likewise.
17373 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17374 * config/mips/mips.c (mips_rtx_costs): Likewise.
17375 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17376 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17377 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17378 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17379 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17380 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17381 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17382 * config/pa/pa.c (hppa_rtx_costs): Likewise.
17383 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17384 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17385 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17386 * config/s390/s390.c (s390_rtx_costs): Likewise.
17387 * config/sh/sh.c (sh_rtx_costs): Likewise.
17388 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17389 * config/spu/spu.c (spu_rtx_costs): Likewise.
17390 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17391 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17392 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17393 * config/v850/v850.c (v850_rtx_costs): Likewise.
17394 * config/vax/vax.c (vax_rtx_costs): Likewise.
17395 * config/visium/visium.c (visium_rtx_costs): Likewise.
17396 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17397 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17398 "code" param, and pass as outer_code to first rtx_cost call. Pass
17399 mode to rtx_cost calls.
17400 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17401 calls.
17402 (aarch64_rtx_costs_wrapper): Update.
17403 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17404 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17405 rtx_cost calls.
17406 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17407 and rtx_cost calls.
17408 (avr_operand_rtx_cost): Similarly.
17409 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17410 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17411 * config/mips/mips.c (mips_stack_address_p): Comment typo.
17412 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17413 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17414 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17415 rtx_cost.
17416 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17417 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17418 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17419 * doc/tm.texi: Regenerate.
17420
17421 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
17422
17423 * tree-core.h: Include symtab.h.
17424 * rtl.h: Include hard-reg-set.h but not flags.h.
17425 (HARD_CONST): Remove condition compilation involving HARD_CONST since
17426 hard-reg-set.h is always included.
17427 * regs.h: Don't include hard-reg-set.h or rtl.h.
17428 * cfg.h: Include dominance.h.
17429 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17430 * backend.h: New. Aggregate commonly used backend header files.
17431 * gimple-ssa.h: Don't include tree-hasher.h.
17432 * ssa.h: New. Aggregate commonly used SSA header files.
17433 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17434 * sel-sched-ir.h: Flatten includes.
17435 * lra-int.h: Flatten completely.
17436 * sel-sched-dump.h: Flatten includes.
17437 * ira-int.h: Flatten includes.
17438 * gimple-streamer.h: Remove all includes.
17439 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17440 * resource.h: Flatten hard-reg-set.h and df.h.
17441 * sched-int.h: Flatten insn-arrt.h and df.h.
17442 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17443 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17444 * genattrtab.c (write_header): Adjust generated includes.
17445 * genautomata.c (main): Likewise.
17446 * genconditions.c (write-header): Likewise.
17447 * genemit.c (main): Likewise.
17448 * gengtype.c (open_base_files): Likewise.
17449 * genopinit.c (main): Likewise.
17450 * genoutput.c (output_prologue): Likewise.
17451 * genpeep.c (main): Likewise.
17452 * genpreds.c (write_insn_preds_c): Likewise.
17453 * genrecog.c (write_header): Likewise.
17454 * alias.c: Adjust includes.
17455 * asan.c: Likewise.
17456 * attribs.c: Likewise.
17457 * auto-inc-dec.c: Likewise.
17458 * auto-profile.c: Likewise.
17459 * bb-reorder.c: Likewise.
17460 * bt-load.c: Likewise.
17461 * builtins.c: Likewise.
17462 * caller-save.c: Likewise.
17463 * calls.c: Likewise.
17464 * ccmp.c: Likewise.
17465 * cfg.c: Likewise.
17466 * cfganal.c: Likewise.
17467 * cfgbuild.c: Likewise.
17468 * cfgcleanup.c: Likewise.
17469 * cfgexpand.c: Likewise.
17470 * cfghooks.c: Likewise.
17471 * cfgloop.c: Likewise.
17472 * cfgloopanal.c: Likewise.
17473 * cfgloopmanip.c: Likewise.
17474 * cfgrtl.c: Likewise.
17475 * cgraph.c: Likewise.
17476 * cgraphbuild.c: Likewise.
17477 * cgraphclones.c: Likewise.
17478 * cgraphunit.c: Likewise.
17479 * cilk-common.c: Likewise.
17480 * combine-stack-adj.c: Likewise.
17481 * combine.c: Likewise.
17482 * compare-elim.c: Likewise.
17483 * convert.c: Likewise.
17484 * coverage.c: Likewise.
17485 * cppbuiltin.c: Likewise.
17486 * cprop.c: Likewise.
17487 * cse.c: Likewise.
17488 * cselib.c: Likewise.
17489 * data-streamer-in.c: Likewise.
17490 * data-streamer-out.c: Likewise.
17491 * data-streamer.c: Likewise.
17492 * dbxout.c: Likewise.
17493 * dce.c: Likewise.
17494 * ddg.c: Likewise.
17495 * debug.c: Likewise.
17496 * df-core.c: Likewise.
17497 * df-problems.c: Likewise.
17498 * df-scan.c: Likewise.
17499 * dfp.c: Likewise.
17500 * dojump.c: Likewise.
17501 * dominance.c: Likewise.
17502 * domwalk.c: Likewise.
17503 * double-int.c: Likewise.
17504 * dse.c: Likewise.
17505 * dumpfile.c: Likewise.
17506 * dwarf2asm.c: Likewise.
17507 * dwarf2cfi.c: Likewise.
17508 * dwarf2out.c: Likewise.
17509 * emit-rtl.c: Likewise.
17510 * et-forest.c: Likewise.
17511 * except.c: Likewise.
17512 * explow.c: Likewise.
17513 * expmed.c: Likewise.
17514 * expr.c: Likewise.
17515 * final.c: Likewise.
17516 * fixed-value.c: Likewise.
17517 * fold-const.c: Likewise.
17518 * function.c: Likewise.
17519 * fwprop.c: Likewise.
17520 * gcc-plugin.h: Likewise.
17521 * gcse-common.c: Likewise.
17522 * gcse.c: Likewise.
17523 * generic-match-head.c: Likewise.
17524 * ggc-page.c: Likewise.
17525 * gimple-builder.c: Likewise.
17526 * gimple-expr.c: Likewise.
17527 * gimple-fold.c: Likewise.
17528 * gimple-iterator.c: Likewise.
17529 * gimple-low.c: Likewise.
17530 * gimple-match-head.c: Likewise.
17531 * gimple-pretty-print.c: Likewise.
17532 * gimple-ssa-isolate-paths.c: Likewise.
17533 * gimple-ssa-strength-reduction.c: Likewise.
17534 * gimple-streamer-in.c: Likewise.
17535 * gimple-streamer-out.c: Likewise.
17536 * gimple-walk.c: Likewise.
17537 * gimple.c: Likewise.
17538 * gimplify-me.c: Likewise.
17539 * gimplify.c: Likewise.
17540 * godump.c: Likewise.
17541 * graph.c: Likewise.
17542 * graphite-blocking.c: Likewise.
17543 * graphite-dependences.c: Likewise.
17544 * graphite-interchange.c: Likewise.
17545 * graphite-isl-ast-to-gimple.c: Likewise.
17546 * graphite-optimize-isl.c: Likewise.
17547 * graphite-poly.c: Likewise.
17548 * graphite-scop-detection.c: Likewise.
17549 * graphite-sese-to-poly.c: Likewise.
17550 * graphite.c: Likewise.
17551 * haifa-sched.c: Likewise.
17552 * hw-doloop.c: Likewise.
17553 * ifcvt.c: Likewise.
17554 * init-regs.c: Likewise.
17555 * internal-fn.c: Likewise.
17556 * ipa-chkp.c: Likewise.
17557 * ipa-comdats.c: Likewise.
17558 * ipa-cp.c: Likewise.
17559 * ipa-devirt.c: Likewise.
17560 * ipa-icf-gimple.c: Likewise.
17561 * ipa-icf.c: Likewise.
17562 * ipa-inline-analysis.c: Likewise.
17563 * ipa-inline-transform.c: Likewise.
17564 * ipa-inline.c: Likewise.
17565 * ipa-polymorphic-call.c: Likewise.
17566 * ipa-profile.c: Likewise.
17567 * ipa-prop.c: Likewise.
17568 * ipa-pure-const.c: Likewise.
17569 * ipa-ref.c: Likewise.
17570 * ipa-reference.c: Likewise.
17571 * ipa-split.c: Likewise.
17572 * ipa-utils.c: Likewise.
17573 * ipa-visibility.c: Likewise.
17574 * ipa.c: Likewise.
17575 * ira-build.c: Likewise.
17576 * ira-color.c: Likewise.
17577 * ira-conflicts.c: Likewise.
17578 * ira-costs.c: Likewise.
17579 * ira-emit.c: Likewise.
17580 * ira-lives.c: Likewise.
17581 * ira.c: Likewise.
17582 * jump.c: Likewise.
17583 * langhooks.c: Likewise.
17584 * lcm.c: Likewise.
17585 * loop-doloop.c: Likewise.
17586 * loop-init.c: Likewise.
17587 * loop-invariant.c: Likewise.
17588 * loop-iv.c: Likewise.
17589 * loop-unroll.c: Likewise.
17590 * lower-subreg.c: Likewise.
17591 * lra-assigns.c: Likewise.
17592 * lra-coalesce.c: Likewise.
17593 * lra-constraints.c: Likewise.
17594 * lra-eliminations.c: Likewise.
17595 * lra-lives.c: Likewise.
17596 * lra-remat.c: Likewise.
17597 * lra-spills.c: Likewise.
17598 * lra.c: Likewise.
17599 * lto-cgraph.c: Likewise.
17600 * lto-compress.c: Likewise.
17601 * lto-opts.c: Likewise.
17602 * lto-section-in.c: Likewise.
17603 * lto-section-out.c: Likewise.
17604 * lto-streamer-in.c: Likewise.
17605 * lto-streamer-out.c: Likewise.
17606 * lto-streamer.c: Likewise.
17607 * mcf.c: Likewise.
17608 * mode-switching.c: Likewise.
17609 * modulo-sched.c: Likewise.
17610 * omega.c: Likewise.
17611 * omp-low.c: Likewise.
17612 * optabs.c: Likewise.
17613 * opts-global.c: Likewise.
17614 * passes.c: Likewise.
17615 * plugin.c: Likewise.
17616 * postreload-gcse.c: Likewise.
17617 * postreload.c: Likewise.
17618 * predict.c: Likewise.
17619 * print-rtl.c: Likewise.
17620 * print-tree.c: Likewise.
17621 * profile.c: Likewise.
17622 * real.c: Likewise.
17623 * realmpfr.c: Likewise.
17624 * recog.c: Likewise.
17625 * ree.c: Likewise.
17626 * reg-stack.c: Likewise.
17627 * regcprop.c: Likewise.
17628 * reginfo.c: Likewise.
17629 * regrename.c: Likewise.
17630 * regstat.c: Likewise.
17631 * reload.c: Likewise.
17632 * reload1.c: Likewise.
17633 * reorg.c: Likewise.
17634 * resource.c: Likewise.
17635 * rtl-chkp.c: Likewise.
17636 * rtlanal.c: Likewise.
17637 * rtlhooks.c: Likewise.
17638 * sanopt.c: Likewise.
17639 * sched-deps.c: Likewise.
17640 * sched-ebb.c: Likewise.
17641 * sched-rgn.c: Likewise.
17642 * sched-vis.c: Likewise.
17643 * sdbout.c: Likewise.
17644 * sel-sched-dump.c: Likewise.
17645 * sel-sched-ir.c: Likewise.
17646 * sel-sched.c: Likewise.
17647 * sese.c: Likewise.
17648 * shrink-wrap.c: Likewise.
17649 * simplify-rtx.c: Likewise.
17650 * stack-ptr-mod.c: Likewise.
17651 * stmt.c: Likewise.
17652 * stor-layout.c: Likewise.
17653 * store-motion.c: Likewise.
17654 * stringpool.c: Likewise.
17655 * symtab.c: Likewise.
17656 * target-globals.c: Likewise.
17657 * targhooks.c: Likewise.
17658 * toplev.c: Likewise.
17659 * tracer.c: Likewise.
17660 * trans-mem.c: Likewise.
17661 * tree-affine.c: Likewise.
17662 * tree-browser.c: Likewise.
17663 * tree-call-cdce.c: Likewise.
17664 * tree-cfg.c: Likewise.
17665 * tree-cfgcleanup.c: Likewise.
17666 * tree-chkp-opt.c: Likewise.
17667 * tree-chkp.c: Likewise.
17668 * tree-chrec.c: Likewise.
17669 * tree-complex.c: Likewise.
17670 * tree-data-ref.c: Likewise.
17671 * tree-dfa.c: Likewise.
17672 * tree-diagnostic.c: Likewise.
17673 * tree-dump.c: Likewise.
17674 * tree-eh.c: Likewise.
17675 * tree-emutls.c: Likewise.
17676 * tree-if-conv.c: Likewise.
17677 * tree-inline.c: Likewise.
17678 * tree-into-ssa.c: Likewise.
17679 * tree-iterator.c: Likewise.
17680 * tree-loop-distribution.c: Likewise.
17681 * tree-nested.c: Likewise.
17682 * tree-nrv.c: Likewise.
17683 * tree-object-size.c: Likewise.
17684 * tree-outof-ssa.c: Likewise.
17685 * tree-parloops.c: Likewise.
17686 * tree-phinodes.c: Likewise.
17687 * tree-predcom.c: Likewise.
17688 * tree-pretty-print.c: Likewise.
17689 * tree-profile.c: Likewise.
17690 * tree-scalar-evolution.c: Likewise.
17691 * tree-sra.c: Likewise.
17692 * tree-ssa-address.c: Likewise.
17693 * tree-ssa-alias.c: Likewise.
17694 * tree-ssa-ccp.c: Likewise.
17695 * tree-ssa-coalesce.c: Likewise.
17696 * tree-ssa-copy.c: Likewise.
17697 * tree-ssa-copyrename.c: Likewise.
17698 * tree-ssa-dce.c: Likewise.
17699 * tree-ssa-dom.c: Likewise.
17700 * tree-ssa-dse.c: Likewise.
17701 * tree-ssa-forwprop.c: Likewise.
17702 * tree-ssa-ifcombine.c: Likewise.
17703 * tree-ssa-live.c: Likewise.
17704 * tree-ssa-loop-ch.c: Likewise.
17705 * tree-ssa-loop-im.c: Likewise.
17706 * tree-ssa-loop-ivcanon.c: Likewise.
17707 * tree-ssa-loop-ivopts.c: Likewise.
17708 * tree-ssa-loop-manip.c: Likewise.
17709 * tree-ssa-loop-niter.c: Likewise.
17710 * tree-ssa-loop-prefetch.c: Likewise.
17711 * tree-ssa-loop-unswitch.c: Likewise.
17712 * tree-ssa-loop.c: Likewise.
17713 * tree-ssa-math-opts.c: Likewise.
17714 * tree-ssa-operands.c: Likewise.
17715 * tree-ssa-phiopt.c: Likewise.
17716 * tree-ssa-phiprop.c: Likewise.
17717 * tree-ssa-pre.c: Likewise.
17718 * tree-ssa-propagate.c: Likewise.
17719 * tree-ssa-reassoc.c: Likewise.
17720 * tree-ssa-sccvn.c: Likewise.
17721 * tree-ssa-scopedtables.c: Likewise.
17722 * tree-ssa-sink.c: Likewise.
17723 * tree-ssa-strlen.c: Likewise.
17724 * tree-ssa-structalias.c: Likewise.
17725 * tree-ssa-tail-merge.c: Likewise.
17726 * tree-ssa-ter.c: Likewise.
17727 * tree-ssa-threadedge.c: Likewise.
17728 * tree-ssa-threadupdate.c: Likewise.
17729 * tree-ssa-uncprop.c: Likewise.
17730 * tree-ssa-uninit.c: Likewise.
17731 * tree-ssa.c: Likewise.
17732 * tree-ssanames.c: Likewise.
17733 * tree-stdarg.c: Likewise.
17734 * tree-streamer-in.c: Likewise.
17735 * tree-streamer-out.c: Likewise.
17736 * tree-streamer.c: Likewise.
17737 * tree-switch-conversion.c: Likewise.
17738 * tree-tailcall.c: Likewise.
17739 * tree-vect-data-refs.c: Likewise.
17740 * tree-vect-generic.c: Likewise.
17741 * tree-vect-loop-manip.c: Likewise.
17742 * tree-vect-loop.c: Likewise.
17743 * tree-vect-patterns.c: Likewise.
17744 * tree-vect-slp.c: Likewise.
17745 * tree-vect-stmts.c: Likewise.
17746 * tree-vectorizer.c: Likewise.
17747 * tree-vrp.c: Likewise.
17748 * tree.c: Likewise.
17749 * tsan.c: Likewise.
17750 * ubsan.c: Likewise.
17751 * valtrack.c: Likewise.
17752 * value-prof.c: Likewise.
17753 * var-tracking.c: Likewise.
17754 * varasm.c: Likewise.
17755 * varpool.c: Likewise.
17756 * vmsdbgout.c: Likewise.
17757 * vtable-verify.c: Likewise.
17758 * web.c: Likewise.
17759 * wide-int.cc: Likewise.
17760 * xcoffout.c: Likewise.
17761 * config/aarch64/aarch64-builtins.c: Likewise.
17762 * config/aarch64/aarch64.c: Likewise.
17763 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17764 * config/alpha/alpha.c: Likewise.
17765 * config/arc/arc.c: Likewise.
17766 * config/arm/aarch-common.c: Likewise.
17767 * config/arm/arm-builtins.c: Likewise.
17768 * config/arm/arm-c.c: Likewise.
17769 * config/arm/arm.c: Likewise.
17770 * config/avr/avr-c.c: Likewise.
17771 * config/avr/avr-log.c: Likewise.
17772 * config/avr/avr.c: Likewise.
17773 * config/bfin/bfin.c: Likewise.
17774 * config/c6x/c6x.c: Likewise.
17775 * config/cr16/cr16.c: Likewise.
17776 * config/cris/cris.c: Likewise.
17777 * config/darwin-c.c: Likewise.
17778 * config/darwin.c: Likewise.
17779 * config/epiphany/epiphany.c: Likewise.
17780 * config/epiphany/mode-switch-use.c: Likewise.
17781 * config/epiphany/resolve-sw-modes.c: Likewise.
17782 * config/fr30/fr30.c: Likewise.
17783 * config/frv/frv.c: Likewise.
17784 * config/ft32/ft32.c: Likewise.
17785 * config/h8300/h8300.c: Likewise.
17786 * config/i386/i386-c.c: Likewise.
17787 * config/i386/i386.c: Likewise.
17788 * config/i386/msformat-c.c: Likewise.
17789 * config/i386/winnt-cxx.c: Likewise.
17790 * config/i386/winnt-stubs.c: Likewise.
17791 * config/i386/winnt.c: Likewise.
17792 * config/ia64/ia64-c.c: Likewise.
17793 * config/ia64/ia64.c: Likewise.
17794 * config/iq2000/iq2000.c: Likewise.
17795 * config/lm32/lm32.c: Likewise.
17796 * config/m32c/m32c-pragma.c: Likewise.
17797 * config/m32c/m32c.c: Likewise.
17798 * config/m32r/m32r.c: Likewise.
17799 * config/m68k/m68k.c: Likewise.
17800 * config/mcore/mcore.c: Likewise.
17801 * config/mep/mep-pragma.c: Likewise.
17802 * config/mep/mep.c: Likewise.
17803 * config/microblaze/microblaze-c.c: Likewise.
17804 * config/microblaze/microblaze.c: Likewise.
17805 * config/mips/mips.c: Likewise.
17806 * config/mmix/mmix.c: Likewise.
17807 * config/mn10300/mn10300.c: Likewise.
17808 * config/moxie/moxie.c: Likewise.
17809 * config/msp430/msp430-c.c: Likewise.
17810 * config/msp430/msp430.c: Likewise.
17811 * config/nds32/nds32-cost.c: Likewise.
17812 * config/nds32/nds32-fp-as-gp.c: Likewise.
17813 * config/nds32/nds32-intrinsic.c: Likewise.
17814 * config/nds32/nds32-isr.c: Likewise.
17815 * config/nds32/nds32-md-auxiliary.c: Likewise.
17816 * config/nds32/nds32-memory-manipulation.c: Likewise.
17817 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17818 * config/nds32/nds32-predicates.c: Likewise.
17819 * config/nds32/nds32.c: Likewise.
17820 * config/nios2/nios2.c: Likewise.
17821 * config/nvptx/nvptx.c: Likewise.
17822 * config/pa/pa.c: Likewise.
17823 * config/pdp11/pdp11.c: Likewise.
17824 * config/rl78/rl78-c.c: Likewise.
17825 * config/rl78/rl78.c: Likewise.
17826 * config/rs6000/rs6000-c.c: Likewise.
17827 * config/rs6000/rs6000.c: Likewise.
17828 * config/rx/rx.c: Likewise.
17829 * config/s390/s390-c.c: Likewise.
17830 * config/s390/s390.c: Likewise.
17831 * config/sh/sh-c.c: Likewise.
17832 * config/sh/sh-mem.cc: Likewise.
17833 * config/sh/sh.c: Likewise.
17834 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17835 * config/sh/sh_treg_combine.cc: Likewise.
17836 * config/sol2-c.c: Likewise.
17837 * config/sol2-cxx.c: Likewise.
17838 * config/sol2-stubs.c: Likewise.
17839 * config/sol2.c: Likewise.
17840 * config/sparc/sparc-c.c: Likewise.
17841 * config/sparc/sparc.c: Likewise.
17842 * config/spu/spu-c.c: Likewise.
17843 * config/spu/spu.c: Likewise.
17844 * config/stormy16/stormy16.c: Likewise.
17845 * config/tilegx/mul-tables.c: Likewise.
17846 * config/tilegx/tilegx-c.c: Likewise.
17847 * config/tilegx/tilegx.c: Likewise.
17848 * config/tilepro/mul-tables.c: Likewise.
17849 * config/tilepro/tilepro-c.c: Likewise.
17850 * config/tilepro/tilepro.c: Likewise.
17851 * config/v850/v850-c.c: Likewise.
17852 * config/v850/v850.c: Likewise.
17853 * config/vax/vax.c: Likewise.
17854 * config/visium/visium.c: Likewise.
17855 * config/vms/vms-c.c: Likewise.
17856 * config/vms/vms.c: Likewise.
17857 * config/vxworks.c: Likewise.
17858 * config/xtensa/xtensa.c: Likewise.
17859
17860 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
17861
17862 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
17863 Remove operand constraints. Change operand 2 predicate to
17864 nonmemory operand. Limit const_int values to mode bitsize. Only
17865 allow const_int values less than 32 when optimizing for size.
17866 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
17867 Remove operand constraints.
17868 (*bt<mode>): Use SImode for const_int values less than 32.
17869 (regmode): Remove mode attribute.
17870
17871 2015-07-07 Anatoly Sokolov <aesok@post.ru>
17872
17873 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17874 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
17875 moxie_legitimate_address_p): New functions.
17876 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17877
17878 2015-07-07 Tom de Vries <tom@codesourcery.com>
17879
17880 PR tree-optimization/66642
17881 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17882 header comment. Rename split_edge variable to edge_at_split. Split
17883 exit edge to create new loop exit bb. Insert loop exit phis in new
17884 loop exit bb.
17885
17886 2015-07-07 Tom de Vries <tom@codesourcery.com>
17887
17888 * tree-cfg.c (get_virtual_phi): New function.
17889 * tree-cfg.h (get_virtual_phi): Declare.
17890 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17891 (rewrite_virtuals_into_loop_closed_ssa): New function.
17892 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17893 Declare.
17894 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17895 (transform_to_exit_first_loop_alt): Use
17896 rewrite_virtuals_into_loop_closed_ssa.
17897
17898 2015-07-07 Richard Biener <rguenther@suse.de>
17899
17900 * fold-const.c (fold_binary_loc): Move
17901 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17902 * match.pd: ... here.
17903 Add (X * C1) % C2 -> 0 simplification pattern derived from
17904 extract_muldiv_1.
17905
17906 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
17907
17908 PR target/66780
17909 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17910 change for target/65249.
17911
17912 2015-07-07 Paulo Matos <pmatos@broadcom.com>
17913
17914 * symtab.c (address_matters_1): Fix typo in comment above.
17915 (can_increase_alignment_p): Likewise.
17916
17917 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17918
17919 * function.c (free_after_compilation): Clear PROP_cfg in
17920 f->curr_properties.
17921
17922 2015-07-07 Richard Biener <rguenther@suse.de>
17923
17924 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17925 add which use to.
17926 (add_control_edge): Remove excessive vertical space in dumping.
17927 (process_ssa_edge_worklist): Simulate at most one statement and
17928 return whether we did. Do not simulate PHIs if they are in a
17929 BB not yet simulated.
17930 (ssa_propagate): Adjust to always drain the BB worklist whenever
17931 a BB is available there, likewise the VARYING edges list before
17932 the interesting edge list.
17933
17934 2015-07-07 Christian Bruel <christian.bruel@st.com>
17935
17936 PR target/52144
17937 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17938
17939 2015-07-07 Richard Biener <rguenther@suse.de>
17940
17941 PR middle-end/66739
17942 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17943 A - B.
17944
17945 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17946
17947 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
17948 modes for operands 0 and 3. Use SImode for operands 2 and 3.
17949 Copy operand 0 to a temporary if !ext_register_operand. Remove
17950 ancient extract_bit_field workaround.
17951 (insv<mode>_1): Rename from mov<mode>_insv_1.
17952 (*insvqi): Rename from *movqi_insv_2.
17953 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17954 for renamed insvsi_1.
17955 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17956
17957 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
17958
17959 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
17960 call to nvptx_reorg_subreg.
17961
17962 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
17963
17964 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17965 * graphite-dependencies.c, graphite-interchange.c,
17966 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17967 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17968 Likewise.
17969
17970 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
17971
17972 * match.pd: Remove element_mode inside HONOR_*.
17973 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17974 (~X | X -> -1, ~X ^ X -> -1): Merge.
17975 * tree.c (build_each_one_cst): New function.
17976 * tree.h (build_each_one_cst): Likewise.
17977
17978 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17979
17980 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17981 PROCESSOR_IAMCU.
17982
17983 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
17984
17985 * config.gcc <mips*-*-*>: Add fused-madd.opt.
17986 * config/mips/mips.opt (mfused-madd): Remove.
17987 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
17988 * config/mips/mips.h (TARGET_MIPS8000): New.
17989 (ISA_HAS_FP_MADD4_MSUB4): Remove.
17990 (ISA_HAS_FP_MADDF_MSUBF): Remove.
17991 (ISA_HAS_FP_MADD3_MSUB3): Remove.
17992 (ISA_HAS_NMADD4_NMSUB4): Remove.
17993 (ISA_HAS_NMADD3_NMSUB3): Remove.
17994 (ISA_HAS_FUSED_MADD4): New.
17995 (ISA_HAS_UNFUSED_MADD4): New.
17996 (ISA_HAS_FUSED_MADDF): New.
17997 (ISA_HAS_FUSED_MADD3): New.
17998 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
17999 (*fma<mode>4_madd3) New.
18000 (*fma<mode>4_madd4) New.
18001 (*fma<mode>4_maddf) New.
18002 (fms<mode>4) New.
18003 (*fms<mode>4_msub3) New.
18004 (*fms<mode>4_msub4) New.
18005 (fnma<mode>4) New.
18006 (*fnma<mode>4_nmadd3) New.
18007 (*fnma<mode>4_nmadd4) New.
18008 (fnms<mode>4) New.
18009 (*fnms<mode>4_nmsub3) New.
18010 (*fnms<mode>4_nmsub4) New.
18011 (*madd4<mode>) Modify to be unfused only.
18012 (*msub4<mode>) Modify to be unfused only.
18013 (*nmadd4<mode>) Modify to be unfused only.
18014 (*nmsub4<mode>) Modify to be unfused only.
18015 (*madd3<mode>) Remove.
18016 (*msub3<mode>) Remove.
18017 (*nmadd3<mode>) Remove.
18018 (*nmsub3<mode>) Remove.
18019 (*nmadd3<mode>_fastmath) Remove.
18020 (*nmsub3<mode>_fastmath) Remove.
18021 (*nmadd4<mode>_fastmath) Update condition.
18022 (*nmsub4<mode>_fastmath) Update condition.
18023
18024 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18025
18026 PR target/65956
18027 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
18028 alignment attribute, exploring one level down for records and arrays.
18029
18030 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
18031
18032 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
18033 modes for operands 0 and 1. Use SImode for operands 2 and 3.
18034 Copy operand 1 to a temporary if !ext_register_operand. Remove
18035 ancient extract_bit_field workaround.
18036 (*extv<mode>): Rename from *mov<mode>_extv_1.
18037 (*extvqi): Rename from *movqi_extv_1.
18038 (extzv<mode>): Rename from extzv. Use SWI248 modes for
18039 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
18040 to a temporary if !ext_register_operand. Remove ancient
18041 extract_bit_field workaround.
18042 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
18043 (*extzvqi): Rename from *movqi_extzv_2.
18044 (*testqi_ext_3): Remove modes from const_int_operand predicated
18045 operands. Add "n" constraint.
18046 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
18047 operand. Add "J" constraint.
18048 (*btsq, *btrq, *btcq peephole2s): Remove mode from
18049 const_0_to_63 predicated operand.
18050 (regmode): New insn attribute.
18051 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
18052 to nonmemory_operand. Use regmode insn attribute.
18053 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
18054 (*jcc_bt<mode>_mask): Remove mode from operand 3.
18055 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
18056 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
18057 operands. Use "N" constraint instead of "n".
18058
18059 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
18060
18061 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
18062
18063 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18064
18065 PR target/66749
18066 * config/i386/i386.c (iamcu_cost): New.
18067 (m_IAMCU): Likewise.
18068 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
18069 (processor_target_table): Add an entry for "iamcu".
18070 (processor_alias_table): Likewise.
18071 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
18072 (ix86_adjust_cost): Likewise.
18073 (ia32_multipass_dfa_lookahead): Likewise.
18074 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
18075 * config/i386/x86-tune.def: Updated for m_IAMCU.
18076
18077 2015-07-06 Richard Biener <rguenther@suse.de>
18078
18079 PR tree-optimization/66772
18080 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
18081 values are available in the PHI node BB when there are
18082 still unexecutable edges.
18083
18084 2015-07-06 Richard Biener <rguenther@suse.de>
18085
18086 PR tree-optimization/66767
18087 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
18088 Make sure to build the alignment test on a SSA name without
18089 final alignment info valid only if the alignment test
18090 evaluates to true.
18091
18092 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
18093
18094 PR target/66620
18095 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
18096 loop start when inserting LSETUP.
18097
18098 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
18099
18100 PR target/53383
18101 * config/i386/i386.c (ix86_option_override_internal): Allow
18102 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
18103
18104 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18105
18106 * read-md.c (decimal_string): Rename to ...
18107 (md_decimal_string): ... this.
18108 (handle_enum): Reflect this.
18109
18110 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
18111
18112 PR target/66731
18113 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
18114
18115 2015-07-06 Richard Biener <rguenther@suse.de>
18116
18117 PR middle-end/66759
18118 * match.pd: Add missing constraint of y to REAL_CST in
18119 REAL_CST - x CMP y to y - CST CMP x simplification.
18120
18121 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
18122
18123 PR tree-optimization/66757
18124 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
18125
18126 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
18127 Sandra Loosemore <sandra@codesourcery.com>
18128
18129 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
18130 Delete extern declaration.
18131 (gprel_constant_p): Add extern declaration.
18132 * config/nios2/constraints.md ("S"): Use gprel_constant_p
18133 instead of nios2_symbol_ref_in_small_data_p.
18134 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
18135 (nios2_symbol_ref_in_small_data_p): Make static.
18136 (gprel_constant_p): Make non-static.
18137
18138 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18139
18140 * doc/fragments.texi (Target Fragment): Convert debian.org
18141 link to use https.
18142 * doc/install.texi (Configuration): Ditto.
18143
18144 2015-07-05 Jakub Jelinek <jakub@redhat.com>
18145
18146 PR tree-optimization/66718
18147 * tree-vect-stmts.c (vectorizable_call): Replace uses of
18148 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
18149
18150 PR tree-optimization/66718
18151 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
18152 vectorizable_load, vectorizable_condition): Move vectype,
18153 nunits, ncopies computation after checking what kind of statement
18154 stmt is.
18155
18156 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18157
18158 * target-insns.def (extv, extzv, insv): New targetm instruction
18159 patterns.
18160 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18161 interface.
18162 * recog.c (simplify_while_replacing): Likewise.
18163
18164 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18165
18166 * target-insns.def (doloop_begin, doloop_end): New targetm
18167 instruction patterns.
18168 * loop-init.c: Include target.h.
18169 (pass_loop2::gate): Use the new targetm patterns instead of
18170 HAVE_*/gen_* interface.
18171 (pass_rtl_doloop::gate): Likewise.
18172 (pass_rtl_doloop::execute): Remove preprocessor condition.
18173 * hw-doloop.c: Build unconditionally.
18174 * loop-doloop.c: Likewise.
18175 (doloop_optimize): Use the new targetm patterns instead of
18176 HAVE_*/gen_* interface.
18177 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18178 * modulo-sched.c (doloop_register_get): Likewise.
18179
18180 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18181
18182 * target-insns.def (clear_cache): New targetm instruction pattern.
18183 * builtins.c (expand_builtin___clear_cache): Use it instead of
18184 HAVE_*/gen_* interface.
18185
18186 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18187
18188 * target-insns.def (allocate_stack, check_stack, probe_stack)
18189 (probe_stack_address, split_stack_prologue, split_stack_space_check):
18190 New targetm instruction patterns.
18191 * explow.c (allocate_dynamic_stack_space): Use them instead of
18192 HAVE_*/gen_* interface.
18193 (emit_stack_probe): Likewise.
18194 (probe_stack_range): Likewise.
18195 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18196
18197 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18198
18199 * target-insns.def (stack_protect_set, stack_protect_test): New
18200 targetm instruction patterns.
18201 * cfgexpand.c (stack_protect_prologue): Use them instead of
18202 HAVE_*/gen_* interface.
18203 * function.c (stack_protect_epilogue): Likewise.
18204
18205 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18206
18207 * expr.h (gen_move_insn_uncast): Delete.
18208 * expr.c (gen_move_insn_uncast): Delete.
18209
18210 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18211
18212 * target-insns.def (restore_stack_block, restore_stack_function)
18213 (restore_stack_nonlocal, save_stack_block, save_stack_function)
18214 (save_stack_nonlocal): New targetm instruction patterns.
18215 * builtins.c (expand_builtin_apply): Use them instead of
18216 HAVE_*/gen_* interface.
18217 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18218
18219 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18220
18221 * target-insns.def (trap): New targetm instruction pattern.
18222 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18223 interface.
18224 * explow.c (allocate_dynamic_stack_space): Likewise.
18225 * ifcvt.c (find_if_header): Likewise.
18226
18227 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18228
18229 * target-insns.def (prefetch): New targetm instruction pattern.
18230 * tree-ssa-loop-prefetch.c: Include targeth.
18231 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18232 of HAVE_*/gen_* interface.
18233 * builtins.c (expand_builtin_prefetch): Likewise.
18234 * toplev.c (process_options): Likewise.
18235
18236 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18237
18238 * target-insns.def (untyped_call, untyped_return): New targetm
18239 instruction patterns.
18240 * builtins.c (expand_builtin_apply): Use them instead of
18241 HAVE_*/gen_* interface.
18242 (result_vector): Define unconditionally.
18243
18244 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18245
18246 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18247 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18248 (nonlocal_goto_receiver): New targetm instruction patterns.
18249 * builtins.c (expand_builtin_setjmp_setup): Use them instead
18250 of HAVE_*/gen_* interface.
18251 (expand_builtin_setjmp_receiver): Likewise.
18252 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18253 * except.c (expand_dw2_landing_pad_for_region): Likewise.
18254
18255 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18256
18257 * target.def: Add code_for_* hooks.
18258 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18259 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18260 * target-insns.def (casesi, tablejump): New targetm instruction
18261 patterns.
18262 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18263 (do_tablejump): Likewise.
18264 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18265 (expand_sjlj_dispatch_table): Likewise.
18266 * targhooks.c (default_case_values_threshold): Likewise.
18267
18268 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
18269
18270 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18271 Use rtx_insn * instead of rtx.
18272 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18273 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18274 (nios2_call_tls_get_addr): Likewise.
18275 (nios2_emit_expensive_div): Likewise.
18276 (nios2_emit_move_sequence): Change return type to bool.
18277 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18278 Change return type to bool.
18279
18280 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18281
18282 PR target/66747
18283 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18284
18285 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
18286
18287 PR target/66114
18288 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18289 of register_operand. Remove constraint.
18290
18291 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
18292
18293 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18294 the first argument.
18295
18296 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
18297
18298 * attribs.c (decl_attributes): Guard inform with the return value
18299 of the preceding warning.
18300
18301 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18302
18303 * doc/invoke.texi (moverride): Move to correct section.
18304
18305 2015-07-03 Richard Biener <rguenther@suse.de>
18306
18307 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18308 Copy from tree.c
18309 (dt_operand::gen_gimple_expr): After valueizing operands
18310 re-canonicalize operand order for commutative tree codes.
18311
18312 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
18313
18314 PR target/66746.
18315 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18316 is defined.
18317 (__crc32w): Likewise.
18318 (__crc32d): Likewise.
18319 (__rdpmc): Likewise.
18320 (__rdtscp): Likewise.
18321 (_rdpmc): Likewise.
18322 (_rdtscp): Likewise.
18323 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18324 is defined.
18325
18326 2015-07-03 Richard Biener <rguenther@suse.de>
18327
18328 * fold-const.c (fold_mathfn_compare): Remove.
18329 (fold_inf_compare): Likewise.
18330 (fold_comparison): Move floating point comparison simplifications...
18331 * match.pd: ... to patterns here. Introduce simple_comparisons
18332 operator list and use it for patterns formerly in fold_comparison.
18333
18334 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18335
18336 PR tree-optimization/66119
18337 * toplev.c (process_options): Don't set up default values for
18338 the sra_max_scalarization_size_{speed,size} parameters.
18339 * tree-sra (analyze_all_variable_accesses): If no values
18340 have been set for the sra_max_scalarization_size_{speed,size}
18341 parameters, call get_move_ratio to get target defaults.
18342
18343 2015-07-03 Richard Biener <rguenther@suse.de>
18344
18345 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18346 * match.pd: ... here.
18347
18348 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
18349
18350 PR target/37072
18351 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18352 is not actually the default on FreeBSD.
18353
18354 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18355
18356 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18357 definition.
18358 (CMPGE_8HI): Likewise.
18359 (CMPGE_4SI): Likewise.
18360 (CMPGE_2DI): Likewise.
18361 (CMPGE_U16QI): Likewise.
18362 (CMPGE_U8HI): Likewise.
18363 (CMPGE_U4SI): Likewise.
18364 (CMPGE_U2DI): Likewise.
18365 (CMPLE_16QI): Likewise.
18366 (CMPLE_8HI): Likewise.
18367 (CMPLE_4SI): Likewise.
18368 (CMPLE_2DI): Likewise.
18369 (CMPLE_U16QI): Likewise.
18370 (CMPLE_U8HI): Likewise.
18371 (CMPLE_U4SI): Likewise.
18372 (CMPLE_U2DI): Likewise.
18373 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18374 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18375 ALTIVEC_BUILTIN_VEC_CMPLE.
18376 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18377 floating-point vector modes.
18378 (vector_nlt<mode>): New define_expand.
18379 (vector_nltu<mode>): Likewise.
18380 (vector_ngt<mode>): Likewise.
18381 (vector_ngtu<mode>): Likewise.
18382
18383 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18384
18385 PR rtl-optimization/66706
18386 * combine.c (make_compound_operation): If an AND of SUBREG of
18387 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18388
18389 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
18390
18391 * tree-pass.h (make_pass_ch_vect): New.
18392 * passes.def: Add pass_ch_vect just before pass_if_conversion.
18393
18394 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18395 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18396 make_pass_ch_vect): New.
18397 (pass_ch): Extend ch_base.
18398
18399 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18400 (ch_base::copy_headers): ...here.
18401
18402 2015-07-02 Richard Biener <rguenther@suse.de>
18403
18404 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18405 * fold-const.c (get_pointer_modulus_and_residue): Remove.
18406 (fold_binary_loc): Implement (T)ptr & CST in terms of
18407 get_pointer_alignment_1.
18408 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18409 Make sure to build the alignment test on a SSA name without
18410 final alignment info valid only after the prologue.
18411
18412 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
18413
18414 * config/cris/cris.md ("epilogue"): Remove condition.
18415 ("prologue"): Ditto.
18416
18417 2015-07-02 Richard Biener <rguenther@suse.de>
18418
18419 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18420 parameter to record a condition that is false.
18421 (record_conditions): When recording an extra NE_EXPR that is
18422 true also record a EQ_EXPR that is false.
18423
18424 2015-07-02 Bin Cheng <bin.cheng@arm.com>
18425
18426 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18427 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18428 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
18429 (set_iv, find_interesting_uses_address, add_candidate_1): New
18430 argument to alloc_iv.
18431 (find_interesting_uses_op, find_interesting_uses_cond): Don't
18432 duplicate struct iv.
18433 (free_loop_data): Don't free struct iv explicitly.
18434 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18435
18436 2015-07-01 DJ Delorie <dj@redhat.com>
18437
18438 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18439 (LIB_SPEC): Add.
18440 (SUPPORTS_DISCRIMINATOR): Define.
18441
18442 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18443
18444 PR bootstrap/66685
18445 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18446 there are no CALLs in the same pattern.
18447
18448 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
18449
18450 PR rtl-optimization/61047
18451 * rtlanal.c (get_initial_register_offset): New function.
18452 (rtx_addr_can_trap_p_1): Check offsets of stack references.
18453
18454 2015-07-01 Richard Biener <rguenther@suse.de>
18455
18456 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18457 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18458 ~X CMP C -> X CMP' ~C to ...
18459 * match.pd: ... patterns here.
18460
18461 2015-07-01 Nick Clifton <nickc@redhat.com>
18462
18463 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18464 a 16-bit value into a 20-bit memory slot.
18465
18466 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18467
18468 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18469 "aarch64_tiny", "aarch64_small", "aarch64_large",
18470 "aarch64_little_endian", "aarch64_big_endian".
18471
18472 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18473
18474 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18475 Document "aarch64_small_fpic".
18476
18477 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18478
18479 * configure.ac: Add check for aarch64 assembler -fpic relocation
18480 modifier support.
18481 * configure: Regenerate.
18482 * config.in: Regenerate.
18483 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
18484 to -fPIC if not support of -fpic relocation modifier in assembler.
18485
18486 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18487
18488 PR bootstrap/66685
18489 * rtl.c (classify_insn): Handle returns in PARALLELs.
18490
18491 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
18492
18493 PR middle-end/66633
18494 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
18495 to true if the function is nested and if not optimizing.
18496 (convert_local_omp_clauses): Initialize need_frame to true if the
18497 function contains nested functions and if not optimizing.
18498
18499 2015-07-01 Richard Biener <rguenther@suse.de>
18500
18501 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
18502 (X & Y) ^ Y -> ~X & Y transforms to ...
18503 * match.pd: ... here.
18504
18505 2015-07-01 Richard Biener <rguenther@suse.de>
18506
18507 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
18508 of converts to avoid uninteresting noise from the conversion
18509 simplifying patterns.
18510
18511 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
18512
18513 * config/c6x/c6x.c (try_rename_operands): Do not depend on
18514 gcc_assert evaluating its argument for side-effect.
18515
18516 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
18517
18518 PR target/64833
18519 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
18520 flag_pic is set.
18521
18522 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18523
18524 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
18525 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
18526 (hash_scc): Add this_ref_p and ref_p parameters and pass them
18527 to the inner DFS walk.
18528
18529 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18530
18531 * target-insns.def (jump): New targetm instruction pattern.
18532 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18533 instead of gen_jump.
18534 (fix_up_crossing_landing_pad): Likewise.
18535 (add_labels_and_missing_jumps): Likewise.
18536 (fix_crossing_conditional_branches): Likewise.
18537 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18538 (force_nonfallthru_and_redirect): Likewise.
18539 * cse.c (cse_insn): Likewise.
18540 * expmed.c (expand_divmod): Likewise.
18541 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
18542 * haifa-sched.c (init_before_recovery): Likewise.
18543 (sched_create_recovery_edges): Likewise.
18544 * ifcvt.c (find_cond_trap): Likewise.
18545 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
18546 (expand_float, expand_fix): Likewise.
18547 * stmt.c (emit_jump): Likewise.
18548
18549 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18550
18551 * defaults.h (HAVE_load_multiple, gen_load_multiple)
18552 (HAVE_store_multiple, gen_store_multiple): Delete.
18553 * target-insns.def (load_multiple, store_multiple): New targetm
18554 instruction patterns.
18555 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
18556 of HAVE_*/gen_* interface.
18557
18558 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18559
18560 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18561 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
18562 (gen_mem_signal_fence): Delete.
18563 * target-insns.def (mem_signal_fence, mem_thread_fence)
18564 (memory_barrier): New targetm instruction patterns.
18565 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
18566 interface.
18567 (expand_mem_signal_fence): Likewise.
18568
18569 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18570
18571 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18572 * target-insns.def (epilogue, prologue, sibcall_prologue): New
18573 targetm instruction patterns.
18574 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18575 interface.
18576 * calls.c (expand_call): Likewise.
18577 * cfgrtl.c (cfg_layout_finalize): Likewise.
18578 * df-scan.c (df_get_entry_block_def_set): Likewise.
18579 (df_get_exit_block_use_set): Likewise.
18580 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18581 * final.c (final_start_function): Likewise.
18582 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18583 (reposition_prologue_and_epilogue_notes): Likewise.
18584 * reorg.c (find_end_label): Likewise.
18585 * toplev.c (process_options): Likewise.
18586
18587 2015-06-30 David Malcolm <dmalcolm@redhat.com>
18588
18589 * typed-splay-tree.h: New file.
18590
18591 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
18592
18593 PR debug/66691
18594 * lra-int.h (lra_substitute_pseudo): Add a parameter.
18595 (lra_substitute_pseudo_within_insn): Ditto.
18596 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
18597 of constant.
18598 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
18599 to lra_substitute_pseudo.
18600 * lra-lives.c (process_bb_lives): Add an argument to
18601 lra_substitute_pseudo_within_insn call.
18602 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18603 argument to lra_substitute_pseudo and
18604 lra_substitute_pseudo_within_insn calls.
18605 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18606
18607 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18608
18609 * configure: Regenerated.
18610
18611 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18612
18613 * config.gcc: Support i[34567]86-*-elfiamcu target.
18614 * config/i386/iamcu.h: New.
18615 * config/i386/i386.opt: Add -miamcu.
18616 * doc/invoke.texi: Document -miamcu.
18617 * common/config/i386/i386-common.c (ix86_handle_option): Turn
18618 off x87/MMX/SSE/AVX codegen for -miamcu.
18619 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18620 __iamcu/__iamcu__ for -miamcu.
18621 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18622 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18623 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18624 * config/i386/i386.c (ix86_option_override_internal): Ignore and
18625 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
18626 MCU by default. Default long double to 64-bit for Intel MCU.
18627 Turn on -freg-struct-return for Intel MCU. Issue an error when
18628 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18629 AVX is turned on.
18630 (function_arg_advance_32): Pass value whose size is no larger
18631 than 8 bytes in registers for Intel MCU.
18632 (function_arg_32): Likewise.
18633 (ix86_return_in_memory): Return value whose size is no larger
18634 than 8 bytes in registers for Intel MCU.
18635 (iamcu_alignment): New function.
18636 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18637 true.
18638 (ix86_local_alignment): Don't increase alignment for Intel MCU.
18639 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18640 true.
18641
18642 2015-06-30 Marek Polacek <polacek@redhat.com>
18643
18644 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
18645 both operands of the resulting expression.
18646
18647 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
18648 the final expression with the operand's type and then convert
18649 it to the type of the expression.
18650
18651 2015-06-30 Richard Biener <rguenther@suse.de>
18652
18653 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18654 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18655 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18656 * match.pd: ... to patterns here.
18657
18658 2015-06-30 Richard Biener <rguenther@suse.de>
18659
18660 PR tree-optimization/66704
18661 * tree-vect-data-refs.c (vect_setup_realignment): Use
18662 make_ssa_name for non-SSA name source.
18663
18664 2015-06-30 Jakub Jelinek <jakub@redhat.com>
18665
18666 PR middle-end/66702
18667 * omp-low.c (simd_clone_adjust): Handle addressable linear
18668 or uniform parameters or non-gimple type uniform parameters.
18669
18670 2015-06-30 Richard Biener <rguenther@suse.de>
18671
18672 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18673 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18674 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18675 * match.pd: ... here.
18676 Add a few cases of A - B -> A + (-B) when B "easily" negates.
18677 Move (x & y) | x -> x and friends before
18678 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18679
18680 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18681
18682 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18683 -mfix-ut699 is not specified.
18684 (leon3_load): Rename into...
18685 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
18686 is specified.
18687
18688 2015-06-30 Marek Polacek <polacek@redhat.com>
18689
18690 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18691 * match.pd: ... here.
18692
18693 2015-06-30 Richard Biener <rguenther@suse.de>
18694
18695 * target-insns.def (canonicalize_funcptr_for_compare): Add.
18696 * fold-const.c (build_range_check): Replace uses of
18697 HAVE_canonicalize_funcptr_for_compare.
18698 (fold_widened_comparison): Likewise.
18699 (fold_sign_changed_comparison): Likewise.
18700 * dojump.c: Include "target.h".
18701 (do_compare_and_jump): Replace uses of
18702 HAVE_canonicalize_funcptr_for_compare and
18703 gen_canonicalize_funcptr_for_compare.
18704 * expr.c (do_store_flag): Likewise.
18705
18706 2015-06-30 Tom de Vries <tom@codesourcery.com>
18707
18708 PR tree-optimization/66652
18709 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18710 max_loop_iterations to determine if nit + 1 overflows.
18711
18712 2015-06-30 Richard Biener <rguenther@suse.de>
18713
18714 * tree-vrp.c (register_edge_assert_for_2): Also register
18715 asserts for dominating conversion results.
18716
18717 2015-06-30 Bin Cheng <bin.cheng@arm.com>
18718
18719 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18720 field in struct iv.
18721
18722 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
18723
18724 PR target/66509
18725 * configure.ac: Fix filds and fildq test for 64-bit.
18726 * configure: Regenerated.
18727
18728 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
18729
18730 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18731 (nvptx_reorg): Here. Keep the non-subreg pieces.
18732
18733 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
18734
18735 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18736 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18737
18738 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
18739
18740 * config/i386/i386.md (*jcc_1): Use %! in asm template.
18741 Set attribute "length_nobnd" instead of "length".
18742 (*jcc_2): Ditto.
18743 (jump): Ditto.
18744 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18745
18746 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
18747
18748 * config/nios2/nios2.c (nios2_delegitimize_address): Make
18749 assert less restrictive.
18750
18751 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
18752
18753 PR fortran/66605
18754 * cgraphunit.c (cgraph_node::finalize_function): Do not call
18755 do_warn_unused_parameter.
18756 * function.c (do_warn_unused_parameter): Move from here.
18757 * function.h (do_warn_unused_parameter): Do not declare.
18758
18759 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18760
18761 PR target/65697
18762 * gcc.target/arm/armv-sync-comp-swap.c: New.
18763 * gcc.target/arm/armv-sync-op-acquire.c: New.
18764 * gcc.target/arm/armv-sync-op-full.c: New.
18765 * gcc.target/arm/armv-sync-op-release.c: New.
18766
18767 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18768
18769 PR target/65697
18770 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18771 initial acquire barrier with final barrier.
18772
18773 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18774
18775 PR target/65697
18776 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
18777 initial acquire barrier with final barrier.
18778
18779 2015-06-29 Richard Henderson <rth@redhat.com>
18780
18781 * config/i386/constraints.md (Bf): New constraint.
18782 * config/i386/i386-c.c (ix86_target_macros): Define
18783 __GCC_ASM_FLAG_OUTPUTS__.
18784 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
18785 as flags outputs.
18786 * doc/extend.texi (FlagOutputOperands): Document them.
18787
18788 2015-06-29 Jiong Wang <jiong.wang@arm.com>
18789
18790 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
18791 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
18792 unspec name.
18793 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
18794 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
18795 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
18796 (aarch64_symbol_context): Ditto.
18797 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
18798 and use new pattern name.
18799 (aarch64_expand_mov_immediate): Ditto.
18800 (aarch64_print_operand): Ditto.
18801 (aarch64_classify_tls_symbol): Ditto.
18802
18803 2015-06-29 Marek Polacek <polacek@redhat.com>
18804 Marc Glisse <marc.glisse@inria.fr>
18805
18806 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
18807 * match.pd: ... pattern here.
18808
18809 2015-06-29 Tom de Vries <tom@codesourcery.com>
18810
18811 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
18812 function structure.
18813
18814 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18815
18816 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
18817 feature description, split out the native option, add a link to
18818 the feature documentation, rearrange and slightly rewrite text.
18819 (Aarch64 options, -mcpu): Likewise.
18820 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
18821 +rdma implies Adv. SIMD.
18822
18823 2015-06-29 Marek Polacek <polacek@redhat.com>
18824
18825 PR c/66322
18826 * function.c (stack_protect_epilogue): Remove a cast to int.
18827 * doc/invoke.texi: Update -Wswitch-bool description.
18828
18829 2015-06-29 Richard Biener <rguenther@suse.de>
18830
18831 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
18832 * fold-const.c (fold_binary_loc): Move &A - &B simplification
18833 via ptr_difference_const ...
18834 * match.pd: ... here.
18835 When matching (X ^ Y) == Y also match with swapped operands.
18836
18837 2015-06-29 Richard Biener <rguenther@suse.de>
18838
18839 * lto-streamer.h (LTO_major_version): Bump to 5.
18840
18841 2015-06-29 Richard Biener <rguenther@suse.de>
18842
18843 PR tree-optimization/66677
18844 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
18845 STMT_VINFO_VEC_STMT clobbering less strict.
18846
18847 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
18848
18849 PR middle-end/64130
18850 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
18851 division, compute max and min when value ranges for dividend and
18852 divisor are available.
18853
18854 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
18855 Sandra Loosemore <sandra@codesourcery.com>
18856
18857 * regrename.h (regrename_do_replace): Change to return bool.
18858 * regrename.c (rename_chains): Check return value of
18859 regname_do_replace.
18860 (regrename_do_replace): Re-validate the modified insns and
18861 return bool status.
18862 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
18863 Update to match rename_chains changes.
18864 * config/c6x/c6x.c (try_rename_operands): Assert that
18865 regrename_do_replace returns true.
18866
18867 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
18868
18869 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
18870 operand 2 here. Use copy_addr_to_reg to copy non-index
18871 register operand 2 to a temporary.
18872 (<mode>_stx): Ditto for operand 1.
18873 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
18874 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
18875 (ix86_store_bounds): Ditto.
18876
18877 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
18878
18879 * print-tree.c (print_node) [TREE_VEC]: Print its length.
18880
18881 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
18882
18883 * gimple.c (gimple_call_set_fndecl): Remove.
18884 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18885 build1_loc directly instead of build_fold_addr_expr_loc.
18886
18887 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18888
18889 * hash-map.h (hash_map::traverse): Use the definition of the
18890 Key typedef rather than the typedef itself.
18891
18892 2015-06-26 Martin Jambor <mjambor@suse.cz>
18893
18894 PR debug/66301
18895 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18896 NULL instead of calling dump_enabled_p.
18897
18898 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18899
18900 * config/aarch64/aarch64.opt: (override): New.
18901 * doc/invoke.texi (override): Document.
18902 * config/aarch64/aarch64.c (aarch64_flag_desc): New
18903 (aarch64_fusible_pairs): Likewise.
18904 (aarch64_tuning_flags): Likewise.
18905 (aarch64_tuning_override_function): Likewise.
18906 (aarch64_tuning_override_functions): Likewise.
18907 (aarch64_parse_one_option_token): Likewise.
18908 (aarch64_parse_boolean_options): Likewise.
18909 (aarch64_parse_fuse_string): Likewise.
18910 (aarch64_parse_tune_string): Likewise.
18911 (aarch64_parse_one_override_token): Likewise.
18912 (aarch64_parse_override_string): Likewise.
18913 (aarch64_override_options): Parse the -override string if it
18914 is present.
18915
18916 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18917
18918 * config/aarch64/aarch64-protos.h (tune_params): Remove
18919 const from members.
18920 (aarch64_tune_params): Remove const, change to no longer be
18921 a pointer.
18922 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18923 change to no longer be a pointer, initialize to generic_tunings.
18924 (aarch64_min_divisions_for_recip_mul): Change dereference of
18925 aarch64_tune_params to member access.
18926 (aarch64_reassociation_width): Likewise.
18927 (aarch64_rtx_mult_cost): Likewise.
18928 (aarch64_address_cost): Likewise.
18929 (aarch64_branch_cost): Likewise.
18930 (aarch64_rtx_costs): Likewise.
18931 (aarch64_register_move_cost): Likewise.
18932 (aarch64_memory_move_cost): Likewise.
18933 (aarch64_sched_issue_rate): Likewise.
18934 (aarch64_builtin_vectorization_cost): Likewise.
18935 (aarch64_override_options): Take a copy of the selected tuning
18936 struct in to aarch64_tune_params, rather than just setting
18937 a pointer, change dereferences of aarch64_tune_params to member
18938 accesses.
18939 (aarch64_override_options_after_change): Change dereferences of
18940 aarch64_tune_params to member access.
18941 (aarch64_macro_fusion_p): Likewise.
18942 (aarch_macro_fusion_pair_p): Likewise.
18943 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18944
18945 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18946
18947 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18948 (aarch64_tune_flags): Likewise.
18949 (AARCH64_TUNE_FMA_STEERING): Likewise.
18950 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18951 to AARCH64_FL_USE_FMA_STEERING_PASS.
18952 (cortex-a57.cortex-a53): Likewise.
18953 (cortex-a72): Use cortexa72_tunings.
18954 (cortex-a72.cortex-a53): Likewise.
18955 (exynos-m1): Likewise.
18956 * config/aarch64/aarch64-protos.h (tune_params): Add
18957 a field: extra_tuning_flags.
18958 * config/aarch64/aarch64-tuning-flags.def: New.
18959 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18960 (aarch64_extra_tuning_flags): Likewise.
18961 (aarch64_tune_params): Declare here.
18962 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18963 (cortexa53_tunings): Likewise.
18964 (cortexa57_tunings): Likewise.
18965 (thunderx_tunings): Likewise.
18966 (xgene1_tunings): Likewise.
18967 (cortexa72_tunings): New.
18968 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18969 (gate): Check against aarch64_tune_params.
18970 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18971 aarch64-protos.h.
18972
18973 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18974
18975 * config/aarch64/aarch64-fusion-pairs.def: New.
18976 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18977 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18978 aarch64_fusion_pairs.
18979 (AARCH64_FUSE_MOV_MOVK): Likewise.
18980 (AARCH64_FUSE_ADRP_ADD): Likewise.
18981 (AARCH64_FUSE_MOVK_MOVK): Likewise.
18982 (AARCH64_FUSE_ADRP_LDR): Likewise.
18983 (AARCH64_FUSE_CMP_BRANCH): Likewise.
18984
18985 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18986
18987 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
18988 SYMBOL_SMALL_GOT_28K.
18989 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
18990 relocation modifiers.
18991 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
18992 (ldr_got_small_28k_<mode>): New.
18993 (ldr_got_small_28k_sidi): New.
18994 * config/aarch64/iterators.md (got_modifier): New mode iterator.
18995 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
18996 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18997 SYMBOL_SMALL_GOT_28K.
18998 (aarch64_rtx_costs): Add costs for new instruction sequences.
18999 (initialize_aarch64_code_model): Initialize new model.
19000 (aarch64_classify_symbol): Recognize new model and new symbol classification.
19001 (aarch64_asm_preferred_eh_data_format): Support new model.
19002 (aarch64_load_symref_appropriately): Generate new instruction
19003 sequences for -fpic.
19004 (TARGET_USE_PSEUDO_PIC_REG): New definition.
19005 (aarch64_use_pseudo_pic_reg): New function.
19006
19007 2015-06-26 Jiong Wang <jiong.wang@arm.com>
19008
19009 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
19010 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
19011 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
19012 (aarch64_expand_mov_immediate): Ditto.
19013 (aarch64_print_operand): Ditto.
19014 (aarch64_classify_symbol): Ditto.
19015
19016 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
19017
19018 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
19019
19020 2015-06-26 Bin Cheng <bin.cheng@arm.com>
19021
19022 PR bootstrap/66638
19023 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
19024 assertion failed. Remove assertion itself.
19025
19026 2015-06-26 Richard Biener <rguenther@suse.de>
19027
19028 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
19029 and -A CMP CST -> A CMP -CST which is redundant with a pattern
19030 in match.pd.
19031 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
19032 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
19033 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
19034 * match.pd: ... patterns here.
19035
19036 2015-06-26 Marek Polacek <polacek@redhat.com>
19037
19038 * match.pd ((x | y) & ~(x & y) -> x ^ y,
19039 (x | y) & (~x ^ y) -> x & y): New patterns.
19040
19041 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
19042
19043 * rtl.h (emit): Add an optional boolean parameter to control
19044 whether barriers are emitted.
19045 * emit-rtl.c (emit): Likewise.
19046 * gensupport.c (get_emit_function): Return null rather than "emit".
19047 * genemit.c (gen_emit_seq): Handle the null return value.
19048 Don't emit barriers after the final instruction in the sequence.
19049 * gentarget-def.c (main): Don't emit barriers after the instruction.
19050
19051 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19052
19053 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
19054 TARGET_UNIFIED_ASM.
19055
19056 2015-06-26 Richard Biener <rguenther@suse.de>
19057
19058 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
19059
19060 2015-06-26 Richard Biener <rguenther@suse.de>
19061
19062 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
19063 irrespective on whether the inner operation has a single use
19064 of both off are constant.
19065
19066 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
19067 Segher Boessenkool <segher@kernel.crashing.org>
19068
19069 PR target/66412
19070 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
19071 before doing PUT_MODE or PUT_CODE on operands to avoid
19072 in-place RTX modification.
19073
19074 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19075
19076 * gentarget-def.c (def_target_insn): Cast return of strtol to
19077 unsigned int.
19078
19079 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19080
19081 * gimple.h (gimple_call_set_fn): Move inline function.
19082 * gimple.c (gimple_call_set_fn): Relocate here.
19083
19084 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
19085
19086 PR target/65979
19087 PR target/66611
19088 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
19089 the replacement insn will work.
19090
19091 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
19092
19093 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
19094 by default.
19095
19096 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19097
19098 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
19099 * cgraph.h: Include ipa-ref.h and plugin-api.h.
19100 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
19101 (symtab_node::address_can_be_compared_p): Move function.
19102 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
19103 definition here.
19104 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
19105 * auto-profile.c: Likewise.
19106 * bb-reorder.c: Likewise.
19107 * builtins.c: Likewise.
19108 * calls.c: Likewise.
19109 * cfgexpand.c: Likewise.
19110 * cgraphbuild.c: Likewise.
19111 * cgraphclones.c: Likewise.
19112 * cgraphunit.c: Likewise.
19113 * combine.c: Likewise.
19114 * coverage.c: Likewise.
19115 * data-streamer-in.c: Likewise.
19116 * data-streamer-out.c: Likewise.
19117 * data-streamer.c: Likewise.
19118 * dbxout.c: Likewise.
19119 * dwarf2out.c: Likewise.
19120 * except.c: Likewise.
19121 * expr.c: Likewise.
19122 * final.c: Likewise.
19123 * fold-const.c: Likewise.
19124 * ggc-page.c: Likewise.
19125 * gimple-fold.c: Likewise.
19126 * gimple-iterator.c: Likewise.
19127 * gimple-pretty-print.c: Likewise.
19128 * gimple-streamer-in.c: Likewise.
19129 * gimple-streamer-out.c: Likewise.
19130 * gimple.c: Likewise.
19131 * gimplify.c: Likewise.
19132 * ipa-chkp.c: Likewise.
19133 * ipa-comdats.c: Likewise.
19134 * ipa-cp.c: Likewise.
19135 * ipa-devirt.c: Likewise.
19136 * ipa-icf-gimple.c: Likewise.
19137 * ipa-icf.c: Likewise.
19138 * ipa-inline-analysis.c: Likewise.
19139 * ipa-inline-transform.c: Likewise.
19140 * ipa-inline.c: Likewise.
19141 * ipa-polymorphic-call.c: Likewise.
19142 * ipa-profile.c: Likewise.
19143 * ipa-prop.c: Likewise.
19144 * ipa-pure-const.c: Likewise.
19145 * ipa-ref.c: Likewise.
19146 * ipa-reference.c: Likewise.
19147 * ipa-split.c: Likewise.
19148 * ipa-utils.c: Likewise.
19149 * ipa-visibility.c: Likewise.
19150 * ipa.c: Likewise.
19151 * langhooks.c: Likewise.
19152 * lto-cgraph.c: Likewise.
19153 * lto-compress.c: Likewise.
19154 * lto-opts.c: Likewise.
19155 * lto-section-in.c: Likewise.
19156 * lto-section-out.c: Likewise.
19157 * lto-streamer-in.c: Likewise.
19158 * lto-streamer-out.c: Likewise.
19159 * lto-streamer.c: Likewise.
19160 * omp-low.c: Likewise.
19161 * opts-global.c: Likewise.
19162 * passes.c: Likewise.
19163 * predict.c: Likewise.
19164 * print-tree.c: Likewise.
19165 * profile.c: Likewise.
19166 * ree.c: Likewise.
19167 * sanopt.c: Likewise.
19168 * stor-layout.c: Likewise.
19169 * symtab.c: Likewise.
19170 * toplev.c: Likewise.
19171 * trans-mem.c: Likewise.
19172 * tree-cfg.c: Likewise.
19173 * tree-chkp.c: Likewise.
19174 * tree-eh.c: Likewise.
19175 * tree-emutls.c: Likewise.
19176 * tree-inline.c: Likewise.
19177 * tree-nested.c: Likewise.
19178 * tree-parloops.c: Likewise.
19179 * tree-pretty-print.c: Likewise.
19180 * tree-profile.c: Likewise.
19181 * tree-sra.c: Likewise.
19182 * tree-ssa-alias.c: Likewise.
19183 * tree-ssa-live.c: Likewise.
19184 * tree-ssa-loop-ivcanon.c: Likewise.
19185 * tree-ssa-loop-ivopts.c: Likewise.
19186 * tree-ssa-pre.c: Likewise.
19187 * tree-ssa-sccvn.c: Likewise.
19188 * tree-ssa-strlen.c: Likewise.
19189 * tree-ssa-structalias.c: Likewise.
19190 * tree-streamer-in.c: Likewise.
19191 * tree-streamer-out.c: Likewise.
19192 * tree-streamer.c: Likewise.
19193 * tree-switch-conversion.c: Likewise.
19194 * tree-tailcall.c: Likewise.
19195 * tree-vect-data-refs.c: Likewise.
19196 * tree-vect-stmts.c: Likewise.
19197 * tree-vectorizer.c: Likewise.
19198 * tree.c: Likewise.
19199 * tsan.c: Likewise.
19200 * ubsan.c: Likewise.
19201 * value-prof.c: Likewise.
19202 * varasm.c: Likewise.
19203 * varpool.c: Likewise.
19204 * config/arm/arm.c: Likewise.
19205 * config/bfin/bfin.c: Likewise.
19206 * config/c6x/c6x.c: Likewise.
19207 * config/cris/cris.c: Likewise.
19208 * config/darwin-c.c: Likewise.
19209 * config/darwin.c: Likewise.
19210 * config/i386/i386.c: Likewise.
19211 * config/i386/winnt.c: Likewise.
19212 * config/microblaze/microblaze.c: Likewise.
19213 * config/mips/mips.c: Likewise.
19214 * config/rs6000/rs6000.c: Likewise.
19215 * config/rx/rx.c: Likewise.
19216 * config/s390/s390.c: Likewise.
19217 * config/tilegx/mul-tables.c: Likewise.
19218
19219 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19220
19221 * config/aarch64/aarch64.c, config/alpha/alpha.c,
19222 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19223 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19224 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19225 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19226 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19227 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19228 config/microblaze/microblaze.c, config/mips/mips.c,
19229 config/mmix/mmix.c, config/mn10300/mn10300.c,
19230 config/moxie/moxie.c, config/msp430/msp430.c,
19231 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19232 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19233 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19234 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19235 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19236 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19237 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19238 target-def.h include.
19239 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
19240
19241 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19242
19243 * Makefile.in (TARGET_DEF): Add target-insns.def.
19244 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19245 (build/gentarget-def.o): New rule.
19246 (genprogrtl): Add target-def.
19247 * target-insns.def, gentarget-def.c: New files.
19248 * target.def: Add targetm.have_* and targetm.gen_* hooks,
19249 based on the contents of target-insns.def.
19250 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19251 (HAVE_return, gen_return): Delete.
19252 * target-def.h: Include insn-target-def.h.
19253 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19254 instead of direct calls. Rely on them to do the appropriate assertions.
19255 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
19256 (convert_jumps_to_returns): Use targetm interface instead of
19257 direct calls.
19258 (thread_prologue_and_epilogue_insns): Likewise.
19259 * reorg.c (find_end_label, dbr_schedule): Likewise.
19260 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19261 * shrink-wrap.c (convert_to_simple_return): Likewise.
19262 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19263
19264 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19265
19266 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19267 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19268 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19269 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19270 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19271 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19272 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19273 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19274 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19275 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19276 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19277 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19278 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19279 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19280 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19281 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19282 includes to end.
19283
19284 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19285
19286 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19287 (unbounded_int_hashmap_traits::key_type): Likewise.
19288 * hash-map.h (hash_map): Get the key type from the traits.
19289 * hash-traits.h (default_hash_traits): By default, inherit from the
19290 template parameter.
19291 * alias.c (alias_set_traits): Delete.
19292 (alias_set_entry_d::children): Use alias_set_hash as the first
19293 template parameter.
19294 (record_alias_subset): Update accordingly.
19295 * except.c (tree_hash_traits): Delete.
19296 (type_to_runtime_map): Use tree_hash as the first template parameter.
19297 (init_eh): Update accordingly.
19298 * genmatch.c (capture_id_map_hasher): Delete.
19299 (cid_map_t): Use nofree_string_hash as first template parameter.
19300 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19301 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19302 Use symbol_compare_hash as the first template parameter in
19303 subdivide_hash_map.
19304 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19305 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19306 template parameter.
19307 * passes.c (pass_registry_hasher): Delete.
19308 (name_to_pass_map): Use nofree_string_hash as the first template
19309 parameter.
19310 (register_pass_name): Update accordingly.
19311 * sanopt.c (sanopt_tree_map_traits): Delete.
19312 (sanopt_tree_triplet_map_traits): Delete.
19313 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19314 template parameter.
19315 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19316 the first template parameter.
19317 * sese.c (rename_map_hasher): Delete.
19318 (rename_map_type): Use tree_ssa_name_hash as the first template
19319 parameter.
19320 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19321 (function_summary::m_map): Use map_hash as the first template
19322 parameter.
19323 (function_summary::release): Update accordingly.
19324 * tree-if-conv.c (phi_args_hash_traits): Delete.
19325 (predicate_scalar_phi): Use tree_operand_hash as the first template
19326 parameter to phi_arg_map.
19327 * tree-inline.h (dependence_hasher): Delete.
19328 (copy_body_data::dependence_map): Use dependence_hash as the first
19329 template parameter.
19330 * tree-inline.c (remap_dependence_clique): Update accordingly.
19331 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19332 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19333 parameter.
19334 (addr_stridxptr): Update accordingly.
19335 * value-prof.c (profile_id_traits): Delete.
19336 (cgraph_node_map): Use profile_id_hash as the first template
19337 parameter.
19338 (init_node_map): Update accordingly.
19339 * config/alpha/alpha.c (string_traits): Delete.
19340 (machine_function::links): Use nofree_string_hash as the first
19341 template parameter.
19342 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19343 * config/m32c/m32c.c (pragma_traits): Delete.
19344 (pragma_htab): Use nofree_string_hash as the first template parameter.
19345 (m32c_note_pragma_address): Update accordingly.
19346 * config/mep/mep.c (pragma_traits): Delete.
19347 (pragma_htab): Use nofree_string_hash as the first template parameter.
19348 (mep_note_pragma_flag): Update accordingly.
19349 * config/mips/mips.c (mips16_flip_traits): Delete.
19350 (mflip_mips16_htab): Use nofree_string_hash as the first template
19351 parameter.
19352 (mflip_mips16_use_mips16_p): Update accordingly.
19353 (local_alias_traits): Delete.
19354 (mips16_local_aliases): Use nofree_string_hash as the first template
19355 parameter.
19356 (mips16_local_alias): Update accordingly.
19357
19358 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19359
19360 * hash-map-traits.h (default_hashmap_traits): Delete.
19361
19362 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19363
19364 * hash-map-traits.h (unbounded_hashmap_traits): New class.
19365 (unbounded_int_hashmap_traits): Likewise.
19366 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19367
19368 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19369
19370 * ipa-icf.h (symbol_compare_hash): New class.
19371 (symbol_compare_hashmap_traits): Use it.
19372 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19373 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19374 (mem_alloc_description::reverse_mem_map_t): Remove redundant
19375 default_hashmap_traits.
19376 * sanopt.c (sanopt_tree_triplet_hash): New class.
19377 (sanopt_tree_triplet_map_traits): Use it.
19378
19379 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19380
19381 * gengtype-parse.c (require_template_declaration): Allow '+' in
19382 template parameters. Consolidate cases.
19383 * hash-traits.h (int_hash): New class.
19384 * alias.c (alias_set_hash): New structure.
19385 (alias_set_traits): Use it.
19386 * symbol-summary.h (function_summary::map_hash): New class.
19387 (function_summary::summary_hashmap_traits): Use it.
19388 * tree-inline.h (dependence_hash): New class.
19389 (dependence_hasher): Use it.
19390 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19391 * value-prof.c (profile_id_hash): New class.
19392 (profile_id_traits): Use it.
19393
19394 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19395
19396 * config/mips/mips.c (mips16_flip_traits): Use it.
19397 (local_alias_traits, mips16_local_aliases): Convert from a map of
19398 rtxes to a map of symbol names.
19399 (mips16_local_alias): Update accordingly.
19400
19401 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19402
19403 * hash-traits.h (string_hash, nofree_string_hash): New classes.
19404 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19405 * passes.c (pass_registry_hasher): Likewise.
19406 * config/alpha/alpha.c (string_traits): Likewise.
19407 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19408 * config/m32c/m32c.c (pragma_traits): Likewise.
19409 * config/mep/mep.c (pragma_traits): Likewise.
19410
19411 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19412
19413 * tree-hash-traits.h (tree_hash): New class.
19414 * except.c: Include tree-hash-traits.h.
19415 (tree_hash_traits): Use tree_hash.
19416
19417 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19418
19419 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19420 * sese.c: Include tree-hash-traits.h.
19421 (rename_map_hasher): Use tree_ssa_name_hasher.
19422
19423 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19424
19425 * tree-hash-traits.h (tree_decl_hash): New class.
19426 * tree-ssa-strlen.c: Include tree-hash-traits.h.
19427 (stridxlist_hash_traits): Use tree_decl_hash.
19428
19429 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19430
19431 * tree-hash-traits.h: New file.
19432 (tree_operand_hash): New class.
19433 * sanopt.c: Include tree-hash-traits.h.
19434 (sanopt_tree_map_traits): Use tree_operand_hash.
19435 * tree-if-conv.c: Include tree-hash-traits.h.
19436 (phi_args_hash_traits): Use tree_operand_hash.
19437 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19438 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19439
19440 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19441
19442 * hash-map-traits.h: Include hash-traits.h.
19443 (simple_hashmap_traits): New class.
19444 * mem-stats.h (hash_map): Change the default traits to
19445 simple_hashmap_traits<default_hash_traits<Key> >.
19446
19447 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19448
19449 * hash-table.h: Update comments.
19450
19451 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19452
19453 * hash-traits.h (default_hash_traits): New structure.
19454 * hash-set.h (default_hashset_traits): Delete.
19455 (hash_set): Use default_hash_traits<Key> instead of
19456 default_hashset_traits. Delete hash_entry type and use Key directly.
19457 * ipa-devirt.c (pair_traits): Delete.
19458 (default_hash_traits <type_pair>): Override.
19459 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19460 (odr_types_equivalent_p, add_type_duplicate): Likewise.
19461
19462 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19463
19464 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19465
19466 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19467
19468 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19469 (has_is_empty, is_empty_helper): Delete.
19470 (has_mark_deleted, mark_deleted_helper): Delete.
19471 (has_mark_empty, mark_empty_helper): Delete.
19472 (hash_table::is_deleted): Call the Descriptor unconditionally.
19473 (hash_table::is_empty): Likewise.
19474 (hash_table::mark_deleted): Likewise.
19475 (hash_table::mark_empty): Likewise.
19476
19477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19478
19479 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
19480 redundant typedefs and members.
19481 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
19482 redundant typedefs.
19483 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
19484 * ipa-devirt.c (odr_name_hasher): Likewise.
19485 (polymorphic_call_target_hasher): Likewise.
19486 * ira-costs.c (cost_classes_hasher): Likewise.
19487 * statistics.c (stats_counter_hasher): Likewise.
19488 * trans-mem.c (log_entry_hasher): Likewise.
19489 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19490 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
19491 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
19492 * var-tracking.c (variable_hasher): Likewise.
19493 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
19494 Remove redundant typedefs and members.
19495
19496 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19497
19498 * hash-traits.h (ggc_cache_hasher): Rename to...
19499 (ggc_cache_remove): ...this and remove typedefs.
19500 (ggc_cache_ptr_hash): New class.
19501 * hash-table.h: Update commentary.
19502 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
19503 rather than ggc_cache_hasher.
19504 (const_wide_int_hasher, reg_attr_hasher): Likewise.
19505 (const_double_hasher, const_fixed_hasher): Likewise.
19506 * function.c (insn_cache_hasher): Likewise.
19507 * trans-mem.c (tm_wrapper_hasher): Likewise.
19508 * tree.h (tree_decl_map_cache_hasher): Likewise.
19509 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
19510 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
19511 * ubsan.c (tree_type_map_cache_hasher): Likewise.
19512 * varasm.c (tm_clone_hasher): Likewise.
19513 * config/i386/i386.c (dllimport_hasher): Likewise.
19514 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
19515 (tree_hasher): Likewise.
19516
19517 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19518
19519 * hash-traits.h (ggc_hasher): Rename to...
19520 (ggc_remover): ...this and remove typedefs.
19521 (ggc_cache_hasher): Update accordingly. Add typedefs.
19522 (ggc_ptr_hash): New class.
19523 * hash-table.h: Update comment.
19524 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
19525 ggc_hasher.
19526 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
19527 (tree_descriptor_hasher): Likewise.
19528 * cgraph.c (function_version_hasher): Likewise.
19529 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
19530 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
19531 (dw_loc_list_hasher, addr_hasher): Likewise.
19532 * function.h (used_type_hasher): Likewise.
19533 * function.c (temp_address_hasher): Likewise.
19534 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
19535 * libfuncs.h (libfunc_hasher): Likewise.
19536 * lto-streamer.h (decl_state_hasher): Likewise.
19537 * optabs.c (libfunc_decl_hasher): Likewise.
19538 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
19539 * varasm.c (section_hasher, object_block_hasher): Likewise.
19540 (const_rtx_desc_hasher): Likewise.
19541 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
19542 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
19543
19544 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19545
19546 * hash-traits.h (free_ptr_hash): New class.
19547 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
19548 rather than typed_free_remove. Remove redudant typedefs.
19549 (external_ref_hasher): Likewise.
19550 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
19551 (ehspec_hasher): Likewise.
19552 * ggc-common.c (saving_hasher): Likewise.
19553 * gimplify.c (gimplify_hasher): Likewise.
19554 * haifa-sched.c (delay_i2_hasher): Likewise.
19555 * loop-invariant.c (invariant_expr_hasher): Likewise.
19556 * loop-iv.c (biv_entry_hasher): Likewise.
19557 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19558 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19559 * tree-cfg.c (locus_discrim_hasher): Likewise.
19560 * tree-eh.c (finally_tree_hasher): Likewise.
19561 * tree-into-ssa.c (var_info_hasher): Likewise.
19562 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
19563 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
19564 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
19565 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
19566 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
19567 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
19568 (shared_bitmap_hasher): Likewise.
19569 * tree-ssa-threadupdate.c (redirection_data): Likewise.
19570 * tree-vectorizer.h (peel_info_hasher): Likewise.
19571 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19572 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19573
19574 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19575
19576 * hash-table.h: Update comments.
19577 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19578 (nofree_ptr_hash): New class.
19579 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19580 than typed_noop_remove. Remove redudant typedefs.
19581 * attribs.c (attribute_hasher): Likewise.
19582 * cfg.c (bb_copy_hasher): Likewise.
19583 * cselib.c (cselib_hasher): Likewise.
19584 * dse.c (invariant_group_base_hasher): Likewise.
19585 * dwarf2cfi.c (trace_info_hasher): Likewise.
19586 * dwarf2out.c (macinfo_entry_hasher): Likewise.
19587 (comdat_type_hasher, loc_list_hasher): Likewise.
19588 * gcse.c (pre_ldst_expr_hasher): Likewise.
19589 * genmatch.c (id_base): Likewise.
19590 * genrecog.c (test_pattern_hasher): Likewise.
19591 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19592 * haifa-sched.c (delay_i1_hasher): Likewise.
19593 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19594 * ipa-icf.h (congruence_class_group_hash): Likewise.
19595 * ipa-profile.c (histogram_hash): Likewise.
19596 * ira-color.c (allocno_hard_regs_hasher): Likewise.
19597 * lto-streamer.h (string_slot_hasher): Likewise.
19598 * lto-streamer.c (tree_entry_hasher): Likewise.
19599 * plugin.c (event_hasher): Likewise.
19600 * postreload-gcse.c (expr_hasher): Likewise.
19601 * store-motion.c (st_expr_hasher): Likewise.
19602 * tree-sra.c (uid_decl_hasher): Likewise.
19603 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19604 (ssa_name_var_hash): Likewise.
19605 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19606 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19607 * tree-ssa-pre.c (pre_expr_d): Likewise.
19608 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19609 * vtable-verify.h (registration_hasher): Likewise.
19610 * vtable-verify.c (vtbl_map_hasher): Likewise.
19611 * config/arm/arm.c (libcall_hasher): Likewise.
19612 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19613 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19614 * config/sol2.c (comdat_entry_hasher): Likewise.
19615 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19616 (print_fold_checksum, fold_checksum_tree): Likewise.
19617 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19618 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19619 (fold_build_call_array_loc): Likewise.
19620 * tree-ssa-ccp.c (gimple_htab): Likewise.
19621 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19622 rather than pointer_type.
19623
19624 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19625
19626 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19627 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19628
19629 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19630
19631 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19632 (ggc_hasher::ggc_mx): Likewise.
19633 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
19634 that duplicate ggc_hasher ones.
19635
19636 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19637
19638 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19639 (gt_cleare_cache): Check here for deleted and empty entries.
19640 Replace handle_cache_entry with a call to keep_cache_entry.
19641 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19642 (ggc_cache_hasher::keep_cache_entry): New function.
19643 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19644 (tm_wrapper_hasher::keep_cache_entry): New function.
19645 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19646 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19647 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19648 (type_cache_hasher::keep_cache_entry): New function.
19649 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19650 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19651 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19652 (tree_type_map_cache_hasher::keep_cache_entry): New function.
19653 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19654 (tm_clone_hasher::keep_cache_entry): New function.
19655 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19656 (dllimport_hasher::keep_cache_entry): New function.
19657
19658 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19659
19660 * hash-table.h: Include hash-traits.h.
19661 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19662 (ggc_cache_hasher): Move to...
19663 * hash-traits.h: ...this new file.
19664
19665 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19666
19667 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19668 struct cl_optimization.
19669 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19670 * tree.c (make_node_stat): Allocate cl_optimization struct.
19671 (copy_node_stat): Allocate and copy cl_optimization struct.
19672
19673 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19674
19675 * function.h (struct incoming_args): Move struct.
19676 (pass_by_reference, reference_callee_copied): Remove prototypes.
19677 * emit-rtl.h (struct incoming_args): Relocate struct here.
19678 * calls.h (pass_by_reference, reference_callee_copied): Relocate
19679 prototypes here.
19680 * function.c (pass_by_reference, reference_callee_copied): Move.
19681 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19682 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19683 * ipa-chkp.c: Include calls.h.
19684
19685 2015-06-25 Andrew Macleod <amacleod@redhat.com>
19686
19687 * alias.h (alias_set_type): Move typedef.
19688 * coretypes.h (alias_set_type): Relocate typedef here.
19689 * rtl.h: Don't include alias.h.
19690
19691 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19692
19693 * cgraph.h (cgraph_rtl_info): Move to rtl.h
19694 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19695 and instance.
19696 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19697 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19698 doesn't exist.
19699 * calls.c: Include hard-reg-set.h before rtl.h.
19700 * ira.c: Likewise.
19701
19702 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19703 Vladimir Makarov <vmakarov@redhat.com>
19704
19705 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19706 Add assert.
19707
19708 2015-06-25 Richard Biener <rguenther@suse.de>
19709
19710 * fold-const.c (fold_binary_loc): Move simplification of
19711 (X <<>> C1) & C2 ...
19712 * match.pd: ... here.
19713
19714 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
19715
19716 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19717
19718 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19719
19720 * match.pd: Add patterns for vec_conds between 1 and 0.
19721
19722 2015-06-25 Richard Biener <rguenther@suse.de>
19723
19724 * tree-vect-stmts.c (vectorizable_conversion): Do not set
19725 STMT_VINFO_VEC_STMT for SLP.
19726 (vectorizable_store): Likewise.
19727 (vectorizable_load): Likewise.
19728 (vect_transform_stmt): Catch SLP vectorization clobbering
19729 STMT_VINFO_VEC_STMT.
19730
19731 2015-06-25 Richard Biener <rguenther@suse.de>
19732
19733 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19734 dumping.
19735 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19736 cleanup resulting dead code and parameters.
19737 (vect_transform_slp_perm_load): Adjust.
19738
19739 2015-06-25 Nick Clifton <nickc@redhat.com>
19740
19741 * config/bfin/bfin.c (bfin_expand_prologue): Set
19742 current_function_static_stack_size if flag_stack_usage_info is set.
19743 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19744 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19745 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19746 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19747
19748 2015-06-25 Tom de Vries <tom@codesourcery.com>
19749
19750 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19751 comment that the generated IV is unsigned.
19752
19753 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19754
19755 PR target/29693
19756 * config/arm/arm.c (arm_dbx_register_number): Return
19757 DWARF_FRAME_REGISTERS by default.
19758
19759 2015-06-25 Tom de Vries <tom@codesourcery.com>
19760
19761 * dominance.c (calculate_dominance_info): Fix verify_dominators call
19762 argument. Call verify_dominator when reusing dominator info.
19763
19764 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
19765
19766 PR target/66563
19767 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19768 an additional element of the unspec vector. Modify indices
19769 of operands.
19770 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19771 * config/sh/sh.c (prepare_move_operands): Pass incremented
19772 const_int to gen_GOTaddr2picreg.
19773 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
19774
19775 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19776
19777 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
19778 Condition on TARGET_FLOAT.
19779
19780 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19781
19782 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
19783 and (no)crypto.
19784
19785 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19786
19787 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
19788
19789 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
19790 aarch64_err_no_fpadvsimd.
19791
19792 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19793 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
19794 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
19795 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
19796 Turn error into assert, test TARGET_FLOAT.
19797 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
19798 TARGET_FLOAT.
19799
19800 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
19801
19802 PR debug/66482
19803 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
19804
19805 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19806
19807 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
19808
19809 2015-06-24 Renlin Li <renlin.li@arm.com>
19810
19811 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
19812 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
19813
19814 2015-06-24 Richard Biener <rguenther@suse.de>
19815
19816 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
19817 (main): Likewise.
19818 (lower_opt_convert): Support lowering of conditional view_convert.
19819 (parser::parse_operation): Likewise.
19820 (parser::parse_for): Likewise.
19821
19822 2015-06-24 Renlin Li <renlin.li@arm.com>
19823
19824 * varasm.c (emit_local): Use unsigned int for align variable.
19825
19826 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19827
19828 PR target/63408
19829 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
19830 for negative numbers.
19831
19832 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19833
19834 PR rtl-optimization/66306
19835 * reload.c (find_reloads): Swap the match_dup info for
19836 commutative operands.
19837
19838 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19839
19840 * config/s390/vx-builtins.md
19841 ("vec_scatter_element<mode>_<non_vec_int>")
19842 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
19843 attribute with bhfgq.
19844
19845 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19846
19847 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
19848
19849 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19850
19851 * config/s390/s390-builtin-types.def: Add flag to indicate the
19852 options under which the function type is needed.
19853 * config/s390/s390-builtins.def: Add flag to indicate the options
19854 under which the builtin is enabled.
19855 * config/s390/s390-builtins.h: Add flags parameter to macro
19856 definitions.
19857 (bflags_for_builtin): New function.
19858 (flags_for_builtin): Renamed to ...
19859 (opflags_for_builtin): ... this.
19860 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
19861 flags_for_builtin to bflags_for_builtin and
19862 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
19863 * config/s390/s390.c: Add initialization of bflags_builtin and
19864 opflags_builtin arrays.
19865 Remove code for flags_builtin.
19866 (s390_init_builtins): Only create builtin function types if one of
19867 their flags is active.
19868 Only create builtins if all of their flags are active.
19869 (s390_expand_builtin): Rename flags_for_builtin to
19870 opflags_for_builtin.
19871
19872 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19873
19874 * config/s390/vecintrin.h: Remove internal builtins.
19875
19876 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19877
19878 * config/s390/s390.c (s390_secondary_reload): Fix check for
19879 GENERAL_REGS register class.
19880
19881 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19882
19883 * config/s390/s390.c (s390_support_vector_misalignment): Call
19884 default implementation for !TARGET_VX.
19885
19886 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19887
19888 * config/s390/s390.c (s390_legitimate_constant_p): Add
19889 TARGET_VX check.
19890
19891 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19892
19893 * config/s390/s390.c (s390_vector_abi): New variable definition.
19894 (s390_check_type_for_vector_abi): New function.
19895 (TARGET_ASM_FILE_END): New macro definition.
19896 (s390_asm_file_end): New function.
19897 (s390_function_arg): Call s390_check_type_for_vector_abi.
19898 (s390_gimplify_va_arg): Likewise.
19899 * configure: Regenerate.
19900 * configure.ac: Check for .gnu_attribute Binutils feature.
19901
19902 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
19903
19904 PR target/65803
19905 * config/bfin/bfin.c (hwloop_optimize): Initialize
19906 JUMP_LABEL for newly created jump.
19907
19908 2015-06-23 Tristan Gingold <gingold@adacore.com>
19909
19910 * collect-utils.c (collect_wait): Unlink the response file here
19911 instead of...
19912 (do_wait): ...here.
19913 (utils_cleanup): ...and here.
19914
19915 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
19916
19917 * df-scan.c: Don't include target-def.h.
19918 * targhooks.c: Likewise.
19919 * config/arm/arm-c.c: Likewise.
19920 * config/i386/i386-c.c: Likewise.
19921 * config/nds32/nds32-cost.c: Likewise.
19922 * config/nds32/nds32-fp-as-gp.c: Likewise.
19923 * config/nds32/nds32-intrinsic.c: Likewise.
19924 * config/nds32/nds32-isr.c: Likewise.
19925 * config/nds32/nds32-md-auxiliary.c: Likewise.
19926 * config/nds32/nds32-memory-manipulation.c: Likewise.
19927 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19928 * config/nds32/nds32-predicates.c: Likewise.
19929
19930 2015-06-23 Richard Biener <rguenther@suse.de>
19931
19932 PR tree-optimization/66636
19933 * tree-vect-stmts.c (vectorizable_store): Properly compute the
19934 def type for further defs for strided stores.
19935
19936 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
19937
19938 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19939 conditional selects.
19940 (setcc_int<mode>, setcc_float<mode>): Reformat.
19941
19942 2015-06-23 Marek Polacek <polacek@redhat.com>
19943
19944 * match.pd ((x + y) - (x | y) -> x & y,
19945 (x + y) - (x & y) -> x | y): New patterns.
19946
19947 2015-06-23 Ludovic Courtès <ludo@gnu.org>
19948
19949 PR 65711
19950 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19951 '-dynamic-linker' within %{!shared: ...}.
19952
19953 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
19954
19955 PR target/66560
19956 * config/i386/predicates.md (addsub_vm_operator): New predicate.
19957 (addsub_vs_operator): Ditto.
19958 (addsub_vs_parallel): Ditto.
19959 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19960 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19961 Put minus RTX before plus and adjust vec_merge selector.
19962 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19963 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19964 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19965 (addsub vec_merge splitters): New combiner splitters.
19966 (addsub vec_select/vec_concat splitters): Ditto.
19967
19968 2015-06-23 Bin Cheng <bin.cheng@arm.com>
19969
19970 PR tree-optimization/66449
19971 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19972 POINTER_PLUS_EXPR for pointers.
19973
19974 2015-06-23 Alan Modra <amodra@gmail.com>
19975
19976 * rtlanal.c (commutative_operand_precedence): Correct comments.
19977 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19978 declaration. Return an int. Distinguish REG,REG return from
19979 others.
19980 (struct simplify_plus_minus_op_data): Make local to function.
19981 (simplify_plus_minus): Don't set canonicalized if merely sorting
19982 registers. Avoid packing ops if nothing changes. White space fixes.
19983
19984 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
19985
19986 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
19987 -fdump-ada-spec is passed but not if -fsyntax-only is.
19988
19989 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
19990
19991 PR bootstrap/63740
19992 * lra-lives.c (process_bb_lives): Check insn copying the same
19993 reload pseudo and don't create a copy for it.
19994
19995 2015-06-22 Tom de Vries <tom@codesourcery.com>
19996
19997 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
19998 for cond_stmt.
19999
20000 2015-06-22 Tom de Vries <tom@codesourcery.com>
20001
20002 * builtins.def (DEF_GOMP_BUILTIN): Test
20003 'flag_tree_parallelize_loops > 1' instead of
20004 'flag_tree_parallelize_loops'. Test flag_cilkplus.
20005
20006 2015-06-22 Tom de Vries <tom@codesourcery.com>
20007
20008 * dominance.c (calculate_dominance_info): Verify dominators if
20009 early-out.
20010
20011 2015-06-22 Marek Polacek <polacek@redhat.com>
20012
20013 * match.pd ((x ^ y) ^ (x | y) -> x & y,
20014 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
20015 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
20016 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
20017
20018 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
20019
20020 PR target/65871
20021 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
20022 cost of embedded comparison.
20023
20024 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20025
20026 PR target/65914
20027 * config/rs6000/predicates.md (altivec_register_operand): Permit
20028 virtual stack registers.
20029 (vsx_register_operand): Likewise.
20030 (vfloat_operand): Likewise.
20031 (vint_operand): Likewise.
20032 (vlogical_operand): Likewise.
20033
20034 2015-06-22 Richard Biener <rguenther@suse.de>
20035
20036 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
20037 and single_scalar_iteration_cost members.
20038 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
20039 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
20040 (vect_get_single_scalar_iteration_cost): Remove.
20041 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20042 Use LOOP_VINFO_SCALAR_ITERATION_COST.
20043 * tree-vect-loop.c (destroy_loop_vec_info): Free
20044 scalar_cost_vec.
20045 (vect_get_single_scalar_iteration_cost): Compute result into
20046 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
20047 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
20048 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
20049 (vect_estimate_min_profitable_iters): Use them.
20050
20051 2015-06-22 Christian Bruel <christian.bruel@st.com>
20052
20053 PR target/52144
20054 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
20055 (TARGET_INSERT_ATTRIBUTES): Define.
20056 (thumb_flipper): New var.
20057 * config/arm/arm.opt (-mflip-thumb): New switch.
20058
20059 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20060 Martin Liska <mliska@suse.cz>
20061
20062 PR ipa/65908
20063 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
20064 construction of arg_types.
20065 (sem_function::sem_function): Likewise.
20066 (sem_function::~sem_function): Remove destruction of arg_types.
20067 (sem_function::compatible_parm_types_p): New function.
20068 (sem_function::equals_wpa): Reorg matching of return values
20069 and parameter types.
20070 (sem_function::equals_private): Reorg mathcing of argument types.
20071 (sem_function::parse_tree_args): Remove.
20072 * ipa-icf.h (init_wpa): Do not call it.
20073 (parse_tree_args): Remove.
20074 (compatible_parm_types_p): Declare.
20075 (result_type): Remove.
20076 (arg_types): Remove.
20077
20078 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
20079
20080 PR ipa/66351
20081 * ipa-polymorphic-call.c
20082 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
20083 initializing alias oracle; fix formating; set base_alias_set if it
20084 is known.
20085
20086 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
20087
20088 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
20089 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
20090 (find_inc): Likewise.
20091 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
20092 swapping.
20093 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
20094 * df-scan.c (df_swap_refs): Remove.
20095 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
20096 * dominance.c (link_roots): Use std::swap instead of manually swapping.
20097 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
20098 * fold-const.c (fold_relational_const): Likewise.
20099 * genattrtab.c (simplify_test_exp): Likewise.
20100 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
20101 gimple_simplify): Likewise.
20102 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
20103 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
20104 * ipa-devirt.c (add_type_duplicate): Likewise.
20105 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
20106 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
20107 * lra.c (lra_create_copy): Likewise.
20108 * lto-streamer-out.c (DFS::DFS): Likewise.
20109 * modulo-sched.c (get_sched_window): Likewise.
20110 * omega.c (omega_pretty_print_problem): Likewise.
20111 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
20112 * reload1.c (reloads_unique_chain_p): Likewise.
20113 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
20114 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
20115 use std::swap.
20116 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
20117 manually swapping.
20118 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
20119 predicate_mem_writes): Likewise.
20120 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
20121 * tree-predcom.c (combine_chains): Likewise.
20122 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
20123 refs_may_alias_p_1): Likewise.
20124 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
20125 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
20126 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
20127 number_of_iterations_cond): Likewise.
20128 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20129 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
20130 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20131 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
20132 * tree-vrp.c (extract_range_from_binary_expr_1,
20133 extract_range_from_unary_expr_1): Likewise.
20134
20135 2015-06-20 Marek Polacek <polacek@redhat.com>
20136
20137 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
20138
20139 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
20140
20141 PR target/66591
20142 * config/sh/sh.c (prepare_move_operands): Replace subreg
20143 index term with R0 for base and index addressing.
20144
20145 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
20146
20147 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
20148 op1 is an fp zero.
20149 (movsf_aarch64): Change condition from register_operand to
20150 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
20151 load1. Change type for alternative 7 to store1.
20152 (movdf_aarch64): Likewise.
20153
20154 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
20155
20156 * config/vax/vax.md: Adjust sign/zero extend patterns to
20157 handle SUBREGs in operands[1].
20158
20159 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20160
20161 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20162 of manually swapping.
20163 (expand_vec_perm_interleave2): Likewise.
20164
20165 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
20166
20167 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20168 reuse bounds created for abnormal ssa names.
20169
20170 2015-06-19 Jakub Jelinek <jakub@redhat.com>
20171
20172 * config/nvptx/nvptx.md (allocate_stack): Rename to...
20173 (allocate_stack_<mode>): ... this, and add :P on both
20174 match_operand and unspec.
20175 (allocate_stack): New expander.
20176
20177 2015-06-19 Christian Bruel <christian.bruel@st.com>
20178
20179 PR target/66541
20180 PR target/52144
20181 * config/arm/arm.c (arm_set_current_function): Handle
20182 explicit default options.
20183
20184 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20185
20186 * config/i386/i386.md (*movsicc_noc_zext): New insn.
20187 (zero-extended cmove with mem peephole2): New pattern.
20188 (cmove with mem peephole2): Merge patterns.
20189
20190 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20191
20192 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20193
20194 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
20195
20196 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20197 * config/mips/mips.md (*madd4<mode>): Ditto.
20198 (*nmadd3<mode>) Ditto.
20199 (*nmadd4<mode>_fastmath): Ditto.
20200 (*nmadd3<mode>_fastmath): Ditto.
20201 (*nmsub4<mode>): Ditto.
20202 (*nmsub3<mode>): Ditto.
20203 (*nmsub4<mode>_fastmath): Ditto.
20204 (*nmsub3<mode>_fastmath): Ditto.
20205
20206 2015-06-18 Michael Matz <matz@suse.de>
20207
20208 PR middle-end/66253
20209 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20210 grouped strided stores.
20211 (vectorizable_load): Don't use the DR from first_stmt in
20212 the non-SLP grouped strided case.
20213
20214 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20215
20216 PR target/66569
20217 * function.c (assign_bounds): Add arguments assign_regs,
20218 assign_special, assign_bt.
20219 (assign_parms): For vararg functions handle bounds in BT
20220 and special slots after incoming vararg bounds.
20221
20222 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20223
20224 PR middle-end/66568
20225 * cfgexpand.c (expand_return): Handle missing bounds.
20226 (expand_gimple_stmt_1): Likewise.
20227 * tree-chkp.c (chkp_expand_zero_bounds): New.
20228 * tree-chkp.h (chkp_expand_zero_bounds): New.
20229
20230 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20231
20232 PR middle-end/66567
20233 * ipa-chkp.c (chkp_maybe_create_clone): Require
20234 functions to be instrumentable.
20235 * tree-chkp.c (chkp_replace_function_pointer): Use
20236 chkp_instrumentable_p instead of attribute check.
20237
20238 2015-06-18 Richard Biener <rguenther@suse.de>
20239
20240 PR tree-optimization/66510
20241 * tree-vect-stmts.c (vectorizable_load): Properly compute the
20242 number of vector loads for SLP permuted loads.
20243 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20244 check the stride for loop vectorization.
20245 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20246 vectorization factor.
20247 (vect_analyze_group_access): If the group size is not a power
20248 of two require a epilogue loop.
20249 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20250 compute and optimizing and alias test pruning after final
20251 vectorization factor computation.
20252 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20253 vector alignment.
20254 (vect_transform_slp_perm_load): Properly compute the original
20255 number of vector load stmts.
20256
20257 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20258
20259 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20260 "unlikely character , in @var" warning.
20261
20262 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
20263
20264 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20265 (ix86_function_arg_advance): Ditto.
20266 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
20267
20268 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20269
20270 * function.h (struct rtl_data): Remove struct and accessor macros.
20271 * emit-rtl.h (struct rtl_data): Relocate to here.
20272 * Makefile.in (GTFILES): Add emit-rtl.h.
20273 * df-core.c: Include emit-rtl.h.
20274 * genattrtab.c: Likewise.
20275 * genconditions.c: Likewise.
20276 * genpreds.c: Likewise.
20277 * genrecog.c: Likewise.
20278 * regcprop.c: Likewise.
20279 * resource.c: Likewise.
20280 * sched-rgn.c: Likewise.
20281 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20282 * config/i386/winnt.c: Likewise.
20283
20284 2015-06-17 Jakub Jelinek <jakub@redhat.com>
20285
20286 PR middle-end/66429
20287 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20288 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
20289 and has_force_vectorize_loops flags from cfun into
20290 child_cfun.
20291 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20292 if simduid is non-NULL.
20293 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20294 * passes.def (pass_simduid_cleanup): Add new pass after loop
20295 passes.
20296 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20297 indirection from htab argument's type.
20298 (shrink_simd_arrays): New function.
20299 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
20300 Don't call adjust_simduid_builtins if there are no loops.
20301 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20302 (pass_simduid_cleanup::execute): New method.
20303 (make_pass_simduid_cleanup): New function.
20304
20305 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
20306
20307 * tree-core.h (tree_target_option): Make opts field a pointer to a
20308 cl_target_option instead of an instance of the struct.
20309 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20310 the structure.
20311 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20312 TARGET_OPTION_NODE.
20313 (copy_node_stat): Allocate and copy struct cl_target_option.
20314
20315 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20316
20317 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20318 Remove conditional exposure of prototypes.
20319 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20320 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
20321 definitions in tree.h with functions.
20322 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20323 anon_aggrname_p.
20324 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20325
20326 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
20327
20328 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20329 (*cmp<mode>_signed): ... this.
20330 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20331 (*cmp<mode>_unsigned): ... this. Remove %b.
20332
20333 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20334
20335 * coretypes.h: Include input.h and as-a.h.
20336 * rtl.h: Include input.h and as-a.h for generator files.
20337 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20338 * vec.c: Don't include diagnostic-core.h.
20339 * alias.c: Do not include input.h, line-map.h or is-a.h.
20340 * asan.c: Likewise.
20341 * attribs.c: Likewise.
20342 * auto-inc-dec.c: Likewise.
20343 * auto-profile.c: Likewise.
20344 * bb-reorder.c: Likewise.
20345 * bt-load.c: Likewise.
20346 * builtins.c: Likewise.
20347 * caller-save.c: Likewise.
20348 * calls.c: Likewise.
20349 * ccmp.c: Likewise.
20350 * cfg.c: Likewise.
20351 * cfganal.c: Likewise.
20352 * cfgbuild.c: Likewise.
20353 * cfgcleanup.c: Likewise.
20354 * cfgexpand.c: Likewise.
20355 * cfghooks.c: Likewise.
20356 * cfgloop.c: Likewise.
20357 * cfgloop.h: Likewise.
20358 * cfgloopanal.c: Likewise.
20359 * cfgloopmanip.c: Likewise.
20360 * cfgrtl.c: Likewise.
20361 * cgraph.c: Likewise.
20362 * cgraphbuild.c: Likewise.
20363 * cgraphclones.c: Likewise.
20364 * cgraphunit.c: Likewise.
20365 * cilk-common.c: Likewise.
20366 * combine-stack-adj.c: Likewise.
20367 * combine.c: Likewise.
20368 * compare-elim.c: Likewise.
20369 * convert.c: Likewise.
20370 * coverage.c: Likewise.
20371 * cppbuiltin.c: Likewise.
20372 * cprop.c: Likewise.
20373 * cse.c: Likewise.
20374 * cselib.c: Likewise.
20375 * data-streamer-in.c: Likewise.
20376 * data-streamer-out.c: Likewise.
20377 * data-streamer.c: Likewise.
20378 * dbxout.c: Likewise.
20379 * dce.c: Likewise.
20380 * ddg.c: Likewise.
20381 * debug.c: Likewise.
20382 * df-core.c: Likewise.
20383 * df-problems.c: Likewise.
20384 * df-scan.c: Likewise.
20385 * df.h: Likewise.
20386 * dfp.c: Likewise.
20387 * diagnostic-core.h: Likewise.
20388 * diagnostic.c: Likewise.
20389 * dojump.c: Likewise.
20390 * dominance.c: Likewise.
20391 * domwalk.c: Likewise.
20392 * double-int.c: Likewise.
20393 * dse.c: Likewise.
20394 * dumpfile.c: Likewise.
20395 * dumpfile.h: Likewise.
20396 * dwarf2asm.c: Likewise.
20397 * dwarf2cfi.c: Likewise.
20398 * dwarf2out.c: Likewise.
20399 * emit-rtl.c: Likewise.
20400 * et-forest.c: Likewise.
20401 * except.c: Likewise.
20402 * explow.c: Likewise.
20403 * expmed.c: Likewise.
20404 * expr.c: Likewise.
20405 * final.c: Likewise.
20406 * fixed-value.c: Likewise.
20407 * fold-const.c: Likewise.
20408 * function.c: Likewise.
20409 * fwprop.c: Likewise.
20410 * gcc-plugin.h: Likewise.
20411 * gcse.c: Likewise.
20412 * generic-match-head.c: Likewise.
20413 * ggc-page.c: Likewise.
20414 * gimple-builder.c: Likewise.
20415 * gimple-expr.c: Likewise.
20416 * gimple-fold.c: Likewise.
20417 * gimple-iterator.c: Likewise.
20418 * gimple-low.c: Likewise.
20419 * gimple-match-head.c: Likewise.
20420 * gimple-pretty-print.c: Likewise.
20421 * gimple-ssa-isolate-paths.c: Likewise.
20422 * gimple-ssa-strength-reduction.c: Likewise.
20423 * gimple-streamer-in.c: Likewise.
20424 * gimple-streamer-out.c: Likewise.
20425 * gimple-streamer.h: Likewise.
20426 * gimple-walk.c: Likewise.
20427 * gimple.c: Likewise.
20428 * gimplify-me.c: Likewise.
20429 * gimplify.c: Likewise.
20430 * godump.c: Likewise.
20431 * graph.c: Likewise.
20432 * graphite-blocking.c: Likewise.
20433 * graphite-dependences.c: Likewise.
20434 * graphite-interchange.c: Likewise.
20435 * graphite-isl-ast-to-gimple.c: Likewise.
20436 * graphite-optimize-isl.c: Likewise.
20437 * graphite-poly.c: Likewise.
20438 * graphite-scop-detection.c: Likewise.
20439 * graphite-sese-to-poly.c: Likewise.
20440 * graphite.c: Likewise.
20441 * haifa-sched.c: Likewise.
20442 * hw-doloop.c: Likewise.
20443 * ifcvt.c: Likewise.
20444 * init-regs.c: Likewise.
20445 * input.c: Likewise.
20446 * internal-fn.c: Likewise.
20447 * ipa-chkp.c: Likewise.
20448 * ipa-comdats.c: Likewise.
20449 * ipa-cp.c: Likewise.
20450 * ipa-devirt.c: Likewise.
20451 * ipa-icf-gimple.c: Likewise.
20452 * ipa-icf.c: Likewise.
20453 * ipa-inline-analysis.c: Likewise.
20454 * ipa-inline-transform.c: Likewise.
20455 * ipa-inline.c: Likewise.
20456 * ipa-polymorphic-call.c: Likewise.
20457 * ipa-profile.c: Likewise.
20458 * ipa-prop.c: Likewise.
20459 * ipa-pure-const.c: Likewise.
20460 * ipa-ref.c: Likewise.
20461 * ipa-reference.c: Likewise.
20462 * ipa-split.c: Likewise.
20463 * ipa-utils.c: Likewise.
20464 * ipa-visibility.c: Likewise.
20465 * ipa.c: Likewise.
20466 * ira-build.c: Likewise.
20467 * ira-color.c: Likewise.
20468 * ira-conflicts.c: Likewise.
20469 * ira-costs.c: Likewise.
20470 * ira-emit.c: Likewise.
20471 * ira-lives.c: Likewise.
20472 * ira.c: Likewise.
20473 * jump.c: Likewise.
20474 * langhooks.c: Likewise.
20475 * lcm.c: Likewise.
20476 * loop-doloop.c: Likewise.
20477 * loop-init.c: Likewise.
20478 * loop-invariant.c: Likewise.
20479 * loop-iv.c: Likewise.
20480 * loop-unroll.c: Likewise.
20481 * lower-subreg.c: Likewise.
20482 * lra-assigns.c: Likewise.
20483 * lra-coalesce.c: Likewise.
20484 * lra-constraints.c: Likewise.
20485 * lra-eliminations.c: Likewise.
20486 * lra-lives.c: Likewise.
20487 * lra-remat.c: Likewise.
20488 * lra-spills.c: Likewise.
20489 * lra.c: Likewise.
20490 * lto-cgraph.c: Likewise.
20491 * lto-compress.c: Likewise.
20492 * lto-opts.c: Likewise.
20493 * lto-section-in.c: Likewise.
20494 * lto-section-out.c: Likewise.
20495 * lto-streamer-in.c: Likewise.
20496 * lto-streamer-out.c: Likewise.
20497 * lto-streamer.c: Likewise.
20498 * mcf.c: Likewise.
20499 * mode-switching.c: Likewise.
20500 * modulo-sched.c: Likewise.
20501 * omega.c: Likewise.
20502 * omp-low.c: Likewise.
20503 * optabs.c: Likewise.
20504 * opts-global.c: Likewise.
20505 * opts.h: Likewise.
20506 * passes.c: Likewise.
20507 * plugin.c: Likewise.
20508 * postreload-gcse.c: Likewise.
20509 * postreload.c: Likewise.
20510 * predict.c: Likewise.
20511 * pretty-print.h: Likewise.
20512 * print-rtl.c: Likewise.
20513 * print-tree.c: Likewise.
20514 * profile.c: Likewise.
20515 * real.c: Likewise.
20516 * realmpfr.c: Likewise.
20517 * recog.c: Likewise.
20518 * ree.c: Likewise.
20519 * reg-stack.c: Likewise.
20520 * regcprop.c: Likewise.
20521 * reginfo.c: Likewise.
20522 * regrename.c: Likewise.
20523 * regstat.c: Likewise.
20524 * reload.c: Likewise.
20525 * reload1.c: Likewise.
20526 * reorg.c: Likewise.
20527 * resource.c: Likewise.
20528 * rtl-chkp.c: Likewise.
20529 * rtl-error.c: Likewise.
20530 * rtlanal.c: Likewise.
20531 * rtlhooks.c: Likewise.
20532 * sanopt.c: Likewise.
20533 * sched-deps.c: Likewise.
20534 * sched-ebb.c: Likewise.
20535 * sched-rgn.c: Likewise.
20536 * sched-vis.c: Likewise.
20537 * sdbout.c: Likewise.
20538 * sel-sched-dump.c: Likewise.
20539 * sel-sched-ir.c: Likewise.
20540 * sel-sched.c: Likewise.
20541 * sese.c: Likewise.
20542 * shrink-wrap.c: Likewise.
20543 * simplify-rtx.c: Likewise.
20544 * stack-ptr-mod.c: Likewise.
20545 * statistics.c: Likewise.
20546 * stmt.c: Likewise.
20547 * stor-layout.c: Likewise.
20548 * store-motion.c: Likewise.
20549 * streamer-hooks.c: Likewise.
20550 * stringpool.c: Likewise.
20551 * symtab.c: Likewise.
20552 * target-globals.c: Likewise.
20553 * targhooks.c: Likewise.
20554 * toplev.c: Likewise.
20555 * tracer.c: Likewise.
20556 * trans-mem.c: Likewise.
20557 * tree-affine.c: Likewise.
20558 * tree-browser.c: Likewise.
20559 * tree-call-cdce.c: Likewise.
20560 * tree-cfg.c: Likewise.
20561 * tree-cfgcleanup.c: Likewise.
20562 * tree-chkp-opt.c: Likewise.
20563 * tree-chkp.c: Likewise.
20564 * tree-chrec.c: Likewise.
20565 * tree-complex.c: Likewise.
20566 * tree-data-ref.c: Likewise.
20567 * tree-dfa.c: Likewise.
20568 * tree-diagnostic.c: Likewise.
20569 * tree-dump.c: Likewise.
20570 * tree-eh.c: Likewise.
20571 * tree-emutls.c: Likewise.
20572 * tree-if-conv.c: Likewise.
20573 * tree-inline.c: Likewise.
20574 * tree-into-ssa.c: Likewise.
20575 * tree-iterator.c: Likewise.
20576 * tree-loop-distribution.c: Likewise.
20577 * tree-nested.c: Likewise.
20578 * tree-nrv.c: Likewise.
20579 * tree-object-size.c: Likewise.
20580 * tree-outof-ssa.c: Likewise.
20581 * tree-parloops.c: Likewise.
20582 * tree-phinodes.c: Likewise.
20583 * tree-predcom.c: Likewise.
20584 * tree-pretty-print.c: Likewise.
20585 * tree-profile.c: Likewise.
20586 * tree-scalar-evolution.c: Likewise.
20587 * tree-sra.c: Likewise.
20588 * tree-ssa-address.c: Likewise.
20589 * tree-ssa-alias.c: Likewise.
20590 * tree-ssa-ccp.c: Likewise.
20591 * tree-ssa-coalesce.c: Likewise.
20592 * tree-ssa-copy.c: Likewise.
20593 * tree-ssa-copyrename.c: Likewise.
20594 * tree-ssa-dce.c: Likewise.
20595 * tree-ssa-dom.c: Likewise.
20596 * tree-ssa-dse.c: Likewise.
20597 * tree-ssa-forwprop.c: Likewise.
20598 * tree-ssa-ifcombine.c: Likewise.
20599 * tree-ssa-live.c: Likewise.
20600 * tree-ssa-loop-ch.c: Likewise.
20601 * tree-ssa-loop-im.c: Likewise.
20602 * tree-ssa-loop-ivcanon.c: Likewise.
20603 * tree-ssa-loop-ivopts.c: Likewise.
20604 * tree-ssa-loop-manip.c: Likewise.
20605 * tree-ssa-loop-niter.c: Likewise.
20606 * tree-ssa-loop-prefetch.c: Likewise.
20607 * tree-ssa-loop-unswitch.c: Likewise.
20608 * tree-ssa-loop.c: Likewise.
20609 * tree-ssa-math-opts.c: Likewise.
20610 * tree-ssa-operands.c: Likewise.
20611 * tree-ssa-phiopt.c: Likewise.
20612 * tree-ssa-phiprop.c: Likewise.
20613 * tree-ssa-pre.c: Likewise.
20614 * tree-ssa-propagate.c: Likewise.
20615 * tree-ssa-reassoc.c: Likewise.
20616 * tree-ssa-sccvn.c: Likewise.
20617 * tree-ssa-scopedtables.c: Likewise.
20618 * tree-ssa-sink.c: Likewise.
20619 * tree-ssa-strlen.c: Likewise.
20620 * tree-ssa-structalias.c: Likewise.
20621 * tree-ssa-tail-merge.c: Likewise.
20622 * tree-ssa-ter.c: Likewise.
20623 * tree-ssa-threadedge.c: Likewise.
20624 * tree-ssa-threadupdate.c: Likewise.
20625 * tree-ssa-uncprop.c: Likewise.
20626 * tree-ssa-uninit.c: Likewise.
20627 * tree-ssa.c: Likewise.
20628 * tree-ssanames.c: Likewise.
20629 * tree-stdarg.c: Likewise.
20630 * tree-streamer-in.c: Likewise.
20631 * tree-streamer-out.c: Likewise.
20632 * tree-streamer.c: Likewise.
20633 * tree-switch-conversion.c: Likewise.
20634 * tree-tailcall.c: Likewise.
20635 * tree-vect-data-refs.c: Likewise.
20636 * tree-vect-generic.c: Likewise.
20637 * tree-vect-loop-manip.c: Likewise.
20638 * tree-vect-loop.c: Likewise.
20639 * tree-vect-patterns.c: Likewise.
20640 * tree-vect-slp.c: Likewise.
20641 * tree-vect-stmts.c: Likewise.
20642 * tree-vectorizer.c: Likewise.
20643 * tree-vrp.c: Likewise.
20644 * tree.c: Likewise.
20645 * tsan.c: Likewise.
20646 * ubsan.c: Likewise.
20647 * valtrack.c: Likewise.
20648 * value-prof.c: Likewise.
20649 * var-tracking.c: Likewise.
20650 * varasm.c: Likewise.
20651 * varpool.c: Likewise.
20652 * vmsdbgout.c: Likewise.
20653 * vtable-verify.c: Likewise.
20654 * web.c: Likewise.
20655 * wide-int.cc: Likewise.
20656 * xcoffout.c: Likewise.
20657 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20658 * common/common-targhooks.c: Likewise.
20659 * config/aarch64/aarch64-builtins.c: Likewise.
20660 * config/aarch64/aarch64.c: Likewise.
20661 * config/alpha/alpha.c: Likewise.
20662 * config/arc/arc.c: Likewise.
20663 * config/arm/aarch-common.c: Likewise.
20664 * config/arm/arm-builtins.c: Likewise.
20665 * config/arm/arm-c.c: Likewise.
20666 * config/arm/arm.c: Likewise.
20667 * config/avr/avr-c.c: Likewise.
20668 * config/avr/avr-log.c: Likewise.
20669 * config/avr/avr.c: Likewise.
20670 * config/bfin/bfin.c: Likewise.
20671 * config/c6x/c6x.c: Likewise.
20672 * config/cr16/cr16.c: Likewise.
20673 * config/cris/cris.c: Likewise.
20674 * config/darwin-c.c: Likewise.
20675 * config/darwin.c: Likewise.
20676 * config/default-c.c: Likewise.
20677 * config/epiphany/epiphany.c: Likewise.
20678 * config/epiphany/mode-switch-use.c: Likewise.
20679 * config/epiphany/resolve-sw-modes.c: Likewise.
20680 * config/fr30/fr30.c: Likewise.
20681 * config/frv/frv.c: Likewise.
20682 * config/ft32/ft32.c: Likewise.
20683 * config/glibc-c.c: Likewise.
20684 * config/h8300/h8300.c: Likewise.
20685 * config/i386/i386-c.c: Likewise.
20686 * config/i386/i386.c: Likewise.
20687 * config/i386/msformat-c.c: Likewise.
20688 * config/i386/winnt-cxx.c: Likewise.
20689 * config/i386/winnt-stubs.c: Likewise.
20690 * config/i386/winnt.c: Likewise.
20691 * config/ia64/ia64-c.c: Likewise.
20692 * config/ia64/ia64.c: Likewise.
20693 * config/iq2000/iq2000.c: Likewise.
20694 * config/lm32/lm32.c: Likewise.
20695 * config/m32c/m32c-pragma.c: Likewise.
20696 * config/m32c/m32c.c: Likewise.
20697 * config/m32r/m32r.c: Likewise.
20698 * config/m68k/m68k.c: Likewise.
20699 * config/mcore/mcore.c: Likewise.
20700 * config/mep/mep-pragma.c: Likewise.
20701 * config/mep/mep.c: Likewise.
20702 * config/microblaze/microblaze-c.c: Likewise.
20703 * config/microblaze/microblaze.c: Likewise.
20704 * config/mips/mips.c: Likewise.
20705 * config/mmix/mmix.c: Likewise.
20706 * config/mn10300/mn10300.c: Likewise.
20707 * config/moxie/moxie.c: Likewise.
20708 * config/msp430/msp430-c.c: Likewise.
20709 * config/msp430/msp430.c: Likewise.
20710 * config/nds32/nds32-cost.c: Likewise.
20711 * config/nds32/nds32-fp-as-gp.c: Likewise.
20712 * config/nds32/nds32-intrinsic.c: Likewise.
20713 * config/nds32/nds32-isr.c: Likewise.
20714 * config/nds32/nds32-md-auxiliary.c: Likewise.
20715 * config/nds32/nds32-memory-manipulation.c: Likewise.
20716 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20717 * config/nds32/nds32-predicates.c: Likewise.
20718 * config/nds32/nds32.c: Likewise.
20719 * config/nios2/nios2.c: Likewise.
20720 * config/nvptx/nvptx.c: Likewise.
20721 * config/pa/pa.c: Likewise.
20722 * config/pdp11/pdp11.c: Likewise.
20723 * config/rl78/rl78-c.c: Likewise.
20724 * config/rl78/rl78.c: Likewise.
20725 * config/rs6000/rs6000-c.c: Likewise.
20726 * config/rs6000/rs6000.c: Likewise.
20727 * config/rx/rx.c: Likewise.
20728 * config/s390/s390-c.c: Likewise.
20729 * config/s390/s390.c: Likewise.
20730 * config/sh/sh-c.c: Likewise.
20731 * config/sh/sh-mem.cc: Likewise.
20732 * config/sh/sh.c: Likewise.
20733 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20734 * config/sh/sh_treg_combine.cc: Likewise.
20735 * config/sol2-c.c: Likewise.
20736 * config/sol2-cxx.c: Likewise.
20737 * config/sol2-stubs.c: Likewise.
20738 * config/sol2.c: Likewise.
20739 * config/sparc/sparc-c.c: Likewise.
20740 * config/sparc/sparc.c: Likewise.
20741 * config/spu/spu-c.c: Likewise.
20742 * config/spu/spu.c: Likewise.
20743 * config/stormy16/stormy16.c: Likewise.
20744 * config/tilegx/mul-tables.c: Likewise.
20745 * config/tilegx/tilegx-c.c: Likewise.
20746 * config/tilegx/tilegx.c: Likewise.
20747 * config/tilepro/mul-tables.c: Likewise.
20748 * config/tilepro/tilepro-c.c: Likewise.
20749 * config/tilepro/tilepro.c: Likewise.
20750 * config/v850/v850-c.c: Likewise.
20751 * config/v850/v850.c: Likewise.
20752 * config/vax/vax.c: Likewise.
20753 * config/visium/visium.c: Likewise.
20754 * config/vms/vms-c.c: Likewise.
20755 * config/vms/vms.c: Likewise.
20756 * config/vxworks.c: Likewise.
20757 * config/winnt-c.c: Likewise.
20758 * config/xtensa/xtensa.c: Likewise.
20759
20760 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
20761
20762 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20763 function.
20764 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20765
20766 2015-06-17 Richard Biener <rguenther@suse.de>
20767
20768 PR tree-optimization/66251
20769 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20770 stmts for SLP strided stores.
20771
20772 Revert
20773 2015-05-22 Richard Biener <rguenther@suse.de>
20774
20775 PR tree-optimization/66251
20776 * tree-vect-stmts.c (vectorizable_conversion): Properly
20777 set STMT_VINFO_VEC_STMT even for the SLP case.
20778
20779 2015-05-26 Michael Matz <matz@suse.de>
20780
20781 PR middle-end/66251
20782 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
20783 STMT_VINFO_VEC_STMT, also with SLP.
20784
20785 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
20786
20787 PR target/56766
20788 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
20789 (*avx_addsubv4df3_1s): Ditto.
20790 (*sse3_addsubv2df3_1): Ditto.
20791 (*sse3_addsubv2df3_1s): Ditto.
20792 (*avx_addsubv8sf3_1): Ditto.
20793 (*avx_addsubv8sf3_1s): Ditto.
20794 (*sse3_addsubv4sf3_1): Ditto.
20795 (*sse3_addsubv4sf3_1s): Ditto.
20796
20797 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
20798
20799 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
20800 (SYSROOT_SUFFIX_SPEC): Update.
20801 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
20802 (STARTFILE_PREFIX_SPEC): Update.
20803 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
20804 (MULTILIB_REQUIRED): New.
20805 (MULTILIB_OSDIRNAMES): New.
20806 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
20807 (MULTILIB_REQUIRED): New.
20808 (MULTILIB_OSDIRNAMES): New.
20809
20810 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
20811
20812 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
20813 * config/aarch64/aarch64-options-extensions.def: Update "fP",
20814 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
20815 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
20816 (AARCH64_FL_PAN): New.
20817 (AARCH64_FL_LOR): New.
20818 (AARCH64_FL_RDMA): New.
20819 (AARCH64_FL_FOR_ARCH8_1): New.
20820 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
20821 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
20822
20823 2015-06-16 Martin Liska <mliska@suse.cz>
20824
20825 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
20826 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
20827 guard.
20828
20829 2015-06-16 Richard Biener <rguenther@suse.de>
20830
20831 * tree-vect-stmts.c (vectorizable_store): Adjust.
20832 (vectorizable_load): Likewise.
20833 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20834 Simplify.
20835 (vect_create_data_ref_ptr): Likewise.
20836 (bump_vector_ptr): Adjust.
20837
20838 2015-06-16 Richard Biener <rguenther@suse.de>
20839
20840 * tree-vect-stmts.c (vectorizable_load): Properly start loads
20841 with the first element if this is grouped loads.
20842
20843 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
20844
20845 * config/arm/arm-protos.h (struct tune_params): Rename
20846 log_op_non_sc to log_op_non_short_circuit, and rename enum
20847 values to expand SC to SHORT_CIRCUIT.
20848 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
20849 to LOG_OP_NON_SHORT_CIRCUIT.
20850 (arm_fastmul_tune):Likewise
20851 (arm_strongarm_tune): Likewise.
20852 (arm_xscale_tune): Likewise.
20853 (arm_9e_tune): Likewise.
20854 (arm_marvell_pj4_tune): Likewise.
20855 (arm_v6t2_tune): Likewise.
20856 (arm_cortex_tune): Likewise.
20857 (arm_cortex_a8_tune): Likewise.
20858 (arm_cortex_a7_tune): Likewise.
20859 (arm_cortex_a15_tune): Likewise.
20860 (arm_cortex_a53_tune): Likewise.
20861 (arm_cortex_a57_tune): Likewise.
20862 (arm_xgene1_tune): Likewise.
20863 (arm_cortex_a5_tune): Likewise.
20864 (arm_cortex_a9_tune): Likewise.
20865 (arm_cortex_a12_tune): Likewise.
20866 (arm_v7m_tune): Likewise.
20867 (arm_cortex_m7_tune): Likewise.
20868 (arm_v6m_tune): Likewise.
20869 (arm_fa726te_tune): Likewise.
20870
20871 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
20872
20873 * altivec.md: Delete UNSPEC_VMLADDUHM.
20874 (mulv4si3_p8): New pattern.
20875 (mulv4si3): Use it for POWER8.
20876 (mulv8hi3): Use vmladduhm with zero addend.
20877 (altivec_vmladduhm): Descriptive RTL.
20878
20879 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
20880
20881 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20882 to use neon_move instead of mov_imm.
20883 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20884 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20885
20886 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20887 aarch64_float_const_zero_rtx_p check before TFmode check.
20888 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20889 an fp zero.
20890 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
20891 code and attributes to match. Change condition from register_operand
20892 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
20893 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
20894 to store2.
20895
20896 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
20897
20898 PR debug/66535
20899 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20900 there is no parent.
20901
20902 2015-06-14 Shiva Chen <shiva0217@gmail.com>
20903
20904 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20905 HOST_WIDE_INT parameter.
20906
20907 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
20908
20909 PR ipa/66181
20910 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20911 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20912 TYPE_NO_FORCE_BLK.
20913 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20914
20915 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
20916
20917 * rtl.h (classify_insn): Declare.
20918 * emit-rtl.c (classify_insn): Move to...
20919 * rtl.c: ...here and add generator support.
20920 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20921 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20922 * genemit.c (gen_emit_seq): New function.
20923 (gen_expand, gen_split): Use it.
20924
20925 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
20926
20927 * tree.c (make_vector_stat): Fix comment to state that the
20928 function returns a VECTOR_CST.
20929
20930 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
20931
20932 * gensupport.h (add_implicit_parallel): Declare.
20933 * genrecog.c (add_implicit_parallel): Move to...
20934 * gensupport.c (add_implicit_parallel): ...here.
20935 (process_one_cond_exec): Use it.
20936 * genemit.c (gen_insn): Likewise.
20937
20938 2015-06-13 Iain Sandoe <iain@codesourcery.com>
20939
20940 PR bootstrap/66448
20941 * passes.c (rest_of_decl_compilation): Do not register globals for
20942 early debug if they are declared in built-ins.
20943
20944 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
20945
20946 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20947
20948 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20949
20950 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20951 manually swapping.
20952 (noce_try_cmove_arith): Likewise.
20953 (noce_get_alt_condition): Likewise.
20954
20955 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20956
20957 * common/config/i386/i386-common.c
20958 (OPTION_MASK_ISA_MWAITX_SET): New.
20959 (ix86_handle_option): Handle mwaitx.
20960 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20961 (x86_64-*-*): Likewise.
20962 * config/i386/mwaitxintrin.h: New header.
20963 * config/i386/cpuid.h (bit_MWAITX): Define.
20964 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20965 MWAITX support.
20966 * config/i386/i386.opt (mwaitx): New.
20967 * config/i386/i386-builtin-types.def
20968 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20969 * config/i386/i386-c.c: Define __MWAITX__ if needed.
20970 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20971 (PTA_MWAITX): New.
20972 (ix86_option_override_internal): Handle new option.
20973 (processor_alias_table): Added PTA_MWAITX.
20974 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20975 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20976 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20977 IX86_BUILTIN_MONITORX built-ins.
20978 * config/i386/i386.h (TARGET_MWAITX): New.
20979 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20980 UNSPEC_MONITORX.
20981 (mwaitx): New pattern.
20982 (monitorx_<mode>): New pattern.
20983 * config/i386/x86intrin.h: Include mwaitxintrin.h.
20984 * doc/extend.texi: Document monitorx and mwaitx builtins.
20985 * doc/invoke.texi: Document -mmwaitx option.
20986
20987 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
20988
20989 * emit-rtl.c (need_atomic_barrier_p): Mask model with
20990 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
20991
20992 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20993
20994 * dbxout.c (xcoff_debug_hooks): Provide a function for
20995 register_main_translation_unit hook.
20996
20997 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20998
20999 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
21000 variants cases from switch.
21001 (rs6000_post_atomic_barrier): Same.
21002 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
21003 (rs6000_expand_atomic_exchange): Same.
21004 (rs6000_expand_atomic_op): Same.
21005 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
21006 SYNC variants cases from switch.
21007 (atomic_load): Same.
21008 (atomic_store): Same.
21009
21010 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
21011
21012 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
21013 CONST_INT for goto.
21014
21015 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
21016
21017 PR bootstrap/66448
21018 * dwarf2out.c (check_die): Check for common duplicate attributes.
21019 (add_location_or_const_value_attribute): Do not add duplicate
21020 attributes.
21021 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
21022 time around.
21023 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
21024 (gen_type_die_with_usage): Call check_die.
21025 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
21026
21027 2015-06-11 Jason Merrill <jason@redhat.com>
21028
21029 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
21030 dies.
21031
21032 2015-06-11 Marek Polacek <polacek@redhat.com>
21033
21034 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
21035
21036 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
21037
21038 PR bootstrap/66252
21039 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
21040 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
21041 (*addx_extend_sp32): Fix pasto.
21042 (*subx_extend): Rename into...
21043 (*subx_extend_sp32): ...this.
21044 (*adddi3_extend_sp32): Add earlyclobber.
21045 (*subdi3_insn_sp32): Likewise.
21046 (*subdi3_extend_sp32): Likewise.
21047 (*and_not_di_sp32): Likewise.
21048 (*or_not_di_sp32): Likewise.
21049 (*xor_not_di_sp32): Likewise.
21050 (*negdi2_sp32): Likewise.
21051 (*one_cmpldi2_sp32): Likewise.
21052
21053 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
21054
21055 * debug.h (struct gcc_debug_hooks): Add a
21056 register_main_translation_unit hook.
21057 * debug.c (do_nothing_debug_hooks): Provide a function for this
21058 new hook.
21059 * dbxout.c (dbx_debug_hooks): Likewise.
21060 * sdbout.c (sdb_debug_hooks): Likewise.
21061 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21062 * dwarf2out.c (main_translation_unit): New global variable.
21063 (dwarf2out_register_main_translation_unit): New function
21064 implementing the new hook.
21065 (dwarf2_debug_hooks): Assign
21066 dwarf2out_register_main_translation_unit to this new hook.
21067 (dwarf2out_init): Associate any main translation unit to
21068 comp_unit_die ().
21069
21070 2015-06-11 Marek Polacek <polacek@redhat.com>
21071
21072 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
21073
21074 2015-06-11 Marek Polacek <polacek@redhat.com>
21075
21076 * match.pd: Use single_use throughout.
21077
21078 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21079
21080 * config/arm/arm.c (arm_option_params_internal): When optimising
21081 for speed set max_insns_skipped when arm_restrict_it.
21082
21083 2015-06-11 Christian Bruel <christian.bruel@st.com>
21084
21085 PR target/52144
21086 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
21087 macros in ...
21088 (arm_cpu_builtins): New function.
21089 (arm_pragma_target_parse): Call arm_cpu_builtins.
21090 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
21091 (arm_register_target_pragmas): Likewise.
21092 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
21093 Call arm_register_target_pragmas.
21094 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
21095 (arm_pragma_target_parse): Likewise.
21096
21097 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
21098
21099 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
21100 of the second operand.
21101
21102 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
21103
21104 PR target/66473
21105 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
21106 to prepare mask operand for AVX512 modes.
21107
21108 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
21109
21110 PR target/66474
21111 * doc/md.texi (Machine Constraints): Document that on the PowerPC
21112 if you use a constraint that targets a VSX register, you must use
21113 %x<n> in the template.
21114
21115 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
21116
21117 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
21118 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
21119 (define_insn "trap"): New definition.
21120
21121 2015-06-10 Richard Biener <rguenther@suse.de>
21122
21123 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
21124 out from ...
21125 (vect_supported_load_permutation_p): ... here. Handle
21126 supportable permutations in reductions.
21127 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
21128 for vectorizing strided group loads.
21129
21130 2015-06-10 Jakub Jelinek <jakub@redhat.com>
21131
21132 PR target/66470
21133 * config/i386/i386.c (ix86_split_long_move): For collisions
21134 involving direct tls segment refs, move the UNSPEC_TP possibly
21135 wrapped in ZERO_EXTEND out of the address for lea, to each of
21136 the memory loads.
21137
21138 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21139
21140 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
21141 dmb sy. Adjust tabs.
21142
21143 2015-06-10 Tom de Vries <tom@codesourcery.com>
21144
21145 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
21146
21147 2015-06-10 Martin Liska <mliska@suse.cz>
21148
21149 PR bootstrap/66471
21150 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
21151 all enum values in mem_alloc_origin.
21152 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
21153 name.
21154 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
21155 * bitmap.c (bitmap_register): Likewise.
21156 (dump_bitmap_statistics): Likewise.
21157 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
21158 (ggc_record_overhead): Likewise.
21159 * hash-map.h: Likewise.
21160 * hash-set.h: Likewise.
21161 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21162 * hash-table.h: Likewise.
21163 * vec.c (vec_prefix::register_overhead): Likewise.
21164 (vec_prefix::release_overhead): Likewise.
21165 (dump_vec_loc_statistics): Likewise.
21166
21167 2015-06-09 Christian Bruel <christian.bruel@st.com>
21168
21169 PR target/52144
21170 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21171 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21172 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21173 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21174 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21175 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21176 (arm_valid_target_attribute_p): Likewise.
21177 (arm_set_current_function, arm_can_inline_p): Likewise.
21178 (arm_valid_target_attribute_rec): Likewise.
21179 (arm_previous_fndecl): New variable.
21180 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21181 (TARGET_CAN_INLINE_P): Define.
21182 (arm_asm_trampoline_template): Emit mode.
21183 (arm_file_start): Don't set unified syntax.
21184 (arm_declare_function_name): Set unified syntax and mode.
21185 (arm_option_override): Init target_option_default_node.
21186 and target_option_current_node.
21187 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21188 (*call_symbol): Likewise.
21189 * doc/extend.texi: Document ARM/Thumb target attribute.
21190 * doc/invoke.texi: Likewise.
21191
21192 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21193
21194 Revert:
21195 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21196 PR rtl-optimization/64164
21197 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21198 * tree-ssa-copyrename.c: Removed.
21199 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21200 -ftree-coalesce-vars.
21201 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21202 * common.opt (ftree-copyrename): Ignore.
21203 (ftree-coalesce-inlined-vars): Likewise.
21204 * doc/invoke.texi: Remove the ignored options above.
21205 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21206 * tree-ssa-coalesce.h: ... here.
21207 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21208 headers required by it.
21209 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21210 across variables when flag_tree_coalesce_vars. Check register
21211 use and promoted modes to allow coalescing. Moved to
21212 tree-ssa-coalesce.c.
21213 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21214 with its member functions to tree-ssa-coalesce.c.
21215 (var_map_base_init): Likewise. Renamed to
21216 compute_samebase_partition_bases.
21217 (partition_view_normal): Drop want_bases parameter.
21218 (partition_view_bitmap): Likewise.
21219 * tree-ssa-live.h: Adjust declarations.
21220 * tree-ssa-coalesce.c: Include explow.h.
21221 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21222 default defs at the entry point.
21223 (dump_part_var_map): New.
21224 (compute_optimized_partition_bases): New, called by...
21225 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21226 of compute_samebase_partition_bases. Adjust.
21227 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21228 * cfgexpand.c (leader_merge): New.
21229 (get_rtl_for_parm_ssa_default_def): New.
21230 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21231 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21232 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21233 redundant MEM attr setting.
21234 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21235 from...
21236 (expand_one_stack_var): ... this. New wrapper to check and
21237 skip already expanded SSA partitions.
21238 (record_alignment_for_reg_var): New, factored out of...
21239 (expand_one_var): ... this.
21240 (expand_one_ssa_partition): New.
21241 (adjust_one_expanded_partition_var): New.
21242 (expand_one_register_var): Check and skip already expanded SSA
21243 partitions.
21244 (expand_used_vars): Don't create DECLs for anonymous SSA
21245 names. Expand all SSA partitions, then adjust all SSA names.
21246 (pass::execute): Replace the loops that set
21247 SA.partition_to_pseudo from partition leaders and cleared
21248 DECL_RTL for multi-location variables, and that which used to
21249 rename vars and set attrs, with one that clears DECL_RTL and
21250 checks that PARMs and RESULTs default_defs match DECL_RTL.
21251 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21252 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21253 * explow.c (promote_ssa_mode): New.
21254 * explow.h (promote_ssa_mode): Declare.
21255 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21256 * function.c: Include cfgexpand.h.
21257 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21258 (use_register_for_parm_decl): Wrapper for the above to
21259 special-case the result_ptr.
21260 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21261 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21262 multiple locations.
21263 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21264 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21265 (assign_parm_setup_block): Prefer SSA-assigned location.
21266 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21267 if stack_parm is NULL.
21268 (assign_parm_setup_stack): Prefer SSA-assigned location.
21269 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21270 rtl before testing for pointer bounds. Special-case result_ptr.
21271 (expand_function_start): Maybe reset DECL_RTL of result.
21272 Prefer SSA-assigned location for result and static chain.
21273 Factor out DECL_RESULT and SET_DECL_RTL.
21274 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21275 anonymous SSA names. Use promote_ssa_mode.
21276 (get_temp_reg): Likewise.
21277 (remove_ssa_form): Adjust.
21278 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21279 and get its reg_usage for reg invalidation.
21280 (compute_bb_dataflow): Pass it insn.
21281 (emit_notes_in_bb): Likewise.
21282 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21283 fail assert on conversion between unsigned types.
21284
21285 2015-06-09 Tom de Vries <tom@codesourcery.com>
21286
21287 PR tree-optimization/65460
21288 * omp-low.c (expand_omp_target): Set parallelized_function on
21289 cgraph_node for child_fn.
21290
21291 2015-06-09 Tom de Vries <tom@codesourcery.com>
21292
21293 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21294 parallelized_function before add_new_function.
21295
21296 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
21297
21298 * gcc-plugin.h: Move decls to plugin.h and include it.
21299 * plugin.h: Relocate decls from gcc-plugin.h
21300 * ggc-page.c: Include required header files.
21301 * passes.c: Likewise.
21302 * cgraphunit.c: Likewise.
21303
21304 2015-06-09 Tom de Vries <tom@codesourcery.com>
21305
21306 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21307
21308 2015-06-09 Jason Merrill <jason@redhat.com>
21309
21310 PR bootstrap/66448
21311 * toplev.c (check_global_declaration): Don't warn about a clone.
21312
21313 2015-06-09 Marek Polacek <polacek@redhat.com>
21314
21315 PR tree-optimization/66299
21316 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21317 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21318 patterns.
21319
21320 2015-06-09 Richard Biener <rguenther@suse.de>
21321
21322 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21323 (vect_analyze_slp_instance): Instead do not falsely drop
21324 load permutations.
21325
21326 2015-06-09 Richard Biener <rguenther@suse.de>
21327
21328 PR middle-end/66423
21329 * match.pd: Handle A % (unsigned)(1 << B).
21330
21331 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
21332
21333 * varasm.c (output_object_block_htab): Remove.
21334 (output_object_block_compare): New.
21335 (output_object_blocks): Sort named object_blocks before outputting
21336 them.
21337
21338 2015-06-09 Richard Biener <rguenther@suse.de>
21339
21340 PR tree-optimization/66419
21341 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21342 consider GROUP_GAP when detecting a perfect subchain.
21343
21344 2015-06-09 Nick Clifton <nickc@redhat.com>
21345
21346 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21347 place read only data in the .frodata section.
21348
21349 2015-06-09 Shiva Chen <shiva0217@gmail.com>
21350
21351 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21352 (atomic_store<mode>): Likewise.
21353
21354 2015-06-09 Richard Biener <rguenther@suse.de>
21355
21356 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21357
21358 2015-06-09 Richard Biener <rguenther@suse.de>
21359
21360 PR middle-end/66413
21361 * tree-inline.c (insert_init_debug_bind): Unshare value.
21362
21363 2015-06-09 Richard Biener <rguenther@suse.de>
21364
21365 PR tree-optimization/66396
21366 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21367 Rename virtual operands.
21368
21369 2015-06-09 Tom de Vries <tom@codesourcery.com>
21370
21371 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21372 always return false.
21373
21374 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21375
21376 PR rtl-optimization/64164
21377 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21378 * tree-ssa-copyrename.c: Removed.
21379 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21380 -ftree-coalesce-vars.
21381 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21382 * common.opt (ftree-copyrename): Ignore.
21383 (ftree-coalesce-inlined-vars): Likewise.
21384 * doc/invoke.texi: Remove the ignored options above.
21385 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21386 * tree-ssa-coalesce.h: ... here.
21387 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21388 headers required by it.
21389 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21390 across variables when flag_tree_coalesce_vars. Check register
21391 use and promoted modes to allow coalescing. Moved to
21392 tree-ssa-coalesce.c.
21393 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21394 with its member functions to tree-ssa-coalesce.c.
21395 (var_map_base_init): Likewise. Renamed to
21396 compute_samebase_partition_bases.
21397 (partition_view_normal): Drop want_bases parameter.
21398 (partition_view_bitmap): Likewise.
21399 * tree-ssa-live.h: Adjust declarations.
21400 * tree-ssa-coalesce.c: Include explow.h.
21401 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21402 default defs at the entry point.
21403 (dump_part_var_map): New.
21404 (compute_optimized_partition_bases): New, called by...
21405 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21406 of compute_samebase_partition_bases. Adjust.
21407 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21408 * cfgexpand.c (leader_merge): New.
21409 (get_rtl_for_parm_ssa_default_def): New.
21410 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21411 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21412 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21413 redundant MEM attr setting.
21414 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21415 from...
21416 (expand_one_stack_var): ... this. New wrapper to check and
21417 skip already expanded SSA partitions.
21418 (record_alignment_for_reg_var): New, factored out of...
21419 (expand_one_var): ... this.
21420 (expand_one_ssa_partition): New.
21421 (adjust_one_expanded_partition_var): New.
21422 (expand_one_register_var): Check and skip already expanded SSA
21423 partitions.
21424 (expand_used_vars): Don't create DECLs for anonymous SSA
21425 names. Expand all SSA partitions, then adjust all SSA names.
21426 (pass::execute): Replace the loops that set
21427 SA.partition_to_pseudo from partition leaders and cleared
21428 DECL_RTL for multi-location variables, and that which used to
21429 rename vars and set attrs, with one that clears DECL_RTL and
21430 checks that PARMs and RESULTs default_defs match DECL_RTL.
21431 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21432 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21433 * explow.c (promote_ssa_mode): New.
21434 * explow.h (promote_ssa_mode): Declare.
21435 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21436 * function.c: Include cfgexpand.h.
21437 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21438 (use_register_for_parm_decl): Wrapper for the above to
21439 special-case the result_ptr.
21440 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21441 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21442 multiple locations.
21443 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21444 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21445 (assign_parm_setup_block): Prefer SSA-assigned location.
21446 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21447 if stack_parm is NULL.
21448 (assign_parm_setup_stack): Prefer SSA-assigned location.
21449 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21450 rtl before testing for pointer bounds. Special-case result_ptr.
21451 (expand_function_start): Maybe reset DECL_RTL of result.
21452 Prefer SSA-assigned location for result and static chain.
21453 Factor out DECL_RESULT and SET_DECL_RTL.
21454 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21455 anonymous SSA names. Use promote_ssa_mode.
21456 (get_temp_reg): Likewise.
21457 (remove_ssa_form): Adjust.
21458 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21459 and get its reg_usage for reg invalidation.
21460 (compute_bb_dataflow): Pass it insn.
21461 (emit_notes_in_bb): Likewise.
21462 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21463 fail assert on conversion between unsigned types.
21464
21465 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21466
21467 PR debug/58315
21468 * tree-inline.c (reset_debug_binding): New.
21469 (reset_debug_bindings): Likewise.
21470 (expand_call_inline): Call it.
21471
21472 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21473
21474 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21475 TYPE_STRING_FLAG.
21476
21477 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21478
21479 * lto-streamer-out.c (lto_output_location): Stream
21480 reserved locations correctly.
21481 * lto-streamer-in.c (lto_output_location): Likewise.
21482
21483 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
21484
21485 * coretypes.h: Include hash-table.h and hash-set.h for host files.
21486 * ggc.h: Don't include statistics.h>
21487 * hash-map.h: Remove all includes.
21488 * hash-set.h: Likewise.
21489 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
21490 the include list. Remove <new>.
21491 * inchash.h: Remove all includes.
21492 * mem-stats.h: Likewise.
21493 * vec.h: No special processing for generators or ggc.
21494 * alias.c : Adjust include files.
21495 * alloc-pool.c : Likewise.
21496 * alloc-pool.h : Likewise.
21497 * asan.c : Likewise.
21498 * attribs.c : Likewise.
21499 * auto-inc-dec.c : Likewise.
21500 * auto-profile.c : Likewise.
21501 * bb-reorder.c : Likewise.
21502 * bitmap.c : Likewise.
21503 * bitmap.h : Likewise.
21504 * bt-load.c : Likewise.
21505 * builtins.c : Likewise.
21506 * caller-save.c : Likewise.
21507 * calls.c : Likewise.
21508 * ccmp.c : Likewise.
21509 * cfg.c : Likewise.
21510 * cfganal.c : Likewise.
21511 * cfgbuild.c : Likewise.
21512 * cfgcleanup.c : Likewise.
21513 * cfgexpand.c : Likewise.
21514 * cfghooks.c : Likewise.
21515 * cfgloop.c : Likewise.
21516 * cfgloop.h : Likewise.
21517 * cfgloopanal.c : Likewise.
21518 * cfgloopmanip.c : Likewise.
21519 * cfgrtl.c : Likewise.
21520 * cgraph.c : Likewise.
21521 * cgraphbuild.c : Likewise.
21522 * cgraphclones.c : Likewise.
21523 * cgraphunit.c : Likewise.
21524 * cilk-common.c : Likewise.
21525 * combine-stack-adj.c : Likewise.
21526 * combine.c : Likewise.
21527 * compare-elim.c : Likewise.
21528 * context.c : Likewise.
21529 * convert.c : Likewise.
21530 * coverage.c : Likewise.
21531 * cppbuiltin.c : Likewise.
21532 * cprop.c : Likewise.
21533 * cse.c : Likewise.
21534 * cselib.c : Likewise.
21535 * data-streamer-in.c : Likewise.
21536 * data-streamer-out.c : Likewise.
21537 * data-streamer.c : Likewise.
21538 * data-streamer.h : Likewise.
21539 * dbxout.c : Likewise.
21540 * dce.c : Likewise.
21541 * ddg.c : Likewise.
21542 * debug.c : Likewise.
21543 * df-core.c : Likewise.
21544 * df-problems.c : Likewise.
21545 * df-scan.c : Likewise.
21546 * df.h : Likewise.
21547 * dfp.c : Likewise.
21548 * dojump.c : Likewise.
21549 * dominance.c : Likewise.
21550 * domwalk.c : Likewise.
21551 * double-int.c : Likewise.
21552 * dse.c : Likewise.
21553 * dumpfile.c : Likewise.
21554 * dwarf2asm.c : Likewise.
21555 * dwarf2cfi.c : Likewise.
21556 * dwarf2out.c : Likewise.
21557 * emit-rtl.c : Likewise.
21558 * et-forest.c : Likewise.
21559 * except.c : Likewise.
21560 * except.h : Likewise.
21561 * explow.c : Likewise.
21562 * expmed.c : Likewise.
21563 * expr.c : Likewise.
21564 * final.c : Likewise.
21565 * fixed-value.c : Likewise.
21566 * fold-const.c : Likewise.
21567 * function.c : Likewise.
21568 * fwprop.c : Likewise.
21569 * gcc-plugin.h : Likewise.
21570 * gcc.c : Likewise.
21571 * gcse-common.c : Likewise.
21572 * gcse.c : Likewise.
21573 * genattrtab.c : Likewise.
21574 * genautomata.c : Likewise.
21575 * genconditions.c : Likewise.
21576 * genemit.c : Likewise.
21577 * generic-match-head.c : Likewise.
21578 * genextract.c : Likewise.
21579 * gengtype-state.c : Likewise.
21580 * gengtype.c : Likewise.
21581 * genhooks.c : Likewise.
21582 * genmatch.c : Likewise.
21583 * genmodes.c : Likewise.
21584 * genrecog.c : Likewise.
21585 * gensupport.c : Likewise.
21586 * ggc-common.c : Likewise.
21587 * ggc-internal.h : Likewise.
21588 * ggc-none.c : Likewise.
21589 * ggc-page.c : Likewise.
21590 * gimple-builder.c : Likewise.
21591 * gimple-expr.c : Likewise.
21592 * gimple-fold.c : Likewise.
21593 * gimple-iterator.c : Likewise.
21594 * gimple-low.c : Likewise.
21595 * gimple-match-head.c : Likewise.
21596 * gimple-pretty-print.c : Likewise.
21597 * gimple-ssa-isolate-paths.c : Likewise.
21598 * gimple-ssa-strength-reduction.c : Likewise.
21599 * gimple-ssa.h : Likewise.
21600 * gimple-streamer-in.c : Likewise.
21601 * gimple-streamer-out.c : Likewise.
21602 * gimple-streamer.h : Likewise.
21603 * gimple-walk.c : Likewise.
21604 * gimple.c : Likewise.
21605 * gimplify-me.c : Likewise.
21606 * gimplify.c : Likewise.
21607 * godump.c : Likewise.
21608 * graph.c : Likewise.
21609 * graphds.c : Likewise.
21610 * graphite-blocking.c : Likewise.
21611 * graphite-dependences.c : Likewise.
21612 * graphite-interchange.c : Likewise.
21613 * graphite-isl-ast-to-gimple.c : Likewise.
21614 * graphite-optimize-isl.c : Likewise.
21615 * graphite-poly.c : Likewise.
21616 * graphite-scop-detection.c : Likewise.
21617 * graphite-sese-to-poly.c : Likewise.
21618 * graphite.c : Likewise.
21619 * haifa-sched.c : Likewise.
21620 * hard-reg-set.h : Likewise.
21621 * hw-doloop.c : Likewise.
21622 * ifcvt.c : Likewise.
21623 * inchash.c : Likewise.
21624 * incpath.c : Likewise.
21625 * init-regs.c : Likewise.
21626 * input.c : Likewise.
21627 * internal-fn.c : Likewise.
21628 * ipa-chkp.c : Likewise.
21629 * ipa-comdats.c : Likewise.
21630 * ipa-cp.c : Likewise.
21631 * ipa-devirt.c : Likewise.
21632 * ipa-icf-gimple.c : Likewise.
21633 * ipa-icf.c : Likewise.
21634 * ipa-inline-analysis.c : Likewise.
21635 * ipa-inline-transform.c : Likewise.
21636 * ipa-inline.c : Likewise.
21637 * ipa-polymorphic-call.c : Likewise.
21638 * ipa-profile.c : Likewise.
21639 * ipa-prop.c : Likewise.
21640 * ipa-pure-const.c : Likewise.
21641 * ipa-ref.c : Likewise.
21642 * ipa-reference.c : Likewise.
21643 * ipa-split.c : Likewise.
21644 * ipa-utils.c : Likewise.
21645 * ipa-visibility.c : Likewise.
21646 * ipa.c : Likewise.
21647 * ira-build.c : Likewise.
21648 * ira-color.c : Likewise.
21649 * ira-conflicts.c : Likewise.
21650 * ira-costs.c : Likewise.
21651 * ira-emit.c : Likewise.
21652 * ira-lives.c : Likewise.
21653 * ira.c : Likewise.
21654 * jump.c : Likewise.
21655 * langhooks.c : Likewise.
21656 * lcm.c : Likewise.
21657 * libfuncs.h : Likewise.
21658 * lists.c : Likewise.
21659 * loop-doloop.c : Likewise.
21660 * loop-init.c : Likewise.
21661 * loop-invariant.c : Likewise.
21662 * loop-iv.c : Likewise.
21663 * loop-unroll.c : Likewise.
21664 * lower-subreg.c : Likewise.
21665 * lra-assigns.c : Likewise.
21666 * lra-coalesce.c : Likewise.
21667 * lra-constraints.c : Likewise.
21668 * lra-eliminations.c : Likewise.
21669 * lra-lives.c : Likewise.
21670 * lra-remat.c : Likewise.
21671 * lra-spills.c : Likewise.
21672 * lra.c : Likewise.
21673 * lto-cgraph.c : Likewise.
21674 * lto-compress.c : Likewise.
21675 * lto-opts.c : Likewise.
21676 * lto-section-in.c : Likewise.
21677 * lto-section-out.c : Likewise.
21678 * lto-streamer-in.c : Likewise.
21679 * lto-streamer-out.c : Likewise.
21680 * lto-streamer.c : Likewise.
21681 * lto-streamer.h : Likewise.
21682 * mcf.c : Likewise.
21683 * mode-switching.c : Likewise.
21684 * modulo-sched.c : Likewise.
21685 * omega.c : Likewise.
21686 * omp-low.c : Likewise.
21687 * optabs.c : Likewise.
21688 * opts-global.c : Likewise.
21689 * opts.h : Likewise.
21690 * passes.c : Likewise.
21691 * plugin.c : Likewise.
21692 * postreload-gcse.c : Likewise.
21693 * postreload.c : Likewise.
21694 * predict.c : Likewise.
21695 * print-rtl.c : Likewise.
21696 * print-tree.c : Likewise.
21697 * profile.c : Likewise.
21698 * read-md.c : Likewise.
21699 * read-md.h : Likewise.
21700 * read-rtl.c : Likewise.
21701 * real.c : Likewise.
21702 * realmpfr.c : Likewise.
21703 * recog.c : Likewise.
21704 * ree.c : Likewise.
21705 * reg-stack.c : Likewise.
21706 * regcprop.c : Likewise.
21707 * reginfo.c : Likewise.
21708 * regrename.c : Likewise.
21709 * regstat.c : Likewise.
21710 * reload.c : Likewise.
21711 * reload1.c : Likewise.
21712 * reorg.c : Likewise.
21713 * resource.c : Likewise.
21714 * rtl-chkp.c : Likewise.
21715 * rtl.c : Likewise.
21716 * rtl.h : Likewise.
21717 * rtlanal.c : Likewise.
21718 * rtlhash.c : Likewise.
21719 * rtlhash.h : Likewise.
21720 * rtlhooks.c : Likewise.
21721 * sanopt.c : Likewise.
21722 * sched-deps.c : Likewise.
21723 * sched-ebb.c : Likewise.
21724 * sched-rgn.c : Likewise.
21725 * sched-vis.c : Likewise.
21726 * sdbout.c : Likewise.
21727 * sel-sched-dump.c : Likewise.
21728 * sel-sched-ir.c : Likewise.
21729 * sel-sched-ir.h : Likewise.
21730 * sel-sched.c : Likewise.
21731 * sese.c : Likewise.
21732 * shrink-wrap.c : Likewise.
21733 * shrink-wrap.h : Likewise.
21734 * simplify-rtx.c : Likewise.
21735 * stack-ptr-mod.c : Likewise.
21736 * statistics.c : Likewise.
21737 * stmt.c : Likewise.
21738 * stor-layout.c : Likewise.
21739 * store-motion.c : Likewise.
21740 * stringpool.c : Likewise.
21741 * symtab.c : Likewise.
21742 * target-globals.c : Likewise.
21743 * targhooks.c : Likewise.
21744 * tlink.c : Likewise.
21745 * toplev.c : Likewise.
21746 * tracer.c : Likewise.
21747 * trans-mem.c : Likewise.
21748 * tree-affine.c : Likewise.
21749 * tree-affine.h : Likewise.
21750 * tree-browser.c : Likewise.
21751 * tree-call-cdce.c : Likewise.
21752 * tree-cfg.c : Likewise.
21753 * tree-cfgcleanup.c : Likewise.
21754 * tree-chkp-opt.c : Likewise.
21755 * tree-chkp.c : Likewise.
21756 * tree-chrec.c : Likewise.
21757 * tree-complex.c : Likewise.
21758 * tree-data-ref.c : Likewise.
21759 * tree-dfa.c : Likewise.
21760 * tree-diagnostic.c : Likewise.
21761 * tree-dump.c : Likewise.
21762 * tree-eh.c : Likewise.
21763 * tree-eh.h : Likewise.
21764 * tree-emutls.c : Likewise.
21765 * tree-hasher.h : Likewise.
21766 * tree-if-conv.c : Likewise.
21767 * tree-inline.c : Likewise.
21768 * tree-inline.h : Likewise.
21769 * tree-into-ssa.c : Likewise.
21770 * tree-iterator.c : Likewise.
21771 * tree-loop-distribution.c : Likewise.
21772 * tree-nested.c : Likewise.
21773 * tree-nrv.c : Likewise.
21774 * tree-object-size.c : Likewise.
21775 * tree-outof-ssa.c : Likewise.
21776 * tree-parloops.c : Likewise.
21777 * tree-phinodes.c : Likewise.
21778 * tree-predcom.c : Likewise.
21779 * tree-pretty-print.c : Likewise.
21780 * tree-profile.c : Likewise.
21781 * tree-scalar-evolution.c : Likewise.
21782 * tree-sra.c : Likewise.
21783 * tree-ssa-address.c : Likewise.
21784 * tree-ssa-alias.c : Likewise.
21785 * tree-ssa-ccp.c : Likewise.
21786 * tree-ssa-coalesce.c : Likewise.
21787 * tree-ssa-copy.c : Likewise.
21788 * tree-ssa-copyrename.c : Likewise.
21789 * tree-ssa-dce.c : Likewise.
21790 * tree-ssa-dom.c : Likewise.
21791 * tree-ssa-dse.c : Likewise.
21792 * tree-ssa-forwprop.c : Likewise.
21793 * tree-ssa-ifcombine.c : Likewise.
21794 * tree-ssa-live.c : Likewise.
21795 * tree-ssa-loop-ch.c : Likewise.
21796 * tree-ssa-loop-im.c : Likewise.
21797 * tree-ssa-loop-ivcanon.c : Likewise.
21798 * tree-ssa-loop-ivopts.c : Likewise.
21799 * tree-ssa-loop-manip.c : Likewise.
21800 * tree-ssa-loop-niter.c : Likewise.
21801 * tree-ssa-loop-prefetch.c : Likewise.
21802 * tree-ssa-loop-unswitch.c : Likewise.
21803 * tree-ssa-loop.c : Likewise.
21804 * tree-ssa-math-opts.c : Likewise.
21805 * tree-ssa-operands.c : Likewise.
21806 * tree-ssa-phiopt.c : Likewise.
21807 * tree-ssa-phiprop.c : Likewise.
21808 * tree-ssa-pre.c : Likewise.
21809 * tree-ssa-propagate.c : Likewise.
21810 * tree-ssa-reassoc.c : Likewise.
21811 * tree-ssa-sccvn.c : Likewise.
21812 * tree-ssa-scopedtables.c : Likewise.
21813 * tree-ssa-sink.c : Likewise.
21814 * tree-ssa-strlen.c : Likewise.
21815 * tree-ssa-structalias.c : Likewise.
21816 * tree-ssa-tail-merge.c : Likewise.
21817 * tree-ssa-ter.c : Likewise.
21818 * tree-ssa-threadedge.c : Likewise.
21819 * tree-ssa-threadupdate.c : Likewise.
21820 * tree-ssa-uncprop.c : Likewise.
21821 * tree-ssa-uninit.c : Likewise.
21822 * tree-ssa.c : Likewise.
21823 * tree-ssanames.c : Likewise.
21824 * tree-stdarg.c : Likewise.
21825 * tree-streamer-in.c : Likewise.
21826 * tree-streamer-out.c : Likewise.
21827 * tree-streamer.c : Likewise.
21828 * tree-streamer.h : Likewise.
21829 * tree-switch-conversion.c : Likewise.
21830 * tree-tailcall.c : Likewise.
21831 * tree-vect-data-refs.c : Likewise.
21832 * tree-vect-generic.c : Likewise.
21833 * tree-vect-loop-manip.c : Likewise.
21834 * tree-vect-loop.c : Likewise.
21835 * tree-vect-patterns.c : Likewise.
21836 * tree-vect-slp.c : Likewise.
21837 * tree-vect-stmts.c : Likewise.
21838 * tree-vectorizer.c : Likewise.
21839 * tree-vectorizer.h : Likewise.
21840 * tree-vrp.c : Likewise.
21841 * tree.c : Likewise.
21842 * tsan.c : Likewise.
21843 * ubsan.c : Likewise.
21844 * valtrack.c : Likewise.
21845 * valtrack.h : Likewise.
21846 * value-prof.c : Likewise.
21847 * var-tracking.c : Likewise.
21848 * varasm.c : Likewise.
21849 * varpool.c : Likewise.
21850 * vec.c: Likewise.
21851 * vmsdbgout.c : Likewise.
21852 * vtable-verify.c : Likewise.
21853 * vtable-verify.h : Likewise.
21854 * web.c : Likewise.
21855 * wide-int.cc : Likewise.
21856 * xcoffout.c : Likewise.
21857 * config/aarch64/aarch64-builtins.c : Likewise.
21858 * config/aarch64/aarch64.c : Likewise.
21859 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
21860 * config/alpha/alpha.c : Likewise.
21861 * config/arc/arc.c : Likewise.
21862 * config/arm/aarch-common.c : Likewise.
21863 * config/arm/arm-builtins.c : Likewise.
21864 * config/arm/arm-c.c : Likewise.
21865 * config/arm/arm.c : Likewise.
21866 * config/avr/avr-c.c : Likewise.
21867 * config/avr/avr-log.c : Likewise.
21868 * config/avr/avr.c : Likewise.
21869 * config/bfin/bfin.c : Likewise.
21870 * config/c6x/c6x.c : Likewise.
21871 * config/cr16/cr16.c : Likewise.
21872 * config/cris/cris.c : Likewise.
21873 * config/darwin-c.c : Likewise.
21874 * config/darwin.c : Likewise.
21875 * config/default-c.c : Likewise.
21876 * config/epiphany/epiphany.c : Likewise.
21877 * config/epiphany/mode-switch-use.c : Likewise.
21878 * config/epiphany/resolve-sw-modes.c : Likewise.
21879 * config/fr30/fr30.c : Likewise.
21880 * config/frv/frv.c : Likewise.
21881 * config/ft32/ft32.c : Likewise.
21882 * config/glibc-c.c : Likewise.
21883 * config/h8300/h8300.c : Likewise.
21884 * config/i386/i386-c.c : Likewise.
21885 * config/i386/i386.c : Likewise.
21886 * config/i386/msformat-c.c : Likewise.
21887 * config/i386/winnt-cxx.c : Likewise.
21888 * config/i386/winnt-stubs.c : Likewise.
21889 * config/i386/winnt.c : Likewise.
21890 * config/ia64/ia64-c.c : Likewise.
21891 * config/ia64/ia64.c : Likewise.
21892 * config/iq2000/iq2000.c : Likewise.
21893 * config/lm32/lm32.c : Likewise.
21894 * config/m32c/m32c-pragma.c : Likewise.
21895 * config/m32c/m32c.c : Likewise.
21896 * config/m32r/m32r.c : Likewise.
21897 * config/m68k/m68k.c : Likewise.
21898 * config/mcore/mcore.c : Likewise.
21899 * config/mep/mep-pragma.c : Likewise.
21900 * config/mep/mep.c : Likewise.
21901 * config/microblaze/microblaze-c.c : Likewise.
21902 * config/microblaze/microblaze.c : Likewise.
21903 * config/mips/mips.c : Likewise.
21904 * config/mmix/mmix.c : Likewise.
21905 * config/mn10300/mn10300.c : Likewise.
21906 * config/moxie/moxie.c : Likewise.
21907 * config/msp430/msp430-c.c : Likewise.
21908 * config/msp430/msp430.c : Likewise.
21909 * config/nds32/nds32-cost.c : Likewise.
21910 * config/nds32/nds32-fp-as-gp.c : Likewise.
21911 * config/nds32/nds32-intrinsic.c : Likewise.
21912 * config/nds32/nds32-isr.c : Likewise.
21913 * config/nds32/nds32-md-auxiliary.c : Likewise.
21914 * config/nds32/nds32-memory-manipulation.c : Likewise.
21915 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21916 * config/nds32/nds32-predicates.c : Likewise.
21917 * config/nds32/nds32.c : Likewise.
21918 * config/nios2/nios2.c : Likewise.
21919 * config/nvptx/nvptx.c : Likewise.
21920 * config/pa/pa.c : Likewise.
21921 * config/pdp11/pdp11.c : Likewise.
21922 * config/rl78/rl78-c.c : Likewise.
21923 * config/rl78/rl78.c : Likewise.
21924 * config/rs6000/rs6000-c.c : Likewise.
21925 * config/rs6000/rs6000.c : Likewise.
21926 * config/rx/rx.c : Likewise.
21927 * config/s390/s390-c.c : Likewise.
21928 * config/s390/s390.c : Likewise.
21929 * config/sh/sh-c.c : Likewise.
21930 * config/sh/sh-mem.cc : Likewise.
21931 * config/sh/sh.c : Likewise.
21932 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21933 * config/sh/sh_treg_combine.cc : Likewise.
21934 * config/sol2-c.c : Likewise.
21935 * config/sol2-cxx.c : Likewise.
21936 * config/sol2-stubs.c : Likewise.
21937 * config/sol2.c : Likewise.
21938 * config/sparc/sparc-c.c : Likewise.
21939 * config/sparc/sparc.c : Likewise.
21940 * config/spu/spu-c.c : Likewise.
21941 * config/spu/spu.c : Likewise.
21942 * config/stormy16/stormy16.c : Likewise.
21943 * config/tilegx/mul-tables.c : Likewise.
21944 * config/tilegx/tilegx-c.c : Likewise.
21945 * config/tilegx/tilegx.c : Likewise.
21946 * config/tilepro/mul-tables.c : Likewise.
21947 * config/tilepro/tilepro-c.c : Likewise.
21948 * config/tilepro/tilepro.c : Likewise.
21949 * config/v850/v850-c.c : Likewise.
21950 * config/v850/v850.c : Likewise.
21951 * config/vax/vax.c : Likewise.
21952 * config/visium/visium.c : Likewise.
21953 * config/vms/vms-c.c : Likewise.
21954 * config/vms/vms.c : Likewise.
21955 * config/vxworks.c : Likewise.
21956 * config/winnt-c.c : Likewise.
21957 * config/xtensa/xtensa.c : Likewise.
21958
21959 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21960
21961 PR lto/65378
21962 * ipa-utils.h (warn_types_mismatch): Update prototype.
21963 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21964 parameters.
21965 (type_mismatch_p): New function.
21966 (warn_types_mismatch): Reorg to work better on non-C++ types.
21967 (odr_types_equivalent_p): Add loc1/loc2 parameters.
21968 (add_type_duplicate): Update.
21969
21970 2015-06-08 Tom de Vries <tom@codesourcery.com>
21971
21972 PR rtl-optimization/66444
21973 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21974 call_used_regs.
21975
21976 2015-06-08 Richard Biener <rguenther@suse.de>
21977
21978 PR tree-optimization/66422
21979 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21980 block after inserted gcc_unreachable.
21981
21982 2015-06-08 Nick Clifton <nickc@redhat.com>
21983
21984 * config/rx/rx.c (rx_function_value): Do not promote vector types.
21985 (rx_promote_function_mode): Likewise.
21986 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
21987
21988 2015-06-08 Jakub Jelinek <jakub@redhat.com>
21989
21990 * genattrtab.c (insn_alternatives): Change type from int *
21991 to uint64_t *.
21992 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
21993 (get_attr_value): Change type of num_alt to uint64_t.
21994 (compute_alternative_mask): Change return type from
21995 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
21996 (make_alternative_compare, mk_attr_alt): Change argument type
21997 from int to uint64_t.
21998 (simplify_test_exp): Change type of i from int to uint64_t.
21999 Shift ((uint64_t) 1) instead of 1 up.
22000 (main): Adjust oballocvec first argument from int to uint64_t.
22001 Shift ((uint64_t) 1) instead of 1 up.
22002
22003 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
22004
22005 PR other/65366
22006 * gdbhooks.py: Import sys.
22007 (intptr): New function. Replace int(...) by intptr(...).
22008
22009 2015-06-08 Richard Biener <rguenther@suse.de>
22010
22011 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
22012 adjustment for gaps at the end of a SLP load group properly.
22013 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
22014 all permutations we can generate.
22015 (vect_transform_slp_perm_load): Use the correct group-size.
22016
22017 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
22018
22019 * genmatch.c (expr::gen_transform): For conditions, guess the type
22020 from the second operand.
22021
22022 2015-06-08 Tom de Vries <tom@codesourcery.com>
22023
22024 PR tree-optimization/66442
22025 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
22026 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
22027 if the loop latch is not a singleton. Use
22028 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
22029
22030 2015-06-08 Marek Polacek <polacek@redhat.com>
22031
22032 PR sanitizer/66452
22033 * toplev.c (check_global_declaration): Don't warn about artificial
22034 decls.
22035
22036 2015-06-08 Tom de Vries <tom@codesourcery.com>
22037
22038 PR tree-optimization/66436
22039 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
22040 dump file.
22041 * gimplify.c: Add tree-dump.h include.
22042 (gimplify_function_tree): Dump function to gimple dump file.
22043 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
22044 dump file.
22045
22046 2015-06-08 Tom de Vries <tom@codesourcery.com>
22047
22048 PR tree-optimization/66435
22049 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
22050 function.
22051
22052 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
22053
22054 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
22055 of ptr_type_node to not be ptr_to_node.
22056 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
22057 TREE_TYPE of pointers.
22058 * gimple-expr.c (useless_type_conversion): Reorder the check for
22059 function pointers and TYPE_CANONICAL.
22060
22061 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
22062
22063 PR bootstrap/66319
22064 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
22065 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
22066 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
22067 later.
22068 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
22069 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
22070 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
22071 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
22072 and non iso if unix2003.
22073
22074 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
22075
22076 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
22077
22078 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
22079
22080 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
22081 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
22082 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
22083 except.c, final.c, function.c, gcse-common.c, genemit.c,
22084 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
22085 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
22086 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
22087 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
22088 more derived ones.
22089
22090 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
22091
22092 * combine.c (combine_split_insns): Remove cast.
22093 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
22094 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
22095 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
22096 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
22097 * genemit.c (gen_split): Change return type of generated functions to
22098 rtx_insn.
22099 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
22100 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
22101 gen_peephole2_* functions.
22102 (print_subroutine, main): Likewise.
22103 * recog.c (peephole2_optimize): Remove cast.
22104 (peep2_next_insn): Promote return type to rtx_insn.
22105 * recog.h (peep2_next_insn): Fix prototype.
22106 * rtl.h (try_split, split_insns): Likewise.
22107
22108 2015-06-06 DJ Delorie <dj@redhat.com>
22109
22110 * config/msp430/msp430.c (msp430_asm_integer): Support addition
22111 and subtraction too.
22112
22113 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
22114
22115 PR target/66410
22116 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
22117 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
22118 instead of Snd. Disparage Sid/z alternative with '^'.
22119
22120 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
22121
22122 * dwarf2out.c: Remove deferred_locations*.
22123 (dwarf2_debug_hooks): Add early_finish hook.
22124 Remove global_decl hook.
22125 Add early_global_decl and late_global_decl hook.
22126 New global early_dwarf.
22127 New structure set_early_dwarf.
22128 (output_die): Indicate whether a DIE was generated early
22129 when generating assembly with -dA.
22130 (struct limbo_die_struct): Document created_for field.
22131 Remove file_table_last_lookup.
22132 (remove_AT): Return TRUE if successful.
22133 (remove_child_TAG): Clear die_parent.
22134 (reparent_child): New function abstracted from...
22135 (splice_child_die): ...here.
22136 (new_die): ICE if a DIE ends up in limbo too late.
22137 (check_die): New.
22138 (defer_location): Remove.
22139 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
22140 (fill_variable_array_bounds): New.
22141 (decl_start_label): Call fill_variable_array_bounds.
22142 (gen_formal_parameter_die): Rewrite to reuse previously generated
22143 DIEs.
22144 (gen_subprogram_die): Same.
22145 (gen_variable_die): Same.
22146 (gen_const_die): Same.
22147 (gen_label_die): Same.
22148 (gen_lexical_block_die): Same.
22149 (decl_will_get_specification_p): New.
22150 (local_function_static): New.
22151 (gen_struct_or_union_type_die): Fill in variable-length fields.
22152 (gen_typedef_die): Fill in variable-length typedefs.
22153 (gen_tagged_type_die): Gracefully return on error_mark_node.
22154 Handle re-entrancy.
22155 (gen_type_die_with_usage): Handle variable-length types.
22156 Remove duplicate code for ARRAY_TYPE case.
22157 (process_scope_var): Only process imported modules during early
22158 dwarf.
22159 (dwarf2out_early_global_decl): New.
22160 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22161 (dwarf2out_type_decl): Set early_dwarf while calling
22162 dwarf2out_decl.
22163 (dwarf2out_decl): Verify that we did not recreate a previously
22164 generated DIE.
22165 Do not return on DECL_EXTERNALs in VAR_DECLs.
22166 Abstract some code to local_function_static.
22167 (lookup_filename): Remove use of file_table_last_lookup.
22168 Gracefully exit on missing file_name.
22169 (dwarf2out_finish): Verify limbo list.
22170 Remove deferred_locations_list use.
22171 Move deferred_asm_name and limbo flushing to...
22172 (dwarf2out_early_finish): ...here. New.
22173 (dwarf2out_c_finalize): Remove set of deferred_location_list,
22174 deferred_asm_name, and file_table_last_lookup.
22175 * cgraph.h (referred_to_p): Add default argument.
22176 * cgraphunit.c (referred_to_p): Add and handle include_self
22177 argument.
22178 (analyze_functions): Add first_time argument.
22179 Call check_global_declaration for all symbols.
22180 Call late_global_decl for nodes for moribund nodes.
22181 (finalize_compilation_unit): Add new argument to
22182 analyze_functions.
22183 Call early_global_decl for functions.
22184 Call early_finish debug hook.
22185 * dbxout.c (dbxout_early_global_decl): New.
22186 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
22187 (dbx_debug_hooks): Add new hooks.
22188 (xcoff_debug_hooks): Same.
22189 * debug.c (do_nothing_debug_hooks): Add early_finish field.
22190 Add early and late debug hooks.
22191 Remove global_decl hook.
22192 * debug.h (struct gcc_debug_hooks): Add early_finish,
22193 early_global_decl, and late_global_decl fields.
22194 Remove global_decl field.
22195 Document gcc_debug_hooks.
22196 * gengtype.c (output_typename): Remove.
22197 * godump.c (go_early_global_decl): New.
22198 (go_late_global_decl): New.
22199 (go_global_decl): Remove.
22200 (dump_go_spec_init): Remove global_decl. Add
22201 {early,late}_global_decl.
22202 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22203 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22204 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22205 (write_global_declarations): Remove.
22206 (global_decl_processing): New.
22207 * langhooks.h (struct lang_hooks_for_decls): Remove
22208 final_write_globals field.
22209 Add post_compilation_parsing_cleanups field.
22210 * passes.c (rest_of_decl_compilation): Call early_global_decl.
22211 * sdbout.c: Add early and late_global_decl hooks. Remove
22212 sdbout_global_decl hook.
22213 Add early_finish field for sdb_debug_hooks.
22214 (sdbout_global_decl): Remove.
22215 (sdbout_early_global_decl): New.
22216 (sdbout_late_global_decl): New.
22217 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22218 * toplev.c (check_global_declaration): Rename from
22219 check_global_declaration_1.
22220 Adapt to use symtab infrastructure.
22221 (check_global_declarations): Remove.
22222 (emit_debug_global_declarations): Remove.
22223 (compile_file): Remove call to final_write_globals langhook.
22224 Run the actual compilation process.
22225 Perform any post compilation parser cleanups.
22226 Generate late debug info.
22227 * toplev.h (check_global_declaration): New.
22228 (check_global_declaration_1): Remove.
22229 (check_global_declarations): Remove.
22230 (write_global_declarations): Remove.
22231 (emit_debug_global_declarations): Remove.
22232 (global_decl_processing): New.
22233 * tree-core.h (struct tree_block): Add DIE field.
22234 * tree.h (BLOCK_DIE): New.
22235 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22236 throughout.
22237 (vmsdbgout_early_global_decl): New.
22238 (vmsdbgout_late_global_decl): New.
22239 Add early_finish debug hook field to vmsdbg_debug_hooks.
22240 Remove vmsdbgout_decl to vmsdbgout_function_decl.
22241 Add early and late_global_decl debug hooks.
22242
22243 2015-06-05 Julian Brown <julian@codesourcery.com>
22244 Sandra Loosemore <sandra@codesourcery.com>
22245
22246 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22247 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22248 to print-sysroot-suffix.sh script.
22249
22250 2015-06-05 Tom de Vries <tom@codesourcery.com>
22251
22252 merge from gomp4 branch:
22253 2015-05-28 Tom de Vries <tom@codesourcery.com>
22254
22255 PR tree-optimization/65443
22256 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22257 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22258 (try_transform_to_exit_first_loop_alt): New function.
22259 (transform_to_exit_first_loop): Use
22260 try_transform_to_exit_first_loop_alt.
22261
22262 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
22263
22264 * builtins.c (expand_builtin_atomic_compare_exchange): Call
22265 emit_cmp_and_jump_insns with the mode of target.
22266
22267 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22268
22269 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22270
22271 2015-06-04 DJ Delorie <dj@redhat.com>
22272
22273 * config/msp430/msp430.md (movsi_s): New. Special case for
22274 storing a 20-bit symbol into a 32-bit register.
22275 * config/msp430/msp430.c (msp430_subreg): Add support for it.
22276 * config/msp430/predicates.md (msp430_symbol_operand): New.
22277
22278 2015-06-04 Sriraman Tallam <tmsriram@google.com>
22279
22280 * c-family/c-common.c (noplt): New attribute.
22281 (handle_noplt_attribute): New handler.
22282 * calls.c (prepare_call_address): Check for noplt
22283 attribute.
22284 * config/i386/i386.c (ix86_expand_call): Check
22285 for noplt attribute.
22286 (ix86_nopic_noplt_attribute_p): New function.
22287 (ix86_output_call_insn): Output indirect call for non-pic
22288 no plt calls.
22289 * doc/extend.texi (noplt): Document new attribute.
22290 * doc/invoke.texi: Document new attribute.
22291
22292 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
22293
22294 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22295 real.h, and fixed-value.h when included in host source files.
22296 * double-int.h: Remove redundant #includes listed above.
22297 * fixed-value.h: Likewise.
22298 * real.h: Likewise.
22299 * wide-int.h: Likewise.
22300 * inchash.h: Likewise.
22301 * rtl.h: Add some include files When included from a generator file.
22302 * target.h: Remove wide-int.h and insn-modes.h from the include list.
22303 * internal-fn.h: Don't include coretypes.h.
22304 * alias.c: Adjust includes for restructured coretypes.h.
22305 * asan.c: Likewise.
22306 * attribs.c: Likewise.
22307 * auto-inc-dec.c: Likewise.
22308 * auto-profile.c: Likewise.
22309 * bb-reorder.c: Likewise.
22310 * bt-load.c: Likewise.
22311 * builtins.c: Likewise.
22312 * caller-save.c: Likewise.
22313 * calls.c: Likewise.
22314 * ccmp.c: Likewise.
22315 * cfg.c: Likewise.
22316 * cfganal.c: Likewise.
22317 * cfgbuild.c: Likewise.
22318 * cfgcleanup.c: Likewise.
22319 * cfgexpand.c: Likewise.
22320 * cfghooks.c: Likewise.
22321 * cfgloop.c: Likewise.
22322 * cfgloop.h: Likewise.
22323 * cfgloopanal.c: Likewise.
22324 * cfgloopmanip.c: Likewise.
22325 * cfgrtl.c: Likewise.
22326 * cgraph.c: Likewise.
22327 * cgraphbuild.c: Likewise.
22328 * cgraphclones.c: Likewise.
22329 * cgraphunit.c: Likewise.
22330 * cilk-common.c: Likewise.
22331 * combine-stack-adj.c: Likewise.
22332 * combine.c: Likewise.
22333 * compare-elim.c: Likewise.
22334 * convert.c: Likewise.
22335 * coverage.c: Likewise.
22336 * cppbuiltin.c: Likewise.
22337 * cprop.c: Likewise.
22338 * cse.c: Likewise.
22339 * cselib.c: Likewise.
22340 * data-streamer-in.c: Likewise.
22341 * data-streamer-out.c: Likewise.
22342 * data-streamer.c: Likewise.
22343 * dbxout.c: Likewise.
22344 * dce.c: Likewise.
22345 * ddg.c: Likewise.
22346 * debug.c: Likewise.
22347 * df-core.c: Likewise.
22348 * df-problems.c: Likewise.
22349 * df-scan.c: Likewise.
22350 * df.h: Likewise.
22351 * dfp.c: Likewise.
22352 * dojump.c: Likewise.
22353 * dominance.c: Likewise.
22354 * domwalk.c: Likewise.
22355 * double-int.c: Likewise.
22356 * dse.c: Likewise.
22357 * dumpfile.c: Likewise.
22358 * dwarf2asm.c: Likewise.
22359 * dwarf2cfi.c: Likewise.
22360 * dwarf2out.c: Likewise.
22361 * dwarf2out.h: Likewise.
22362 * emit-rtl.c: Likewise.
22363 * et-forest.c: Likewise.
22364 * except.c: Likewise.
22365 * explow.c: Likewise.
22366 * expmed.c: Likewise.
22367 * expr.c: Likewise.
22368 * final.c: Likewise.
22369 * fixed-value.c: Likewise.
22370 * fold-const.c: Likewise.
22371 * function.c: Likewise.
22372 * fwprop.c: Likewise.
22373 * gcc-plugin.h: Likewise.
22374 * gcse.c: Likewise.
22375 * generic-match-head.c: Likewise.
22376 * ggc-page.c: Likewise.
22377 * gimple-builder.c: Likewise.
22378 * gimple-expr.c: Likewise.
22379 * gimple-fold.c: Likewise.
22380 * gimple-iterator.c: Likewise.
22381 * gimple-low.c: Likewise.
22382 * gimple-match-head.c: Likewise.
22383 * gimple-pretty-print.c: Likewise.
22384 * gimple-ssa-isolate-paths.c: Likewise.
22385 * gimple-ssa-strength-reduction.c: Likewise.
22386 * gimple-streamer-in.c: Likewise.
22387 * gimple-streamer-out.c: Likewise.
22388 * gimple-streamer.h: Likewise.
22389 * gimple-walk.c: Likewise.
22390 * gimple.c: Likewise.
22391 * gimplify-me.c: Likewise.
22392 * gimplify.c: Likewise.
22393 * godump.c: Likewise.
22394 * graph.c: Likewise.
22395 * graphite-blocking.c: Likewise.
22396 * graphite-dependences.c: Likewise.
22397 * graphite-interchange.c: Likewise.
22398 * graphite-isl-ast-to-gimple.c: Likewise.
22399 * graphite-optimize-isl.c: Likewise.
22400 * graphite-poly.c: Likewise.
22401 * graphite-scop-detection.c: Likewise.
22402 * graphite-sese-to-poly.c: Likewise.
22403 * graphite.c: Likewise.
22404 * haifa-sched.c: Likewise.
22405 * hooks.h: Likewise.
22406 * hw-doloop.c: Likewise.
22407 * ifcvt.c: Likewise.
22408 * incpath.c: Likewise.
22409 * init-regs.c: Likewise.
22410 * internal-fn.c: Likewise.
22411 * ipa-chkp.c: Likewise.
22412 * ipa-comdats.c: Likewise.
22413 * ipa-cp.c: Likewise.
22414 * ipa-devirt.c: Likewise.
22415 * ipa-icf-gimple.c: Likewise.
22416 * ipa-icf.c: Likewise.
22417 * ipa-inline-analysis.c: Likewise.
22418 * ipa-inline-transform.c: Likewise.
22419 * ipa-inline.c: Likewise.
22420 * ipa-polymorphic-call.c: Likewise.
22421 * ipa-profile.c: Likewise.
22422 * ipa-prop.c: Likewise.
22423 * ipa-pure-const.c: Likewise.
22424 * ipa-ref.c: Likewise.
22425 * ipa-reference.c: Likewise.
22426 * ipa-split.c: Likewise.
22427 * ipa-utils.c: Likewise.
22428 * ipa-visibility.c: Likewise.
22429 * ipa.c: Likewise.
22430 * ira-build.c: Likewise.
22431 * ira-color.c: Likewise.
22432 * ira-conflicts.c: Likewise.
22433 * ira-costs.c: Likewise.
22434 * ira-emit.c: Likewise.
22435 * ira-lives.c: Likewise.
22436 * ira.c: Likewise.
22437 * jump.c: Likewise.
22438 * langhooks.c: Likewise.
22439 * lcm.c: Likewise.
22440 * loop-doloop.c: Likewise.
22441 * loop-init.c: Likewise.
22442 * loop-invariant.c: Likewise.
22443 * loop-iv.c: Likewise.
22444 * loop-unroll.c: Likewise.
22445 * lower-subreg.c: Likewise.
22446 * lra-assigns.c: Likewise.
22447 * lra-coalesce.c: Likewise.
22448 * lra-constraints.c: Likewise.
22449 * lra-eliminations.c: Likewise.
22450 * lra-lives.c: Likewise.
22451 * lra-remat.c: Likewise.
22452 * lra-spills.c: Likewise.
22453 * lra.c: Likewise.
22454 * lto-cgraph.c: Likewise.
22455 * lto-compress.c: Likewise.
22456 * lto-opts.c: Likewise.
22457 * lto-section-in.c: Likewise.
22458 * lto-section-out.c: Likewise.
22459 * lto-streamer-in.c: Likewise.
22460 * lto-streamer-out.c: Likewise.
22461 * lto-streamer.c: Likewise.
22462 * mcf.c: Likewise.
22463 * mode-switching.c: Likewise.
22464 * modulo-sched.c: Likewise.
22465 * omega.c: Likewise.
22466 * omp-low.c: Likewise.
22467 * optabs.c: Likewise.
22468 * opts-global.c: Likewise.
22469 * passes.c: Likewise.
22470 * plugin.c: Likewise.
22471 * postreload-gcse.c: Likewise.
22472 * postreload.c: Likewise.
22473 * predict.c: Likewise.
22474 * print-rtl.c: Likewise.
22475 * print-tree.c: Likewise.
22476 * profile.c: Likewise.
22477 * real.c: Likewise.
22478 * realmpfr.c: Likewise.
22479 * realmpfr.h: Likewise.
22480 * recog.c: Likewise.
22481 * ree.c: Likewise.
22482 * reg-stack.c: Likewise.
22483 * regcprop.c: Likewise.
22484 * reginfo.c: Likewise.
22485 * regrename.c: Likewise.
22486 * regs.h: Likewise.
22487 * regstat.c: Likewise.
22488 * reload.c: Likewise.
22489 * reload1.c: Likewise.
22490 * reorg.c: Likewise.
22491 * resource.c: Likewise.
22492 * rtl-chkp.c: Likewise.
22493 * rtlanal.c: Likewise.
22494 * rtlhooks.c: Likewise.
22495 * sanopt.c: Likewise.
22496 * sched-deps.c: Likewise.
22497 * sched-ebb.c: Likewise.
22498 * sched-rgn.c: Likewise.
22499 * sched-vis.c: Likewise.
22500 * sdbout.c: Likewise.
22501 * sel-sched-dump.c: Likewise.
22502 * sel-sched-ir.c: Likewise.
22503 * sel-sched.c: Likewise.
22504 * sese.c: Likewise.
22505 * shrink-wrap.c: Likewise.
22506 * shrink-wrap.h: Likewise.
22507 * simplify-rtx.c: Likewise.
22508 * stack-ptr-mod.c: Likewise.
22509 * statistics.c: Likewise.
22510 * stmt.c: Likewise.
22511 * stor-layout.c: Likewise.
22512 * store-motion.c: Likewise.
22513 * stringpool.c: Likewise.
22514 * symtab.c: Likewise.
22515 * target-globals.c: Likewise.
22516 * targhooks.c: Likewise.
22517 * toplev.c: Likewise.
22518 * tracer.c: Likewise.
22519 * trans-mem.c: Likewise.
22520 * tree-affine.c: Likewise.
22521 * tree-affine.h: Likewise.
22522 * tree-browser.c: Likewise.
22523 * tree-call-cdce.c: Likewise.
22524 * tree-cfg.c: Likewise.
22525 * tree-cfgcleanup.c: Likewise.
22526 * tree-chkp-opt.c: Likewise.
22527 * tree-chkp.c: Likewise.
22528 * tree-chrec.c: Likewise.
22529 * tree-complex.c: Likewise.
22530 * tree-data-ref.c: Likewise.
22531 * tree-dfa.c: Likewise.
22532 * tree-diagnostic.c: Likewise.
22533 * tree-dump.c: Likewise.
22534 * tree-eh.c: Likewise.
22535 * tree-emutls.c: Likewise.
22536 * tree-if-conv.c: Likewise.
22537 * tree-inline.c: Likewise.
22538 * tree-into-ssa.c: Likewise.
22539 * tree-iterator.c: Likewise.
22540 * tree-loop-distribution.c: Likewise.
22541 * tree-nested.c: Likewise.
22542 * tree-nrv.c: Likewise.
22543 * tree-object-size.c: Likewise.
22544 * tree-outof-ssa.c: Likewise.
22545 * tree-parloops.c: Likewise.
22546 * tree-phinodes.c: Likewise.
22547 * tree-predcom.c: Likewise.
22548 * tree-pretty-print.c: Likewise.
22549 * tree-pretty-print.h: Likewise.
22550 * tree-profile.c: Likewise.
22551 * tree-scalar-evolution.c: Likewise.
22552 * tree-sra.c: Likewise.
22553 * tree-ssa-address.c: Likewise.
22554 * tree-ssa-alias.c: Likewise.
22555 * tree-ssa-ccp.c: Likewise.
22556 * tree-ssa-coalesce.c: Likewise.
22557 * tree-ssa-copy.c: Likewise.
22558 * tree-ssa-copyrename.c: Likewise.
22559 * tree-ssa-dce.c: Likewise.
22560 * tree-ssa-dom.c: Likewise.
22561 * tree-ssa-dse.c: Likewise.
22562 * tree-ssa-forwprop.c: Likewise.
22563 * tree-ssa-ifcombine.c: Likewise.
22564 * tree-ssa-live.c: Likewise.
22565 * tree-ssa-loop-ch.c: Likewise.
22566 * tree-ssa-loop-im.c: Likewise.
22567 * tree-ssa-loop-ivcanon.c: Likewise.
22568 * tree-ssa-loop-ivopts.c: Likewise.
22569 * tree-ssa-loop-manip.c: Likewise.
22570 * tree-ssa-loop-niter.c: Likewise.
22571 * tree-ssa-loop-prefetch.c: Likewise.
22572 * tree-ssa-loop-unswitch.c: Likewise.
22573 * tree-ssa-loop.c: Likewise.
22574 * tree-ssa-loop.h: Likewise.
22575 * tree-ssa-math-opts.c: Likewise.
22576 * tree-ssa-operands.c: Likewise.
22577 * tree-ssa-phiopt.c: Likewise.
22578 * tree-ssa-phiprop.c: Likewise.
22579 * tree-ssa-pre.c: Likewise.
22580 * tree-ssa-propagate.c: Likewise.
22581 * tree-ssa-reassoc.c: Likewise.
22582 * tree-ssa-sccvn.c: Likewise.
22583 * tree-ssa-scopedtables.c: Likewise.
22584 * tree-ssa-sink.c: Likewise.
22585 * tree-ssa-strlen.c: Likewise.
22586 * tree-ssa-structalias.c: Likewise.
22587 * tree-ssa-tail-merge.c: Likewise.
22588 * tree-ssa-ter.c: Likewise.
22589 * tree-ssa-threadedge.c: Likewise.
22590 * tree-ssa-threadupdate.c: Likewise.
22591 * tree-ssa-uncprop.c: Likewise.
22592 * tree-ssa-uninit.c: Likewise.
22593 * tree-ssa.c: Likewise.
22594 * tree-ssanames.c: Likewise.
22595 * tree-stdarg.c: Likewise.
22596 * tree-streamer-in.c: Likewise.
22597 * tree-streamer-out.c: Likewise.
22598 * tree-streamer.c: Likewise.
22599 * tree-switch-conversion.c: Likewise.
22600 * tree-tailcall.c: Likewise.
22601 * tree-vect-data-refs.c: Likewise.
22602 * tree-vect-generic.c: Likewise.
22603 * tree-vect-loop-manip.c: Likewise.
22604 * tree-vect-loop.c: Likewise.
22605 * tree-vect-patterns.c: Likewise.
22606 * tree-vect-slp.c: Likewise.
22607 * tree-vect-stmts.c: Likewise.
22608 * tree-vectorizer.c: Likewise.
22609 * tree-vrp.c: Likewise.
22610 * tree.c: Likewise.
22611 * tsan.c: Likewise.
22612 * ubsan.c: Likewise.
22613 * valtrack.c: Likewise.
22614 * value-prof.c: Likewise.
22615 * var-tracking.c: Likewise.
22616 * varasm.c: Likewise.
22617 * varpool.c: Likewise.
22618 * vmsdbgout.c: Likewise.
22619 * vtable-verify.c: Likewise.
22620 * web.c: Likewise.
22621 * wide-int-print.cc: Likewise.
22622 * wide-int-print.h: Likewise.
22623 * wide-int.cc: Likewise.
22624 * xcoffout.c: Likewise.
22625 * config/aarch64/aarch64-builtins.c: Likewise.
22626 * config/aarch64/aarch64.c: Likewise.
22627 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22628 * config/alpha/alpha.c: Likewise.
22629 * config/arc/arc.c: Likewise.
22630 * config/arm/aarch-common.c: Likewise.
22631 * config/arm/arm-builtins.c: Likewise.
22632 * config/arm/arm-c.c: Likewise.
22633 * config/arm/arm.c: Likewise.
22634 * config/avr/avr-c.c: Likewise.
22635 * config/avr/avr-log.c: Likewise.
22636 * config/avr/avr.c: Likewise.
22637 * config/bfin/bfin.c: Likewise.
22638 * config/c6x/c6x.c: Likewise.
22639 * config/cr16/cr16.c: Likewise.
22640 * config/cris/cris.c: Likewise.
22641 * config/darwin-c.c: Likewise.
22642 * config/darwin.c: Likewise.
22643 * config/default-c.c: Likewise.
22644 * config/epiphany/epiphany.c: Likewise.
22645 * config/epiphany/mode-switch-use.c: Likewise.
22646 * config/epiphany/resolve-sw-modes.c: Likewise.
22647 * config/fr30/fr30.c: Likewise.
22648 * config/frv/frv.c: Likewise.
22649 * config/ft32/ft32.c: Likewise.
22650 * config/glibc-c.c: Likewise.
22651 * config/h8300/h8300.c: Likewise.
22652 * config/i386/i386-c.c: Likewise.
22653 * config/i386/i386.c: Likewise.
22654 * config/i386/msformat-c.c: Likewise.
22655 * config/i386/winnt-cxx.c: Likewise.
22656 * config/i386/winnt-stubs.c: Likewise.
22657 * config/i386/winnt.c: Likewise.
22658 * config/ia64/ia64-c.c: Likewise.
22659 * config/ia64/ia64.c: Likewise.
22660 * config/iq2000/iq2000.c: Likewise.
22661 * config/lm32/lm32.c: Likewise.
22662 * config/m32c/m32c-pragma.c: Likewise.
22663 * config/m32c/m32c.c: Likewise.
22664 * config/m32r/m32r.c: Likewise.
22665 * config/m68k/m68k.c: Likewise.
22666 * config/mcore/mcore.c: Likewise.
22667 * config/mep/mep-pragma.c: Likewise.
22668 * config/mep/mep.c: Likewise.
22669 * config/microblaze/microblaze-c.c: Likewise.
22670 * config/microblaze/microblaze.c: Likewise.
22671 * config/mips/mips.c: Likewise.
22672 * config/mmix/mmix.c: Likewise.
22673 * config/mn10300/mn10300.c: Likewise.
22674 * config/moxie/moxie.c: Likewise.
22675 * config/msp430/msp430-c.c: Likewise.
22676 * config/msp430/msp430.c: Likewise.
22677 * config/nds32/nds32-cost.c: Likewise.
22678 * config/nds32/nds32-fp-as-gp.c: Likewise.
22679 * config/nds32/nds32-intrinsic.c: Likewise.
22680 * config/nds32/nds32-isr.c: Likewise.
22681 * config/nds32/nds32-md-auxiliary.c: Likewise.
22682 * config/nds32/nds32-memory-manipulation.c: Likewise.
22683 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22684 * config/nds32/nds32-predicates.c: Likewise.
22685 * config/nds32/nds32.c: Likewise.
22686 * config/nios2/nios2.c: Likewise.
22687 * config/nvptx/nvptx.c: Likewise.
22688 * config/pa/pa.c: Likewise.
22689 * config/pdp11/pdp11.c: Likewise.
22690 * config/rl78/rl78-c.c: Likewise.
22691 * config/rl78/rl78.c: Likewise.
22692 * config/rs6000/rs6000-c.c: Likewise.
22693 * config/rs6000/rs6000.c: Likewise.
22694 * config/rx/rx.c: Likewise.
22695 * config/s390/s390-c.c: Likewise.
22696 * config/s390/s390.c: Likewise.
22697 * config/sh/sh-c.c: Likewise.
22698 * config/sh/sh-mem.cc: Likewise.
22699 * config/sh/sh.c: Likewise.
22700 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22701 * config/sh/sh_treg_combine.cc: Likewise.
22702 * config/sol2-c.c: Likewise.
22703 * config/sol2-cxx.c: Likewise.
22704 * config/sol2-stubs.c: Likewise.
22705 * config/sol2.c: Likewise.
22706 * config/sparc/sparc-c.c: Likewise.
22707 * config/sparc/sparc.c: Likewise.
22708 * config/spu/spu-c.c: Likewise.
22709 * config/spu/spu.c: Likewise.
22710 * config/stormy16/stormy16.c: Likewise.
22711 * config/tilegx/mul-tables.c: Likewise.
22712 * config/tilegx/tilegx-c.c: Likewise.
22713 * config/tilegx/tilegx.c: Likewise.
22714 * config/tilepro/mul-tables.c: Likewise.
22715 * config/tilepro/tilepro-c.c: Likewise.
22716 * config/tilepro/tilepro.c: Likewise.
22717 * config/v850/v850-c.c: Likewise.
22718 * config/v850/v850.c: Likewise.
22719 * config/vax/vax.c: Likewise.
22720 * config/visium/visium.c: Likewise.
22721 * config/vms/vms-c.c: Likewise.
22722 * config/vms/vms.c: Likewise.
22723 * config/vxworks.c: Likewise.
22724 * config/winnt-c.c: Likewise.
22725 * config/xtensa/xtensa.c: Likewise.
22726 * common/config/bfin/bfin-common.c: Likewise.
22727
22728 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
22729
22730 * tree.h (tree_code_for_canonical_type_merging): New function.
22731 * tree.c (gimple_canonical_types_compatible_p): Use
22732 tree_code_for_canonical_type_merging..
22733
22734 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22735
22736 PR c++/66192
22737 PR target/66200
22738 * doc/tm.texi: Regenerate.
22739 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22740 * target.def (TARGET_RELAXED_ORDERING): Likewise.
22741 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22742 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22743 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22744 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22745 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22746 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22747 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22748
22749 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22750
22751 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22752 register fma steering pass.
22753 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22754 AARCH64_TUNE_FMA_STEERING.
22755
22756 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
22757
22758 * tree.c (verify_type_variant): Verify that type and variant is
22759 compatible.
22760 (gimple_canonical_types_compatible_p): Look for main variants.
22761
22762 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22763
22764 * config.gcc (powerpc*-*-*): Add support for a new configure
22765 option --with-advance-toolchain=<xxx> which overrides using the
22766 default header files, libraries and dynamic linker.
22767
22768 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22769 specs to support the configure --with-advance-toolchain=<xxx>
22770 option.
22771 (INCLUDE_EXTRA_SPEC): Likewise.
22772 (LINK_OS_EXTRA_SPEC32): Likewise.
22773 (LINK_OK_EXTRA_SPEC64): Likewise.
22774 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
22775 (DYNAMIC_LINKER_PREFIX): Likewise.
22776 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
22777 toolchain support.
22778 (GLIBC_DYNAMIC_LINKER32): Likewise.
22779 (GLIBC_DYNAMIC_LINKER64): Likewise.
22780 (LINK_OS_LINUX_SPEC32): Likewise.
22781 (LINK_OS_LINUX_SPEC64): Likewise.
22782
22783 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
22784 configuration option.
22785
22786 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
22787
22788 PR target/66275
22789 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
22790 to determine current function ABI.
22791 (ix86_function_value_regno_p): Ditto.
22792
22793 2015-06-03 Martin Liska <mliska@suse.cz>
22794
22795 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
22796 * bitmap.h (struct bitmap_usage): Likewise.
22797 * ggc-common.c (struct ggc_usage): Likewise.
22798 * mem-stats.h (struct mem_location): Likewise.
22799 (struct mem_usage): Likewise.
22800 * vec.c (struct vec_usage): Likewise.
22801
22802 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
22803
22804 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
22805 -Bsymbolic.
22806
22807 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
22808
22809 * doc/plugins.texi (enum plugin_event): New event.
22810 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
22811 and PLUGIN_FINISH_FUNCTION.
22812 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
22813 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
22814
22815 2015-06-03 Richard Biener <rguenther@suse.de>
22816
22817 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22818 compute GROUP_GAP for the first element.
22819 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
22820 on in-group gaps.
22821
22822 2015-06-03 Nick Clifton <nickc@redhat.com>
22823
22824 * config/rl78/rl78-real.md: Add peepholes to avoid a register
22825 copy when calling a function.
22826 * config/rl78/rl78.c (need_to_save): Do not push the frame
22827 pointer in an interrupt handler prologue if it is never used.
22828
22829 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22830
22831 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
22832
22833 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22834
22835 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
22836 reference when cloning alias node.
22837
22838 2015-06-03 Martin Liska <mliska@suse.cz>
22839
22840 * alloc-pool.h (struct pool_usage): Correct space padding.
22841 * ggc-page.c (ggc_print_statistics): Align columns in a report.
22842 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
22843 * tree.c (dump_tree_statistics): Align columns in a report.
22844
22845 2015-06-03 Martin Liska <mliska@suse.cz>
22846
22847 * alloc-pool.c (allocate_pool_descriptor): Remove.
22848 (struct pool_output_info): Likewise.
22849 (print_alloc_pool_statistics): Likewise.
22850 (dump_alloc_pool_statistics): Likewise.
22851 * alloc-pool.h (struct pool_usage): New struct.
22852 (pool_allocator::initialize): Change usage of memory statistics
22853 to a new interface.
22854 (pool_allocator::release): Likewise.
22855 (pool_allocator::allocate): Likewise.
22856 (pool_allocator::remove): Likewise.
22857 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
22858 for a pool allocator.
22859 * mem-stats.h (struct mem_location): Add new ctor.
22860 (struct mem_usage): Add counter for number of
22861 instances.
22862 (mem_alloc_description::register_descriptor): New overload of
22863 * mem-stats.h (mem_location::to_string): New function.
22864 * bitmap.h (struct bitmap_usage): Use this new function.
22865 * ggc-common.c (struct ggc_usage): Likewise.
22866 the function.
22867
22868 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22869
22870 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
22871 of GCC_INSN_FLAGS_H block.
22872
22873 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22874
22875 * explow.c (plus_constant): Update check after force_const_mem call
22876 to see if the value returned is not a NULL_RTX.
22877
22878 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22879
22880 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22881 remove instumentation thunks calling reachable functions.
22882 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22883 * lto/lto-partition.c (privatize_symbol_name_1): New.
22884 (privatize_symbol_name): Privatize both decl and orig_decl
22885 names for instrumented functions.
22886 * cgraph.c (cgraph_node::verify_node): Add transparent
22887 alias chain check for instrumented node.
22888
22889 2015-06-03 Marek Polacek <polacek@redhat.com>
22890
22891 PR c/64223
22892 PR c/29358
22893 * tree.c (attribute_value_equal): Handle attribute format.
22894 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22895
22896 2015-06-03 Richard Biener <rguenther@suse.de>
22897
22898 PR tree-optimization/63916
22899 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22900 Forward-propagate non-invariant addresses by splicing their
22901 reference ops if the result isn't going to be used by PRE.
22902 (vn_reference_lookup_3): Remove pointless assert.
22903
22904 2015-06-03 Richard Biener <rguenther@suse.de>
22905
22906 PR tree-optimization/66375
22907 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22908 add to the evolution before following SSA edges.
22909
22910 2015-06-03 Bin Cheng <bin.cheng@arm.com>
22911
22912 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22913 (dump_use, dump_cand, find_induction_variables): Pass new argument
22914 to dump_iv.
22915 (record_use): Preserve the ssa name information in IV.
22916
22917 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22918
22919 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22920 NO_MODE_TEST.
22921 (add_mode_tests): Don't add mode tests if the predicate only
22922 accepts scalar constant integers. Otherwise, allow the mode
22923 of "op" to be VOIDmode if the predicate does accept such integers.
22924
22925 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
22926
22927 PR target/66258
22928 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22929 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22930 (aarch64_secondary_reload): Likewise
22931 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22932 to !TARGET_FLOAT.
22933 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22934 Likewise.
22935
22936 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
22937 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22938
22939 PR target/65768
22940 * cprop.c (try_replace_reg): Check cost of constants before propagating.
22941
22942 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22943
22944 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22945 provide access to the IBM extended double floating point mode if
22946 long double is IEEE 128-bit floating point.
22947 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22948 point if long double is the IBM extended double type.
22949
22950 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22951 enable adding IEEE 128-bit floating point support.
22952 (-mfloat128-software): Likewise.
22953 (-mfloat128-sw): Likewise.
22954
22955 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22956 128-bit floating point types to occupy any register if
22957 -mlong-double-64. Do not allow use of IFmode/KFmode unless
22958 -mfloat128-software is enabled.
22959 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22960 support.
22961 (rs6000_option_override_internal): Add -mfloat128-* support.
22962 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22963
22964 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22965 and float128 type nodes.
22966 (ieee128_float_type_node): Likewise.
22967 (ibm128_float_type_node): Likewise.
22968
22969 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22970
22971 PR target/66136
22972 * config/aarch64/geniterators.sh: Rewrite in awk.
22973
22974 2015-06-02 Martin Liska <mliska@suse.cz>
22975
22976 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22977 values to avoid -Wmaybe-uninitialized errors.
22978
22979 2015-06-02 Richard Biener <rguenther@suse.de>
22980
22981 PR debug/65549
22982 * dwarf2out.c (lookup_context_die): New function.
22983 (resolve_addr): Avoid forcing a full DIE for the
22984 target of a DW_TAG_GNU_call_site during late compilation.
22985 Instead create a stub DIE without a type if we have a
22986 context DIE present.
22987
22988 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
22989
22990 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
22991
22992 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22993
22994 PR tree-optimization/48052
22995 * cfgloop.h (struct control_iv): New.
22996 (struct loop): New field control_ivs.
22997 * tree-ssa-loop-niter.c : Include "stor-layout.h".
22998 (number_of_iterations_lt): Set no_overflow information.
22999 (number_of_iterations_exit): Init control iv in niter struct.
23000 (record_control_iv): New.
23001 (estimate_numbers_of_iterations_loop): Call record_control_iv.
23002 (loop_exits_before_overflow): New. Interface factored out of
23003 scev_probably_wraps_p.
23004 (scev_probably_wraps_p): Factor loop niter related code into
23005 loop_exits_before_overflow.
23006 (free_numbers_of_iterations_estimates_loop): Free control ivs.
23007 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
23008
23009 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
23010
23011 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
23012 the target doesn't belong to the current function.
23013
23014 2015-06-02 Marek Polacek <polacek@redhat.com>
23015
23016 PR middle-end/66345
23017 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
23018 get_maxval_strlen does not produce an INTEGER_CST.
23019
23020 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
23021
23022 * config/arc/constraints.md: Use lower-case names in match_code.
23023 * config/mmix/constraints.md: Likewise.
23024
23025 2015-06-02 Richard Biener <rguenther@suse.de>
23026
23027 PR tree-optimization/65961
23028 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
23029 check and clarify dump message.
23030 (vect_build_slp_tree): If all children are built up from scalars
23031 build up the parent from scalars instead.
23032 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
23033
23034 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
23035
23036 PR other/65366
23037 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
23038 instead of print ... .
23039
23040 2015-06-02 Alan Modra <amodra@gmail.com>
23041
23042 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
23043 2014-08-11 change.
23044
23045 2015-06-02 Bin Cheng <bin.cheng@arm.com>
23046
23047 PR tree-optimization/52563
23048 PR tree-optimization/62173
23049 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
23050 (alloc_iv, set_iv): New parameter.
23051 (determine_biv_step): Delete.
23052 (find_bivs): Inline original determine_biv_step. Pass new
23053 argument to set_iv.
23054 (idx_find_step): Use no_overflow information for conversion.
23055 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
23056 resolve_mixers handle folded_casts.
23057 (instantiate_scev_name): Change bool parameter to bool pointer.
23058 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
23059 (instantiate_array_ref, instantiate_scev_not): Ditto.
23060 (instantiate_scev_3, instantiate_scev_2): Ditto.
23061 (instantiate_scev_1, instantiate_scev_r): Ditto.
23062 (instantiate_scev_convert, ): Change parameter. Pass argument
23063 to chrec_convert_aggressive.
23064 (instantiate_scev): Change argument.
23065 (resolve_mixers): New parameter and set it.
23066 (scev_const_prop): New argument.
23067 * tree-scalar-evolution.h (resolve_mixers): New parameter.
23068 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
23069 of chrec_conert_1.
23070 (chrec_convert): New parameter. Move definition below.
23071 (chrec_convert_aggressive): New parameter and set it. Call
23072 convert_affine_scev.
23073 * tree-chrec.h (chrec_convert): New parameter.
23074 (chrec_convert_aggressive): Ditto.
23075
23076 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23077
23078 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
23079 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
23080 the LHS of a no-return call if its type has variable size.
23081 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
23082 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
23083
23084 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
23085
23086 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
23087 * config.in: Regenerate.
23088
23089 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
23090
23091 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
23092 consecutive accesses within outer-loop with force_vectorize
23093 for references with zero step in inner-loop.
23094
23095 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23096
23097 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
23098 rather than from gcc/build directory.
23099
23100 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23101
23102 PR target/65697
23103 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
23104 for __sync memory models, emit initial loads and final barriers as
23105 appropriate.
23106
23107 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
23108
23109 PR target/65697
23110 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
23111 (aarch64_split_atomic_op): Check for __sync memory models, emit
23112 appropriate initial loads and final barriers.
23113
23114 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
23115
23116 * Makefile.in: Fix gcov dependencies that should
23117 not point to a build folder.
23118
23119 2015-06-01 Richard Biener <rguenther@suse.de>
23120
23121 Revert
23122 2015-05-29 Richard Biener <rguenther@suse.de>
23123
23124 PR tree-optimization/66314
23125 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23126 parameter that says which loop the new block belongs to.
23127 (ssa_create_duplicates): Blocks duplicated for the threaded
23128 path belong to the loop of the thread destination.
23129
23130 2015-06-01 Martin Liska <mliska@suse.cz>
23131
23132 * sched-deps.c: Include pool-alloc.h before
23133 cselib.h header file is included.
23134
23135 2015-06-01 Richard Biener <rguenther@suse.de>
23136
23137 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
23138 functions.
23139
23140 2015-06-01 Martin Liska <mliska@suse.cz>
23141
23142 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
23143 a function local variable.
23144
23145 2015-06-01 Martin Liska <mliska@suse.cz>
23146
23147 * alloc-pool.c (create_alloc_pool): Remove.
23148 (empty_alloc_pool): Likewise.
23149 (free_alloc_pool): Likewise.
23150 (free_alloc_pool_if_empty): Likewise.
23151 (pool_alloc): Likewise.
23152 (pool_free): Likewise.
23153 * alloc-pool.h: Remove old declarations.
23154
23155 2015-06-01 Martin Liska <mliska@suse.cz>
23156
23157 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
23158 (ira_create_object): Likewise.
23159 (ira_create_allocno): Likewise.
23160 (ira_create_live_range): Likewise.
23161 (copy_live_range): Likewise.
23162 (ira_finish_live_range): Likewise.
23163 (ira_free_allocno_costs): Likewise.
23164 (finish_allocno): Likewise.
23165 (finish_allocnos): Likewise.
23166 (initiate_prefs): Likewise.
23167 (ira_create_pref): Likewise.
23168 (finish_pref): Likewise.
23169 (finish_prefs): Likewise.
23170 (initiate_copies): Likewise.
23171 (ira_create_copy): Likewise.
23172 (finish_copy): Likewise.
23173 (finish_copies): Likewise.
23174 (finish_prefs): Likewise.
23175
23176 2015-06-01 Martin Liska <mliska@suse.cz>
23177
23178 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23179 (allocate_and_init_ipcp_value): Likewise.
23180 (ipcp_lattice::add_value): Likewise.
23181 (merge_agg_lats_step): Likewise.
23182 (ipcp_driver): Likewise.
23183 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23184 (ipa_free_all_structures_after_iinln): Likewise.
23185 * ipa-prop.h: Likewise.
23186
23187 2015-06-01 Martin Liska <mliska@suse.cz>
23188
23189 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23190 pool allocator.
23191 (set_hint_predicate): Likewise.
23192 (inline_summary_alloc): Likewise.
23193 (reset_inline_edge_summary): Likewise.
23194 (reset_inline_summary): Likewise.
23195 (set_cond_stmt_execution_predicate): Likewise.
23196 (set_switch_stmt_execution_predicate): Likewise.
23197 (compute_bb_predicates): Likewise.
23198 (estimate_function_body_sizes): Likewise.
23199 (inline_free_summary): Likewise.
23200
23201 2015-06-01 Martin Liska <mliska@suse.cz>
23202
23203 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23204 (ipa_edge_duplication_hook): Likewise.
23205 (ipa_free_all_structures_after_ipa_cp): Likewise.
23206 (ipa_free_all_structures_after_iinln): Likewise.
23207
23208 2015-06-01 Martin Liska <mliska@suse.cz>
23209
23210 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23211 (ipa_profile_generate_summary): Likewise.
23212 (ipa_profile_read_summary): Likewise.
23213 (ipa_profile): Likewise.
23214
23215 2015-06-01 Martin Liska <mliska@suse.cz>
23216
23217 * tree-ssa-structalias.c (new_var_info): Use new type-based
23218 pool allocator.
23219 (new_constraint): Likewise.
23220 (init_alias_vars): Likewise.
23221 (delete_points_to_sets): Likewise.
23222
23223 2015-06-01 Martin Liska <mliska@suse.cz>
23224
23225 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23226 (free_strinfo): Likewise.
23227 (pass_strlen::execute): Likewise.
23228
23229 2015-06-01 Martin Liska <mliska@suse.cz>
23230
23231 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23232 pool allocator.
23233 (vn_reference_insert_pieces): Likewise.
23234 (vn_phi_insert): Likewise.
23235 (visit_reference_op_call): Likewise.
23236 (copy_phi): Likewise.
23237 (copy_reference): Likewise.
23238 (process_scc): Likewise.
23239 (allocate_vn_table): Likewise.
23240 (free_vn_table): Likewise.
23241
23242 2015-06-01 Martin Liska <mliska@suse.cz>
23243
23244 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23245 pool allocator.
23246 (add_repeat_to_ops_vec): Likewise.
23247 (get_ops): Likewise.
23248 (maybe_optimize_range_tests): Likewise.
23249 (init_reassoc): Likewise.
23250 (fini_reassoc): Likewise.
23251
23252 2015-06-01 Martin Liska <mliska@suse.cz>
23253
23254 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23255 pool allocator.
23256 (bitmap_set_new): Likewise.
23257 (get_or_alloc_expr_for_constant): Likewise.
23258 (get_or_alloc_expr_for): Likewise.
23259 (phi_translate_1): Likewise.
23260 (compute_avail): Likewise.
23261 (init_pre): Likewise.
23262 (fini_pre): Likewise.
23263
23264 2015-06-01 Martin Liska <mliska@suse.cz>
23265
23266 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23267 (delete_dep_node): Likewise.
23268 (create_deps_list): Likewise.
23269 (free_deps_list): Likewise.
23270 (sched_deps_init): Likewise.
23271 (sched_deps_finish): Likewise.
23272
23273 2015-06-01 Martin Liska <mliska@suse.cz>
23274
23275 * regcprop.c (free_debug_insn_changes): Use new type-based
23276 pool allocator.
23277 (replace_oldest_value_reg): Likewise.
23278 (pass_cprop_hardreg::execute): Likewise.
23279
23280 2015-06-01 Martin Liska <mliska@suse.cz>
23281
23282 * ira-build.c (initiate_cost_vectors): Use new type-based
23283 pool allocator.
23284 (ira_allocate_cost_vector): Likewise.
23285 (ira_free_cost_vector): Likewise.
23286 (finish_cost_vectors): Likewise.
23287
23288 2015-06-01 Martin Liska <mliska@suse.cz>
23289
23290 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23291 pool allocator.
23292 (free_sched_pools): Likewise.
23293 * sel-sched-ir.h (_list_alloc): Likewise.
23294 (_list_remove): Likewise.
23295
23296 2015-06-01 Martin Liska <mliska@suse.cz>
23297
23298 * stmt.c (add_case_node): Use new type-based pool allocator.
23299 (expand_case): Likewise.
23300 (expand_sjlj_dispatch_table): Likewise.
23301
23302 2015-06-01 Martin Liska <mliska@suse.cz>
23303
23304 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23305 (free_bb): Likewise.
23306 (pass_cse_reciprocals::execute): Likewise.
23307
23308 2015-06-01 Martin Liska <mliska@suse.cz>
23309
23310 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23311 (sra_deinitialize) Likewise.
23312 (create_access_1) Likewise.
23313 (build_accesses_from_assign) Likewise.
23314 (create_artificial_child_access) Likewise.
23315
23316 2015-06-01 Martin Liska <mliska@suse.cz>
23317
23318 * dse.c (get_group_info):Use new type-based pool allocator.
23319 (dse_step0) Likewise.
23320 (free_store_info) Likewise.
23321 (delete_dead_store_insn) Likewise.
23322 (free_read_records) Likewise.
23323 (record_store) Likewise.
23324 (replace_read) Likewise.
23325 (check_mem_read_rtx) Likewise.
23326 (scan_insn) Likewise.
23327 (dse_step1) Likewise.
23328 (dse_step7) Likewise.
23329
23330 2015-06-01 Martin Liska <mliska@suse.cz>
23331
23332 * df-scan.c (struct df_scan_problem_data):Use new type-based
23333 pool allocator.
23334 (df_scan_free_internal) Likewise.
23335 (df_scan_alloc) Likewise.
23336 (df_grow_reg_info) Likewise.
23337 (df_free_ref) Likewise.
23338 (df_insn_create_insn_record) Likewise.
23339 (df_mw_hardreg_chain_delete) Likewise.
23340 (df_insn_info_delete) Likewise.
23341 (df_free_collection_rec) Likewise.
23342 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23343 (df_sort_and_compress_mws) Likewise.
23344 (df_ref_create_structure) Likewise.
23345 (df_ref_record) Likewise.
23346
23347 2015-06-01 Martin Liska <mliska@suse.cz>
23348
23349 * df-problems.c (df_chain_create):Use new type-based pool allocator.
23350 (df_chain_unlink_1) Likewise.
23351 (df_chain_unlink) Likewise.
23352 (df_chain_remove_problem) Likewise.
23353 (df_chain_alloc) Likewise.
23354 (df_chain_free) Likewise.
23355 * df.h (struct dataflow) Likewise.
23356
23357 2015-06-01 Martin Liska <mliska@suse.cz>
23358
23359 * cselib.c (new_elt_list):Use new type-based pool allocator.
23360 (new_elt_loc_list) Likewise.
23361 (unchain_one_elt_list) Likewise.
23362 (unchain_one_elt_loc_list) Likewise.
23363 (unchain_one_value) Likewise.
23364 (new_cselib_val) Likewise.
23365 (cselib_init) Likewise.
23366 (cselib_finish) Likewise.
23367
23368 2015-06-01 Martin Liska <mliska@suse.cz>
23369
23370 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23371 (sh_reorg) Likewise.
23372
23373 2015-06-01 Martin Liska <mliska@suse.cz>
23374
23375 * cfg.c (initialize_original_copy_tables):Use new type-based
23376 pool allocator.
23377 (free_original_copy_tables) Likewise.
23378 (copy_original_table_clear) Likewise.
23379 (copy_original_table_set) Likewise.
23380
23381 2015-06-01 Martin Liska <mliska@suse.cz>
23382
23383 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23384 pool allocator.
23385 (asan_mem_ref_new) Likewise.
23386 (free_mem_ref_resources) Likewise.
23387
23388 2015-06-01 Martin Liska <mliska@suse.cz>
23389
23390 * var-tracking.c (variable_htab_free):Use new type-based
23391 pool allocator.
23392 (attrs_list_clear) Likewise.
23393 (attrs_list_insert) Likewise.
23394 (attrs_list_copy) Likewise.
23395 (shared_hash_unshare) Likewise.
23396 (shared_hash_destroy) Likewise.
23397 (unshare_variable) Likewise.
23398 (var_reg_delete_and_set) Likewise.
23399 (var_reg_delete) Likewise.
23400 (var_regno_delete) Likewise.
23401 (drop_overlapping_mem_locs) Likewise.
23402 (variable_union) Likewise.
23403 (insert_into_intersection) Likewise.
23404 (canonicalize_values_star) Likewise.
23405 (variable_merge_over_cur) Likewise.
23406 (dataflow_set_merge) Likewise.
23407 (remove_duplicate_values) Likewise.
23408 (variable_post_merge_new_vals) Likewise.
23409 (dataflow_set_preserve_mem_locs) Likewise.
23410 (dataflow_set_remove_mem_locs) Likewise.
23411 (variable_from_dropped) Likewise.
23412 (variable_was_changed) Likewise.
23413 (set_slot_part) Likewise.
23414 (clobber_slot_part) Likewise.
23415 (delete_slot_part) Likewise.
23416 (loc_exp_insert_dep) Likewise.
23417 (notify_dependents_of_changed_value) Likewise.
23418 (emit_notes_for_differences_1) Likewise.
23419 (vt_emit_notes) Likewise.
23420 (vt_initialize) Likewise.
23421 (vt_finalize) Likewise.
23422
23423 2015-06-01 Martin Liska <mliska@suse.cz>
23424
23425 * ira-color.c (init_update_cost_records):Use new type-based
23426 pool allocator.
23427 (get_update_cost_record) Likewise.
23428 (free_update_cost_record_list) Likewise.
23429 (finish_update_cost_records) Likewise.
23430 (initiate_cost_update) Likewise.
23431
23432 2015-06-01 Martin Liska <mliska@suse.cz>
23433
23434 * lra.c (init_insn_regs): Use new type-based pool allocator.
23435 (new_insn_reg) Likewise.
23436 (free_insn_reg) Likewise.
23437 (free_insn_regs) Likewise.
23438 (finish_insn_regs) Likewise.
23439 (init_insn_recog_data) Likewise.
23440 (init_reg_info) Likewise.
23441 (finish_reg_info) Likewise.
23442 (lra_free_copies) Likewise.
23443 (lra_create_copy) Likewise.
23444 (invalidate_insn_data_regno_info) Likewise.
23445
23446 2015-06-01 Martin Liska <mliska@suse.cz>
23447
23448 * lra-lives.c (free_live_range): Use new type-based pool allocator.
23449 (free_live_range_list) Likewise.
23450 (create_live_range) Likewise.
23451 (copy_live_range) Likewise.
23452 (lra_merge_live_ranges) Likewise.
23453 (remove_some_program_points_and_update_live_ranges) Likewise.
23454 (lra_live_ranges_init) Likewise.
23455 (lra_live_ranges_finish) Likewise.
23456
23457 2015-06-01 Martin Liska <mliska@suse.cz>
23458
23459 * et-forest.c (et_new_occ): Use new type-based pool allocator.
23460 (et_new_tree): Likewise.
23461 (et_free_tree): Likewise.
23462 (et_free_tree_force): Likewise.
23463 (et_free_pools): Likewise.
23464 (et_split): Likewise.
23465
23466 2015-06-01 Martin Liska <mliska@suse.cz>
23467
23468 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23469 to header file.
23470 * alloc-pool.h (pool_allocator::pool_allocator): New function.
23471 (pool_allocator::release): Likewise.
23472 (inline pool_allocator::release_if_empty): Likewise.
23473 (inline pool_allocator::~pool_allocator): Likewise.
23474 (pool_allocator::allocate): Likewise.
23475 (pool_allocator::remove): Likewise.
23476
23477 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23478
23479 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
23480 in comment.
23481
23482 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23483
23484 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
23485 to fusible_ops.
23486 * config/arm/arm.c (arm_print_tune_info): Likewise.
23487 (arm_macro_fusion_p): Likewise.
23488 (arm_macro_fusion_pair_p): Likewise.
23489
23490 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23491
23492 * config/aarch64/aarch64-protos.h (tune_params): Rename
23493 fuseable_ops to fusible_ops.
23494 * config/aarch64/aarch64.c (generic_tunings): Rename
23495 fuseable_ops to fusible_ops.
23496 (cortexa53_tunings): Likewise.
23497 (cortexa57_tunings): Likewise.
23498 (thunderx_tunings): Likewise.
23499 (xgene1_tunings): Likewise.
23500 (aarch64_macro_fusion_p): Likewise.
23501 (aarch64_macro_fusion_pair_p): Likewise.
23502
23503 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
23504
23505 * config/s390/driver-native.c: New file.
23506 * config/s390/x-native: New file.
23507 * config.host: Add new files for s390.
23508 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
23509 and -march=native
23510 * config.gcc: Likewise.
23511 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
23512 * config/s390/s390-opts.h (enum processor_type): Ditto.
23513 * config/s390/s390.c (s390_option_override): Catch unhandled
23514 PROCESSOR_NATIVE
23515
23516 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
23517
23518 PR target/65527
23519 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
23520 redirection for instrumented calls.
23521 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
23522 (append_compiler_options): Append -fcheck-pointer-bounds.
23523 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
23524 (chkp_redirect_edge): New.
23525 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
23526 (chkp_redirect_edge): New.
23527
23528 2015-06-01 Richard Biener <rguenther@suse.de>
23529
23530 PR tree-optimization/66280
23531 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
23532 def-use walking.
23533
23534 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23535
23536 * config/aarch64/aarch64.md
23537 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
23538 logic_shift_imm.
23539
23540 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23541
23542 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
23543 Remove obsolete kludge.
23544
23545 2015-06-01 Richard Biener <rguenther@suse.de>
23546
23547 * tree-ssa-reassoc.c (get_rank): Simplify.
23548
23549 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
23550
23551 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
23552 * configure: Regenerated.
23553
23554 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
23555
23556 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
23557 issue (add space between string literal and macro).
23558 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23559
23560 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
23561
23562 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
23563 implict or explicit -fPIE or -fpie.
23564
23565 2015-05-30 Mike Frysinger <vapier@gentoo.org>
23566
23567 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
23568
23569 2015-05-28 DJ Delorie <dj@redhat.com>
23570
23571 * expmed.c (extract_bit_field_1): Avoid clobbering a
23572 yet-to-be-used base/index register.
23573
23574 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
23575
23576 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23577 (alias_stats): Add num_universal.
23578 (alias_set_subset_of): Special case pointers; be ready for NULL
23579 children.
23580 (alias_sets_conflict_p): Special case pointers; be ready for NULL
23581 children.
23582 (init_alias_set_entry): Break out from ...
23583 (record_alias_subset): ... here; propagate new fields;
23584 allocate children only when really needed.
23585 (get_alias_set): Do less generous pointer globbing.
23586 (dump_alias_stats_in_alias_c): Update statistics.
23587
23588 2015-05-30 Alan Modra <amodra@gmail.com>
23589
23590 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23591 correct block for use of r12.
23592 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23593
23594 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23595
23596 PR target/66215
23597 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23598 with -mhotpatch=.
23599
23600 2015-05-29 Jakub Jelinek <jakub@redhat.com>
23601
23602 PR tree-optimization/66142
23603 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23604 virtual phis that feed themselves.
23605
23606 2015-05-29 Richard Biener <rguenther@suse.de>
23607
23608 PR tree-optimization/66314
23609 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23610 parameter that says which loop the new block belongs to.
23611 (ssa_create_duplicates): Blocks duplicated for the threaded
23612 path belong to the loop of the thread destination.
23613
23614 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23615
23616 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23617 to cleanup-saved-temps.
23618 * doc/sourcebuild.texi (Clean up generated test files): Expand
23619 introduction.
23620 (dg-keep-saved-temps): Document new proc.
23621 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23622 cleanup-saved-temps): Remove.
23623
23624 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
23625
23626 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23627 gcc_AC_CHECK_DECLS.
23628 * configure: Regenerate.
23629
23630 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23631
23632 * config/nios2/linux.h (CPP_SPEC): Define.
23633
23634 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23635
23636 * config/microblaze/linux.h (CPP_SPEC): Define.
23637
23638 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23639
23640 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23641 -pthread is specified.
23642
23643 2015-05-28 Richard Biener <rguenther@suse.de>
23644
23645 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23646 (vect_fixup_scalar_cycles_with_patterns): Likewise.
23647 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23648 after pattern recog.
23649 (vect_create_epilog_for_reduction): Properly handle reductions
23650 with patterns.
23651 (vectorizable_reduction): Likewise.
23652 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23653 reduction chains.
23654 (vect_get_constant_vectors): Create the correct number of
23655 initial values for reductions.
23656 (vect_schedule_slp_instance): Handle reduction chains that are
23657 type changing properly.
23658 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23659
23660 2015-05-28 Richard Biener <rguenther@suse.de>
23661
23662 PR tree-optimization/66142
23663 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23664 values better in memcpy destination handling. Handle non-aliasing
23665 we discover here.
23666
23667 2015-05-28 Lawrence Velázquez <vq@larryv.me>
23668
23669 PR target/63810
23670 * config/darwin-c.c (version_components): New global enum.
23671 (parse_version, version_as_legacy_macro)
23672 (version_as_modern_macro, macosx_version_as_macro): New functions.
23673 (version_as_macro): Remove.
23674 (darwin_cpp_builtins): Use new function.
23675
23676 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
23677
23678 * builtins.c (expand_builtin_acc_on_device): Mark parameters
23679 with ATTRIBUTE_UNUSED.
23680
23681 2015-05-28 Julian Brown <julian@codesourcery.com>
23682
23683 PR libgomp/65742
23684
23685 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23686 sequence for !ACCEL_COMPILER.
23687
23688 2015-05-28 Nick Clifton <nickc@redhat.com>
23689
23690 * config/rx/rx.c (push_regs): New function. Extracts code from...
23691 (rx_expand_prologue): ... here. Use push_regs to push even small
23692 spans of registers.
23693 (pop_regs): New function.
23694 (rx_expand_epilogue): Use pop_regs to pop even small spans of
23695 registers.
23696
23697 2015-05-28 Richard Biener <rguenther@suse.de>
23698
23699 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23700 member.
23701 (SLP_INSTANCE_BODY_COST_VEC): Remove.
23702 (vect_update_slp_costs_according_to_vf): Likewise.
23703 (vect_slp_analyze_operations): Update prototype.
23704 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23705 vect_update_slp_costs_according_to_vf, adjust.
23706 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23707 (vect_analyze_slp_cost_1): Likewise.
23708 (vect_analyze_slp_cost): Likewise. Properly deal with
23709 widening reduction ops. Commit body costs.
23710 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
23711 cost for loops from here.
23712 (vect_slp_analyze_operations): But do it from here when
23713 the vectorization factor is known and stmts are analyzed.
23714 (vect_bb_vectorization_profitable_p): Simplify.
23715 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23716 (vect_update_slp_costs_according_to_vf): Remove.
23717
23718 2015-05-27 Magnus Granberg <zorry@gentoo.org>
23719 H.J. Lu <hongjiu.lu@intel.com>
23720
23721 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23722 (BUILD_CFLAGS): Likewise.
23723 (BUILD_CXXFLAGS): Likewise.
23724 (LINKER): Add @NO_PIE_FLAG@.
23725 (BUILD_LDFLAGS): Likewise.
23726 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23727 --enable-default-pie.
23728 * common.opt (fPIE): Initialize to -1.
23729 (fpie): Likewise.
23730 (no-pie): New option.
23731 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23732 * configure.ac: Add --enable-default-pie.
23733 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
23734 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
23735 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
23736 * gcc.c (NO_PIE_SPEC): New.
23737 (PIE_SPEC): Likewise.
23738 (NO_FPIE1_SPEC): Likewise.
23739 (FPIE1_SPEC): Likewise.
23740 (NO_FPIE2_SPEC): Likewise.
23741 (FPIE2_SPEC): Likewise.
23742 (NO_FPIE2_SPEC): Likewise.
23743 (FPIE_SPEC): Likewise.
23744 (NO_FPIE_SPEC): Likewise.
23745 (NO_FPIC1_SPEC): Likewise.
23746 (FPIC1_SPEC): Likewise.
23747 (NO_FPIC2_SPEC): Likewise.
23748 (FPIC2_SPEC): Likewise.
23749 (NO_FPIC2_SPEC): Likewise.
23750 (FPIC_SPEC): Likewise.
23751 (NO_FPIC_SPEC): Likewise.
23752 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23753 (FPIE1_OR_FPIC1_SPEC): Likewise.
23754 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23755 (FPIE2_OR_FPIC2_SPEC): Likewise.
23756 (NO_FPIE_AND_FPIC_SPEC): Likewise.
23757 (FPIE_OR_FPIC_SPEC): Likewise.
23758 (LD_PIE_SPEC): Likewise.
23759 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
23760 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23761 * config/darwin.h (PIE_SPEC): Renamed to ...
23762 (DARWIN_PIE_SPEC): This.
23763 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23764 * config/darwin9.h (PIE_SPEC): Renamed to ...
23765 (DARWIN_PIE_SPEC): This.
23766 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23767 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23768 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23769 FPIE2_OR_FPIC2_SPEC.
23770 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23771 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23772 * config/sol2.h (ASM_PIC_SPEC): Likewise.
23773 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23774 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23775 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23776 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
23777 * config/m32r/m32r.h (ASM_SPEC): Likewise.
23778 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
23779 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23780 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23781 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
23782 * config/sparc/linux.h (ASM_SPEC): Likewise.
23783 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23784 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
23785 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
23786 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23787 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23788 * config/sparc/sparc.h (ASM_SPEC): Likewise.
23789 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
23790 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
23791 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
23792 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
23793 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
23794 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
23795 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
23796 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
23797 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
23798 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
23799 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
23800 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
23801 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23802 * config/vax/linux.h (ASM_SPEC): Likewise.
23803 * doc/install.texi: Document --enable-default-pie.
23804 * doc/invoke.texi: Document -no-pie.
23805 * config.in: Regenerated.
23806 * configure: Likewise.
23807
23808 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23809
23810 PR rtl-optimization/66168
23811 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
23812 can_move_invariant_reg.
23813
23814 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
23815
23816 PR target/66148
23817 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
23818 REG_EQUAL note when doing insert.
23819
23820 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
23821 instead of "%d" for 'o' operand.
23822
23823 2015-05-27 Nathan Sidwell <nathan@acm.org>
23824
23825 PR c++/66270
23826 * tree.c (build_pointer_type_for_mode): Canonical type does not
23827 inherit can_alias_all.
23828 (build_reference_type_for_mode): Likewise.
23829
23830 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
23831
23832 * expr.h (array_at_struct_end_p): Move to...
23833 (array_ref_element_size): Likewise.
23834 (component_ref_field_offset): Likewise.
23835 * tree.h (array_ref_element_size): ...here.
23836 (array_at_struct_end_p): Likewise.
23837 (component_ref_field_offset): Likewise.
23838 * expr.c (array_ref_element_size): Move to...
23839 (array_ref_low_bound): Likewise.
23840 (array_at_struct_end_p): Likewise.
23841 (array_ref_up_bound): Likewise.
23842 (component_ref_field_offset): Likewise.
23843 * tree.c (array_ref_element_size): ...here.
23844 (array_ref_low_bound): Likewise.
23845 (array_ref_up_bound): Likewise.
23846 (array_at_struct_end_p): Likewise.
23847 (component_ref_field_offset): Likewise.
23848
23849 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23850 Szabolcs Nagy <szabolcs.nagy@arm.com>
23851
23852 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
23853
23854 2015-05-27 Jason Merrill <jason@redhat.com>
23855
23856 PR bootstrap/66304
23857 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
23858 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
23859 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
23860
23861 2015-05-22 Aditya Kumar <hiraditya@msn.com>
23862
23863 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
23864 is true.
23865
23866 * statistics.c (statistics_fini_pass): Print pass name.
23867
23868 2015-05-27 Richard Biener <rguenther@suse.de>
23869
23870 PR tree-optimization/66272
23871 Revert parts of
23872 2014-08-15 Richard Biener <rguenther@suse.de>
23873
23874 PR tree-optimization/62031
23875 * tree-data-ref.c (dr_analyze_indices): Do not set
23876 DR_UNCONSTRAINED_BASE.
23877 (dr_may_alias_p): All indirect accesses have to go the
23878 formerly DR_UNCONSTRAINED_BASE path.
23879 * tree-data-ref.h (struct indices): Remove
23880 unconstrained_base member.
23881 (DR_UNCONSTRAINED_BASE): Remove.
23882
23883 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
23884
23885 * dwarf2out.c: Remove block_map.
23886 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23887 (gen_lexical_block_die): Same.
23888 (dwarf2out_function_decl): Remove block_map use.
23889 (dwarf2out_c_finalize): Same.
23890 * tree-core.h (struct tree_block): Add die field.
23891 * tree.h (BLOCK_DIE): New.
23892
23893 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23894
23895 PR target/65358
23896 * expr.c (memory_load_overlap): New function.
23897 (emit_push_insn): When pushing partial args to the stack would
23898 clobber the register part load the overlapping part into a pseudo
23899 and put it into the hard reg after pushing. Change return type
23900 to bool. Add bool argument.
23901 * expr.h (emit_push_insn): Change return type to bool.
23902 Add bool argument.
23903 * calls.c (expand_call): Cancel sibcall optimization when encountering
23904 partial argument on targets with ARGS_GROW_DOWNWARD and
23905 !STACK_GROWS_DOWNWARD.
23906 (emit_library_call_value_1): Update callsite of emit_push_insn.
23907 (store_one_arg): Likewise.
23908
23909 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23910
23911 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23912
23913 2015-05-27 Martin Liska <mliska@suse.cz>
23914
23915 * Makefile.in: Add additional dependencies related to memory report
23916 enhancement.
23917 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23918 * bitmap.c (struct bitmap_descriptor_d): Remove.
23919 (struct loc): Likewise.
23920 (struct bitmap_desc_hasher): Likewise.
23921 (bitmap_desc_hasher::hash): Likewise.
23922 (bitmap_desc_hasher::equal): Likewise.
23923 (get_bitmap_descriptor): Likewise.
23924 (bitmap_register): User new memory descriptor API.
23925 (register_overhead): Likewise.
23926 (bitmap_find_bit): Register nsearches and search_iter statistics.
23927 (struct bitmap_output_info): Remove.
23928 (print_statistics): Likewise.
23929 (dump_bitmap_statistics): Use new memory descriptor.
23930 * bitmap.h (struct bitmap_usage): New class.
23931 * genmatch.c: Extend header file inclusion.
23932 * genpreds.c: Likewise.
23933 * ggc-common.c (struct ggc_usage): New class.
23934 (struct ggc_loc_desc_hasher): Remove.
23935 (ggc_loc_desc_hasher::hash): Likewise.
23936 (ggc_loc_desc_hasher::equal): Likewise.
23937 (struct ggc_ptr_hash_entry): Likewise.
23938 (struct ptr_hash_hasher): Likewise.
23939 (ptr_hash_hasher::hash): Likewise.
23940 (ptr_hash_hasher::equal): Likewise.
23941 (make_loc_descriptor): Likewise.
23942 (ggc_prune_ptr): Likewise.
23943 (dump_ggc_loc_statistics): Use new memory descriptor.
23944 (ggc_record_overhead): Likewise.
23945 (ggc_free_overhead): Likewise.
23946 (final_cmp_statistic): Remove.
23947 (cmp_statistic): Likewise.
23948 (ggc_add_statistics): Liekwise.
23949 (ggc_prune_overhead_list): Likewise.
23950 * hash-map-traits.h: New file.
23951 * hash-map.h (struct default_hashmap_traits): Move the traits to a
23952 separate header file.
23953 * hash-set.h: Pass memory statistics info to ctor.
23954 * hash-table.c (void dump_hash_table_loc_statistics): New function.
23955 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23956 (hash_table::~hash_table): Register memory release operation.
23957 (hash_table::alloc_entries): Handle memory allocation operation.
23958 (hash_table::expand): Likewise.
23959 * inchash.c (iterative_hash_hashval_t): Move implementation to header
23960 file.
23961 (iterative_hash_host_wide_int): Likewise.
23962 * inchash.h (class hash): Likewise.
23963 * mem-stats-traits.h: New file.
23964 * mem-stats.h: New file.
23965 (mem_location): Add new class.
23966 (mem_usage): Likewise.
23967 (mem_alloc_description): Likewise.
23968 * sese.c: Add new header file inclusision.
23969 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23970 and hash_set.
23971 * tree-sra.c: Add new header file inclusision.
23972 * vec.c (struct vec_descriptor): Remove.
23973 (hash_descriptor): Likewise.
23974 (struct vec_usage): Likewise.
23975 (struct ptr_hash_entry): Likewise.
23976 (hash_ptr): Likewise.
23977 (eq_ptr): Likewise.
23978 (vec_prefix::register_overhead): Use new memory descriptor API.
23979 (vec_prefix::release_overhead): Likewise.
23980 (add_statistics): Remove.
23981 (dump_vec_loc_statistics): Use new memory descriptor API.
23982 * vec.h (struct vec_prefix): Likewise.
23983 (va_heap::reserve): Likewise.
23984 (va_heap::release): Likewise.
23985 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
23986
23987 2015-05-27 Richard Biener <rguenther@suse.de>
23988
23989 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
23990 earlier and remove ??? comment.
23991 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
23992 and got called from loop analysis bail out. Always pass the SLP
23993 node to the vectorizable_* functions.
23994 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
23995 the premature SLP check here.
23996 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
23997 detected SLP stmts.
23998 (vect_detect_hybrid_slp_1): Likewise.
23999
24000 2015-05-26 Jeff Law <law@redhat.com>
24001
24002 * combine.c (find_split_point): Verify that the shift count is a
24003 constant when choosing (plus (ashift ...)) as a split point.
24004
24005 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
24006 No functional changes.
24007
24008 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
24009
24010 * ipa-polymorphic-call.c
24011 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
24012 case when call target is already known.
24013
24014 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
24015
24016 PR target/65979
24017 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
24018 take into account the case that operands[1] and operands[2]
24019 are the same register.
24020
24021 2015-05-26 Michael Matz <matz@suse.de>
24022
24023 PR middle-end/66251
24024
24025 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
24026 stores.
24027 (vect_create_vectorized_demotion_stmts): Always set
24028 STMT_VINFO_VEC_STMT, also with SLP.
24029 (vectorizable_store): Handle strided group stores.
24030
24031 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24032
24033 PR target/66049
24034 * config/aarch64/aarch64.md
24035 (*adds_shift_imm_<mode>): New pattern.
24036 (*subs_shift_imm_<mode>): Likewise.
24037 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24038 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
24039 (*add_uxt<mode>_shift2): Likewise.
24040 (*add_uxtsi_shift2_uxtw): Likewise.
24041 (*sub_uxt<mode>_shift2): Likewise.
24042 (*sub_uxtsi_shift2_uxtw): Likewise.
24043
24044 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
24045
24046 * config/rs6000/constraints.md (Y, U): Use match_test.
24047
24048 2015-05-26 Christian Bruel <christian.bruel@st.com>
24049
24050 PR target/52144
24051 * config/arm/arm.c (arm_option_check_internal)
24052 (arm_option_params_internal): Check opts->target_flags to set macros.
24053 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24054 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
24055 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24056 (builtin_define): Replaced with def_or_undef_macro.
24057 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
24058 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
24059 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
24060 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
24061 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
24062 (TARGET_ARM_FEATURE_LDREX_P)
24063 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
24064 * config/arm/arm-c.c (def_or_undef_macro): New function.
24065 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
24066
24067 2015-05-26 Christian Bruel <christian.bruel@st.com>
24068
24069 * c-common.h (builtin_define_with_int_value)
24070 (builtin_define_type_sizeof): Declare.
24071 * c-cppbuiltin.c (builtin_define_with_int_value)
24072 (builtin_define_type_sizeof): Externalize.
24073 (builtin_define_std): Cleanup declaration.
24074 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
24075 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
24076 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
24077 (builtin_define, builtin_assert): New macros.
24078
24079 2015-05-26 Richard Biener <rguenther@suse.de>
24080
24081 PR tree-optimization/66142
24082 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
24083 MEM_REFs for the same base address.
24084
24085 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24086
24087 PR ipa/66181
24088 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
24089
24090 2015-05-26 Jason Merrill <jason@redhat.com>
24091
24092 * configure.ac: Set CXXFLAGS for ISL test.
24093 * configure: Regenerate.
24094
24095 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
24096 strstr and basename.
24097 * configure: Regenerate.
24098
24099 2015-05-26 Richard Biener <rguenther@suse.de>
24100
24101 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
24102 X % C -> X & (C - 1) for C being a power-of two to ...
24103 * match.pd: ... patterns.
24104
24105 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
24106
24107 * match.pd (swapped_tcc_comparison): New operator list.
24108 (-A CMP -B): New simplification.
24109 * fold-const.c (fold_comparison): Remove corresponding code.
24110
24111 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24112
24113 * caller-save.c (init_caller_save): Base temporary register numbers
24114 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
24115 * cfgloopanal.c (init_set_costs): Likewise.
24116 * dojump.c (prefer_and_bit_test): Likewise.
24117 * expr.c (init_expr_target): Likewise.
24118 * ira.c (setup_prohibited_mode_move_regs): Likewise.
24119 * lower-subreg.c (init_lower_subreg): Likewise.
24120 * postreload.c (reload_cse_regs_1): Likewise.
24121
24122 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
24123
24124 * gensupport.h (compute_test_codes): Declare.
24125 * gensupport.c (compute_predicate_codes): Rename to...
24126 (compute_test_codes): ...this. Generalize error message.
24127 (process_define_predicate): Update accordingly.
24128 * genpreds.c (compute_maybe_allows): Delete.
24129 (add_constraint): Use compute_test_codes to determine whether
24130 something can accept a SUBREG, REG or MEM.
24131
24132 2015-05-26 Torvald Riegel <triegel@redhat.com>
24133
24134 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
24135 'memory model' to align with C++11; fix description of memory orders;
24136 fix a few typos.
24137
24138 2015-05-26 Richard Biener <rguenther@suse.de>
24139
24140 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
24141 (vect_analyze_loop_operations): ... here. Remove slp parameter,
24142 detect whether we apply SLP. Remove call to
24143 vect_update_slp_costs_according_to_vf.
24144 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
24145 vect_update_slp_costs_according_to_vf from here. Dispatch
24146 to vect_slp_analyze_operations to analyze SLP stmts.
24147 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
24148 unused bb_vec_info parameter, adjust assert.
24149 (vect_slp_analyze_operations): Pass in the slp instance tree
24150 instead of bb_vec_info.
24151 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
24152 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
24153
24154 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24155
24156 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
24157 Q_REGS. Expand comment.
24158 (REG_CLASS_NAMES): Ditto.
24159 (REG_CLASS_CONTENTS): Ditto.
24160
24161 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
24162
24163 PR target/66274
24164 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24165 when LEGACY_INT_REGNO_P is processed.
24166
24167 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24168
24169 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24170
24171 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24172
24173 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24174 register if not marked dead/unused, before return.
24175
24176 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24177
24178 PR lto/66180
24179 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24180 is set; check for assembler name at LTO time.
24181 (type_in_anonymous_namespace): Remove hacks, check that all
24182 anonymous types are called "<anon>"
24183 (odr_type_p): Simplify; add check for "<anon>"
24184 (odr_subtypes_equivalent): Add odr_type_p check.
24185 * tree.c (need_assembler_name_p): Even anonymous namespace needs
24186 assembler name.
24187
24188 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24189
24190 * ipa-utils.h (method_class_type): Remove.
24191 * cgraphunit.c (walk_polymorphic_call_targets): Use
24192 TYPE_METHOD_BASETYPE.
24193 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24194 on main variants only.
24195 (method_class_type): Remove.
24196 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24197 (build_type_inheritance_graph): Likewise.
24198 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24199 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24200 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24201
24202 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24203
24204 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24205 is_typedef_decl, typedef_variant_p): Constify.
24206 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24207 is_typedef_decl, typedef_variant_p): Constify.
24208
24209 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24210
24211 * defaults.h (gen_tablejump): New function.
24212 (HAVE_tablejump): Add default value.
24213 * expr.c: Adjust.
24214 * stmt.c: Likewise.
24215
24216 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24217
24218 * defaults.h (gen_store_multiple): New function.
24219 (HAVE_store_multiple): Add default value.
24220 * expr.c (move_block_from_reg): Adjust.
24221
24222 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24223
24224 * defaults.h (gen_load_multiple): New function.
24225 (HAVE_load_multiple): Add default value.
24226 * expr.c (move_block_to_reg): Adjust.
24227
24228 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24229
24230 * defaults.h (gen_mem_signal_fence): New function.
24231 (HAVE_mem_signal_fence): Add default value.
24232 * optabs.c: Adjust.
24233
24234 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24235
24236 * defaults.h (gen_memory_barrier): New function.
24237 (HAVE_memory_barrier): Add default value.
24238 * optabs.c: Adjust.
24239
24240 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24241
24242 * defaults.h (gen_mem_thread_fence): New function.
24243 (HAVE_mem_thread_fence): Add default definition.
24244 * optabs.c: Adjust.
24245
24246 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24247
24248 * combine.c (find_split_point): Check the value of HAVE_lo_sum
24249 instead of if it is defined.
24250 (combine_simplify_rtx): Likewise.
24251 * lra-constraints.c (process_address_1): Likewise.
24252 * config/darwin.c: Adjust.
24253 * genconfig.c (main): Always define HAVE_lo_sum.
24254
24255 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24256
24257 * genmatch.c (parser::parse_operation): Reject expanding
24258 operator-list inside 'for'.
24259
24260 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24261
24262 * genmatch.c (parser::parse_for): Reject iterator if used as
24263 operator-list.
24264
24265 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24266
24267 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24268 after end of id-list.
24269
24270 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24271
24272 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24273 we do not try to compute canonical type for type that does not need
24274 alias set.
24275 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24276 FUNCITON_TYPE.
24277 * tree.h (type_with_alias_set_p): New.
24278
24279 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24280
24281 * tree.c (gimple_canonical_types_compatible_p): Do not compare
24282 function attributes.
24283 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24284
24285 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
24286
24287 * Makefile.in (check_gcc_parallelize): Delete.
24288 (lang_checks_parallelized): Update comment.
24289
24290 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
24291
24292 PR rtl-optimization/66237
24293 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24294 location of an "as_a" cast.
24295
24296 2015-05-22 Jeff Law <law@redhat.com>
24297
24298 * config/pa/pa.md (non-canonical shift-add insns): Remove.
24299 (peepholes with non-canonical RTL sources): Remove.
24300 (peepholes for indexed stores of FP regs in integer modes): Match and
24301 generate canonical RTL.
24302
24303 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24304
24305 PR tree-optimization/63387
24306 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24307 ((x ord x) & (y ord y) -> (x ord y),
24308 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24309 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24310 vectors like scalars.
24311
24312 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24313
24314 * convert.c (convert_to_integer, convert_to_vector): Include the
24315 types in the error message.
24316
24317 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24318
24319 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24320 simplifications.
24321
24322 2015-05-22 Jeff Law <law@redhat.com>
24323
24324 * config/pa/pa.md (integer_indexed_store splitters): Use
24325 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
24326 insns -- adjusting the constant 2nd operand accordingly.
24327
24328 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24329 (plus (ashift X log2) Y) if it is a split point.
24330
24331 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24332 out of hppa_legitimize_address to handle both forms of a multiply
24333 by 2, 4 or 8.
24334 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24335 Always generate the ASHIFT variant as the result is not directly
24336 used in a MEM. Update comments and refactor slightly to improve
24337 readability.
24338
24339 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24340
24341 PR target/65491
24342 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24343 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
24344 (aarch64_composite_type_p): Return false if given type and mode are
24345 for a short vector.
24346
24347 2015-05-22 Richard Biener <rguenther@suse.de>
24348
24349 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24350 member.
24351 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24352 patterns when determining whether SLP is pure.
24353 (vect_is_slp_reduction): Remove check for pattern stmts.
24354 (vect_is_simple_reduction_1): Remove dead code.
24355 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24356 (vect_get_and_check_slp_defs): Pass in the stmt number.
24357 Allow the first def in a reduction to be not a pattern stmt when
24358 the rest of the stmts def are patterns.
24359 (vect_build_slp_tree_1): Allow tcc_expression codes like
24360 SAD_EXPR and DOT_PROD_EXPR.
24361 (vect_build_slp_tree): Adjust.
24362 (vect_analyze_slp): Refactor and move BB vect error message ...
24363 (vect_slp_analyze_bb_1): ... here.
24364
24365 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
24366
24367 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24368 for CSWTCH temporary.
24369
24370 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24371
24372 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24373 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
24374 unknown unspecs.
24375
24376 2015-05-22 Richard Biener <rguenther@suse.de>
24377
24378 PR tree-optimization/66251
24379 * tree-vect-stmts.c (vectorizable_conversion): Properly
24380 set STMT_VINFO_VEC_STMT even for the SLP case.
24381
24382 2015-05-22 Marek Polacek <polacek@redhat.com>
24383
24384 * doc/extend.texi: Use @pxref instead of @xref.
24385
24386 2015-05-22 hiraditya <hiraditya@msn.com>
24387
24388 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24389 redundant if.
24390
24391 2015-05-22 Richard Biener <rguenther@suse.de>
24392
24393 PR tree-optimization/65701
24394 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24395 Move peeling cost models into one place. Peel for alignment
24396 for single loads only if an aligned load is cheaper than
24397 an unaligned load.
24398
24399 2015-05-22 Marek Polacek <polacek@redhat.com>
24400
24401 PR c/47043
24402 * doc/extend.texi (Enumerator Attributes): New section.
24403 Document syntax of enumerator attributes.
24404
24405 2015-05-22 Richard Biener <rguenther@suse.de>
24406
24407 * tree-vect-loop.c (get_reduction_op): New function.
24408 (vect_model_reduction_cost): Use it, add reduc_index parameter.
24409 Make ready for BB reductions.
24410 (vect_create_epilog_for_reduction): Use get_reduction_op.
24411 (vectorizable_reduction): Init reduc_index to a valid value.
24412 Adjust vect_model_reduction_cost call.
24413 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24414 operand for reduction defaults. Add SAD_EXPR support.
24415 Assert we have a neutral op for SLP reductions.
24416 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24417 walking pattern stmt ops only recurse to SSA names.
24418
24419 2015-05-22 Richard Biener <rguenther@suse.de>
24420
24421 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24422 assert with guard, remove check on detected reduction.
24423 (vect_recog_sad_pattern): Likewise.
24424 (vect_recog_widen_sum_pattern): Likewise.
24425
24426 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24427
24428 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24429 __always_inline__ attribute.
24430 (vaesdq_u8): Likewise.
24431 (vaesmcq_u8): Likewise.
24432 (vaesimcq_u8): Likewise.
24433 (vsha1cq_u32): Likewise.
24434 (vsha1mq_u32): Likewise.
24435 (vsha1pq_u32): Likewise.
24436 (vsha1h_u32): Likewise.
24437 (vsha1su0q_u32): Likewise.
24438 (vsha1su1q_u32): Likewise.
24439 (vsha256hq_u32): Likewise.
24440 (vsha256h2q_u32): Likewise.
24441 (vsha256su0q_u32): Likewise.
24442 (vsha256su1q_u32): Likewise.
24443 (vmull_p64): Likewise.
24444 (vmull_high_p64): Likewise.
24445
24446 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24447
24448 * final.c (final_scan_insn): Don't check HAVE_peephole with the
24449 preprocessor.
24450 * output.h: Likewise.
24451 * genconfig.c (main): Alwways define HAVE_peephole.
24452 * genpeep.c: Don't emit checks of HAVE_peephole.
24453
24454 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24455
24456 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24457 check HAVE_conditional_move with the preprocessor.
24458
24459 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24460
24461 * genconfig.c (main): Always define HAVE_conditional_move.
24462 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24463 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24464 is defined.
24465
24466 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24467
24468 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24469 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24470 and FRAME_POINTER_REGNUM with the preprocessor.
24471
24472 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24473
24474 * defaults.h: Add default for STACK_PUSH_CODE.
24475 * expr.c: Don't redefine STACK_PUSH_CODE.
24476 * recog.c: Likewise.
24477
24478 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24479
24480 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
24481 sched-deps.c: Use if instead of preprocessor checks with
24482 STACK_GROWS_DOWNWARD.
24483
24484 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24485
24486 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
24487 is defined.
24488 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
24489 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
24490 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
24491 * doc/tm.texi: Regenerate.
24492
24493 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
24494
24495 PR target/66232
24496 * config/i386/constraints.md (Bg): New constraint for GOT memory
24497 operand.
24498 * config/i386/i386.md (*call_got_x32): New pattern.
24499 (*call_value_got_x32): Likewise.
24500 * config/i386/predicates.md (GOT_memory_operand): New predicate.
24501
24502 2015-05-21 Jakub Jelinek <jakub@redhat.com>
24503
24504 PR tree-optimization/66233
24505 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
24506 Simplify.
24507
24508 2015-05-21 Jeff Law <law@redhat.com>
24509
24510 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
24511 than MULT for shadd sequences.
24512
24513 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
24514
24515 * alias.c (alias_stats): New static var.
24516 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
24517 (dump_alias_stats_in_alias_c): New function.
24518 * alias.h (dump_alias_stats_in_alias_c): Declare.
24519 * tree-ssa-alias.c (dump_alias_stats): Call it.
24520
24521 2015-05-08 Michael Matz <matz@suse.de>
24522
24523 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
24524 to strided_p.
24525 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
24526 (STMT_VINFO_STRIDED_P): ... this.
24527 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
24528 (vect_verify_datarefs_alignment): Likewise.
24529 (vect_enhance_data_refs_alignment): Likewise.
24530 (vect_analyze_data_ref_access): Likewise.
24531 (vect_analyze_data_refs): Accept strided stores.
24532 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
24533 (vect_model_load_cost): Adjust for macro rename.
24534 (vectorizable_mask_load_store): Likewise.
24535 (vectorizable_load): Likewise.
24536 (vectorizable_store): Open code strided stores.
24537
24538 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24539
24540 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
24541 Document sqrt_insn.
24542
24543 2015-05-21 Richard Biener <rguenther@suse.de>
24544
24545 PR c++/66211
24546 * match.pd: Guard pattern optimzing (int)(float)int
24547 conversions to apply only on GIMPLE.
24548
24549 2015-05-21 Jeff Law <law@redhat.com>
24550
24551 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
24552 multiply-accumulate/shift-add insn generation.
24553
24554 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24555
24556 PR target/54236
24557 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24558 operands[1] are the same.
24559
24560 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
24561
24562 PR middle-end/66221
24563 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
24564 build_distinct_type_copy to copy bounds.
24565
24566 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
24567
24568 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
24569 Change to unsigned int.
24570
24571 2015-05-20 Jeff Law <law@redhat.com>
24572
24573 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24574 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24575 (pa_shadd_constant_p): Allow constants for shadd insns rather
24576 than valid scaling constants for memory addresses.
24577 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24578 * config/pa/predicates.md (mem_shadd_operand): New predicate.
24579 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24580 (shift-add insns using ASHIFT): New patterns.
24581
24582 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
24583
24584 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24585 feasible.
24586 (fix_up_fall_thru_edges): Likewise.
24587 (fix_crossing_conditional_branches): Likewise. Promote jump targets
24588 from to rtx_insn to rtx_code_label where feasible.
24589 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24590 gen_move_insn (returned type changed to rtx_insn).
24591 * builtins.c (expand_errno_check): Fix arguments of
24592 do_compare_rtx_and_jump (now expects rtx_code_label).
24593 (expand_builtin_acc_on_device): Likewise.
24594 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24595 invert_jump (now exprects rtx_jump_insn).
24596 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24597 (construct_init_block): Use rtx_code_label.
24598 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24599 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24600 calling redirect_jump.
24601 (patch_jump_insn): Likewise.
24602 (redirect_branch_edge): Likewise.
24603 (force_nonfallthru_and_redirect): Likewise.
24604 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24605 when suitable.
24606 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24607 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24608 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24609 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24610 to store the value retured by gen_label_rtx.
24611 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24612 rtx_jump_insn.
24613 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24614 (split_branches): Fix calls of redirect_jump.
24615 * dojump.c (jumpifnot): Promote argument type from rtx to
24616 rtx_code_label.
24617 (jumpifnot_1): Likewise.
24618 (jumpif): Likewise.
24619 (jumpif_1): Likewise.
24620 (do_jump_1): Likewise.
24621 (do_jump): Likewise. Use rtx_code_label when feasible.
24622 (do_jump_by_parts_greater_rtx): Likewise.
24623 (do_jump_by_parts_zero_rtx): Likewise.
24624 (do_jump_by_parts_equality_rtx): Likewise.
24625 (do_compare_rtx_and_jump): Likewise.
24626 * dojump.h: Update function prototypes.
24627 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24628 returns rtx_insn).
24629 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24630 rtx_jump_insn.
24631 (emit_label_before): Likewise.
24632 (emit_jump_insn_after_noloc): Likewise.
24633 (emit_jump_insn_after_setloc): Likewise.
24634 (emit_jump_insn_after): Likewise
24635 (emit_jump_insn_before_setloc): Likewise.
24636 (emit_jump_insn_before): Likewise.
24637 (emit_label_before): Promote return type to rtx_code_label.
24638 (emit_label): Likewise.
24639 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24640 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24641 gen_move_insn.
24642 (emit_stack_restore): Likewise.
24643 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24644 (do_cmp_and_jump): Likewise.
24645 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24646 from rtx to rtx_code_label.
24647 (gen_move_insn_uncast): New function.
24648 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24649 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24650 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24651 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24652 invert_jump_1 and redirect_jump_1.
24653 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24654 do_compare_rtx_and_jump.
24655 (expand_addsub_overflow): Likewise.
24656 (expand_neg_overflow): Likewise.
24657 (expand_mul_overflow): Likewise.
24658 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24659 return value of gen_move_insn.
24660 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24661 * loop-doloop.c (add_test): Use rtx_code_label.
24662 (doloop_modify): Likewise.
24663 (doloop_optimize): Likewise.
24664 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24665 * lra-constraints.c (emit_spill_move): Remove cast of value returned
24666 by gen_move_insn.
24667 (inherit_reload_reg): Add cast when calling dump_insn_slim.
24668 (split_reg): Likewise.
24669 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24670 gen_move_insn.
24671 * optabs.c (expand_binop_directly): Remove casts of values returned by
24672 maybe_gen_insn.
24673 (expand_unop_direct): Likewise.
24674 (expand_abs): Likewise.
24675 (maybe_emit_unop_insn): Likewise.
24676 (maybe_gen_insn): Promote return type to rtx_insn.
24677 * optabs.h: Update prototype of maybe_gen_insn.
24678 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24679 redundant cast.
24680 * recog.c (struct peep2_insn_data): Promote type of insn field to
24681 rtx_insn.
24682 (peep2_reinit_state): Use NULL instead of NULL_RTX.
24683 (peep2_attempt): Remove casts of insn in peep2_insn_data.
24684 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24685 * recog.h (struct insn_gen_fn): Promote return types of function
24686 pointers and operator ().from rtx to rtx_insn.
24687 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24688 (fill_eager_delay_slots): Likewise.
24689 (relax_delay_slots): Likewise.
24690 (make_return_insns): Likewise.
24691 (dbr_schedule): Likewise.
24692 (optimize_skips): Likewise.
24693 (reorg_redirect_jump): Likewise.
24694 (fill_slots_from_thread): Likewise.
24695 * reorg.h: Update prototypes.
24696 * resource.c (find_dead_or_set_registers): Use dyn_cast to
24697 rtx_jump_insn instead of check. Use it's jump_target method.
24698 * rtl.h (rtx_jump_insn::jump_label): Define new method.
24699 (rtx_jump_insn::jump_target): Define new method.
24700 (rtx_jump_insn::set_jump_target): Define new method.
24701 * rtlanal.c (tablejump_p): Promote type of one local variable.
24702 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24703 (sched_analyze_insn): Likewise.
24704 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24705 (print_insn): Likewise.
24706 * stmt.c (label_rtx): Promote return type to rtx_insn.
24707 (force_label_rtx): Likewise.
24708 (jump_target_rtx): Define new function.
24709 (expand_label): Use it, get rid of one cast.
24710 (expand_naked_return): Promote rtx to rtx_code_label.
24711 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24712 (expand_case): Use rtx_code_label instread of rtx where feasible.
24713 (expand_sjlj_dispatch_table): Likewise.
24714 (emit_case_nodes): Likewise.
24715 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
24716 * store-motion.c (insert_store): Make use of new return type of
24717 gen_move_insn and remove a cast.
24718 (replace_store_insn): Likewise.
24719
24720 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
24721
24722 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24723 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24724
24725 2015-05-20 Jeff Law <law@redhat.com>
24726
24727 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24728 dispose of the jump thread path when the jump threading
24729 opportunity is cancelled.
24730
24731 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24732
24733 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24734 when printing the caret character.
24735
24736 2015-05-20 Marek Polacek <polacek@redhat.com>
24737
24738 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24739
24740 2015-05-20 Marek Polacek <polacek@redhat.com>
24741
24742 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24743 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24744 * gimple-fold.c (canonicalize_bool): Likewise.
24745 (same_bool_result_p): Likewise.
24746 * tree-if-conv.c (parse_predicate): Likewise.
24747
24748 2015-05-20 Marek Polacek <polacek@redhat.com>
24749
24750 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24751 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24752
24753 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24754
24755 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24756 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24757 values.
24758
24759 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
24760
24761 * config/mips/mips.h (micromips_globals): Declare.
24762
24763 2015-05-20 David Malcolm <dmalcolm@redhat.com>
24764
24765 * timevar.def (TV_INITIALIZE_RTL): New.
24766 * toplev.c (initialize_rtl): Use an auto_timevar to account this
24767 function's time to TV_INITIALIZE_RTL.
24768
24769 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24770
24771 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24772 gimple_build_nop calls.
24773 (chkp_find_bounds_for_elem): Likewise.
24774 (chkp_get_zero_bounds): Likewise.
24775 (chkp_get_none_bounds): Likewise.
24776 (chkp_get_bounds_by_definition): Likewise.
24777 (chkp_generate_extern_var_bounds): Likewise.
24778 (chkp_get_bounds_for_decl_addr): Likewise.
24779 (chkp_get_bounds_for_string_cst): Likewise.
24780
24781 2015-05-20 Bin Cheng <bin.cheng@arm.com>
24782
24783 PR tree-optimization/65447
24784 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
24785 (dump_use, dump_uses): Support to dump sub use.
24786 (record_use): New parameters to support sub use. Remove call to
24787 dump_use.
24788 (record_sub_use, record_group_use): New functions.
24789 (compute_max_addr_offset, split_all_small_groups): New functions.
24790 (group_address_uses, rewrite_use_address): New functions.
24791 (strip_offset): New declaration.
24792 (find_interesting_uses_address): Call record_group_use.
24793 (add_candidate): New assertion.
24794 (infinite_cost_p): Move definition forward.
24795 (add_costs): Check INFTY cost and return immediately.
24796 (get_computation_cost_at): Clear setup cost and dependent bitmap
24797 for sub uses.
24798 (determine_use_iv_cost_address): Compute cost for sub uses.
24799 (rewrite_use_address_1): Rename from old rewrite_use_address.
24800 (free_loop_data): Free sub uses.
24801 (tree_ssa_iv_optimize_loop): Call group_address_uses.
24802
24803 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24804 Jim Wilson <jim.wilson@linaro.org>
24805
24806 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
24807 new fields loadv and storev.
24808 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
24809 Initialize loadv and storev.
24810 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
24811 (cortexa53_extra_costs): Likewise.
24812 (cortexa57_extra_costs): Likewise.
24813 (xgene1_extra_costs): Likewise.
24814 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
24815 rtx_costs.
24816
24817 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24818
24819 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
24820 storev.
24821 (cortexa8_extra_costs): Likewise.
24822 (cortexa5_extra_costs): Likewise.
24823 (cortexa7_extra_costs): Likewise.
24824 (cortexa12_extra_costs): Likewise.
24825 (cortexa15_extra_costs): Likewise.
24826 (v7m_extra_costs): Likewise.
24827
24828 2015-05-20 Jeff Law <law@redhat.com>
24829
24830 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
24831 instead of open-coded version. Also delete the jump thread created
24832 within this function.
24833
24834 2015-05-20 Alan Modra <amodra@gmail.com>
24835
24836 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
24837 stack adjusting insn. Formatting.
24838 (rs6000_emit_prologue): Track stack adjusting insn, and use of
24839 r12. If possible, emit first -fsplit-stack arg pointer insn
24840 before stack adjust. Don't use r12 to save cr if split-stack.
24841
24842 2015-05-20 Alan Modra <amodra@gmail.com>
24843
24844 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
24845 Define.
24846 (rs6000_supports_split_stack): New function.
24847 * config/rs6000/rs6000.c (machine_function): Add
24848 split_stack_arg_pointer.
24849 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
24850 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
24851 rather than virtual_incoming_args_rtx.
24852 (rs6000_va_start): Likewise.
24853 (split_stack_arg_pointer_used_p): New function.
24854 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
24855 (morestack_ref): New var.
24856 (gen_add3_const, rs6000_expand_split_stack_prologue,
24857 rs6000_internal_arg_pointer, rs6000_live_on_entry,
24858 rs6000_split_stack_space_check): New functions.
24859 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
24860 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
24861 (UNSPECV_SPLIT_STACK_RETURN): Define.
24862 (split_stack_prologue, load_split_stack_limit,
24863 load_split_stack_limit_di, load_split_stack_limit_si,
24864 split_stack_return, split_stack_space_check): New expands and insns.
24865 * config/rs6000/rs6000-protos.h
24866 (rs6000_expand_split_stack_prologue): Declare.
24867 (rs6000_split_stack_space_check): Declare.
24868
24869 2015-05-20 Alan Modra <amodra@gmail.com>
24870
24871 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
24872 (direct_return): Test vrsave_size rather than vrsave_mask.
24873 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
24874 (rs6000_emit_epilogue): Likewise.
24875
24876 2015-05-20 Alan Modra <amodra@gmail.com>
24877
24878 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24879 when not saving registers.
24880 (debug_stack_info): Adjust to omit printing unused offsets,
24881 as before.
24882 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24883 expression.
24884
24885 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24886
24887 PR c++/65835
24888 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24889 value_type to const char *.
24890
24891 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
24892
24893 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24894 to build a biarch toolchain again.
24895
24896 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24897
24898 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24899 or implicit declarations.
24900 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24901 into it.
24902 (get_odr_type): Check type has linkage before adding bases.
24903 (register_odr_type): Check that type has linkage before adding it.
24904 (type_known_to_have_no_deriavations_p): Rename to ..
24905 (type_known_to_have_no_derivations_p): This one.
24906 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24907 (type_known_to_have_no_derivations_p): This one.
24908 * ipa-polymorphic-call.c
24909 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24910 type has linkage.
24911
24912 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24913
24914 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24915 (layout_type): Use RECORD_OR_UNION_TYPE_P.
24916
24917 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24918
24919 * config/s390/s390.c (s390_vector_bool_type_p): New function.
24920 (s390_invalid_binary_op): New function.
24921 (TARGET_INVALID_BINARY_OP): Define macro.
24922
24923 2015-05-19 David Sherwood <david.sherwood@arm.com>
24924
24925 * loop-invariant.c (create_new_invariant): Don't calculate address cost
24926 if mode is not a scalar integer.
24927 (get_inv_cost): Increase computational cost for unused invariants.
24928
24929 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24930
24931 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
24932 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
24933 * config/s390/s390-builtin-types.def: New file.
24934 * config/s390/s390-builtins.def: New file.
24935 * config/s390/s390-builtins.h: New file.
24936 * config/s390/s390-c.c: New file.
24937 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24938 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24939 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24940 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24941 prototypes.
24942 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24943 Include.
24944 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24945 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24946 variable definitions.
24947 (s390_const_operand_ok): New function.
24948 (s390_expand_builtin): Rewrite.
24949 (s390_init_builtins): New function.
24950 (s390_handle_vectorbool_attribute): New function.
24951 (s390_attribute_table): Add s390_vector_bool attribute.
24952 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24953 (s390_branch_condition_mask): Generate masks for new modes.
24954 (s390_expand_vec_compare_cc): New function.
24955 (s390_mangle_type): Add mangling for vector bool types.
24956 (enum s390_builtin): Remove.
24957 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24958 efpc builtins.
24959 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24960 s390_cpu_cpp_builtins.
24961 (REGISTER_TARGET_PRAGMAS): New macro.
24962 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24963 (insn_cmp mode attribute): Add new CC modes.
24964 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24965 (lcbb): New pattern definition.
24966 * config/s390/s390intrin.h: Include vecintrin.h.
24967 * config/s390/t-s390: New file.
24968 * config/s390/vecintrin.h: New file.
24969 * config/s390/vector.md: Include vx-builtins.md.
24970 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24971 support.
24972
24973 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24974
24975 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24976 CCVFHE.
24977 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24978 (s390_select_ccmode): Likewise.
24979 (s390_canonicalize_comparison): Swap operands if necessary.
24980 (s390_expand_vec_compare_scalar): Expand DFmode compare using
24981 single element vector instructions.
24982 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
24983 (s390_branch_condition_mask): Generate CC masks for the new modes.
24984 * config/s390/s390.md (v0, vf, vd): New mode attributes.
24985 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
24986 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
24987 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
24988 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
24989 (*extend<DSF:mode><BFP:mode>2): New insn definition.
24990 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
24991 (extend<DSF:mode><BFP:mode>2): Turn into expander.
24992 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
24993 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
24994 (sqrt<mode>2): Add vector instruction.
24995
24996 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24997
24998 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
24999 constraints.
25000 * config/s390/predicates.md (const0_operand, constm1_operand)
25001 (constable_operand): Accept vector operands.
25002 * config/s390/s390-modes.def: Add supported vector modes.
25003 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
25004 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
25005 (s390_bytemask_vector_p, s390_expand_vec_strlen)
25006 (s390_expand_vec_compare, s390_expand_vcond)
25007 (s390_expand_vec_init): Add prototypes.
25008 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
25009 (s390_vector_mode_supported_p): New function.
25010 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
25011 (s390_contiguous_bitmask_vector_p): New function.
25012 (s390_bytemask_vector_p): New function.
25013 (s390_split_ok_p): Vector regs don't work either.
25014 (regclass_map): Add VEC_REGS.
25015 (s390_legitimate_constant_p): Handle vector constants.
25016 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
25017 (legitimate_reload_vector_constant_p): New function.
25018 (s390_preferred_reload_class): Handle CONST_VECTOR.
25019 (s390_reload_symref_address): Likewise.
25020 (s390_secondary_reload): Vector memory instructions only support
25021 short displacements. Rename reload*_nonoffmem* to reload*_la*.
25022 (s390_emit_ccraw_jump): New function.
25023 (s390_expand_vec_strlen): New function.
25024 (s390_expand_vec_compare): New function.
25025 (s390_expand_vcond): New function.
25026 (s390_expand_vec_init): New function.
25027 (s390_dwarf_frame_reg_mode): New function.
25028 (print_operand): Handle addresses with 'O' and 'R' constraints.
25029 (NR_C_MODES, constant_modes): Add vector modes.
25030 (s390_output_pool_entry): Handle vector constants.
25031 (s390_hard_regno_mode_ok): Handle vector registers.
25032 (s390_class_max_nregs): Likewise.
25033 (s390_cannot_change_mode_class): New function.
25034 (s390_invalid_arg_for_unprototyped_fn): New function.
25035 (s390_function_arg_vector): New function.
25036 (s390_function_arg_float): Remove size variable.
25037 (s390_pass_by_reference): Handle vector arguments.
25038 (s390_function_arg_advance): Likewise.
25039 (s390_function_arg): Likewise.
25040 (s390_return_in_memory): Vector values are returned in a VR if
25041 possible.
25042 (s390_function_and_libcall_value): Handle vector arguments.
25043 (s390_gimplify_va_arg): Likewise.
25044 (s390_call_saved_register_used): Consider the arguments named.
25045 (s390_conditional_register_usage): Disable v16-v31 for non-vec
25046 targets.
25047 (s390_preferred_simd_mode): New function.
25048 (s390_support_vector_misalignment): New function.
25049 (s390_vector_alignment): New function.
25050 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
25051 (TARGET_VECTOR_MODE_SUPPORTED_P)
25052 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
25053 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25054 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
25055 (TARGET_VECTOR_ALIGNMENT): Define target macro.
25056 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
25057 (FIRST_PSEUDO_REGISTER): Increase value.
25058 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
25059 (VECTOR_REG_P): Define macros.
25060 (FIXED_REGISTERS, CALL_USED_REGISTERS)
25061 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
25062 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
25063 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
25064 Add vector registers.
25065 (CANNOT_CHANGE_MODE_CLASS): Call C function.
25066 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
25067 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
25068 memory.
25069 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
25070 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
25071 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
25072 (VR*_REGNUM): New constants.
25073 (ALL): New mode iterator.
25074 (INTALL): Remove mode iterator.
25075 Include vector.md.
25076 (movti): Implement TImode moves for VRs.
25077 Disable TImode splitter for VR targets.
25078 Implement splitting TImode GPR<->VR moves.
25079 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
25080 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
25081 reload<mode>_la_in, reload<mode>_la_out.
25082 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
25083 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
25084 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
25085 (mov<mode> SF SD): Prefer lder, lde for loading.
25086 Add lrl and strl instructions.
25087 Add vector instructions.
25088 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
25089 Call s390_expand_vec_strlen on z13.
25090 (*cc_to_int): Change predicate to nonimmediate_operand.
25091 (addti3): Rename to *addti3. New expander.
25092 (subti3): Rename to *subti3. New expander.
25093 * config/s390/vector.md: New file.
25094
25095 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25096
25097 * common/config/s390/s390-common.c (processor_flags_table): Add
25098 z13.
25099 * config.gcc: Add z13.
25100 * config/s390/s390-opts.h (enum processor_type): Add
25101 PROCESSOR_2964_Z13.
25102 * config/s390/s390.c (s390_adjust_priority): Check for
25103 PROCESSOR_2964_Z13.
25104 (s390_reorg): Likewise.
25105 (s390_sched_reorder): Likewise.
25106 (s390_sched_variable_issue): Likewise.
25107 (s390_loop_unroll_adjust): Likewise.
25108 (s390_option_override): Likewise. Default to -mvx when available.
25109 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
25110 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
25111 (TARGET_VX_ABI): Define macros.
25112 macros.
25113 (TARGET_DEFAULT): Add MASK_OPT_VX.
25114 * config/s390/s390.md ("cpu" attribute): Add z13.
25115 ("cpu_facility" attribute): Add vec.
25116 * config/s390/s390.opt (processor_type): Add z13.
25117 (mvx): New options.
25118 * doc/invoke.texi: Add z13 option for -march.
25119
25120 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25121
25122 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
25123 mode check to make sure that only scalar integer values are
25124 accepted.
25125
25126 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
25127
25128 * tree.c (verify_type_variant): Fix #undef.
25129 (gimple_canonical_types_compatible_p): Move here from lto.c
25130 (verify_type): Verify TYPE_CANONICAL compatibility.
25131 * tree.h (gimple_canonical_types_compatible_p): Declare.
25132
25133 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25134
25135 PR middle-end/66199
25136 * tree.h (OMP_TEAMS_COMBINED): Define.
25137 * gimplify.c (enum gimplify_omp_var_data): Add
25138 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
25139 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
25140 (omp_notice_variable): Accept both ORT_TEAMS
25141 and ORT_COMBINED_TEAMS. Don't recurse if
25142 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
25143 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
25144 GOVD_FIRSTPRIVATE.
25145 (omp_no_lastprivate): New function.
25146 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
25147 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
25148 notice_outer and set appropriate bits, otherwise make
25149 sure default(none) combined constructs won't complain.
25150 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
25151 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
25152 omp_no_lastprivate either remove the clause or turn it
25153 into OMP_CLAUSE_PRIVATE.
25154 (gimplify_omp_for): Fix up handling of implicit
25155 lastprivate or linear iterators.
25156 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
25157 ORT_COMBINED_TEAMS.
25158 * omp-low.c (lower_omp_for_lastprivate): For combined
25159 for simd use fd.loop.n2 from the for rather than simd.
25160
25161 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25162
25163 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25164 instead of gen_rtx_raw_REG.
25165 (cris_expand_epilogue): Likewise.
25166 * config/microblaze/microblaze.c (microblaze_classify_address):
25167 Likewise.
25168 * config/sparc/sparc.md: Likewise.
25169
25170 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
25171
25172 * config/alpha/alpha.c (alpha_legitimize_reload_address)
25173 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25174 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25175 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25176 Use CASE_CONST_SCALAR_INT.
25177 (print_operand) <case 'M'>: Use mode_width_operand to check the
25178 value of the constant.
25179 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25180 * config/alpha/predicates.md (input_operand): Use general_operand
25181 instead of match_code as operand check.
25182 (symbolic_operand): Use match_code with subexpression digits.
25183 * config/alpha/constraints.md (Q): Ditto.
25184
25185 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25186
25187 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25188
25189 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25190
25191 * config/s390/s390.c (s390_secondary_reload): Fix check for
25192 load/store relative.
25193
25194 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25195
25196 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
25197 alternative_mask to uint64_t.
25198
25199 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25200
25201 PR tree-optimization/66187
25202 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25203 Pass TYPE_SIGN to tree_int_cst_min_precision. If
25204 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25205
25206 2015-05-19 David Malcolm <dmalcolm@redhat.com>
25207
25208 * diagnostic.c (diagnostic_report_current_module): Strengthen
25209 local "new_map" from const line_map * to
25210 const line_map_ordinary *.
25211 * genmatch.c (error_cb): Likewise for local "map".
25212 (output_line_directive): Likewise for local "map".
25213 * input.c (expand_location_1): Likewise for local "map".
25214 Pass NULL rather than &map to
25215 linemap_unwind_to_first_non_reserved_loc, since the value is never
25216 read from there, and the value written back not read from here.
25217 (is_location_from_builtin_token): Strengthen local "map" from
25218 const line_map * to const line_map_ordinary *.
25219 (dump_location_info): Strengthen locals "map" from
25220 line_map *, one to const line_map_ordinary *, the other
25221 to const line_map_macro *.
25222 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25223 const line_map * to const line_map_macro *.
25224 (maybe_unwind_expanded_macro_loc): Add a call to
25225 linemap_check_macro when writing to the "map" field of the
25226 loc_map_pair.
25227 Introduce local const line_map_ordinary * "ord_map", using it in
25228 place of "map" in the part of the function where we know we have
25229 an ordinary map. Strengthen local "m" from const line_map * to
25230 const line_map_ordinary *.
25231
25232 2015-05-19 Nick Clifton <nickc@redhat.com>
25233
25234 PR target/66156
25235 * config/msp430/msp430.md (zero_extendhisi2): Add support for
25236 separate source and destination registers.
25237
25238 2015-05-19 Richard Biener <rguenther@suse.de>
25239
25240 PR tree-optimization/66165
25241 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25242 for no load permutation.
25243
25244 PR tree-optimization/66185
25245 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25246 when building the SLP node from scalars.
25247
25248 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25249 Tristan Gingold <gingold@adacore.com>
25250
25251 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25252 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25253 (expand_stack_restore): Call record_new_stack_level.
25254 (expand_stack_save): Do not call do_pending_stack_adjust.
25255 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25256 * calls.c (expand_call): Call record_new_stack_level for alloca.
25257 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25258 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25259 (update_sjlj_context): New global function.
25260 * except.h (update_sjlj_context): Declare.
25261 * explow.c (record_new_stack_level): New global function.
25262 (allocate_dynamic_stack_space): Call record_new_stack_level.
25263 * explow.h (record_new_stack_level): Declare.
25264 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25265 * cfgrtl.c (duplicate_insn_chain): Likewise.
25266
25267 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25268
25269 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25270 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25271 STACK_GROWS_DOWNWARD as normal if.
25272 (expand_call): Likewise.
25273
25274 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
25275
25276 PR target/54236
25277 * config/sh/sh.md (*round_int_even): New insn_and_split and
25278 accompanying new unnamed split.
25279
25280 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25281
25282 * bitmap.c (bitmap_set_range): Handle count==1 specially.
25283 (bitmap_clear_range): Likewise.
25284 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25285 bitmap_set_range unconditionally.
25286 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25287 * df-scan.c (df_mark_reg): Likewise.
25288 * haifa-sched.c (setup_ref_regs): Likewise.
25289 * sched-rgn.c (update_live_1): Likewise.
25290
25291 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25292
25293 * regs.h (END_HARD_REGNO): Delete.
25294 (END_REGNO): Move to...
25295 * rtl.h: ...here.
25296 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25297 * caller-save.c (mark_set_regs): Likewise.
25298 * combine.c (move_deaths, distribute_notes): Likewise.
25299 * cse.c (invalidate, invalidate_for_call): Likewise.
25300 * df-scan.c (df_ref_record): Likewise.
25301 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25302 (record_last_reg_set_info): Likewise.
25303 * reg-stack.c (convert_regs_exit): Likewise.
25304 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25305 * resource.c (update_live_status): Likewise.
25306 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25307
25308 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25309
25310 * rtl.h (reg_info): Add an nregs field.
25311 (REG_NREGS): Use it.
25312 (SET_REGNO_RAW): Delete.
25313 (set_regno_raw): New function.
25314 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25315 (END_REGNO): Redefine in terms of REG_NREGS.
25316 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25317 SET_REGNO_RAW.
25318 * emit-rtl.c (set_mode_and_regno): Likewise.
25319 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25320 instead of SET_REGNO_RAW.
25321
25322 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25323
25324 * rtl.h (PUT_MODE_RAW): New macro.
25325 (PUT_REG_NOTE_KIND): Use it.
25326 (set_mode_and_regno): Declare.
25327 (gen_raw_REG): Change regno to "unsigned int".
25328 (gen_rtx_REG): Change "unsigned" to "unsigned int".
25329 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25330 use set_mode_and_regno to change the mode of registers.
25331 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25332 * emit-rtl.c (set_mode_and_regno): New function.
25333 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
25334 * caller-save.c (reg_save_code): Use set_mode_and_regno.
25335 * expr.c (init_expr_target): Likewise.
25336 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25337 * postreload.c (reload_cse_simplify_operands): Likewise.
25338
25339 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25340
25341 * caller-save.c (init_caller_save): Use word_mode and
25342 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25343 * expr.c (init_expr_target): Likewise.
25344 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25345 * postreload.c (reload_cse_regs_1): Likewise.
25346
25347 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25348
25349 * rtl.def (REG): Change format to "r".
25350 * rtl.h (rtunion): Remove rt_reg.
25351 (reg_info): New structure.
25352 (rtx_def): Add reg field to main union.
25353 (X0REGATTR): Delete.
25354 (REG_CHECK): New macro.
25355 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25356 * rtl.c (rtx_format): Document "r".
25357 (rtx_code_size): Handle REG specially.
25358 * gengenrtl.c (special_format): Return true for formats
25359 that include 'r'.
25360 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25361 Deal with REG_ATTRS after the field loop.
25362 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25363 * expmed.c (init_expmed): Call gen_raw_REG instead of
25364 gen_rtx_raw_REG.
25365 * expr.c (init_expr_target): Likewise.
25366 * regcprop.c (maybe_mode_change): Likewise.
25367 * varasm.c (make_decl_rtl): Likewise.
25368 * final.c (leaf_renumber_regs_insn): Return early after
25369 handling REGs.
25370 * genemit.c (gen_exp): Handle 'r' fields.
25371 * genpeep.c (match_rtx): Likewise.
25372 * gensupport.c (subst_pattern_match): Likewise.
25373 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25374 (alter_constraints, subst_dup): Likewise.
25375 * read-rtl.c (read_rtx_code): Likewise.
25376 * print-rtl.c (print_rtx): Likewise.
25377 * genrecog.c (find_operand, find_matching_operand): Likewise.
25378 (validate_pattern, match_pattern_2): Likewise.
25379 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25380 (rtx_test::regno_field): New function.
25381 (operator ==, safe_to_hoist_p, transition_parameter_type)
25382 (parameter_type_string, print_parameter_value)
25383 (print_nonbool_test, print_test): Handle new enum values.
25384 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25385 * lra-constraints.c (operands_match_p): Likewise.
25386
25387 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25388
25389 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25390 Change type of new_regno to unsigned int.
25391 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25392 new_regno to unsigned int.
25393 (df_ref_change_reg_with_loc): Remove old_regno parameter.
25394 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
25395 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25396 (SET_REGNO_RAW): Add space after ",".
25397
25398 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25399
25400 * rtl.h (REG_NREGS): New macro
25401 * alias.c (record_set): Use it.
25402 * cfgcleanup.c (mark_effect): Likewise.
25403 * combine.c (likely_spilled_retval_1): Likewise.
25404 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25405 (move_deaths, distribute_notes): Likewise.
25406 * cselib.c (cselib_record_set): Likewise.
25407 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25408 * df-scan.c (df_mark_reg): Likewise.
25409 * dse.c (look_for_hardregs): Likewise.
25410 * dwarf2out.c (reg_loc_descriptor): Likewise.
25411 (multiple_reg_loc_descriptor): Likewise.
25412 * expr.c (write_complex_part, read_complex_part): Likewise.
25413 (emit_move_complex): Likewise.
25414 * haifa-sched.c (setup_ref_regs): Likewise.
25415 * ira-lives.c (mark_hard_reg_live): Likewise.
25416 * lra.c (lra_set_insn_recog_data): Likewise.
25417 * mode-switching.c (create_pre_exit): Likewise.
25418 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25419 (reload_combine_recognize_pattern): Likewise.
25420 (reload_combine_note_use, move2add_record_mode): Likewise.
25421 (reload_cse_move2add): Likewise.
25422 * reg-stack.c (subst_stack_regs_pat): Likewise.
25423 * regcprop.c (kill_value, copy_value): Likewise.
25424 (copyprop_hardreg_forward_1): Likewise.
25425 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25426 (build_def_use): Likewise.
25427 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25428 (deps_analyze_insn): Likewise.
25429 * sched-rgn.c (check_live_1, update_live_1): Likewise.
25430 * sel-sched.c (count_occurrences_equiv): Likewise.
25431 * valtrack.c (dead_debug_insert_temp): Likewise.
25432
25433 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25434
25435 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25436 * dse.c (note_add_store): Likewise.
25437 * ira-lives.c (mark_hard_reg_dead): Likewise.
25438 * loop-invariant.c (mark_reg_store): Likewise.
25439 (mark_reg_death): Likewise.
25440 * postreload.c (reload_combine): Likewise.
25441 (reload_combine_note_store): Likewise.
25442 (reload_combine_note_use): Likewise.
25443 * recog.c (peep2_reg_dead_p): Likewise.
25444
25445 2015-05-19 Alan Modra <amodra@gmail.com>
25446
25447 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25448 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25449 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25450 unused predicates.
25451 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25452 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
25453 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25454 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25455
25456 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
25457
25458 * config/mips/mips.md (JOIN_MODE): New mode iterator.
25459 (join2_load_Store<JOIN_MODE:mode>): New pattern.
25460 (join2_loadhi): Likewise.
25461 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25462 load-load and store-stores.
25463 * config/mips/mips.opt (mload-store-pairs): New option.
25464 (TARGET_LOAD_STORE_PAIRS): New macro.
25465 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25466 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25467 * config/mips/mips.c (mips_load_store_bonding_p): New function.
25468
25469 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
25470
25471 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25472 explicit swaps.
25473 * dojump.c (do_compare_rtx_and_jump): Likewise.
25474 * expmed.c (emit_store_flag_1): Likewise.
25475 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
25476 * final.c (sprint_ul): Use std::reverse for reversing a string.
25477 * fold-const.c (extract_muldiv_1): Use std::swap.
25478 * genmodes.c (emit_mode_int_n): Likewise.
25479 * ifcvt.c (dead_or_predicable): Likewise.
25480 * ira-build.c (ira_merge_live_ranges): Likewise.
25481 (swap_allocno_copy_ends_if_necessary): Likewise.
25482 * ira.c (ira_setup_alts): Likewise.
25483 * loop-iv.c (iv_analyze_expr): Likewise.
25484 (implies_p): Likewise.
25485 (canon_condition): Likewise.
25486 * lra-constraints.c (swap_operands): Likewise.
25487 * lra-lives.c (lra_merge_live_ranges): Likewise.
25488 * omega.c (swap): Remove.
25489 (bswap): Remove.
25490 (omega_unprotect_1): Use std::swap.
25491 (omega_solve_geq): Likewise.
25492 * optabs.c (expand_binop_directly): Likewise.
25493 (expand_binop): Likewise.
25494 (emit_conditional_move): Likewise.
25495 (emit_conditional_add): Likewise.
25496 * postreload.c (reload_cse_simplify_operands): Likewise.
25497 * reg-stack.c (emit_swap_insn): Likewise.
25498 (swap_to_top): Likewise.
25499 (compare_for_stack_reg): Likewise.
25500 (subst_asm_stack_regs): Likewise.
25501 * reload.c (find_reloads): Likewise.
25502 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
25503 * sel-sched.c (invoke_reorder_hooks): Likewise.
25504 (create_block_for_bookkeeping): Likewise.
25505 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
25506 (lambda_matrix_right_hermite): Use std::swap.
25507 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
25508 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
25509 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
25510 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
25511 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
25512 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
25513 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
25514 * tree-vrp.c (compare_ranges): Likewise.
25515 * var-tracking.c (add_with_sets): Likewise.
25516 (vt_find_locations): Likewise.
25517
25518 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
25519
25520 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
25521 pie executables.
25522 (FBSD_ENDFILE_SPEC): Likewise.
25523 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
25524 config/freebsd-spec.h.
25525 (ENDFILE_SPEC): Likewise.
25526
25527 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
25528 Richard Henderson <rth@redhat.com>
25529
25530 PR target/57032
25531 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
25532 Check for a memory location that is not a reference (using an AND)
25533 to an unaligned location here.
25534 * config/alpha/predicates.md (normal_memory_operand): Remove.
25535
25536 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
25537
25538 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
25539 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
25540
25541 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
25542
25543 * config/mips/mips.c (micromips_globals): New variable.
25544 (mips_set_compression_mode): Save and reinitialize target-dependent
25545 state for microMIPS.
25546
25547 2015-05-18 Martin Liska <mliska@suse.cz>
25548
25549 * dbgcnt.def: Add new counter.
25550 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
25551
25552 2015-05-18 Martin Liska <mliska@suse.cz>
25553
25554 * dbgcnt.def: Sort counters.
25555 * opts.c (common_handle_option): Do not compile if
25556 -fdbg-cnt-list is enabled.
25557
25558 2015-05-18 Tom de Vries <tom@codesourcery.com>
25559
25560 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25561 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
25562 address operator to va_list operand.
25563 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
25564 unconditionally.
25565 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
25566 operand.
25567 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
25568 * config/s390/s390.c (s390_gimplify_va_arg): Same.
25569 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25570
25571 2015-05-18 Tom de Vries <tom@codesourcery.com>
25572
25573 * tree-ssa-tail-merge.c: Fix whitespace.
25574
25575 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
25576
25577 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25578 cortex-a17, and cortex-a17.cortex-a7.
25579
25580 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
25581
25582 PR target/54236
25583 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25584
25585 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
25586
25587 PR target/66174
25588 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25589 QImode inner modes for TARGET_AVX512BW. Force mask operand
25590 to a register for AVX512F modes.
25591
25592 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25593
25594 * toplev.c (emit_debug_global_declarations): Do not output debug info
25595 when doing slim LTO objects.
25596
25597 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25598
25599 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25600 odr_types_equivalent_p): Declare.
25601 (odr_type_p): Use gcc_checking_assert.
25602 (type_in_anonymous_namespace_p) Declare.
25603 (type_with_linkage_p): Declare.
25604 * common.opt (Wlto-type-mismatch): New warning.
25605 * ipa-devirt.c (compound_type_base): New function.
25606 (odr_or_derived_type_p): New function.
25607 (odr_types_equivalent_p): New function.
25608 (add_type_duplicate): Simplify.
25609 (type_with_linkage_p): Add hack to prevent false positives on C types
25610 (type_in_anonymous_namespace_p): Likewise.
25611 * tree.c (need_assembler_name_p): Use type_with_linkage.
25612 * tree.h (type_in_anonymous_namespace_p): Remove.
25613 * doc/invoke.texi (-Wlto-type-mismatch): Document
25614
25615 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25616
25617 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25618 (verify_type): Verify STRING_FLAG.
25619
25620 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
25621
25622 PR fortran/44054
25623 * tree-pretty-print.c (percent_K_format): Replace locus pointer
25624 with accessor function.
25625 * tree-diagnostic.c (diagnostic_report_current_function): Use
25626 diagnostic_location function.
25627 (maybe_unwind_expanded_macro_loc): Likewise.
25628 (virt_loc_aware_diagnostic_finalizer): Likewise.
25629 (default_tree_printer): Replace locus pointer with accessor function.
25630 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25631 (diagnostic_set_info_translated): Initialize second location.
25632 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25633 (diagnostic_show_locus): Handle two locations. Call
25634 diagnostic_print_caret_line.
25635 (diagnostic_print_caret_line): New.
25636 (default_diagnostic_starter): Use diagnostic_location function.
25637 (diagnostic_report_diagnostic): Use diagnostic_location function.
25638 (verbatim): Do not set text.locus.
25639 * diagnostic.h (struct diagnostic_info): Remove location field.
25640 (struct diagnostic_context): Make caret_chars an array of two.
25641 (diagnostic_location): New inline.
25642 (diagnostic_expand_location): Handle two locations.
25643 (diagnostic_same_line): New inline.
25644 (diagnostic_print_caret_line): Declare.
25645 (CARET_LINE_MARGIN): New constant.
25646 * pretty-print.c (pp_printf): Do not set text.locus.
25647 (pp_verbatim): Do not set text.locus.
25648 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25649 (struct text_info): Replace locus pointer with locations
25650 array. Add accessor functions.
25651
25652 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
25653 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25654
25655 PR target/65768
25656 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25657 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25658 large constants in register instead of splitting them.
25659
25660 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
25661
25662 PR target/66140
25663 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25664 replacements in memory addresses.
25665 (get_unaligned_address): Ditto.
25666
25667 2015-05-16 James Bowman <james.bowman@ftdichip.com>
25668
25669 * config/ft32/*: New files for FT32 port.
25670 * doc/install.texi: Add FT32 information.
25671 * doc/invoke.texi: Add FT32 information.
25672 * doc/md.texi: Add FT32 information.
25673 * doc/contrib.texi: Self added.
25674
25675 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
25676
25677 PR tree-optimization/64454
25678 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25679 (-1 - A -> ~A): Remove unnecessary condition.
25680
25681 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
25682
25683 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25684 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25685 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25686
25687 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
25688
25689 * ipa-chkp.h (chkp_wrap_function): New.
25690 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25691 (chkp_wrap_function_name): New.
25692 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25693 to get wrapper name.
25694 * lto-cgraph.c: Include ipa-chkp.h.
25695 (input_cgraph_1): Avoid alias chain for wrappers.
25696
25697 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25698
25699 PR middle-end/66134
25700 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25701 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25702
25703 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25704
25705 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25706 (AARCH64_FL_SLOWMUL): Delete.
25707 (AARCH64_FL_CRC): Redefine to 1<<3.
25708 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25709
25710 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25711
25712 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25713 casting.
25714
25715 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25716
25717 * config/alpha/alpha.md (extendqidi2): Use general_operand
25718 instead of some_operand for operand[1] predicate.
25719 (extendhidi2): Ditto.
25720 (cbranchdi4): Use general_operand instead of some_operand
25721 for operand[1] and operands[2] predicates.
25722 (cstoredi4): Ditto.
25723 * config/alpha/predicates.md (some_operand): Remove unused predicate.
25724 (some_ni_operand): Ditto.
25725
25726 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25727
25728 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25729 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
25730 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25731 low part of the constant using alpha_emit_set_const_1.
25732 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25733
25734 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
25735
25736 * varasm.c (output_constant_pool_1): Pass down alignment from
25737 constant pool entry's descriptor to output_constant_pool_2.
25738 (output_object_block): Add comment prior to call to
25739 output_constant_pool_1.
25740
25741 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
25742
25743 PR rtl-optimization/65862
25744 * target.def (ira_change_pseudo_allocno_class): New hook.
25745 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25746 value of the hook.
25747 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25748 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25749 hook.
25750 * ira-costs.c (find_costs_and_classes): Call the hook and change
25751 classes when it is necessary.
25752 * doc/tm.texi: Update.
25753
25754 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
25755
25756 * config/i386/i386.md (sibcall_memory): Check that register with
25757 callee address is not also used as one of the arguments, instead
25758 of checking that it is not live after the sibcall.
25759 (sibcall_pop_memory): Ditto.
25760 (sibcall_value_memory): Ditto.
25761 (sibcall_value_pop_memory): Ditto.
25762
25763 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
25764
25765 * generic-match-head.c (types_match): Handle non-types.
25766 * gimple-match-head.c (types_match): Likewise.
25767 * match.pd: Remove unnecessary TREE_TYPE for types_match.
25768
25769 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
25770
25771 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25772 (csneg3<mode>_insn): Enable expansion of pattern.
25773
25774 2015-05-14 Nick Clifton <nickc@redhat.com>
25775
25776 * config/rl78/rl78.c (rl78_select_section): Select the correct
25777 default section based upon the category of the decl.
25778
25779 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25780
25781 PR rtl-optimization/30967
25782 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
25783 destination mode for the cost of scc patterns.
25784
25785 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25786
25787 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
25788 using SWIM248 mode iterator.
25789 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
25790 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
25791 for operand[2] constraint.
25792 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
25793
25794 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25795
25796 PR middle-end/66133
25797 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
25798 make sure it is never noreturn, even when the task body does not
25799 return.
25800 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
25801 right before GIMPLE_OMP_RETURN.
25802 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
25803 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
25804 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
25805
25806 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25807
25808 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
25809 * tree-ssa-math-opts.c: Include params.h
25810 (pow_synth_sqrt_info): New struct.
25811 (representable_as_half_series_p): New function.
25812 (get_fn_chain): Likewise.
25813 (print_nested_fn): Likewise.
25814 (dump_fractional_sqrt_sequence): Likewise.
25815 (dump_integer_part): Likewise.
25816 (expand_pow_as_sqrts): Likewise.
25817 (gimple_expand_builtin_pow): Use above to attempt to expand
25818 pow as series of square roots. Removed now unused variables.
25819
25820 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25821
25822 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
25823 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
25824 Remove *p0 and *p1 arguments. Rewrite function.
25825 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
25826 (alpha_split_const_mov): Update calls to alpha_extract_integer and
25827 alpha_emit_set_long_const.
25828 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
25829 (alpha_output_mi_thunk_osf): Ditto.
25830 * config/alpha/alpha.md (movti): Do not check operands[1]
25831 for CONST_DOUBLE.
25832
25833 2015-05-13 Richard Biener <rguenther@suse.de>
25834
25835 PR tree-optimization/66129
25836 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
25837 commutative.
25838 (vect_schedule_slp_instance): Fix typo.
25839
25840 2015-05-13 David Malcolm <dmalcolm@redhat.com>
25841
25842 * common.opt (fdump-internal-locations): New option.
25843 * input.c: Include diagnostic-core.h.
25844 (get_end_location): New function.
25845 (write_digit): New function.
25846 (write_digit_row): New function.
25847 (dump_location_range): New function.
25848 (dump_labelled_location_range): New function.
25849 (dump_location_info): New function.
25850 * input.h (dump_location_info): New prototype.
25851 * toplev.c (compile_file): Handle flag_dump_locations.
25852
25853 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
25854
25855 * gimple-expr.h (is_gimple_constant): Reorder.
25856 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
25857
25858 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25859
25860 * combine.c (simplify_set): When generating a CC set, if the
25861 source already is in the correct mode, do not wrap it in a
25862 compare. Simplify the rest of that code.
25863
25864 2015-05-13 Richard Biener <rguenther@suse.de>
25865
25866 PR tree-optimization/66123
25867 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
25868 a taken edge.
25869
25870 2015-05-13 Richard Biener <rguenther@suse.de>
25871
25872 PR middle-end/66110
25873 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
25874 specially.
25875 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
25876
25877 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25878
25879 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25880 * aclocal.m4: Regenerated with automake-1.11.6.
25881
25882 2015-05-13 Tom de Vries <tom@codesourcery.com>
25883
25884 PR tree-optimization/66010
25885 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25886 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25887 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
25888 and rval based on do_deref.
25889
25890 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25891
25892 PR target/65103
25893 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25894 link time constants into adress expressions and therefore set
25895 their cost to 0.
25896
25897 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25898
25899 PR target/66112
25900 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25901 Use SWI248 iterator instead of SWI.
25902 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
25903 Use eq_attr "alternative" "0" instead of match_test in
25904 length_immediate attribute computation.
25905 (*mulvhi4, *mulvhi4_1): New define_insns.
25906
25907 PR target/66112
25908 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25909 SIGNED to get precision of non-negative value.
25910
25911 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25912
25913 PR target/66048
25914 * function.c (diddle_return_value_1): Process bounds first.
25915 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25916 register.
25917
25918 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25919
25920 PR rtl-optimization/64616
25921 * loop-invariant.c (can_move_invariant_reg): New.
25922 (move_invariant_reg): Call above new function to decide whether
25923 instruction can just be moved, skipping creation of temporary
25924 register.
25925
25926 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25927
25928 PR target/pr66047.c
25929 * i386.c (ix86_function_sseregparm): Only return -1 if local function
25930 with implied regparm is called from -mno-sse function.
25931 (init_cumulative_args): Output error if ix86_function_sseregparm
25932 return -1 and SSE register would be needed.
25933 (function_arg_advance_32): Likewise.
25934 (function_arg_32): Likewise.
25935 * i386.h (ix86_args): Add decl field.
25936
25937 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25938
25939 PR ipa/65873
25940 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25941 inlines across optimization boundary.
25942
25943 2015-05-12 Jason Merrill <jason@redhat.com>
25944
25945 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25946 string literal and macro name.
25947
25948 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
25949
25950 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25951 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25952 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25953
25954 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25955
25956 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25957 (-Wmisleading-indentation): New option.
25958 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25959
25960 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
25961
25962 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25963 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25964 (alpha_extract_integer): Ditto.
25965 (alpha_legitimate_constant_p): Ditto.
25966 (alpha_split_tmode_pair): Ditto.
25967 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25968 (alpha_expand_mov): Ditto.
25969 (print_operand): Remove handling of 'H' modifier.
25970 <case 'm'>: Remove CONST_DOUBLE handling.
25971 (summarize_insn): Handle CONST_WIDE_INT.
25972 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25973 (anddi3): Ditto.
25974 (movti): Handle CONST_WIDE_INT.
25975 * config/alpha/constraints.md ('H'): Remove constraint definition.
25976 ('G'): Do not match MODE_FLOAT class.
25977 * config/alpha/predicates.md (const0_operand): Also match
25978 const_wide_int.
25979 (non_add_const_operand): Ditto.
25980 (non_zero_const_operand): Ditto.
25981 (some_operand): Ditto.
25982 (input_operand): Ditto. Handle CONST_WIDE_INT.
25983 (and_operand): Do not match const_double.
25984 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
25985
25986 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
25987
25988 PR target/65697
25989 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
25990 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
25991 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
25992 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
25993 is_mm_seq_cst, is_mm_sync): New accessor functions.
25994 * builtins.c (expand_builtin_sync_operation,
25995 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
25996 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
25997 (get_memmodel, expand_builtin_atomic_compare_exchange,
25998 expand_builtin_atomic_load, expand_builtin_atomic_store,
25999 expand_builtin_atomic_clear): Use new accessor routines.
26000 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
26001 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
26002 (maybe_emit_sync_lock_test_and_set): Use new accessors and
26003 MEMMODEL_SYNC_ACQUIRE.
26004 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
26005 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
26006 expand_atomic_store): Use new accessors.
26007 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
26008 * tsan.c (instrument_builtin_call): Update check for memory model beyond
26009 final enum to use MEMMODEL_LAST.
26010 * c-family/c-common.c: Use new accessor for memmodel_base.
26011 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
26012 accessors.
26013 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
26014 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
26015 mem_thread_fence, *dmb): Likewise.
26016 * config/alpha/alpha.c (alpha_split_compare_and_swap,
26017 alpha_split_compare_and_swap_12): Likewise.
26018 * config/arm/arm.c (arm_expand_compare_and_swap,
26019 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
26020 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
26021 atomic_loaddi): Likewise.
26022 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
26023 Likewise.
26024 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
26025 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
26026 use new accessors.
26027 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
26028 atomic_store<mode>, atomic_compare_and_swap<mode>,
26029 atomic_exchange<mode>): Use new accessors.
26030 * config/mips/mips.c (mips_process_sync_loop): Likewise.
26031 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
26032 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
26033 rs6000_post_atomic_barrier): Add new cases.
26034 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
26035 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
26036 (atomic_load<mode>): Add new cases and use new accessors.
26037 (store_quadpti): Add new cases.
26038 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
26039 accessors.
26040 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
26041 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
26042 model, not 8.
26043
26044 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
26045
26046 * ipa-devirt.c (type_with_linkage_p): New function.
26047 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
26048 type has linkage.
26049 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
26050 (can_be_name_hashed_p): Simplify.
26051 (hash_odr_name): Check that type has linkage before checking if it is
26052 anonymous.
26053 (types_same_for_odr): Likewise.
26054 (odr_name_hasher::equal): Likewise.
26055 (odr_subtypes_equivalent_p): Likewise.
26056 (warn_types_mismatch): Likewise.
26057 (get_odr_type): Likewise.
26058 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
26059 * ipa-utils.h (odr_type_p): Move offline.
26060 * tree.c (need_assembler_name_p): Fix handling of types
26061 without linkages.
26062 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
26063
26064 2015-05-12 David Malcolm <dmalcolm@redhat.com>
26065
26066 * timevar.c (timevar_enable): Delete in favor of...
26067 (g_timer): New global.
26068 (struct timevar_def): Move to timevar.h inside class timer.
26069 (struct timevar_stack_def): Likewise.
26070 (timevars): Delete global in favor of field "m_timevars" within
26071 class timer in timevar.h
26072 (stack): Likewise, in favor of field "m_stack".
26073 (unused_stack_instances): Likewise, in favor of field
26074 "m_unused_stack_instances".
26075 (start_time): Likewise, in favor of field "m_start_time".
26076 (get_time): Eliminate check for timevar_enable.
26077 (timer::timer): New function, built from part of timevar_init.
26078 (timevar_init): Rewrite idempotency test from using
26079 "timevar_enable" bool to using dynamic allocation of "g_timer".
26080 Move rest of implementation into timer's constructor.
26081 (timevar_push_1): Rename to...
26082 (timer::push): ...this, adding "m_" prefixes to variables that
26083 are now fields of timer.
26084 (timevar_pop_1): Likewise, rename to...
26085 (timer::pop): ...this, and add "m_" prefixes.
26086 (timevar_start): Replace test for "timevar_enable" with one for
26087 "g_timer", and move bulk of implementation to...
26088 (timer::start): ...here, adding "m_" prefixes.
26089 (timevar_stop): Likewise, from here...
26090 (timer::stop): ...to here.
26091 (timevar_cond_start): Likewise, from here...
26092 (timer::cond_start): ...to here.
26093 (timevar_cond_stop): Likewise, from here...
26094 (timer::cond_stop): ...to here.
26095 (validate_phases): Rename to...
26096 (timer::validate_phases): ...this, and add "m_" prefixes. Make
26097 locals "total" and "tv" const.
26098 (timevar_print): Rename to...
26099 (timer::print): ...this, and add "m_" prefixes. Make locals
26100 "total" and "tv" const. Eliminate test for timevar_enable.
26101 * timevar.h (timevar_enable): Eliminate.
26102 (g_timer): New declaration.
26103 (timevar_push_1): Eliminate.
26104 (timevar_pop_1): Eliminate.
26105 (timevar_print): Eliminate.
26106 (class timer): New class.
26107 (timevar_push): Rewrite to use g_timer.
26108 (timevar_pop): Likewise.
26109 * toplev.c (toplev::~toplev): Likewise.
26110
26111 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
26112
26113 * arm-protos.h (arm_sched_autopref): Delete.
26114 (tune_params): Re-organize, use enums for flag values.
26115 (FUSE_OPS): New macro.
26116 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
26117 (ARM_PREFETCH_BENEFICIAL): Likewise.
26118 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
26119 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
26120 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
26121 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
26122 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
26123 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
26124 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
26125 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
26126 format.
26127 (arm_option_override, thumb2_reorg, arm_print_tune_info)
26128 (aarch_macro_fusion_pair_p): Update uses of current_tune.
26129 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
26130
26131 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
26132
26133 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
26134 "break".
26135
26136 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
26137 Sandra Loosemore <sandra@codesourcery.com>
26138
26139 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
26140 value.
26141 (REG_CLASS_NAMES): Add "IJMP_REGS".
26142 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
26143 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
26144 use new "c" register constraint.
26145 * config/nios2/constraint.md (c): New register constraint
26146 corresponding to IJMP_REGS.
26147
26148 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26149
26150 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
26151 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
26152 define_splits): Delete, revamp, transmogrify into ...
26153 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
26154 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
26155 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
26156 New.
26157
26158 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26159
26160 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26161 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26162
26163 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26164
26165 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26166 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26167 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26168 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26169 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26170 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26171 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26172 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26173 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26174 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26175 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26176 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26177 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26178 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26179 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26180 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26181 and 30 corresponding splitters): Delete.
26182
26183 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26184
26185 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26186 zero_extract.
26187
26188 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26189
26190 * combine.c (recog_for_combine_1): New function, factored out
26191 from recog_for_combine.
26192 (change_zero_ext): New function.
26193 (recog_for_combine): If recog fails, try again with the pattern
26194 modified by change_zero_ext; if that still fails, restore the
26195 pattern.
26196
26197 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26198
26199 * combine.c (get_undo_marker): New function.
26200 (undo_to_marker): New function, largely factored out from ...
26201 (undo_all): ... this. Adjust.
26202
26203 2015-05-12 Richard Biener <rguenther@suse.de>
26204
26205 PR tree-optimization/66101
26206 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26207 fixup if we turn a loop exit edge to a fallthru edge.
26208
26209 2015-05-12 Richard Biener <rguenther@suse.de>
26210
26211 PR tree-optimization/37021
26212 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26213 (SLP_TREE_TWO_OPERATORS): New define.
26214 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26215 SLP_TREE_TWO_OPERATORS.
26216 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26217 SLP node.
26218 (vect_build_slp_tree): Adjust.
26219 (vect_analyze_slp_cost_1): Likewise.
26220 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26221 emitting two vector stmts and mixing the results.
26222
26223 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26224
26225 * call.c (print_z_candidates): Remove dead code.
26226
26227 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26228
26229 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26230 and zEC12_simple_fp.
26231 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26232 to 1.
26233
26234 2015-05-12 Tom de Vries <tom@codesourcery.com>
26235
26236 PR tree-optimization/66010
26237 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26238 ifn_va_arg.
26239 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26240 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
26241 va_lists are passed, and remove corresponding handling.
26242 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
26243 do_deref argument to ifn_va_arg.
26244 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26245 ifn_va_arg.
26246
26247 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26248
26249 PR target/65955
26250 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26251 REG before taking its REGNO.
26252
26253 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26254
26255 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26256 rsp->sign_bit_copies and rsp->nonzero_bits into ...
26257 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
26258 present to get more accurate information about the number of sign bit
26259 copies and non zero bits.
26260
26261 2015-05-12 Richard Biener <rguenther@suse.de>
26262
26263 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26264 do not allow unrolling.
26265
26266 2015-05-11 Richard Henderson <rth@redhat.com>
26267
26268 * config/i386/i386-modes.def (CCP): New.
26269 * config/i386/i386.c (put_condition_code): Handle it.
26270 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26271
26272 2015-05-11 Richard Henderson <rth@redhat.com>
26273
26274 * target.def (md_asm_clobbers): Replace with...
26275 (md_asm_adjust): this.
26276 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26277 (TARGET_MD_ASM_ADJUST): New.
26278 * tm.texi: Rebuild.
26279 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26280 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26281 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26282
26283 * cfgexpand.c (check_operand_nalternatives): Accept vector of
26284 constraints instead of lists of outputs and inputs.
26285 (expand_asm_stmt): Save and restore input_location around the
26286 body of the function. Move asm data into vectors instead of
26287 building tree lists. Generate cleanup sequences as needed,
26288 rather than waiting til the end. Use new md_asm_adjust hook.
26289
26290 * config/vxworks.c: Include vec.h before target.h.
26291 * gimple.c: Likewise.
26292 * incpath.c: Likewise.
26293 * mode-switching.c: Likewise.
26294
26295 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26296 (cris_md_asm_adjust): this.
26297 (TARGET_MD_ASM_CLOBBERS): Remove.
26298 (TARGET_MD_ASM_ADJUST): New.
26299 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26300 (ix86_md_asm_adjust): this.
26301 (TARGET_MD_ASM_CLOBBERS): Remove.
26302 (TARGET_MD_ASM_ADJUST): New.
26303 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26304 (mn10300_md_asm_adjust): this.
26305 (TARGET_MD_ASM_CLOBBERS): Remove.
26306 (TARGET_MD_ASM_ADJUST): New.
26307 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26308 (rs6000_md_asm_adjust): this.
26309 (TARGET_MD_ASM_CLOBBERS): Remove.
26310 (TARGET_MD_ASM_ADJUST): New.
26311 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26312 (visium_md_asm_adjust): this.
26313 (TARGET_MD_ASM_CLOBBERS): Remove.
26314 (TARGET_MD_ASM_ADJUST): New.
26315
26316 2015-05-11 Richard Henderson <rth@redhat.com>
26317
26318 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26319 if noutputs is zero.
26320 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26321
26322 * cfgexpand.c (expand_asm_operands): Merge into...
26323 (expand_asm_stmt): ... here.
26324
26325 * cfgexpand.c (expand_asm_operands): Don't call
26326 resolve_asm_operand_names.
26327 * stmt.c (resolve_asm_operand_names): Clarify block comment.
26328
26329 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
26330
26331 * dwarf2out.c (gen_member_die): Sanity check that we access
26332 TYPE_MAIN_VARIANT for TYPE_METHODS.
26333 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26334 checking TYPE_METHODS.
26335 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26336 if non-null.
26337 (build_distinct_type_copy): Clear TYPE_METHODS.
26338 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26339 (verify_type): Allow TYPE_METHODS to be error_mark_node.
26340 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26341
26342 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
26343
26344 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26345 (emit_pattern_before_setloc): Likewise.
26346
26347 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26348
26349 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26350 for define_peephole2s.
26351 (get_peephole2_pattern): New function.
26352 (main): Use it. Call validate_pattern.
26353
26354 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26355
26356 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26357 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26358 (Last callee saved reg is different for AVR_TINY architecture)
26359
26360 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26361
26362 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26363 when looking for memory references.
26364
26365 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26366
26367 PR target/65753
26368 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26369 via function pointers.
26370
26371 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26372
26373 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26374 indirect call by forcing address into a pseudo with -fno-plt.
26375 * common.opt (flag_plt): New option.
26376 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26377 ([-fno-plt]): Document.
26378
26379 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
26380
26381 PR bootstrap/66105
26382 * config/rs6000/option-defaults.h: Add space between string literal
26383 and macro name.
26384
26385 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
26386
26387 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26388 accross ARM targets.
26389
26390 2015-05-11 Christian Bruel <christian.bruel@st.com>
26391
26392 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26393 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26394
26395 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26396
26397 PR rtl-optimization/66076
26398 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26399 Don't grow the heap array if it is already big enough from a
26400 previous iteration.
26401
26402 2015-05-11 Christian Bruel <christian.bruel@st.com>
26403
26404 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26405 (is_called_in_ARM_mode): Remove.
26406 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26407 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26408 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26409 arm_declare_function_name.
26410
26411 2015-05-11 Christian Bruel <christian.bruel@st.com>
26412
26413 * config/arm/arm.c (arm_option_override): Reoganized and split into :
26414 (arm_option_params_internal); New function.
26415 (arm_option_check_internal): New function.
26416 (arm_option_override_internal): New function.
26417 (thumb_code, thumb1_code): Remove.
26418 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26419 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26420 (thumb_code, thumb1_code): Remove.
26421 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26422
26423 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26424
26425 * config/alpha/alpha.c (alpha_emit_set_const_1)
26426 (alpha_emit_set_long_const, alpha_extract_integer)
26427 (alpha_legitimate_constant_p, alpha_split_const_mov)
26428 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26429 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26430 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26431 HOST_WIDE_INT_1U.
26432 * config/alpha/predicates.md (mode_mask_operand): Do not match
26433 const_double RTX.
26434 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26435 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26436 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26437 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26438 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26439
26440 2015-05-11 Jakub Jelinek <jakub@redhat.com>
26441
26442 PR target/65780
26443 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26444 default_binds_local_p_2.
26445 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26446 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26447
26448 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26449
26450 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26451
26452 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26453
26454 Patch by Richard Biener
26455 * coverage.c (coverage_obj_init): Delay building of type variant
26456 until the type is finished.
26457
26458 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26459
26460 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26461 mismatch between C and C++ type; compoare correctly ARG_TYPES
26462 for non-prototypes and output correctly parameter index for METHOD_TYPE.
26463 (odr_types_equivalent_p): Fix wording of warning about attributes;
26464 it is OK to match prototype and non-prototype.
26465
26466 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26467
26468 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26469 TYPE_ARG_TYPES list.
26470 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26471 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26472
26473 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26474
26475 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
26476 * tree.h (is_lang_specific): Constify.
26477
26478 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
26479
26480 PR tree-optimization/64454
26481 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
26482 Rewrite.
26483
26484 2015-05-08 Jason Merrill <jason@redhat.com>
26485
26486 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
26487 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
26488 config/darwin.h, config/darwin9.h, config/elfos.h,
26489 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
26490 config/microblaze/microblaze.h, config/mips/mips.h,
26491 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
26492 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
26493 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
26494 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
26495 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
26496 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
26497 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
26498 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
26499 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
26500 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
26501 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
26502 between string literal and macro name.
26503
26504 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26505
26506 * jump.c: Change argument types to rtx_insn *.
26507 * rtl.h: Adjust.
26508
26509 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26510
26511 * lra-constraints.c: Change argument type to rtx_insn *.
26512
26513 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26514
26515 * df-problems.c: Change argument type to rtx_insn *.
26516
26517 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26518
26519 * combine.c: Change argument type to rtx_insn *.
26520
26521 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26522
26523 * rtl.h: Adjust.
26524 * rtlanal.c: Change argument type to rtx_insn *.
26525
26526 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26527
26528 * sched-deps.c: Change argument types to rtx_insn *.
26529 * sched-int.h: Adjust.
26530
26531 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26532
26533 * dwarf2cfi.c: Change argument type to rtx_insn *.
26534
26535 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26536
26537 * ira.c (decrease_live_ranges_number): Changetype of local
26538 variable to rtx_insn *.
26539 * recog.c: Change argument types to rtx_insn *.
26540 * recog.h: Adjust.
26541
26542 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26543
26544 * reorg.c: Change argument types to rtx_insn *.
26545
26546 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26547
26548 * ira-color.c: Change argument types to rtx_insn *.
26549 * lra-eliminations.c: Likewise.
26550 * ira.h: Adjust.
26551
26552 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26553
26554 * gcse.c: Change argument types to rtx_insn *.
26555
26556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26557
26558 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26559
26560 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26561
26562 * emit-rtl.c (emit_debug_insn_before): Change argument type to
26563 rtx_insn *.
26564 * rtl.h: Adjust.
26565
26566 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26567
26568 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26569 * rtl.h: Adjust.
26570
26571 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26572
26573 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26574 * rtl.h: Adjust.
26575
26576 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26577
26578 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26579 * rtl.h: Adjust.
26580
26581 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26582
26583 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26584 * rtl.h: Adjust.
26585
26586 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26587
26588 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26589 to rtx_insn *.
26590 * rtl.h: Adjust.
26591
26592 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26593
26594 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26595 to rtx_insn *.
26596 * rtl.h: Likewise.
26597
26598 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26599
26600 * except.c (can_nonlocal_goto): Change type of argument to
26601 rtx_insn *.
26602 * rtl.h: Adjust.
26603
26604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26605
26606 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26607 * rtl.h: Adjust.
26608
26609 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26610
26611 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26612 * cfgrtl.c (can_delete_label_p): Adjust.
26613 * rtl.h: likewise.
26614
26615 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26616
26617 * reorg.c (stop_search_p): Change argument to rtx_insn *.
26618
26619 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26620
26621 * except.c (make_reg_eh_region_note): Change argument to
26622 rtx_insn *.
26623 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26624 * except.h: Adjust.
26625
26626 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26627
26628 * mode-switching.c (commit_mode_sets): Change type of local
26629 variable from rtx to rtx_insn *.
26630
26631 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
26632
26633 * doc/install.texi (--enable-languages): Add missing jit and lto info.
26634 Add ^ to grep command.
26635 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26636 arg to last gimple_simplify declaration. Add missing gimple_build
26637 declaration for built-in function case with four tree args.
26638
26639 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26640 Szabolcs Nagy <szabolcs.nagy@arm.com>
26641
26642 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26643 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26644 (GNU_USER_DYNAMIC_LINKERN32): Update.
26645
26646 2015-05-08 Richard Biener <rguenther@suse.de>
26647
26648 PR tree-optimization/66036
26649 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26650 Handle strided group loads.
26651 (vect_verify_datarefs_alignment): Likewise.
26652 (vect_enhance_data_refs_alignment): Likewise.
26653 (vect_analyze_group_access): Likewise.
26654 (vect_analyze_data_ref_access): Likewise.
26655 (vect_analyze_data_ref_accesses): Likewise.
26656 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26657 (vectorizable_load): Likewise.
26658
26659 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
26660
26661 * config/rs6000/rs6000.md: Require operand inequality in one
26662 of the peepholes.
26663
26664 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
26665 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26666
26667 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26668 from (set ...).
26669 * config/rx/rx.md (movdi, movdf): Likewise.
26670 Likewise for define_peephole2s.
26671
26672 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26673
26674 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26675 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26676 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26677 vtst_u64): Rewrite using gcc vector extensions.
26678
26679 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26680
26681 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26682 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26683
26684 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26685
26686 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26687
26688 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
26689
26690 * config/glibc-stdint.h (OPTION_MUSL): Define.
26691 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26692 Change the definition based on OPTION_MUSL for 64 bit targets.
26693 * config/linux.h (OPTION_MUSL): Redefine.
26694 * config/alpha/linux.h (OPTION_MUSL): Redefine.
26695 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26696 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26697
26698 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26699 Szabolcs Nagy <szabolcs.nagy@arm.com>
26700
26701 * config.gcc (LIBC_MUSL): New tm_defines macro.
26702 * config/linux.h (OPTION_MUSL): Define.
26703 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26704 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26705 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26706 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26707 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26708 * config/linux.opt (mmusl): New option.
26709 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26710 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26711 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26712 * configure: Regenerate.
26713
26714 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
26715 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26716
26717 PR target/48904
26718 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26719 * config/i386/knetbsd-gnu64.h: New file.
26720
26721 2015-05-08 Marek Polacek <polacek@redhat.com>
26722
26723 PR c/64918
26724 * doc/invoke.texi: Document -Woverride-init-side-effects.
26725
26726 2015-05-07 Marek Polacek <polacek@redhat.com>
26727
26728 PR c/65179
26729 * doc/invoke.texi: Document -Wshift-negative-value.
26730
26731 2015-05-06 Aditya Kumar <hiraditya@msn.com>
26732
26733 * gcov-tool.c (do_merge): Refactore to remove int ret.
26734 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26735 !type == FUNC to type != FUNC.
26736 * reload.h (struct target_reload): Changee to type of
26737 x_spill_indirect_levels from bool to unsigned char.
26738
26739 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
26740
26741 * rtl.h (always_void_p): New function.
26742 * gengenrtl.c (always_void_p): Likewise.
26743 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26744 with code foo are always VOIDmode.
26745 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26746 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26747 compare-elim.c, config/aarch64/aarch64.c,
26748 config/aarch64/aarch64.md, config/alpha/alpha.c,
26749 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26750 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26751 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26752 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26753 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26754 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26755 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26756 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26757 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26758 config/ia64/vect.md, config/iq2000/iq2000.c,
26759 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26760 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26761 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26762 config/mep/mep.c, config/microblaze/microblaze.c,
26763 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26764 config/mn10300/mn10300.c, config/msp430/msp430.c,
26765 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26766 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26767 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26768 config/rs6000/altivec.md, config/rs6000/rs6000.c,
26769 config/rs6000/rs6000.md, config/rs6000/vector.md,
26770 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26771 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26772 config/sh/sh.md, config/sh/sh_treg_combine.cc,
26773 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
26774 config/spu/spu.md, config/stormy16/stormy16.c,
26775 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
26776 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
26777 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
26778 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
26779 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
26780 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
26781 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
26782 var-tracking.c: Update calls accordingly.
26783
26784 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26785
26786 PR middle-end/192
26787 PR middle-end/54303
26788 * varasm.c (function_mergeable_rodata_prefix): New function.
26789 (mergeable_string_section): Use it.
26790 (mergeable_constant_section): Use it.
26791
26792 2015-05-07 Jeff Law <law@redhat.com>
26793
26794 PR target/39726
26795 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26796 simplifier to narrow arithmetic.
26797 * generic-match-head.c: (types_match, single_use): New functions.
26798 * gimple-match-head.c: (types_match, single_use): New functions.
26799
26800 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26801
26802 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
26803 rtx type.
26804
26805 2015-05-07 Richard Biener <rguenther@suse.de>
26806
26807 PR tree-optimization/66002
26808 * passes.def: Schedule another pass_merge_phi after ifcombine, right
26809 before phiopt.
26810
26811 2015-05-07 Marek Polacek <polacek@redhat.com>
26812 Martin Uecker <uecker@eecs.berkeley.edu>
26813
26814 * doc/invoke.texi: Document -fsanitize=bounds-strict.
26815 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
26816 into SANITIZE_NONDEFAULT.
26817 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
26818
26819 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
26820
26821 PR target/66015
26822 * config/alpha/alpha.c (alpha_override_options_after_change): New.
26823 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
26824 (alpha_override_options): Move align_loops, align_jumps and
26825 align_functions handling into alpha_override_options_after_change.
26826
26827 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
26828 Chris Jones <chrisj@nvidia.com>
26829 Joshua Conner <jconner@nvidia.com>
26830
26831 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
26832 linking of crtfastmath.o.
26833 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
26834
26835 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26836
26837 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
26838 (cstore<mode>4_unsigned_imm): New expander.
26839 (cstore<mode>4): Remove empty constraint strings. Use the new
26840 expanders.
26841
26842 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
26843
26844 PR target/64208
26845 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
26846 alternatives.
26847
26848 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
26849
26850 * config/aarch64/geniterators.sh: Use standard BRE in sed.
26851
26852 2015-05-06 Alan Modra <amodra@gmail.com>
26853
26854 PR target/66033
26855 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
26856 (UNSPEC_NOP): Define.
26857 (reload_vsx_from_gpr<mode>): Add missing DONE.
26858 (reload_gpr_from_vsx<mode>): Likewise.
26859 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
26860 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
26861
26862 2015-05-06 Christian Bruel <christian.bruel@st.com>
26863
26864 PR target/66015
26865 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
26866 align_jumps, align_functions into aarch64_override_options_after_change.
26867
26868 2015-05-06 Richard Biener <rguenther@suse.de>
26869
26870 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
26871 vect_transform_slp_perm_load to check if we support a permutation
26872 for basic-block vectorization.
26873
26874 2015-05-06 Nick Clifton <nickc@redhat.com>
26875
26876 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
26877 used, even if it is not being used as a frame pointer.
26878
26879 2015-05-05 Jason Merrill <jason@redhat.com>
26880
26881 * dwarf2out.c (gen_member_die): Don't emit anything for an
26882 anonymous class constructor.
26883
26884 2015-05-05 David Malcolm <dmalcolm@redhat.com>
26885
26886 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26887 that it reflects the block structure.
26888 (afdo_propagate_edge): Likewise.
26889 (afdo_calculate_branch_prob): Likewise.
26890 (afdo_annotate_cfg): Likewise.
26891 * cfgcleanup.c (equal_different_set_p): Likewise.
26892 (try_crossjump_to_edge): Likewise.
26893 * cgraph.c (cgraph_node::verify_node): Likewise.
26894 * cgraphunit.c (expand_all_functions): Likewise.
26895 * config/i386/i386.c (ix86_expand_copysign): Likewise.
26896 (exact_dependency_1): Likewise.
26897 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26898 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26899 * gensupport.c (process_define_subst): Likewise.
26900 * lto-wrapper.c (merge_and_complain): Likewise.
26901 * tree-if-conv.c (if_convertible_bb_p): Likewise.
26902 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26903 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26904 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26905 * tree-vect-loop.c (vectorizable_reduction): Likewise.
26906 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26907 * tree-vect-stmts.c (vectorizable_shift): Likewise.
26908 * tree-vrp.c (vrp_finalize): Likewise.
26909 * tree.c (variably_modified_type_p): Likewise.
26910
26911 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
26912
26913 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26914 on darwin12 and later.
26915 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26916 file to pass -rdynamic on darwin12 and later.
26917 * config/darwin.opt (rdynamic): Add.
26918
26919 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26920
26921 * doc/extend.texi (C Extensions): Update menu for moved Variable
26922 Attributes and Type Attributes sections.
26923
26924 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26925
26926 PR target/65990
26927 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26928 if rep_8byte stringop strategy was specified for 32-bit target.
26929
26930 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
26931
26932 PR target/65915
26933 * config/i386/i386.md (vector convert to float spltiter): Check for
26934 xmm16+, when splitting scalar float conversion.
26935 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26936
26937 2015-05-05 Nick Clifton <nickc@redhat.com>
26938
26939 * config/msp430/msp430-opts.h (enum msp430_regions): New.
26940 * config/msp430/msp430.c (msp430_override_options): Complain if
26941 -mcode-region or -mdata-region is used on a non MSP430X.
26942 (msp430_section_attr): New function. Checks lower, upper and
26943 either attributes.
26944 (msp430_attribute_table): Add lower, upper and either.
26945 (gen_prefix): New function. Generates a prefix for a section
26946 name.
26947 (msp430_select_section): New function - handles the choice of
26948 section for an object. Takes into account memory region
26949 attributes and options.
26950 (msp430_function_section): Use gen_prefix.
26951 (TARGET_SECTION_TYPE_FLAGS): Define.
26952 (msp430_section_type_flags): New function.
26953 (TARGET_ASM_UNIQUE_SECTION): Define.
26954 (msp430_unique_section): New function.
26955 (msp430_output_aligned_decl_common): New function.
26956 (msp430_do_not_relax_short_jumps): New function.
26957 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26958 Define.
26959 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26960 * config/msp430/msp430-protos.h
26961 (msp430_do_not_relax_short_jumps): New prototype.
26962 (msp430_output_aligned_decl_common): New prototype.
26963 * config/msp430/msp430.md (length): New attribute.
26964 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26965 then use a long code sequence for short jumps.
26966 * config/msp430/msp430.opt (mcode-region): New.
26967 (mdata-region): New.
26968 * doc/invoke.texi: Document new options.
26969 * doc/extend.texi: Document new attributes.
26970
26971 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26972
26973 * config/aarch64-protos.h (struct cpu_branch_cost): New.
26974 (tune_params): Add field branch_costs.
26975 (aarch64_branch_cost): Declare.
26976 * config/aarch64.c (generic_branch_cost): New.
26977 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26978 (cortexa53_tunings): Likewise.
26979 (cortexa57_tunings): Likewise.
26980 (thunderx_tunings): Likewise.
26981 (xgene1_tunings): Likewise.
26982 (aarch64_branch_cost): Define.
26983 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
26984
26985 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26986
26987 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
26988 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
26989 * config/i386/i386.md: Ditto.
26990 * config/i386/winnt.c: Ditto.
26991
26992 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26993
26994 * doc/extend.texi (__atomic Builtins): Move implementation details
26995 to the end of the description, rewrite opening paragraphs, state
26996 difference with __sync builtins, state C11/C++11 assumptions,
26997 weaken itemized descriptions, add explanation of memory model
26998 behaviour, expand description of compare-exchange, simplify text.
26999
27000 2015-05-05 Renlin Li <renlin.li@arm.com>
27001
27002 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
27003
27004 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
27005
27006 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
27007 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27008 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
27009 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
27010 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
27011 * configure: Regenerate.
27012 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
27013 * doc/install.texi (aarch64*-*-*): Document new
27014 --enable-fix-cortex-a53-843419 option.
27015 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
27016 and -mno-fix-cortex-a53-843419 options.
27017
27018 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
27019
27020 PR target/65871
27021 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
27022
27023 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
27024
27025 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
27026 fix overactive TYPE_MIN_VALUE check and add FIXME for type
27027 compatibility problems.
27028
27029 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27030
27031 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
27032 constraints.
27033 (cbranchsi4_reg): New.
27034 * config/microblaze/microblaze.c
27035 (microblaze_expand_conditional_branch_reg): New.
27036 * config/microblaze/microblaze-protos.h
27037 (microblaze_expand_conditional_branch_reg): New prototype.
27038
27039 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
27040
27041 * config/microblaze/microblaze.md (peephole2): New.
27042
27043 2015-05-04 Jeff Law <law@redhat.com>
27044
27045 Revert:
27046 2015-05-04 Jeff Law <law@redhat.com>
27047
27048 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27049 simplifier to narrow arithmetic.
27050 * generic-match-head.c: (types_match, single_use): New functions.
27051 * gimple-match-head.c: (types_match, single_use): New functions.
27052
27053 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
27054
27055 PR target/65987
27056 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
27057 (split_branches): Likewise.
27058
27059 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
27060
27061 * common.opt (fdelete-null-pointer-checks): Init to -1.
27062 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
27063 override flag_delete_null_pointer_checks default.
27064 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
27065 behavior re address zero. Better document target-specific behavior.
27066 (-fisolate-errneous-paths-dereference): Mention relationship to
27067 -fdelete-null-pointer-checks.
27068
27069 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27070
27071 PR tree-optimization/65984
27072 * ubsan.c: Include tree-cfg.h.
27073 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
27074 stmt_could_throw_p test, rename can_throw variable to ends_bb.
27075
27076 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27077
27078 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
27079 to CONST_DOUBLE_P predicate.
27080 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
27081 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
27082 allow only operands that satisfy standard_sse_constant_p predicate.
27083 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
27084 to CONST_DOUBLE_P predicate.
27085
27086 2015-05-04 Jeff Law <law@redhat.com>
27087
27088 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
27089 simplifier to narrow arithmetic.
27090 * generic-match-head.c: (types_match, single_use): New functions.
27091 * gimple-match-head.c: (types_match, single_use): New functions.
27092
27093 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
27094
27095 * config/arm/arm.c: Restore bootstrap.
27096
27097 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
27098
27099 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
27100 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
27101 as CONST_WIDE_INT, not CONST_DOUBLE.
27102 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
27103 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
27104 (ix86_find_base_term): Do not check for CONST_DOUBLE.
27105 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
27106 (ix86_build_signbit_mask): Rewrite using wide ints.
27107 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
27108 (ix86_rtx_costs): Handle CONST_WIDE_INT.
27109 (find_constant): Ditto.
27110 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
27111 using gen_int_mode.
27112 * config/i386/predicates.md (x86_64_immediate_operand)
27113 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27114 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
27115 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
27116 (const0_operand): Also match const_wide_int.
27117 (constm1_operand): Ditto.
27118 (const1_operand): Ditto.
27119
27120 2015-05-04 Richard Biener <rguenther@suse.de>
27121
27122 PR tree-optimization/65965
27123 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
27124 store groups at gaps.
27125
27126 2015-05-04 Richard Biener <rguenther@suse.de>
27127
27128 PR tree-optimization/65935
27129 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
27130 then make sure to apply that swapping to the IL.
27131
27132 2015-05-04 Jakub Jelinek <jakub@redhat.com>
27133
27134 * Makefile.in (PATCHLEVEL_c): New variable.
27135 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
27136 expand the same way as if DEVPHASE_c was non-empty.
27137
27138 2015-05-04 Kai Tietz <ktietz@redhat.com>
27139
27140 PR target/65559
27141 * lto-wrapper.c (run_gcc): Open filename
27142 in binary-mode.
27143
27144 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
27145
27146 * doc/extend.texi (Variable Attributes, Type Attributes): Move
27147 sections up in file, to immediately after the Function Attributes
27148 section.
27149
27150 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
27151
27152 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
27153
27154 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27155
27156 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
27157 (insert_partition_copy_on_edge): Adjust.
27158 (insert_rtx_to_part_on_edge): Likewise.
27159 (insert_part_to_rtx_on_edge): Likewise.
27160
27161 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27162
27163 * function.c (set_return_jump_label): Change type of argument to
27164 rtx_insn *.
27165 * function.h (set_return_jump_label): Adjust.
27166
27167 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27168
27169 * reload.h (struct reg_equivs_t): Change type of init to
27170 rtx_insn *.
27171 * ira.c (fix_reg_equiv_init): Adjust.
27172 * reload1.c (eliminate_regs_1): Likewise.
27173 (init_eliminable_invariants): Likewise.
27174
27175 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27176
27177 * cselib.c (fp_setter_insn): Take a rtx_insn *.
27178 * cselib.h (fp_setter_insn): Adjust.
27179
27180 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27181
27182 * recog.c (struct validate_replace_src_data): Change type of
27183 insn field to rtx_insn *.
27184 (validate_replace_src_group): Change type of argument to rtx_insn *.
27185 * recog.h (validate_replace_src_group): Adjust.
27186
27187 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27188
27189 * haifa-sched.c: Change the type of some variables to rtx_insn *.
27190 * sched-deps.c: Likewise.
27191 * sched-int.h: Likewise.
27192 * sched-rgn.c: Likewise.
27193 * sel-sched.c: Likewise.
27194
27195 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27196
27197 to rtx_insn *.
27198 * config/i386/i386.c: Change the type of some arguments to
27199 rtx_insn *.
27200 * config/arm/arm.c: Likewise.
27201
27202 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27203
27204 * lra-constraints.c: Change type of some arguments to rtx_insn *.
27205
27206 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27207
27208 * regcprop.c (kill_autoinc_value): Change type of argument to
27209 rtx_insn *.
27210
27211 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27212
27213 * genrecog.c (print_subroutine): Adjust.
27214 * recog.c (get_bool_attr_mask_uncached): Likewise.
27215 * recog.h (struct recog_data_d): Change the type of insn to
27216 rtx_insn *.
27217
27218 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27219
27220 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27221
27222 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27223
27224 * df-problems.c (df_set_note): Change type of argument to
27225 rtx_insn *.
27226
27227 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27228
27229 * builtins.c (expand_builtin_trap): Change type of local
27230 variable to rtx_insn *.
27231 (add_sched_insns_for_speculation): Likewise.
27232 (ix86_emit_save_regs): Likewise.
27233 (get_scratch_register_on_entry): Likewise.
27234 (ix86_emit_restore_reg_using_pop): Likewise.
27235 (ix86_emit_leave): Likewise.
27236 (ix86_emit_restore_regs_using_mov): Likewise.
27237 (ix86_expand_epilogue): Likewise.
27238 Likewise.
27239 (rl78_alloc_physical_registers_umul): Likewise.
27240 * cselib.c (discard_useless_locs): Likewise.
27241 (cselib_invalidate_regno): Likewise.
27242 (cselib_invalidate_mem): Likewise.
27243 * function.c (expand_function_start): Likewise.
27244 (emit_use_return_register_into_block): Likewise.
27245 * gcse.c: Likewise.
27246 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27247 * ifcvt.c (noce_get_alt_condition): Likewise.
27248 * loop-doloop.c (doloop_condition_get): Likewise.
27249 * lra-constraints.c (inherit_in_ebb): Likewise.
27250 * modulo-sched.c (sms_schedule_by_order): Likewise.
27251 * recog.c (next_insn_tests_no_inequality): Likewise.
27252 * reorg.c (emit_delay_sequence): Likewise.
27253 (update_reg_dead_notes): Likewise.
27254 (fix_reg_dead_note): Likewise.
27255 (fill_slots_from_thread): Likewise.
27256 (delete_computation): Likewise.
27257
27258 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
27259
27260 * doc/extend.texi (Variable Attributes): Add menu and proper
27261 @nodes to subsections. Move Microsoft Windows attributes to
27262 their own subsection.
27263 (Type Attributes): Reorganize introduction to remove duplicate
27264 list of attributes. Add menu and proper @nodes to subsections.
27265 Alphabetize the main table of common attributes.
27266
27267 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
27268
27269 * match.pd: New simplification patterns.
27270 (x + (x & 1)) -> ((x + 1) & ~1)
27271 (x & ~(x & y)) -> ((x & ~y))
27272 (x | ~(x | y)) -> ((x | ~y))
27273
27274 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27275
27276 * target.def (attribute_table): Mention that struct attribute_spec
27277 is defined in tree-core.h rather than tree.h
27278 * doc/tm.texi: Regenerate.
27279
27280 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
27281
27282 * genrecog.c (test): Rename to rtx_test. Update rest of file
27283 accordingly.
27284
27285 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
27286
27287 PR translation/65959
27288 * params.h (DEFPARAM): Rename msgid to nocmsgid.
27289
27290 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27291
27292 * config/aarch64/aarch64-protos.h (tune_params):
27293 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27294 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27295 Return value depending on target.
27296 (generic_tunings): Initialize new target settings.
27297 (cortexa53_tunings): Likewise.
27298 (cortexa57_tunings): Likewise.
27299 (thunderx_tunings): Likewise.
27300 (xgene1_tunings): Likewise.
27301
27302 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27303
27304 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27305 Make Cortex-A53 shift costs more accurate.
27306
27307 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27308
27309 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27310 UNSIGNED_FLOAT.
27311
27312 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27313
27314 * config/aarch64/aarch64.c (aarch64_rtx_costs):
27315 Calculate cost of op0 and op1 in PLUS and MINUS cases.
27316
27317 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27318
27319 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27320 Add cost of op0 in the compare-with-fpzero case.
27321
27322 2015-04-30 David Malcolm <dmalcolm@redhat.com>
27323
27324 * builtins.c (fold_builtin_1): Remove spurious second
27325 semicolon.
27326 * cgraph.h (symtab_node::get_availability): Likewise.
27327 * opts.c (common_handle_option): Remove spurious second semicolon.
27328 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27329 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27330
27331 2015-04-30 Caroline Tice <cmtice@google.com>
27332
27333 PR gcov-profile/65929
27334 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27335 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27336 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27337 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27338 * doc/tm.texi: Regenerate.
27339 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
27340 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27341 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
27342 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27343
27344 2015-04-30 Marek Polacek <polacek@redhat.com>
27345
27346 * varasm.c (handle_cache_entry): Fix logic.
27347
27348 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27349
27350 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27351 (*extrsi5_insn_uxtw_alt): Likewise.
27352 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27353 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27354 operations.
27355
27356 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27357
27358 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27359 fabd in ABS case.
27360
27361 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27362
27363 * config/aarch64/aarch64.md
27364 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27365 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27366 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27367 appropriately. Handle alternative EON form.
27368
27369 2015-04-30 Renlin Li <renlin.li@arm.com>
27370
27371 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27372 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27373
27374 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27375
27376 PR ipa/65873
27377 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27378 -fstrict-aliasing boundaries.
27379
27380 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27381
27382 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27383 and [SU]MNEGL patterns.
27384
27385 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27386
27387 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27388 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27389 combined arithmetic-shift ops. Properly handle all shift and extend
27390 operations that can occur in combination with PLUS/MINUS.
27391 Rename maybe_fma to compound_p.
27392 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27393 arithmetic and shift operations.
27394
27395 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27396
27397 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27398 rather than arith_shift cost when costing ADD/MINUS of an
27399 extended value.
27400
27401 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27402
27403 PR lto/65948
27404 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27405 to itself.
27406
27407 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
27408
27409 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27410 are for the same position.
27411
27412 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
27413
27414 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
27415 vectorize_loops.
27416 (vectorize_loops): Use it.
27417
27418 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27419
27420 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27421 for aggregate types.
27422 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27423 type to be non_ODR.
27424 * tree.c (need_assembler_name_p): Compute mangled name for
27425 non-fundamental types and integer types.
27426
27427 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
27428
27429 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27430 manual swaps.
27431 * expr.c (expand_expr_real_2): Likewise.
27432
27433 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27434
27435 * tree.c (build_common_builtin_nodes): Do not build
27436 __builtin_alloca_with_align as equivalent of library alloca.
27437
27438 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27439
27440 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27441 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27442 bugus variants.
27443 * tree.c: Include print-tree.h and ipa-utils.h
27444 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27445 (free_lang_data_in_cgraph): Call verify_type.
27446 (verify_type_variant): New function.
27447 (verify_type): New function.
27448 * tree.h (verify_type): Declare.
27449
27450 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
27451
27452 * config/mips/mips-cpus.def: (mips4): Change default processor
27453 from PROCESSOR_R8000 to PROCESSOR_R10000.
27454
27455 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
27456
27457 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27458 la/jalr instead of jal.
27459
27460 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
27461
27462 PR target/65871
27463 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27464 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27465 (setcc+movzbl peephole2): Check also clobbered reg.
27466 (setcc+andl peephole2): Ditto.
27467
27468 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27469
27470 PR libgomp/65099
27471 * config/nvptx/mkoffload.c (target_ilp32): New variable.
27472 (main): Set it depending on "-foffload-abi=[...]".
27473 (compile_native, main): Use it to pass "-m32" or "-m64" to the
27474 compiler.
27475
27476 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27477
27478 PR target/65770
27479 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
27480 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
27481 Flip lane index back at assembly time for bigendian.
27482
27483 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27484
27485 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
27486 * gimplify.c (gimplify_omp_workshare): Use it.
27487
27488 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27489
27490 * Makefile.in (build/genrecog.o): Depend on inchash.h.
27491 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
27492 build/inchash.o
27493 * genrecog.c: Rewrite most of the code except for the third page.
27494
27495 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27496
27497 * inchash.h, inchash.c: Include bconfig.h for build objects.
27498 * Makefile.in (build/inchash.o): New rule.
27499
27500 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
27501
27502 PR target/65924
27503 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
27504 number in type attribute expression.
27505
27506 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27507
27508 * loop-iv.c (canon_condition): Generalize to all types of integer
27509 constant.
27510
27511 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
27512
27513 * gimple-walk.c: Prune duplicate or unneeded includes.
27514 (walk_gimple_asm): Only call parse_input_constraint or
27515 parse_output_constraint if their findings are used.
27516 Honour parse_input_constraint and parse_output_constraint
27517 result.
27518
27519 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27520
27521 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
27522
27523 2015-04-29 Tom de Vries <tom@codesourcery.com>
27524
27525 PR tree-optimization/65893
27526 * passes.def (pass_all_optimizations): Move pass_stdarg to after
27527 pass_dce.
27528
27529 2015-04-29 Richard Biener <rguenther@suse.de>
27530
27531 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27532 compute GROUP_SIZE for basic-block SLP.
27533 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
27534 take into account gaps.
27535 (vect_get_mask_element): Properly reject references to previous
27536 vectors.
27537 (vect_transform_slp_perm_load): Likewise.
27538
27539 2015-04-29 Christian Bruel <christian.bruel@st.com>
27540
27541 PR target/64835
27542 * config/i386/i386.c (ix86_default_align): New function.
27543 (ix86_override_options_after_change): Call ix86_default_align.
27544 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
27545 (ix86_override_options_after_change): New function.
27546
27547 2015-04-28 Jeff Law <law@redhat.com>
27548
27549 * tree-ssa-dom.c (record_equality); Fix comment typos.
27550
27551 2015-04-28 Tom de Vries <tom@codesourcery.com>
27552
27553 PR tree-optimization/65887
27554 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
27555
27556 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
27557
27558 * doc/extend.texi (Declaring Attributes of Functions): Split into
27559 subsections by target. Alphabetize the table of common attributes.
27560 Rewrite some of the introductory text to reflect the new structure.
27561 Update some cross-references to point to the new subsections.
27562 (Attribute Syntax): Put paragraph about "__" naming here. Remove
27563 duplicate copies in the discussion of function, label, and type
27564 attributes.
27565
27566 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
27567
27568 PR bootstrap/65910
27569 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27570
27571 2015-04-28 Jason Merrill <jason@redhat.com>
27572
27573 PR c++/65734
27574 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27575 (finalize_type_size): Respect TYPE_USER_ALIGN.
27576 (layout_type) [ARRAY_TYPE]: Likewise.
27577
27578 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
27579
27580 * config/arm/arm.md (*arm_movt): Fix type attribute.
27581 (*cmpsi_shiftsi): Likewise.
27582 (*cmpsi_shiftsi_swp): Likewise.
27583 (*movsicc_insn): Likewise.
27584 (*cond_move): Likewise.
27585 (*if_plus_move): Likewise.
27586 (*if_move_plus): Likewise.
27587 (*if_arith_move): Likewise.
27588 (*if_move_arith): Likewise.
27589 (*if_shift_move): Likewise.
27590 (*if_move_shift): Likewise.
27591 (*arm_movtas_ze): Likewise.
27592 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27593 redundancy and type attribute.
27594 (*thumb2_movsi_insn): Fix type attribute.
27595 (*thumb2_addsi_short): Likewise.
27596 (thumb2_addsi3_compare0): Likewise.
27597 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27598 attributes accordingly.
27599
27600 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
27601
27602 PR other/65911
27603 * function.c (pad_to_arg_alignment): Add parentheses.
27604
27605 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
27606
27607 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27608 libgcc/config/frv/elf-lib.h.
27609
27610 2015-04-28 Tom de Vries <tom@codesourcery.com>
27611
27612 * tree-call-cdce.c: Fix example in header comment.
27613
27614 2015-04-28 Richard Biener <rguenther@suse.de>
27615
27616 PR tree-optimization/62283
27617 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27618 fails fatally and we are vectorizing a basic-block simply
27619 cause the child to be constructed piecewise.
27620 (vect_analyze_slp_cost_1): Adjust.
27621 (vect_detect_hybrid_slp_stmts): Likewise.
27622 (vect_bb_slp_scalar_cost): Likewise.
27623 (vect_get_constant_vectors): For piecewise constructed
27624 constants place them after the last def.
27625 (vect_get_slp_defs): Adjust.
27626 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27627 externals for basic-block vectorization.
27628
27629 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27630
27631 PR target/63503
27632 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27633 aarch64-*-*.
27634 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27635 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27636 (AARCH64_TUNE_FMA_STEERING): Likewise.
27637 * config/aarch64/aarch64-cores.def: Set
27638 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27639 FMUL/FMADD instructions.
27640 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27641 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
27642 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27643 * config/aarch64/cortex-a57-fma-steering.h: New file.
27644 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27645
27646 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
27647
27648 * gensupport.c (std_preds): Add missing codes to address_operand entry.
27649
27650 2015-04-28 Richard Biener <rguenther@suse.de>
27651
27652 PR tree-optimization/65851
27653 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27654 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
27655 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
27656 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27657 (ccp_visit_phi_node): Adjust.
27658 (evaluate_stmt): For simplifications to SSA names return its
27659 lattice value if that isn't VARYING. Return immediately when
27660 simplified to a constant.
27661 (visit_assignment): Adjust.
27662 (ccp_visit_stmt): Likewise.
27663
27664 2015-04-28 Tom de Vries <tom@codesourcery.com>
27665
27666 PR tree-optimization/65818
27667 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27668 evaluated.
27669
27670 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27671
27672 * calls.c (save_fixed_argument_area): Don't check
27673 ARGS_GROW_DOWNWARD with the preprocessor.
27674 (restore_fixed_argument_area): Likewise.
27675 (mem_overlaps_already_clobbered_arg_p): Likewise.
27676 (check_sibcall_argument_overlap): Likewise.
27677 (expand_call): Likewise.
27678 (emit_library_call_value_1): Likewise.
27679 (store_one_arg): Likewise.
27680 * function.c (assign_parms): Likewise.
27681 (locate_and_pad_parm): Likewise.
27682 (pad_to_arg_alignment): Likewise.
27683 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27684
27685 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27686
27687 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27688 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27689 * calls.c (save_fixed_argument_area): Don't chekc if
27690 ARGS_GROW_DOWNWARD is defined.
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 * defaults.h (gen_epilogue): New function.
27705 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27706 defined.
27707 * cfgrtl.c (cfg_layout_finalize): Likewise.
27708 * df-scan.c: Likewise.
27709 * function.c (thread_prologue_and_epilogue_insns): Likewise.
27710 (reposition_prologue_and_epilogue_notes): Likewise.
27711 * reorg.c (find_end_label): Likewise.
27712 * toplev.c: Likewise.
27713
27714 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27715
27716 * bb-reorder.c (HAVE_return): Don't check if its undefined.
27717 * defaults.h (gen_simple_return): New function.
27718 (gen_simple_return): Likewise.
27719 (HAVE_return): Add default definition to false.
27720 (HAVE_simple_return): Likewise.
27721 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27722 HAVE_return and HAVE_simple_return are defined.
27723 * function.c (gen_return_pattern): Likewise.
27724 (convert_jumps_to_returns): Likewise.
27725 (thread_prologue_and_epilogue_insns): Likewise.
27726 * reorg.c (find_end_label): Likewise.
27727 (dbr_schedule): Likewise.
27728 * shrink-wrap.c: Likewise.
27729 * shrink-wrap.h: Likewise.
27730
27731 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27732
27733 * defaults.h (EPILOGUE_USES): Add default definition of false.
27734 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27735 * resource.c (init_resource_info): Likewise.
27736
27737 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27738
27739 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27740 to false.
27741 * dwarf2out.c (field_byte_offset): REmove check if
27742 PCC_BITFIELD_TYPE_MATTERS is defined.
27743 * stor-layout.c (layout_decl): Likewise.
27744 (update_alignment_for_field): Likewise.
27745 (place_field): Likewise.
27746
27747 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27748
27749 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27750 true.
27751 * regrename.c (check_new_reg_p): Remove check if
27752 HARD_REGNO_RENAME_OK is defined.
27753 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27754
27755 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27756
27757 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27758 * cse.c (fold_rtx): Likewise.
27759 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27760 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27761 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27762 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27763 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27764 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27765 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27766 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27767 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27768 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27769 * Likewise.
27770 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27771 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27772 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27773 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
27774 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
27775 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
27776 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
27777 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
27778 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
27779 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
27780 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
27781 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
27782 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
27783 * doc/tm.texi: Regenerate.
27784 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
27785 either true or false.
27786
27787 2015-04-27 Jeff Law <law@redhat.com>
27788
27789 PR tree-optimization/65217
27790 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
27791 of them has a single use, make sure it is the LHS of the implied
27792 copy.
27793
27794 2015-04-28 Alan Modra <amodra@gmail.com>
27795
27796 PR target/65810
27797 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
27798 (offsettable_ok_by_alignment): Use minimum of decl and toc
27799 pointer alignment. Replace dead code with assertion.
27800 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
27801 case if size exceeds toc pointer alignment.
27802 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
27803 (rs6000_emit_move): Likewise.
27804 * configure.ac: Add linker toc pointer alignment check.
27805 * configure: Regenerate.
27806 * config.in: Regenerate.
27807
27808 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
27809
27810 * config.gcc: Add h8300-*-linux.
27811 * config/h8300/linux.h: New.
27812 * config/h8300/t-linux: New.
27813 * config/h8300/h8300.c (h8300_option_override): Normal mode
27814 is not supported for h8300-*-linux.
27815 (h8300_file_start): Target priority change.
27816 (get_shift_alg): Likewise.
27817 (h8300_shift_need_scratch_p): Likewise.
27818 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
27819 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
27820
27821 2015-04-27 Caroline Tice <cmtice@google.com>
27822
27823 * final.c (final_scan_insn): Output cold_function_name as function
27824 type.
27825 * varasm.c (cold_function_name): Make global.
27826 (assemble_start_function): Re-set cold_function_name.
27827 (assemble_end_function): Output cold partition size.
27828 * varasm.h (cold_function_name): Declare global.
27829
27830 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
27831
27832 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
27833 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
27834 constraint.
27835 (*movxi_internal_avx512f): Ditto.
27836 (define_split): Check for xmm16+, when splitting scalar float_extend.
27837 (*extendsfdf2_mixed): Use "v" constraint.
27838 (define_split): Check for xmm16+, when splitting scalar float_truncate.
27839 (*truncdfsf_fast_sse): Use "v" constraint.
27840 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
27841 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
27842 (define_peephole2): Check for xmm16+, when converting scalar
27843 float_truncate.
27844 (define_peephole2): Check for xmm16+, when converting scalar
27845 float_extend.
27846 (*fop_<mode>_comm_mixed): Use "v" constraint.
27847 (*fop_<mode>_comm_sse): Ditto.
27848 (*fop_<mode>_1_mixed): Ditto.
27849 (*sqrt<mode>2_sse): Ditto.
27850 (*ieee_s<ieee_maxmin><mode>3): Ditto.
27851
27852 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27853
27854 * combine.c (simplify_if_then_else): Use std::swap instead
27855 of manually swapping.
27856 (known_cond): Likewise.
27857 (simplify_comparison): Likewise.
27858
27859 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
27860
27861 PR target/64579
27862 * config/rs6000/htm.md: Remove all define_expands.
27863 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
27864 UNSPECV_HTM_TABORTWCI): Remove.
27865 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
27866 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
27867 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
27868 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
27869 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
27870 tabortwci_internal): Remove define_insns.
27871 (tabort<wd>c, tabort<wd>ci): New define_insns.
27872 (tabort): Use gpc_reg_operand.
27873 (tcheck): Remove operand.
27874 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
27875 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
27876 expected value.
27877 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27878 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
27879 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27880 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27881 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27882 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27883 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27884 (tcheck): Remove builtin argument.
27885 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27886 not TARGET_64BIT.
27887 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
27888 tabortdc and tabortdci builtins when not in 64-bit mode.
27889 Modify code to handle the loss of the HTM define_expands.
27890 Emit code to copy the CR register to TARGET.
27891 (htm_init_builtins): Modify code to handle the loss of the HTM
27892 define_expands.
27893 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27894 (RS6000_BTC_64BIT): Likewise.
27895 (RS6000_BTC_CR): New macro.
27896 * doc/extend.texi: Update documentation for htm builtins.
27897
27898 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27899
27900 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27901 of manually swapping.
27902 (simplify_associative_operation): Likewise.
27903 (simplify_binary_operation): Likewise.
27904 (simplify_plus_minus): Likewise.
27905 (simplify_relational_operation): Likewise.
27906 (simplify_ternary_operation): Likewise.
27907
27908 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27909
27910 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27911 (xs_hi_nonmemory_operand): Remove error.
27912 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27913 general_operand rather than xs_hi_general_operand.
27914
27915 2015-04-27 Richard Biener <rguenther@suse.de>
27916
27917 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27918 (record_equivalences_from_stmt): Valueize rhs.
27919 (record_equality): Canonicalize x and y order via
27920 tree_swap_operands_p. Do not swap operands for same loop depth.
27921
27922 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
27923
27924 PR target/65296
27925 PR target/65895
27926 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27927 Add hint how to use own spec file.
27928
27929 2015-04-27 Jakub Jelinek <jakub@redhat.com>
27930
27931 PR tree-optimization/65875
27932 * tree-vrp.c (update_value_range): If in is_new case setting
27933 old_vr to VR_VARYING, also set new_vr to it. Remove
27934 old_vr->type == VR_VARYING test.
27935 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27936 SSA_PROP_INTERESTING if update_value_range returned true,
27937 but new range is VR_VARYING.
27938
27939 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
27940
27941 * combine.c (sign_extend_short_imm): New.
27942 (set_nonzero_bits_and_sign_copies): Use above new function for sign
27943 extension of src short immediate.
27944 (reg_nonzero_bits_for_combine): Likewise for tem.
27945
27946 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27947
27948 * stor-layout.c (self_referential_component_ref_p): New predicate.
27949 (copy_self_referential_tree_r): Use it.
27950 (self_referential_size): Punt for simple operations directly involving
27951 self-referential component references.
27952 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27953
27954 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27955
27956 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27957
27958 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27959
27960 * vec.h (vec): Make splice arguments const. Update definitions
27961 accordingly.
27962
27963 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
27964
27965 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27966 alternatives.
27967
27968 2015-04-26 Tom de Vries <tom@codesourcery.com>
27969
27970 PR tree-optimization/65826
27971 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27972
27973 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
27974
27975 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27976 (*madd3<mode>): Ditto.
27977 (*msub4<mode>): Ditto.
27978 (*msub3<mode>): Ditto.
27979 (*nmadd4<mode>): Ditto.
27980 (*nmadd3<mode>): Ditto.
27981 (*nmadd4<mode>_fastmath): Ditto.
27982 (*nmadd3<mode>_fastmath): Ditto.
27983 (*nmsub4<mode>): Ditto.
27984 (*nmsub3<mode>): Ditto.
27985 (*nmsub4<mode>_fastmath): Ditto.
27986 (*nmsub3<mode>_fastmath): Ditto.
27987
27988 2015-04-24 Jason Merrill <jason@redhat.com>
27989
27990 PR c++/50800
27991 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
27992 down when building TYPE_CANONICAL.
27993 (build_pointer_type_for_mode): Likewise.
27994
27995 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
27996
27997 * genrecog.c (validate_pattern): Check matching constraint refers
27998 to a lower numbered operand.
27999
28000 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28001
28002 PR target/65849
28003 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
28004 save to independent variables use the Save attribute. This will
28005 allow these options to be modified with the #pragma/attribute
28006 target support.
28007 (-mallow-movmisalign): Likewise.
28008 (-mallow-df-permute): Likewise.
28009 (-msched-groups): Likewise.
28010 (-malways-hint): Likewise.
28011 (-malign-branch-targets): Likewise.
28012 (-mvectorize-builtins): Likewise.
28013 (-msave-toc-indirect): Likewise.
28014
28015 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
28016 can be set via the #pragma/attribute target support.
28017 (rs6000_opt_vars): Likewise.
28018 (rs6000_inner_target_options): If VSX was set, also set
28019 -mno-avoid-indexed-addresses.
28020
28021 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28022
28023 * config/arm/iterators.md (shiftable_ops): Rename to...
28024 (SHIFTABLE_OPS): ... This. Update use in comments.
28025 (ior_xor): Rename to...
28026 (IOR_XOR): ... This.
28027 (vqh_ops): Rename to...
28028 (VQH_OPS): ... This.
28029 (vqhs_ops): Rename to...
28030 (VQHS_OPS): ... This.
28031 (rshifts): Rename to...
28032 (RSHIFTS): ... This.
28033 (returns): Rename to...
28034 (RETURNS): ... This.
28035 * config/arm/arm.md: Update uses of the above.
28036 * config/arm/neon.md: Likewise.
28037
28038 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28039
28040 * config.host (case ${host}): Add aarch64*-*-linux case.
28041 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
28042 fields to all the cores.
28043 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
28044 Add MCPU_MTUNE_NATIVE_SPECS.
28045 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
28046 field to all extensions.
28047 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
28048 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
28049 Adjust definition of AARCH64_OPT_EXTENSION.
28050 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
28051 (MCPU_MTUNE_NATIVE_SPECS): Define.
28052 * config/aarch64/driver-aarch64.c: New file.
28053 * config/aarch64/x-arch64: New file.
28054 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
28055 -mtune and -march.
28056
28057 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28058 Wei Mi <wmi@google.com>
28059
28060 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
28061 * config/i386/i386.c (extract_base_offset_in_addr): New function.
28062 (ix86_operands_ok_for_move_multiple): Ditto.
28063 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
28064 (movlpd/movhpd to movupd peephole2): Ditto.
28065
28066 2015-04-24 Marek Polacek <polacek@redhat.com>
28067
28068 PR c/61534
28069 * input.h (from_macro_expansion_at): Define.
28070
28071 PR c/63357
28072 * doc/invoke.texi: Update description of -Wlogical-op.
28073
28074 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28075
28076 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
28077 ternary operator in fprintf and harmonize spacing.
28078
28079 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28080
28081 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
28082 Mark operand1 commutative.
28083
28084 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
28085
28086 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
28087 input operands in memory.
28088 (*vec_concatv2si_sse4_1): Ditto.
28089 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
28090 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
28091 register_operand.
28092 (vec_extract_hi_v32hi): Ditto.
28093 (vec_extract_hi_v64hi): Ditto.
28094 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
28095
28096 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
28097 Steven Bosscher <steven@gcc.gnu.org>
28098
28099 PR rtl-optimization/34503
28100 * cprop.c (cprop_reg_p): New.
28101 (hash_scan_set): Use above function to check if register can be
28102 propagated.
28103 (find_avail_set): Return up to two sets, one whose source is a
28104 register and one whose source is a constant. Sets are returned in an
28105 array passed as parameter rather than as a return value.
28106 (cprop_insn): Use a do while loop rather than a goto. Try each of the
28107 sets returned by find_avail_set, starting with the one whose source is
28108 a constant. Use cprop_reg_p to check if register can be propagated.
28109 (do_local_cprop): Use cprop_reg_p to check if register can be
28110 propagated.
28111 (implicit_set_cond_p): Likewise.
28112
28113 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28114
28115 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
28116 (sem_function::equals): IGNORED_NODES parameter is now unused;
28117 update call of equals_private.
28118 (sem_function::equals_private): Do not call equals_wpa; skip
28119 gimple body matching if there is no body.
28120 (sem_function::init): Add logic to hash tthunk info.
28121 (sem_function::parse): Also parse thunks.
28122 * ipa-icf.h (equals_private): Update declaration.
28123
28124 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28125
28126 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
28127 asterisk from name so this can be generated directly.
28128 (*altivec_stvx_<mode>_internal): Likewise.
28129 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
28130 that this is never called during or after reload/lra.
28131 (rs6000_frame_related): Remove split_reg
28132 argument and logic that references it.
28133 (emit_frame_save): Remove last parameter from call to
28134 rs6000_frame_related.
28135 (rs6000_emit_prologue): Remove last parameter from eight calls to
28136 rs6000_frame_related. Force generation of stvx instruction for
28137 Altivec register saves. Remove split_reg handling, which is no
28138 longer needed.
28139 (rs6000_emit_epilogue): Force generation of lvx instruction for
28140 Altivec register restores.
28141
28142 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28143
28144 * config/rs6000/rs6000.opt (mcrypto): Change option description to
28145 match category changes in ISA 2.07B.
28146
28147 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28148
28149 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
28150 iterators.
28151 (cmp_op, cmp_type): New code attributes.
28152 (NEON_VCMP, NEON_VACMP): New int iterators.
28153 (cmp_op_unsp): New int attribute.
28154 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
28155 (neon_vceq<mode>): Delete.
28156 (neon_vc<cmp_op><mode>_insn): New pattern.
28157 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
28158 (neon_vcgeu<mode>): Delete.
28159 (neon_vcle<mode>): Likewise.
28160 (neon_vclt<mode>: Likewise.
28161 (neon_vcage<mode>): Likewise.
28162 (neon_vcagt<mode>): Likewise.
28163 (neon_vca<cmp_op><mode>): New define_expand.
28164 (neon_vca<cmp_op><mode>_insn): New pattern.
28165 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28166
28167 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28168
28169 * tree.h (attribute_value_equal): Declare.
28170 * tree.c (attribute_value_equal): Export.
28171
28172 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28173
28174 * ipa-icf.c (sem_item::compare_attributes): New function.
28175 (sem_item::compare_referenced_symbol_properties): Compare variable
28176 attributes.
28177 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28178 (sem_function::param_used_p): New function.
28179 (sem_function::equals_wpa): Fix attribute comparsion; match
28180 parameter type codes; do not compare paremter flags when
28181 they are not used; compare edge flags; compare indirect calls.
28182 (sem_item::update_hash_by_addr_refs): Hash reference type.
28183 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28184 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28185 reference use type.
28186 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28187 * ipa-icf.h (compare_attributes, param_used_p): Declare.
28188
28189 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28190
28191 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28192 cleanup.
28193 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28194 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28195 (sem_item::compare_referenced_symbol_properties): New.
28196 (sem_item::hash_referenced_symbol_properties): New.
28197 (sem_item::compare_cgraph_references): Rename to ...
28198 (sem_item::compare_symbol_references): ... this one; use
28199 compare_referenced_symbol_properties.
28200 (sem_function::equals_wpa): Do not compare
28201 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28202 DECL_IS_OPERATOR_NEW; compare pointer sizes.
28203 (sem_item::update_hash_by_addr_refs): Call
28204 hash_referenced_symbol_properties.
28205 (sem_item::update_hash_by_local_refs): Cleanup.
28206 (sem_function::merge): Do not mix up symbol properties.
28207 (sem_variable::equals_wpa): Use compare_symbol_references.
28208 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28209 (sem_item::hash_referenced_symbol_properties): New.
28210 (sem_item::compare_symbol_references): New.
28211 (sem_item::compare_cgraph_references): Remove.
28212
28213 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
28214
28215 PR target/26702
28216 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28217 Emit size of local.
28218
28219 2015-04-23 Nick Clifton <nickc@redhat.com>
28220
28221 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28222 ATTRIBUTE_UNUSED to x parameter.
28223 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28224
28225 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28226
28227 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28228 TARGET_CRYPTO to TARGET_P8_VECTOR>
28229 (crypto_vpermxor_<mode>): Likewise.
28230 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28231 (BU_CRYPTO_3A): Likewise.
28232 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28233 (BU_CRYPTO_OVERLOAD_3A): New #define.
28234 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28235 (VPMSUMH): Likewise.
28236 (VPMSUMW): Likewise.
28237 (VPMSUMD): Likewise.
28238 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28239 (VPERMXOR_V4SI): Likewise.
28240 (VPERMXOR_V8HI): Likewise.
28241 (VPERMXOR_V16QI): Likewise.
28242 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28243 BU_CRYPTO_OVERLOAD_2A.
28244 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28245 BU_CRYPTO_OVERLOAD_3A.
28246 * config/rs6000/rs6000.opt (mcrypto): Change description of
28247 option.
28248
28249 2015-04-23 Richard Biener <rguenther@suse.de>
28250
28251 * passes.def: Remove copy propagation passes run directly after CCP.
28252 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28253 SSA names.
28254 (ccp_visit_phi_node): Rework to handle first executable edge
28255 specially.
28256
28257 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
28258
28259 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28260 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28261 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28262 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28263 (thumb_legimitimize_reload_address): Remove.
28264 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28265 Remove.
28266 (thumb_legimitimize_reload_address): Remove.
28267
28268 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28269
28270 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28271
28272 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28273
28274 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28275 MAX_LDM_STM_OPS.
28276 (store_multiple): Likewise.
28277
28278 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28279
28280 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28281 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28282 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28283 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28284 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28285 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28286 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28287 Specify issue_rate value.
28288 (arm_issue_rate): Look up issue rate from tuning structs. Remove
28289 large switch statement.
28290 (arm_marvell_pj4_tune): New struct.
28291 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28292 struct.
28293
28294 2015-04-23 Richard Biener <rguenther@suse.de>
28295
28296 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28297 (vect_find_last_store_in_slp_instance): Rename to ...
28298 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28299 (vect_analyze_slp_cost_1): Use vector_load for constant defs
28300 and vec_construct for external defs when estimating prologue cost.
28301 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28302 Compute costs here only when vectorizing loops.
28303 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28304 have been determined.
28305 (vect_schedule_slp_instance): Simplify vectorized code placement
28306 and prepare for in-BB external defs.
28307 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28308 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28309 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28310 guard.
28311 (vect_model_load_cost): Likewise.
28312 (vectorizable_store): Instead add it here.
28313 (vectorizable_load): Likewise.
28314 (vect_is_simple_use): Dump def type textually.
28315
28316 2015-04-23 Richard Biener <rguenther@suse.de>
28317
28318 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28319 * cfgloop.c (verify_loop_structure): Verify the root loop node.
28320 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28321 instead of get_eh_region_from_lp_number.
28322 * loop-init.c (fix_loop_structure): If we removed a loop, reset
28323 the SCEV cache.
28324
28325 2015-04-23 Anton Blanchard <anton@samba.org>
28326
28327 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28328 need for -mprofile-kernel to save LR to stack.
28329
28330 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28331
28332 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28333 adjustments.
28334 (insn_is_swappable_p): Return 1 for a convert from double to
28335 single precision when all of its uses are splats of BE element
28336 zero.
28337
28338 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
28339
28340 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28341
28342 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28343
28344 PR target/65456
28345 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
28346 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28347 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28348 option.
28349 (rs6000_builtin_mask_for_load): Return 0 for targets with
28350 efficient unaligned VSX accesses so that the vectorizer will use
28351 direct unaligned loads.
28352 (rs6000_builtin_support_vector_misalignment): Always return true
28353 for targets with efficient unaligned VSX accesses.
28354 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28355 stores on targets with efficient unaligned VSX accesses is almost
28356 always the same as the cost of an aligned load or store, so model
28357 it that way.
28358 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28359 unaligned vectors if we have efficient unaligned VSX accesses.
28360 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28361 undocumented option.
28362
28363 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28364
28365 Revert:
28366 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28367
28368 * config.gcc (LIBC_MUSL): New tm_defines macro.
28369 * config/linux.h (OPTION_MUSL): Define.
28370 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28371 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28372 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28373
28374 * config/linux.opt (mmusl): New option.
28375 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28376 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28377
28378 * configure: Regenerate.
28379
28380 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28381
28382 * config.gcc (LIBC_MUSL): New tm_defines macro.
28383 * config/linux.h (OPTION_MUSL): Define.
28384 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28385 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28386 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28387
28388 * config/linux.opt (mmusl): New option.
28389 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28390 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28391
28392 * configure: Regenerate.
28393
28394 2015-04-22 Yury Gribov <y.gribov@samsung.com>
28395
28396 * doc/invoke.texi (-fsanitize-sections): Update description.
28397 * asan.c (set_sanitized_sections): Parse incoming arg.
28398 (section_sanitized_p): Support wildcards.
28399
28400 2015-04-22 Tom de Vries <tom@codesourcery.com>
28401
28402 PR tree-optimization/65823
28403 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28404 equality between ap_copy and ap.
28405
28406 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28407
28408 PR target/47098
28409 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28410
28411 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28412
28413 PR target/47122
28414 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28415
28416 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28417
28418 PR target/55144
28419 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28420 remove already contained t-files.
28421
28422 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28423
28424 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28425 Remove unneeded forward declarations.
28426 (suitable_for_tail_call_opt_p): Commentary typo fix.
28427
28428 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28429
28430 * varasm.c (emit_bss): Remove redundant guard.
28431
28432 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28433
28434 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28435
28436 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28437
28438 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28439
28440 2015-04-22 Hale Wang <hale.wang@arm.com>
28441 Terry Guo <terry.guo@arm.com>
28442
28443 PR rtl-optimization/64818
28444 * combine.c (can_combine_p): Don't combine user-specified
28445 register if it is in an asm input.
28446
28447 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
28448
28449 PR ipa/65076
28450 * passes.def (early_optimizations): Add pass_dse.
28451
28452 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28453
28454 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28455 * reorg.c (redundant_insn): Remove ifdef
28456 INSN_REFERENCES_ARE_DELAYED.
28457 * resource.c (mark_referenced_resources): Likewise.
28458
28459 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28460
28461 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28462 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28463 * resource.c (mark_set_resources): Likewise.
28464
28465 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28466
28467 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28468 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28469 (flow_find_head_matching_sequence): Likewise.
28470 (try_head_merge_bb): Likewise.
28471 * combine.c (can_combine_p): Likewise.
28472 (try_combine): Likewise.
28473 (distribute_notes): Likewise.
28474 * df-problems.c (can_move_insns_across): Likewise.
28475 * final.c (final): Likewise.
28476 * gcse.c (insert_insn_end_basic_block): Likewise.
28477 * ira.c (find_moveable_pseudos): Likewise.
28478 * reorg.c (try_merge_delay_insns): Likewise.
28479 (fill_simple_delay_slots): Likewise.
28480 (fill_slots_from_thread): Likewise.
28481 * sched-deps.c (sched_analyze_2): Likewise.
28482
28483 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28484
28485 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
28486 PIC_OFFSET_TABLE_REGNUM.
28487
28488 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28489
28490 * alias.c (init_alias_target): Remove ifdef
28491 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
28492 * df-scan.c (df_insn_refs_collect): Likewise.
28493 (df_get_regular_block_artificial_uses): Likewise.
28494 (df_get_eh_block_artificial_uses): Likewise.
28495 (df_get_entry_block_def_set): Likewise.
28496 (df_get_exit_block_use_set): Likewise.
28497 * emit-rtl.c (gen_rtx_REG): Likewise.
28498 * ira.c (ira_setup_eliminable_regset): Likewise.
28499 * reginfo.c (init_reg_sets_1): Likewise.
28500 * regrename.c (rename_chains): Likewise.
28501 * reload1.c (reload): Likewise.
28502 (eliminate_regs_in_insn): Likewise.
28503 * resource.c (mark_referenced_resources): Likewise.
28504 (init_resource_info): Likewise.
28505
28506 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28507
28508 * defaults.h (MASK_RETURN_ADDR): New definition.
28509 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28510 MASK_RETURN_ADDR.
28511
28512 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28513
28514 * defaults.h (RETURN_ADDR_OFFSET): New definition.
28515 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28516 RETURN_ADDR_OFFSET.
28517 (expand_builtin_frob_return_addr): Likewise.
28518
28519 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28520
28521 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
28522 (try_redirect_by_replacing_jump): Likewise.
28523 (rtl_tidy_fallthru_edge): Likewise.
28524 * combine.c (insn_a_feeds_b): Likewise.
28525 (find_split_point): Likewise.
28526 (simplify_set): Likewise.
28527 * cprop.c (cprop_jump): Likewise.
28528 * cse.c (cse_extended_basic_block): Likewise.
28529 * df-problems.c (can_move_insns_across): Likewise.
28530 * function.c (emit_use_return_register_into_block): Likewise.
28531 * haifa-sched.c (sched_init): Likewise.
28532 * ira.c (find_moveable_pseudos): Likewise.
28533 * loop-invariant.c (find_invariant_insn): Likewise.
28534 * lra-constraints.c (curr_insn_transform): Likewise.
28535 * postreload.c (reload_combine_recognize_const_pattern):
28536 * Likewise.
28537 * reload.c (find_reloads): Likewise.
28538 * reorg.c (delete_scheduled_jump): Likewise.
28539 (steal_delay_list_from_target): Likewise.
28540 (steal_delay_list_from_fallthrough): Likewise.
28541 (redundant_insn): Likewise.
28542 (fill_simple_delay_slots): Likewise.
28543 (fill_slots_from_thread): Likewise.
28544 (delete_computation): Likewise.
28545 * sched-rgn.c (add_branch_dependences): Likewise.
28546
28547 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28548
28549 * genconfig.c (main): Always define HAVE_cc0.
28550 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
28551 HAVE_cc0.
28552 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28553 (flow_find_head_matching_sequence): Likewise.
28554 (try_head_merge_bb): Likewise.
28555 * cfgrtl.c (rtl_merge_blocks): Likewise.
28556 (try_redirect_by_replacing_jump): Likewise.
28557 (rtl_tidy_fallthru_edge): Likewise.
28558 * combine.c (do_SUBST_MODE): Likewise.
28559 (insn_a_feeds_b): Likewise.
28560 (combine_instructions): Likewise.
28561 (can_combine_p): Likewise.
28562 (try_combine): Likewise.
28563 (find_split_point): Likewise.
28564 (subst): Likewise.
28565 (simplify_set): Likewise.
28566 (distribute_notes): Likewise.
28567 * cprop.c (cprop_jump): Likewise.
28568 * cse.c (cse_extended_basic_block): Likewise.
28569 * df-problems.c (can_move_insns_across): Likewise.
28570 * final.c (final): Likewise.
28571 (final_scan_insn): Likewise.
28572 * function.c (emit_use_return_register_into_block): Likewise.
28573 * gcse.c (insert_insn_end_basic_block): Likewise.
28574 * haifa-sched.c (sched_init): Likewise.
28575 * ira.c (find_moveable_pseudos): Likewise.
28576 * loop-invariant.c (find_invariant_insn): Likewise.
28577 * lra-constraints.c (curr_insn_transform): Likewise.
28578 * optabs.c (prepare_cmp_insn): Likewise.
28579 * postreload.c (reload_combine_recognize_const_pattern):
28580 * Likewise.
28581 * reload.c (find_reloads): Likewise.
28582 (find_reloads_address_1): Likewise.
28583 * reorg.c (delete_scheduled_jump): Likewise.
28584 (steal_delay_list_from_target): Likewise.
28585 (steal_delay_list_from_fallthrough): Likewise.
28586 (try_merge_delay_insns): Likewise.
28587 (redundant_insn): Likewise.
28588 (fill_simple_delay_slots): Likewise.
28589 (fill_slots_from_thread): Likewise.
28590 (delete_computation): Likewise.
28591 (relax_delay_slots): Likewise.
28592 * sched-deps.c (sched_analyze_2): Likewise.
28593 * sched-rgn.c (add_branch_dependences): Likewise.
28594
28595 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28596
28597 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28598 that is trivially ded on non cc0 targets.
28599 (simplify_set): Likewise.
28600 (mark_used_regs_combine): Likewise.
28601 * cse.c (new_basic_block): Likewise.
28602 (fold_rtx): Likewise.
28603 (cse_insn): Likewise.
28604 (cse_extended_basic_block): Likewise.
28605 (set_live_p): Likewise.
28606 * rtlanal.c (canonicalize_condition): Likewise.
28607 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28608
28609 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28610
28611 * conditions.h: Define macros even if HAVE_cc0 is undefined.
28612 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28613 * final.c: Likewise.
28614 * jump.c: Likewise.
28615 * recog.c: Likewise.
28616 * recog.h: Declare functions even when HAVE_cc0 is undefined.
28617 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28618
28619 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28620
28621 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28622 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28623 * builtins.c (expand_builtin): Remove check if
28624 EH_RETURN_DATA_REGNO is defined.
28625 * df-scan.c (df_bb_refs_collect): Likewise.
28626 (df_get_exit_block_use_set): Likewise.
28627 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28628 * ira-lives.c (process_bb_node_lives): Likewise.
28629 * lra-lives.c (process_bb_lives): Likewise.
28630
28631 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28632
28633 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28634 FIRST_PSEUDO_REG): New.
28635 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28636 (ARG_POINTER_REGNUM): Define to ARGP_REG.
28637 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28638 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28639 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28640 (FIRST_INT_REG): New.
28641 (LAST_INT_REG): New.
28642 (FIRST_*_REG): Define using *_REG.
28643 (LAST_*_REG): Ditto.
28644 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28645 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28646 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28647
28648 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28649
28650 * expmed.c: (synth_mult): Only assume overlapping
28651 shift with previous steps in alg_sub_t_m2 case.
28652
28653 2015-04-21 Richard Biener <rguenther@suse.de>
28654
28655 PR tree-optimization/65650
28656 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28657 transitions involving copies.
28658 (set_lattice_value): Adjust for copy lattice state.
28659 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28660 if that doesn't dominate the merge point.
28661 (bit_value_unop): Adjust what we treat as varying mask.
28662 (bit_value_binop): Likewise.
28663 (bit_value_assume_aligned): Likewise.
28664 (evaluate_stmt): When we simplified to a SSA name record a copy
28665 instead of dropping to varying.
28666 (visit_assignment): Simplify.
28667
28668 * gimple-match.h (gimple_simplify): Add another callback.
28669 * gimple-fold.c (fold_stmt_1): Adjust caller.
28670 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28671 for the 2nd callback.
28672 * gimple-match-head.c (gimple_simplify): Add a callback that is
28673 used to valueize the stmt operands and use it that way.
28674
28675 2015-04-21 Richard Biener <rguenther@suse.de>
28676
28677 PR tree-optimization/65788
28678 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28679
28680 2015-04-21 Richard Biener <rguenther@suse.de>
28681
28682 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28683 vec_construct cost by vec_stmt_cost.
28684
28685 2015-04-21 Richard Biener <rguenther@suse.de>
28686
28687 * cfghooks.h (create_basic_block): Replace with two overloads
28688 for RTL and GIMPLE.
28689 (split_block): Likewise.
28690 * cfghooks.c (split_block): Rename to ...
28691 (split_block_1): ... this.
28692 (split_block): Add two type-safe overloads for RTL and GIMPLE.
28693 (split_block_after_labels): Call split_block_1.
28694 (create_basic_block): Rename to ...
28695 (create_basic_block_1): ... this.
28696 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28697 (create_empty_bb): Call create_basic_block_1.
28698 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28699 split_block_after_labels.
28700 * omp-low.c (expand_parallel_call): Likewise.
28701 (expand_omp_target): Likewise.
28702 (simd_clone_adjust): Likewise.
28703 * tree-chkp.c (chkp_get_entry_block): Likewise.
28704 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28705 create_basic_block overload.
28706 (cgraph_node::expand_thunk): Likewise.
28707 * tree-cfg.c (make_blocks): Likewise.
28708 (handle_abnormal_edges): Likewise.
28709 * tree-inline.c (copy_bb): Likewise.
28710
28711 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28712
28713 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28714 New pattern.
28715 (*xor_one_cmplsidi3_ze): Likewise.
28716
28717 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
28718
28719 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28720 use df_remove_problem rather than manually removing problems, leaving
28721 holes in df->problems_in_order[].
28722
28723 2015-04-21 Tom de Vries <tom@codesourcery.com>
28724
28725 PR tree-optimization/65802
28726 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28727
28728 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28729
28730 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28731 Increase to 128.
28732 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28733 at '.'. Assert that there's enough space for everything.
28734
28735 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28736
28737 PR tree-optimization/64950
28738 Revert:
28739 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
28740
28741 PR target/41089
28742 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28743 as volatile.
28744
28745 2015-04-20 Shiva Chen <shiva0217@gmail.com>
28746
28747 PR rtl-optimization/64916
28748 * cfgcleanup.c (values_equal_p): New function.
28749 (can_replace_by): Use it.
28750
28751 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
28752
28753 PR c++/65801
28754 * doc/invoke.texi ([-Wnarrowing]): Update.
28755
28756 2015-04-20 Jeff Law <law@redhat.com>
28757
28758 PR tree-optimization/65658
28759 * tree-ssa-threadupdate.c (redirection_block_p): Remove
28760 redundant test for GIMPLE_ASSIGN in last change.
28761
28762 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
28763
28764 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28765 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28766 (legitimize_tls_address): Ditto.
28767 (ix86_expand_move): Ditto.
28768 (ix86_expand_binary_operator): Remove reload_in_progress checks.
28769 (ix86_expand_unary_operator): Ditto.
28770 * config/i386/predicates.md (index_register_operand): Ditto.
28771
28772 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
28773
28774 * reorg.c (try_merge_delay_insns): Improve correctness checking
28775 for targets with multiple delay slots.
28776
28777 2015-04-20 Jeff Law <law@redhat.com>
28778
28779 PR tree-optimization/65658
28780 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
28781 statements too.
28782
28783 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28784
28785 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
28786 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
28787 Delete.
28788
28789 2015-04-20 Jakub Jelinek <jakub@redhat.com>
28790
28791 PR debug/65807
28792 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
28793
28794 2015-04-20 Richard Biener <rguenther@suse.de>
28795
28796 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
28797 * gimple-fold.c (gimple_build_valueize): New function.
28798 (gimple_build): Always use gimple_build_valueize as valueize hook.
28799
28800 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28801
28802 PR target/64134
28803 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
28804 and overwrite variable parts if <= 1/2 the elements are variable.
28805
28806 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
28807
28808 PR rtl-optimization/65805
28809 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
28810 Don't use difference of offset and previous offset if
28811 update_sp_offset is non-zero.
28812 (eliminate_regs_in_insn): Ditto.
28813 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
28814 lra_eliminate_regs_1 call.
28815 * lra-constraints.c (get_equiv_with_elimination): Ditto.
28816
28817 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
28818
28819 * hash-table.h: Remove version of hash_table that stored value_type *.
28820 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
28821 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
28822 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
28823 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
28824 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
28825 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
28826 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28827 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
28828 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
28829 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
28830 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
28831 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
28832 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
28833 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28834 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
28835 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
28836
28837 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28838 Jakub Jelinek <jakub@redhat.com>
28839
28840 PR target/65787
28841 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
28842 subsequent SH_NONE operand does not overwrite an existing *special
28843 value.
28844 (adjust_extract): Handle case where a vec_extract operation is
28845 wrapped in a PARALLEL.
28846
28847 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28848
28849 PR target/65780
28850 * config/i386/i386.c (ix86_binds_local_p): Define only if
28851 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
28852
28853 2015-04-17 Jeff Law <law@redhat.com>
28854
28855 PR tree-optimization/47679
28856 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
28857 * tree-ssa-scopedtables.c: New file.
28858 * tree-ssa-scopedtables.h: New file.
28859 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
28860 (const_and_copies): Change name/type.
28861 (record_const_or_copy): Move into tree-ssa-scopedtables.c
28862 (record_const_or_copy_1): Similarly.
28863 (restore_vars_to_original_value): Similarly.
28864 (pass_dominator::execute): Create and destroy const_and_copies table.
28865 (thread_across_edge): Update passing of const_and_copies.
28866 (record_temporary_equivalence): Use method calls rather than
28867 manipulating const_and_copies directly.
28868 (record_equality, cprop_into_successor_phis): Similarly.
28869 (dom_opt_dom_walker::before_dom_children): Similarly.
28870 (dom_opt_dom_walker::after_dom_children): Similarly.
28871 (eliminate_redundant_computations): Similarly.
28872 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
28873 (record_temporary_equivalence): Likewise.
28874 (invalidate_equivalences): Likewise.
28875 (record_temporary_equivalences_from_phis): Update due to type
28876 change of const_and_copies. Use method calls rather than
28877 manipulating the stack directly.
28878 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28879 (thread_through_normal_block, thread_across_edge): Likewise.
28880 (thread_across_edge): Likewise.
28881 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28882 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
28883 of equiv_stack.
28884 (identify_jump_threads): Update due to type change of equiv_stack.
28885 (finalize_jump_threads): Delete the equiv_stack when complete.
28886
28887 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
28888
28889 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28890 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28891 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28892
28893 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
28894
28895 PR target/65535
28896 * config.gcc: Exit with a comment when we do not have a major version
28897 number for the FreeBSD target.
28898
28899 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28900
28901 PR target/65689
28902 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28903 maybe_allows_mem bitfields.
28904 (maybe_allows_none_start, maybe_allows_none_end,
28905 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28906 maybe_allows_mem_end): New variables.
28907 (compute_maybe_allows): New function.
28908 (add_constraint): Use it to initialize maybe_allows_reg and
28909 maybe_allows_mem fields.
28910 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28911 is_address constraints such that those that allow neither mem nor
28912 reg come first, then those that only allow reg but not mem, then
28913 those that only allow mem but not reg, then the rest.
28914 (write_allows_reg_mem_function): New function.
28915 (write_tm_preds_h): Call it.
28916 * stmt.c (parse_output_constraint, parse_input_constraint): Use
28917 the generated insn_extra_constraint_allows_reg_mem function
28918 instead of always setting *allows_reg = true; *allows_mem = true;
28919 for unknown extra constraints.
28920
28921 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28922
28923 PR target/65780
28924 * output.h (default_binds_local_p_3): New.
28925 * varasm.c (default_binds_local_p_3): Make it public. Take an
28926 argument to indicate if common symbol may be local. If common
28927 symbol may be local, treat non-external variable as defined
28928 locally.
28929 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28930 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28931 * config/i386/i386.c (ix86_binds_local_p): New.
28932 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28933 ix86_binds_local_p.
28934
28935 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28936
28937 PR debug/65771
28938 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28939 trying mem_loc_descriptor on XEXP (rtl, 0).
28940
28941 2015-04-17 Martin Liska <mliska@suse.cz>
28942
28943 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28944 Release symbol_compare_collection.
28945 * ipa-reference.c: Add TODO that a vector should be released.
28946
28947 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28948
28949 PR target/65296
28950 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28951 to new AVR-LibC file layout (bug #44574).
28952 (*avrlibc_devicelib): Same.
28953 * config/avr/avr-mcus.def: Adjust comments.
28954 * config/avr/avr.opt (nodevicelib): Adjust help.
28955
28956 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
28957
28958 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28959
28960 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
28961
28962 PR c++/64527
28963 * gimplify.c (gimplify_init_constructor): Always emit a
28964 side-effecting constructor.
28965
28966 2015-04-17 Tom de Vries <tom@codesourcery.com>
28967
28968 PR tree-optimization/64950
28969 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28970 in cfun->curr_properties.
28971 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28972 if we generate an IFN_VA_ARG.
28973 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28974 function if PROP_gimple_lva is not set in src function.
28975
28976 2015-04-17 Tom de Vries <tom@codesourcery.com>
28977 Michael Matz <matz@suse.de>
28978
28979 PR tree-optimization/64950
28980 * gimple-iterator.c (update_modified_stmts): Remove static.
28981 * gimple-iterator.h (update_modified_stmts): Declare.
28982 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
28983 (gimplify_va_arg_internal): New function.
28984 (gimplify_va_arg_expr): Use IFN_VA_ARG.
28985 * gimplify.h (gimplify_va_arg_internal): Declare.
28986 * internal-fn.c (expand_VA_ARG): New unreachable function.
28987 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
28988 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
28989 (expand_ifn_va_arg): New function.
28990 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
28991 (pass_stdarg::execute): Call expand_ifn_va_arg.
28992 (pass_data_lower_vaarg): New pass_data.
28993 (pass_lower_vaarg): New gimple_opt_pass.
28994 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
28995 (make_pass_lower_vaarg): New function.
28996 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
28997 properties_required field.
28998 * passes.def (all_passes): Add pass_lower_vaarg.
28999 * tree-pass.h (PROP_gimple_lva): Add define.
29000 (make_pass_lower_vaarg): Declare.
29001
29002 2015-04-17 Tom de Vries <tom@codesourcery.com>
29003
29004 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
29005 * calls.c (call_expr_flags): Same.
29006
29007 2015-04-17 Tom de Vries <tom@codesourcery.com>
29008
29009 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
29010 (pass_stdarg::execute): ... here.
29011
29012 2015-04-17 Tom de Vries <tom@codesourcery.com>
29013 Michael Matz <matz@suse.de>
29014
29015 * tree-cfg.c (make_blocks_1): Factor out of ...
29016 (make_blocks): ... here.
29017 (make_edges_bb): Factor out of ...
29018 (make_edges): ... here.
29019 (gimple_find_sub_bbs): New function.
29020 * tree-cfg.h (gimple_find_sub_bbs): Declare.
29021
29022 2015-04-17 Tom de Vries <tom@codesourcery.com>
29023
29024 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
29025
29026 2015-04-17 Yury Gribov <y.gribov@samsung.com>
29027
29028 * asan.c (set_sanitized_sections): New function.
29029 (section_sanitized_p): Ditto.
29030 (asan_protect_global): Optionally sanitize user-defined
29031 sections.
29032 * asan.h (set_sanitized_sections): Declare new function.
29033 * common.opt (fsanitize-sections): New option.
29034 * doc/invoke.texi (-fsanitize-sections): Document new option.
29035 * opts-global.c (handle_common_deferred_options): Handle new
29036 option.
29037
29038 2015-04-17 Jakub Jelinek <jakub@redhat.com>
29039
29040 PR debug/65771
29041 * dwarf2out.c (loc_list_from_tree): Return NULL
29042 for DEBUG_EXPR_DECL.
29043
29044 2015-04-17 Christian Bruel <christian.bruel@st.com>
29045
29046 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
29047 same attributes.
29048
29049 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29050
29051 * ira-color.c (setup_left_conflict_sizes_p): Do not process
29052 node itself when computing left conflict subnode size.
29053
29054 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29055
29056 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
29057 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
29058 *fop_<mode>_1_sse using enabled attribute. Use
29059 register_mixssei387nonimm_operand operand 1 predicate. Change
29060 alternative 3 constraints from "x" to "v".
29061
29062 2015-04-16 Richard Biener <rguenther@suse.de>
29063
29064 PR tree-optimization/65774
29065 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
29066 bit-value tracking on.
29067
29068 2015-04-16 Richard Biener <rguenther@suse.de>
29069
29070 PR tree-optimization/64277
29071 * tree-vrp.c (check_array_ref): Fix anti-range handling,
29072 simplify upper bound handling.
29073 (search_for_addr_array): Simplify.
29074 (check_array_bounds): Handle ADDR_EXPRs here.
29075 (check_all_array_refs): Simplify.
29076
29077 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
29078
29079 * config/i386/i386.c (print_reg): Rewrite function.
29080
29081 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29082
29083 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
29084 Invert the condition.
29085
29086 2015-04-16 Renlin Li <renlin.li@arm.com>
29087
29088 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
29089 simplifications for UNSIGNED_FLOAT.
29090
29091 2015-04-16 Nick Clifton <nickc@redhat.com>
29092
29093 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
29094 MUL_UNINIT.
29095 (enum rl78_cpu_type): New.
29096 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
29097 (umulhi3_shift_virt): Remove m constraint from operand 1.
29098 (umulqihi3_virt): Likewise.
29099 * config/rl78/rl78.c (rl78_option_override): Add code to process
29100 -mcpu and -mmul options.
29101 (rl78_alloc_physical_registers): Add code to handle divhi and
29102 divsi valloc attributes.
29103 (set_origin): Likewise.
29104 * config/rl78/rl78.h (RL78_MUL_G14): Define.
29105 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
29106 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
29107 __RL78_Gxx__.
29108 (ASM_SPEC): Pass -mcpu on to assembler.
29109 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
29110 (mulqi3_rl78): Likewise.
29111 (mulhi3_g13): Likewise.
29112 (mulhi3): Generate the G13 or G14 versions of the insn directly.
29113 (mulsi3): Likewise.
29114 (mulhi3_g14): Add clobbers of AX and BC.
29115 (mulsi3_g14): Likewise.
29116 (mulsi3_g13): Likewise.
29117 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
29118 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
29119 * config/rl78/rl78.opt (mmul): Initialise value to
29120 RL78_MUL_UNINIT.
29121 (mcpu): New option.
29122 (m13, m14, mrl78): New option aliases.
29123 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
29124 (MULTILIB_DIRNAMES): Add g13 and g14.
29125 * doc/invoke.texi: Document -mcpu and -mmul options.
29126
29127 2015-04-16 Richard Biener <rguenther@suse.de>
29128
29129 * tree-ssa-ccp.c (likely_value): See if we have operands that
29130 are marked as never simulate again and return CONSTANT in this
29131 case.
29132 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
29133 not have any operands that will be simulated again as
29134 not being simulated again.
29135
29136 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
29137
29138 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
29139 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
29140 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
29141 attribute.
29142 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
29143 enabled attribute.
29144 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
29145 *float<SWI48:mode><MODEF:mode>2_sse.
29146 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
29147 enabled attribute.
29148 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
29149 enabled attribute.
29150
29151 2015-04-15 Tom de Vries <tom@codesourcery.com>
29152
29153 PR other/65487
29154 * function.c (push_dummy_function): New function.
29155 (init_dummy_function_start): Use push_dummy_function.
29156 (pop_dummy_function): New function. Factored out of ...
29157 (expand_dummy_function_end): ... here.
29158 * function.h (push_dummy_function, pop_dummy_function): Declare.
29159 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29160 pop_dummy_function.
29161 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29162
29163 2015-04-15 Jeff Law <law@redhat.com>
29164
29165 PR tree-optimization/47679
29166 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29167 need for forward declaration in upcoming changes.
29168 (record_conditions, record_edge_info): Likewise.
29169
29170 PR rtl-optimization/42522
29171 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29172 SIGN_EXTRACT as a whole object rather than simplifying
29173 its operand.
29174
29175 2015-04-15 Jakub Jelinek <jakub@redhat.com>
29176
29177 PR ipa/65765
29178 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29179 and GIMPLE_PREDICT use break instead of return true. For
29180 GIMPLE_EH_DISPATCH, compare dispatch region.
29181
29182 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
29183
29184 * doc/extend.texi (__sync Builtins): Simplify some text. Update
29185 details about the implementation. Make clear preference for
29186 __atomic builtins. Reduce possibility of future change.
29187
29188 2015-04-15 Nick Clifton <nickc@redhat.com>
29189
29190 * config/rx/rx.opt (mallow-string-insns): New option.
29191 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29192 builtin if string instructions are denied.
29193 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29194 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29195 appropriate.
29196 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29197 * config/rx/rx.md (movstr): Enable pattern only if string
29198 instructions are allowed.
29199 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29200 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29201 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29202 (MULTILIB_DIRNAMES): Add no-strings.
29203 * doc/invoke.texi: Document -mno-allow-string-insns.
29204
29205 2015-04-15 Alan Modra <amodra@gmail.com>
29206
29207 PR target/65408
29208 PR target/58744
29209 PR middle-end/36043
29210 * calls.c (load_register_parameters): Don't load past end of
29211 mem unless suitably aligned.
29212
29213 2015-04-15 Nick Clifton <nickc@redhat.com>
29214
29215 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29216 decrement instruction as being frame related.
29217 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29218 based addresses.
29219 If zero extending a function address enclose the operation in
29220 %code(...).
29221 (rl78_preferred_reload_class): New function.
29222 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29223 * config/rl78/rl78.md: Remove useless constraints in expanders.
29224 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29225 (mulhi3_rl78): Likewise.
29226 (mulhi3_g13): Likewise.
29227 (mulsi3_rl78): Likewise.
29228 (es_addr): Move to before the multiply patterns.
29229
29230 2015-04-15 Alan Modra <amodra@gmail.com>
29231
29232 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29233 and sequence_stack. Add seq.
29234 (seq_stack): Delete.
29235 * function.c (prepare_function_start): Don't access x_last_insn.
29236 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29237 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29238 * emit_rtl.c (start_sequence, push_topmost_sequence,
29239 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29240 sequence accessors.
29241 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29242 remove_insn): Likewise. Simplify.
29243 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29244 and pop_topmost_sequence.
29245 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
29246 debug insns.
29247 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29248
29249 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
29250
29251 PR target/65729
29252 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29253 the assertiion.
29254
29255 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29256
29257 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29258 (LEGACY_INT_REGNO_P): Ditto.
29259 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29260 (ANY_MASK_REG_P): Remove.
29261 (BND_REG_P): Rename from ANY_BND_REG_P.
29262 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29263 legacy integer registers. Do not handle MMX_REG_P in a special way.
29264 Merge 64byte and 32byte SSE handling.
29265
29266 2015-04-14 Nick Clifton <nickc@redhat.com>
29267
29268 * expr.c (expand_assignment): Force an address offset computation
29269 into a register before changing its mode.
29270 (expand_expr_real_1): Likewise.
29271
29272 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
29273
29274 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29275 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29276 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29277 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29278 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29279 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29280 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29281 and __aarch64_vget_lane_any.
29282
29283 2015-04-14 Jakub Jelinek <jakub@redhat.com>
29284
29285 PR rtl-optimization/65761
29286 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29287 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29288
29289 2015-04-14 Richard Biener <rguenther@suse.de>
29290
29291 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29292 (graphite_can_represent_scev): Use POINTER_TYPE_P.
29293
29294 2015-04-14 Richard Biener <rguenther@suse.de>
29295
29296 PR tree-optimization/65758
29297 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29298 against -1.
29299 (ccp_lattice_meet): Likewise.
29300 (bit_value_unop): Likewise.
29301 (bit_value_binop): Likewise.
29302 (bit_value_assume_aligned): Likewise.
29303
29304 2015-04-14 Christian Bruel <christian.bruel@st.com>
29305
29306 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29307 function.
29308
29309 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
29310
29311 PR tree-optimization/63387
29312 * match.pd ((x unord x) | (y unord y) -> (x unord y),
29313 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29314
29315 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29316
29317 * config/i386/predicates.md (any_QIreg_operand): Rename from
29318 q_regs_operand. Do not process subregs.
29319 (QIreg_operand): Use QI_REGNO_P predicate.
29320 (ext_QIreg_operand): Ditto.
29321 (ext_register_operand): Ditto.
29322 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29323 (AND splitters): Ditto.
29324 (AND with -65536 splitter): Add SWI48 mode for operand 0.
29325 (AND with -256 splitter): Use any_QIreg_operand predicate and
29326 SWI248 mode for operand 0.
29327 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29328 mode for operand 0.
29329 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29330
29331 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
29332
29333 * doc/plugins.texi: Rewrite first introductory paragraph.
29334
29335 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29336
29337 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29338 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29339
29340 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29341
29342 * ipa-profie.c (ipa_profile): Check number of parameters
29343 and possible polymorphic call targets before
29344 devirtualizing.
29345
29346 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
29347
29348 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29349 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29350
29351 2015-04-13 Richard Biener <rguenther@suse.de>
29352
29353 PR tree-optimization/65204
29354 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29355 takens for bit-CCP.
29356
29357 2015-04-13 Richard Biener <rguenther@suse.de>
29358
29359 PR target/65660
29360 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29361 and cond_not_taken_branch_cost to 4 and 2.
29362 (bdver2_cost): Likewise.
29363 (bdver3_cost): Likewise.
29364 (bdver4_cost): Likewise.
29365
29366 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29367
29368 * hash-table.h (hash_table constructor): Add mem stats.
29369 (alloc_entries): Likewise.
29370
29371 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29372
29373 * ipa-cp.c (ipcp_driver): Relase prev_edge.
29374 * passes.c (execute_one_pass): Only add transform if pass has one.
29375
29376 2015-04-12 Joseph Myers <joseph@codesourcery.com>
29377
29378 * config/i386/i386.c (ix86_option_override_internal): Don't set
29379 -fprefetch-loop-arrays if optimizing for size.
29380
29381 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29382 Gerald Pfeifer <gerald@pfeifer.com>
29383
29384 * doc/contrib.texi (Contributors): Add Martin Jambor and
29385 Michael Matz.
29386
29387 2015-04-12 Jakub Jelinek <jakub@redhat.com>
29388
29389 * BASE-VER: Set to 6.0.0.
29390
29391 PR tree-optimization/65747
29392 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29393 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29394
29395 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29396
29397 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29398 sentence. Improve grammar.
29399
29400 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29401
29402 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29403
29404 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29405
29406 PR ipa/65743
29407 * ipa-inline-transform.c (speculation_removed): Remove static var.
29408 (check_speculations): New function.
29409 (clone_inlined_nodes): Do not check spculations.
29410 (inline_call): Call check_speculations.
29411 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29412 consider non-invariants.
29413
29414 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29415 Martin Liska <mliska@suse.cz>
29416
29417 PR ipa/65722
29418 * ipa-icf.c (sem_item::compare_cgraph_references): function and
29419 variable can not match.
29420 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29421 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29422
29423 2015-04-11 Jakub Jelinek <jakub@redhat.com>
29424
29425 PR tree-optimization/65735
29426 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29427 Remove visited_phis argument, add visited_bbs, avoid recursing into the
29428 same bb rather than just into the same phi node.
29429 (thread_through_normal_block): Adjust caller.
29430
29431 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29432
29433 * doc/contrib.texi (Contributors): Add Ira Rosen.
29434
29435 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
29436
29437 * gcov.c (find_source): Fix miswording in error message.
29438 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29439 (ix86_expand_sse_comi_round): Fix typo in error message.
29440
29441 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29442
29443 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29444
29445 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
29446
29447 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29448
29449 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29450
29451 PR target/65710
29452 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29453 Print bad_spills_num and insn_pseudos_num.
29454
29455 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29456
29457 PR target/65694
29458 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29459 when creating +1 values for SImode.
29460
29461 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29462
29463 PR target/65729
29464 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29465 assert.
29466
29467 2015-04-10 Jakub Jelinek <jakub@redhat.com>
29468 Iain Sandoe <iain@codesourcery.com>
29469
29470 PR target/65351
29471 * configure: Regenerate.
29472
29473 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29474
29475 PR target/65671
29476 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29477
29478 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
29479
29480 * doc/contrib.texi (Contributors): Add John Marino.
29481
29482 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29483
29484 PR tree-optimization/65709
29485 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
29486 TREE_TYPE (TREE_TYPE (t)).
29487
29488 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
29489
29490 PR target/65710
29491 * lra-int.h (lra_bad_spill_regno_start): New.
29492 * lra.c (lra_bad_spill_regno_start): New.
29493 (lra): Set up lra_bad_spill_regno_start. Set up
29494 lra_constraint_new_regno_start unconditionally.
29495 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
29496 spill preferences.
29497
29498 2015-04-09 Marek Polacek <polacek@redhat.com>
29499 Jakub Jelinek <jakub@redhat.com>
29500
29501 PR middle-end/65554
29502 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
29503 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
29504 of STRIP_NOPS.
29505
29506 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
29507
29508 PR rtl-optimization/65693
29509 * combine.c (is_parallel_of_n_reg_sets): Move outside of
29510 #ifndef HAVE_cc0.
29511
29512 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
29513
29514 PR target/65296
29515 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
29516 device specs file if "device-specs%s" didn't resolve to a path.
29517
29518 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29519
29520 PR target/65676
29521 * config/i386/i386.c (fixup_modeless_constant): New.
29522 (ix86_expand_args_builtin): Fixup modeless constant operand.
29523 (ix86_expand_round_builtin): Ditto.
29524 (ix86_expand_special_args_builtin): Ditto.
29525 (ix86_expand_builtin): Ditto.
29526
29527 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29528
29529 PR target/65693
29530 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
29531 any pow2 integer in between 2 and 0x80000000U inclusive.
29532
29533 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
29534
29535 PR rtl-optimization/65693
29536 * combine.c (is_parallel_of_n_reg_sets): Change first argument
29537 from an rtx_insn * to an rtx.
29538 (try_combine): Adjust both callers. Use it once more.
29539
29540 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29541
29542 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
29543 (chkp_make_static_const_bounds): Search existing
29544 symbol by assembler name. Use make_decl_one_only.
29545 (chkp_get_zero_bounds_var): Remove node search which
29546 is now performed in chkp_make_static_const_bounds.
29547 (chkp_get_none_bounds_var): Likewise.
29548
29549 2015-04-08 Michael Witten <mfwitten@gmail.com>
29550
29551 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
29552 to an example.
29553
29554 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29555
29556 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29557
29558 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29559
29560 * doc/extend.texi (__sync Builtins): Fix grammar.
29561
29562 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29563
29564 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
29565
29566 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29567
29568 * varasm.c (emit_local): Move definition of align.
29569
29570 2015-04-08 Julian Brown <julian@codesourcery.com>
29571
29572 * config/nvptx/mkoffload.c (process): Support variable mapping.
29573
29574 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
29575
29576 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29577 alpha_links **.
29578 (alpha_write_one_linkage): Correct typo.
29579
29580 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29581
29582 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29583
29584 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29585
29586 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29587
29588 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29589
29590 * tree-chkp.h (chkp_insert_retbnd_call): New.
29591 * tree-chkp.c (chkp_insert_retbnd_call): New.
29592 * ipa-split.c (insert_bndret_call_after): Remove.
29593 (split_function): Use chkp_insert_retbnd_call.
29594 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29595 bounds for instrumented functions.
29596
29597 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
29598
29599 PR ipa/65540
29600 * calls.c (initialize_argument_information): When producing tail
29601 call also turn SSA_NAMES passed by references to original PARM_DECLs
29602
29603 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
29604
29605 PR target/65648
29606 * lra-remat.c (do_remat): Process input and non-input insn
29607 registers separately.
29608
29609 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29610
29611 PR debug/65678
29612 * valtrack.c (debug_lowpart_subreg): New function.
29613 (dead_debug_insert_temp): Use it.
29614
29615 PR middle-end/65680
29616 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29617 into signed HOST_WIDE_INT the same as negative bit_offset.
29618
29619 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
29620
29621 * ipa-comdats.c (ipa_comdats): Visit all thunks
29622 to set proper comdat group.
29623
29624 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29625
29626 PR target/65489
29627 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29628 on constants for NEON VSTRUCT modes.
29629
29630 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29631 Iain Sandoe <iain@codesourcery.com>
29632
29633 PR target/65351
29634 * configure: Regenerate.
29635
29636 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29637
29638 PR target/65614
29639 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29640 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29641 that LFD is used to load double constants instead of LFS. Add
29642 defaults for all costs structures. Add comments for missing
29643 initialization fields.
29644 (size32_cost): Likewise.
29645 (size64_cost): Likewise.
29646 (rs64a_cost): Likewise.
29647 (mpccore_cost): Likewise.
29648 (ppc403_cost): Likewise.
29649 (ppc405_cost): Likewise.
29650 (ppc440_cost): Likewise.
29651 (ppc476_cost): Likewise.
29652 (ppc601_cost): Likewise.
29653 (ppc603_cost): Likewise.
29654 (ppc604_cost): Likewise.
29655 (ppc604e_cost): Likewise.
29656 (ppc620_cost): Likewise.
29657 (ppc630_cost): Likewise.
29658 (ppccell_cost): Likewise.
29659 (ppc750_cost): Likewise.
29660 (ppc7450_cost): Likewise.
29661 (ppc8540_cost): Likewise.
29662 (ppce300c2c3_cost): Likewise.
29663 (ppce500mc_cost): Likewise.
29664 (ppce500mc64_cost): Likewise.
29665 (ppce5500_cost): Likewise.
29666 (ppce6500_cost): Likewise.
29667 (titan_cost): Likewise.
29668 (power4_cost): Likewise.
29669 (power6_cost): Likewise.
29670 (power7_cost): Likewise.
29671 (power8_cost): Likewise.
29672 (ppca2_cost): Likewise.
29673 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29674
29675 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29676 instead of XXLOR to copy SFmode to clear out dirty bits created
29677 when SFmode denormals are generated.
29678 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29679 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29680
29681 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29682
29683 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29684 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29685 * config/aarch64/aarch64-tune.md: Regenerate.
29686
29687 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29688
29689 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29690 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29691 * config/arm/arm-cores.def (exynos-m1): New core.
29692 * config/arm/arm-tune.md: Regenerate.
29693 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29694 * config/arm/bpabi.h: Likewise.
29695
29696 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29697
29698 * ipa-cp (set_single_call_flag): Remove too
29699 restrictive assert.
29700
29701 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
29702
29703 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29704 GOMP_offload_unregister from the destructor.
29705
29706 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29707
29708 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29709 flags for instrumentation thunk.
29710 (chkp_produce_thunks): Likewise.
29711
29712 2015-04-05 Martin Liska <mliska@suse.cz>
29713
29714 PR ipa/65665
29715 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29716 has computed data structure.
29717 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29718
29719 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
29720
29721 * invoke.texi (inline-unit-growth): Increase growth to 20%
29722 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29723
29724 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
29725
29726 PR target/65647
29727 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
29728 value checking.
29729 (lra_rematerialization_iter): New.
29730 * lra.c (lra): Initialize lra_rematerialization_iter.
29731 Stop updating lra_constraint_new_regno_start after switching of
29732 inheritance and rematerialization.
29733 * lra-remat.c (lra_rematerialization_iter): New.
29734 (lra_remat): Add printing pass iteration. Do rematerialization
29735 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29736
29737 2015-04-04 Richard Biener <rguenther@suse.de>
29738
29739 PR tree-optimization/64909
29740 PR tree-optimization/65660
29741 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29742 to take a cost vector for scalar iteration cost.
29743 (vect_get_single_scalar_iteration_cost): Likewise.
29744 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29745 Compute the scalar iteration cost into a cost vector.
29746 (vect_get_known_peeling_cost): Use the scalar cost vector to
29747 account for the cost of the peeled iterations.
29748 (vect_estimate_min_profitable_iters): Likewise.
29749 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29750 Likewise.
29751
29752 2015-04-04 Alan Modra <amodra@gmail.com>
29753
29754 PR target/65576
29755 PR target/65240
29756 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29757 0.0 constant unless TARGET_VSX.
29758 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29759 alternative.
29760
29761 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29762
29763 PR ipa/65654
29764 * ipa-inline-transform.c (inline_call): Skip sanity check to work
29765 around the ICE
29766
29767 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29768
29769 PR ipa/65655
29770 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29771 speculative indirect edges to avoid ordering issue.
29772
29773 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29774
29775 PR ipa/65076
29776 * ipa-inline.c (edge_badness): Add combined size to the denominator.
29777
29778 2015-04-03 Jakub Jelinek <jakub@redhat.com>
29779
29780 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
29781 TYPE_ARTIFICIAL on the .omp_data* types.
29782
29783 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29784
29785 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
29786 instrumentation thunks.
29787
29788 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29789
29790 * config/i386/i386.c (ix86_expand_call): Avoid nested
29791 PARALLEL in returned call value.
29792
29793 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29794
29795 * lto-cgraph.c (input_cgraph_1): Always link instrumented
29796 assembler name with original one.
29797
29798 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29799
29800 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
29801
29802 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29803
29804 Revert parts of r216820.
29805 * config/i386/i386.md (movqi_internal): Correct type calculation
29806 for alternatives 3 and 5.
29807
29808 2015-04-02 Jakub Jelinek <jakub@redhat.com>
29809
29810 PR preprocessor/61977
29811 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
29812 predefine __vector/__bool/__pixel macros nor context sensitive
29813 macros for CLK_ASM.
29814 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
29815
29816 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
29817
29818 * config/pa/pa.c (pa_output_move_double): Directly handle register
29819 indexed memory operand. Simplify handling of scaled register indexed
29820 memory operands.
29821
29822 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29823
29824 PR driver/65444
29825 * config/i386/linux-common.h (MPX_SPEC): New.
29826 (CHKP_SPEC): Add MPX_SPEC.
29827 * doc/invoke.texi (-fcheck-pointer-boudns): Document
29828 possible issues with '-z bndplt' support in linker.
29829
29830 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29831
29832 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
29833 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
29834 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
29835 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
29836 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
29837
29838 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
29839
29840 * config/i386/sync.md (UNSPEC_MOVA): Remove.
29841 (atomic_load<mode>): Change operand 0 predicate to
29842 nonimmediate_operand and fix up the destination when needed.
29843 Use UNSPEC_LDA.
29844 (atomic_loaddi_fpu): Use UNSPEC_LDA.
29845 (atomic_store<mode>): Change operand 1 predicate to
29846 nonimmendate_operand and move the source to register when needed.
29847 Use UNSPEC_STA.
29848 (atomic_store<mode>_1): Use UNSPEC_STA.
29849 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
29850 Fix moves from memory operand. Use UNSPEC_STA.
29851
29852 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
29853
29854 * expmed.c (strict_volatile_bitfield_p): Check that the access will
29855 not cross a MODESIZE boundary.
29856 (store_bit_field, extract_bit_field): Added assertions in the
29857 strict volatile bitfields code path.
29858
29859 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
29860
29861 PR target/65624
29862 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
29863 Increase args array size by one to avoid buffer overflow.
29864
29865 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29866
29867 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29868 split_part.
29869 * ipa-inline.c (edge_badness): Add wrapper penalty.
29870 (sum_callers): Move up.
29871 (inline_small_functions): Set single_caller.
29872 * ipa-inline.h (inline_summary): Add single_caller.
29873 * ipa-split.c (split_function): Set split_part.
29874 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
29875 * cgraph.h (cgraph_node): Add split_part.
29876
29877 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
29878
29879 PR target/58945
29880 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29881 Do not split operands 0 and operands 2 to halfmode.
29882 (atomic_compare_and_swap<mode>): Update for
29883 atomic_compare_and_swap<dwi>_doubleword changes.
29884
29885 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29886
29887 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29888 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29889 no caching is done.
29890
29891 2015-03-31 Martin Liska <mliska@suse.cz>
29892
29893 PR ipa/65557
29894 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29895 has already filled up function summary.
29896 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29897
29898 2015-03-31 Richard Biener <rguenther@suse.de>
29899
29900 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29901 of types.
29902
29903 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
29904
29905 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29906 nested functions.
29907 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29908 (s390_asm_output_function_label): Adapt to new signature of
29909 s390_function_num_hotpatch_hw
29910 Optimise the code generating assembler output.
29911 Add comments to assembler file.
29912
29913 2015-03-31 Richard Biener <rguenther@suse.de>
29914
29915 PR middle-end/65626
29916 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29917 of the noreturn call so it is last and cleanup_control_flow_bb
29918 can do the CFG part.
29919
29920 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
29921
29922 PR target/65531
29923 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29924 same_comdat_group for external symbols.
29925 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29926 infinite same_comdat_group traversal loop.
29927
29928 2015-03-31 Jakub Jelinek <jakub@redhat.com>
29929
29930 PR plugins/61176
29931 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29932 automatically to $headers.
29933
29934 2015-03-30 Jakub Jelinek <jakub@redhat.com>
29935
29936 PR ipa/65610
29937 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29938 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29939 function.
29940 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29941 Use it.
29942 * ipa-prop.c (param_type_may_change_p): Likewise.
29943 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29944 (remove_unused_scope_block_p): Add in_ctor_dtor_block
29945 argument. Before inlining, preserve
29946 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29947 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
29948 recursive calls.
29949 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29950
29951 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29952
29953 PR ipa/65076
29954 * ipa-inline.c (edge_badness): Base denominator on callee's
29955 grwoth squared.
29956
29957 2015-03-27 Martin Jambor <mjambor@suse.cz>
29958
29959 PR ipa/65478
29960 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29961 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29962 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29963 node_calling_single_call.
29964 * ipa-cp.c (count_callers): New function.
29965 (set_single_call_flag): Likewise.
29966 (initialize_node_lattices): Count callers and set single_flag_call if
29967 necessary.
29968 (incorporate_penalties): New function.
29969 (good_cloning_opportunity_p): Use it, dump new flags.
29970 (propagate_constants_topo): Set node_within_scc flag if appropriate.
29971 * doc/invoke.texi (ipa-cp-recursion-penalty,
29972 ipa-cp-single-call-pentalty): Document.
29973
29974 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29975
29976 PR ipa/65588
29977 * symtab.c (symtab_node::get_partitioning_class): Register vars
29978 are duplicated.
29979 * varpool.c (symbol_table::output_variables) Do not assemble unefined
29980 decls for non-symbols.
29981
29982 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
29983
29984 PR target/65248
29985 * output.h (default_binds_local_p_2): New.
29986 * varasm.c (default_binds_local_p_2): Renamed to ...
29987 (default_binds_local_p_3): This. Don't return true on protected
29988 data symbol if protected data may be external.
29989 (default_binds_local_p): Use default_binds_local_p_3.
29990 (default_binds_local_p_1): Likewise.
29991 (default_binds_local_p_2): New.
29992 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
29993 default_binds_local_p_2 if TARGET_MACHO is undefined.
29994
29995 2015-03-27 Jakub Jelinek <jakub@redhat.com>
29996
29997 PR target/65593
29998 * config/i386/i386.c (legitimize_pic_address): If base
29999 is SYMBOL_REF or LABEL_REF using %rip addressing, force
30000 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
30001
30002 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30003
30004 PR target/65531
30005 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
30006 comdat groups.
30007
30008 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
30009
30010 PR ipa/65600
30011 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
30012 of optimized out indirect call.
30013 (redirect_to_unreachable): Always build symbol table node for
30014 BUILT_IN_UNREACHABLE
30015
30016 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
30017
30018 PR target/65407
30019 * ira-costs.c (record_reg_classes): Process all constraint string
30020 containing 0-9.
30021
30022 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
30023
30024 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
30025 memory_operand.
30026
30027 PR target/65052
30028 * config/c6x/constraints.md (S3): New constraint.
30029 * config/c6x/c6x.md (real_jump): Use it.
30030
30031 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30032
30033 PR middle-end/65595
30034 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
30035 do redirection if the call is not optimized out.
30036
30037 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
30038
30039 PR target/65495
30040 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
30041 (fchkp-check-incomplete-type): Add LTO.
30042 (fchkp-zero-input-bounds-for-main): Likewise.
30043 (fchkp-first-field-has-own-bounds): Likewise.
30044 (fchkp-narrow-bounds): Likewise.
30045 (fchkp-narrow-to-innermost-array): Likewise.
30046 (fchkp-use-static-bounds): Likewise.
30047 (fchkp-use-static-const-bounds): Likewise.
30048 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30049
30050 2015-03-27 Marek Polacek <polacek@redhat.com>
30051
30052 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
30053
30054 2015-03-27 Marek Polacek <polacek@redhat.com>
30055
30056 PR sanitizer/65583
30057 * ubsan.c (ubsan_create_edge): New function.
30058 (instrument_bool_enum_load): Call it.
30059 (instrument_nonnull_arg): Likewise.
30060 (instrument_nonnull_return): Likewise.
30061 (instrument_object_size): Likewise.
30062
30063 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30064
30065 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
30066 auto_vec.
30067
30068 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30069
30070 PR lto/65536
30071 * lto-streamer.h (class lto_location_cache): New.
30072 (struct data_in): Add location_cache.
30073 (lto_input_location): Update prototype.
30074 (stream_input_location_now): New.
30075 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
30076 pointer to location.
30077 (stream_input_location): Update.
30078 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
30079 (warn_odr): Apply location cache before warning.
30080 (lto_input_location): Update prototype.
30081 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
30082 Use stream_input_location_now.
30083 * lto-streamer-in.c (lto_location_cache::current_cache): New static
30084 variable.
30085 (lto_location_cache::cmp_loc): New function.
30086 (lto_location_cache::apply_location_cache): New function.
30087 (lto_location_cache::accept_location_cache): New function.
30088 (lto_location_cache::revert_location_cache): New function.
30089 (lto_location_cache::input_location): New function.
30090 (lto_input_location): Do location caching.
30091 (stream_input_location_now): New function.
30092 (input_eh_region, input_struct_function_base): Use
30093 stream_input_location_now.
30094 (lto_data_in_create): use new.
30095 (lto_data_in_delete): Use delete.
30096 * tree-streamer-in.c (unpack_ts_block_value_fields,
30097 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
30098 lto_input_ts_exp_tree_pointers): Update for cached location api.
30099
30100 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30101
30102 PR ipa/65076
30103 * passes.def: Add pass_nothrow.
30104 * ipa-pure-const.c: (pass_data_nothrow): New.
30105 (pass_nothrow): New.
30106 (pass_nothrow::execute): New.
30107 (make_pass_nothrow): New.
30108 * tree-pass.h (make_pass_nothrow): Declare.
30109
30110 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30111
30112 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
30113 edge to change by speculation resolution or redirection.
30114 (edge_set_predicate): Likewise.
30115 (inline_summary_t::duplicate): Likewise.
30116 (remap_edge_summaries): Likewise.
30117
30118 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30119
30120 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
30121 New macros.
30122 (can_inline_edge_p): Relax option matching for always inline functions.
30123
30124 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
30125
30126 PR target/65561
30127 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
30128 Check operand 4 and operand 0 for equality.
30129 (avx512f_vextract<shuffletype>32x4_1_maskm):
30130 Check operand 6 and operand 0 for equality.
30131 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
30132 for equality.
30133 (vec_extract_hi_<mode>_maskm): Ditto.
30134
30135 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30136
30137 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
30138 dead calls back to live.
30139 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
30140 cross check to ...
30141 (cgraph_node::verify_node): ... here; verify only callee edges,
30142 not caller.
30143 * cif-code.def (CILK_SPAWN): New code.
30144
30145 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
30146
30147 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
30148 (edge_set_predicate): Use it to mark unreachable edges.
30149 (inline_summary_t::duplicate): Remove unnecesary code.
30150 (remap_edge_summaries): Likewise.
30151 (dump_inline_summary): Report contains_cilk_spawn.
30152 (compute_inline_parameters): Compute contains_cilk_spawn.
30153 (inline_read_section, inline_write_summary): Stream
30154 contains_cilk_spawn.
30155 * ipa-inline.c (can_inline_edge_p): Do not touch
30156 DECL_STRUCT_FUNCTION that may not be available;
30157 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
30158 remove check for callee_fun->can_throw_non_call_exceptions and
30159 replace it by optimization attribute check; check for flag_exceptions.
30160 * ipa-inline-transform.c (inline_call): Maintain
30161 DECL_FUNCTION_PERSONALITY
30162 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30163
30164 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30165
30166 PR tree-optimization/65551
30167 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30168 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30169
30170 2015-03-26 Richard Biener <rguenther@suse.de>
30171
30172 PR middle-end/65555
30173 * tree-cfg.c (verify_gimple_call): Do not require a call to
30174 have no LHS if it wasn't recognized as control altering yet.
30175
30176 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30177
30178 PR tree-optimization/64715
30179 * passes.def: Add another instance of pass_object_sizes before ccp1.
30180 * tree-object-size.c (pass_object_sizes::execute): In
30181 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30182 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30183 __bos result and the computed constant. Remove redundant
30184 checks, obsoleted by gimple_call_builtin_p test.
30185
30186 * var-tracking.c (variable_tracking_main_1): Don't track
30187 variables for targetm.no_register_allocation targets.
30188
30189 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
30190
30191 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30192 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30193
30194 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30195
30196 PR target/65569
30197 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30198 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
30199 0.0 is correctly setup.
30200 (extenddftf2_internal): Likewise.
30201
30202 2015-03-25 Sebastian Pop <s.pop@samsung.com>
30203
30204 PR tree-optimization/65177
30205 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30206 (bb_in_bbs): New.
30207 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
30208 edges not adjacent on the path to the original code.
30209
30210 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
30211
30212 PR bootstrap/65537
30213 * doc/install.texi (Building a native compiler): Document new
30214 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
30215 configuration assumes that the host supports the linker plugin.
30216
30217 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
30218
30219 PR target/65508
30220 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30221 chain for generated call.
30222
30223 2015-03-25 Richard Biener <rguenther@suse.de>
30224
30225 * passes.c (pass_manager::execute_early_local_passes): Guard
30226 execution of pass_chkp_instrumentation_passes with
30227 flag_check_pointer_bounds.
30228 (pass_chkp_instrumentation_passes::gate): Likewise.
30229
30230 2015-03-25 Martin Liska <mliska@suse.cz>
30231
30232 PR tree-optimization/65538
30233 * symbol-summary.h (function_summary::~function_summary):
30234 Relese memory for allocated summaries.
30235 (function_summary::release): New function.
30236
30237 2015-03-25 Jakub Jelinek <jakub@redhat.com>
30238
30239 PR lto/65515
30240 * lto-streamer-out.c (DFS::worklist): New struct.
30241 (DFS::worklist_vec): New data member.
30242 (DFS::next_dfs_num): Remove.
30243 (DFS::DFS): Rewritten using worklist instead of recursion,
30244 using most of code from DFS::DFS_write_tree.
30245 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30246 pass it to DFS_write_tree calls.
30247 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30248 quick initial checks push it into worklist_vec and return.
30249
30250 2015-03-25 Richard Biener <rguenther@suse.de>
30251
30252 PR middle-end/65519
30253 * genmatch.c (expr::gen_transform): Re-write to avoid
30254 using gimple_build.
30255
30256 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30257
30258 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30259
30260 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30261
30262 * config/arm/arm.opt (print_tune_info): New option.
30263 * config/arm/arm.c (arm_print_tune_info): New function.
30264 (arm_file_start): Call arm_print_tune_info.
30265 * config/arm/arm-protos.h (struct tune_params): Add comment.
30266 * doc/invoke.texi (@item -mprint-tune-info): New item.
30267 (-mtune): mention it in ARM Option Summary.
30268
30269 2015-03-25 DJ Delorie <dj@redhat.com>
30270
30271 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30272 correct clause.
30273
30274 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
30275 Martin Liska <mliska@suse.cz>
30276
30277 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30278 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30279 (sem_item::add_type): New function.
30280 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30281 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30282 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30283 (sem_function::equals_wpa): Fix typo.
30284 * ipa-icf.h (sem_item::add_type): New function.
30285 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30286 order.
30287
30288 2015-03-24 Jakub Jelinek <jakub@redhat.com>
30289
30290 PR tree-optimization/65533
30291 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30292 with swapped operands, call vect_free_slp_tree on
30293 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30294 vector.
30295
30296 2015-03-24 Richard Biener <rguenther@suse.de>
30297
30298 PR middle-end/65517
30299 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30300 for fixup if necessary.
30301
30302 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
30303
30304 * doc/extend.texi (Function Attributes): Add @cindex entries
30305 for all attributes and regularize their format. Delete text
30306 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
30307 information about "eightbit_data", "tiny_data", and "model"
30308 variable attributes to the Variable Attributes section. Fix
30309 some obvious typos and copy-editing issues.
30310 (Variable Attributes, Type Attributes): Likewise add/fix
30311 @cindex entries for all attributes.
30312
30313 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30314
30315 PR target/65523
30316 * tree-chkp.c (chkp_build_returned_bound): Ignore
30317 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30318
30319 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
30320
30321 PR target/65505
30322 * config/sh/predicates.md (simple_mem_operand,
30323 displacement_mem_operand): Add test for reg.
30324 (short_displacement_mem_operand): Test for displacement_mem_operand
30325 before invoking sh_disp_addr_displacement.
30326 * config/sh/constraints.md (Sdd, Sra): Simplify.
30327 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30328 Remove redundant displacement_mem_operand tests.
30329
30330 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
30331
30332 PR target/65296
30333 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30334 the same -mmcu=MCU more than once.
30335
30336 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30337
30338 PR bootstrap/65522
30339 * ipa-devirt.c: Remove duplicate demangle.h include.
30340
30341 PR target/65504
30342 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30343 on the pseudo.
30344 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30345 REG_POINTER on *destptr after adjusting it for prologue size.
30346
30347 PR ipa/65521
30348 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30349 ultimate_alias_target ()->order ints instead of
30350 ultimate_alias_target () pointers.
30351
30352 2015-03-23 Richard Biener <rguenther@suse.de>
30353
30354 PR tree-optimization/65518
30355 * tree-vect-stmts.c (vectorizable_load): Reject single-element
30356 interleaving cases we generate absymal code for.
30357
30358 2015-03-23 Richard Biener <rguenther@suse.de>
30359
30360 PR tree-optimization/65494
30361 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30362 matches here.
30363 (vect_analyze_slp_instance): But do that here, always and once.
30364
30365 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30366
30367 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30368 adding T or multiplying by T+1 and subracting T.
30369
30370 2015-03-22 Jeff Law <law@redhat.com>
30371
30372 PR rtl-optimization/64317
30373 * Makefile.in (OBJS): Add gcse-common.c
30374 * gcse.c: Include gcse-common.h
30375 (struct modify_pair_s): Move structure definition to gcse-common.h
30376 (compute_transp): Move function to gcse-common.c.
30377 (canon_list_insert): Similarly.
30378 (record_last_mem_set_info): Break out some code and put it into
30379 gcse-common.c. Call into the new common code.
30380 (compute_local_properties): Pass additional arguments to compute_transp.
30381 * postreload-gcse.c: Include gcse-common.h and df.h
30382 (modify_mem_list_set, blocks_with_calls): New variables.
30383 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30384 (get_bb_avail_insn): Pass in the expression index too.
30385 (alloc_mem): Allocate memory for the new bitmaps and lists.
30386 (free_mem): Free memory for the new bitmaps and lists.
30387 (insert_expr_in_table): Record a bitmap index for each entry we
30388 add to the table.
30389 (record_last_mem_set_info): Call into common code in gcse-common.c.
30390 (get_bb_avail_insn): If no available insn was found in the requested
30391 BB. If BB has a single predecessor, see if the expression is
30392 transparent in BB and available in that single predecessor.
30393 (compute_expr_transp): New wrapper for compute_transp.
30394 (eliminate_partially_redundant_load): Pass expression's bitmap_index
30395 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
30396 (gcse_after_reload_main): If there are elements in the hash table,
30397 then compute transparency for all the elements in the hash table.
30398 * gcse-common.h: New file.
30399 * gcse-common.c: New file.
30400
30401 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
30402
30403 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30404 as an adjective.
30405 (System Headers): Likewise.
30406 (Ifdef): Likewise.
30407 (Traditional macros): Likewise.
30408 (Invocation): Likewise.
30409 (Option Index): Likewise.
30410 * doc/cppopts.texi (-M): Likewise.
30411 (-finput-charset): Likewise.
30412 (--help): Likewise.
30413 * doc.invoke.texi (AVR Options): Likewise.
30414 (V850 Options): Likewise.
30415
30416 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
30417
30418 PR ipa/65475
30419 * ipa-devirt.c: Include demangle.h
30420 (odr_type_d): Add field rtti_broken.
30421 (odr_subtypes_equivalent_p): Do not require name to match.
30422 (compare_virtual_tables): Fix typo; if type already has ODR violation,
30423 bypass the tests; be ready for function referneces in vtables that are
30424 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30425 (warn_odr): Give up for nameless types.
30426 (warn_types_mismatch): Report mismatch in mangled names;
30427 report mismatch in anonymous namespaces; look into component types to
30428 give useful error; report when mismatch is dragged in from other ODR
30429 type.
30430 (odr_types_equivalent_p): Match types for being polymorphic; avoid
30431 duplicated diagnostics.
30432 (add_type_duplicate): Reorder checks so more informative ones come
30433 first; fix typo; do not output "the extra base is defined here" when
30434 we did not warn.
30435 (BINFO_N_BASE_BINFOS): Relax sanity check.
30436
30437 2015-03-22 Martin Liska <mliska@suse.cz>
30438 Jakub Jelinek <jakub@redhat.com>
30439
30440 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30441 masks that can potentially include a builtin.
30442 (ix86_add_new_builtins): Introduce fast filter for isa values
30443 that cannot trigger builtin inclusion.
30444
30445 2015-03-22 Martin Liska <mliska@suse.cz>
30446
30447 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30448 (sem_item::update_hash_by_local_refs): Likewise.
30449 (sem_variable::get_hash): Empty line is fixed.
30450 (sem_item_optimizer::execute): Include adding of hash references.
30451 (sem_item_optimizer::update_hash_by_addr_refs): New function.
30452 (sem_item_optimizer::build_hash_based_classes): Use local hash.
30453 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30454 (sem_item::update_hash_by_local_refs): Likewise.
30455
30456 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30457
30458 PR ipa/65502
30459 * ipa-comdats.c (enqueue_references): Walk through thunks.
30460 (ipa_comdats): Likewise.
30461 (set_comdat_group_1): New function.
30462
30463 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30464
30465 PR ipa/65475
30466 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30467 non-polymorphic
30468
30469 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
30470 Gerald Pfeifer <gerald@pfeifer.com>
30471
30472 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30473
30474 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
30475 Sandra Loosemore <sandra@codesourcery.com>
30476
30477 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
30478 function parameter declaration.
30479 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
30480 Update arguments to nios2_adjust_call_address().
30481 (sibcall_internal): Rename from *sibcall.
30482 (sibcall_value_internal): Rename from *sibcall_value.
30483 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
30484 (nios2_large_got_address): Add target temp reg parameter.
30485 (nios2_got_address): Adjust call to nios2_large_got_address, add
30486 force_reg around it.
30487 (nios2_load_pic_address): Add target temp reg parameter, replace call
30488 to nios2_got_address with corresponding code.
30489 (nios2_legitimize_constant_address): Update call to
30490 nios2_load_pic_address.
30491 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
30492 to use temp reg for PIC loading purposes.
30493 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
30494 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30495 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
30496
30497 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30498
30499 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
30500 usage of "the @option{...}".
30501 (-Wopenmp-simd): Likewise.
30502 (-fsanitize-recover): Likewise.
30503 (-fsanitize-undefined-trap-on-error): Likewise.
30504 (-flto): Likewise.
30505 (tracer-dynamic-coverage-feedback): Likewise.
30506 (reorder-block-duplicate-feedback): Likewise.
30507 (loop-unroll-jam-size): Likewise.
30508 (-B): Likewise.
30509 (-I-): Likewise.
30510 (-mabs=legacy): Likewise.
30511 (-mupper-regs-df): Likewise.
30512 (-mupper-regs-sf): Likewise.
30513 (-mpointers-to-nested-functions): Likewise.
30514
30515 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30516
30517 * doc/extend.texi (Cilk Plus Builtins): Add markup.
30518
30519 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30520
30521 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
30522 additional index entries and cross-references.
30523 (-fchkp-check-incomplete-type): Likewise.
30524 (-fchkp-first-field-has-own-bounds): Likewise.
30525 (-fchkp-narrow-to-innermost-array): Likewise.
30526 (-fchkp-use-fast-string-functions): Likewise.
30527 (-fchkp-use-nochk-string-functions): Likewise.
30528 (-fchkp-use-static-const-bounds): Likewise.
30529 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30530 (-fchkp-instrument-marked-only): Likewise.
30531 (-fchkp-use-wrappers): Likewise.
30532 (-static-libmpx): Likewise.
30533 (-static-libmpxwrappers): Likewise.
30534 * doc/extend.texi (bnd_legacy): Likewise.
30535 (bnd_instrument): Likewise.
30536 (bnd_variable_size): Likewise.
30537 (Pointer Bounds Checker builtins): Likewise.
30538
30539 2015-03-21 Tom de Vries <tom@codesourcery.com>
30540
30541 PR tree-optimization/65458
30542 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
30543 * cgraph.h (cgraph_node): Add parallelized_function field.
30544 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
30545 (input_overwrite_node): Read parallelized_function field.
30546 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
30547 parallelized_function on cgraph_node for child_fn.
30548 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
30549 Remove include of gt-tree-parloops.h.
30550 (parallelized_functions): Remove static variable.
30551 (parallelized_function_p): Rewrite using parallelized_function field of
30552 cgraph_node.
30553 (create_loop_fn): Remove adding to parallelized_functions.
30554 * Makefile.in (GTFILES): Remove tree-parloops.c
30555
30556 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
30557
30558 PR rtl-optimization/64366
30559 * lra.c (lra_update_insn_regno_info): Consider regs in
30560 CALL_INSN_FUNCTION_USAGE memory.
30561
30562 2015-03-20 Richard Biener <rguenther@suse.de>
30563
30564 PR middle-end/64715
30565 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
30566 for type comparison and gcc_checking_assert.
30567 (chrec_fold_plus_poly_poly): Likewise.
30568 (chrec_fold_multiply_poly_poly): Likewise.
30569 (chrec_convert_1): Likewise.
30570 * gimplify.c (gimplify_expr): Remove premature folding of
30571 &X + CST to &MEM[&X, CST].
30572
30573 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30574
30575 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30576 already is final.
30577 (ipa_inline): Recompute inline_failed codes.
30578 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30579 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30580 CIF_FINAL_ERROR.
30581
30582 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
30583
30584 PR rtl-optimization/60851
30585 * recog.c (constrain_operands): Accept a pseudo register before reload
30586 for LRA enabled targets.
30587
30588 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
30589
30590 PR target/65240
30591 * config/rs6000/predicates.md (easy_fp_constant): Remove special
30592 -ffast-math handling that kept non-0 constants live in the RTL
30593 until reload. Remove logic testing the number of instructions it
30594 took to create a constant in a GPR that was never used, due to a
30595 test for soft-float earlier.
30596 (memory_fp_constant): Delete, no longer used.
30597
30598 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30599 alternatives for loading non-0 constants into GPRs for hard
30600 floating point that is no longer needed due to changes in
30601 easy_fp_constant. Add support for loading 0.0 into GPRs.
30602 (mov<mode>_hardfloat32): Likewise.
30603 (mov<mode>_hardfloat64): Likewise.
30604 (mov<mode>_64bit_dm): Likewise.
30605 (movtd_64bit_nodm): Likewise.
30606 (pre-reload move FP constant define_split): Delete define_split,
30607 since it is no longer used.
30608 (extenddftf2_internal): Remove GHF constraints that are not valid
30609 for extenddftf2.
30610
30611 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
30612
30613 PR rtl-optimization/63491
30614 * lra-constraints.c (check_and_process_move): Use src instead of
30615 sreg. Remove some dead code.
30616
30617 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
30618
30619 PR ipa/65380
30620 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30621 (sem_variable::merge): Likewise.
30622
30623 2015-03-19 Martin Liska <mliska@suse.cz>
30624
30625 PR ipa/65465
30626 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30627 all fields of cgraph_thunk_info.
30628
30629 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
30630
30631 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30632 clone instrumented thunks.
30633
30634 2015-03-19 Richard Biener <rguenther@suse.de>
30635
30636 Revert
30637 2015-03-10 Richard Biener <rguenther@suse.de>
30638
30639 PR middle-end/63155
30640 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30641 * tree-ssa-coalesce.c: Include timevar.h.
30642 (attempt_coalesce): Handle graph being NULL.
30643 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30644 Split out abnormal coalescing to ...
30645 (perform_abnormal_coalescing): ... this function.
30646 (coalesce_ssa_name): Perform abnormal coalescing without computing
30647 live/conflict.
30648 (verify_ssa_coalescing_worker): New function.
30649 (verify_ssa_coalescing): Likewise.
30650
30651 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
30652 Jakub Jelinek <jakub@redhat.com>
30653
30654 PR sanitizer/65400
30655 * tsan.c (instrument_gimple): Clear tail call flag on
30656 calls.
30657
30658 2015-03-19 Jakub Jelinek <jakub@redhat.com>
30659
30660 PR sanitizer/65400
30661 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30662 call in the return bb.
30663 (find_split_points): Add RETURN_BB argument, don't call
30664 find_return_bb.
30665 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
30666 if true append TSAN_FUNC_EXIT internal call after the call to
30667 the split off function.
30668 (execute_split_functions): Call find_return_bb here.
30669 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30670 Adjust find_split_points and split_function calls.
30671
30672 2015-03-18 DJ Delorie <dj@redhat.com>
30673
30674 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30675 (iorqi3_virt): Likewise.
30676
30677 2015-03-18 Tom de Vries <tom@codesourcery.com>
30678
30679 * tree-parloops.c (parallelize_loops): Make static.
30680 * tree-parloops.h (parallelize_loops): Remove extern declaration.
30681
30682 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
30683
30684 PR middle-end/64491
30685 Revert:
30686 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
30687
30688 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30689 condition would be removed due to undefined behaviour.
30690
30691 2015-03-18 Martin Liska <mliska@suse.cz>
30692
30693 PR ipa/65432
30694 * cgraph.c (cgraph_node::get_create): Remove unnecessary
30695 xstrdup_for_dump wrapper.
30696 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30697 sem_item::name.
30698 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30699 with xstrdup_for_dump.
30700 (sem_variable::equals): Likewise.
30701 (sem_item_optimizer::read_section): Use symtab_node::name instead of
30702 sem_item::name.
30703 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30704 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30705 symtab_node::asm_name with xstrdup_for_dump.
30706 (congruence_class::dump): Use symtab_node::name instead of
30707 sem_item::name.
30708 * ipa-icf.h (symtab_node::name): Remove.
30709 (symtab_node::asm_name): Likewise.
30710
30711 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30712
30713 PR tree-optimization/65450
30714 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30715 function.
30716 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30717 it instead of duplicate_ssa_name_ptr_info.
30718
30719 PR target/65222
30720 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30721
30722 2015-03-18 Richard Biener <rguenther@suse.de>
30723
30724 * tree-data-ref.h (struct access_matrix): Remove.
30725 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30726 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30727 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30728 (am_vector_index_for_loop): Likewise.
30729 (struct data_reference): Remove access_matrix member.
30730 (DR_ACCESS_MATRIX): Remove.
30731 (lambda_vector_new): Add comment.
30732 (lambda_matrix_new): Use XOBNEWVEC.
30733
30734 2015-03-18 Richard Biener <rguenther@suse.de>
30735
30736 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30737 (pass_ch::execute): Cleanup the CFG only if we did sth.
30738 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30739
30740 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30741
30742 * expmed.c (synth_mult): Use std::swap instead of manually
30743 swapping algorithms.
30744
30745 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30746
30747 PR target/65078
30748 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30749
30750 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
30751
30752 PR target/65296
30753 * config/avr/avr.opt (-nodevicelib): New option.
30754 * doc/invoke.texi (AVR Options): Document it.
30755 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30756 libgcc.a, libc.a, libm.a.
30757 * config/avr/specs.h: Same.
30758 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30759 which don't (directly) depend on the device. Print more help.
30760 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30761 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30762 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30763 case of an error.
30764 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30765 for specs file name.
30766 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30767 * config/avr/avr-mcus.def: Adjust initializers and comments.
30768
30769 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
30770
30771 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30772 DECL_ONE_ONLY to check if decl is one only.
30773 * ipa-split.c (consider_split): Limit splitt of one only functions.
30774
30775 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30776
30777 PR tree-optimization/65427
30778 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
30779 functions.
30780 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
30781
30782 2015-03-16 Marek Polacek <polacek@redhat.com>
30783
30784 * cgraph.h (add_new_static_var): Remove declaration.
30785 * varpool.c (add_new_static_var): Remove function.
30786
30787 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30788
30789 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
30790 instead of vec<tree> * with vec_alloc and release for args.
30791 Adjust all users.
30792
30793 PR middle-end/65431
30794 * omp-low.c (delete_omp_context): Only splay_tree_delete
30795 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
30796 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
30797
30798 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
30799
30800 PR sanitizer/64820
30801 * cfgexpand.c (align_base): New function.
30802 (alloc_stack_frame_space): Call it.
30803 (expand_stack_vars): Align prev_frame to be sure
30804 data->asan_vec elements aligned properly.
30805
30806 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
30807
30808 PR middle-end/65409
30809 * expr.c (store_field): Do not do a direct block copy if the source is
30810 a PARALLEL with BLKmode.
30811
30812 2015-03-16 Tom de Vries <tom@codesourcery.com>
30813
30814 PR middle-end/65414
30815 Revert:
30816 2015-03-12 Tom de Vries <tom@codesourcery.com>
30817
30818 PR rtl-optimization/64895
30819 * lra-lives.c (check_pseudos_live_through_calls): Use
30820 actual_call_used_reg_set instead of call_used_reg_set, if available.
30821
30822 2015-03-16 Alan Modra <amodra@gmail.com>
30823
30824 PR target/63150
30825 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
30826 Modify Z->r bswapdi splitter to use dest in place of scratch.
30827 In r->Z and Z->r bswapdi splitter rename word_high, word_low
30828 to word1, word2 and rearrange logic to suit.
30829 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
30830 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
30831 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
30832 Add one '?' on r->r. Modify Z->r splitter to avoid need for
30833 early clobber.
30834
30835 2015-03-14 Jakub Jelinek <jakub@redhat.com>
30836
30837 PR tree-optimization/65369
30838 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
30839 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
30840 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
30841
30842 PR tree-optimization/65418
30843 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
30844 are casts in the first PLUS_EXPR operand, ensure tbias and
30845 *totallowp are in the inner type.
30846
30847 PR rtl-optimization/65401
30848 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
30849 argument. If true, adjust_address_nv of x with big-endian
30850 correction for the mode widening to GET_MODE (y).
30851 (make_field_assignment): Don't do MEM mode widening here.
30852 Use MEM_P instead of GET_CODE == MEM.
30853
30854 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
30855
30856 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
30857 the external decls.
30858
30859 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30860
30861 PR target/64600
30862 * config/arm/arm.c (arm_gen_constant, AND case): Use
30863 ARM_SIGN_EXTEND when constructing AND mask.
30864
30865 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30866
30867 * graph.c (print_graph_cfg): Make function names visible and append
30868 parenthesis to it. Also make groups of basic blocks belonging to the
30869 same function visible.
30870
30871 2015-03-12 Richard Biener <rguenther@suse.de>
30872
30873 PR middle-end/44563
30874 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
30875 to avoid quadratic behavior with inline expansion splitting blocks.
30876 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
30877 with the successor if the predecessor will be merged with it.
30878 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30879 entry block with its successor.
30880
30881 2015-03-13 Richard Biener <rguenther@suse.de>
30882
30883 PR middle-end/44563
30884 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30885 (cleanup_tree_cfg_1): Do not call it.
30886 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30887 (fixup_noreturn_call): Mark the stmt as control altering.
30888 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30889 here.
30890 (pass_data_fixup_cfg): Produce a dump file.
30891 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30892 (need_noreturn_fixup): New global.
30893 (pass_dominator::execute): Fixup queued noreturn calls.
30894 (optimize_stmt): Queue calls that became noreturn for fixup.
30895 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30896 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30897 (el_to_fixup): New global.
30898 (eliminate_dom_walker::before_dom_childre): Queue calls that
30899 became noreturn for fixup.
30900 (eliminate): Fixup queued noreturn calls.
30901 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30902 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30903 (substitute_and_fold_dom_walker::before_dom_children): Queue
30904 alls that became noreturn for fixup.
30905 (substitute_and_fold): Fixup queued noreturn calls.
30906
30907 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
30908
30909 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30910 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30911 are building; for methods check ODR type of class they belong to if
30912 they may lead to a polymorphic call.
30913 (sem_function::compare_polymorphic_p): Be bit smarter about testing
30914 when function may lead to a polymorphic call.
30915 (sem_function::compare_type_list): Remove.
30916 (sem_variable::equals): Update use of compatible_types_p.
30917 (sem_variable::parse_tree_refs): Remove.
30918 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30919 cdtor.
30920 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30921 matching here.
30922 (func_checker::compatible_polymorphic_types_p): Break out from ...
30923 (unc_checker::compatible_types_p): ... here.
30924 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30925 Declare.
30926 (unc_checker::compatible_types_p): Update.
30927 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30928 Remove.
30929
30930 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30931
30932 PR rtl-optimization/65235
30933 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30934 When first element of vec_concat is const_int, calculate its size
30935 using second element.
30936
30937 2015-03-12 Richard Biener <rguenther@suse.de>
30938
30939 PR middle-end/65270
30940 * fold-const.c (operand_equal_p): Fix ordering of resetting
30941 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30942
30943 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30944
30945 * config/s390/s390.c (s390_reorg): Move code to output nops after label
30946 to s390_reorg ().
30947 (s390_asm_output_function_label): Likewise.
30948 * config/s390/s390.c (s390_asm_output_function_label):
30949 Fix function label alignment with -mhtopatch.
30950 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30951 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30952 ("nop_2_byte"): New define_insn.
30953 ("nop_4_byte"): Likewise.
30954 ("nop_6_byte"): Likewise.
30955 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30956 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30957
30958 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30959
30960 PR target/65103
30961 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30962 register.
30963
30964 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30965
30966 PR target/65044
30967 * toplev.c (process_options): Restrict Pointer Bounds Checker
30968 usage with Address Sanitizer.
30969
30970 2015-03-12 Richard Biener <rguenther@suse.de>
30971
30972 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30973 to split on.
30974 * omp-low.c (expand_omp_taskreg): Split block before removing
30975 the stmt.
30976 (expand_omp_target): Likewise.
30977 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30978 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30979 stmt to split_block.
30980
30981 2015-03-12 Tom de Vries <tom@codesourcery.com>
30982
30983 PR rtl-optimization/64895
30984 * lra-lives.c (check_pseudos_live_through_calls): Use
30985 actual_call_used_reg_set instead of call_used_reg_set, if available.
30986
30987 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30988
30989 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
30990 (cgraph_node::remove): Likewise.
30991 (cgraph_node::get_untransformed_body): Likewise.
30992 * varpool.c (varpool_node::remove): Likewise.
30993 (varpool_node::get_constructor): Add sanity check.
30994
30995 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
30996
30997 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
30998 old GCC versions.
30999 (-fabi-compat-version): Likewise.
31000 (-ffriend-injection): Likewise.
31001 (-Wdeclaration-after-statement): Likewise.
31002 (-fomit-frame-pointer): Likewise.
31003 (-ftree-coalesce-inlined-vars): Likewise.
31004 (-fvisibility=): Likewise.
31005 * doc/extend.texi (Typeof): Likewise.
31006 (Zero Length): Likewise.
31007 (Escaped Newlines): Likewise.
31008 (Compound Literals): Likewise.
31009 (Function Attributes): Likewise.
31010 (Label Attributes): Likewise.
31011 (Type Attributes): Likewise.
31012 (Function Names): Likewise.
31013 (Other Builtins): Likewise.
31014 (Function Specific Option Pragmas): Likewise.
31015 (C++ Interface): Likewise.
31016
31017 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
31018
31019 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
31020
31021 2015-03-11 Marek Polacek <polacek@redhat.com>
31022
31023 PR tree-optimization/65388
31024 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
31025
31026 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31027
31028 PR target/65296
31029 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
31030 * configure: Regenerate.
31031 * config.in: Regenerate.
31032 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
31033 [-mn-flash]: Document it.
31034 [__AVR_ARCH__]: Document avrtiny.
31035
31036 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
31037 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
31038 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
31039
31040 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31041
31042 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
31043
31044 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
31045
31046 PR target/65242
31047 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
31048 allow reloads of PLUS in floating point/VSX registers.
31049
31050 2015-03-11 Junmo Park <junmoz.park@samsung.com>
31051
31052 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
31053 crypto_sha256_fast.
31054 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
31055
31056 2015-03-11 Richard Biener <rguenther@suse.de>
31057
31058 PR tree-optimization/65310
31059 * tree-sra.c (build_ref_for_offset): Also preserve larger
31060 alignment.
31061
31062 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
31063
31064 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
31065
31066 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31067
31068 PR target/65368
31069 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
31070 new define_expand.
31071 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
31072
31073 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31074
31075 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
31076 (sem_function::equals_wpa): ... here.
31077
31078 2015-03-10 Marek Polacek <polacek@redhat.com>
31079 Jakub Jelinek <jakub@redhat.com>
31080
31081 PR sanitizer/65367
31082 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
31083 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
31084 separately.
31085
31086 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31087
31088 PR target/65286
31089 * config/rs6000/t-linux: For powerpc64* target set
31090 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
31091
31092 2015-03-10 Richard Biener <rguenther@suse.de>
31093
31094 PR middle-end/44563
31095 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
31096 for redirect_all_calls.
31097
31098 2015-03-10 Marek Polacek <polacek@redhat.com>
31099
31100 * gdbinit.in (pcfun): Define and document.
31101
31102 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
31103
31104 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
31105 of libgomp-plugin.h.
31106 (find_target_compiler): Support a case when the path to gcc is
31107 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
31108 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
31109 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
31110 libgomp-plugin.h.
31111 (main): Use GCC_INSTALL_NAME as target_driver_name.
31112 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
31113 define.
31114 (mkoffload.o): Remove obsolete include path and defines.
31115 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
31116
31117 2015-03-10 Richard Biener <rguenther@suse.de>
31118
31119 PR middle-end/63155
31120 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31121 * tree-ssa-coalesce.c: Include timevar.h.
31122 (attempt_coalesce): Handle graph being NULL.
31123 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31124 Split out abnormal coalescing to ...
31125 (perform_abnormal_coalescing): ... this function.
31126 (coalesce_ssa_name): Perform abnormal coalescing without computing
31127 live/conflict.
31128 (verify_ssa_coalescing_worker): New function.
31129 (verify_ssa_coalescing): Likewise.
31130
31131 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
31132
31133 PR target/65296
31134 * config.gcc (extra_options) [avr]: Remove.
31135 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
31136 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
31137 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
31138
31139 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
31140 (-mmcu=): Add Var and MissingArgError properties.
31141 (-march=): Remove.
31142 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
31143 * config/avr/t-multilib: Regenerate.
31144 * config/avr/specs.h: New file.
31145 * config/avr/driver-avr.c: New file.
31146 * config/avr/genopt.sh: Remove file.
31147 * config/avr/avr-tables.opt: Remove file.
31148 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
31149 * config/avr/avr-c.c: Same.
31150 * avr-arch.h: Same.
31151 (avr_current_device): Remove proto.
31152 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
31153 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
31154 (EXTRA_SPEC_FUNCTIONS): Define.
31155 (avr_devicespecs_file): New specs function proto.
31156 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
31157 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
31158 (avr_current_device): Remove definition and usage.
31159 (avr_set_core_architecture): New static function.
31160 (avr_option_override): Use it.
31161 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31162 (mcu_name): New static array.
31163 (comparator, avr_archs_str, avr_mcus_str): New static functions.
31164 (avr_inform_devices, avr_inform_core_architectures): New functions.
31165 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31166 (avrlibc.h) [WITH_AVRLIBC]: Include.
31167 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31168 (print_mcu): Rewrite from scratch.
31169 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31170 Forward to avr-specific specs defined in device-specs file.
31171 * config/avr/t-avr (driver-avr.o): New rule.
31172 (avr-devices.o): Depend on avr-arch.h.
31173 (avr-mcus): No more depend on avr-tables.opt.
31174 (avr-tables.opt): Remove rule.
31175 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31176
31177 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31178
31179 * c-family/c.opt (fchkp-use-wrappers): New.
31180 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31181 (chkp_wrap_function): New.
31182 (chkp_build_instrumented_fndecl): Support wrapped
31183 functions.
31184 * doc/invoke.texi (-fcheck-pointer-bounds): New.
31185 (-fchkp-check-incomplete-type): New.
31186 (-fchkp-first-field-has-own-bounds): New.
31187 (-fchkp-narrow-bounds): New.
31188 (-fchkp-narrow-to-innermost-array): New.
31189 (-fchkp-optimize): New.
31190 (-fchkp-use-fast-string-functions): New.
31191 (-fchkp-use-nochk-string-functions): New.
31192 (-fchkp-use-static-bounds): New.
31193 (-fchkp-use-static-const-bounds): New.
31194 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31195 (-fchkp-check-read): New.
31196 (-fchkp-check-write): New.
31197 (-fchkp-store-bounds): New.
31198 (-fchkp-instrument-calls): New.
31199 (-fchkp-instrument-marked-only): New.
31200 (-fchkp-use-wrappers): New.
31201 (-static-libmpx): New.
31202 (-static-libmpxwrappers): New.
31203
31204 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31205
31206 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31207 (CHKP_SPEC): Add wrappers library.
31208 * c-family/c.opt (static-libmpxwrappers): New.
31209
31210 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31211
31212 * config/i386/linux-common.h (LIBMPX_LIBS): New.
31213 (LIBMPX_SPEC): New.
31214 (CHKP_SPEC): New.
31215 * gcc.c (CHKP_SPEC): New.
31216 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31217 * c-family/c.opt (static-libmpx): New.
31218
31219 2015-03-10 Richard Biener <rguenther@suse.de>
31220
31221 PR middle-end/44563
31222 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31223 for compare_type.
31224 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31225 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31226 (cgraph_add_edge_to_call_site_hash): Likewise.
31227 (cgraph_node::get_edge): Likewise.
31228 (cgraph_edge::set_call_stmt): Likewise.
31229 (cgraph_edge::remove_caller): Likewise.
31230
31231 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
31232
31233 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31234 (callee_saved_gpr_regs_size): ... this.
31235 (callee_saved_regs_first_regno): Rename to ...
31236 (callee_saved_first_gpr_regno): ... this.
31237 (callee_saved_regs_last_regno) Rename to ...
31238 (callee_saved_last_gpr_regno): ... this.
31239 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31240 variables.
31241 (nds32_initial_elimination_offset): Likewise.
31242 (nds32_expand_prologue): Likewise.
31243 (nds32_expand_epilogue): Likewise.
31244 (nds32_expand_prologue_v3push): Likewise.
31245 (nds32_expand_epilogue_v3pop): Likewise.
31246 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31247 Adjust renamed variables.
31248 (nds32_output_stack_pop): Likewise.
31249
31250 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
31251
31252 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31253 code in comment.
31254
31255 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31256
31257 PR rtl-optimization/65321
31258 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31259 than shift mode.
31260 * var-tracking.c (use_narrower_mode): Likewise.
31261
31262 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31263
31264 PR tree-optimization/65355
31265 * varasm.c (notice_global_symbol): Do not produce RTL.
31266 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31267 anchor.
31268 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31269 check for section anchors.
31270
31271 2015-03-10 Alan Modra <amodra@gmail.com>
31272
31273 PR target/65286
31274 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31275 to be single-arch by default. Set cpu_is_64bit for powerpc64
31276 given --with-cpu=native.
31277 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31278 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31279 and powerpc64le.
31280 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31281 rs6000_isa_flags rather than TARGET_64BIT.
31282
31283 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
31284 Kaz Kojima <kkojima@gcc.gnu.org>
31285
31286 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31287
31288 2015-03-09 Jakub Jelinek <jakub@redhat.com>
31289
31290 PR lto/65361
31291 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31292 on a TREE_BINFO, instead use BINFO_TYPE.
31293
31294 2015-03-09 Richard Biener <rguenther@suse.de>
31295
31296 PR middle-end/65270
31297 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31298 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31299 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
31300 of that. When comparing dereferences compare alignment.
31301 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31302
31303 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31304
31305 * ipa-inline-analysis.c (check_callers): Check
31306 node->can_remove_if_no_direct_calls_and_refs_p.
31307 (growth_likely_positive): Reorganize to call
31308 can_remove_if_no_direct_calls_p later.
31309 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31310 will_be_removed_from_program_if_no_direct_calls_p): Add
31311 will_inline parameter.
31312 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31313 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31314 Handle inliner case correctly.
31315
31316 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
31317
31318 PR tree-optimization/63743
31319 * cfgexpand.c (reorder_operands): Also reorder if only second operand
31320 had its definition forwarded by TER.
31321
31322 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31323
31324 PR lto/65316
31325 * ipa-utils.h (types_odr_comparable): Add strict argument.
31326 * ipa-devirt.c: Fix whitespace;
31327 (odr_hasher): Remove.
31328 (odr_name_hasher, odr_vtable_hasher): New hashers.
31329 (can_be_name_hashed_p): New predicate.
31330 (hash_type_name): remove.
31331 (hash_odr_name): New.
31332 (odr_name_hasher::hash): new.
31333 (can_be_vtable_hashed_p): New.
31334 (hash_odr_vtable): New.
31335 (odr_vtable_hasher::hash): New.
31336 (types_same_for_odr): Add strict parameter.
31337 (types_odr_comparable): Likewise.
31338 (odr_name_hasher::equal): New.
31339 (odr_vtable_hasher::equal): New.
31340 (odr_name_hasher::remove): New.
31341 (odr_hash_type): Change to hash_table<odr_name_hasher>.
31342 (odr_vtable_hash_type): New.
31343 (odr_vtable_hash): New.
31344 (odr_subtypes_equivalent_p): Do strict comparsion.
31345 (add_type_duplicate): Merge type names; cleanup; avoid type
31346 duplicates.
31347 (register_odr_type): Initialize vtable hash.
31348 (build_type_inheritance_graph): Likewise
31349 (get_odr_type): Reorg to use two hashes.
31350 (dump_possible_polymorphic_call_targets): Move sanity check after debug
31351 output.
31352 (ipa_devirt): Dump type_inheritance_graph.
31353 (types_same_for_odr): Add strict mode.
31354
31355 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31356
31357 PR ipa/65334
31358 * cgraph.h (symtab_node): Add definition_alignment,
31359 can_increase_alignment_p and increase_alignment.
31360 * symtab.c (symtab_node::can_increase_alignment_p,
31361 increase_alignment_1, symtab_node::increase_alignment,
31362 symtab_node::definition_alignment): New.
31363 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31364 can_increase_alignment_p.
31365 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31366 * tree-vect-stmts.c (ensure_base_align): Likewise.
31367 * varasm.c (function_section_1): Use definition_alignment.
31368 (assemble_start_function): Likewise.
31369 (emit_local): likewise.
31370 (build_constant_desc): Likewsie.
31371 (output_constant_def_contents): Likewise.
31372 (place_block_symbol): Likewise.
31373 (output_object_block): Likewise.
31374
31375 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31376
31377 PR ipa/65316
31378 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31379 when outputting debug.
31380
31381 2015-03-07 Marek Polacek <polacek@redhat.com>
31382 Martin Uecker <uecker@eecs.berkeley.edu>
31383
31384 PR sanitizer/65280
31385 * doc/invoke.texi: Update description of -fsanitize=bounds.
31386
31387 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
31388
31389 * tree-ssa-phiopt.c (neg_replacement): Remove.
31390 (tree_ssa_phiopt_worker): Remove negate optimization.
31391
31392 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31393
31394 PR ipa/65302
31395 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31396
31397 2015-03-06 Richard Biener <rguenther@suse.de>
31398
31399 PR middle-end/64928
31400 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31401 and liveout_obstack members.
31402 (calculate_live_on_exit): Remove.
31403 (calculate_live_ranges): Change declaration.
31404 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31405 (new_tree_live_info): Adjust.
31406 (calculate_live_ranges): Delete livein when not wanted.
31407 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31408 Deal with partly deleted live info.
31409 (loe_visit_block): Remove temporary bitmap by using
31410 bitmap_ior_and_compl_into.
31411 (live_worklist): Adjust accordingly.
31412 (calculate_live_on_exit): Make static.
31413 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31414 we do not need livein.
31415
31416 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
31417
31418 * real.c (real_from_string): Fix typo in assertion.
31419
31420 2015-03-06 Alex Velenko <alex.velenko@arm.com>
31421
31422 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31423 the patch.
31424
31425 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31426
31427 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31428
31429 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
31430
31431 PR target/64342
31432 * lra-assigns.c (find_hard_regno_for): Rename to
31433 find_hard_regno_for_1. Add a new parameter.
31434 (find_hard_regno_for): New function using find_hard_regno_for_1.
31435
31436 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
31437
31438 PR rtl-optimization/65067
31439 * expmed.c (store_bit_field, extract_bit_field): Reworked the
31440 strict volatile bitfield handling.
31441
31442 2015-03-05 Martin Liska <mliska@suse.cz>
31443
31444 PR ipa/65318
31445 * ipa-icf.c (sem_variable::equals): Compare variables types.
31446
31447 2015-03-05 Richard Henderson <rth@redhat.com>
31448
31449 PR target/65121
31450 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31451 correctly check weak symbol binding.
31452
31453 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
31454
31455 PR middle-end/65315
31456 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31457 needed alignment.
31458
31459 2015-03-05 Martin Liska <mliska@suse.cz>
31460
31461 * ipa-inline.c (inline_small_functions): Set default value to
31462 prevent warning during bootstrap.
31463 * tree.h: Add pragma guard that ignores false positives during
31464 bootstrap.
31465
31466 2015-03-05 Richard Biener <rguenther@suse.de>
31467
31468 PR tree-optimization/65310
31469 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31470 Properly preserve alignment of the base of the access.
31471
31472 2015-03-05 Richard Biener <rguenther@suse.de>
31473
31474 PR ipa/65270
31475 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
31476 Compare dependence info.
31477
31478 2015-03-05 Richard Biener <rguenther@suse.de>
31479
31480 PR middle-end/65233
31481 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
31482 tree-into-ssa.h.
31483 (walk_ssa_copies): Revert last chage. Instead do not walk
31484 SSA names registered for SSA update.
31485
31486 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31487
31488 PR ipa/65270
31489 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
31490 vtable references for their containing type.
31491 (sem_function::equals_wpa): Compare TYPE_RESTRICT
31492 and type attributes.
31493
31494 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
31495
31496 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
31497 before negating it.
31498 * stor-layout.c (finalize_record_size): Revert latest change.
31499
31500 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
31501
31502 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
31503
31504 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31505
31506 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
31507 for correct comdat handling.
31508 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31509 Likewise.
31510 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
31511 (used_from_object_file_p_worker): Remove.
31512 (cgraph_node::only_called_directly_or_alised): Add
31513 used_from_object_file_p.
31514 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
31515 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
31516 can_remove_if_no_direct_calls_and_refs_p.
31517
31518 2015-03-04 Nick Clifton <nickc@redhat.com>
31519
31520 * config/rl78/rl78.h (enum reg_class): Remove real registers from
31521 General register class.
31522 * config/rl78/rl78-real.md: Replace general register constraints
31523 with real+virtual register constraints.
31524
31525 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31526
31527 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
31528 from checking for -mhtm option.
31529
31530 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31531
31532 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
31533 (struct ipa_sra_check_caller_data): Add has_thunk field.
31534 (ipa_sra_check_caller): Check for thunk.
31535 (ipa_sra_preliminary_function_checks): Give up on function with
31536 thunks.
31537 (ipa_early_sra): Use call_for_symbol_and_aliases.
31538
31539 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31540
31541 PR target/65249
31542 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
31543 called for __stack_chk_guard symbol.
31544
31545 2015-03-03 DJ Delorie <dj@redhat.com>
31546
31547 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
31548 inc/dec.
31549 (*addhi3_real): Likewise.
31550 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
31551 pattern to match incrementing memory.
31552 * config/rl78/predicates.md (rl78_1_2_operand): New.
31553 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
31554 it's the same and only mem.
31555 (rl78_alloc_physical_registers_op2): If there's effectively only
31556 one MEM, transcode it into HL.
31557 (rl78_far_p): Reject addresses that aren't legitimate.
31558
31559 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31560
31561 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
31562 negating it.
31563
31564 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
31565
31566 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31567
31568 Implement call0 ABI for xtensa
31569 * config/xtensa/constraints.md ("a" constraint): Include stack
31570 pointer in case of call0 ABI.
31571 ("q" constraint): Make empty in case of call0 ABI.
31572 ("D" constraint): Include stack pointer in case of call0 ABI.
31573 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31574 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31575 prototypes.
31576 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31577 variable.
31578 (xtensa_regno_to_class): Make it a local variable in the
31579 function xtensa_regno_to_class.
31580 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31581 macro, function prototype and implementation.
31582 (reg_nonleaf_alloc_order): Make it a local variable in the
31583 function order_regs_for_local_alloc.
31584 (xtensa_conditional_register_usage): New function.
31585 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31586 (xtensa_valid_move): Allow direct moves to stack pointer
31587 register in call0 ABI.
31588 (xtensa_setup_frame_addresses): Only spill register windows in
31589 windowed ABI.
31590 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31591 call0 ABI respectively.
31592 (xtensa_function_arg_1): Only mark a7 register for copying in
31593 windowed ABI.
31594 (xtensa_call_save_reg): New function.
31595 (compute_frame_size): Add space for callee saved register
31596 storage to the frame size in call0 ABI.
31597 (xtensa_expand_prologue): Generate code to set up stack frame
31598 and save callee-saved registers in call0 ABI.
31599 (xtensa_expand_epilogue): New function.
31600 (xtensa_set_return_address): New function.
31601 (xtensa_return_addr): Calculate return address in call0 ABI.
31602 (xtensa_builtin_saveregs): Only mark a7 register for copying and
31603 emit copying code in windowed ABI.
31604 (order_regs_for_local_alloc): Add preferred register allocation
31605 order for non-leaf function in call0 ABI.
31606 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31607 (xtensa_asm_trampoline_template): Add trampoline generation for
31608 call0 ABI.
31609 (xtensa_trampoline_init): Add trampoline initialization for
31610 call0 ABI.
31611 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31612 functions.
31613 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31614 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31615 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31616 ABI call-used registers.
31617 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31618 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31619 call0 ABI.
31620 (REG_CLASS_CONTENTS): Include all registers into the preferred
31621 reload registers set, adjust the set in the
31622 xtensa_conditional_register_usage.
31623 (xtensa_regno_to_class): Drop variable declaration.
31624 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31625 function.
31626 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31627 respectively.
31628 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31629 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31630 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31631 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31632 location in call0 ABI.
31633 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31634 stack adjustment size when handling exception.
31635 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31636 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31637 definitions.
31638 ("return" pattern): Generate ret.n/ret in call0 ABI.
31639 ("epilogue" pattern): Expand epilogue.
31640 ("nonlocal_goto" pattern): Use default in call0 ABI.
31641 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31642 emit eh_set_a0_* depending on ABI.
31643 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31644 ("eh_set_a0_call0", "blockage"): New patterns.
31645
31646 2015-03-03 Martin Liska <mliska@suse.cz>
31647
31648 PR ipa/65287
31649 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31650
31651 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31652
31653 PR 65138/target
31654 * config/rs6000/rs6000-tables.opt: Regenerate table.
31655
31656 2015-03-03 Renlin Li <renlin.li@arm.com>
31657
31658 * doc/md.texi (@item ^): Change ? into ^.
31659
31660 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
31661
31662 * doc/tm.texi: Regenerated.
31663
31664 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31665
31666 * builtins.c (expand_builtin_return_addr): Add
31667 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31668 surrounding #ifdef.
31669 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31670 definition to 1.
31671 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31672 Likewise.
31673 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31674 undefined.
31675 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31676 paragraph.
31677
31678 2015-03-03 Martin Jambor <mjambor@suse.cz>
31679 Eric Botcazou <ebotcazou@adacore.com>
31680
31681 * tree-sra.c (ipa_sra_check_caller_data): New type.
31682 (has_caller_p): Removed.
31683 (ipa_sra_check_caller): New function.
31684 (ipa_sra_preliminary_function_checks): Use it.
31685
31686 2015-03-03 Martin Liska <mliska@suse.cz>
31687
31688 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31689 instead of if branch.
31690
31691 2015-03-03 Martin Liska <mliska@suse.cz>
31692
31693 PR ipa/65282
31694 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31695
31696 2015-03-23 Jeff Law <law@redhat.com>
31697
31698 PR tree-optimization/65241
31699 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31700 hash table if INSERT is true.
31701
31702 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31703
31704 PR target/65296
31705 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31706
31707 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31708
31709 PR target/64331
31710 * config/avr/avr.c (context.h, tree-pass.h): Include them.
31711 (avr_pass_data_recompute_notes): New static variable.
31712 (avr_pass_recompute_notes): New class.
31713 (avr_register_passes): New static function.
31714 (avr_option_override): Call it.
31715
31716 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31717
31718 Fix various problems with specs file generation.
31719
31720 PR target/65296
31721 * config.gcc (extra_gcc_objs) [avr]: Remove.
31722 * config/avr/driver-avr.c: Remove file.
31723 * config/avr/t-avr (driver-avr.o): Remove rule.
31724 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31725 INCLUDES to build. Depend on TM_H.
31726 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
31727 build warnings. Fix non-matching types and non-existing %-codes.
31728 (tm.h): Include.
31729 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31730 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31731 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31732 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31733 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31734 (LIBGCC_SPEC): Remove definitions.
31735
31736 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31737
31738 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31739 to create a register in testing mode.
31740
31741 2015-03-03 Martin Liska <mliska@suse.cz>
31742 Jan Hubicka <hubicka@ucw.cz>
31743
31744 PR ipa/65263
31745 * cgraph.c (cgraph_node::has_thunk_p): New function.
31746 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31747 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31748 (sem_function::merge): Assert is changed.
31749
31750 2015-03-03 Martin Liska <mliska@suse.cz>
31751 Martin Jambor <mjambor@suse.cz>
31752
31753 PR ipa/65087
31754 * ipa-icf.c (sem_item_optimizer::execute): Change function
31755 return value to boolean.
31756 (sem_item_optimizer::merge_classes): Likewise.
31757 (ipa_icf_driver): Return TODO_remove_functions in case there's
31758 a merge operation processed.
31759 * ipa-icf.h: Change function return value to boolean.
31760
31761 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
31762
31763 PR 65138/target
31764 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31765 processor type for 64-bit little endian PowerPC.
31766
31767 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31768 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
31769 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
31770 printing built-in mask so it does not pass NULL pointers.
31771
31772 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31773 -mcpu=powerpc64le.
31774
31775 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
31776
31777 PR target/58158
31778 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
31779 !ISA_HAS_FP_CONDMOVE.
31780
31781 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
31782
31783 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
31784 reload_completed.
31785
31786 2015-03-02 Ulrich Drepper <drepper@gmail.com>
31787
31788 * doc/invoke.texi (Options for Code Generation Conventions):
31789 Fix URL of DSO paper.
31790
31791 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31792
31793 PR ipa/65130
31794 * ipa-inline.c (check_callers): Looks for recursion.
31795 (inline_to_all_callers): Give up on uninlinable or recursive edges.
31796 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
31797 summary of inline clones.
31798 (do_estimate_growth_1): Fix recursion check.
31799
31800 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31801
31802 PR ipa/64988
31803 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
31804 comdat groups.
31805
31806 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31807 Aldy Hernandez <aldyh@redhat.com>
31808
31809 PR lto/65276
31810 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
31811 when checking TYPE_BINFO.
31812
31813 2015-03-02 Richard Biener <rguenther@suse.de>
31814
31815 PR ipa/65270
31816 * ipa-icf-gimple.c: Include builtins.h.
31817 (func_checker::compare_memory_operand): Compare base alignment.
31818
31819 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31820
31821 PR target/65184
31822 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
31823 passed by reference.
31824
31825 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31826
31827 PR target/65183
31828 * tree-chkp.c (chkp_check_lower): Don't check against
31829 zero bounds for already instrumented functions.
31830 (chkp_check_upper): Likewise.
31831 (chkp_fini): Clean pass local data to avoid wrong reusage.
31832
31833 2015-02-28 Martin Liska <mliska@suse.cz>
31834 Jan Hubicka <hubicka@ucw.cz>
31835
31836 * ipa-icf.c (sem_variable::equals): Improve debug output;
31837 get variable constructor.
31838 (sem_variable::parse): Do not filter out too early; give up on
31839 volatile and register vars.
31840 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
31841 variables.
31842 * ipa-icf.h (sem_variable::init): Do not set ctor.
31843 (sem_variable::ctor): Remove.
31844
31845 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
31846
31847 PR middle-end/65233
31848 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
31849
31850 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31851
31852 * ipa-icf.c: Include stor-layout.h
31853 (sem_function::compare_cgraph_references): Rename to ...
31854 (sem_item::compare_cgraph_references): ... this one.
31855 (sem_variable::equals_wpa): New function
31856 (sem_variable::equals): Do not check stuff already verified by
31857 equals_wpa.
31858 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
31859 * ipa-icf.h (sem_item): Add compare_cgraph_references.
31860 (sem_function): Remove compare_cgraph_references.
31861 (sem_variable): Turns equals_wpa into non-inline.
31862
31863 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31864
31865 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
31866 (sem_item::add_expr): New function.
31867 (sem_function::hash_stmt): Handle operands of most statements.
31868 (sem_variable::get_hash): Hash the actual constructor.
31869 * ipa-icf.h (sem_item): Add add_expr.
31870 (sem_function): Update prototype of hash_stmt
31871
31872 2015-02-28 Martin Liska <mliska@suse.cz>
31873 Jan Hubicka <hubicka@ucw.cz>
31874
31875 PR ipa/65245
31876 * ipa-icf-gimple.c (func_checker::compare_function_decl):
31877 Remove.
31878 (func_checker::compare_variable_decl): Skip symtab vars.
31879 (func_checker::compare_cst_or_decl): Update.
31880 * ipa-icf.c (sem_function::parse): Do not consider aliases.
31881 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31882 use correct symtab predicates.
31883 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31884 (sem_variable::parse): Update comment.
31885 (sem_item_optimizer::build_graph): Consider ultimate aliases
31886 for references.
31887
31888 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31889
31890 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31891 of OBJ_TYPE_REF.
31892
31893 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31894
31895 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31896 (sem_variable::merge) Likewise.
31897
31898 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31899
31900 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31901 target; also match flag_ipa_devirt.
31902
31903 2015-03-01 Martin Liska <mliska@suse.cz>
31904 Jan Hubicka <hubicka@ucw.cz>
31905
31906 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31907 Validate variable alignment.
31908 * ipa-icf.c (sem_function::equals_private): Be more precise
31909 about non-common function attributes.
31910 (sem_variable::equals): Likewise.
31911
31912 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31913
31914 PR ipa/65237
31915 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31916 across COMDAT group boundary.
31917
31918 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31919
31920 PR ipa/65232
31921 * ipa-icf.c (clear_decl_rtl): New function.
31922 (sem_function::merge): Clear RTL before forming alias.
31923 (sem_variable::merge): Clear RTL before forming alias.
31924
31925 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31926
31927 PR ipa/65236
31928 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31929
31930 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
31931
31932 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31933 to neon_to_gp<q>.
31934
31935 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31936
31937 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31938 a typo in the description.
31939
31940 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31941
31942 PR target/64317
31943 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31944 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31945 * lra-constraints.c: Include "params.h".
31946 (EBB_PROBABILITY_CUTOFF): Use
31947 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31948 (lra_inheritance): Use '<' instead of '<=' for
31949 EBB_PROBABILITY_CUTOFF.
31950 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31951 Document change.
31952
31953 2015-02-27 Martin Liska <mliska@suse.cz>
31954
31955 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31956 vector length condition.
31957
31958 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
31959
31960 * doc/extend.texi (x86 transactional memory intrinsics):
31961 Reorganize discussion of _xbegin. Clarify that the return
31962 value is a bit mask. Expand example and move to end of section.
31963
31964 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31965 Aldy Hernandez <aldyh@redhat.com>
31966
31967 PR rtl-optimization/65220
31968 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31969
31970 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31971
31972 PR target/65032
31973 * lra-remat.c (update_scratch_ops): New.
31974 (do_remat): Call it.
31975 * lra.c (lra_register_new_scratch_op): New. Take code from ...
31976 (remove_scratches): ... here.
31977 * lra-int.h (lra_register_new_scratch_op): New prototype.
31978
31979 2015-02-27 Marek Polacek <polacek@redhat.com>
31980
31981 PR c/65040
31982 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
31983 -Wformat-signedness anymore.
31984
31985 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31986
31987 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
31988 function.
31989 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
31990
31991 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31992
31993 * config/s390/s390.c (enum s390_builtin):
31994 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
31995 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
31996 (s390_init_builtins): Generate new builtin functions.
31997 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
31998 (s390_sfpc, s390_efpc): New pattern definitions.
31999
32000 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32001
32002 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
32003 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
32004 (s390_builtin_decls): New array.
32005 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
32006 (s390_builtin_decl): New function.
32007 (TARGET_BUILTIN_DECL): Define macro.
32008
32009 2015-02-27 Richard Biener <rguenther@suse.de>
32010
32011 PR middle-end/63175
32012 * builtins.c (get_object_alignment_2): Make sure to re-apply
32013 the ANDed mask after recursing to its operand gets us a new
32014 misalignment bit position.
32015
32016 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
32017 Martin Liska <mliska@suse.cz>
32018
32019 PR bootstrap/65150
32020 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
32021 Use address_matters_p.
32022 (redirect_all_callers, set_addressable): New functions.
32023 (sem_function::merge): Reorganize and fix merging issues.
32024 (sem_variable::merge): Likewise.
32025 (sem_variable::compare_sections): Remove.
32026 * common.opt (fmerge-all-constants, fmerge-constants): Remove
32027 Optimization flag.
32028 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
32029 redirect them.
32030 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
32031 decl is used.
32032 (address_matters_1): New function.
32033 (symtab_node::address_matters_p): New function.
32034 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
32035 check for merged flag.
32036 * cgraph.h (address_matters_p): Declare.
32037 (symtab_node::address_taken_from_non_vtable_p): Remove.
32038 (symtab_node::address_can_be_compared_p): New method.
32039 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
32040 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
32041 Remove.
32042 (comdat_can_be_unshared_p_1) Use address_matters_p.
32043 (update_vtable_references): Fix formating.
32044 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
32045 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
32046 * cgraphclones.c: Preserve merged and icf_merged flags.
32047
32048 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
32049
32050 * doc/extend.texi (Function Attributes): Fix spelling and typos.
32051 (Label Attributes): Likewise.
32052 (Cilk Plus Builtins): Likewise.
32053 (ARC SIMD Built-in Functions): Likewise.
32054 (ARM C Language Extensions (ACLE)): Likewise.
32055 (PowerPC Built-in Functions): Likewise.
32056 (PowerPC Hardware Transactional Memory Built-in Functions):
32057 Likewise.
32058
32059 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32060
32061 PR tree-optimization/65216
32062 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
32063 new stmt and new SSA_NAME for lhs whenever the arguments have
32064 changed and weren't just swapped. Fix comment typo.
32065
32066 PR tree-optimization/65215
32067 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
32068 for PDP endian targets.
32069 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
32070 Fix up formatting issues.
32071 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
32072 size is smaller than the original, adjust MEM_REF offset by the
32073 difference of sizes. Use is_gimple_mem_ref_addr instead of
32074 is_gimple_min_invariant test to avoid adding address temporaries.
32075
32076 2015-02-26 Martin Liska <mliska@suse.cz>
32077 Jan Hubicka <hubicka@ucw.cz>
32078
32079 PR ipa/64693
32080 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
32081 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
32082 (sem_item_optimizer::process_cong_reduction): Include division by
32083 sensitive references.
32084 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
32085 * ipa-ref.c (ipa_ref::address_matters_p): New function.
32086 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
32087
32088 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
32089
32090 PR target/65192
32091 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
32092 Remove.
32093 * config/avr/avr.c: Same.
32094 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
32095 Refuse any constant address not in 0..0xbf.
32096 * config/avr/avr.md (*mov<mode>, *movsf): Remove
32097 tiny_valid_direct_memory_access_range from insn conditions.
32098 (mov<mode>): Don't special-case expansion of avrtiny addresses.
32099
32100 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
32101
32102 PR target/61142
32103 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
32104 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
32105 * config/sh/predicates.md (const_logical_operand): New predicate.
32106 * config/sh/sh.md: Add new peephole2 patterns.
32107
32108 2015-02-26 Marek Polacek <polacek@redhat.com>
32109
32110 PR ipa/65008
32111 * ipa-inline.c (early_inliner): Recompute inline parameters.
32112
32113 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32114
32115 PR target/65171
32116 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
32117 instructions with TImode operands are included in the analysis.
32118
32119 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32120
32121 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
32122 of an EDGE_FSM_THREAD.
32123
32124 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
32125
32126 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
32127
32128 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
32129
32130 PR debug/46102
32131 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
32132
32133 2015-02-26 Sebastian Pop <s.pop@samsung.com>
32134
32135 PR tree-optimization/65048
32136 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
32137 (thread_through_all_blocks): Call valid_jump_thread_path.
32138 Remove invalid FSM jump-thread paths.
32139
32140 2015-02-26 Jakub Jelinek <jakub@redhat.com>
32141
32142 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
32143 (ipa_write_optimization_summaries): Likewise.
32144 * tree-streamer.h: Include data-streamer.h.
32145 (streamer_mode_table): Declare extern variable.
32146 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
32147 * lto-streamer-out.c (lto_output_init_mode_table,
32148 lto_write_mode_table): New functions.
32149 (produce_asm_for_decls): Call lto_write_mode_table when streaming
32150 offloading LTO.
32151 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
32152 (lto_create_simple_input_block): Add mode_table argument to the
32153 lto_input_block constructors.
32154 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
32155 Likewise.
32156 * data-streamer-in.c (string_for_index): Likewise.
32157 * ipa-inline-analysis.c (inline_read_section): Likewise.
32158 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32159 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32160 * lto-streamer-in.c (lto_read_body_or_constructor,
32161 lto_input_toplevel_asms): Likewise.
32162 (lto_input_mode_table): New function.
32163 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32164 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32165 Use bp_pack_machine_mode.
32166 * real.h (struct real_format): Add name field.
32167 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32168 (class lto_input_block): Add mode_table member.
32169 (lto_input_block::lto_input_block): Add mode_table_ argument,
32170 initialize mode_table.
32171 (struct lto_file_decl_data): Add mode_table field.
32172 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32173 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32174 unpack_ts_decl_common_value_fields,
32175 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32176 * tree-streamer.c (streamer_mode_table): New variable.
32177 * real.c (ieee_single_format, mips_single_format,
32178 motorola_single_format, spu_single_format, ieee_double_format,
32179 mips_double_format, motorola_double_format,
32180 ieee_extended_motorola_format, ieee_extended_intel_96_format,
32181 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32182 ibm_extended_format, mips_extended_format, ieee_quad_format,
32183 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32184 decimal_single_format, decimal_double_format, decimal_quad_format,
32185 ieee_half_format, arm_half_format, real_internal_format): Add name
32186 field.
32187 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32188
32189 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
32190
32191 PR target/65161
32192 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32193 reordering for selective scheduling.
32194
32195 2015-02-26 Terry Guo <terry.guo@arm.com>
32196
32197 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32198 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32199 (arm_arch_no_volatile_ce): Declare new global variable.
32200 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32201 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32202 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32203 (TARGET_NO_VOLATILE_CE): New macro.
32204 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32205 volatile memory access in IT block
32206
32207 2015-02-25 Kai Tietz <ktietz@redhat.com>
32208
32209 PR tree-optimization/61917
32210 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32211 that reduc_def_stmt is null.
32212
32213 2015-02-25 Martin Liska <mliska@suse.cz>
32214
32215 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32216 hard register variables.
32217
32218 2015-02-25 Kai Tietz <ktietz@redhat.com>
32219
32220 PR target/64212
32221 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32222 (symtab::noninterposable_alias): Likewise.
32223
32224 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
32225
32226 PR target/65167
32227 * config/i386/i386.c (ix86_function_arg_regno_p): Support
32228 bounds registers.
32229 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32230
32231 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
32232
32233 PR target/64997
32234 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32235 as split condition; force split via '#' in output pattern.
32236
32237 2015-02-25 Richard Biener <rguenther@suse.de>
32238 Kai Tietz <ktietz@redhat.com>
32239
32240 PR tree-optimization/61917
32241 * tree-vect-loop.c (vectorizable_reduction): Allow
32242 vect_internal_def without reduction to exit graceful.
32243
32244 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32245
32246 PR target/65196
32247 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32248 only with NONDEBUG_INSN_P.
32249
32250 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32251
32252 Use variadic macros with avr-log.c.
32253
32254 * config/avr/avr-protos.h (avr_vdump): New prototype.
32255 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32256 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32257 * config/avr/avr-log.c: Adjust comments.
32258 (avr_vdump): New function.
32259 (avr_vadump): Pass caller as 2nd argument instead of format string.
32260 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32261 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32262
32263 2015-02-25 Jakub Jelinek <jakub@redhat.com>
32264
32265 PR lto/64374
32266 * target.def (target_option_stream_in): New target hook.
32267 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32268 targetm.target_option.post_stream_in if non-NULL.
32269 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32270 * doc/tm.texi: Updated.
32271 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32272 function.
32273 (TARGET_OPTION_POST_STREAM_IN): Redefine.
32274
32275 2015-02-24 Jeff Law <law@redhat.com>
32276
32277 PR target/65117
32278 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32279 of operand 0 and operand 2.
32280 (zero_cost_loop_end, loop_end): Similarly.
32281
32282 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
32283
32284 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32285 CXX_MEM_STAT_INFO.
32286
32287 2015-02-24 DJ Delorie <dj@redhat.com>
32288
32289 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32290 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32291 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32292 instead of hardcoding SImode.
32293
32294 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
32295
32296 * omp-low.c (create_omp_child_function): Tag entrypoint
32297 functions with a special attribute.
32298
32299 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32300
32301 PR target/65058
32302 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32303
32304 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
32305
32306 PR rtl-optimization/65123
32307 * lra-remat.c (operand_to_remat): Check hard regs in insn
32308 definition too.
32309
32310 2015-02-24 Nick Clifton <nickc@redhat.com>
32311
32312 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32313 to the assembler.
32314
32315 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
32316
32317 PR libgomp/64625
32318 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32319 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32320 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32321 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32322 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32323 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32324 (BUILT_IN_GOACC_PARALLEL): Specify as
32325 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32326 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32327 * builtin-types.def
32328 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32329 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32330 Remove function types.
32331 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32332 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32333 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32334 New function types.
32335
32336 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
32337
32338 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32339
32340 2015-02-24 Jakub Jelinek <jakub@redhat.com>
32341
32342 PR tree-optimization/65170
32343 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32344 if val[1] < 0, clear also val[2] and return 3.
32345
32346 2015-02-24 Alan Modra <amodra@gmail.com>
32347
32348 PR target/65172
32349 * config/rs6000/rs6000.c (get_memref_parts): Only return true
32350 when *base is a reg. Handle nested plus addresses. Simplify
32351 pre_modify test.
32352
32353 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
32354
32355 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32356 use natural alignment when optimizing for size.
32357
32358 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
32359
32360 PR target/65153
32361 * config/sh/sh.md (movsicc_true+3): Remove peephole.
32362 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32363 * config/sh/sh.c (replace_n_hard_rtx): Remove.
32364
32365 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
32366
32367 PR fortran/63427
32368 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32369 too big for a wide_int. Implement missing wrapping operation.
32370
32371 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
32372
32373 PR target/65163
32374 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32375 instead of const_int 4294901760.
32376
32377 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
32378
32379 * config/avr/t-avr: Fix typo in comment.
32380
32381 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
32382
32383 * doc/rtl.texi (fma): Clarify documentation.
32384
32385 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
32386
32387 PR debug/58123
32388 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32389 over input_location.
32390
32391 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32392
32393 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32394 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32395 restrict alignments to absolute_biggest_alignment.
32396 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32397 Define.
32398 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32399 * doc/tm.texi: Regenerate.
32400 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32401
32402 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
32403
32404 PR target/64172
32405 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32406
32407 2015-02-20 Richard Biener <rguenther@suse.de>
32408
32409 PR tree-optimization/65136
32410 * tree-ssa-propagate.c: Include cfgloop.h.
32411 (replace_phi_args_in): Avoid replacing loop latch edge PHI
32412 arguments with constants.
32413
32414 2015-02-20 Jakub Jelinek <jakub@redhat.com>
32415 Martin Liska <mliska@suse.cz>
32416
32417 PR target/63892
32418 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32419 don't try to create_thunk if stdarg_p. If
32420 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32421 redirect_callers if possible.
32422 (sem_item_optimizer::execute): Call unregister_hooks here...
32423 (ipa_icf_driver): ... instead of here.
32424
32425 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32426
32427 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32428 Mark operand 0 as earlyclobber in 2nd alternative.
32429 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32430 Write negated shift amount into QI lowpart operand 0 and use it
32431 in the shift step.
32432 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32433
32434 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32435
32436 * cgraph.h (clone_function_name_1): Declare.
32437 * cgraphclones.c (clone_function_name_1): New function.
32438 (clone_function_name): Use it.
32439 * lto-partition.c: Include "stringpool.h".
32440 (must_not_rename, maybe_rewrite_identifier)
32441 (validize_symbol_for_target): New static functions.
32442 (privatize_symbol_name): Use must_not_rename.
32443 (promote_symbol): Call validize_symbol_for_target.
32444 (lto_promote_cross_file_statics): Likewise.
32445 (lto_promote_statics_nonwpa): Likewise.
32446
32447 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
32448
32449 PR target/64452
32450 * config/avr/avr.md (pushhi_insn): New insn.
32451 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32452
32453 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32454 Jakub Jelinek <jakub@redhat.com>
32455
32456 * tree-streamer.c (preload_common_nodes): Don't preload
32457 TI_VA_LIST* for offloading.
32458 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32459 in_lto_p.
32460
32461 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
32462
32463 * config/pa/pa.c (pa_emit_move_sequence): Always force
32464 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
32465 note on insn.
32466
32467 * config/pa/pa.c (pa_reloc_rw_mask): New function.
32468 (TARGET_ASM_RELOC_RW_MASK): Define.
32469 (pa_cannot_force_const_mem): Revert previous change.
32470
32471 2015-02-19 Martin Jambor <mjmabor@suse.cz>
32472 Jan Hubicka <hubicka@ucw.cz>
32473
32474 PR ipa/65028
32475 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
32476 across jump functions.
32477
32478 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
32479
32480 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
32481
32482 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
32483
32484 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
32485
32486 2015-02-19 Richard Henderson <rth@redhat.com>
32487
32488 PR middle-end/65074
32489 * varasm.c (default_binds_local_p_2): Don't test node->definition;
32490 test DECL_EXTERNAL independent of symtab_node.
32491
32492 2015-02-19 Jakub Jelinek <jakub@redhat.com>
32493
32494 PR lto/65012
32495 * varpool.c (varpool_node::get_constructor): Return early
32496 if this->lto_file_data is NULL.
32497
32498 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32499
32500 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
32501 (rank_for_schedule_debug): Update.
32502 (ready_sort): Make static. Move sorting logic to ...
32503 (ready_sort_debug, ready_sort_real): New static functions.
32504 (schedule_block): Sort both debug insns and real insns in preparation
32505 for ready list trimming. Improve debug output.
32506 * sched-int.h (ready_sort): Remove global declaration.
32507
32508 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
32509
32510 * ipa-icf.c (sem_function::equals_private): Adjust.
32511 (sem_function::bb_dict_test): Take a vec<int> * instead of
32512 auto_vec<int>.
32513 * ipa-icf.h (bb_dict_test): Likewise.
32514
32515 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32516
32517 PR gcov-profile/64634
32518 * tree-eh.c (frob_into_branch_around): Fix up typos
32519 in function comment.
32520 (lower_catch): Put eh_seq resulting from EH lowering of
32521 the cleanup sequence after the cleanup rather than before it.
32522
32523 2015-02-18 Tom de Vries <tom@codesourcery.com>
32524
32525 * common.opt (fstdarg-opt): New option.
32526 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
32527 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
32528 (@item -fstdarg-opt): New item.
32529
32530 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
32531
32532 PR target/65064
32533 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
32534 for common symbols.
32535
32536 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32537
32538 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
32539 insn-modes.h.
32540 (ALL_HOST_OBJS): Add mkoffload.o.
32541 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
32542
32543 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
32544
32545 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
32546 (compare_virtual_tables): Be smarter about skipping typeinfos;
32547 do sane output on virtual table table mismatch.
32548 (warn_odr): Be ready for forward declarations of enums;
32549 output sane info on base mismatch and virtual table mismatch.
32550 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
32551 when only one type is polymorphic.
32552 (get_odr_type): Fix hashtable corruption.
32553 (dump_odr_type): Dump mangled names.
32554
32555 2015-02-18 Richard Biener <rguenther@suse.de>
32556
32557 PR tree-optimization/65063
32558 * tree-predcom.c (determine_unroll_factor): Return 1 if we
32559 have replaced looparound PHIs.
32560
32561 2015-02-18 Martin Liska <mliska@suse.cz>
32562
32563 * lto-streamer.c (lto_streamer_init): Encapsulate
32564 streamer_check_handled_ts_structures with checking macro.
32565
32566 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32567
32568 PR ipa/65087
32569 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
32570 section if !implicit_section.
32571 (cgraph_node::create_version_clone_with_body): Likewise.
32572 * trans-mem.c (ipa_tm_create_version): Likewise.
32573
32574 2015-02-18 Richard Biener <rguenther@suse.de>
32575
32576 PR tree-optimization/62217
32577 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32578 into BIVs.
32579
32580 2015-02-18 Marek Polacek <polacek@redhat.com>
32581
32582 PR sanitizer/65081
32583 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32584 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32585 is in range [-16K, -1]. Don't issue run-time error if
32586 (ptr > ptr + offset).
32587
32588 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
32589
32590 * doc/install.texi (nvptx-*-none): New section.
32591 * doc/invoke.texi (Nvidia PTX Options): Likewise.
32592 * config/nvptx/nvptx.opt: Update.
32593
32594 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32595 (access_check): New functions, copied from
32596 config/i386/intelmic-mkoffload.c.
32597 (main): For non-installed testing, look in all COMPILER_PATHs for
32598 GCC_INSTALL_NAME.
32599
32600 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32601
32602 2015-02-18 Andrew Pinski <apinski@cavium.com>
32603 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32604
32605 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32606 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32607
32608 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32609
32610 * ipa-visibility.c (function_and_variable_visibility): Only
32611 check locality if node is not already local.
32612 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32613 call_for_symbol_and_aliases instead of
32614 call_for_symbol_thunks_and_aliases.
32615 (ipa_inline): Likewise.
32616 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32617 first walk aliases.
32618 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32619 call_for_symbol_and_aliases.
32620 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32621 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32622 (ipa_propagate_frequency): Update.
32623 (ipa_profile): Add opt_for_fn gueards.
32624
32625 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32626
32627 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32628 * doc/invoke.texi (SH options): Document it.
32629 * config/sh/sh.c (sh_insn_length_adjustment): Check
32630 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32631
32632 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
32633
32634 * common.opt (fipa-cp-alignment): New.
32635 * ipa-cp.c (ipcp_store_alignment_results): Check
32636 flag_ipa_cp_alignment.
32637 * opts.c (default_options_table): Enable -fipa-cp-alignment for
32638 -O2.
32639 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32640 * doc/invoke.texi: Document -fipa-cp-alignment.
32641
32642 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32643
32644 PR target/64793
32645 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32646 to nil. Adjust comments.
32647
32648 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32649
32650 * ipa-visibility.c (function_and_variable_visibility): Only
32651 check locality if node is not already local.
32652 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32653 call_for_symbol_and_aliases instead of
32654 call_for_symbol_thunks_and_aliases.
32655 (ipa_inline): Likewise.
32656 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32657 first walk aliases.
32658 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32659 call_for_symbol_and_aliases.
32660 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32661 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32662 (ipa_propagate_frequency): Update.
32663 (ipa_profile): Add opt_for_fn guards.
32664
32665 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
32666
32667 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32668 skipping of "strange" tokens.
32669
32670 2015-02-17 Jeff Law <law@redhat.com>
32671
32672 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
32673 obsolete comment.
32674
32675 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
32676
32677 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32678 as forcing a HARD_DEP between instructions, thereby
32679 disallowing rewriting to break dependencies.
32680
32681 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32682
32683 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32684 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32685 variables in boundary that have no inlitalizer encoded and are
32686 not aliases.
32687 * varasm.c (default_binds_local_p_2): External definitions do not
32688 count as definitions here.
32689
32690 2015-02-16 Jeff Law <law@redhat.com>
32691
32692 PR tree-optimization/64823
32693 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32694 statements.
32695 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32696 threading through blocks with PHIs, but no statements.
32697 (thread_through_normal_block): Distinguish between blocks where
32698 we did not process all the statements and blocks with no statements.
32699
32700 2015-02-16 Jakub Jelinek <jakub@redhat.com>
32701 James Greenhalgh <james.greenhalgh@arm.com>
32702
32703 PR ipa/64963
32704 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32705 section if not linkonce. Fix up formatting.
32706 (cgraph_node::create_version_clone_with_body): Copy section.
32707 * trans-mem.c (ipa_tm_create_version): Likewise.
32708
32709 2015-02-16 Richard Biener <rguenther@suse.de>
32710
32711 PR tree-optimization/65077
32712 * tree-ssa-structalias.c (get_constraint_for_1): Handle
32713 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32714 (find_func_aliases): Allow float values to carry pointers again.
32715
32716 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
32717
32718 * doc/install.texi (Specific): Reorder targets list to put
32719 aarch64 in alphabetical order. Add a link to aarch64*-*-*
32720 from the top menu.
32721
32722 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32723 David Edelsohn <dje.gcc@gmail.com>
32724
32725 PR target/65058
32726 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32727 mapping class to external variable or function reference.
32728 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32729 mapping class.
32730
32731 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
32732
32733 PR target/53348
32734 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32735 ASM_WEAKEN_DECL if defined.
32736
32737 2015-02-16 Richard Biener <rguenther@suse.de>
32738
32739 PR lto/65015
32740 * varasm.c (default_file_start): For LTO produced units
32741 emit <artificial> as file directive.
32742
32743 2015-02-16 Richard Biener <rguenther@suse.de>
32744
32745 PR tree-optimization/63593
32746 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32747 stmts and releasing SSA names until...
32748 (execute_pred_commoning): ... after processing all chains.
32749
32750 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32751
32752 PR ipa/65059
32753 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32754 external functions.
32755
32756 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
32757
32758 * doc/bugreport.texi: Adjust section titles throughout the file
32759 to use "Title Case".
32760 * doc/extend.texi: Likewise.
32761 * doc/gcov.texi: Likewise.
32762 * doc/implement-c.texi: Likewise.
32763 * doc/implement-cxx.texi: Likewise.
32764 * doc/invoke.texi: Likewise.
32765 * doc/objc.texi: Likewise.
32766 * doc/standards.texi: Likewise.
32767 * doc/trouble.texi: Likewise.
32768
32769 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
32770
32771 * cgraph.h (symtab_node::has_aliases_p): Simplify.
32772 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32773 * tree.c (lookup_binfo_at_offset): Make static.
32774 (get_binfo_at_offset): Do not shadow offset; add explanatory
32775 comment.
32776
32777 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
32778
32779 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
32780 for all floading point loads and stores except those using a register
32781 index address.
32782 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
32783 to a register.
32784
32785 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32786
32787 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
32788 (do_estimate_growth_1): Record if any uninlinable edge was seen.
32789 (estimate_growth): Handle uninlinable edges correctly.
32790 (check_callers): New.
32791 (growth_likely_positive): Handle aliases correctly.
32792
32793 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32794
32795 * ipa-chkp.c: Use iterate_direct_aliases.
32796 * symtab.c (resolution_used_from_other_file_p): Move inline.
32797 (symtab_node::create_reference): Fix formating.
32798 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32799 (symtab_node::iterate_reference): Move inline.
32800 (symtab_node::iterate_referring): Move inline.
32801 (symtab_node::iterate_direct_aliases): Move inline.
32802 (symtab_node::used_from_object_file_p_worker): Inline into ...
32803 (symtab_node::used_from_object_file_p): ... this one; move inline.
32804 (symtab_node::call_for_symbol_and_aliases): Move inline;
32805 use iterate_direct_aliases.
32806 (symtab_node::call_for_symbol_and_aliases_1): New method.
32807 (cgraph_node::call_for_symbol_and_aliases): Move inline;
32808 use iterate_direct_aliases.
32809 (cgraph_node::call_for_symbol_and_aliases_1): New method.
32810 (varpool_node::call_for_node_and_aliases): Rename to ...
32811 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
32812 use iterate_direct_aliases.
32813 (varpool_node::call_for_symbol_and_aliases_1): New method.
32814 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
32815 (ipa_discover_readonly_nonaddressable_var): Update.
32816 * ipa-devirt.c: Fix formating.
32817 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
32818 Move inline.
32819 (cgraph_node::call_for_symbol_and_aliases): Move inline.
32820 (cgraph_node::call_for_symbol_and_aliases_1): New function..
32821 * cgraph.h (used_from_object_file_p_worker): Remove.
32822 (resolution_used_from_other_file_p): Move inline.
32823 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32824 (symtab_node::iterate_reference): Move inline.
32825 (symtab_node::iterate_referring): Move inline.
32826 (symtab_node::iterate_direct_aliases): Move inline.
32827 (symtab_node::used_from_object_file_p_worker): Inline into ...
32828 (symtab_node::used_from_object_file_p): Move inline.
32829 * tree-emutls.c (ipa_lower_emutls): Update.
32830 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
32831 (varpool_node::call_for_node_and_aliases): Remove.
32832
32833 2015-02-14 Jakub Jelinek <jakub@redhat.com>
32834
32835 PR tree-optimization/62209
32836 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
32837 op == range->exp, insert seq and gimplified code after labels
32838 instead of after the phi.
32839
32840 2015-02-13 Jeff Law <law@redhat.com>
32841
32842 PR bootstrap/65060
32843 Revert my change for tree-optimization/64823.
32844
32845 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32846
32847 PR tree-optimization/65053
32848 * tree-ssa-phiopt.c (value_replacement): When moving assign before
32849 cond, either reset VR on lhs or set it to phi result VR.
32850
32851 2015-02-13 Jeff Law <law@redhat.com>
32852
32853 PR tree-optimization/64823
32854 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
32855 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32856 threading through blocks with PHIs, but no statements.
32857 (thread_through_normal_block): Distinguish between blocks where
32858 we did not process all the statements and blocks with no statements.
32859
32860 PR rtl-optimization/47477
32861 * match.pd (convert (plus/minus (convert @0) (convert @1): New
32862 simplifier to narrow arithmetic.
32863
32864 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
32865
32866 PR ipa/65028
32867 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
32868 polymorphic call info when type is not known to be preserved.
32869
32870 2015-02-13 Maritn Jambor <mjambor@suse.cz>
32871
32872 PR ipa/65028
32873 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
32874 (inline_call): Use it.
32875
32876 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
32877
32878 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32879 GOMP_DEVICE_NVIDIA_PTX.
32880
32881 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32882
32883 PR ipa/65034
32884 * stmt.c (emit_case_nodes): Use void_type_node instead of
32885 NULL_TREE as LABEL_DECL type.
32886
32887 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
32888
32889 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32890 constraints.
32891 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32892 symbolic references to data to be forced to constant memory on the
32893 SOM target.
32894
32895 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
32896
32897 PR tree-optimization/65002
32898 * tree-cfg.c (pass_data_fixup_cfg): Don't update
32899 SSA on start.
32900 * tree-sra.c (some_callers_have_no_vuse_p): New.
32901 (ipa_early_sra): Reject functions whose callers
32902 assume function is read only.
32903
32904 2015-02-13 Richard Biener <rguenther@suse.de>
32905
32906 PR lto/65015
32907 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32908 for LTO produced CUs.
32909
32910 2015-02-13 Bin Cheng <bin.cheng@arm.com>
32911
32912 PR tree-optimization/64705
32913 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32914 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32915 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32916 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32917 expand_simple_operations.
32918
32919 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
32920 Richard Henderson <rth@redhat.com>
32921
32922 PR rtl/32219
32923 * cgraphunit.c (cgraph_node::finalize_function): Set definition
32924 before notice_global_symbol.
32925 (varpool_node::finalize_decl): Likewise.
32926 * varasm.c (default_binds_local_p_2): Rename from
32927 default_binds_local_p_1, add weak_dominate argument. Use direct
32928 returns instead of assigning to local variable. Unify varpool and
32929 cgraph paths via symtab_node. Reject undef weak variables before
32930 testing visibility. Reorder tests for simplicity.
32931 (default_binds_local_p): Use default_binds_local_p_2.
32932 (default_binds_local_p_1): Likewise.
32933 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32934 via symtab_node.
32935 (default_elf_asm_output_external): Emit visibility when specified.
32936
32937 2015-02-13 Alan Modra <amodra@gmail.com>
32938
32939 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32940 code setting up r11 for out-of-line fp restore.
32941
32942 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
32943
32944 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32945 (muser-mode): Likewise.
32946
32947 2015-02-13 Alan Modra <amodra@gmail.com>
32948
32949 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32950 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32951
32952 2015-02-12 David Howells <dhowells@redhat.com>
32953
32954 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32955 warning.
32956 * tree-ssa-uninit.c (dump_predicates): Likewise.
32957 * opts.c (print_filtered_help): Likewise.
32958
32959 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32960
32961 * dwarf2out.c (output_die): Use "%s", name instead of name to
32962 avoid -Wformat-security warning.
32963
32964 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32965 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32966 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32967 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32968
32969 2015-02-12 Jason Merrill <jason@redhat.com>
32970
32971 * common.opt (-flifetime-dse): New.
32972
32973 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32974
32975 PR sanitizer/65019
32976 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32977
32978 PR tree-optimization/65014
32979 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32980 use original second operand of arg0 or arg1 instead of
32981 that adjusted by STRIP_NOPS.
32982
32983 2015-02-11 Jeff Law <law@redhat.com>
32984
32985 PR target/63347
32986 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
32987 that needs to be queued, just queue it for a single cycle.
32988
32989 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
32990
32991 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
32992 bodies of thunks; comment on why.
32993 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
32994 symbols are extern.
32995
32996 2015-02-11 Richard Henderson <rth@redhat.com>
32997
32998 PR sanitize/65000
32999 * tree-eh.c (mark_reachable_handlers): Mark source and destination
33000 regions of __builtin_eh_copy_values.
33001
33002 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33003
33004 PR middle-end/65003
33005 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
33006 ultimate alias is MEM with SYMBOL_REF satisfying
33007 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
33008 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
33009
33010 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
33011
33012 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
33013 "diagnostic-core.h".
33014 (main): Initialize progname, and call diagnostic_initialize.
33015
33016 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
33017 instead of __OPENMP_TARGET__.
33018
33019 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
33020 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
33021 hard-coding PTX_ID.
33022
33023 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
33024
33025 * doc/sourcebuild.texi (pie_enabled): Document.
33026
33027 2015-02-11 Martin Liska <mliska@suse.cz>
33028
33029 PR ipa/64813
33030 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
33031 a return value for call to a function that is noreturn.
33032
33033 2015-02-11 Richard Biener <rguenther@suse.de>
33034
33035 PR lto/65015
33036 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
33037 and -fresolution.
33038
33039 2015-02-11 Andrew Pinski <apinski@cavium.com>
33040
33041 PR target/64893
33042 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
33043 Change the first argument type to size_type_node and add another
33044 size_type_node.
33045 (aarch64_simd_expand_builtin): Handle the new argument to
33046 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
33047 print an out when the first two arguments are not
33048 nonzero integer constants.
33049 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
33050 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
33051
33052 2015-02-11 Jakub Jelinek <jakub@redhat.com>
33053
33054 PR target/61925
33055 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
33056 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
33057 (ix86_set_current_function): Rewritten.
33058 (ix86_add_new_builtins): Temporarily clear current_target_pragma
33059 when creating builtin fndecls.
33060
33061 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33062
33063 PR ipa/65005
33064 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
33065 function.
33066 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
33067 have no comdat group.
33068 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
33069 (lto_output_varpool_node): Always output alias info.
33070 (output_refs): Output refs of boundary aliases, too.
33071 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
33072 (output_symtab): Output call eges in thunks in boundary.
33073 (get_alias_symbol): Remove.
33074 (input_node, input_varpool_node): Do not special case weakrefs.
33075 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
33076 alias and thunks targets in the boundary; do not take removed symbols
33077 from their comdat groups.
33078 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
33079 (cgraph_node::global_info): Remove.
33080 (cgraph_node::rtl_info): Look through aliases and thunks.
33081 * cgrpah.h (global_info): Remove.
33082 (non_local_p): Remove.
33083
33084 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33085 Sandra Loosemore <sandra@codesourcery.com>
33086
33087 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
33088 to inline asm. List dialects in proper order.
33089
33090 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33091 Sandra Loosemore <sandra@codesourcery.com>
33092
33093 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
33094
33095 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
33096
33097 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
33098 modified) reference to Solaris.
33099
33100 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
33101
33102 * doc/extend.texi (Extended Asm): Fix typos.
33103
33104 2015-02-10 Jakub Jelinek <jakub@redhat.com>
33105
33106 PR sanitizer/65004
33107 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
33108
33109 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
33110
33111 PR target/64661
33112 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
33113 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
33114 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
33115 * config/sh/constraints.md (Ara, Add): New constraints.
33116 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
33117 predicates.
33118 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
33119 atomic_mem_operand_0. Don't use force_reg on the memory address.
33120 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
33121 Sra constraint. Convert to insn_and_split. Add workaround for
33122 PR 64974.
33123 (atomic_compare_and_swap<mode>_hard): Copy to
33124 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
33125 Use atomic_mem_operand_0 predicate.
33126 (atomic_compare_and_swap<mode>_soft_gusa,
33127 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
33128 AraAdd constraints.
33129 (atomic_compare_and_swap<mode>_soft_tcb,
33130 atomic_compare_and_swap<mode>_soft_imask,
33131 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
33132 atomic_mem_operand_0 predicate and SraSdd constraints.
33133 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
33134 constraint.
33135 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
33136 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
33137 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
33138 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
33139 force_reg on the memory address.
33140 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
33141 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
33142 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
33143 atomic_mem_operand_1 predicate and Sra constraint.
33144 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
33145 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33146 Use atomic_mem_operand_1 predicate.
33147 (atomic_<fetchop_name><mode>_hard): Copy to
33148 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
33149 Use atomic_mem_operand_1 predicate.
33150 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
33151 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33152 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
33153 insn_and_split. Use atomic_mem_operand_1 predicate.
33154 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
33155 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
33156 Use atomic_mem_operand_1 predicate.
33157 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
33158 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33159 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33160 in generated insn with original mem operand before emitting the insn.
33161 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33162 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33163 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33164 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33165 Use atomic_mem_operand_1 predicate and AraAdd constraints.
33166 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33167 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33168 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33169 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33170 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33171 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33172 atomic_not_fetch<mode>_soft_tcb,
33173 atomic_<fetchop_name>_fetch<mode>_soft_imask,
33174 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33175 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33176 Use atomic_mem_operand_1 predicate and SraSdd constraints.
33177
33178 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
33179
33180 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33181 and 3 earlyclobber operands.
33182
33183 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33184
33185 * common.opt (fstack-reuse): Mark as optimization.
33186
33187 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33188
33189 PR ipa/64982
33190 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33191
33192 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
33193
33194 PR tree-optimization/64326
33195 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33196
33197 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
33198
33199 PR gcov-profile/61889
33200 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33201
33202 2015-02-10 Richard Biener <rguenther@suse.de>
33203
33204 PR tree-optimization/64995
33205 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33206 value we use is final.
33207 (visit_reference_op_store): Always valueize op.
33208 (visit_use): Properly valueize vuses.
33209
33210 2015-02-10 Richard Biener <rguenther@suse.de>
33211
33212 PR tree-optimization/64909
33213 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33214 pass a scalar-stmt count estimate to the cost model.
33215 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33216
33217 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
33218
33219 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33220 enabled by default together with var-tracking.
33221
33222 2015-02-10 Nick Clifton <nickc@redhat.com>
33223
33224 * config/rl78/rl78.c: Remove DIV attribute code accidentally
33225 included in previous rl78 commit.
33226
33227 2015-02-10 Richard Biener <rguenther@suse.de>
33228
33229 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33230 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33231 return the bitpack.
33232
33233 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33234
33235 PR gcov-profile/61889
33236 * config.in: regenerate.
33237 * configure.in: Likewise.
33238 * configure.ac: Check for ftw.h.
33239 * gcov-tool.c: Check for ftw.h before using nftw.
33240
33241 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33242
33243 PR lto/64076
33244 * ipa-visibility.c (update_visibility_by_resolution_info): Only
33245 assert when not in lto mode.
33246
33247 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33248
33249 * ira-color.c (setup_left_conflict_sizes_p): Simplify
33250 initialization/assignment of conflict_size.
33251
33252 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
33253
33254 PR ipa/64978
33255 * ipa-cp.c (gather_caller_stats): Skip thunks.
33256 (propagate_constants_topo): Skip aliases.
33257
33258 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
33259
33260 PR target/64761
33261 * config/sh/sh.c (sh_option_override): Don't change
33262 -freorder-blocks-and-partition to -freorder-blocks even when
33263 unwinding is enabled.
33264 (sh_can_follow_jump): Return false if the followee jump is
33265 a crossing jump when -freorder-blocks-and-partition is specified.
33266 * config/sh/sh.md (*jump_compact_crossing): New insn.
33267
33268 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
33269 Kaz Kojima <kkojima@gcc.gnu.org>
33270
33271 PR target/64761
33272 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33273 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33274 (sh_can_redirect_branch): Rename to ...
33275 (sh_can_follow_jump): ... this. Constify argument types.
33276 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33277 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33278 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33279 * doc/tm.texi: Regenerate.
33280
33281 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33282
33283 PR sanitizer/64981
33284 * builtins.c (expand_builtin): Call targetm.expand_builtin
33285 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33286
33287 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33288
33289 PR ipa/61548
33290 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33291
33292 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33293
33294 PR ipa/63566
33295 * ipa-icf.c (set_local): New function.
33296 (sem_function::merge): Use it.
33297
33298 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33299
33300 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33301 (add_type_duplicate): Fix comparison of BINFOs.
33302
33303 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33304
33305 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33306 on getting VOID pointer.
33307
33308 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33309
33310 PR target/64979
33311 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33312 va_list escapes.
33313
33314 2015-02-09 Richard Biener <rguenther@suse.de>
33315
33316 * genmatch.c (replace_id): Copy expr_type.
33317
33318 2015-02-09 Richard Biener <rguenther@suse.de>
33319
33320 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33321 (streamer_write_tree_bitfields): Declare.
33322 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33323 properly unpack padding.
33324 (unpack_value_fields): Inline ...
33325 (streamer_read_tree_bitfields): ... here.
33326 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33327 and properly add padding bits.
33328 (streamer_pack_tree_bitfields): Fold into ...
33329 (streamer_write_tree_bitfields): ... this new function,
33330 exposing the bitpack object.
33331 * lto-streamer-out.c (lto_write_tree_1): Call
33332 streamer_write_tree_bitfields.
33333
33334 2015-02-09 Richard Biener <rguenther@suse.de>
33335
33336 PR tree-optimization/54000
33337 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33338 (struct ivopts_data): Add loop_loc member.
33339 (tree_ssa_iv_optimize_loop): Dump loop location.
33340 (create_new_ivs): Likewise, also dump number of IVs generated.
33341
33342 2015-02-09 Martin Liska <mliska@suse.cz>
33343
33344 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33345 just if not yet registered.
33346 (ipa_icf_generate_summary): Register callgraph hooks.
33347
33348 2015-02-08 Andrew Pinski <apinski@cavium.com>
33349
33350 * config/aarch64/aarch64.c (gty_dummy): Delete.
33351
33352 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33353
33354 PR ipa/63566
33355 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33356 (cgraph_node::local_p): Remove thunk related FIXME.
33357
33358 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33359
33360 PR ipa/63566
33361 * i386.c (ix86_function_regparm): Look through aliases to see if callee
33362 is local and optimized.
33363 (ix86_function_sseregparm): Likewise; also use target's SSE math
33364 settings; error out instead of silently generating wrong code
33365 on mismatches.
33366 (init_cumulative_args): Look through aliases.
33367
33368 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33369
33370 PR ipa/63566
33371 * ipa-split.c (execute_split_functions): Split if function has aliases.
33372
33373 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33374
33375 PR ipa/63566
33376 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33377 aliases before trying to expand it.
33378 (cgraph_node::expand_thunk): Fix formating.
33379
33380 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
33381
33382 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33383 (Using Assembly Language with C): Expand introduction.
33384 (Basic Asm): Copy-edit. Add more information about uses of
33385 basic asm.
33386 (Extended Asm): Copy-edit. Document new escape syntax and
33387 %l[label] syntax.
33388 (Global Reg Vars): Copy-edit.
33389 (Local Reg Vars): Likewise.
33390
33391 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
33392
33393 PR debug/2714
33394 PR bootstrap/64256
33395 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33396 (DBX_CONTIN_CHAR): Define.
33397
33398 2015-02-06 Sebastian Pop <s.pop@samsung.com>
33399 Brian Rzycki <b.rzycki@samsung.com>
33400
33401 PR tree-optimization/64878
33402 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33403 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33404 Stop recursion at loop phi nodes after having visited a loop phi node.
33405
33406 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33407
33408 * toplev.c (process_options): Change flag_ipa_ra before creating
33409 optimization_{default,current}_node.
33410
33411 PR ipa/64896
33412 * cgraphunit.c (cgraph_node::expand_thunk): If
33413 restype is not is_gimple_reg_type nor the thunk_fndecl
33414 returns aggregate_value_p, set restmp to a temporary variable
33415 instead of resdecl.
33416
33417 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
33418
33419 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33420
33421 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33422
33423 PR target/64205
33424 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33425 add a general secondary reload handler for SDmode, unless we have
33426 both read/write support for SDmode.
33427
33428 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33429
33430 PR middle-end/64937
33431 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33432 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33433 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33434 1 before, push it to abstract_vec.
33435 (dwarf2out_abstract_function): Adjust caller. Don't call
33436 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33437 DECL_ABSTRACT_P flags for all abstract_vec elts.
33438
33439 2015-02-06 Renlin Li <renlin.li@arm.com>
33440
33441 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33442 complex gimple.
33443 * tree-ssa.c (execute_update_addresses_taken): Likewise.
33444
33445 2015-02-06 Jeff Law <law@redhat.com>
33446
33447 PR target/64889
33448 * config/h8300/h8300.c (push): New argument "in_prologue".
33449 Pass "in_prologue" along to "F".
33450 (h8300_push_pop): Corresponding changes.
33451 (h8300_expand_prologue): Likewise.
33452 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
33453
33454 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33455
33456 PR rtl-optimization/64957
33457 PR debug/64817
33458 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33459 IOR rather than for AND.
33460
33461 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
33462
33463 PR target/62631
33464 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33465 of shift-add and (add + shift) operations. Rename local variable.
33466
33467 2015-02-05 Jeff Law <law@redhat.com>
33468
33469 PR target/17306
33470 * config/h8300/constraints.md (U): Correctly dectect
33471 "eightbit_data" memory addresses.
33472 * config/h8300/h8300.c (eightbit_constant_address_p): Also
33473 handle (const (plus (symbol_ref (x)))) where x is declared
33474 as an 8-bit data memory address.
33475 * config/h8300/h8300.md (call, call_value): Correctly detect
33476 "funcvec" functions.
33477
33478 PR target/43264
33479 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
33480 24 to 28 bits for the H8/300.
33481
33482 2015-02-06 Alan Modra <amodra@gmail.com>
33483
33484 PR target/64876
33485 * config/rs6000/rs6000.c (chain_already_loaded): New function.
33486 (rs6000_call_aix): Use it.
33487
33488 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
33489
33490 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
33491 check.
33492
33493 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
33494
33495 * config/h8300/constraints.md ("U" constraint): Use strict
33496 variant of REG_OK_FOR_BASE_P after reload has started.
33497
33498 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
33499
33500 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
33501 define to zero if !TARGET_NEON.
33502 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
33503
33504 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33505 Trevor Saunders <tsaunders@mozilla.com>
33506
33507 PR ipa/61548
33508 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
33509
33510 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33511
33512 PR ipa/61548
33513 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
33514 when removing varpool nodes.
33515
33516 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33517
33518 PR ipa/61548
33519 * varpool.c (varpool_node::remove): Fix order of variables.
33520
33521 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33522
33523 PR ipa/64686
33524 * ipa-inline.c (inline_small_functions): Fix ordering issue between
33525 speculation resolution and key updates.
33526
33527 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33528
33529 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
33530 about not letting any speculative edges unupdated.
33531
33532 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33533
33534 PR gcov/64123
33535 * gcov-io.c (gcov_var): Export.
33536
33537 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33538
33539 PR middle-end/64922
33540 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
33541 edges that become speculative.
33542
33543 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33544
33545 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
33546 or DW_LANG_Fortran08.
33547 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
33548 DW_LANG_Fortran08.
33549 (gen_compile_unit_die): Handle "GNU Fortran2003" and
33550 "GNU Fortran2008" language strings.
33551 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
33552 * langhooks.h (lang_GNU_Fortran): New prototype.
33553 * langhooks.c (lang_GNU_Fortran): New function.
33554 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
33555 lang_GNU_Fortran.
33556
33557 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33558
33559 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33560 (RTX_OK_FOR_OLO10_P): Likewise.
33561
33562 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33563
33564 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
33565
33566 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33567
33568 PR middle-end/64922
33569 * gimple.c: Include gimple-ssa.h.
33570 (maybe_remove_unused_call_args): New function.
33571 * gimple.h (maybe_remove_unused_call_args): Declare.
33572 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33573 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33574 * gimple-fold.c (gimple_fold_call): Likewise.
33575
33576 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
33577
33578 PR rtl-optimization/64905
33579 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33580 pointer alignment if it isn't needed.
33581
33582 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33583
33584 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33585 cortex-a72.cortex-a53.
33586 * config/aarch64/aarch64-tune.md: Regenerate.
33587 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33588
33589 2015-02-04 Nick Clifton <nickc@redhat.com>
33590
33591 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33592 inside a MEM.
33593
33594 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33595
33596 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33597 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33598 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33599 of DEF_BUILTIN.
33600 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33601 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33602 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33603 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33604 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33605 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33606 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33607 * tree-core.h (enum built_in_function): In between
33608 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33609 for builtins that use DEF_BUILTIN_CHKP macro.
33610
33611 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
33612
33613 PR debug/64817
33614 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33615 operands for tcc_comparison exprs. Fix typos.
33616
33617 PR debug/64817
33618 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33619 of two XORs that have an intervening AND or IOR.
33620
33621 PR debug/64817
33622 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33623 simplification of XOR of AND to not allocate new rtx before
33624 committing to a simplification.
33625
33626 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33627
33628 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33629 manual swaps in all peepholes.
33630
33631 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33632
33633 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33634 of manual swapping implementation.
33635 (aarch64_expand_vec_perm_const_1): Likewise.
33636
33637 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
33638
33639 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33640 (generic_addrcost_table): Remove NAMED_PARAM.
33641 (cortexa57_addrcost_table): Likewise.
33642 (xgene1_addrcost_table): Likewise.
33643 (generic_regmove_table): Likewise.
33644 (cortexa53_regmove_table): Likewise.
33645 (xgene1_regmove_table): Likewise.
33646 (generic_vector_table): Likewise.
33647 (cortexa57_vector_table): Likewise.
33648 (xgene1_vector_table): Likewise.
33649 (generic_tunings): Likewise.
33650 (cortexa53_tunings): Likewise.
33651 (cortexa57_tunings): Likewise.
33652 (xgene1_tunings): Likewise.
33653
33654 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33655
33656 * config/arm/arm-cores.def: Add cortex-a72 and
33657 cortex-a72.cortex-a53.
33658 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33659 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33660 * config/arm/arm-tune.md: Regenerate.
33661 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33662 "cortex-a72.cortex-a53".
33663 * doc/invoke.texi (ARM Options/-mtune): Likewise.
33664
33665 2015-02-04 Nick Clifton <nickc@redhat.com>
33666
33667 PR target/64408
33668 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33669 of accepted codes.
33670 (nonimmediate_di_operand): Likewise.
33671
33672 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33673 prefixes of known F5 using MSP430 MCUs.
33674
33675 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33676
33677 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33678 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33679 instead of __builtin_sqrt.
33680
33681 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
33682
33683 * varasm.c (do_assemble_alias): Follow transparent alias
33684 chain for target.
33685 (default_assemble_visibility): Follow transparent alias
33686 chain for decl name.
33687
33688 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
33689
33690 PR middle-end/62103
33691 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33692 to compute size of referenced value in the constant case.
33693
33694 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33695
33696 PR rtl-optimization/64756
33697 * cse.c (invalidate_dest): New function.
33698 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
33699 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33700 invalidate and do not record it.
33701
33702 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
33703
33704 PR target/64660
33705 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33706 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33707 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33708 atomic_nand<mode>_soft_tcb): New insns.
33709 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33710 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33711 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33712 Split into atomic_not_fetchsi_hard if operands[0] is unused.
33713 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33714 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33715 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
33716 atomic_not<mode>_hard if operands[0] is unused.
33717 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33718 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33719 if operands[0] is unused.
33720 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
33721 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33722 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33723 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33724 unused.
33725 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
33726 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33727 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33728 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33729 if operands[0] is unused.
33730 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
33731 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33732 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
33733 atomic_nand_fetchsi_hard if operands[0] is unused.
33734 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
33735 atomic_nand<mode>_hard if operands[0] is unused.
33736 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
33737 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33738 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
33739 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33740 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
33741 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33742 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33743 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33744 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
33745 atomic_not<mode>_hard if operands[0] is unused.
33746 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33747 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33748 unused.
33749 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33750 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33751 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
33752 atomic_nand<mode>_hard if operands[0] is unused.
33753 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33754 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33755
33756 2015-02-03 David Malcolm <dmalcolm@redhat.com>
33757
33758 PR jit/64810
33759 * Makefile.in (GCC_OBJS): Add gcc-main.o.
33760 * gcc-main.c: New file, containing "main" taken from gcc.c.
33761 * gcc.c (do_self_spec): Free decoded_options.
33762 (class driver): Move declaration to gcc.h.
33763 (main): Move declaration and implementation to new file
33764 gcc-main.c.
33765 (driver_get_configure_time_options): New function.
33766 * gcc.h (class driver): Move this declaration here, from
33767 gcc.c.
33768 (driver_get_configure_time_options): New declaration.
33769
33770 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
33771
33772 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33773 cross-module inlining.
33774 * cgraph.h (cgraph_node): Add flag merged.
33775 * ipa-icf.c (sem_function::merge): Maintain it.
33776
33777 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
33778
33779 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
33780 instead of OBJECT_P.
33781
33782 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
33783
33784 PR target/62631
33785 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
33786 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
33787 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
33788 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
33789
33790 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33791
33792 PR other/63504
33793 * combine.c (reg_n_sets_max): New variable.
33794 (can_change_dest_mode, reg_nonzero_bits_for_combine,
33795 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
33796 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
33797 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
33798 (rest_of_handle_combine): Initialize reg_n_sets_max.
33799
33800 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
33801
33802 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
33803 if some always_inline was inlined, apply changes before inlining
33804 heuristically.
33805
33806 2015-02-02 David Malcolm <dmalcolm@redhat.com>
33807
33808 PR jit/64810
33809 * config/arm/arm.c (arm_option_override): Set
33810 arm_selected_arch/cpu/tune to NULL on entry.
33811
33812 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
33813 Andrew Pinski <pinskia@gcc.gnu.org>
33814 Jakub Jelinek <jakub@gcc.gnu.org>
33815
33816 PR target/64231
33817 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
33818 integer typing for small model. Use IN_RANGE.
33819
33820 2015-02-02 Richard Biener <rguenther@suse.de>
33821
33822 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
33823 * tree-vrp.c (vrp_valueize_1): Likewise.
33824
33825 2015-02-02 Alan Modra <amodra@gmail.com>
33826
33827 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
33828 than mem for toc_restore.
33829 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
33830 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
33831 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
33832
33833 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
33834
33835 PR target/64047
33836 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
33837 explicit default options.
33838
33839 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
33840
33841 PR ipa/64872
33842 * ipa-utils.c (ipa_merge_profiles): Add release argument.
33843 * ipa-icf.c (sem_function::merge): Do not release body when merging.
33844 * ipa-utils.h (ipa_merge_profiles): Update prototype.
33845
33846 2015-02-01 Jakub Jelinek <jakub@redhat.com>
33847
33848 PR debug/64817
33849 * cfgexpand.c (deep_ter_debug_map): New variable.
33850 (avoid_deep_ter_for_debug): New function.
33851 (expand_debug_expr): If TERed SSA_NAME is in
33852 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
33853 instead of trying to expand SSA_NAME's def stmt.
33854 (expand_debug_locations): When expanding debug bind
33855 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
33856 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
33857 value.
33858 (pass_expand::execute): Call avoid_deep_ter_for_debug on
33859 all debug bind stmts. Delete deep_ter_debug_map after
33860 expand_debug_location if non-NULL and clear it.
33861
33862 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
33863
33864 PR target/64851
33865 * config/sh/sync.md (atomic_fetch_notsi_hard,
33866 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
33867 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
33868 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
33869 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
33870 atomic_not_fetch<mode>_soft_imask): New insns.
33871
33872 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33873
33874 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
33875 (rank_for_schedule_debug): Split from ...
33876 (rank_for_schedule): ... this.
33877 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33878 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33879
33880 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33881
33882 * doc/md.texi (Machine Constraints): Alphabetize table by target.
33883 * doc/extend.texi (x86 Variable Attributes): Move section to
33884 correct alphabetization after renaming.
33885 (x86 Type Attributes): Likewise.
33886 (Target Builtins): Re-alphabetize menu.
33887 (x86 Built-in Functions): Move section to correct alphabetization
33888 after renaming.
33889 (x86 transactional memory intrinsics): Likewise.
33890 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33891 and x86 Windows Options in table and menu.
33892 (x86 Options): Move section to correct alphabetization after
33893 renaming.
33894 (x86 Windows Options): Likewise.
33895
33896 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33897
33898 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33899 preferred names of the architecture and its 32- and 64-bit
33900 variants.
33901 * doc/invoke.texi: Likewise.
33902 * doc/md.texi: Likewise.
33903
33904 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33905
33906 PR target/64882
33907 * config/i386/predicates.md (address_no_seg_operand): Reject
33908 non-CONST_INT_P operands in invalid mode.
33909
33910 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33911
33912 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33913 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
33914 * config/i386/predicates.md (address_no_seg_operand): Call
33915 address_operand with VOIDmode.
33916 (vsib_address_operand): Ditto.
33917 (address_mpx_no_base_operand): Ditto.
33918 (address_mpx_no_index_operand): Ditto.
33919
33920 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33921
33922 PR target/64688
33923 * lra-constraints.c (original_subreg_reg_mode): New.
33924 (simplify_operand_subreg): Try to simplify subreg of const. Use
33925 original_subreg_reg_mode for it.
33926 (swap_operands): Update original_subreg_reg_mode.
33927 (curr_insn_transform): Set up original_subreg_reg_mode.
33928
33929 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33930
33931 PR target/64617
33932 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33933 function.
33934 (process_alt_operands): Use it.
33935 (curr_insn_transform): Check the optional reload pseudo class is
33936 ok for the mode.
33937
33938 2015-01-30 Joseph Myers <joseph@codesourcery.com>
33939
33940 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33941 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33942 prototype.
33943 * toplev.h (init_asm_output): Update comment on use of
33944 UNKNOWN_LOCATION with fatal_error.
33945 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33946 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33947 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33948 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33949 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33950 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33951 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33952 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33953 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33954 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33955 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33956 fatal_error changed to pass input_location as first argument.
33957
33958 2015-01-30 Martin Liska <mliska@suse.cz>
33959
33960 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33961 in #pragma GCC diagnostic guards.
33962
33963 2015-01-30 Richard Biener <rguenther@suse.de>
33964
33965 PR tree-optimization/64829
33966 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33967 not add a widening conversion pattern but hand off extra
33968 widenings to callers.
33969 (vect_recog_widen_mult_pattern): Handle extra widening produced
33970 by vect_handle_widen_op_by_const.
33971 (vect_recog_widen_shift_pattern): Likewise.
33972 (vect_pattern_recog_1): Remove excess vertical space in dumping.
33973 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33974 (vect_init_vector_1): Likewise.
33975 (vect_get_vec_def_for_operand): Likewise.
33976 (vect_finish_stmt_generation): Likewise.
33977 (vectorizable_load): Likewise.
33978 (vect_analyze_stmt): Likewise.
33979 (vect_is_simple_use): Likewise.
33980
33981 2015-01-29 Jeff Law <law@redhat.com>
33982
33983 * combine.c (try_combine): Fix typo in comment.
33984
33985 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
33986
33987 PR target/64580
33988 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
33989 (rs6000_stack_info): Add assert.
33990 (rs6000_output_savres_externs): New function, split off from...
33991 (rs6000_output_function_prologue): ... here. Do not call it for
33992 thunks.
33993
33994 2015-01-29 Jeff Law <law@redhat.com>
33995
33996 PR target/15184
33997 * combine.c (try_combine): If I0 is a memory load and I3 a store
33998 to a related address, increase the "goodness" of doing a 4-insn
33999 combination with I0-I3.
34000 (make_field_assignment): Handle SUBREGs in the ior+and case.
34001
34002 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
34003
34004 PR tree-optimization/64746
34005 * tree-if-conv.c (mask_exists): New function.
34006 (predicate_mem_writes): Save created mask with given size for further
34007 use.
34008 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
34009 (ifcvt_repair_bool_pattern): Collect all statements that are root
34010 of bool pattern and use iterative algorithm to remove multiple uses
34011 of predicates, display number of required iterations.
34012
34013 2015-01-29 Richard Biener <rguenther@suse.de>
34014
34015 PR tree-optimization/64853
34016 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
34017 stmt will get simulated again.
34018 * tree-ssa-ccp.c (valueize_op_1): Likewise.
34019
34020 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34021
34022 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
34023 return_in_pc. Remove redundant assignments.
34024 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
34025 (arm_expand_epilogue): Don't compare boolean with true in if condition.
34026
34027 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
34028
34029 * config/i386/i386.c (ix86_mode_after): Make static.
34030
34031 2015-01-29 Richard Biener <rguenther@suse.de>
34032
34033 PR tree-optimization/64844
34034 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
34035 dump cost model analysis.
34036 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34037 Do not register adjusted load/store costs here.
34038
34039 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34040 Uros Bizjak <ubizjak@gmail.com>
34041
34042 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
34043 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
34044 using x86_use_pseudo_pic_reg.
34045 * config/i386/i386.c (ix86_conditional_register_usage): Remove
34046 support for fixed PIC register.
34047 (ix86_use_pseudo_pic_reg): Not static any more.
34048
34049 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
34050
34051 PR middle-end/64805
34052 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
34053 to avoid error in cgraph node verification.
34054
34055 2015-01-29 Marek Polacek <polacek@redhat.com>
34056
34057 * doc/standards.texi: Reflect that the default for C is gnu11.
34058
34059 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
34060
34061 PR target/64761
34062 * reorg.c (switch_text_sections_between_p): New function.
34063 (relax_delay_slots): Call it when testing if the jump insn
34064 is removable. Use targetm.can_follow_jump when testing if
34065 the conditional branch can follow an unconditional jump.
34066
34067 2015-01-27 Caroline Tice <cmtice@google.com>
34068
34069 Committing VTV Cywin/Ming patch for Patrick Wollgast
34070 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
34071 if -fvtable-verify=preinit/std is used.
34072 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
34073 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
34074 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
34075 if -fvtable-verify=preinit/std is used.
34076 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
34077 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
34078 if -fvtable-verify=preinit/std is used.
34079 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
34080 * config/i386/mingw32.h (LIB_SPEC): Likewise.
34081 * varasm.c (assemble_variable): Add code to properly set the comdat
34082 section and name for the .vtable_map_vars section in case the
34083 target is PE or COFF.
34084
34085 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34086
34087 PR ipa/64801
34088 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
34089 make sane BB profile.
34090 (cgraph_node::expand_thunk): Make sane BB profile.
34091 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
34092 * cgraph.h (init_lowered_empty_function): Update prototype.
34093 * config/i386/i386.c (make_resolver_func): Update call.
34094 * predict.c (gate): Disable branch prediction pass if
34095 profile is already there.
34096
34097 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
34098
34099 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
34100 * opth-gen.awk: Likewise.
34101 * common.opt: Mark flag_fp_contract_mode as Optimization.
34102
34103 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
34104
34105 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
34106 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
34107
34108 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
34109
34110 PR target/64659
34111 * config/sh/predicates.md (atomic_arith_operand,
34112 atomic_logical_operand): Remove.
34113 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
34114 (atomic_arith_operand_0): New predicate.
34115 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
34116 Use atomic_arith_operand_0 for input values.
34117 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
34118 atomic_compare_and_swap<mode>_soft_gusa,
34119 atomic_compare_and_swap<mode>_soft_tcb,
34120 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
34121 arith_reg_operand instead of register_operand.
34122 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
34123 atomic_arith_operand_0 for newval input.
34124 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
34125 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
34126 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
34127 arith_reg_operand instead of register_operand.
34128 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
34129 fetchop_predicate_1, fetchop_constraint_1_llcs,
34130 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
34131 fetchop_constraint_1_imask): New code iterator attributes.
34132 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
34133 register_operand. Use fetchop_predicate_1.
34134 (atomic_fetch_<fetchop_name>si_hard,
34135 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
34136 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
34137 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
34138 and arith_reg_operand instead of register_operand. Use
34139 fetchop_predicate_1, fetchop_constraint_1_gusa.
34140 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
34141 and arith_reg_operand instead of register_operand. Use
34142 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
34143 to allow R0 usage.
34144 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
34145 and arith_reg_operand instead of register_operand. Use
34146 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
34147 to allow R0 usage.
34148 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
34149 register_operand. Use atomic_logical_operand_1.
34150 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
34151 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
34152 arith_reg_operand instead of register_operand.
34153 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
34154 Use arith_reg_dest and arith_reg_operand instead of register_operand.
34155 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
34156 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
34157 register_operand. Use fetchop_predicate_1.
34158 (atomic_<fetchop_name>_fetchsi_hard,
34159 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34160 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34161 fetchop_constraint_1_llcs.
34162 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34163 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34164 fetchop_constraint_1_gusa.
34165 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34166 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34167 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
34168 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34169 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34170 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
34171 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34172 register_operand. Use atomic_logical_operand_1.
34173 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34174 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34175 arith_reg_operand instead of register_operand.
34176 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34177 arith_reg_operand instead of register_operand. Use logical_operand
34178 and K08. Adjust asm sequence to allow R0 usage.
34179 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34180 arith_reg_operand instead of register_operand. Use logical_operand
34181 and K08.
34182
34183 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34184
34185 PR other/63504
34186 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34187 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34188 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34189 only get_full_len HOST_WIDE_INTs from get_val () array rather than
34190 all bits in *val_wide.
34191
34192 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
34193
34194 * varpool.c (tls_model_names): Fix names.
34195 (varpool_node::dump): Dump tls- prefix for tls models.
34196
34197 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
34198 Bernd Schmidt <bernds@codesourcery.com>
34199 Nathan Sidwell <nathan@codesourcery.com>
34200
34201 * config/nvptx/mkoffload.c: New file.
34202 * config/nvptx/t-nvptx: Add build rules for it.
34203 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34204 (extra_programs): Add mkoffload.
34205 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34206 function.
34207 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34208
34209 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
34210
34211 PR middle-end/64809
34212 * cfgexpand.c (reorder_operands): Skip debug gimples.
34213
34214 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
34215
34216 PR tree-optimization/64277
34217 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34218 range info when possible to refine estimation.
34219
34220 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34221
34222 PR tree-optimization/64718
34223 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34224 be a 16bit unsigned integer when n->range is 16.
34225 (bswap_replace): Convert src to that type if necessary for all bswap
34226 sizes. Fix rotation right notation in nearby comment. Use bswap_type
34227 set in pass_optimize_bswap::execute ().
34228
34229 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
34230
34231 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34232 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34233 integer and floating point variants.
34234 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34235
34236 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
34237
34238 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34239 for all vector modes.
34240
34241 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34242
34243 PR bootstrap/64612
34244 * doc/sourcebuild.texi (comdat_group): Document.
34245
34246 2015-01-28 Terry Guo <terry.guo@arm.com>
34247
34248 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34249
34250 2015-01-27 David Malcolm <dmalcolm@redhat.com>
34251
34252 * toplev.c (print_version): Add param "show_global_state", and
34253 only print GGC and plugin information if it is true.
34254 (init_asm_output): Pass in "true" for the new param when calling
34255 print_version.
34256 (process_options): Likewise.
34257 (toplev::main): Likewise.
34258 * toplev.h (print_version): Add new param to decl.
34259
34260 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34261
34262 PR ipa/60871
34263 PR ipa/64139
34264 * tree.c (lookup_binfo_at_offset): New function.
34265 (get_binfo_at_offset): Use it.
34266
34267 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34268
34269 PR ipa/64282
34270 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34271 on vtable being vtable.
34272
34273 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
34274
34275 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34276 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34277 -mhotpatch= option.
34278 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34279 -mno-hotpatch options. Change syntax of -mhotpatch= option.
34280 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34281 Renamed.
34282 (s390_hotpatch_trampoline_halfwords_max): Renamed.
34283 (s390_hotpatch_hw_max): New name.
34284 (s390_hotpatch_trampoline_halfwords): Renamed.
34285 (s390_hotpatch_hw_before_label): New name.
34286 (get_hotpatch_attribute): Removed.
34287 (s390_hotpatch_hw_after_label): New name.
34288 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34289 attribute.
34290 (s390_attribute_table): Ditto.
34291 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34292 (s390_function_num_hotpatch_hw): New name.
34293 Remove special handling of inline functions and hotpatching.
34294 Return number of nops before and after the function label.
34295 (s390_can_inline_p): Removed.
34296 (s390_asm_output_function_label): Emit a configurable number of nops
34297 after the function label.
34298 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34299 (TARGET_CAN_INLINE_P) Removed.
34300 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34301
34302 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34303 Jiong Wang <jiong.wang@arm.com>
34304
34305 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34306 of scratch reg.
34307 (cb<optab><mode>1): Likewise.
34308 * config/aarch64/iterators.md (bcond): New define_code_attr.
34309
34310 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34311
34312 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34313 memory accesses.
34314
34315 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34316
34317 * config/s390/s390.c (s390_register_move_cost): Increase costs for
34318 FPR->GPR moves.
34319
34320 2015-01-27 Richard Biener <rguenther@suse.de>
34321
34322 * tree-vrp.c (update_value_range): Intersect the range with
34323 old recorded SSA name range information.
34324
34325 2015-01-27 Nick Clifton <nickc@redhat.com>
34326
34327 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34328 BC, DE and HL registers directly, not via AX.
34329 When decrementing the stack pointer by a large amount, transfer SP
34330 into AX and perform the subtraction there.
34331 (rl78_expand_epilogue): Perform the inverse of the above
34332 enhancements.
34333
34334 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34335
34336 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34337
34338 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34339 Yury Gribov <y.gribov@samsung.com>
34340
34341 PR ubsan/64741
34342 * ubsan.c (ubsan_source_location): Refactor code.
34343 (ubsan_type_descriptor): Update type size. Refactor code.
34344
34345 2015-01-27 Richard Biener <rguenther@suse.de>
34346
34347 PR tree-optimization/56273
34348 PR tree-optimization/59124
34349 PR tree-optimization/64277
34350 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34351 from the first VRP pass.
34352
34353 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34354
34355 PR ipa/64776
34356 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34357 handle the first argument in the same loop as all the other arguments.
34358
34359 PR rtl-optimization/61058
34360 * jump.c (cleanup_barriers): Update basic block boundaries
34361 if BLOCK_FOR_INSN is non-NULL on PREV.
34362
34363 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
34364
34365 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34366 bounds narrowing, already instrumented calls and calls to
34367 not instrumentable functions.
34368
34369 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34370
34371 PR tree-optimization/64807
34372 * wide-int.cc (wi::divmod_internal): Clear
34373 b_dividend[dividend_blocks_needed].
34374
34375 2015-01-26 DJ Delorie <dj@redhat.com>
34376
34377 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34378 volatile memory references.
34379
34380 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
34381
34382 PR target/49263
34383 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34384 remove_insn.
34385 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34386 shifts if it already fits into K08.
34387
34388 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34389
34390 PR ipa/64730
34391 * ipa-inline.c (inline_small_functions): Print "unknown" even
34392 if edge->call_stmt is non-NULL, but has builtins or unknown
34393 location.
34394
34395 PR middle-end/64421
34396 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34397 with asterisk, skip the first character.
34398
34399 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34400
34401 PR target/64806
34402 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34403 order change.
34404
34405 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
34406
34407 PR target/64795
34408 * config/i386/i386.md (*movdi_internal): Also check operand 0
34409 to determine TYPE_LEA operand.
34410 (*movsi_internal): Ditto.
34411
34412 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34413
34414 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34415 OPTION_MASK_QUAD_MEMORY_ATOMIC.
34416
34417 2015-01-26 Renlin Li <renlin.li@arm.com>
34418
34419 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34420 the comment.
34421 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34422 for higher part.
34423
34424 2015-01-26 Richard Biener <rguenther@suse.de>
34425
34426 PR middle-end/64764
34427 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34428 combining two BIT_AND_EXPR predicates.
34429
34430 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34431
34432 PR bootstrap/64754
34433 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34434
34435 2015-01-26 Terry Guo <terry.guo@arm.com>
34436
34437 * config/arm/arm.c (arm_file_start): Update the assignment of
34438 Tag_ABI_HardFP_use.
34439
34440 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
34441
34442 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34443 pipeline model.
34444 config/arm/arm.md: Include the new Cortex-A57 model.
34445 (generic_sched): Don't use generic_sched when tuning for
34446 Cortex-A57.
34447
34448 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
34449 Uros Bizjak <ubizjak@gmail.com>
34450
34451 * config/i386/i386.c (get_builtin_code_for_version): Add
34452 support for BMI and BMI2 multiversion functions.
34453
34454 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34455
34456 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34457 (extract_bit_field): Likewise.
34458 (extract_low_bits): Likewise.
34459 (expand_mult): Likewise.
34460 (expand_mult_highpart_adjust): Likewise.
34461
34462 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
34463
34464 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34465 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34466 * config/i386/i386.c (processor_model): Add
34467 M_INTEL_COREI7_BROADWELL.
34468 (arch_names_table): Add "broadwell".
34469
34470 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
34471
34472 PR target/49263
34473 PR target/53987
34474 PR target/64345
34475 PR target/59533
34476 PR target/52933
34477 PR target/54236
34478 PR target/51244
34479 * config/sh/sh-protos.h
34480 (sh_extending_set_of_reg::can_use_as_unextended_reg,
34481 sh_extending_set_of_reg::use_as_unextended_reg,
34482 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
34483 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
34484 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
34485 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
34486 (sh_treg_insns): New class.
34487 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
34488 (scope_counter): New class.
34489 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
34490 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
34491 sh_extending_set_of_reg::can_use_as_unextended_reg,
34492 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
34493 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
34494 sh_split_treg_set_expr): New functions.
34495 (addsubcosts): Handle treg_set_expr.
34496 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
34497 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
34498 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
34499 (sh_insn_operands_modified_between_p): Make non-static.
34500 * config/sh/predicates.md (zero_extend_movu_operand): Allow
34501 simple_mem_operand in addition to displacement_mem_operand.
34502 (zero_extend_operand): Don't allow zero_extend_movu_operand.
34503 (treg_set_expr, treg_set_expr_not_const01,
34504 arith_reg_or_treg_set_expr): New predicates.
34505 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
34506 arith_or_int_operand instead of logical_operand. Convert to
34507 insn_and_split. Try to optimize constant operand in splitter.
34508 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
34509 (*tstqi_t_zero): Delete.
34510 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
34511 (tstsi_t_and_not): Delete.
34512 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
34513 Convert to insn_and_split.
34514 (unnamed split, tstsi_t_zero_extract_xor,
34515 tstsi_t_zero_extract_subreg_xor_little,
34516 tstsi_t_zero_extract_subreg_xor_big): Delete.
34517 (*tstsi_t_shift_mask): New insn_and_split.
34518 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
34519 to recombine with surrounding insns when splitting.
34520 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
34521 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
34522 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
34523 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
34524 (*cbranch_div0s: Delete.
34525 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34526 Try to recombine with surrounding insns when splitting. Add operand
34527 order variants.
34528 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
34529 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
34530 *addc_r_r_msb, *addc_2r_msb): Delete.
34531 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
34532 order variant.
34533 (*addc_negreg_t): New insn_and_split.
34534 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34535 Try to recombine with surrounding insns when splitting.
34536 Add operand order variants.
34537 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
34538 insn_and_split patterns.
34539 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
34540 surrounding insns when splitting.
34541 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
34542 (*rotcl): Likewise. Add zero_extract variant.
34543 (*ashrsi2_31): New insn_and_split.
34544 (*negc): Convert to insn_and_split. Use treg_set_expr.
34545 (*zero_extend<mode>si2_disp_mem): Update comment.
34546 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
34547 condition.
34548 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
34549 with surrounding insns when splitting.
34550 (any_treg_expr_to_reg): New insn_and_split.
34551 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
34552 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
34553 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
34554 *zero_extract_2): New single bit zero extract patterns.
34555 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
34556 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
34557 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34558 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34559 set destination.
34560 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34561 register_operand for set source.
34562
34563 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
34564
34565 * i386.opt (prefetch_sse): New targetsave.
34566 * i386.c (ix86_function_specific_save): Save prefetch_sse.
34567 (ix86_function_specific_restore): Restore prefetch_sse and initialize
34568 ix86_cost/ix86_tune_cost.
34569
34570 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34571
34572 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34573 Support the JIT by using 0 as the language type.
34574
34575 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
34576
34577 PR target/64317
34578 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
34579 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34580 (mark_regno_live, process_bb_lives): Pass new parameter value to
34581 make_hard_regno_born.
34582
34583 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34584
34585 PR rtl-optimization/63637
34586 PR rtl-optimization/60663
34587 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34588 if elt->cost is MAX_COST for ASM_OPERANDS.
34589 (find_sets_in_insn): Fix up comment typo.
34590 (cse_insn): Don't set src_volatile for all non-volatile
34591 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34592 or with "memory" clobber. Set elt->cost to MAX_COST
34593 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
34594 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34595
34596 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34597
34598 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34599 alternative 1.
34600
34601 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34602
34603 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34604 libgcc/config/i386/elf-lib.h.
34605
34606 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34607
34608 PR driver/64737
34609 * gcc.c (print_configuration): Don't print a blank line at the end
34610 here...
34611 (run_attempt): ... but here unstead.
34612
34613 PR middle-end/64734
34614 * omp-low.c (scan_sharing_clauses): Don't ignore
34615 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34616 on target data/update constructs.
34617
34618 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
34619
34620 PR target/50928
34621 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34622 (DEBUG_RELOAD): Removed define.
34623 (m32c_limit_reload_class): Enable traces with if DEBUG0.
34624 (m32c_function_arg): Added a type cast.
34625 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34626 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34627 * config/m32c/bitops.md (andqi3_16): Likewise.
34628 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34629 (push_a01_l): Likewise.
34630
34631 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34632
34633 PR jit/64721
34634 * main.c (main): Construct toplev instances with init_signals=true.
34635 * toplev.c (general_init): Add param "init_signals", and use it to
34636 conditionalize the calls to signal and host_hooks.extra_signals.
34637 (toplev::toplev): Add param "init_signals".
34638 (toplev::main): When invoking general_init, pass m_init_signals
34639 to control whether signal-handlers are installed.
34640 * toplev.h (toplev::toplev): Add param "init_signals".
34641 (toplev::m_init_signals): New field.
34642
34643 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34644
34645 PR jit/64722
34646 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34647 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34648 latter may be affected by the former (e.g. on i686).
34649
34650 2015-01-23 Martin Liska <mliska@suse.cz>
34651
34652 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34653 false positive during profiledbootstrap.
34654
34655 2015-01-23 Tom de Vries <tom@codesourcery.com>
34656
34657 PR libgomp/64672
34658 * lto-opts.c (lto_write_options): Output non-explicit conservative
34659 -fno-openacc.
34660 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34661 (append_compiler_options): Pass -fopenacc through.
34662
34663 2015-01-23 Tom de Vries <tom@codesourcery.com>
34664
34665 PR libgomp/64707
34666 * lto-opts.c (lto_write_options): Output non-explicit conservative
34667 -fno-openmp.
34668 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34669 (append_compiler_options): Pass -fopenmp through.
34670
34671 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34672
34673 PR debug/64511
34674 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34675 GTY markup.
34676
34677 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34678 * diagnostic.def (DK_ICE_NOBT): New kind.
34679 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34680 like DK_ICE, but never print backtrace.
34681 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34682 (internal_error_no_backtrace): New function.
34683 * gcc.c (execute): Use internal_error_no_backtrace instead of
34684 internal_error.
34685
34686 2015-01-22 Jeff Law <law@redhat.com>
34687
34688 PR target/52076
34689 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34690 improve code density for small immediate to memory case.
34691 (insv): Better handle bitfield assignments when the field is
34692 being set to all ones.
34693 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34694 operand predicate.
34695
34696 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34697 Jakub Jelinek <jakub@redhat.com>
34698
34699 PR middle-end/64729
34700 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34701 for !TARGET_LIBC_PROVIDES_SSP version and
34702 -fstack-protector-{all,strong,explicit} otherwise.
34703 * config/freebsd.h (LINK_SSP_SPEC): Handle
34704 -fstack-protector-{strong,explicit}.
34705
34706 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
34707 H.J. Lu <hongjiu.lu@intel.com>
34708
34709 PR ipa/64694
34710 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34711 heap.
34712
34713 2015-01-22 Wei Mi <wmi@google.com>
34714
34715 PR rtl-optimization/64557
34716 * dse.c (record_store): Call get_addr for mem_addr.
34717 (check_mem_read_rtx): Likewise.
34718
34719 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
34720
34721 * fold-const.c (const_binop): Add early return for non-tcc_binary.
34722
34723 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
34724
34725 * toplev.c (init_local_tick): Process the failure when read
34726 fails for random_seed.
34727
34728 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34729 'pretty_name' to avoid memory overflow.
34730
34731 2015-01-22 Richard Biener <rguenther@suse.de>
34732
34733 PR middle-end/64728
34734 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34735 abnormal coalescing on undefined SSA names.
34736
34737 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
34738
34739 PR target/64688
34740 PR target/64477
34741 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34742 for alternative 3.
34743 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34744
34745 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
34746
34747 PR middle-end/63325
34748 * fold-const.c (fold_checksum_tree): Don't include value of
34749 expr->decl_with_vis.symtab_node in the checksum.
34750
34751 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34752
34753 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34754
34755 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
34756
34757 PR driver/64690
34758 * gcc.c (insert_comments): New function.
34759 (try_generate_repro): Call it.
34760 (append_text): Removed.
34761
34762 2015-01-22 Richard Biener <rguenther@suse.de>
34763
34764 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34765 with IL incompatible options. Properly honor user optimize
34766 attributes.
34767
34768 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
34769
34770 PR rtl-optimization/64682
34771 * combine.c (distribute_notes): When moving a death note for
34772 a register that is set in the new I2, make sure to put it
34773 before that new I2.
34774
34775 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
34776
34777 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
34778 not TARGET_DEFAULT.
34779
34780 2015-01-21 Jakub Jelinek <jakub@redhat.com>
34781
34782 PR debug/64511
34783 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
34784 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
34785 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
34786
34787 PR sanitizer/64706
34788 * doc/invoke.texi (-fsanitize=vptr): Document.
34789
34790 PR rtl-optimization/62078
34791 * dse.c: Include cfgcleanup.h.
34792 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
34793 anything call purge_all_dead_edges and cleanup_cfg at the end
34794 of the pass.
34795
34796 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
34797
34798 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
34799 edges.
34800
34801 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34802
34803 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
34804 decl attribute.
34805
34806 2015-01-21 David Sherwood <david.sherwood@arm.com>
34807 Tejas Belagod <Tejas.Belagod@arm.com>
34808
34809 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
34810 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
34811 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
34812 Removed.
34813
34814 2015-01-21 David Sherwood <david.sherwood@arm.com>
34815 Tejas Belagod <Tejas.Belagod@arm.com>
34816
34817 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
34818 (aarch64_reverse_mask): New decls.
34819 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
34820 (insn_count): New mode_attr.
34821 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
34822 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
34823 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
34824 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
34825 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
34826 (aarch64_simd_st4): New patterns.
34827 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
34828 (aarch64_reverse_mask): New functions.
34829
34830 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34831
34832 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
34833 Declare.
34834 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
34835 addressing modes for BE.
34836 (aarch64_print_operand): Add 'R' specifier.
34837 (aarch64_simd_disambiguate_copy): Delete.
34838 (aarch64_simd_emit_reg_reg_move): New function.
34839 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
34840 in define_splits for structural moves.
34841 (mov<mode>): Use less restrictive predicates.
34842 (*aarch64_mov<mode>): Simplify and only allow for LE.
34843 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
34844
34845 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34846
34847 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
34848
34849 2015-01-21 Richard Henderson <rth@redhat.com>
34850
34851 PR target/64669
34852 * ccmp.c (used_in_cond_stmt_p): Remove.
34853 (expand_ccmp_expr): Don't use it.
34854
34855 2015-01-21 Nick Clifton <nickc@redhat.com>
34856
34857 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
34858 PARALLELs.
34859
34860 2015-01-21 Richard Biener <rguenther@suse.de>
34861
34862 PR middle-end/64313
34863 * tree-core.h (builtin_info, builtin_info_type): Turn from
34864 an object with two arrays into an array of an object with
34865 decl and two flags, implicit_p and declared_p.
34866 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
34867 set_builtin_decl, set_builtin_decl_implicit_p,
34868 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
34869 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
34870 * builtins.c (builtin_info): Adjust.
34871 * gimplify.c (gimplify_addr_expr): References to builtins
34872 that have been declared by the user makes them eligible for
34873 use by the compiler. Call set_builtin_decl_implicit_p on them.
34874
34875 2015-01-20 Jeff Law <law@redhat.com>
34876
34877 PR target/59946
34878 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34879 allow pc-relative addresses in operand predicates or constraints.
34880
34881 2015-01-21 Bin Cheng <bin.cheng@arm.com>
34882
34883 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34884 neon on aarch32 processors for stringops.
34885
34886 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34887
34888 PR ipa/63576
34889 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34890
34891 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34892
34893 PR lto/45375
34894 * ipa-inline.c: Include lto-streamer.h
34895 (report_inline_failed_reason): Output source file differences and
34896 flags on optimization/target node mismatch.
34897 (can_inline_edge_p): Consider caller to be the outer inline function;
34898 be less restrictive about matching opimize and optimize_size attributes.
34899 (inline_account_function_p): Break out from ...
34900 (inline_small_functions): ... here.
34901 * ipa-inline-transform.c (clone_inlined_nodes): Use
34902 inline_account_function_p.
34903 (inline_call): Use optimize attribution; use inline_account_function_p.
34904 (inline_transform): Use opt_for_fn.
34905 * ipa-inline.h (inline_account_function_p): Declare.
34906
34907 2015-01-20 Jakub Jelinek <jakub@redhat.com>
34908
34909 PR debug/64663
34910 * dwarf2out.c (decl_piece_node): Don't put bitsize into
34911 mode if bitsize <= 0.
34912 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34913 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34914 sizes and positions.
34915
34916 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
34917
34918 * config/nios2/nios2.c (nios2_asm_file_end): Implement
34919 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34920 needed.
34921 (TARGET_ASM_FILE_END): Define.
34922
34923 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34924
34925 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34926 (struct tune_params): Use the enum.
34927 * arm.c (arm_*_tune): Update.
34928 (arm_option_override): Update.
34929
34930 2015-01-20 Richard Biener <rguenther@suse.de>
34931
34932 PR ipa/64684
34933 * ipa-reference.c (add_static_var): Inline ...
34934 (analyze_function): ... here after splitting out from ...
34935 (is_proper_for_analysis): ... this.
34936
34937 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
34938
34939 PR target/64149
34940 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34941 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34942 replace the conditional with it's true branch.
34943 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34944 (arm_lra_p): Remove.
34945
34946 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
34947
34948 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34949
34950 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34951
34952 * config/tilegx/mul-tables.c: Move symtab.h include after
34953 coretypes.h include.
34954 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34955 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34956 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34957 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34958 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34959
34960 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
34961
34962 PR bootstrap/64676
34963 Revert:
34964 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34965
34966 PR rtl-optimization/64081
34967 * loop-iv.c (def_pred_latch_p): New function.
34968 (latch_dominating_def): Allow specific cases with non-single
34969 definitions.
34970 (iv_get_reaching_def): Likewise.
34971 (check_complex_exit_p): New function.
34972 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34973 with exits not executing on any iteration.
34974
34975 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34976
34977 PR lto/45375
34978 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34979 to set branch cost.
34980
34981 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34982
34983 PR lto/45375
34984 * i386.c (gate): Check flag_expensive_optimizations and
34985 optimize_size.
34986 (ix86_option_override_internal): Drop optimize_size condition
34987 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
34988 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
34989 MASK_PREFER_AVX128.
34990 (ix86_avx256_split_vector_move_misalign,
34991 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
34992 * sse.md (all uses of TARGET_PREFER_AVX128): Add
34993 optimize_insn_for_speed_p check.
34994
34995 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
34996
34997 * config/mips/mips.h (FP_ASM_SPEC): New define.
34998 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
34999 instead.
35000
35001 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
35002
35003 PR target/53988
35004 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
35005 nullptr for insn when reaching the first insn.
35006 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
35007 (sh_insn_operands_modified_between_p): Add nullptr check.
35008 (sh_find_extending_set_of_reg): Fix log message. Don't accept
35009 sign extending mem load if the insn contains any UNSPEC or
35010 UNSPEC_VOLATILE.
35011
35012 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35013
35014 * params.def (inline-unit-growth): Drop to 15%.
35015 * invoke.texi (inline-unit-growth): Document change.
35016
35017 2015-01-19 Martin Liska <mliska@suse.cz>
35018
35019 PR ipa/64668
35020 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
35021 function for second argument of OBJ_TYPE_REF.
35022
35023 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35024
35025 PR ipa/64218
35026 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
35027 whether function is an alias.
35028
35029 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
35030
35031 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
35032 cases.
35033
35034 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
35035
35036 PR rtl-optimization/64671
35037 * lra-remat.c (operand_to_remat): Don't consider jump and call
35038 insns.
35039
35040 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
35041
35042 PR target/59828
35043 * config/rs6000/default64.h: Include rs6000-cpus.def.
35044 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
35045 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
35046 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
35047 and POWER8.
35048 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
35049 POWER8.
35050 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
35051 pseudo-op to specify assembler dialect.
35052
35053 2015-01-19 Martin Liska <mliska@suse.cz>
35054
35055 PR ipa/64664
35056 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
35057 Handle safe potentially removed nodes during filtering.
35058
35059 2015-01-19 Martin Liska <mliska@suse.cz>
35060
35061 * doc/extend.texi (no_icf): Add new attribute description.
35062 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
35063 where the pass attempts to merge a function with no_icf attribute.
35064
35065 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35066
35067 PR target/64532
35068 * doc/md.texi (ARM Options): Document register constraints.
35069
35070 2015-01-19 Jiong Wang <jiong.wang@arm.com>
35071 Andrew Pinski <apinski@cavium.com>
35072
35073 PR target/64304
35074 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
35075 (ashl<mode>3): Don't expand if operands[2] is not constant.
35076
35077 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35078
35079 PR target/64448
35080 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
35081 Match xor-and-xor RTL pattern.
35082
35083 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
35084
35085 PR rtl-optimization/64081
35086 * loop-iv.c (def_pred_latch_p): New function.
35087 (latch_dominating_def): Allow specific cases with non-single
35088 definitions.
35089 (iv_get_reaching_def): Likewise.
35090 (check_complex_exit_p): New function.
35091 (check_simple_exit): Use check_complex_exit_p to allow certain cases
35092 with exits not executing on any iteration.
35093
35094 2015-01-19 Jakub Jelinek <jakub@redhat.com>
35095
35096 * common.opt (fgraphite): Fix a typo.
35097
35098 2015-01-19 Felix Yang <felix.yang@huawei.com>
35099
35100 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
35101 pattern.
35102 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
35103 uminp, smax_nanp, smin_nanp): New builtins.
35104 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
35105 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
35106 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
35107 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
35108 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
35109 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
35110 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
35111 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
35112 vpminnms_f32): Rewrite using builtin functions.
35113
35114 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
35115
35116 PR libgomp/64625
35117 * omp-low.c (offload_symbol_decl): Remove variable.
35118 (get_offload_symbol_decl): Remove function.
35119 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
35120 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
35121 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
35122 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
35123 BUILT_IN_GOACC_UPDATE don't pass it at all.
35124
35125 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35126
35127 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
35128 callers.
35129
35130 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
35131
35132 * ipa-chkp.c (chkp_produce_thunks): Add early param
35133 to split thunks production into two passes. Keep
35134 'always_inline' function bodies after the first pass.
35135 (pass_data_ipa_chkp_early_produce_thunks): New.
35136 (pass_ipa_chkp_early_produce_thunks): New.
35137 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
35138 chkp_produce_thunks signature.
35139 (make_pass_ipa_chkp_early_produce_thunks): New.
35140 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
35141 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
35142 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
35143
35144 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35145
35146 * cgraph.c (cgraph_node::dump): Dump profile flags.
35147
35148 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
35149
35150 PR target/64652
35151 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
35152 reg appear first in the parallel.
35153
35154 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35155
35156 * ipa-reference.c (set_reference_optimization_summary,
35157 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35158 disabled.
35159 (ignore_module_statics): New static var.
35160 (propagate_bits): If ipa-reference is disabled, do not look into local
35161 properties.
35162 (analyze_function): Disable analysis when ipa_reference is disabled.
35163 (generate_summary): Do not dump when reference is disabled;
35164 collect vars accessed from functions with ipa-reference disabled.
35165 (get_read_write_all_from_node): When ipa-reference is disabled, use the
35166 node flags.
35167 (gate): Enable for LTO.
35168 (ignore_edge_p): New function.
35169 (propagate): Skip functions w/o ipa-reference analysis.
35170 * optc-save-gen.awk: Handle optimize_debug correctly.
35171 * opth-gen.awk: Likewise.
35172 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35173 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35174 fira-share-save-slots, fira-share-spill-slots,
35175 fmodulo-sched-allow-regmoves, fpartial-inlining,
35176 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35177 ftracer, ftree-parallelize-loops, fassociative-math,
35178 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35179 Optimization
35180 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35181 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35182 Optimization.
35183 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35184 Fix for IPA.
35185
35186 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35187
35188 PR ipa/64378
35189 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35190 flag correctly.
35191 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35192
35193 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
35194
35195 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35196 Remove duplicate option listings.
35197
35198 2015-01-18 Felix Yang <felix.yang@huawei.com>
35199
35200 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35201 (autofdo_source_profile::get_callsite_total_count,
35202 function_instance::get_function_instance_by_decl,
35203 string_table::get_index, string_table::get_index_by_decl,
35204 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35205 Fix comment typos. Reformatting and minor code rearrangement.
35206
35207 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35208
35209 * config/rs6000/rs6000.md (probe_stack): Delete.
35210 (probe_stack_address): New.
35211
35212 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35213
35214 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35215 to test for 32-bit ABIs, not !TARGET_POWERPC64.
35216
35217 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35218
35219 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35220 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
35221 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
35222 snafu.
35223 (rs6000_libcall_value): Use the new function.
35224
35225 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
35226
35227 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35228
35229 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
35230
35231 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35232 implement a more precise life analysis for it during backward scan.
35233
35234 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
35235
35236 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35237
35238 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
35239
35240 PR rtl-optimization/52773
35241 * calls.c (emit_library_call_value): When pushing arguments use
35242 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35243 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
35244 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35245
35246 2015-01-17 Jeff Law <law@redhat.com>
35247
35248 PR rtl-optimization/32790
35249 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35250 not ZERO_EXTEND in SET_DESTs.
35251
35252 2015-01-17 Alan Modra <amodra@gmail.com>
35253
35254 * cprop.c (do_local_cprop): Revert last change.
35255
35256 2015-01-16 DJ Delorie <dj@redhat.com>
35257 Nick Clifton <nickc@redhat.com>
35258
35259 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35260 (addhi3_real): Likewise. Fix [HL+0] syntax.
35261 (subqi3_real): Likewise.
35262 (subhi3_real): Likewise.
35263 (cbranchqi4_real): Likewise. Allow saddr,#imm.
35264 (cbranchhi4_real): Likewise.
35265 (cbranchhi4_real_inverted): Likewise.
35266 (cbranchsi4_real_lt): Likewise.
35267 (cbranchsi4_real_ge): Likewise.
35268 (cbranchsi4_real_ge): Likewise.
35269 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35270 (sub<mode>3_virt): Likewise.
35271 (cbranchqi4_virt): Likewise.
35272 (cbranchhi4_virt): Likewise.
35273 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35274 always use '[reg+imm]' even when imm is zero.
35275 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35276 (rl78_general_operand): New.
35277 (rl78_nonimmediate_operand): New.
35278 (rl78_nonfar_operand): Use them.
35279 (rl78_nonfar_nonimm_operand): Likewise.
35280 (rl78_stack_based_mem): Fix.
35281 * config/rl78/constraints.md (Ibqi): New.
35282 (IBqi): New.
35283 (Wsa): New.
35284 (Wsf): New.
35285 (Cs1): Fix.
35286 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35287 (iorqi3): Likewise.
35288 (xorqi3): Likewise.
35289 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35290
35291 * config/rl78/constrains (Qs8): New constraint.
35292 * config/rl78/rl78.c (rl78_flags_already_set): New function.
35293 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35294 * config/rl78/rl78-real.md (update_Z): New attribute.
35295 Update patterns to set it.
35296 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35297 shorter compare and branch sequence can be used.
35298 (cbranchhi4_real): Likewise.
35299 (cbranchhi4_real_inverted): Likewise.
35300
35301 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35302 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35303 address space.
35304 * config/rl78/rl78.c (rl78_get_name_encoding): New.
35305 (rl78_option_override): Allow -mes0 only if C.
35306 (characterize_address): Support subregs of symbol_refs.
35307 (rl78_addr_space_address_mode): Move. Add __near.
35308 (rl78_far_p): Likewise.
35309 (rl78_addr_space_pointer_mode): Likewise.
35310 (rl78_as_legitimate_address): Likewise.
35311 (rl78_addr_space_subset_p): Likewise.
35312 (rl78_addr_space_convert): Likewise.
35313 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35314 symbols with -mes0.
35315 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
35316 addressing.
35317 (rl78_alloc_physical_registers_op1): Change logic to prefer
35318 symbol[BC] addressing.
35319 (frodata_section): New.
35320 (rl78_asm_init_sections): Initialize it.
35321 (rl78_select_section): Put __far readonly symbols in .frodata.
35322 (rl78_make_type_far): New.
35323 (rl78_insert_attributes): Force all readonly symbols to be
35324 __far when -mes0.
35325 (rl78_asm_out_integer): New.
35326 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35327 * config/rl78/rl78.opt (-mes0): New.
35328
35329 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35330 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35331 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35332 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35333 (rl78_saddr_p): New.
35334 (rl78_output_aligned_common): New.
35335 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35336 (rl78_handle_saddr_attribute): New.
35337 (rl78_handle_naked_attribute): New.
35338 (rl78_attribute_table): Add saddr.
35339 (rl78_print_operand_1): Don't print '!' on saddr operands.
35340 (rl78_print_operand_1): Strip encodings.
35341 (rl78_sfr_p): New.
35342 (rl78_strip_name_encoding): New.
35343 (rl78_attrlist_to_encoding): New.
35344 (rl78_encode_section_info): New.
35345 (rl78_asm_init_sections): New.
35346 (rl78_select_section): New.
35347 (rl78_output_labelref): New.
35348 (rl78_output_aligned_common): New.
35349 (rl78_asm_out_integer): New.
35350 (rl78_asm_ctor_dtor): New.
35351 (rl78_asm_constructor): New.
35352 (rl78_asm_destructor): New.
35353
35354 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35355 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35356 (transcode_memory_rtx): Update.
35357 (rl78_expand_epilogue): Use A_REG instead of 0.
35358
35359 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35360
35361 * config/arm/arm-protos.h (struct tune_params): New field
35362 sched_autopref_queue_depth.
35363 * config/arm/arm.c (sched-int.h): Include header.
35364 (arm_first_cycle_multipass_dfa_lookahead_guard,)
35365 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35366 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35367 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35368 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35369 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35370 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35371 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35372 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
35373 * config/arm/t-arm (arm.o): Update.
35374 * haifa-sched.c (update_insn_after_change): Update.
35375 (rank_for_schedule): Use auto-prefetcher model, if requested.
35376 (autopref_multipass_init): New static function.
35377 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35378 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35379 variable for debug dumps.
35380 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35381 (autopref_multipass_dfa_lookahead_guard): New global function that
35382 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35383 (init_h_i_d): Update.
35384 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35385 * sched-int.h (enum autopref_multipass_data_status): New const enum.
35386 (autopref_multipass_data_): Structure for auto-prefetcher data.
35387 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35388 (struct _haifa_insn_data:autopref_multipass_data): New field.
35389 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35390 (autopref_multipass_dfa_lookahead_guard): Declare.
35391
35392 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35393
35394 * rtlanal.c (get_base_term): Handle SCRATCH.
35395
35396 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35397
35398 * config/aarch64/aarch64.c
35399 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35400 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35401 * config/arm/arm.c
35402 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35403 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35404
35405 2015-01-17 Alan Modra <amodra@gmail.com>
35406
35407 * cprop.c (do_local_cprop): Disallow replacement of fixed
35408 hard registers.
35409
35410 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35411
35412 PR target/62066
35413 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35414 early return 0.
35415
35416 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
35417
35418 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35419 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35420
35421 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35422
35423 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35424 * config/arm/thumb1.md: ... Here.
35425
35426 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35427
35428 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35429 TImode for TARGET_32BIT.
35430
35431 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35432
35433 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35434 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35435 as ...
35436 (rs6000_abi_word_mode): New function.
35437
35438 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35439
35440 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35441 instead of UNITS_PER_WORD to describe the size of stack slots.
35442
35443 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35444
35445 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35446 as rs6000_promote_function_mode. Move comment to there.
35447 (rs6000_promote_function_mode): New function.
35448
35449 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35450
35451 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35452 -mpowerpc64 is active.
35453
35454 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35455
35456 PR middle-end/64353
35457 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35458 virtuals on start.
35459
35460 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35461
35462 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35463 introduced in revision 219724.
35464
35465 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35466 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35467
35468 PR target/64263
35469 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35470 destination is not a GP reg.
35471 (*movdi_aarch64): Likewise.
35472
35473 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
35474
35475 PR target/64623
35476 * config/rs6000/default64.h: Revert ISA change.
35477
35478 2015-01-16 Richard Biener <rguenther@suse.de>
35479
35480 PR middle-end/64614
35481 * tree-ssa-uninit.c: Include tree-cfg.h.
35482 (MAX_SWITCH_CASES): New define.
35483 (convert_control_dep_chain_into_preds): Handle switch statements.
35484 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
35485 (normalize_one_pred_1): Do not split bit-manipulations.
35486 Record (x & CST).
35487
35488 2015-01-16 Richard Biener <rguenther@suse.de>
35489
35490 PR tree-optimization/64568
35491 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
35492 complex load rewriting for TARGET_MEM_REFs.
35493
35494 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
35495
35496 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
35497
35498 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
35499
35500 PR target/64149
35501 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
35502 variable.
35503 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
35504 (aarch64_lra_p): Remove.
35505
35506 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35507
35508 PR target/64363
35509 * ipa-chkp.h (chkp_instrumentable_p): New.
35510 * ipa-chkp.c: Include tree-inline.h.
35511 (chkp_instrumentable_p): New.
35512 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
35513 Fix processing of not instrumentable functions.
35514 (chkp_versioning): Use chkp_instrumentable_p. Warn about
35515 not instrumentable functions.
35516 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
35517 chkp_instrumentable_p.
35518 * tree-inline.h (copy_forbidden): New.
35519 * tree-inline.c (copy_forbidden): Not static anymore.
35520
35521 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35522
35523 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
35524 ptr1, ptr2 unused.
35525
35526 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35527
35528 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
35529 type OP_OUT to OP_INOUT.
35530
35531 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35532
35533 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
35534 (high x) y) to y if x and y have the same base.
35535
35536 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35537
35538 * config/arm/cortex-a57.md: New.
35539 * config/aarch64/aarch64.md: Include it.
35540 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
35541 * config/aarch64/aarch64-tune.md: Regenerate.
35542
35543 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
35544
35545 PR target/64015
35546 * ccmp.c (expand_ccmp_next): New function.
35547 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
35548 and compare insn sequence.
35549 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
35550 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
35551 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
35552 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
35553 (*ccmp_ior): Changed to ccmp_ior<mode>.
35554 (cmp<mode>): New pattern.
35555 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
35556 parameters.
35557 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35558
35559 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
35560
35561 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
35562 _mm256_bsrli_epi128): New.
35563 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
35564
35565 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35566
35567 * expmed.c (store_bit_field_using_insv): Improve warning message.
35568 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
35569
35570 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35571
35572 PR rtl-optimization/64011
35573 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35574 there is partial overflow.
35575
35576 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35577
35578 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35579 prototype.
35580 (nds32_expand_epilogue_v3pop): Likewise.
35581 * config/nds32/nds32.md (sibcall): Define this for sibling call
35582 optimization.
35583 (sibcall_register): Likewise.
35584 (sibcall_immediate): Likewise.
35585 (sibcall_value): Likewise.
35586 (sibcall_value_register): Likewise.
35587 (sibcall_value_immediate): Likewise.
35588 (sibcall_epilogue): Likewise.
35589 (epilogue): Pass false to indicate this is not a sibcall epilogue.
35590 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35591 (nds32_expand_epilogue_v3pop): Likewise.
35592
35593 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35594
35595 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35596 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35597 (return_internal): New.
35598 (return): Define this named pattern.
35599 (simple_return): Define this named pattern.
35600 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35601 pattern instead of unspec_volatile_func_return.
35602 (nds32_expand_epilogue_v3pop): Likewise.
35603 (nds32_can_use_return_insn): New function.
35604
35605 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35606
35607 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35608 * config/nds32/nds32.md (pop25return): New.
35609 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35610 pop25return pattern.
35611
35612 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35613
35614 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35615 -mforbid-fp-as-gp, and -mex9 options.
35616
35617 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35618
35619 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35620 remove -mgp-direct option.
35621
35622 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35623
35624 * doc/invoke.texi (--param early-inlining-insns): Update default value.
35625 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35626
35627 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35628
35629 * ipa-inline.c (inline_small_functions): Work around hints
35630 cache issue.
35631
35632 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
35633
35634 PR target/59710
35635 * doc/invoke.texi (Option Summary): Document new Nios II
35636 -mgpopt= syntax.
35637 (Nios II Options): Likewise.
35638 * config/nios2/nios2.opt: Add -mgpopt= option support.
35639 Modify existing -mgpopt and -mno-gpopt options to be aliases.
35640 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35641 * config/nios2/nios2.c (nios2_option_override): Adjust
35642 -mgpopt defaulting.
35643 (nios2_in_small_data_p): Return true for explicit small data
35644 sections even with -G0.
35645 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35646 option choices.
35647
35648 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35649
35650 PR ipa/64612
35651 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35652 of comdat locals.
35653 (inline_call): Fix removal of aliases.
35654
35655 2015-01-15 Jakub Jelinek <jakub@redhat.com>
35656
35657 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35658 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35659 * opts.c (common_handle_option): Add -fsanitize=vptr.
35660 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35661 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35662 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35663 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35664 (ubsan_expand_vptr_ifn): New prototype.
35665 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35666 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35667 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35668 expand_LOOP_VECTORIZED): Make argument nameless, remove
35669 ATTRIBUTE_UNUSED.
35670 (expand_UBSAN_VPTR): New function.
35671 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35672 in fn spec.
35673 (UBSAN_VPTR): New internal function.
35674 * sanopt.c (tree_map_traits): Renamed to ...
35675 (sanopt_tree_map_traits): ... this.
35676 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35677 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35678 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
35679 (maybe_optimize_ubsan_vptr_ifn): New function.
35680 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35681 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
35682 -fsanitize=vptr.
35683 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35684 internal calls like pure functions for aliasing, even when they
35685 have other side-effects that prevent making them ECF_PURE.
35686 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35687 (ubsan_expand_vptr_ifn): New function.
35688
35689 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
35690
35691 PR rtl-optimization/64110
35692 * stmt.c (parse_output_constraint): Process '^' and '$'.
35693 (parse_input_constraint): Ditto.
35694 * lra-constraints.c (process_alt_operands): Process the new
35695 constraints.
35696 * ira-costs.c (record_reg_classes): Process the new constraint
35697 '^'.
35698 * genoutput.c (indep_constraints): Add '^' and '$'.
35699 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35700 * doc/md.texi: Add description of the new constraints.
35701
35702 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
35703 Bernd Schmidt <bernds@codesourcery.com>
35704 Cesar Philippidis <cesar@codesourcery.com>
35705 James Norris <jnorris@codesourcery.com>
35706 Tom de Vries <tom@codesourcery.com>
35707 Ilmir Usmanov <i.usmanov@samsung.com>
35708 Dmitry Bocharnikov <dmitry.b@samsung.com>
35709 Evgeny Gavrin <e.gavrin@samsung.com>
35710 Jakub Jelinek <jakub@redhat.com>
35711
35712 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35713 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35714 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35715 New function types.
35716 * builtins.c: Include "gomp-constants.h".
35717 (expand_builtin_acc_on_device): New function.
35718 (expand_builtin, is_inexpensive_builtin): Handle
35719 BUILT_IN_ACC_ON_DEVICE.
35720 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35721 New macros.
35722 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35723 flag_openmp.
35724 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35725 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35726 i386/intelmic-offload.h.
35727 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35728 to libgomp and its dependencies.
35729 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35730 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35731 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35732 * config/ia64/hpux.h (LIB_SPEC): Likewise.
35733 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35734 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35735 * doc/generic.texi: Update for OpenACC changes.
35736 * doc/gimple.texi: Likewise.
35737 * doc/invoke.texi: Likewise.
35738 * doc/sourcebuild.texi: Likewise.
35739 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35740 GF_OMP_FOR_KIND_OACC_LOOP.
35741 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35742 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35743 GF_OMP_TARGET_KIND_OACC_UPDATE,
35744 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35745 Dump more data.
35746 * gimple.c: Update comments for OpenACC changes.
35747 * gimple.def: Likewise.
35748 * gimple.h: Likewise.
35749 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35750 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35751 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35752 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35753 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35754 appropriate place.
35755 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35756 * gimplify.c: Include "gomp-constants.h".
35757 Update comments for OpenACC changes.
35758 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35759 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35760 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35761 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35762 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35763 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35764 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35765 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35766 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35767 OMP_CLAUSE_SEQ.
35768 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35769 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35770 OMP_CLAUSE_SET_MAP_KIND.
35771 (gimplify_oacc_cache): New function.
35772 (gimplify_omp_for): Handle OACC_LOOP.
35773 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
35774 OACC_DATA.
35775 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
35776 OACC_EXIT_DATA, OACC_UPDATE.
35777 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
35778 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
35779 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
35780 (gimplify_body): Consider flag_openacc next to flag_openmp.
35781 * lto-streamer-out.c: Include "gomp-constants.h".
35782 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
35783 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
35784 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
35785 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
35786 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
35787 (BUILT_IN_ACC_ON_DEVICE): New builtins.
35788 * omp-low.c: Include "gomp-constants.h".
35789 Update comments for OpenACC changes.
35790 (struct omp_context): Add reduction_map, gwv_below, gwv_this
35791 members.
35792 (extract_omp_for_data, use_pointer_for_field, install_var_field)
35793 (new_omp_context, delete_omp_context, scan_sharing_clauses)
35794 (create_omp_child_function, scan_omp_for, scan_omp_target)
35795 (check_omp_nesting_restrictions, lower_reduction_clauses)
35796 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
35797 Update for OpenACC changes.
35798 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
35799 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
35800 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
35801 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35802 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
35803 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
35804 OMP_CLAUSE_MAP_*.
35805 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
35806 Handle GF_OMP_FOR_KIND_OACC_LOOP.
35807 (expand_omp_target, lower_omp_target): Handle
35808 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35809 GF_OMP_TARGET_KIND_OACC_UPDATE,
35810 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
35811 GF_OMP_TARGET_KIND_OACC_DATA.
35812 (pass_expand_omp::execute, execute_lower_omp)
35813 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
35814 flag_openmp.
35815 (offload_symbol_decl): New variable.
35816 (oacc_get_reduction_array_id, oacc_max_threads)
35817 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
35818 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
35819 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
35820 (oacc_gimple_assign, oacc_initialize_reduction_data)
35821 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
35822 functions.
35823 (is_targetreg_ctx): Remove function.
35824 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
35825 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
35826 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35827 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
35828 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
35829 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
35830 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
35831 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
35832 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
35833 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
35834 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
35835 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
35836 * tree-core.h: Update comments for OpenACC changes.
35837 (enum omp_clause_map_kind): Remove.
35838 (struct tree_omp_clause): Change type of map_kind member from enum
35839 omp_clause_map_kind to unsigned char.
35840 * tree-inline.c: Update comments for OpenACC changes.
35841 * tree-nested.c: Likewise. Include "gomp-constants.h".
35842 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
35843 (convert_tramp_reference_stmt, convert_gimple_call): Update for
35844 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35845 OMP_CLAUSE_SET_MAP_KIND.
35846 * tree-pretty-print.c: Include "gomp-constants.h".
35847 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
35848 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
35849 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
35850 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
35851 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35852 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
35853 instead of OMP_CLAUSE_MAP_*.
35854 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
35855 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
35856 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35857 * tree-streamer-in.c: Include "gomp-constants.h".
35858 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
35859 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
35860 * tree-streamer-out.c: Include "gomp-constants.h".
35861 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
35862 OMP_CLAUSE_MAP_*.
35863 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
35864 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
35865 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
35866 * tree.c (omp_clause_num_ops): Update accordingly.
35867 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
35868 Likewise.
35869 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
35870 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
35871 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
35872 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
35873 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
35874 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
35875 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
35876 (OMP_CLAUSE_SET_MAP_KIND): New macro.
35877 * varpool.c (varpool_node::get_create): Consider flag_openacc next
35878 to flag_openmp.
35879 * config/i386/intelmic-offload.h: New file.
35880 * config/nvptx/offload.h: Likewise.
35881
35882 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35883
35884 * explow.h: Remove duplicate contents.
35885 * dojump.h: Likewise.
35886
35887 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
35888
35889 * arm.c (arm_xgene_tune): Add default initializer for instruction
35890 fusion.
35891
35892 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35893
35894 PR ipa/64068
35895 PR ipa/64559
35896 * ipa.c (symbol_table::remove_unreachable_nodes):
35897 Do not put abstract origins into boundary.
35898
35899 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
35900
35901 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35902 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35903
35904 2015-01-15 Steve Ellcey <sellcey@mips.com>
35905
35906 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35907 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35908 builtins.def, and chkp-builtins.def.
35909
35910 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
35911
35912 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35913 ISA 2.7 (POWER8).
35914
35915 2015-01-15 Richard Biener <rguenther@suse.de>
35916
35917 PR tree-optimization/61743
35918 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35919 information on PHIs for some simple cases.
35920
35921 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35922
35923 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35924 Include xgene1.md.
35925 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35926 * config/arm/arm-cores.def (xgene1): New entry.
35927 * config/arm/arm-tables.opt: Regenerate.
35928 * config/arm/arm-tune.md: Regenerate.
35929 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35930
35931 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35932
35933 * tree-if-conv.c: Include hash-map.h.
35934 (aggressive_if_conv): New variable.
35935 (fold_build_cond_expr): Add simplification of non-zero condition.
35936 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35937 destination block is not always executed.
35938 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35939 than two predecessors if AGGRESSIVE_IF_CONV is true.
35940 (if_convertible_stmt_p): Fix commentary.
35941 (all_preds_critical_p): New function.
35942 (has_pred_critical_p): New function.
35943 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35944 BB can have more than two predecessors and all incoming edges can be
35945 critical.
35946 (predicate_bbs): Skip predication for loop exit block, use build2_loc
35947 to compute predicate for true edge.
35948 (find_phi_replacement_condition): Delete this function.
35949 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35950 Allow interchange PHI arguments if EXTENDED is false.
35951 Change check that block containing reduction statement candidate
35952 is predecessor of phi-block since phi may have more than two arguments.
35953 (phi_args_hash_traits): New helper structure.
35954 (struct phi_args_hash_traits): New type.
35955 (phi_args_hash_traits::hash): New function.
35956 (phi_args_hash_traits::equal_keys): New function.
35957 (gen_phi_arg_condition): New function.
35958 (predicate_scalar_phi): Add handling of phi nodes with more than two
35959 arguments, delete COND and TRUE_BB arguments, insert body of
35960 find_phi_replacement_condition to predicate ordinary phi nodes.
35961 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35962 delete call of find_phi_replacement_condition and invoke
35963 predicate_scalar_phi with two arguments.
35964 (insert_gimplified_predicates): Add assert that non-predicated block
35965 don't have statements to insert.
35966 (ifcvt_split_critical_edges): New function.
35967 (ifcvt_split_def_stmt): Likewise.
35968 (ifcvt_walk_pattern_tree): Likewise.
35969 (stmt_is_root_of_bool_pattern): Likewise.
35970 (ifcvt_repair_bool_pattern): Likewise.
35971 (ifcvt_local_dce): Likewise.
35972 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35973 is copy of inner or outer loop force_vectorize field, invoke
35974 ifcvt_split_critical_edges, ifcvt_local_dce and
35975 ifcvt_repair_bool_pattern for aggressive if-conversion.
35976
35977 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
35978
35979 * config/aarch64/aarch64.md: Include xgene1.md.
35980 * config/aarch64/xgene1.md: New file.
35981
35982 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35983
35984 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
35985 xgene1 (APM XGene-1) core definition.
35986 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
35987 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
35988 * doc/invoke.texi: Document -mcpu=xgene1.
35989
35990 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35991
35992 * dojump.h: New header file.
35993 * explow.h: Likewise.
35994 * expr.h: Remove includes.
35995 Move expmed.c prototypes to expmed.h.
35996 Move dojump.c prototypes to dojump.h.
35997 Move alias.c prototypes to alias.h.
35998 Move explow.c prototypes to explow.h.
35999 Move calls.c prototypes to calls.h.
36000 Move emit-rtl.c prototypes to emit-rtl.h.
36001 Move varasm.c prototypes to varasm.h.
36002 Move stmt.c prototypes to stmt.h.
36003 (saved_pending_stack_adjust): Move to dojump.h.
36004 (adjust_address): Move to explow.h.
36005 (adjust_address_nv): Move to emit-rtl.h.
36006 (adjust_bitfield_address): Likewise.
36007 (adjust_bitfield_address_size): Likewise.
36008 (adjust_bitfield_address_nv): Likewise.
36009 (adjust_automodify_address_nv): Likewise.
36010 * explow.c (expr_size): Move to expr.c.
36011 (int_expr_size): Likewise.
36012 (tree_expr_size): Likewise.
36013 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36014 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36015 * genemit.c (main): Generate includes statistics.h, real.h,
36016 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
36017 stmt.h.
36018 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
36019 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
36020 explow.h, emit-rtl.h, stmt.h.
36021 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
36022 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
36023 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
36024 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
36025 emit-rtl.h, varasm.h, stmt.h.
36026 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
36027 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
36028 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
36029 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
36030 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36031 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
36032 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
36033 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
36034 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
36035 tm.h tree.h varasm.h vec.h wide-int.h.
36036 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36037 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36038 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
36039 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
36040 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
36041 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
36042 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
36043 * loop-iv.c: Likewise.
36044 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
36045 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
36046 statistics.h stmt.h tree.h varasm.h wide-int.h.
36047 * lra-constraints.c: Likewise.
36048 * lra-eliminations.c: Likewise.
36049 * lra-lives.c: Likewise.
36050 * lra-remat.c: Likewise.
36051 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36052 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
36053 statistics.h stmt.h tree.h varasm.h wide-int.h.
36054 * hw-doloop.c: Likewise.
36055 * ira-color.c: Likewise.
36056 * ira-emit.c: Likewise.
36057 * loop-doloop.c: Likewise.
36058 * loop-invariant.c: Likewise.
36059 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36060 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
36061 statistics.h stmt.h tree.h varasm.h wide-int.h.
36062 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
36063 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
36064 statistics.h stmt.h tree.h varasm.h wide-int.h.
36065 * combine-stack-adj.c: Likewise.
36066 * cse.c: Likewise.
36067 * ddg.c: Likewise.
36068 * ifcvt.c: Likewise.
36069 * ira-costs.c: Likewise.
36070 * jump.c: Likewise.
36071 * lra-coalesce.c: Likewise.
36072 * lra-spills.c: Likewise.
36073 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36074 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
36075 stmt.h varasm.h wide-int.h.
36076 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
36077 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36078 varasm.h.
36079 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
36080 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
36081 statistics.h stmt.h varasm.h wide-int.h.
36082 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
36083 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
36084 varasm.h wide-int.h.
36085 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
36086 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36087 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
36088 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
36089 statistics.h stmt.h.
36090 * config/tilepro/tilepro.c: Likewise.
36091 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
36092 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
36093 * config/pdp11/pdp11.c: Likewise.
36094 * config/xtensa/xtensa.c: Likewise.
36095 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
36096 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
36097 varasm.h.
36098 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36099 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36100 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
36101 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36102 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
36103 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
36104 * rtl-chkp.c: Likewise.
36105 * tree-chkp-opt.c: Likewise.
36106 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
36107 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
36108 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
36109 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36110 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36111 statistics.h stmt.h.
36112 * tree-vect-data-refs.c: Likewise.
36113 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
36114 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36115 rtl.h statistics.h stmt.h varasm.h.
36116 * internal-fn.c: Likewise.
36117 * ipa-icf-gimple.c: Likewise.
36118 * lto-section-out.c: Likewise.
36119 * tree-data-ref.c: Likewise.
36120 * tree-nested.c: Likewise.
36121 * tree-outof-ssa.c: Likewise.
36122 * tree-predcom.c: Likewise.
36123 * tree-pretty-print.c: Likewise.
36124 * tree-scalar-evolution.c: Likewise.
36125 * tree-ssa-strlen.c: Likewise.
36126 * tree-vect-loop.c: Likewise.
36127 * tree-vect-patterns.c: Likewise.
36128 * tree-vect-slp.c: Likewise.
36129 * tree-vect-stmts.c: Likewise.
36130 * tsan.c: Likewise.
36131 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36132 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
36133 stmt.h.
36134 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
36135 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36136 statistics.h stmt.h varasm.h.
36137 * loop-unroll.c: Likewise.
36138 * ubsan.c: Likewise.
36139 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
36140 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
36141 stmt.h varasm.h.
36142 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36143 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
36144 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
36145 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36146 statistics.h stmt.h.
36147 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
36148 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
36149 statistics.h stmt.h varasm.h.
36150 * gimple-match-head.c: Likewise.
36151 * lto-cgraph.c: Likewise.
36152 * lto-section-in.c: Likewise.
36153 * lto-streamer-in.c: Likewise.
36154 * lto-streamer-out.c: Likewise.
36155 * tree-affine.c: Likewise.
36156 * tree-cfg.c: Likewise.
36157 * tree-cfgcleanup.c: Likewise.
36158 * tree-if-conv.c: Likewise.
36159 * tree-into-ssa.c: Likewise.
36160 * tree-ssa-alias.c: Likewise.
36161 * tree-ssa-copyrename.c: Likewise.
36162 * tree-ssa-dse.c: Likewise.
36163 * tree-ssa-forwprop.c: Likewise.
36164 * tree-ssa-live.c: Likewise.
36165 * tree-ssa-math-opts.c: Likewise.
36166 * tree-ssa-pre.c: Likewise.
36167 * tree-ssa-sccvn.c: Likewise.
36168 * tree-tailcall.c: Likewise.
36169 * tree-vect-generic.c: Likewise.
36170 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36171 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36172 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36173 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36174 * varasm.c: Likewise.
36175 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36176 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36177 varasm.h.
36178 * init-regs.c: Likewise.
36179 * ira.c: Likewise.
36180 * omp-low.c: Likewise.
36181 * stack-ptr-mod.c: Likewise.
36182 * tree-ssa-reassoc.c: Likewise.
36183 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36184 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36185 varasm.h.
36186 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36187 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36188 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36189 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36190 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36191 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36192 * tree-ssa-phiopt.c: Likewise.
36193 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36194 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36195 * config/fr30/fr30.c: Likewise.
36196 * config/frv/frv.c: Likewise.
36197 * expr.c: Likewise.
36198 * final.c: Likewise.
36199 * optabs.c: Likewise.
36200 * passes.c: Likewise.
36201 * simplify-rtx.c: Likewise.
36202 * stmt.c: Likewise.
36203 * toplev.c: Likewise.
36204 * var-tracking.c: Likewise.
36205 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36206 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36207 * lower-subreg.c: Likewise.
36208 * postreload-gcse.c: Likewise.
36209 * ree.c: Likewise.
36210 * reginfo.c: Likewise.
36211 * store-motion.c: Likewise.
36212 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36213 fixed-value.h hashtab.h real.h stmt.h varasm.h.
36214 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36215 fixed-value.h hashtab.h statistics.h stmt.h.
36216 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36217 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36218 * except.c: Likewise.
36219 * explow.c: Likewise.
36220 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36221 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36222 varasm.h.
36223 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36224 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36225 * tree-ssa-structalias.c: Likewise.
36226 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36227 fixed-value.h insn-config.h real.h statistics.h.
36228 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36229 fixed-value.h insn-config.h real.h statistics.h stmt.h.
36230 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36231 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36232 * cfgbuild.c: Likewise.
36233 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36234 fixed-value.h real.h rtl.h statistics.h stmt.h.
36235 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36236 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36237 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36238 fixed-value.h real.h statistics.h stmt.h.
36239 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36240 fixed-value.h real.h statistics.h stmt.h varasm.h.
36241 * cprop.c: Likewise.
36242 * modulo-sched.c: Likewise.
36243 * postreload.c: Likewise.
36244 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36245 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36246 statistics.h stmt.h varasm.h.
36247 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36248 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36249 rtl.h statistics.h stmt.h varasm.h.
36250 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36251 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36252 varasm.h.
36253 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36254 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36255 varasm.h.
36256 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36257 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36258 varasm.h.
36259 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36260 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36261 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36262 function.h real.h statistics.h stmt.h varasm.h.
36263 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36264 insn-config.h real.h statistics.h stmt.h.
36265 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36266 statistics.h stmt.h.
36267 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36268 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36269 statistics.h stmt.h varasm.h.
36270 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36271 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36272 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36273 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36274 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36275 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36276 statistics.h stmt.h varasm.h.
36277 * ipa-polymorphic-call.c: Likewise.
36278 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36279 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36280 statistics.h stmt.h.
36281 * config/c6x/c6x.c: Likewise.
36282 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36283 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36284 statistics.h stmt.h varasm.h.
36285 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36286 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36287 stmt.h varasm.h.
36288 * ipa-split.c: Likewise.
36289 * tree-eh.c: Likewise.
36290 * tree-ssa-dce.c: Likewise.
36291 * tree-ssa-loop-niter.c: Likewise.
36292 * tree-vrp.c: Likewise.
36293 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36294 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36295 stmt.h.
36296 * config/nds32/nds32-fp-as-gp.c: Likewise.
36297 * config/nds32/nds32-intrinsic.c: Likewise.
36298 * config/nds32/nds32-isr.c: Likewise.
36299 * config/nds32/nds32-md-auxiliary.c: Likewise.
36300 * config/nds32/nds32-memory-manipulation.c: Likewise.
36301 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36302 * config/nds32/nds32-predicates.c: Likewise.
36303 * config/nds32/nds32.c: Likewise.
36304 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36305 fixed-value.h hashtab.h real.h statistics.h.
36306 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36307 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36308 * config/arm/arm.c: Likewise.
36309 * config/avr/avr.c: Likewise.
36310 * config/bfin/bfin.c: Likewise.
36311 * config/h8300/h8300.c: Likewise.
36312 * config/i386/i386.c: Likewise.
36313 * config/ia64/ia64.c: Likewise.
36314 * config/iq2000/iq2000.c: Likewise.
36315 * config/m32c/m32c.c: Likewise.
36316 * config/m32r/m32r.c: Likewise.
36317 * config/m68k/m68k.c: Likewise.
36318 * config/mcore/mcore.c: Likewise.
36319 * config/mep/mep.c: Likewise.
36320 * config/mips/mips.c: Likewise.
36321 * config/mn10300/mn10300.c: Likewise.
36322 * config/moxie/moxie.c: Likewise.
36323 * config/pa/pa.c: Likewise.
36324 * config/rl78/rl78.c: Likewise.
36325 * config/rx/rx.c: Likewise.
36326 * config/s390/s390.c: Likewise.
36327 * config/sh/sh.c: Likewise.
36328 * config/sparc/sparc.c: Likewise.
36329 * config/spu/spu.c: Likewise.
36330 * config/stormy16/stormy16.c: Likewise.
36331 * config/v850/v850.c: Likewise.
36332 * config/vax/vax.c: Likewise.
36333 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36334 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36335 * config/msp430/msp430.c: Likewise.
36336 * predict.c: Likewise.
36337 * value-prof.c: Likewise.
36338 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36339 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36340 * config/microblaze/microblaze.c: Likewise.
36341 * config/nios2/nios2.c: Likewise.
36342 * config/rs6000/rs6000.c: Likewise.
36343 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36344 insn-config.h real.h rtl.h statistics.h stmt.h.
36345 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36346 insn-config.h real.h statistics.h stmt.h.
36347 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36348 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36349 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36350 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36351 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36352 fixed-value.h real.h statistics.h stmt.h.
36353 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36354 fixed-value.h statistics.h stmt.h.
36355 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36356 stmt.h.
36357
36358 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36359
36360 * gengtype.c (create_user_defined_type): Workaround
36361 -Wmaybe-uninitialized false positives.
36362 * cse.c (fold_rtx): Likewise.
36363 * loop-invariant.c (gain_for_invariant): Likewise.
36364
36365 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
36366
36367 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36368 set the memory attributes in all cases but clear MEM_EXPR if need be.
36369
36370 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36371
36372 PR tree-optimization/64434
36373 * cfgexpand.c (reorder_operands): New function.
36374 (expand_gimple_basic_block): Insert call of reorder_operands if
36375 optimized is true.
36376
36377 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
36378
36379 * config/mips/micromips.md (*swp): Remove explicit parallel.
36380 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36381 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36382 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36383 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36384 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36385 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36386 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36387 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36388 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36389 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36390 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36391 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36392 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36393 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36394 (mips_wrdsp): Likewise.
36395 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36396 parallel.
36397 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36398 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36399 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36400 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36401 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36402 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36403 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36404 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36405 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36406
36407 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36408
36409 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36410 (mips_print_operand): Support 'y' to print exact log2 in decimal
36411 of a const_int.
36412 * config/mips/mips.h (ISA_HAS_LSA): New define.
36413 (ISA_HAS_DLSA): Likewise.
36414 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36415 * config/mips/predicates.md (const_immlsa_operand): New predicate.
36416
36417 2015-01-15 Martin Liska <mliska@suse.cz>
36418
36419 PR target/64377
36420 * optc-save-gen.awk: Add support for array types.
36421
36422 2015-01-15 Richard Biener <rguenther@suse.de>
36423
36424 PR middle-end/64365
36425 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36426 for MEM_REF access functions with the same base can never partially
36427 overlap.
36428
36429 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
36430
36431 * common.opt: New option -fstack-protector-explicit.
36432 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36433 (stack_protect_decl_phase): Handle stack_protect attribute for
36434 explicit stack protection requests.
36435 (expand_used_vars): Similarly.
36436 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36437 * doc/extend.texi: Add documentation for "stack_protect" attribute.
36438 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36439
36440 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
36441
36442 PR target/53988
36443 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36444 reg-reg copies.
36445 (sh_extending_set_of_reg): New struct.
36446 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36447 sh_remove_reg_dead_or_unused_notes): New Declarations.
36448 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36449 sh_find_extending_set_of_reg, sh_split_tst_subregs,
36450 sh_extending_set_of_reg::use_as_extended_reg): New functions.
36451 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36452 convert to insn_and_split and use new function sh_split_tst_subregs.
36453
36454 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
36455
36456 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36457 option.
36458 (Optimization Options): Move -fuse-ld documentation to...
36459 (Link Options): ...here.
36460
36461 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36462
36463 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36464 offsets.
36465 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36466 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36467 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36468 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36469 instead of ZR for the memory operand of LL/SC.
36470 (compare_and_swap_12, sync_add<mode>): Likewise.
36471 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36472 (sync_new_<optab>_12, sync_nand_12): Likewise.
36473 (sync_old_nand_12, sync_new_nand_12): Likewise.
36474 (sync_sub<mode>, sync_old_add<mode>): Likewise.
36475 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
36476 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
36477 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
36478 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
36479 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
36480 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
36481 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
36482 * doc/md.texi (ZC): Update description.
36483
36484 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36485
36486 * builtins.c (expand_builtin_atomic_exchange): Remove error when
36487 memory model is CONSUME.
36488 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
36489 expand_builtin_atomic_store): Change invalid memory model errors to
36490 warnings.
36491 (expand_builtin_atomic_clear): Change invalid model errors to warnings
36492 and issue warning for CONSUME.
36493
36494 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
36495
36496 * lto-cgraph: Update function comments for
36497 lto_symtab_encoder_encode_*.
36498
36499 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36500
36501 * Makefile.in (site.exp): Do not set ENABLE_LTO.
36502
36503 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36504
36505 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
36506 * lto-cgraph.c (select_what_to_stream): Remove argument, use
36507 lto_stream_offload_p instead.
36508 * lto-streamer.h (select_what_to_stream): Remove argument.
36509 * passes.c (ipa_write_summaries): Likewise.
36510 * tree-pass.h (ipa_write_summaries): Likewise.
36511
36512 2015-01-14 Richard Biener <rguenther@suse.de>
36513
36514 PR tree-optimization/59354
36515 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
36516 groups larger than the slp group size as having gaps.
36517
36518 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36519
36520 PR middle-end/59448
36521 * builtins.c (get_memmodel): Promote consume to acquire always.
36522
36523 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36524
36525 PR target/64386
36526 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
36527 V32HImode.
36528
36529 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36530
36531 PR target/64393
36532 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
36533 Enable AVX512BW.
36534 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
36535 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
36536 AVX512VBMI, as it implies AVX512BW.
36537
36538 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36539
36540 PR target/64387
36541 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
36542 (vec_unpacks_hi_v16sf): Ditto.
36543
36544 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36545
36546 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
36547 is not available.
36548
36549 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36550
36551 * doc/invoke.texi (mapcs): Mention deprecation.
36552 (mapcs-frame): Likewise.
36553
36554 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
36555
36556 PR target/64453
36557 * config/arm/arm.c (callee_saved_reg_p): Define.
36558 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36559 register is callee saved instead of !call_used_regs[reg].
36560 (thumb1_compute_save_reg_mask): Likewise.
36561
36562 2015-01-14 Hale Wang <hale.wang@arm.com>
36563
36564 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
36565 Cortex-M7.
36566
36567 2015-01-14 Richard Biener <rguenther@suse.de>
36568
36569 PR lto/64415
36570 * tree-inline.c (insert_debug_decl_map): Check destination
36571 function MAY_HAVE_DEBUG_STMTS.
36572 (insert_init_debug_bind): Likewise.
36573 (insert_init_stmt): Remove redundant check.
36574 (remap_gimple_stmt): Drop debug stmts if the destination
36575 function has var-tracking assignments disabled.
36576
36577 2015-01-14 Martin Liska <mliska@suse.cz>
36578
36579 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36580 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36581
36582 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36583
36584 PR target/64460
36585 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36586 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36587
36588 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36589
36590 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36591 level from an ARCH; do not inject the default.
36592 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36593 MIPS_ISA_LEVEL_SPEC.
36594 (MIPS_ISA_NAN2008_SPEC): Update comment.
36595 (BASE_DRIVER_SELF_SPECS): Likewise.
36596 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36597 MIPS_DEFAULT_ISA_LEVEL_SPEC.
36598 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36599 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36600 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36601
36602 2015-01-14 Richard Biener <rguenther@suse.de>
36603
36604 PR tree-optimization/64493
36605 PR tree-optimization/64495
36606 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36607 assign the proper vectorized PHI to the inner loop exit PHIs.
36608
36609 2015-01-14 Joey Ye <joey.ye@arm.com>
36610
36611 * config/arm/arm.c (arm_compute_save_reg_mask):
36612 Do not save lr in case of tail call.
36613 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36614
36615 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
36616
36617 * tree-vrp.c (check_array_ref): Emit more warnings
36618 for warn_array_bounds >= 2.
36619 * common.opt: New option -Warray-bounds=.
36620 * doc/invoke.texi: Document -Warray-bounds=.
36621
36622 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
36623
36624 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36625 (mforbid-fp-as-gp): Remove.
36626 (mex9): Remove.
36627 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36628 (nds32_symbol_load_store_p): Remove.
36629 (nds32_fp_as_gp_check_available): Clean up implementation.
36630 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36631 cases.
36632 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36633 fp-as-gp and ex9 cases.
36634
36635 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36636
36637 * tree-profile.c (init_ic_make_global_vars): Drop workaround
36638 for bintuils bug 14342.
36639 (init_ic_make_global_vars): Likewise.
36640 (gimple_init_edge_profiler): Likewise.
36641 (gimple_gen_ic_func_profiler): Likewise.
36642
36643 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36644
36645 * ipa-inline.c (inline_small_functions): Swap the operands in
36646 enum.
36647
36648 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36649
36650 PR ipa/64481
36651 * ipa-inline-analysis.c (node_growth_cache): Remove.
36652 (initialize_growth_caches): Do not initialize it.
36653 (free_growth_caches): Do not free it.
36654 (do_estimate_growth): Rename to ...
36655 (estimate_growth): ... this one; drop growth cache code.
36656 (growth_likely_positive): Always go the heuristics way.
36657 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36658 (reset_edge_caches): Do not reset node growth.
36659 (heap_edge_removal_hook): Do not maintain cache.
36660 (inline_small_functions): Likewise; strenghten sanity check.
36661 (ipa_inline): Do not maintain caches.
36662 * ipa-inline.h (node_growth_cache): Remove.
36663 (do_estimate_growth): Remove to ...
36664 (estimate_growth): this one; remove inline version.
36665 (reset_node_growth_cache): Remove.
36666
36667 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36668
36669 PR ipa/64565
36670 * ipa-inline.c (inline_small_functions): Update callee keys after
36671 resolving speculation
36672 (inline_small_functions): Always check monotonicity of the queue.
36673
36674 2015-01-13 Marek Polacek <polacek@redhat.com>
36675
36676 PR middle-end/64391
36677 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36678
36679 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36680
36681 PR rtl-optimization/64286
36682 * ree.c (combine_reaching_defs): Move part of comment earlier,
36683 remove !SCALAR_INT_MODE_P check.
36684 (add_removable_extension): Don't add vector mode
36685 extensions if all uses of the source register aren't the same
36686 vector extensions.
36687
36688 2015-01-13 Renlin Li <renlin.li@arm.com>
36689
36690 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36691 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36692
36693 2015-01-13 Martin Liska <mliska@suse.cz>
36694
36695 * ipa-icf.c (sem_function::equals_private): Call new functions
36696 cl_target_option_print_diff and cl_optimization_print_diff.
36697 * optc-save-gen.awk (cl_target_option_print_diff): New function.
36698 (cl_optimization_print_diff): Likewise.
36699 * opth-gen.awk: Likewise.
36700
36701 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
36702
36703 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36704 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36705 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36706 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36707 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36708 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36709
36710 2015-01-13 Andrew Pinski <apinski@cavium.com>
36711
36712 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36713 instead of src mode.
36714
36715 2015-01-13 Richard Biener <rguenther@suse.de>
36716
36717 PR lto/64373
36718 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36719 DECL_CONTEXT.
36720
36721 2015-01-13 Andrew Pinski <apinski@cavium.com>
36722
36723 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36724 volatile mems.
36725 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36726
36727 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36728
36729 PR middle-end/63974
36730 * cfgexpand.c (expand_computed_goto): Don't call
36731 convert_memory_address here.
36732
36733 2015-01-13 Richard Biener <rguenther@suse.de>
36734
36735 PR tree-optimization/64406
36736 * tree-loop-distibution.c (pass_loop_distribution::execute):
36737 Reset the SCEV hashtable if we distributed anything.
36738
36739 2015-01-13 Richard Biener <rguenther@suse.de>
36740
36741 PR tree-optimization/64404
36742 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36743 SLP types for CSEd loads.
36744
36745 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36746
36747 PR tree-optimization/64436
36748 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36749 merge of two symbolic numbers for a bitwise OR to ...
36750 (perform_symbolic_merge): This. Also fix computation of the range and
36751 end of the symbolic number corresponding to the result of a bitwise OR.
36752
36753 2015-01-13 Richard Biener <rguenther@suse.de>
36754
36755 PR tree-optimization/64568
36756 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36757 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36758
36759 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36760
36761 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36762 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36763
36764 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36765
36766 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36767 target-specific symbol_ref flag.
36768 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36769 resides in rodata section.
36770 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36771 (nds32_encode_section_info): New function.
36772
36773 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36774
36775 * config/nds32/nds32.md (call): Use pseudo instruction bal which
36776 clobbers TA_REGNUM if large code model is specified.
36777 (call_register): Likewise.
36778 (call_immediate): Likewise.
36779 (call_value): Likewise.
36780 (call_value_register): Likewise.
36781 (call_value_immediate): Likewise.
36782
36783 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36784
36785 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
36786 (TARGET_CMODEL_MEDIUM): New macro.
36787 (TARGET_CMODEL_LARGE): New macro.
36788 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
36789 code model setting in assembly code.
36790
36791 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36792
36793 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36794 Remove MASK_GP_DIRECT flag.
36795 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
36796 one of the multilib default options.
36797 * config/nds32/nds32.opt (mgp-direct): Remove.
36798 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
36799 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
36800
36801 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36802
36803 * config/nds32/nds32.opt (mcmodel): Add new option.
36804 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
36805 to describe code model.
36806
36807 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
36808
36809 PR target/64479
36810 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
36811
36812 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
36813
36814 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
36815 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36816 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
36817 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
36818 __builtin_sh_set_fpscr.
36819
36820 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36821
36822 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
36823 after a funtion name just to indicate it is a function.
36824 ([-fsanitize-undefined-trap-on-error]): Likewise.
36825 ([-fdbg-cnt=]): Likewise.
36826 ([-mmemcpy]): Likewise.
36827 ([-mflush-func]): Likewise.
36828 ([-msynci]): Likewise.
36829
36830 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36831
36832 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
36833 example.
36834
36835 2015-01-12 Jakub Jelinek <jakub@redhat.com>
36836
36837 PR tree-optimization/64563
36838 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
36839 instead of != VR_VARYING.
36840
36841 PR target/64513
36842 * config/i386/i386.c (ix86_expand_prologue): Add
36843 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
36844
36845 PR tree-optimization/64454
36846 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
36847 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
36848 for signed or [0, op1 - 1] for unsigned modulo.
36849 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
36850 even if op1 does not satisfy integer_pow2p.
36851
36852 PR other/64370
36853 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
36854
36855 2015-01-12 Jeff Law <law@redhat.com>
36856
36857 PR target/64461
36858 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
36859 (trunchiqi2, truncsihi2): Similarly.
36860
36861 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
36862 rather than calling F.
36863
36864 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
36865
36866 * tsan.c (instrument_expr): Use force_gimple_operand.
36867 Use may_be_nonaddressable_p instead of is_gimple_addressable.
36868
36869 2015-01-12 Richard Biener <rguenther@suse.de>
36870
36871 PR tree-optimization/64530
36872 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
36873 back dr1.
36874
36875 2015-01-12 Richard Biener <rguenther@suse.de>
36876
36877 PR middle-end/64357
36878 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36879 latches properly.
36880
36881 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36882
36883 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36884 Cortex-A17 tuning parameters.
36885 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36886
36887 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36888
36889 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36890 * config/arm/arm.c (arm_macro_fusion_p): New function.
36891 (arm_macro_fusion_pair_p): Likewise.
36892 (TARGET_SCHED_MACRO_FUSION_P): Define.
36893 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36894 (ARM_FUSE_NOTHING): Likewise.
36895 (ARM_FUSE_MOVW_MOVT): Likewise.
36896 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36897 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36898 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36899 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36900 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36901 arm_cortex_a5_tune): Specify fuseable_ops value.
36902
36903 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
36904
36905 PR bootstrap/64561
36906 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36907 test for PIE with copy reloc.
36908 * configure: Regenerated.
36909
36910 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36911
36912 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36913 in gen_rtx_REG.
36914 (arm_tls_descseq_addr): Likewise.
36915 (arm_gen_movmemqi): Likewise.
36916 (arm_expand_epilogue_apcs_frame): Likewise.
36917 (arm_expand_epilogue): Likewise.
36918 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
36919 in gen_rtx_REG.
36920
36921 2015-01-12 Martin Liska <mliska@suse.cz>
36922
36923 PR ipa/64550
36924 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36925 volatility for correct operands.
36926
36927 2015-01-12 Martin Liska <mliska@suse.cz>
36928
36929 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36930 indication that a function is not leaf.
36931 (sem_function::compare_polymorphic_p): Likewise.
36932
36933 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36934
36935 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36936 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36937 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36938 fold-const.h, tree-check.h.
36939
36940 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36941
36942 PR ipa/63967
36943 PR ipa/64425
36944 * ipa-inline.c (compute_uninlined_call_time,
36945 compute_inlined_call_time): Use counts for extra precision when
36946 needed possible.
36947 (big_speedup_p): Fix formating.
36948 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36949 (relative_time_benefit): Remove.
36950 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36951 merge guessed and read profile paths.
36952 (inline_small_functions): Count only !optimize_size functions into
36953 initial size; be more lax about sanity check when profile is used;
36954 be sure to update inlined function profile when profile is read.
36955
36956 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36957
36958 PR ipa/63470
36959 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36960 cost when edge becomes direct.
36961 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36962 is resolved or when introducing new speculation.
36963
36964 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
36965
36966 PR ipa/64551
36967 PR ipa/64552
36968 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36969 '||' to fix typo issue.
36970
36971 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36972 accept and return NULL.
36973
36974 2015-01-12 Martin Liska <mliska@suse.cz>
36975
36976 * cgraph.c (cgraph_edge::remove_callee): Move function to header
36977 file for being inlined.
36978 (cgraph_set_edge_callee): Delete.
36979 (cgraph_edge::redirect_callee): Move function to header file
36980 for being inlined.
36981 (cgraph_edge::make_direct): Use new function.
36982 (cgraph_edge::dump_edge_flags): New function created from
36983 static dump_edge_flags function.
36984 (cgraph_node::dump): Use new function.
36985 (cgraph_edge::verify_count_and_frequency): New function created
36986 from verify_edge_count_and_frequency.
36987 (cgraph_edge::verify_corresponds_to_fndecl): New function created
36988 from verify_edge_corresponds_to_fndecl.
36989 (verify_edge_corresponds_to_fndecl): Delete.
36990 (cgraph_node::verify_node): Use new function.
36991 * cgraph.h (cgraph_edge::set_callee): New function.
36992 (cgraph_edge::dump_edge_flags): Likewise.
36993 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
36994
36995 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
36996
36997 * ipa-utils.c (estimate_function_body_sizes): Do not
36998 free node params when called late with early=true.
36999
37000 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
37001
37002 * doc/md.texi (Instruction Patterns): Rewrite text for
37003 clarity.
37004 (Example): Likewise.
37005
37006 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
37007
37008 * doc/invoke.texi (Option Summary): Break long lines.
37009 [(-fdiagnostics-color)]: Put long literal in @smallexample
37010 instead of inline.
37011 [(-fsanitize-recover)]: Likewise.
37012 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
37013 [(-ffast-math)]: Likewise.
37014 [(--param max-inline-insns-recursive)]: Likewise.
37015 [(--param max-inline-recursive-depth)]: Likewise.
37016 [(-mno-text-section-literals)]: Likewise.
37017
37018 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
37019
37020 * doc/install.texi: Update for libgomp being renamed from "GNU
37021 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
37022 Runtime Library".
37023 * doc/sourcebuild.texi: Likewise.
37024
37025 2015-01-10 Anthony Green <green@moxielogic.com>
37026
37027 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
37028 mul.x availability for moxiebox configuration.
37029
37030 2015-01-09 Anthony Green <green@moxielogic.com>
37031
37032 * config/moxie/moxie.md: Tabify assembly output.
37033
37034 2015-01-09 Anthony Green <green@moxielogic.com>
37035
37036 * config/moxie/moxie.md (CC_REG): Correct register definition.
37037
37038 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
37039
37040 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
37041 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
37042 of log files.
37043
37044 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37045
37046 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
37047
37048 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
37049 Jakub Jelinek <jakub@redhat.com>
37050
37051 PR middle-end/64412
37052 * lto-streamer.h (lto_stream_offload_p): New declaration.
37053 * lto-streamer.c (lto_stream_offload_p): New variable.
37054 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
37055 at the same time as section_name_prefix.
37056 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
37057 if lto_stream_offload_p.
37058 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
37059 stream TREE_TARGET_OPTION if lto_stream_offload_p.
37060 (write_ts_function_decl_tree_pointers): Don't
37061 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
37062 * tree-streamer-in.c (unpack_value_fields): Don't stream
37063 TREE_TARGET_OPTION in if ACCEL_COMPILER.
37064 (lto_input_ts_function_decl_tree_pointers): Don't stream
37065 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
37066 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
37067 instead of section_name_prefix string comparisons.
37068
37069 2015-01-09 Jakub Jelinek <jakub@redhat.com>
37070
37071 PR rtl-optimization/64536
37072 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
37073 tablejumps.
37074
37075 2015-01-09 Michael Collison <michael.collison@linaro.org>
37076
37077 PR tree-optimization/64322
37078 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
37079 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
37080
37081 2015-01-09 Tom de Vries <tom@codesourcery.com>
37082
37083 PR rtl-optimization/64539
37084 * regcprop.c (kill_clobbered_values): Factor out of ...
37085 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
37086 instead of note_stores with kill_clobbered_value.
37087
37088 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37089
37090 * ginclude/unwind-arm-common.h: Revert previous commit.
37091
37092 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
37093
37094 * config.gcc (arm*-*-freebsd*): New configuration.
37095 * config/arm/freebsd.h: New file.
37096 * config.host: Add extra components for arm*-*-freebsd*.
37097 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
37098 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
37099
37100 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37101
37102 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
37103 for -mcpu=e6500.
37104 * config/rs6000/t-rtems: Add e6500 multilibs.
37105
37106 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37107
37108 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
37109 MPC8540.
37110
37111 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37112
37113 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
37114 MULTILIB_EXCEPTIONS.
37115
37116 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37117
37118 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
37119 MULTILIB_EXCEPTIONS.
37120
37121 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
37122
37123 * config/arm/t-rtems-eabi: Rename to...
37124 * config/arm/t-rtems: ...this.
37125 * config/arm/rtems-eabi.h: Rename to...
37126 * config/arm/rtems.h: ...this.
37127 * config.gcc (arm*-*-rtems*): Reflect changes above.
37128
37129 2015-01-09 Richard Biener <rguenther@suse.de>
37130
37131 PR tree-optimization/64410
37132 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
37133 on the LHS.
37134 (execute_update_addresses_taken): Deal with that.
37135 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
37136 loads/stores for complex variables.
37137
37138 2015-01-09 Martin Liska <mliska@suse.cz>
37139
37140 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
37141 name comparison.
37142 (func_checker::compare_memory_operand): New function.
37143 (func_checker::compare_operand): Split case to newly
37144 added functions.
37145 (func_checker::compare_cst_or_decl): New function.
37146 (func_checker::compare_gimple_call): Identify
37147 memory operands.
37148 (func_checker::compare_gimple_assign): Likewise.
37149 * ipa-icf-gimple.h: New function.
37150
37151 2015-01-09 Martin Liska <mliska@suse.cz>
37152
37153 PR ipa/64503
37154 * sreal.c (sreal::dump): Change unsigned format to signed for
37155 m_exp value.
37156 (sreal::to_double): Replace exp2 with scalbln.
37157
37158 2015-01-09 Martin Liska <mliska@suse.cz>
37159
37160 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37161 * ipa-icf.c (sem_function::equals_private): Add support for target and
37162 (sem_item_optimizer::merge_classes): Remove redundant function
37163 optimization flags comparison.
37164 * tree.h (target_opts_for_fn): New function.
37165
37166 2015-01-09 Tom de Vries <tom@codesourcery.com>
37167
37168 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37169
37170 2015-01-09 Kito Cheng <kito@0xlab.org>
37171
37172 PR rtl-optimization/64348
37173 * lra-constraints.c (split_reg): Fix caller-save store/restore
37174 instruction generation.
37175
37176 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
37177
37178 PR gcov-profile/61790
37179 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37180 long long. Fallback to int64_t if host doesn't have long long and
37181 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
37182
37183 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37184
37185 PR tree-optimization/63989
37186 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37187 from 1000 to 10000.
37188 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37189 (get_stridx): If we don't have a record for certain SSA_NAME,
37190 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37191 constant offset, call get_stridx_plus_constant.
37192 (get_stridx_plus_constant): New function.
37193 (zero_length_string): Don't use get_stridx here.
37194
37195 PR target/55023
37196 PR middle-end/64388
37197 * dse.c (struct insn_info): Mention frame_read set also
37198 before reload for tail calls on some targets.
37199 (scan_insn): Revert 2014-12-22 change. Set frame_read
37200 also before reload for tail calls if
37201 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
37202 instead of add_non_frame_wild_read for non-const/memset
37203 tail calls after reload.
37204
37205 2015-01-08 Jason Merrill <jason@redhat.com>
37206
37207 * ubsan.c (do_ubsan_in_current_function): New.
37208 (pass_ubsan::gate): Use it.
37209 * ubsan.h: Declare it.
37210 * convert.c (convert_to_integer): Use it.
37211
37212 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37213
37214 PR target/64338
37215 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37216 compare_code when it is unconditionally overwritten afterwards.
37217 Use ix86_reverse_condition instead of reverse_condition. Don't
37218 change code if *reverse_condition* returned UNKNOWN and don't
37219 swap ct/cf and negate diff in that case.
37220
37221 2015-01-08 Mike Stump <mikestump@comcast.net>
37222
37223 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37224 (pass_tsan_O0::gate): Likewise.
37225 * extend.texi (Function Attributes): Add no_sanitize_thread
37226 documentation.
37227
37228 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
37229
37230 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37231 for registering builtins.
37232 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37233 add -fopenmp to the argv_obstack used when invoking
37234 compile_for_target.
37235
37236 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37237 add "-m32" or "-m64" to argv_obstack.
37238 (generate_host_descr_file): Likewise, when invoking host_compiler.
37239 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37240 ld.
37241
37242 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37243
37244 * config/sh/sh-mem.cc: Use constant as second operand when emitting
37245 tstsi_t insns.
37246
37247 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37248
37249 PR target/55212
37250 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37251 constant load if constant operand fits into I08.
37252
37253 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37254
37255 PR sanitizer/64336
37256 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37257 and TREE_THIS_VOLATILE for MEM_REFs.
37258 (build5_stat): Fix up initialization of TREE_READONLY and
37259 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37260
37261 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
37262
37263 PR target/64533
37264 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37265 of r for the second alternative of the destination operand.
37266
37267 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
37268
37269 PR target/36557
37270 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37271
37272 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37273
37274 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37275 keywords.
37276 ([-fivar-visibility], [-fvisibility]): Likewise.
37277
37278 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37279
37280 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37281 the file where @code, @command, etc is more appropriate.
37282
37283 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
37284
37285 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37286 of -mrecip= documentation.
37287
37288 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37289
37290 PR target/64505
37291 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37292 correct reload handler if -m32 -mpowerpc64 is used.
37293
37294 2015-01-06 Tom de Vries <tom@codesourcery.com>
37295
37296 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37297
37298 2015-01-08 Christian Bruel <christian.bruel@st.com>
37299
37300 PR target/64507
37301 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37302
37303 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
37304
37305 PR tree-optimization/63259
37306 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37307 if optab exists for 16bit byteswap.
37308
37309 2015-01-06 Jakub Jelinek <jakub@redhat.com>
37310
37311 * opts.c (common_handle_option): Add support for
37312 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37313 * doc/invoke.texi: Document -fno-sanitize=all,
37314 -f{,no-}sanitize-recover=all. Document that
37315 -fsanitize=float-cast-overflow is not enabled
37316 by -fsanitize=undefined. Fix up documentation
37317 of -f{,no-}sanitize-recover.
37318
37319 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
37320
37321 * config.gcc: Add Visium support.
37322 * configure.ac: Likewise.
37323 * configure: Regenerate.
37324 * doc/extend.texi (interrupt attribute): Add Visium.
37325 * doc/invoke.texi: Document Visium options.
37326 * doc/install.texi: Document Visium target.
37327 * doc/md.texi: Document Visium constraints.
37328 * common/config/visium: New directory.
37329 * config/visium: Likewise.
37330
37331 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37332
37333 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37334 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37335
37336 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37337
37338 * combine.c (combine_validate_cost): Do not count the cost of a
37339 split I2 twice. Do not display it twice in the dump, either.
37340
37341 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37342
37343 Revert parts of r219199.
37344 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37345 <inttypes.h>.
37346 ([-Wtraditional]): Restore markup on <limits.h>.
37347
37348 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
37349
37350 PR c++/31397
37351 * doc/invoke.texi: Document -Wsuggest-override.
37352
37353 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
37354
37355 PR rtl-optimization/64287
37356 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37357 (process_options): Disable flag_ipa_ra if profiling.
37358
37359 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
37360
37361 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37362
37363 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
37364
37365 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37366 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37367 put under #if TARGET_LOOPS guard.
37368
37369 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
37370
37371 * config/i386/i386.c (output_387_binary_op): Use std::swap.
37372
37373 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
37374
37375 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37376 * rtl.h (refers_to_regno_p): Add overload.
37377 * cse.c: Use it.
37378 * bt-load.c: Likewise.
37379 * combine.c: Likewise.
37380 * df-scan.c: Likewise.
37381 * sched-deps.c: Likewise.
37382 * config/s390/s390.c: Likewise.
37383 * config/m32r/m32r.c: Likewise.
37384 * config/rs6000/spe.md: Likewise.
37385 * config/rs6000/rs6000.c: Likewise.
37386 * config/pa/pa.c: Likewise.
37387 * config/stormy16/stormy16.c: Likewise.
37388 * config/cris/cris.c: Likewise.
37389 * config/arc/arc.md: Likewise.
37390 * config/arc/arc.c: Likewise.
37391 * config/sh/sh.md: Likewise.
37392 * config/sh/sh.c: Likewise.
37393 * config/frv/frv.c: Likewise.
37394
37395 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37396
37397 PR sanitizer/64265
37398 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37399 call as cleanup of the whole body.
37400 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37401 * tsan.c (replace_func_exit): New function.
37402 (instrument_func_exit): Moved earlier.
37403 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37404 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37405 been found.
37406 (tsan_pass): Don't call instrument_func_exit.
37407 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37408 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37409 inlining.
37410
37411 PR sanitizer/64344
37412 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37413 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37414 it to libubsan handler instead of EXPR. Fold comparisons earlier,
37415 if the result is integer_zerop, return NULL_TREE.
37416 * convert.c (convert_to_integer): Pass expr as ARG.
37417
37418 PR tree-optimization/64465
37419 * tree-inline.c (redirect_all_calls): During inlining
37420 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37421 changed the stmt to a non-throwing call.
37422
37423 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37424
37425 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37426 etc markup throughout the file.
37427
37428 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37429
37430 Enable experimental TSAN support for Ada.
37431 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37432
37433 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37434
37435 PR tree-optimization/64494
37436 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37437 clear SSA_NAME_ANTI_RANGE_P flag.
37438
37439 2015-01-05 Marek Polacek <polacek@redhat.com>
37440
37441 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37442
37443 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37444
37445 Update copyright years.
37446
37447 * gcc.c (process_command): Update copyright notice dates.
37448 * gcov-dump.c: Ditto.
37449 * gcov.c: Ditto.
37450 * doc/cpp.texi: Bump @copying's copyright year.
37451 * doc/cppinternals.texi: Ditto.
37452 * doc/gcc.texi: Ditto.
37453 * doc/gccint.texi: Ditto.
37454 * doc/gcov.texi: Ditto.
37455 * doc/install.texi: Ditto.
37456 * doc/invoke.texi: Ditto.
37457
37458 * auto-profile.c, auto-profile.h: Fix up Copyright line.
37459
37460 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
37461
37462 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37463 verb tense, etc.
37464 ([-fvtable-verify], [-fvtv-debug]): Likewise.
37465 ([-Wabi]): Likewise.
37466 ([-fmessage-length]): Likewise.
37467 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37468 ([-Wno-discarded-qualifiers]): Likewise.
37469 ([-Wnodiscarded-array-qualifiers]): Likewise.
37470 ([-Wno-virtual-move-assign]): Likewise.
37471 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37472 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37473 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37474 ([-fsanitize-undefined-trap-on-error]): Likewise.
37475 ([-floop-interchange]): Likewise.
37476 ([-ftree-coalesce-inlined-vars]): Likewise.
37477 ([-fvect-cost-model]): Likewise.
37478 ([-flto]): Likewise.
37479 ([--param]): Likewise.
37480 (Spec Files): Likewise.
37481 ([-mstrict-align]): Likewise.
37482 ([-mfix-cortex-a53-835769]): Likewise.
37483 ([-march], [-mtune]): Likewise.
37484 ([-mpic-register]): Likewise.
37485 ([-munaligned-access]): Likewise.
37486 ([-msp8]): Likewise.
37487 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
37488 (AVR Built-in Macros): Likewise.
37489 ([-mpreferred-stack-boundary]): Likewise.
37490 ([-mtune-crtl]): Likewise.
37491 ([-mashf]): Likewise.
37492 ([-mmcu=]): Likewise.
37493 ([-minrt]): Likewise.
37494 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
37495 ([-mupper-regs]): Likewise.
37496 ([-matomic-model]): Likewise.
37497 ([-mdiv]): Likewise.
37498 ([-mzdcbranch]): Likewise.
37499 ([-mdisable-callt]): Likewise.
37500 ([-msoft-float]): Likewise.
37501 ([-m8byte-align]): Likewise.
37502 ([-fstack-reuse]): Likewise.
37503
37504 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37505
37506 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
37507 Fix markup, light copy-editing.
37508 ([-fauto-profile]): Rewrite to fix formatting and content
37509 problems.
37510
37511 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37512
37513 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
37514 Copy-edit description.
37515 ([-fisolate-erroneous-paths-attribute]): Likewise.
37516 * common.opt (fisolate-erroneous-paths-dereference):
37517 Copy-edit description.
37518 (fisolate-erroneous-paths-attribute): Likewise.
37519
37520 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37521
37522 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
37523 tidy grammar.
37524
37525 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37526
37527 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
37528 ([-fvtv-debug]): Likewise.
37529 ([-Wc++-compat]): Likewise.
37530 ([-Wc++11-compat]): Likewise.
37531 ([-Wc++14-compat]): Likewise.
37532 ([-Wno-sized-deallocation]): Likewise.
37533 ([-femit-class-debug-always]): Likewise.
37534 ([-femit-struct-debug-detailed]): Likewise.
37535 ([-fno-keep-inline-dllexport]): Likewise.
37536 ([-fira-algorithm]): Likewise.
37537 ([-fira-region]): Likewise.
37538 ([-flra-remat]): Likewise.
37539 ([-fipa-ra]): Likewise.
37540 ([-fhoist-adjacent-loads]): Likewise.
37541 ([-fisolate-erroneous-paths-dereference]): Likewise.
37542 ([-fisolate-erroneous-paths-attribute]): Likewise.
37543 ([-ftree-switch-conversion]): Likewise.
37544 ([-ftree-tail-merge]): Likewise.
37545 ([-ftree-loop-if-convert]): Likewise.
37546 ([-ftree-loop-if-convert-stores]): Likewise.
37547 ([-ftree-loop-distribution]): Likewise.
37548 ([-ftree-loop-distribute-patterns]): Likewise.
37549 ([-flto-compression-level]): Likewise.
37550 ([-flto-report]): Likewise.
37551 ([-flto-report-wpa]): Likewise.
37552 ([-fuse-linker-plugin]): Likewise.
37553 ([-mfix-cortex-a53-835769]): Likewise.
37554 ([-mno-fix-cortex-a53-835769]): Likewise.
37555 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
37556 explicit listing; add a note to the discussion indicating they
37557 exist. Reorder table to group similar options. Add missing
37558 @opindex entries. Add @need commands throughout the table to
37559 allow it to be split across multiple pages.
37560 ([-m8bit-idiv]): Fix @opindex.
37561 ([-mavx256-split-unaligned-load]): Likewise.
37562 ([-mavx256-split-unaligned-store]): Likewise.
37563 ([-mstack-protector-guard]): Likewise.
37564 ([-mcpu=]): Likewise.
37565 ([-mcpu]): Likewise.
37566 ([-mpointer-size=]): Likewise.
37567
37568 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
37569
37570 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37571 instead of `m' constraint. Likewise for unnamed movb comparison
37572 patterns using reg_before_reload_operand predicate.
37573 * config/pa/predicates.md (reg_before_reload_operand): Tighten
37574 predicate to reject register index and LO_SUM DLT memory forms
37575 after reload.
37576
37577 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37578
37579 * doc/invoke.texi (Option Summary): Fix spelling of
37580 -fdevirtualize-at-ltrans.
37581 ([-fdevirtualize]): Fix markup.
37582 ([-fdevirtualize-speculatively]): Fix typo.
37583 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
37584 implementor-speaky.
37585 * common.opt (fdevirtualize-at-ltrans): Likewise.
37586 * ipa-devirt.c: Fix typos in comments throughout the file.
37587 (ipa_devirt): Fix typos in format strings for dump output.
37588
37589 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37590
37591 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37592 discussion of defaults, light copy-editing.
37593
37594 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37595
37596 * tsan.c (instrument_expr): corrected previous checkin.
37597
37598 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37599
37600 Instrument bit field and unaligned accesses for TSAN.
37601 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37602 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37603 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37604 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37605 unaligned memory regions.
37606
37607 2015-01-01 Anthony Green <green@moxielogic.com>
37608
37609 * config/moxie/predicates.md (moxie_general_movsrc_operand):
37610 Restrict move source register offsets to 16 bits.
37611 \f
37612 Copyright (C) 2015 Free Software Foundation, Inc.
37613
37614 Copying and distribution of this file, with or without modification,
37615 are permitted in any medium without royalty provided the copyright
37616 notice and this notice are preserved.