re PR target/66648 (incorrect memcpy expansion with unrolled_loop strategy at -O2)
[gcc.git] / gcc / ChangeLog
1 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2
3 PR target/66648
4 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
5 execution guard when min_size is less than size_needed.
6
7 2015-07-25 Sebastian Pop <s.pop@samsung.com>
8
9 * doc/install.texi: Document supported versions of ISL.
10
11 2015-07-25 Jeff Law <law@redhat.com>
12
13 Revert:
14 PR lto/66752
15 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16 unable to find X NE 0 in the tables, return X as the simplified
17 condition.
18 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20 to VISISTED_BBS. */
21 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
22 after removing the control flow statement and unnecessary edges.
23
24 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
25
26 Revert:
27 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
28
29 PR rtl-optimization/64164
30 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
31 * tree-ssa-copyrename.c: Removed.
32 * opts.c (default_options_table): Drop -ftree-copyrename. Add
33 -ftree-coalesce-vars.
34 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
35 * common.opt (ftree-copyrename): Ignore.
36 (ftree-coalesce-inlined-vars): Likewise.
37 * doc/invoke.texi: Remove the ignored options above.
38 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
39 * tree-ssa-coalesce.h: ... here.
40 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
41 headers required by it.
42 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
43 across variables when flag_tree_coalesce_vars. Check register
44 use and promoted modes to allow coalescing. Moved to
45 tree-ssa-coalesce.c.
46 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
47 with its member functions to tree-ssa-coalesce.c.
48 (var_map_base_init): Likewise. Renamed to
49 compute_samebase_partition_bases.
50 (partition_view_normal): Drop want_bases parameter.
51 (partition_view_bitmap): Likewise.
52 * tree-ssa-live.h: Adjust declarations.
53 * tree-ssa-coalesce.c: Include explow.h.
54 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
55 default defs at the entry point.
56 (dump_part_var_map): New.
57 (compute_optimized_partition_bases): New, called by...
58 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
59 of compute_samebase_partition_bases. Adjust.
60 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
61 * cfgexpand.c (leader_merge): New.
62 (get_rtl_for_parm_ssa_default_def): New.
63 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
64 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
65 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
66 redundant MEM attr setting.
67 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
68 from...
69 (expand_one_stack_var): ... this. New wrapper to check and
70 skip already expanded SSA partitions.
71 (record_alignment_for_reg_var): New, factored out of...
72 (expand_one_var): ... this.
73 (expand_one_ssa_partition): New.
74 (adjust_one_expanded_partition_var): New.
75 (expand_one_register_var): Check and skip already expanded SSA
76 partitions.
77 (expand_used_vars): Don't create DECLs for anonymous SSA
78 names. Expand all SSA partitions, then adjust all SSA names.
79 (pass::execute): Replace the loops that set
80 SA.partition_to_pseudo from partition leaders and cleared
81 DECL_RTL for multi-location variables, and that which used to
82 rename vars and set attrs, with one that clears DECL_RTL and
83 checks that PARMs and RESULTs default_defs match DECL_RTL.
84 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
85 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
86 * explow.c (promote_ssa_mode): New.
87 * explow.h (promote_ssa_mode): Declare.
88 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
89 * function.c: Include cfgexpand.h.
90 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
91 (use_register_for_parm_decl): Wrapper for the above to
92 special-case the result_ptr.
93 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
94 (split_complex_args): Take assign_parm_data_all argument.
95 Pass it to rtl_for_parm. Set up rtl and context for split
96 args.
97 (assign_parms_augmented_arg_list): Adjust.
98 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
99 multiple locations. Recognize split complex args.
100 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
101 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
102 (assign_parm_setup_block): Prefer SSA-assigned location.
103 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
104 if stack_parm is NULL.
105 (assign_parm_setup_stack): Prefer SSA-assigned location.
106 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
107 rtl before testing for pointer bounds. Special-case result_ptr.
108 (expand_function_start): Maybe reset DECL_RTL of result.
109 Prefer SSA-assigned location for result and static chain.
110 Factor out DECL_RESULT and SET_DECL_RTL.
111 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
112 anonymous SSA names. Use promote_ssa_mode.
113 (get_temp_reg): Likewise.
114 (remove_ssa_form): Adjust.
115 * stor-layout.c (layout_decl): Don't set mem attributes of
116 non-MEMs.
117 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
118 and get its reg_usage for reg invalidation.
119 (compute_bb_dataflow): Pass it insn.
120 (emit_notes_in_bb): Likewise.
121
122 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
123
124 * config/i386/i386.c (ix86_va_start): Remove
125 unneeded !TARGET_64BIT check.
126 (ix86_gimplify_va_arg): Ditto.
127
128 2015-07-24 Tom de Vries <tom@codesourcery.com>
129
130 * graphite-sese-to-poly.c (build_poly_scop): Always call
131 rewrite_commutative_reductions_out_of_ssa.
132
133 2015-07-24 Tom de Vries <tom@codesourcery.com>
134
135 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
136 flag_associative_math to FLOAT_TYPE_P. Honour
137 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
138
139 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
140
141 PR c++/64079
142 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
143 and "%qD" in warning_at instead of "%q+D" in warning.
144
145 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
146
147 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
148 (ix86_function_abi): Cleanup.
149
150 2015-07-24 Michael Darling <darlingm@gmail.com>
151
152 PR other/66259
153 * acinclude.m4: Reflects renaming of configure.in to configure.ac
154 * configure: Likewise
155 * configure.ac: Likewise
156 * doc/install.texi: Likewise
157 * doc/tm.texi: Likewise
158 * doc/tm.texi.in: Likewise
159
160 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
161
162 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
163 manually swapping values.
164 * cse.c (fold_rtx): Likewise.
165 * lra-eliminations.c (form_sum): Likewise.
166
167 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
168
169 PR target/64003
170 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
171 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
172 (*jcc_1, *jcc_2, jump, simple_return_internal)
173 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
174 Set length_nobnd attribute instead of length attribute.
175 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
176 (length_nobnd): Remove attribute.
177 (length): Remove length_nobnd processing.
178
179 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
180
181 * gimplify.c (omp_default_clause): New function. Reorganize flow
182 for clarity. Broken out of ...
183 (omp_notice_variable): ... here.
184
185 2015-07-24 Gary Funck <gary@intrepid.com>
186
187 PR middle-end/66984
188 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
189 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
190
191 2015-07-24 Tom de Vries <tom@codesourcery.com>
192
193 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
194 exit-first loop transform.
195
196 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
197
198 PR 66714
199 * tree-cfg.c (struct replace_decls_d): New struct.
200 (replace_block_vars_by_duplicates_1): New function.
201 (replace_block_vars_by_duplicates): Use it to replace the decls
202 in the value exprs by duplicates.
203
204 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
205
206 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
207 -shared, -symbolic, -rdynamic.
208
209 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
210
211 PR target/65711
212 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
213 -dynamic-linker within %{!static %{!shared, and -rdynamic within
214 %{!static.
215
216 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
217
218 PR ipa/66566
219 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
220 edge summary is available.
221
222 2015-07-24 Richard Biener <rguenther@suse.de>
223
224 * genmatch.c (struct dt_node): Add statistic fields.
225 (dt_node::analyze): New method.
226 (decision_tree::gen_gimple): Call analyze on the root node
227 and print statistics to stderr.
228 (decision_tree::gen_generic): Likewise.
229
230 2015-07-24 Richard Biener <rguenther@suse.de>
231
232 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
233 against the highest or lowest possible integer ...
234 * match.pd: ... as patterns here.
235
236 2015-07-24 Richard Biener <rguenther@suse.de>
237
238 * genmatch.c (struct capture_info): Add same_as field.
239 (capture_info::capture_info): Initialize same_as.
240 (capture_info::walk_match): Compute same_as.
241 (capture_info::walk_result): Compute stuff for the leader.
242 (capture_info::walk_c_expr): Likewise.
243 (dt_simplify::gen_1): Only look at leaders when deciding
244 to force no side-effects or emit side-effects of omitted operands.
245
246 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
247
248 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
249 reg note to the GPR -> FPR save instructions.
250
251 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
252
253 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
254 cheaper.
255 (s390_expand_insv): Don't generate risbg pattern for constant zero
256 sources.
257 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
258 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
259 splitters.
260
261 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
262
263 * config/s390/s390.c (s390_reorg): Clean up handling of processors
264 with
265 -mtune=
266 (s390_issue_rate): Likewise.
267 (s390_sched_reorder): Likewise.
268 (s390_sched_variable_issue): Likewise.
269 (s390_loop_unroll_adjust): Likewise.
270 (s390_option_override): Likewise.
271
272 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
273
274 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
275 processor capabilities with -march=native.
276 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
277 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
278 (S390_TARGET_BITS_STRING): Macro to simplify specs.
279
280 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
281
282 * config/s390/s390.c (s390_issue_rate): Handle
283 PROCESSOR_2094_Z9_EC.
284 (s390_option_override): Likewise.
285 (s390_adjust_priority): Likewise.
286
287 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
288
289 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
290 when cross compiling.
291
292 2015-07-24 Richard Biener <rguenther@suse.de>
293
294 * fold-const.c (maybe_canonicalize_comparison_1): Move
295 A code CST canonicalization ...
296 * match.pd: ... to a pattern here.
297
298 2015-07-24 Jiong Wang <jiong.wang@arm.com>
299
300 Revert:
301 2015-07-22 Jiong Wang <jiong.wang@arm.com>
302 PR target/63521
303 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
304 (HONOR_REG_ALLOC_ORDER): Define.
305
306 2015-07-24 Richard Biener <rguenther@suse.de>
307
308 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
309 * fold-const.c (fold_comparison): Move parameter does not
310 alias &local simplification ...
311 * match.pd: ... as a pattern here.
312
313 2015-07-24 Richard Biener <rguenther@suse.de>
314
315 * gimple-fold.c (replace_stmt_with_simplification): Special-case
316 valueizing call operands.
317 * gimple-match-head.c (maybe_push_res_to_seq): Take
318 number of call arguments from ops array.
319 (do_valueize): New function.
320 (gimple_simplify): Return true if valueization changed
321 any operand even if the result didn't simplify further.
322
323 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
324
325 PR middle-end/25530
326 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
327
328 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
329
330 PR middle-end/25529
331 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
332
333 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
334
335 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
336 instruction.
337
338 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
339
340 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
341 clean up.
342
343 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
344
345 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
346 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
347 targets here.
348 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
349 ms_va_list_type_node initialization.
350
351 2015-07-23 Jeff Law <law@redhat.com>
352
353 PR lto/66752
354 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
355 unable to find X NE 0 in the tables, return X as the simplified
356 condition.
357 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
358 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
359 to VISISTED_BBS. */
360 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
361 after removing the control flow statement and unnecessary edges.
362
363 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
364
365 * tree-pass.h (get_current_pass_name): Removed.
366
367 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
368
369 PR rtl-optimization/64164
370 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
371 * tree-ssa-copyrename.c: Removed.
372 * opts.c (default_options_table): Drop -ftree-copyrename. Add
373 -ftree-coalesce-vars.
374 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
375 * common.opt (ftree-copyrename): Ignore.
376 (ftree-coalesce-inlined-vars): Likewise.
377 * doc/invoke.texi: Remove the ignored options above.
378 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
379 * tree-ssa-coalesce.h: ... here.
380 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
381 headers required by it.
382 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
383 across variables when flag_tree_coalesce_vars. Check register
384 use and promoted modes to allow coalescing. Moved to
385 tree-ssa-coalesce.c.
386 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
387 with its member functions to tree-ssa-coalesce.c.
388 (var_map_base_init): Likewise. Renamed to
389 compute_samebase_partition_bases.
390 (partition_view_normal): Drop want_bases parameter.
391 (partition_view_bitmap): Likewise.
392 * tree-ssa-live.h: Adjust declarations.
393 * tree-ssa-coalesce.c: Include explow.h.
394 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
395 default defs at the entry point.
396 (dump_part_var_map): New.
397 (compute_optimized_partition_bases): New, called by...
398 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
399 of compute_samebase_partition_bases. Adjust.
400 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
401 * cfgexpand.c (leader_merge): New.
402 (get_rtl_for_parm_ssa_default_def): New.
403 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
404 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
405 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
406 redundant MEM attr setting.
407 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
408 from...
409 (expand_one_stack_var): ... this. New wrapper to check and
410 skip already expanded SSA partitions.
411 (record_alignment_for_reg_var): New, factored out of...
412 (expand_one_var): ... this.
413 (expand_one_ssa_partition): New.
414 (adjust_one_expanded_partition_var): New.
415 (expand_one_register_var): Check and skip already expanded SSA
416 partitions.
417 (expand_used_vars): Don't create DECLs for anonymous SSA
418 names. Expand all SSA partitions, then adjust all SSA names.
419 (pass::execute): Replace the loops that set
420 SA.partition_to_pseudo from partition leaders and cleared
421 DECL_RTL for multi-location variables, and that which used to
422 rename vars and set attrs, with one that clears DECL_RTL and
423 checks that PARMs and RESULTs default_defs match DECL_RTL.
424 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
425 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
426 * explow.c (promote_ssa_mode): New.
427 * explow.h (promote_ssa_mode): Declare.
428 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
429 * function.c: Include cfgexpand.h.
430 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
431 (use_register_for_parm_decl): Wrapper for the above to
432 special-case the result_ptr.
433 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
434 (split_complex_args): Take assign_parm_data_all argument.
435 Pass it to rtl_for_parm. Set up rtl and context for split
436 args.
437 (assign_parms_augmented_arg_list): Adjust.
438 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
439 multiple locations. Recognize split complex args.
440 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
441 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
442 (assign_parm_setup_block): Prefer SSA-assigned location.
443 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
444 if stack_parm is NULL.
445 (assign_parm_setup_stack): Prefer SSA-assigned location.
446 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
447 rtl before testing for pointer bounds. Special-case result_ptr.
448 (expand_function_start): Maybe reset DECL_RTL of result.
449 Prefer SSA-assigned location for result and static chain.
450 Factor out DECL_RESULT and SET_DECL_RTL.
451 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
452 anonymous SSA names. Use promote_ssa_mode.
453 (get_temp_reg): Likewise.
454 (remove_ssa_form): Adjust.
455 * stor-layout.c (layout_decl): Don't set mem attributes of
456 non-MEMs.
457 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
458 and get its reg_usage for reg invalidation.
459 (compute_bb_dataflow): Pass it insn.
460 (emit_notes_in_bb): Likewise.
461
462 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
463
464 PR target/66217
465 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
466 prototype.
467 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
468 (rs6000_emit_2insn_and): Handle dot forms.
469 * config/rs6000/rs6000.md (and<mode>3): Adjust.
470 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
471 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
472
473 2015-07-23 Richard Biener <rguenther@suse.de>
474
475 * generic-match-head.c: Include cgraph.h.
476 * gimple-match-head.c: Likewise.
477 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
478 SSA names.
479 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
480 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
481 pattern.
482
483 2015-07-23 Richard Biener <rguenther@suse.de>
484
485 * gimple-fold.c (fold_gimple_cond): Do not require folding
486 results to pass valid_gimple_rhs_p.
487 * tree-cfg.h (fold_cond_expr_cond): Remove.
488 * tree-cfg.c (fold_cond_expr_cond): Likewise.
489 (make_edges): Do not call it.
490 * tree-inline.c (tree_function_versioning): Likewise.
491
492 2015-07-23 Tom de Vries <tom@codesourcery.com>
493
494 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
495 vect_force_simple_reduction.
496 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
497 (vect_is_simple_reduction_1): Add and handle
498 need_wrapping_integral_overflow parameter.
499 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
500 need_wrapping_integral_overflow parameter.
501 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
502 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
503 decl.
504
505 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
506
507 PR tree-optimization/66926,66951
508 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
509 INNER_LOOP and fix up condition for renaming virtual operands.
510
511 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
512
513 * combine.c (try_combine): Use std::swap instead of manually
514 swapping.
515
516 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
517
518 * config/mips/i6400.md: New file.
519 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
520 (mips64r6): Likewise.
521 (i6400): Define.
522 * config/mips/mips-tables.opt: Regenerate.
523 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
524 (mips_issue_rate): Add support for i6400.
525 (mips_multipass_dfa_lookahead): Likewise.
526 * config/mips/mips.h (TUNE_I6400): Define.
527 * config/mips/mips.md: Include i6400.md.
528 (processor): Add i6400.
529 * doc/invoke.texi (-march=@var{arch}): Add i6400.
530
531 2015-07-23 Richard Biener <rguenther@suse.de>
532
533 PR middle-end/66916
534 * match.pd: Guard widen and sign-change comparison simplification
535 with single_use.
536
537 2015-07-23 Richard Biener <rguenther@suse.de>
538
539 PR tree-optimization/66945
540 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
541 ::before_dom_children): Force the propagators idea of
542 non-executable edges to materialize, not what the folder
543 chooses.
544
545 2015-07-23 Richard Biener <rguenther@suse.de>
546
547 * gimple.h (gimple_cond_make_false): Use 0 != 0.
548 (gimple_cond_make_true): Use 1 != 0.
549
550 2015-07-22 DJ Delorie <dj@redhat.com>
551
552 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
553 slashes.
554
555 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
556 (ashrhi3): Likewise.
557 (lshrhi3): Likewise.
558 (movhi): Take advantage of zero-extend to load small constants.
559 (movpsi): Likewise.
560 (and<mode>3): Likewise.
561 (zero_extendqihi2): Likewise.
562 (zero_extendqisi2): New.
563 * config/msp430/constraints.md (N,O): New.
564 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
565
566 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
567
568 PR target/66954
569 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
570 to enum feature_priority and feature_list.
571 (fold_builtin_cpu): Add F_AES to enum processor_features
572 and isa_names_table.
573
574 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
575
576 PR driver/66737
577 * config/i386/linux-common.h (MPX_SPEC): Use linker option
578 for 64bit target only.
579
580 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
581
582 * config/nvptx/nvptx.c: Expand some comments.
583
584 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
585
586 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
587 (cortex_a53_advsimd): ...This.
588
589 2015-07-22 Richard Biener <rguenther@suse.de>
590
591 * genmatch.c (expr::gen_transform): Clarify error message
592 and display location.
593
594 2015-07-22 Richard Biener <rguenther@suse.de>
595
596 * genmatch.c (struct operand): Add location member.
597 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
598 constructors.
599 (struct simplify): Remove match_location and result_location
600 members.
601 (elsehwere): Adjust.
602
603 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
604
605 * config/mips/m5100.md: New file.
606 * config/mips/mips-cpus.def (m5100, m5101): Define.
607 * config/mips/mips-tables.opt: Regenerate.
608 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
609 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
610 -march=m5101 to -mips32r5.
611 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
612 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
613 !-msoft-float.
614 * config/mips/mips.md: Include m5100.md.
615 (processor): Add m5100.
616 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
617
618 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
619
620 * config/mips/mips-cpus.def (interaptiv): Define.
621 * config/mips/mips-tables.opt: Regenerate.
622 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
623 -mips32r2.
624 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
625 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
626
627 2015-07-22 Jiong Wang <jiong.wang@arm.com>
628
629 PR target/63521
630 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
631 (HONOR_REG_ALLOC_ORDER): Define.
632
633 2015-07-22 Richard Biener <rguenther@suse.de>
634
635 PR tree-optimization/66952
636 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
637 blocks we end up executing unconditionally reset all SSA
638 info such as range and alignment.
639 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
640 * tree-ssanames.c (reset_flow_sensitive_info): New function.
641
642 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
643
644 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
645 typo in attribute.
646
647 2015-07-22 Richard Biener <rguenther@suse.de>
648
649 * genmatch.c (parser::parse_result): Properly handle
650 match with result operands and conditions.
651
652 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
653
654 PR target/63870
655 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
656 Add qualifier_struct_load_store_lane_index.
657 (aarch64_types_loadstruct_lane_qualifiers): Use
658 qualifier_struct_load_store_lane_index for lane index argument for
659 last argument.
660 (aarch64_types_storestruct_lane_qualifiers): Ditto.
661 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
662 (aarch64_simd_expand_args): Add new argument describing mode of
663 builtin. Check lane bounds for arguments with
664 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
665 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
666 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
667 (aarch64_simd_expand_builtin): Handle arguments with
668 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
669 aarch64_simd_expand_args.
670 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
671 vst[234]_lane with BUILTIN_VALLDIF.
672 * config/aarch64/aarch64-simd.md:
673 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
674 endianness reversal on lane index.
675 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
676 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
677 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
678 (vec_store_lanesci_lane<mode>): Ditto.
679 (vec_store_lanesxi_lane<mode>): Ditto.
680 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
681 reversal of lane index.
682 (aarch64_ld3_lane<mode>): Ditto.
683 (aarch64_ld4_lane<mode>): Ditto.
684 (aarch64_st2_lane<mode>): Ditto.
685 (aarch64_st3_lane<mode>): Ditto.
686 (aarch64_st4_lane<mode>): Ditto.
687 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
688 to qmode. Add new mode parameter. Update uses.
689 (__LD3_LANE_FUNC): Ditto.
690 (__LD4_LANE_FUNC): Ditto.
691 (__ST2_LANE_FUNC): Ditto.
692 (__ST3_LANE_FUNC): Ditto.
693 (__ST4_LANE_FUNC): Ditto.
694
695 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
696
697 * doc/invoke.texi (Language Independent Options): Rename node to
698 Diagnostic Message Formatting Options.
699
700 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
701
702 PR ipa/66424.
703 * lra-remat.c (operand_to_remat): Prevent using insns with input
704 subregs processed separately by IRA.
705
706 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
707
708 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
709 straight loops.
710 (single_imm_use): Check for iterator node.
711 (num_imm_uses): Likewise.
712 * tree-ssa-operands.c (has_zero_uses_1): Delete.
713 (single_imm_use_1): Check for iterator node.
714
715 2015-07-21 Mike Frysinger <vapier@gentoo.org>
716 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
717
718 * configure.ac: Add check for new options in isl-0.15.
719 * config.in, configure: Rebuilt.
720 * graphite-blocking.c: Include <isl/constraint.h>
721 * graphite-interchange.c, graphite-poly.c: Likewise.
722 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
723 * graphite.c: Likewise.
724 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
725 <isl/union_set.h>.
726 * graphite-dependences.c: Include <isl/constraint.h>.
727 (max_number_of_out_dimensions): Returns isl_stat.
728 (extend_schedule_1): Likewise
729 (extend_schedule): Corresponding changes.
730 * graphite-optimize-isl.c: Include <isl/constraint.h> and
731 <isl/union_set.h>.
732 (getSingleMap): Change return type of isl_stat.
733 (optimize_isl): Conditionally use
734 isl_options_set_schedule_serialize_sccs.
735 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
736 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
737
738 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
739
740 PR target/66956
741 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
742 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
743
744 2015-07-21 Richard Biener <rguenther@suse.de>
745
746 PR tree-optimization/66948
747 * genmatch.c (capture_info::walk_match): Also recurse to
748 captures. Properly compute expr state from captures of
749 captures.
750 * match.pd: Add single-use guards to
751 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
752
753 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
754
755 * config/nvptx/mkoffload.c (process): Add static destructor call.
756
757 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
758
759 PR middle-end/66915
760 * match.pd (A - B -> A + (-B)): Don't allow folding
761 when type if a fixed-point type.
762
763 2015-07-20 DJ Delorie <dj@redhat.com>
764
765 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
766 (iorqi3_real): Likewise for set1.
767
768 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
769
770 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
771 for !TARGET_64BIT.
772
773 2015-07-20 Aditya Kumar <hiraditya@msn.com>
774
775 * graphite-isl-ast-to-gimple.c:
776 Refactor so that each function can access 'region'. This will help
777 maintain a parameter rename_map within a region.
778
779 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
780
781 * config/rs6000/rs6000.md (*lt0_disi): New.
782
783 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
784
785 PR target/66217
786 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
787 "available letters" comment.
788 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
789 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
790 and_2rld_operand): Delete.
791 (and_operand): Adjust.
792 (rotate_mask_operator): New.
793 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
794 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
795 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
796 extract_ME): Delete.
797 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
798 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
799 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
800 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
801 rs6000_emit_2insn_and): New.
802 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
803 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
804 includes_rldic_lshift_p, includes_rldicr_lshift_p,
805 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
806 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
807 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
808 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
809 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
810 rs6000_emit_2insn_and): New.
811 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
812 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
813 handling.
814 <NOT>: Don't fall through to next case.
815 <AND>: Handle the various rotate-and-mask cases directly.
816 <IOR>: Always cost as one insn.
817 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
818 (and<mode>3): Adjust expander for the new patterns.
819 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
820 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
821 (*and<mode>3_imm_dot_shifted): New.
822 (*and<mode>3_mask): Delete, rewrite as ...
823 (and<mode>3_mask): ... New.
824 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
825 (andsi3_internal0_nomc): Delete.
826 (*andsi3_internal6): Delete.
827 (*and<mode>3_2insn): New.
828 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
829 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
830 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
831 *insvdi_internal3): Delete.
832 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
833 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
834 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
835 *ior<mode>_mask): New.
836 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
837 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
838 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
839 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
840 Delete.
841 (ashr<mode>3): Delete expander.
842 (*ashr<mode>3): Rename to ...
843 (ashr<mode>3): ... This.
844 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
845 (*rotldi3_internal4, *rotldi3_internal5 and split,
846 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
847 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
848 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
849 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
850 (splitter for loading a mask): Adjust.
851 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
852
853 2015-07-20 Marek Polacek <polacek@redhat.com>
854
855 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
856 output_add_clobbers, output_added_clobbers_hard_reg_p,
857 gen_rtx_scratch): Remove declarations.
858
859 2015-07-20 Marek Polacek <polacek@redhat.com>
860
861 PR c++/55095
862 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
863
864 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
865
866 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
867 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
868
869 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
870
871 * combine.c (combine_simplify_rtx): Move simplification step
872 before various transformations/substitutions.
873
874 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
875
876 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
877 (struct int_traits): Likewise.
878
879 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
880
881 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
882 function to vmsdbgout_function_decl.
883
884 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
885
886 PR target/66922
887 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
888 from misaligned positions.
889 (ix86_expand_pinsr): Reject insertions to misaligned positions.
890
891 2015-07-18 Sebastian Pop <s.pop@samsung.com>
892
893 PR middle-end/46851
894 PR middle-end/60340
895 * Makefile.in: Removed omega.o.
896 * common.opt: Document flag fcheck-data-deps as deprecated.
897 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
898 its associated params: omega-max-vars, omega-max-geqs,
899 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
900 omega-max-keys, omega-eliminate-redundant-constraints.
901 * doc/loop.texi: Remove all the section on Omega.
902 * graphite-blocking.c: Include missing params.h: it used to be
903 included through tree-data-ref.h and omega.h.
904 * graphite-isl-ast-to-gimple.c: Same.
905 * graphite-optimize-isl.c: Same.
906 * graphite-sese-to-poly.c: Same.
907 * graphite.c: Same.
908 * omega.c: Remove.
909 * omega.h: Remove.
910 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
911 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
912 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
913 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
914 * passes.def: Remove pass_check_data_deps.
915 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
916 (dump_conflict_function): Same.
917 (dump_subscript): Same.
918 (print_direction_vector): Same.
919 (print_dir_vectors): Same.
920 (print_lambda_vector): Same.
921 (print_dist_vectors): Same.
922 (dump_data_dependence_relation): Same.
923 (dump_data_dependence_relations): Same.
924 (dump_dist_dir_vectors): Same.
925 (dump_ddrs): Same.
926 (init_omega_eq_with_af): Removed.
927 (omega_extract_distance_vectors): Removed.
928 (omega_setup_subscript): Removed.
929 (init_omega_for_ddr_1): Removed.
930 (init_omega_for_ddr): Removed.
931 (ddr_consistent_p): Removed.
932 (compute_affine_dependence): Do not use omega to check data
933 dependences.
934 (compute_data_dependences_for_bb): Removed.
935 (analyze_all_data_dependences): Removed.
936 (tree_check_data_deps): Removed.
937 * tree-data-ref.h: Do not include omega.h.
938 (compute_data_dependences_for_bb): Removed.
939 (tree_check_data_deps): Removed.
940 * tree-ssa-loop.c (pass_check_data_deps): Removed.
941 (make_pass_check_data_deps): Removed.
942 * tree-ssa-phiopt.c: Include params.h.
943 * tree-vect-data-refs.c: Same.
944 * tree-vect-slp.c: Same.
945
946 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
947
948 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
949 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
950 (mem->fpreg splitters): Ditto.
951 (general_operand->nonimmediate_operand splitter): Use explicit modes.
952 Disable DFmode for TARGET_64BIT.
953
954 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
955
956 PR target/66906
957 * config/i386/i386.c (ix86_expand_prologue): Replicate static
958 chain on the stack.
959
960 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
961
962 * config/nvptx/mkoffload.c (process): Constify host data.
963 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
964 Constify host data.
965 (generate_host_descr_file): Likewise.
966
967 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
968 Sebastian Pop <s.pop@samsung.com>
969
970 PR middle-end/61929
971 * graphite-dependences.c (add_pdr_constraints): Renamed
972 pdr->extent to pdr->subscript_sizes.
973 * graphite-interchange.c (build_linearized_memory_access): Add
974 back all gcc_assert's that the "isl_int to isl_val conversion"
975 patch has removed. Refactored.
976 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
977 * graphite-poly.c (new_poly_dr): Same.
978 (free_poly_dr): Same.
979 * graphite-poly.h (struct poly_dr): Same.
980 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
981 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
982 * graphite-scop-detection.h: Fix space.
983 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
984 back all gcc_assert's removed by a previous patch.
985 (wrap): Remove the_isl_ctx global variable that the same patch has
986 added.
987 (build_loop_iteration_domains): Same.
988 (add_param_constraints): Same.
989 (pdr_add_data_dimensions): Same. Refactored.
990 (build_poly_dr): Renamed extent to subscript_sizes.
991
992 2015-07-17 Marek Polacek <polacek@redhat.com>
993
994 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
995 * match.pd: ... here.
996
997 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
998
999 * config/nvptx/mkoffload.c (process): Constify target data.
1000 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
1001 Constify target data.
1002 (generate_target_offloadend_file): Likewise.
1003
1004 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
1005
1006 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
1007 to allow renaming of PHI arguments on edges incoming from outer
1008 loop header, add corresponding check before start PHI iterator.
1009 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
1010 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
1011 with true force_vectorize. Set-up dominator for outer loop too.
1012 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
1013 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
1014 was marked with force_vectorize and has restricted cfg.
1015 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
1016 inner loop.
1017 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
1018 do peeling for outer loops.
1019
1020 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
1021 Matthias Klose <doko@ubuntu.com>
1022
1023 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
1024 build-sysroot, sysroot from the `Miscenalleous configure options' to
1025 the `Directories' section and strip trailing `/' from with_sysroot.
1026 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
1027 * configure: Regenerated.
1028
1029 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1030
1031 PR target/66824
1032 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
1033 (TARGET_HARD_DF_REGS): Ditto.
1034 (TARGET_HARD_XF_REGS): Ditto.
1035 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
1036 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
1037 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
1038 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
1039 (*movsf_internal): Add alternatives 16 and 17. Enable
1040 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
1041
1042 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
1043
1044 PR rtl-optimization/66891
1045 * calls.c (expand_call): Wrap precompute_register_parameters with
1046 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
1047
1048 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
1049
1050 * config/nvptx/mkoffload.c (process): Constify mapping variables.
1051 Define target data struct and initialize it.
1052
1053 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
1054
1055 PR rtl-optimization/66626
1056 * ira.h (emit-rtl.h): Include.
1057 (non_spilled_static_chain_regno_p): New.
1058 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
1059 unless it is non spilled static chain pseudo.
1060 (assign_hard_rego): Spill memory profitable allocno unless it is
1061 non spilled static chain pseudo.
1062 (allocno_spill_priority_compare): Put non spilled static chain
1063 pseudo at the end of sorted array.
1064 (improve_allocation): Do nothing if we have static chain and
1065 non-local goto.
1066 (allocno__priority_compare_func): Put non spilled static chain
1067 pseudo at the beginning of sorted array.
1068 (move_spill_restore): Ignore non spilled static chain pseudo.
1069 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
1070 to non spilled static chain pseudo.
1071 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
1072 pseudo at the beginning of sorted array.
1073 (spill_for): Spill non spilled static chain pseudo last.
1074 * lra-constraints.c (lra_constraints): Remove static chain pseudo
1075 check for equivalence.
1076
1077 2015-07-16 Martin Liska <mliska@suse.cz>
1078
1079 PR ipa/66896.
1080 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
1081 dst_ctx if it does not exist.
1082
1083 2015-07-16 Martin Liska <mliska@suse.cz>
1084
1085 * hash-set.h (remove): New function.
1086 (iterator): New iteration class for hash_set.
1087
1088 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1089
1090 * genattrtab.c (make_canonical): Add a file_location parameter.
1091 Use fatal_at rather than fatal.
1092 (get_attr_value): Likewise. Update call to make_canonical.
1093 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
1094 (make_internal_attr): Update calls accordingly.
1095
1096 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1097
1098 * read-md.h (message_with_line, error_with_line): Delete.
1099 * read-md.c (message_with_line, error_with_line): Delete.
1100 * gensupport.h: Include read-md.h.
1101 (md_rtx_info): New structure.
1102 (read_md_rtx): Use it. Return a bool success value.
1103 * gensupport.c (read_md_rtx): Likewise.
1104 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
1105 (main): Update after interface changes.
1106 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
1107 (main): Update after interface changes.
1108 * genattrtab.c (insn_code_number): Delete.
1109 (optimize_attrs): Add a max_insn_code parameter and use it instead
1110 of insn_code_number.
1111 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
1112 Use *_at rather than *_with_line functions.
1113 (gen_insn): Likewise.
1114 (gen_delay): Likewise.
1115 (gen_insn_reserv): Likewise.
1116 (gen_bypass): Take an md_rtx_info rather than an rtx.
1117 (main): Update after interface changes. Use a local max_insn_code
1118 variable instead of insn_code_number.
1119 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
1120 an rtx. Use fatal_at rather than fatal.
1121 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
1122 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
1123 (gen_absence_set, gen_final_absence_set, gen_automaton)
1124 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
1125 (main): Update after interface changes.
1126 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
1127 and code number.
1128 (main): Update after interface changes.
1129 * genconditions.c (main): Use new read_md_rtx interface.
1130 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
1131 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
1132 (main): Update after interface changes.
1133 * genemit.c (insn_code_number, insn_index_number): Delete.
1134 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1135 Use fatal_at rather than fatal.
1136 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
1137 rather than fatal.
1138 (gen_split): Likewise.
1139 (main): Update after interface changes.
1140 * genextract.c (line_no): Delete.
1141 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1142 Update call to walk_rtx.
1143 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
1144 rather than message_with_line.
1145 (walk_rtx): Add an md_rtx_info argument. Update call to
1146 VEC_safe_set_locstr.
1147 (main): Update after interface changes.
1148 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
1149 and lineno. Use error_at rather than separate message_with_line
1150 calls and have_error assignments.
1151 (main): Update after interface changes.
1152 * genmddump.c (main): Use new read_md_rtx interface.
1153 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
1154 (main): Update after interface changes.
1155 * genoutput.c (next_code_number): Delete.
1156 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1157 (gen_peephole, gen_expand, gen_split): Likewise.
1158 (note_constraint): Likewise. Use *_at rather than *_with_line
1159 functions.
1160 (main): Update after interface changes.
1161 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
1162 rtx and lineno.
1163 (main): Update after interface changes.
1164 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
1165 than an rtx and lineno.
1166 (process_define_constraint): Likewise.
1167 (process_define_register_constraint): Likewise.
1168 (main): Update after interface changes.
1169 * genrecog.c (next_insn_code, pattern_lineno): Delete.
1170 (validate_pattern): Replace top-level rtx with an md_rtx_info.
1171 Use *_at rather than *_with_line functions.
1172 (match_pattern_2): Likewise.
1173 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
1174 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
1175 Use *_at rather than *_with_line functions.
1176 * gentarget-def.c (add_insn): New function.
1177 (main): Use it. Use new read_md_rtx interface.
1178
1179 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1180
1181 * gensupport.h (compute_test_codes): Take a file_location rather
1182 than a line number.
1183 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
1184 rather than *_with_line functions.
1185 (process_define_predicate): Update call to compute_test_codes.
1186 * genpreds.c (validate_exp): Take a file_location rather than a
1187 line number. Use *_at functions rather than *_with_line functions.
1188 (process_define_predicate): Update call to validate_exp.
1189 (constraint_data): Replace lineno field with a file_location.
1190 (add_constraint): Take a file_location rather than a line number.
1191 Use *_at functions rather than *_with_line functions. Fix error
1192 message for address constraints. Update after changes to
1193 validate_exp, constraint_data and compute_test_codes.
1194 (process_define_constraint): Update accordingly.
1195 (process_define_register_constraint): Likewise.
1196
1197 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1198
1199 * genoutput.c (data): Use a file_location to record the source
1200 position.
1201 (nothing): Delete.
1202 (idata, idata_end): Remove initialization.
1203 (constraint_data): Replace lineno with a file_location.
1204 (output_insn_data): Update after changes to data.
1205 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
1206 (scan_operands): Likewise, using *_at rather than *_with_line
1207 functions.
1208 (process_template): Likewise.
1209 (validate_insn_alternatives): Likewise.
1210 (validate_insn_operands): Likewise.
1211 (validate_optab_operands): Likewise.
1212 (init_insn_for_nothing): Initialize idata and idata_end.
1213 (note_constraint): Update after changes to constraint_data,
1214 using at rather than with_line functions.
1215 (mdep_constraint_len): Take a file_location rather than a
1216 line number. Use at rather than with_line functions.
1217
1218 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1219
1220 * read-md.h (fatal_at): Declare.
1221 * read-md.c (fatal_at): New function.
1222 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
1223 to record the source position.
1224 (check_attr_test): Take a file_location instead of a line number.
1225 Use fatal_at instead of fatal.
1226 (check_attr_value): Update after above changes, using "at"
1227 rather than "with_line" reporting functions.
1228 (convert_set_attr_alternative): Likewise.
1229 (gen_attr): Likewise.
1230 (check_defs): Likewise. Don't assign to read_md_filename.
1231 (gen_insn): Update initialization after above changes.
1232 (gen_delay): Likewise.
1233 (write_insn_cases): Print the filename for a define_peephole.
1234 (gen_insn_reserv): Take a line number as argument and update
1235 the call to check_attr_test.
1236 (main): Pass a line number to gen_insn_reserv.
1237
1238 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1239
1240 * read-md.h (file_location): New structure.
1241 (directive_handler_t): Take a file_location rather than a line number.
1242 (message_at, error_at): Declare.
1243 (read_skip_construct): Delete.
1244 * read-md.c (message_with_line_1): Replace with...
1245 (message_at_1): ...this new function.
1246 (message_at, error_at): New functions.
1247 (message_with_line, error_with_line): Update to use message_at_1.
1248 (handle_enum): Take a file_location rather than a line number
1249 and use error_at for error reporting.
1250 (handle_include): Likewise.
1251 (read_skip_construct): Likewise. Make static.
1252 (handle_file): Update after above changes. Pass a file_location
1253 rather than a line number to handle_directive.
1254 * gensupport.c (queue_elem): Replace separate filename and lineno
1255 with a file_location.
1256 (queue_pattern): Replace filename and lineno arguments with a
1257 file_location. Update after change to queue_elem.
1258 (process_define_predicate): Replace lineno argument with a
1259 file_location and use error_at for error reporting. Update
1260 after above changes.
1261 (process_rtx): Likewise.
1262 (subst_pattern_match): Likewise.
1263 (get_alternatives_number): Likewise.
1264 (alter_predicate_for_insn): Likewise.
1265 (rtx_handle_directive): Likewise.
1266 (is_predicable): Update after above changes, using error_at rather
1267 than error_with_line.
1268 (has_subst_attribute): Likewise.
1269 (identify_predicable_attribute): Likewise.
1270 (alter_attrs_for_subst_insn): Likewise.
1271 (process_one_cond_exec): Likewise.
1272 (process_substs_on_one_elem): Likewise.
1273 (process_define_subst): Likewise.
1274 (check_define_attr_duplicates): Likewise.
1275 (read_md_rtx): Update after change to queue_elem.
1276
1277 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1278
1279 * genoutput.c (next_index_number): Delete.
1280 (data): Remove index_number.
1281 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1282 (main): Remove manipulation of next_index_number.
1283
1284 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1285
1286 * genattrtab.c (check_attr_value): Remove handling of null attrs.
1287 (make_canonical): Likewise.
1288
1289 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
1290
1291 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1292 instead of adjust_address_nv.
1293 (restore_stack_nonlocal): Likewise.
1294 (nonlocal_goto): Likewise.
1295
1296 2015-07-16 Tom de Vries <tom@codesourcery.com>
1297
1298 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1299 not have a corresponding loop header phi.
1300
1301 2015-07-16 Tom de Vries <tom@codesourcery.com>
1302
1303 * tree-parloops.c (create_loads_for_reductions): Handle case that
1304 reduction is unused.
1305
1306 2015-07-16 Richard Biener <rguenther@suse.de>
1307
1308 PR tree-optimization/66894
1309 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1310 about deriving NE_EXPR from truncated values.
1311
1312 2015-07-16 Martin Liska <mliska@suse.cz>
1313
1314 * alloc-pool.h
1315 (object_allocator): Add new class.
1316 (pool_allocator::initialize): Use the underlying class.
1317 (pool_allocator::allocate): Likewise.
1318 (pool_allocator::remove): Likewise.
1319 (operator new): A new generic allocator.
1320 * asan.c (struct asan_mem_ref): Remove unused members.
1321 (asan_mem_ref_new): Replace new operator with
1322 object_allocator::allocate.
1323 (free_mem_ref_resources): Change deallocation.
1324 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1325 with object_allocator.
1326 * config/sh/sh.c (add_constant): Replace new operator with
1327 object_allocator::allocate.
1328 (sh_reorg): Change call to a release method.
1329 * cselib.c (struct elt_list): Remove unused members.
1330 (new_elt_list): Replace new operator with
1331 object_allocator::allocate.
1332 (new_elt_loc_list): Likewise.
1333 (new_cselib_val): Likewise.
1334 (unchain_one_elt_list): Change delete operator with remove method.
1335 (unchain_one_elt_loc_list): Likewise.
1336 (unchain_one_value): Likewise.
1337 (cselib_finish): Release newly added static allocators.
1338 * cselib.h (struct cselib_val): Remove unused members.
1339 (struct elt_loc_list): Likewise.
1340 * df-problems.c (df_chain_alloc): Replace pool_allocator with
1341 object_allocator.
1342 * df-scan.c (struct df_scan_problem_data): Likewise.
1343 (df_scan_alloc): Likewise.
1344 * df.h (struct dataflow): Likewise.
1345 * dse.c (struct read_info_type): Likewise.
1346 (struct insn_info_type): Likewise.
1347 (struct dse_bb_info_type): Likewise.
1348 (struct group_info): Likewise.
1349 (struct deferred_change): Likewise.
1350 (get_group_info): Likewise.
1351 (delete_dead_store_insn): Likewise.
1352 (free_read_records): Likewise.
1353 (replace_read): Likewise.
1354 (check_mem_read_rtx): Likewise.
1355 (scan_insn): Likewise.
1356 (dse_step1): Likewise.
1357 (dse_step7): Likewise.
1358 * et-forest.c (struct et_occ): Remove unused members.
1359 (et_new_occ): Use allocate instead of new operator.
1360 (et_new_tree): Likewise.
1361 (et_free_tree): Call release method explicitly.
1362 (et_free_tree_force): Likewise.
1363 (et_free_pools): Likewise.
1364 (et_split): Use remove instead of delete operator.
1365 * et-forest.h (struct et_node): Remove unused members.
1366 * ipa-cp.c: Change pool_allocator to object_allocator.
1367 * ipa-inline-analysis.c: Likewise.
1368 * ipa-profile.c: Likewise.
1369 * ipa-prop.c: Likewise.
1370 * ipa-prop.h: Likewise.
1371 * ira-build.c (initiate_cost_vectors): Cast return value.
1372 (ira_allocate_cost_vector): Likewise.
1373 * ira-color.c (struct update_cost_record): Remove unused members.
1374 * lra-int.h (struct lra_live_range): Likewise.
1375 (struct lra_copy): Likewise.
1376 (struct lra_insn_reg): Likewise.
1377 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1378 * lra.c (new_insn_reg): Replace new operator with allocate method.
1379 (free_insn_regs): Same for operator delete.
1380 (finish_insn_regs): Release new static allocator.
1381 (finish_insn_recog_data): Likewise.
1382 (lra_free_copies): Replace delete operator with remove method.
1383 (lra_create_copy): Replace operator new with allocate method.
1384 (invalidate_insn_data_regno_info): Same for remove method.
1385 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1386 (free_debug_insn_changes): Replace delete operator with remove method.
1387 (replace_oldest_value_reg): Replace operator new with allocate method.
1388 (pass_cprop_hardreg::execute): Release new static variable.
1389 * sched-deps.c (sched_deps_init): Change pool_allocator to
1390 object_allocator.
1391 * sel-sched-ir.c: Likewise.
1392 * sel-sched-ir.h: Likewise.
1393 * stmt.c (expand_case): Likewise.
1394 (expand_sjlj_dispatch_table): Likewise.
1395 * tree-sra.c (struct access): Remove unused members.
1396 (struct assign_link): Likewise.
1397 (sra_deinitialize): Release newly added static pools.
1398 (create_access_1):Replace operator new with allocate method.
1399 (build_accesses_from_assign): Likewise.
1400 (create_artificial_child_access): Likewise.
1401 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1402 pool_allocator to object_allocator.
1403 * tree-ssa-pre.c: Likewise.
1404 * tree-ssa-reassoc.c: Likewise.
1405 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1406 * tree-ssa-strlen.c: Likewise.
1407 * tree-ssa-structalias.c: Likewise.
1408 * var-tracking.c (onepart_pool_allocate): New function.
1409 (unshare_variable): Use the newly added function.
1410 (variable_merge_over_cur): Likewise.
1411 (variable_from_dropped): Likewise.
1412 (variable_was_changed): Likewise.
1413 (set_slot_part): Likewise.
1414 (emit_notes_for_differences_1): Likewise.
1415 (vt_finalize): Release newly added static pools.
1416
1417 2015-07-16 Martin Jambor <mjambor@suse.cz>
1418
1419 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
1420 all uses. Fix two typos in its general comment.
1421 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
1422
1423 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
1424
1425 * config/i386/linux-common.h (LINK_MPX): New.
1426 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1427 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1428 indicating '-z bndplt' support by linker.
1429 * configure: Regenerate.
1430 * config.in: Regenerate.
1431
1432 2015-07-16 Richard Biener <rguenther@suse.de>
1433
1434 * fold-const.c (fold_widened_comparison): Remove.
1435 (fold_sign_changed_comparison): Likewise.
1436 (fold_comparison): Move widened and sign-changed comparison
1437 simplification ...
1438 * match.pd: ... to patterns here.
1439 * generic-match-head.c: Include target.h.
1440 * gimple-match-head.c: Likewise.
1441
1442 2015-07-16 Richard Biener <rguenther@suse.de>
1443
1444 * tree-ssa-dom.c (dom_valueize): New function.
1445 (record_temporary_equivalences): Also record equivalences
1446 for dominating stmts that have uses of equivalences we are
1447 about to record.
1448
1449 2015-07-16 Bin Cheng <bin.cheng@arm.com>
1450
1451 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1452 add_autoinc_candidates.
1453 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1454 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1455 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1456 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1457 Call new function.
1458 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1459 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1460 Remove parameter struct iv*. Call add_autoinc_candidates here.
1461 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1462 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1463 Call new function.
1464 (find_iv_candidates): Call new functions.
1465
1466 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
1467
1468 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1469 uninitialized-variable warning.
1470
1471 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
1472
1473 PR target/65249
1474 * config/sh/sh.md (movdi): Split simple reg move to two movsi
1475 when the destination is R0.
1476
1477 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
1478
1479 PR target/66866
1480 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1481 * config/i386/i386.c (ix86_expand_pextr): New function.
1482 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
1483 for non-lowpart subregs.
1484 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1485 (insv<mode>): Use SWI248 mode iterator.
1486 (insv<mode>_1): Ditto.
1487
1488 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1489 Sebastian Pop <s.pop@samsung.com>
1490
1491 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1492 iterator to use_stmt.
1493
1494 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1495 Sebastian Pop <s.pop@samsung.com>
1496
1497 * graphite-scop-detection.c (build_scops_1): Discard scops for
1498 which entry==exit.
1499
1500 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1501 Sebastian Pop <s.pop@samsung.com>
1502
1503 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1504 case of a return statement in scop.
1505
1506 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1507 Sebastian Pop <s.pop@samsung.com>
1508
1509 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1510 INTEGER_TYPE parameters.
1511 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1512 VECTOR_CST in scan_tree_for_params.
1513 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1514
1515 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1516
1517 * gimple-pretty-print.h: Don't include pretty-print.h.
1518 * tree-streamer.h: Don't include lto-streamer.h.
1519 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1520 * gimple-streamer-in.c: Remove redundant includes.
1521 * gimple-streamer-out.c: Likewise.
1522 * ipa-devirt.c: Likewise.
1523 * ipa-icf.c: Likewise.
1524 * ipa-inline-analysis.c: Likewise.
1525 * ipa-polymorphic-call.c: Likewise.
1526 * ipa-profile.c: Likewise.
1527 * ipa-prop.c: Likewise.
1528 * ipa-pure-const.c: Likewise.
1529 * lto-cgraph.c: Likewise.
1530 * lto-streamer-in.c: Likewise.
1531 * lto-streamer-out.c: Likewise.
1532 * lto-streamer.c: Likewise.
1533 * tree-streamer-in.c: Likewise.
1534 * tree-streamer-out.c: Likewise.
1535 * tree-streamer.c: Likewise.
1536
1537 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1538
1539 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1540 include input.h.
1541 * opts.c: Remove multiline #include comment.
1542
1543 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
1544
1545 * config/nvptx/mkoffload.c (process): Add C++ protection to
1546 emitted code.
1547
1548 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1549
1550 PR target/66854
1551 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1552 null before IEEE 128-bit floating point support patch.
1553
1554 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1555
1556 * simplify-rtx.c (simplify_ternary_operation): Add simplification
1557 for (!c) != {0,...,0} ? a : b for vector modes.
1558
1559 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1560 Martin Jambor <mjambor@suse.cz>
1561
1562 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1563 struct func_body_info* instead of struct ipa_node_params*, expecting
1564 fbi->info to be filled in. Replace throughout. Adjust call to
1565 ipa_load_from_parm_agg.
1566 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1567 instead of struct ipa_node_params*. Adjust calls to other functions
1568 so that they pass either fbi or fbi->info.
1569 (set_switch_stmt_execution_predicate): Likewise.
1570 (will_be_nonconstant_predicate): Likewise.
1571 (compute_bb_predicates): Likewise.
1572 (estimate_function_body_sizes): Move asserts earlier. Fill in
1573 struct func_body_info, replace parms_info with fbi.info. Adjust
1574 calls to functions that now accept struct func_body_info.
1575 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1576 (struct func_body_info): Likewise.
1577 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1578 remove static. Adjust callers.
1579 (ipa_load_from_parm_agg): Remove.
1580 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1581 (func_body_info): Likewise.
1582 (ipa_load_from_parm_agg): Adjust prototype.
1583
1584 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1585
1586 * gensupport.c (rtx_handle_directive): Adjust.
1587 * read-rtl.c (apply_iterators): Take vector to add rtxs to
1588 instead of expr list rtx.
1589 (add_define_attr_for_define_subst): Likewise.
1590 (add_define_subst_attr): Likewise.
1591 (read_subst_mapping): Likewise.
1592 (read_rtx): Likewise.
1593 * rtl.h (read_rtx): Adjust.
1594
1595 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1596
1597 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1598
1599 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1600
1601 PR target/58066
1602 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1603 (*tls_local_dynamic_base_64_<mode>): Ditto.
1604 (*tls_local_dynamic_base_64_largepic): Ditto.
1605 (tls_global_dynamic_64_<mode>): Update expander pattern.
1606 (tls_local_dynamic_base_64_<mode>): Ditto.
1607
1608 2015-07-15 Richard Biener <rguenther@suse.de>
1609
1610 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1611 and bool_var == 1 -> bool_var simplifications ...
1612 * match.pd: ... to patterns here. Factor out negate_expr_p
1613 cases from the A - B -> A + (-B) patterns as negate_expr_p
1614 predicate and add a -(A + B) -> (-B) - A pattern.
1615
1616 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1617
1618 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1619
1620 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
1621 Robert Suchanek <robert.suchanek@imgtec.com>
1622
1623 * config/mips/mips.c (mips_int_mask): New enum.
1624 (mips_shadow_set): Likewise.
1625 (int_mask): New variable.
1626 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1627 (machine_function): Add int_mask and use_shadow_register_set.
1628 (mips_attribute_table): Add attribute handlers for interrupt and
1629 use_shadow_register_set.
1630 (mips_interrupt_mask): New static function.
1631 (mips_handle_interrupt_attr): Likewise.
1632 (mips_handle_use_shadow_register_set_attr): Likewise.
1633 (mips_use_shadow_register_set): Change return type to enum
1634 mips_shadow_set. Add argument handling for use_shadow_register_set
1635 attribute.
1636 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1637 compare with mips_shadow_set enum.
1638 (mips_compute_frame_info): Add interrupt mask and
1639 use_shadow_register_set to per-function information structure.
1640 Add a stack slot for EPC unconditionally.
1641 (mips_expand_prologue): Compare use_shadow_register_set value
1642 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
1643 masked interrupt register but in EIC mode use K0 and save Cause in K0.
1644 EPC saved and restored unconditionally. Use PMODE_INSN macro when
1645 copying the stack pointer from the shadow register set.
1646 * config/mips/mips.h (SR_IM0): New define.
1647 * config/mips/mips.md (mips_rdpgpr): Rename to...
1648 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
1649 * doc/extend.texi (Declaring Attributes of Functions): Document
1650 optional arguments for interrupt and use_shadow_register_set
1651 attributes.
1652
1653 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1654
1655 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1656 interrupt attribute.
1657 (mips_expand_prologue): Disable the floating point unit in an ISR.
1658 * config/mips/mips.h (SR_COP1): New define.
1659
1660 2015-07-15 Richard Biener <rguenther@suse.de>
1661
1662 * genmatch.c (parser::peek, parser::peek_ident): Add argument
1663 to tell how many tokens to peek ahead (default 1).
1664 (parser::eat_token, parser::eat_ident): Return token consumed.
1665 (parser::parse_result): Parse new switch statement.
1666 * match.pd: Use case statements where appropriate.
1667
1668 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1669
1670 PR rtl-optimization/58066
1671 * calls.c (expand_call): Precompute register parameters before stack
1672 alignment is performed.
1673
1674 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1675
1676 PR rtl-optimization/66838
1677 * postreload.c (reload_cse_move2add): Also process
1678 CALL_INSN_FUNCTION_USAGE when resetting information of
1679 call-clobbered registers.
1680
1681 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1682 Cesar Philippidis <cesar@codesourcery.com>
1683 Chung-Lin Tang <cltang@codesourcery.com>
1684
1685 * config/nios2/constraints.md (U, v): New constraints.
1686 * config/nios2/predicates.md (rdprs_dcache_operand): New.
1687 (ldstex_memory_operand): New.
1688 * config/nios2/sync.md: New file.
1689 * config/nios2/nios2.md (unspecv): Add new builtin function
1690 UNSPECV codes.
1691 (rdprs, flushd, flushda, wrpie, eni): New patterns.
1692 (top-level): Include sync.md.
1693 * config/nios2/nios2.c (N2_FTYPES): Add function types for
1694 new builtins.
1695 (N2_BUILTINS): Add arch field setting, add new builtins.
1696 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1697 for arch field.
1698 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1699 Also handle ldex/stex/ldsex/stsex builtins.
1700 (nios2_expand_rdprs_builtin): New function.
1701 (nios2_expand_cache_builtin): New function.
1702 (nios2_expand_wrpie_builtin): New function.
1703 (nios2_expand_eni_builtin): New function.
1704 (nios2_expand_builtin): Add arch field handling and new builtin
1705 cases.
1706 * doc/extend.texi (Altera Nios II Built-in Functions): Document
1707 new builtins.
1708 * doc/md.texi (Machine Constraints): Document U and v constraints.
1709
1710 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1711 Cesar Philippidis <cesar@codesourcery.com>
1712 Chung-Lin Tang <cltang@codesourcery.com>
1713
1714 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1715 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1716 callee_save_reg_size and uses_anonymous_args fields.
1717 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1718 (nios2_create_cfa_notes): New function.
1719 (nios2_adjust_stack): New function for adjusting stack.
1720 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1721 Use nios2_adjust_stack.
1722 (nios2_expand_epilogue): Likewise.
1723 (nios2_expand_return): New function.
1724 (nios2_can_use_return_insn): Update for CDX pop.n usage.
1725 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1726 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1727 * config/nios2/nios2.md (return): Use nios2_expand_return.
1728
1729 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1730 Cesar Philippidis <cesar@codesourcery.com>
1731 Chung-Lin Tang <cltang@codesourcery.com>
1732
1733 * config/nios2/predicates.md (pop_operation): New.
1734 (ldwm_operation, stwm_operation): New.
1735 (nios2_hard_register_operand): New.
1736 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1737 (ldstwm_operation_p): Declare.
1738 (gen_ldstwm_peep): Declare.
1739 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1740 (base_reg_adjustment_p): New.
1741 (pop_operation_p): New.
1742 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1743 (nios2_ldstwm_regset_p): New.
1744 (ldstwm_operation_p): New.
1745 (gen_ldst): New.
1746 (nios2_ldst_parallel): New.
1747 (struct ldswm_operand): Declare.
1748 (compare_ldstwm_operands): New.
1749 (can_use_cdx_ldstw): New.
1750 (gen_ldstwm_peep): New.
1751 * config/nios2/nios2-ldstwm.sml: New.
1752 * config/nios2/nios2.md: Include ldstwm.md.
1753 * config/nios2/ldstwm.md: Generated.
1754
1755 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1756 Cesar Philippidis <cesar@codesourcery.com>
1757 Chung-Lin Tang <cltang@codesourcery.com>
1758
1759 * config/nios2/nios2.h (LABEL_ALIGN): Define.
1760 (REG_ALLOC_ORDER): Define.
1761 (ADJUST_REG_ALLOC_ORDER): Define.
1762 (HONOR_REG_ALLOC_ORDER): Define.
1763 (CDX_REG_P): Define.
1764 (ANDCLEAR_INT): Define.
1765 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1766 (nios2_label_align): Declare.
1767 (nios2_cdx_narrow_form_p): Declare.
1768 (nios2_adjust_reg_alloc_order): Declare.
1769 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1770 operation.
1771 (nios2_large_unspec_reloc_p): New function, split from...
1772 (nios2_legitimate_pic_operand_p): ...here.
1773 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1774 (nios2_print_operand_punct_valid_p): New.
1775 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
1776 (split_mem_address): New.
1777 (split_alu_insn): New.
1778 (cdxreg): New.
1779 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1780 (enum nios2_add_insn_kind): New.
1781 (nios2_add_insn_names, nios2_add_insn_narrow): New.
1782 (nios2_add_insn_classify): New.
1783 (nios2_add_insn_asm): New.
1784 (nios2_cdx_narrow_form_p): New.
1785 (label_align, min_labelno, max_labelno): New.
1786 (nios2_reorg): New.
1787 (nios2_label_align): New.
1788 (nios2_adjust_reg_alloc_order): New.
1789 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1790 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1791 * config/nios2/constraints.md (P): New constraint.
1792 * config/nios2/predicates.md (const_and_operand): New.
1793 (and_operand): New.
1794 (stack_memory_operand): New.
1795 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1796 (length): Update to use nios2_cdx_narrow_form_p().
1797 (type): Add new insn type values.
1798 (control, alu, st, ld, shift): Update insn reservations with
1799 new insn type values.
1800 (*high, *lo_sum): Define new insn patterns for constant generation.
1801 (movqi_internal, movhi_internal, movsi_internal): Reduce
1802 alternatives, update asm template to handle CDX variants, update
1803 type attributes.
1804 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1805 template, update type attributes.
1806 (extendhisi2, extendqi<mode>2): Likewise.
1807 (addsi3): Change to use function for asm string.
1808 (subsi3): Add CDX notation to asm template, update type attributes.
1809 (negsi3, one_cmplsi3): Likewise.
1810 (andsi3): New pattern, specialized from logical patterns.
1811 (<code>si3): Remove and case, combine alternatives, update asm
1812 template.
1813 (<shift_op>si3): Add CDX notation, update type attributes.
1814 (rotrsi3): Update type attribute.
1815 (*merge, extzv, insv): New insn patterns.
1816 (return): Change to define_expand.
1817 (simple_return): Add CDX notation, update type attributes.
1818 (indirect_jump): Add CDX notation.
1819 (jump): Update asm cases, update length attribute expression.
1820 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1821 (nios2_cbranch): Update asm cases and length attribute expression
1822 to handle CDX variants.
1823 (nios2_cmp<code>): Update asm template.
1824 (nop): Add CDX notation, update type attributes.
1825 (trap): Add CDX notation.
1826 (ctrapsi4): Update asm cases and length attribute expression to
1827 handle CDX variant.
1828 * doc/md.texi (Machine Constraints): Document P constraint.
1829
1830 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1831 Cesar Philippidis <cesar@codesourcery.com>
1832 Chung-Lin Tang <cltang@codesourcery.com>
1833
1834 * config/nios2/nios2.h (SMALL_INT12): New macro.
1835 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1836 (nios2_valid_addr_expr_p): Use it.
1837 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1838 with implicit "io" instructions on R2.
1839 * config/nios2/constraints.md (w): New constraint.
1840 * config/nios2/predicates.md (ldstio_memory_operand): New.
1841 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1842 operand predicate and constraint.
1843 (ld<bh>io_signed, st<bhw>io>): Likewise.
1844 * doc/md.texi (Machine Constraints): Document w constraint.
1845
1846 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1847 Cesar Philippidis <cesar@codesourcery.com>
1848 Chung-Lin Tang <cltang@codesourcery.com>
1849
1850 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1851 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1852 Nios II architecture level.
1853 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1854 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1855 (OPTION_DEFAULT_SPECS): Define.
1856 (ASM_SPEC): Add -march= spec strings.
1857 * config/nios2/nios2.c (nios2_option_override): Check for
1858 conflicts involving new options.
1859 * config.gcc (nios2*-*-*): Support --with-arch=.
1860 * doc/invoke.texi (Option Summary, Nios II Options): Document
1861 -march=, -mbmx, and -mcdx.
1862
1863 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
1864
1865 PR rtl-optimization/66626
1866 * lra-constraints.c (lra_constraints): Prevent equivalence
1867 substitution for static chain pseudo in functions with nonlocal
1868 goto.
1869
1870 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1871
1872 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1873 (nios2_emit_stack_limit_check): Add size parameter. Handle
1874 -fstack-limit-symbol as well as -fstack-limit-register.
1875 (nios2_expand_prologue): Emit only a single stack limit check,
1876 even if multiple stack adjustments are required.
1877 (nios2_option_override): Diagnose unsupported combination of -fpic
1878 and -stack-limit-symbol.
1879
1880 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
1881
1882 * Makefile.in (top_srcdir): New.
1883 * configure.ac: Use AM_ZLIB.
1884 * configure: Regeneated.
1885
1886 2015-07-14 Matthias Klose <doko@ubuntu.com>
1887
1888 PR target/66840
1889 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1890
1891 2015-07-14 Richard Biener <rguenther@suse.de>
1892
1893 PR tree-optimization/66863
1894 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1895 what we record for conversion use stmt lhs inequalities.
1896
1897 2015-07-14 Richard Biener <rguenther@suse.de>
1898
1899 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1900 (decision_tree::gen_gimple): Likewise.
1901
1902 2015-07-14 Tom de Vries <tom@codesourcery.com>
1903
1904 * gcc.c (greater_than_spec_func): Declare forward.
1905 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1906 -ftree-parallelize-loops={0,1}.
1907 (static_spec_functions): Add greater_than_spec_func function with name
1908 "gt".
1909 (greater_than_spec_func): New function.
1910
1911 2015-07-14 Richard Biener <rguenther@suse.de>
1912
1913 * tree-ssa-dom.c (record_temporary_equivalences): Merge
1914 wideing type conversion case from record_equivalences_from_incoming_edge
1915 and use record_equality to record equivalences.
1916 (record_equivalences_from_incoming_edge): Call
1917 record_temporary_equivalences.
1918
1919 2015-07-14 Richard Biener <rguenther@suse.de>
1920
1921 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1922 (struct if_expr): New.
1923 (struct with_expr): Likewise.
1924 (is_a_helper): Add helpers for if_expr and with_expr.
1925 (struct simplify): Add simplify_kind enum and member. Remove
1926 ifexpr_vec member.
1927 (simplify::simplify): Adjust.
1928 (lower_commutative): Adjust.
1929 (lower_opt_convert): Likewise.
1930 (lower_cond): Likewise.
1931 (replace_id): Handle with_expr and if_expr.
1932 (lower_for): Adjust.
1933 (dt_simplify::gen_1): New recursive worker, split out from ...
1934 (dt_simplify::gen): ... here. Deal with if and with expansion
1935 recursively.
1936 (capture_info::capture_info): Take context argument
1937 (capture_info::walk_result): Only analyze specific result.
1938 (parser::parse_result): New function.
1939 (parser::parse_simplify): Adjust to parse ifs with then end
1940 else case.
1941 (parser::parse_if): Simplify.
1942 (parser::parse_pattern): Pass down simplify kind.
1943 * match.pd: Convert if structure to new syntax.
1944
1945 2015-07-13 Marek Polacek <polacek@redhat.com>
1946
1947 * rtl.c (rtx_equal_p_cb): Fix typo.
1948
1949 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
1950
1951 * omega.h: Don't include config.h, don't include params.h again if
1952 omega.h has already been included.
1953 * graphite-poly.h: Include sese.h.
1954 * graphite.c: Don't include sese.h, remove needless includes and
1955 minimize includes outside #ifdef HAVE_isl block.
1956 * graphite-blocking.c: Don't include sese.h, remove needless includes,
1957 and wrap entire file in #ifdef HAVE_isl
1958 * graphite-dependences.c: Likewise.
1959 * graphite-interchange.c: Likewise.
1960 * graphite-isl-ast-to-gimple.c: Likewise.
1961 * graphite-optimize-isl.c: Likewise.
1962 * graphite-poly.c: Likewise.
1963 * graphite-scop-detection.c: Likewise.
1964 * graphite-sese-to-poly.c: Likewise.
1965
1966 2015-07-13 Tom de Vries <tom@codesourcery.com>
1967
1968 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1969
1970 2015-07-13 Renlin Li <renlin.li@arm.com>
1971
1972 PR rtl/66556
1973 * simplify-rtx.c (simplify_const_relational_operation): Add
1974 side_effects_p checks.
1975
1976 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1977
1978 * bitmap.h: Fix double word typos.
1979 * builtins.c: Same.
1980 * calls.c: Same.
1981 * cfgloopmanip.c: Same.
1982 * cgraph.c: Same.
1983 * cgraph.h: Same.
1984 * cgraphclones.c: Same.
1985 * combine.c: Same.
1986 * config/aarch64/aarch64-protos.h: Same.
1987 * config/aarch64/aarch64.c: Same.
1988 * config/aarch64/aarch64.md: Same.
1989 * config/arm/arm.md: Same.
1990 * config/arm/arm1020e.md: Same.
1991 * config/arm/arm1026ejs.md: Same.
1992 * config/arm/arm926ejs.md: Same.
1993 * config/arm/fa526.md: Same.
1994 * config/arm/fa606te.md: Same.
1995 * config/arm/fa626te.md: Same.
1996 * config/arm/fa726te.md: Same.
1997 * config/arm/fmp626.md: Same.
1998 * config/darwin.c: Same.
1999 * config/epiphany/epiphany.c: Same.
2000 * config/frv/frv.c: Same.
2001 * config/ft32/ft32.c: Same.
2002 * config/gnu-user.h: Same.
2003 * config/h8300/constraints.md: Same.
2004 * config/i386/i386.c: Same.
2005 * config/i386/i386.md: Same.
2006 * config/iq2000/iq2000.md: Same.
2007 * config/mips/mips.c: Same.
2008 * config/mmix/mmix.md: Same.
2009 * config/moxie/moxie.c: Same.
2010 * config/nds32/nds32.md: Same.
2011 * config/pa/pa.h: Same.
2012 * config/rs6000/aix.h: Same.
2013 * config/rs6000/rs6000.h: Same.
2014 * config/sh/sh.c: Same.
2015 * config/tilegx/tilegx.md: Same.
2016 * config/tilepro/gen-mul-tables.cc: Same.
2017 * cse.c: Same.
2018 * dbxout.c: Same.
2019 * doc/invoke.texi: Same.
2020 * dse.c: Same.
2021 * dwarf2out.c: Same.
2022 * final.c: Same.
2023 * gcc.c: Same.
2024 * genmatch.c: Same.
2025 * gimplify.c: Same.
2026 * hash-table.h: Same.
2027 * internal-fn.c: Same.
2028 * ipa-cp.c: Same.
2029 * ipa-devirt.c: Same.
2030 * ipa-icf.c: Same.
2031 * ipa-icf.h: Same.
2032 * ipa-profile.c: Same.
2033 * ipa-prop.c: Same.
2034 * ipa-prop.h: Same.
2035 * ira.c: Same.
2036 * omp-low.c: Same.
2037 * reg-stack.c: Same.
2038 * regcprop.c: Same.
2039 * reorg.c: Same.
2040 * rtl.h: Same.
2041 * sbitmap.h: Same.
2042 * tree-eh.c: Same.
2043 * tree-inline.c: Same.
2044 * tree-sra.c: Same.
2045 * tree-ssa-dom.c: Same.
2046 * tree-ssa-loop-ivopts.c: Same.
2047 * tree-ssa-structalias.c: Same.
2048 * tree-ssa-tail-merge.c: Same.
2049 * tree-ssa-ter.c: Same.
2050 * tree-ssa-threadupdate.c: Same.
2051 * tree-ssa-uninit.c: Same.
2052 * tree-ssanames.c: Same.
2053 * tree-vect-loop-manip.c: Same.
2054 * tree-vrp.c: Same.
2055 * tree.c: Same.
2056 * valtrack.c: Same.
2057 * vec.h: Same.
2058
2059 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2060
2061 PR middle-end/66726
2062 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
2063 tree_ssa_phiopt_worker): Call it.
2064
2065 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2066
2067 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
2068 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
2069 REG_EQUAL note.
2070
2071 2015-07-11 Marek Polacek <polacek@redhat.com>
2072
2073 PR middle-end/66353
2074 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
2075 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
2076 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
2077 rather than bb_has_abnormal_call_pred.
2078 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
2079 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
2080 rather than bb_has_abnormal_call_pred.
2081
2082 2015-07-10 Anatoly Sokolov <aesok@post.ru>
2083
2084 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2085 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
2086 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2087 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
2088 v850_legitimate_address_p): New functions.
2089 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2090
2091 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
2092
2093 PR target/66819
2094 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
2095 indirect sibcall with register arguments if register available
2096 for argument passing.
2097 (init_cumulative_args): Set cfun->machine->arg_reg_available
2098 to (cum->nregs > 0) or to true if function has a variable
2099 argument list.
2100 (function_arg_advance_32): Set cfun->machine->arg_reg_available
2101 to false if cum->nregs <= 0.
2102 * config/i386/i386.h (machine_function): Add arg_reg_available.
2103
2104 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
2105
2106 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
2107 and gen_higpart instead of gen_rtx_SUBREG.
2108 * config/i386/i386.md
2109 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
2110 (read-modify peephole2): Use gen_lowpart instead of
2111 gen_rtx_SUBREG for operand 5.
2112
2113 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
2114
2115 * config/tilepro/gen-mul-tables.cc (main): Change include list for
2116 generated files.
2117 * config/tilepro/mul-tables.c: Regenerate.
2118 * config/tilegx/mul-tables.c: Regenerate.
2119
2120 2015-07-10 Richard Biener <rguenther@suse.de>
2121
2122 * fold-const.c (distribute_bit_expr): Remove.
2123 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
2124 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
2125 to A & (B | C) and simplifying A << C1 << C2 to ...
2126 * match.pd: ... patterns here.
2127
2128 2015-07-10 Jiong Wang <jiong.wang@arm.com>
2129
2130 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2131 Mark mem as READONLY and NOTRAP for PIC symbol.
2132
2133 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
2134
2135 * gimple-predict.h: New file.
2136 (gimple_predict_predictor, gimple_predict_set_predictor,
2137 gimple_predict_outcome, gimple_predict_set_outcome,
2138 gimple_build_predict): Relocate here.
2139 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
2140 gimple_predict_outcome, gimple_predict_set_outcome): Move to
2141 gimple-predict.h.
2142 * gimple.c (gimple_build_predict): Move to gimple-predict.h
2143 * basic-block.h: Don't include cfghooks.h.
2144 * backend.h: Don't include predict.h.
2145 * cfghooks.h: Include predict.h.
2146 * gimple-pretty-print.c: Include gimple-predict.h.
2147 * gimplify.c: Likwise.
2148 * predict.c: Adjust includes.
2149 * tree-inline.c: Likewise.
2150 * asan.c: Likewise.
2151 * auto-inc-dec.c: Likewise.
2152 * auto-profile.c: Likewise.
2153 * bb-reorder.c: Likewise.
2154 * builtins.c: Likewise.
2155 * caller-save.c: Likewise.
2156 * calls.c: Likewise.
2157 * cfganal.c: Likewise.
2158 * cfgbuild.c: Likewise.
2159 * cfg.c: Likewise.
2160 * cfgcleanup.c: Likewise.
2161 * cfgexpand.c: Likewise.
2162 * cfghooks.c: Likewise.
2163 * cfgloopanal.c: Likewise.
2164 * cfgloop.c: Likewise.
2165 * cfgloopmanip.c: Likewise.
2166 * cfgrtl.c: Likewise.
2167 * cgraph.c: Likewise.
2168 * cgraphunit.c: Likewise.
2169 * combine.c: Likewise.
2170 * cprop.c: Likewise.
2171 * cse.c: Likewise.
2172 * dce.c: Likewise.
2173 * dojump.c: Likewise.
2174 * dse.c: Likewise.
2175 * except.c: Likewise.
2176 * expmed.c: Likewise.
2177 * expr.c: Likewise.
2178 * final.c: Likewise.
2179 * fold-const.c: Likewise.
2180 * function.c: Likewise.
2181 * fwprop.c: Likewise.
2182 * gcc-plugin.h: Likewise.
2183 * gcse.c: Likewise.
2184 * genattrtab.c: Likewise.
2185 * genemit.c: Likewise.
2186 * gengtype.c: Likewise.
2187 * genopinit.c: Likewise.
2188 * genoutput.c: Likewise.
2189 * genpreds.c: Likewise.
2190 * genrecog.c: Likewise.
2191 * gimple-fold.c: Likewise.
2192 * gimple-iterator.c: Likewise.
2193 * gimple-ssa-isolate-paths.c: Likewise.
2194 * gimple-ssa-strength-reduction.c: Likewise.
2195 * graph.c: Likewise.
2196 * graphite-blocking.c: Likewise.
2197 * graphite.c: Likewise.
2198 * graphite-dependences.c: Likewise.
2199 * graphite-interchange.c: Likewise.
2200 * graphite-isl-ast-to-gimple.c: Likewise.
2201 * graphite-optimize-isl.c: Likewise.
2202 * graphite-poly.c: Likewise.
2203 * graphite-scop-detection.c: Likewise.
2204 * graphite-sese-to-poly.c: Likewise.
2205 * haifa-sched.c: Likewise.
2206 * ifcvt.c: Likewise.
2207 * internal-fn.c: Likewise.
2208 * ipa-cp.c: Likewise.
2209 * ipa-profile.c: Likewise.
2210 * ipa-split.c: Likewise.
2211 * ipa-utils.c: Likewise.
2212 * ira-build.c: Likewise.
2213 * ira-color.c: Likewise.
2214 * ira-conflicts.c: Likewise.
2215 * ira-costs.c: Likewise.
2216 * ira-emit.c: Likewise.
2217 * ira-lives.c: Likewise.
2218 * jump.c: Likewise.
2219 * loop-doloop.c: Likewise.
2220 * loop-init.c: Likewise.
2221 * loop-invariant.c: Likewise.
2222 * loop-unroll.c: Likewise.
2223 * lower-subreg.c: Likewise.
2224 * lra-assigns.c: Likewise.
2225 * lra.c: Likewise.
2226 * lra-coalesce.c: Likewise.
2227 * lra-constraints.c: Likewise.
2228 * lra-lives.c: Likewise.
2229 * lto-cgraph.c: Likewise.
2230 * lto-streamer-in.c: Likewise.
2231 * mode-switching.c: Likewise.
2232 * modulo-sched.c: Likewise.
2233 * omp-low.c: Likewise.
2234 * optabs.c: Likewise.
2235 * passes.c: Likewise.
2236 * postreload.c: Likewise.
2237 * postreload-gcse.c: Likewise.
2238 * profile.c: Likewise.
2239 * recog.c: Likewise.
2240 * regstat.c: Likewise.
2241 * reload1.c: Likewise.
2242 * reorg.c: Likewise.
2243 * rtlanal.c: Likewise.
2244 * sched-ebb.c: Likewise.
2245 * sel-sched-ir.c: Likewise.
2246 * sese.c: Likewise.
2247 * shrink-wrap.c: Likewise.
2248 * simplify-rtx.c: Likewise.
2249 * stmt.c: Likewise.
2250 * store-motion.c: Likewise.
2251 * tracer.c: Likewise.
2252 * trans-mem.c: Likewise.
2253 * tree-call-cdce.c: Likewise.
2254 * tree-cfg.c: Likewise.
2255 * tree-cfgcleanup.c: Likewise.
2256 * tree-chkp.c: Likewise.
2257 * tree-complex.c: Likewise.
2258 * tree-eh.c: Likewise.
2259 * tree-if-conv.c: Likewise.
2260 * tree-loop-distribution.c: Likewise.
2261 * tree-outof-ssa.c: Likewise.
2262 * tree-parloops.c: Likewise.
2263 * tree-predcom.c: Likewise.
2264 * tree-pretty-print.c: Likewise.
2265 * tree-profile.c: Likewise.
2266 * tree-sra.c: Likewise.
2267 * tree-ssa.c: Likewise.
2268 * tree-ssa-coalesce.c: Likewise.
2269 * tree-ssa-dce.c: Likewise.
2270 * tree-ssa-dom.c: Likewise.
2271 * tree-ssa-forwprop.c: Likewise.
2272 * tree-ssa-ifcombine.c: Likewise.
2273 * tree-ssa-loop-ch.c: Likewise.
2274 * tree-ssa-loop-im.c: Likewise.
2275 * tree-ssa-loop-ivcanon.c: Likewise.
2276 * tree-ssa-loop-ivopts.c: Likewise.
2277 * tree-ssa-loop-manip.c: Likewise.
2278 * tree-ssa-loop-prefetch.c: Likewise.
2279 * tree-ssa-loop-unswitch.c: Likewise.
2280 * tree-ssa-math-opts.c: Likewise.
2281 * tree-ssa-phiopt.c: Likewise.
2282 * tree-ssa-pre.c: Likewise.
2283 * tree-ssa-reassoc.c: Likewise.
2284 * tree-ssa-sink.c: Likewise.
2285 * tree-ssa-tail-merge.c: Likewise.
2286 * tree-ssa-threadedge.c: Likewise.
2287 * tree-ssa-threadupdate.c: Likewise.
2288 * tree-switch-conversion.c: Likewise.
2289 * tree-tailcall.c: Likewise.
2290 * tree-vect-data-refs.c: Likewise.
2291 * tree-vect-loop.c: Likewise.
2292 * tree-vect-loop-manip.c: Likewise.
2293 * tree-vectorizer.c: Likewise.
2294 * tree-vrp.c: Likewise.
2295 * ubsan.c: Likewise.
2296 * value-prof.c: Likewise.
2297 * varasm.c: Likewise.
2298 * var-tracking.c: Likewise.
2299 * config/aarch64/aarch64-builtins.c: Likewise.
2300 * config/aarch64/aarch64.c: Likewise.
2301 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2302 * config/alpha/alpha.c: Likewise.
2303 * config/arc/arc.c: Likewise.
2304 * config/arm/arm.c: Likewise.
2305 * config/avr/avr.c: Likewise.
2306 * config/bfin/bfin.c: Likewise.
2307 * config/c6x/c6x.c: Likewise.
2308 * config/cr16/cr16.c: Likewise.
2309 * config/cris/cris.c: Likewise.
2310 * config/darwin.c: Likewise.
2311 * config/darwin-c.c: Likewise.
2312 * config/epiphany/epiphany.c: Likewise.
2313 * config/epiphany/mode-switch-use.c: Likewise.
2314 * config/epiphany/resolve-sw-modes.c: Likewise.
2315 * config/fr30/fr30.c: Likewise.
2316 * config/frv/frv.c: Likewise.
2317 * config/ft32/ft32.c: Likewise.
2318 * config/h8300/h8300.c: Likewise.
2319 * config/i386/i386.c: Likewise.
2320 * config/i386/winnt.c: Likewise.
2321 * config/ia64/ia64.c: Likewise.
2322 * config/iq2000/iq2000.c: Likewise.
2323 * config/lm32/lm32.c: Likewise.
2324 * config/m32c/m32c.c: Likewise.
2325 * config/m32r/m32r.c: Likewise.
2326 * config/m68k/m68k.c: Likewise.
2327 * config/mcore/mcore.c: Likewise.
2328 * config/mep/mep.c: Likewise.
2329 * config/microblaze/microblaze.c: Likewise.
2330 * config/mips/mips.c: Likewise.
2331 * config/mmix/mmix.c: Likewise.
2332 * config/mn10300/mn10300.c: Likewise.
2333 * config/moxie/moxie.c: Likewise.
2334 * config/msp430/msp430.c: Likewise.
2335 * config/nds32/nds32.c: Likewise.
2336 * config/nds32/nds32-cost.c: Likewise.
2337 * config/nds32/nds32-fp-as-gp.c: Likewise.
2338 * config/nds32/nds32-intrinsic.c: Likewise.
2339 * config/nds32/nds32-isr.c: Likewise.
2340 * config/nds32/nds32-md-auxiliary.c: Likewise.
2341 * config/nds32/nds32-memory-manipulation.c: Likewise.
2342 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2343 * config/nds32/nds32-predicates.c: Likewise.
2344 * config/nios2/nios2.c: Likewise.
2345 * config/nvptx/nvptx.c: Likewise.
2346 * config/pa/pa.c: Likewise.
2347 * config/pdp11/pdp11.c: Likewise.
2348 * config/rl78/rl78.c: Likewise.
2349 * config/rs6000/rs6000.c: Likewise.
2350 * config/rx/rx.c: Likewise.
2351 * config/s390/s390.c: Likewise.
2352 * config/sh/sh.c: Likewise.
2353 * config/sh/sh-mem.cc: Likewise.
2354 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2355 * config/sh/sh_treg_combine.cc: Likewise.
2356 * config/sparc/sparc.c: Likewise.
2357 * config/spu/spu.c: Likewise.
2358 * config/stormy16/stormy16.c: Likewise.
2359 * config/tilegx/tilegx.c: Likewise.
2360 * config/tilepro/tilepro.c: Likewise.
2361 * config/v850/v850.c: Likewise.
2362 * config/vax/vax.c: Likewise.
2363 * config/visium/visium.c: Likewise.
2364 * config/xtensa/xtensa.c: Likewise.
2365
2366 2015-07-10 Richard Biener <rguenther@suse.de>
2367
2368 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2369 (decision_tree::gen_gimple): Likewise.
2370 (decision_tree::gen_generic): Likewise.
2371
2372 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
2373
2374 PR target/66813
2375 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2376 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2377
2378 2015-07-10 Jakub Jelinek <jakub@redhat.com>
2379
2380 PR middle-end/66820
2381 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2382 or ORT_TASK contexts.
2383 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2384 is non-zero.
2385
2386 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2387
2388 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2389 above function.
2390
2391 2015-07-10 Tom de Vries <tom@codesourcery.com>
2392
2393 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2394 insert nit + 1 bound.
2395
2396 2015-07-10 Richard Biener <rguenther@suse.de>
2397
2398 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2399 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2400 (if_convertible_loop_p_1): For this always compute bb predicates.
2401 (if_convertible_loop_p): And free them.
2402
2403 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2404
2405 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2406 in dump message.
2407
2408 2015-07-10 Richard Biener <rguenther@suse.de>
2409
2410 PR tree-optimization/66823
2411 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2412 inverted predicate.
2413
2414 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
2415
2416 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2417 to handle mips[32|64]r3 and mips[32|64]r5.
2418
2419 2015-07-09 Jakub Jelinek <jakub@redhat.com>
2420
2421 PR middle-end/66633
2422 * tree-nested.c (get_static_chain): Or in a flag into
2423 info->static_chain_added.
2424 (get_frame_field, get_nonlocal_debug_decl): Likewise.
2425 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2426 2015-07-01 changes.
2427 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2428 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2429 add it to clauses.
2430
2431 PR tree-optimization/66718
2432 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2433 field.
2434 (vect_simd_lane_linear): New function.
2435 (vectorizable_simd_clone_call): Support using linear arguments for
2436 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2437
2438 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2439
2440 PR target/66821
2441 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2442
2443 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2444
2445 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2446 Use machine mode, not enum machine_mode in the prototype.
2447
2448 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2449 classify 128-bit floating point support.
2450 (FLOAT128_IBM_P): Likewise.
2451 (FLOAT128_VECTOR_P): Likewise.
2452 (FLOAT128_2REG_P): Likewise.
2453 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2454 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2455 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2456 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2457
2458 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2459 tests against TFmode/TDmode, since those modes do not use VSX
2460 addresses.
2461 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2462 support.
2463 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2464 tests against TFmode, etc.
2465 (invalid_e500_subreg): Add tests against IFmode/KFmode.
2466 (reg_offset_addressing_ok_p): Likewise.
2467 (rs6000_legitimate_offset_address_p): Likewise.
2468 (rs6000_legitimize_address): Likewise.
2469 (rs6000_legitimize_reload_address): Likewise.
2470 (rs6000_legitimate_address_p): Clean up tests against TFmode and
2471 TDmode to use the new helper macros, which will include IFmode and
2472 KFmode.
2473 (rs6000_emit_move): Likewise.
2474 (rs6000_darwin64_record_arg_recurse): Likewise.
2475 (print_operand): Likewise.
2476 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2477 that uses a single vector register as a vector and not as a
2478 floating point register in terms of the calling sequence.
2479 (rs6000_discover_homogeneous_aggregate): Likewise.
2480 (rs6000_return_in_memory): Likewise.
2481 (init_cumulative_args): Likewise.
2482 (rs6000_function_arg_boundary): Likewise.
2483 (rs6000_function_arg_advance_1): Likewise.
2484 (rs6000_function_arg): Likewise.
2485 (rs6000_pass_by_reference): Likewise.
2486 (rs6000_gimplify_va_arg): Likewise.
2487 (rs6000_secondary_reload_memory): Use machine_mode not enum
2488 machine mode.
2489 (rs6000_split_multireg_move): Use new helper macros.
2490 (spe_func_has_64bit_regs_p): Likewise.
2491 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2492 (output_toc): Use new helper macros.
2493 (rs6000_register_move_cost): Likewise.
2494 (rs6000_function_value): Add IEEE 128-bit floating point calling
2495 sequence support.
2496 (rs6000_libcall_value): Likewise.
2497 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2498 floating point support.
2499 (rs6000_vector_mode_supported_p): Likewise.
2500
2501 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
2502
2503 PR rtl-optimization/66782
2504 * lra-int.h (struct lra_insn_recog_data): Add comment about
2505 clobbered hard regs for arg_hard_regs.
2506 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2507 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2508 Add condition for processing used hard regs.
2509 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2510 Process clobbered hard regs.
2511
2512 2015-07-09 Michael Matz <matz@suse.de>
2513
2514 * genmatch.c (fprintf_indent): New function.
2515 (operand::gen_transform): Add indent parameter.
2516 (expr::gen_transform, c_expr::gen_transform,
2517 capture::gen_transform): Ditto and use fprintf_indent.
2518 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2519 (dt_operand::gen, dt_operand::gen_predicate,
2520 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2521 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2522 (decision_tree::gen_gimple): Adjust calls and indent generated
2523 code.
2524 (decision_tree::gen_generic): Ditto.
2525 (write_predicate): Ditto.
2526
2527 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2528
2529 PR target/66814
2530 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2531 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2532 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2533 {GENERAL,SSE,MMX}_REG_P where appropriate.
2534
2535 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2536
2537 * lto-streamer.h: Don't include target.h and alloc-pool.h.
2538 * builtins.c: Adjust includes.
2539 * gimple.c: Likewise.
2540 * ipa-icf.c: Likewise.
2541 * lto-opts.c: Likewise.
2542 * ipa-reference.c: Likewise.
2543 * lto-section-out.c: Likewise.
2544 * lto-streamer-in.c: Likewise.
2545 * lto-streamer-out.c: Likewise.
2546 * opts-global.c: Likewise.
2547 * symtab.c: Likewise.
2548 * tree-chkp.c: Likewise.
2549 * tree-ssa-live.c: Likewise.
2550 * tree-streamer-in.c: Likewise.
2551 * tree-streamer-out.c: Likewise.
2552 * config/darwin.c: Likewise.
2553 * config/i386/winnt.c: Likewise.
2554
2555 2015-07-09 Richard Biener <rguenther@suse.de>
2556
2557 * genmatch.c (struct expr): Add force_single_use flag.
2558 (expr::expr): Add copy constructor.
2559 (capture_info::walk_match): Gather force_single_use captures.
2560 (expr::gen_transform): Use possibly NULLified sequence.
2561 (dt_simplify::gen): Apply single-use restrictions by NULLifying
2562 seq if any constrained expr is not single-use.
2563 (parser::parse_expr): Refactor to allow multiple flags. Handle
2564 's' flag to force an expression have a single-use if the pattern
2565 simplifies to more than one statement.
2566 * match.pd: Convert most single_use conditionals to :s flags.
2567
2568 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2569
2570 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2571 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2572 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2573
2574 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2575
2576 * flags.h: Don't include flag-types.h or options.h.
2577 * opts-common.c: Adjust includes.
2578 * opts-global.c: Likewise.
2579 * common/config/epiphany/epiphany-common.c: Likewise.
2580
2581 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2582
2583 PR target/66818
2584 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2585 for IA MCU.
2586
2587 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2588
2589 PR target/66817
2590 * config/i386/i386.c (ix86_return_in_memory): Return true
2591 if int_size_in_bytes returns negative for IA MCU.
2592
2593 2015-07-09 Marek Polacek <polacek@redhat.com>
2594
2595 PR tree-optimization/66718
2596 * Makefile.in (OBJS): Add gimple-laddress.o.
2597 * passes.def: Schedule pass_laddress.
2598 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2599 * tree-pass.h (make_pass_laddress): Declare.
2600 * gimple-laddress.c: New file.
2601
2602 2015-07-09 Richard Biener <rguenther@suse.de>
2603
2604 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2605
2606 2015-07-09 Richard Biener <rguenther@suse.de>
2607
2608 PR tree-optimization/66807
2609 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2610
2611 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
2612
2613 * function.c (stack_protect_epilogue): Use if rather than switch for
2614 check targetm.have_stack_protect_test.
2615
2616 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2617
2618 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2619 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2620 * config/arc/arc.h: Likewise.
2621 * config/arm/arm.h: Likewise.
2622 * config/bfin/bfin.h: Likewise.
2623 * config/epiphany/epiphany.h: Likewise.
2624 * config/frv/frv.h: Likewise.
2625 * config/ia64/ia64.h: Likewise.
2626 * config/iq2000/iq2000.h: Likewise.
2627 * config/lm32/lm32.h: Likewise.
2628 * config/m32r/m32r.h: Likewise.
2629 * config/mcore/mcore.h: Likewise.
2630 * config/mep/mep.h: Likewise.
2631 * config/microblaze/microblaze.h: Likewise.
2632 * config/mips/mips.h: Likewise.
2633 * config/mmix/mmix.h: Likewise.
2634 * config/mn10300/mn10300.h: Likewise.
2635 * config/nds32/nds32.h: Likewise.
2636 * config/nios2/nios2.h: Likewise.
2637 * config/pa/pa.h: Likewise.
2638 * config/rl78/rl78.h: Likewise.
2639 * config/sh/sh.h: Likewise.
2640 * config/sparc/sparc.h: Likewise.
2641 * config/stormy16/stormy16.h: Likewise.
2642 * config/tilegx/tilegx.h: Likewise.
2643 * config/tilepro/tilepro.h: Likewise.
2644 * config/v850/v850.h: Likewise.
2645 * config/xtensa/xtensa.h: Likewise.
2646 * doc/tm.texi: Regenerate.
2647 * doc/tm.texi.in: Adjust.
2648 * combine.c (simplify_set): Likewise.
2649 (simplify_comparison): Likewise.
2650 * expr.c (store_constructor): Likewise.
2651 * internal-fn.c (expand_arith_overflow): Likewise.
2652 * reload.c (push_reload): Likewise.
2653 (find_reloads): Likewise.
2654 (find_reloads_subreg_address): Likewise.
2655 * reload1.c (eliminate_regs_1): Likewise.
2656 * rtlanal.c (nonzero_bits1): Likewise.
2657 (num_sign_bit_copies1): Likewise.
2658 * simplify-rtx.c (simplify_truncation): Likewise.
2659
2660 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2661
2662 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2663 of AUTO_INC_DEC with the preprocessor.
2664 * combine.c (combine_instructions): Likewise.
2665 (can_combine_p): Likewise.
2666 (try_combine): Likewise.
2667 * emit-rtl.c (try_split): Likewise.
2668 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2669 * lower-subreg.c (resolve_simple_move): Likewise.
2670 * lra.c (update_inc_notes): Likewise.
2671 * recog.c (asm_operand_ok): Likewise.
2672 (constrain_operands): Likewise.
2673 * regrename.c (scan_rtx_address): Likewise.
2674 * reload.c (update_auto_inc_notes): Likewise.
2675 (reg_inc_found_and_valid_p): Likewise.
2676 * reload1.c (reload): Likewise.
2677 (emit_input_reload_insns): Likewise.
2678 (delete_output_reload): Likewise.
2679 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2680 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2681
2682 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2683
2684 * rtl.h: Always define AUTO_INC_DEC.
2685 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2686 * combine.c (combine_instructions): Likewise.
2687 (can_combine_p): Likewise.
2688 (try_combine): Likewise.
2689 * emit-rtl.c (try_split): Likewise.
2690 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2691 * lower-subreg.c (resolve_simple_move): Likewise.
2692 * lra.c (update_inc_notes): Likewise.
2693 * recog.c (asm_operand_ok): Likewise.
2694 (constrain_operands): Likewise.
2695 * regrename.c (scan_rtx_address): Likewise.
2696 * reload.c (update_auto_inc_notes): Likewise.
2697 (find_equiv_reg): Likewise.
2698 * reload1.c (reload): Likewise.
2699 (reload_as_needed): Likewise.
2700 (choose_reload_regs): Likewise.
2701 (emit_input_reload_insns): Likewise.
2702 (delete_output_reload): Likewise.
2703 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2704 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2705
2706 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2707
2708 * combine.c (can_combine_def_p): Don't check the value of
2709 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2710 (combinable_i3pat): Likewise.
2711 (mark_used_regs_combine): Likewise.
2712 * regrename.c (rename_chains): Likewise.
2713 * reload.c (find_reloads_address): Likewise.
2714 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2715
2716 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2717
2718 * combine.c (update_rsp_from_reg_equal): Don't check if
2719 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2720 (reg_nonzero_bits_for_combine): Likewise.
2721 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2722 1.
2723 * config/frv/frv.h: Likewise.
2724 * config/lm32/lm32.h: Likewise.
2725 * config/mep/mep.h: Likewise.
2726 * config/mips/mips.h: Likewise.
2727 * config/rs6000/rs6000.h: Likewise.
2728 * config/sh/sh.h: Likewise.
2729 * config/tilegx/tilegx.h (enum reg_class): Likewise.
2730 * config/tilepro/tilepro.h: Likewise.
2731 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2732 * doc/tm.texi: Regenerate.
2733 * doc/tm.texi.in: Adjust.
2734 * rtlanal.c (nonzero_bits1): Likewise.
2735
2736 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2737
2738 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2739 with the preprocessor.
2740 (combine_instructions): Likewise.
2741 (try_combine): Likewise.
2742 (subst): Likewise.
2743 (distribute_notes): Likewise.
2744
2745 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2746
2747 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2748 defined.
2749 (simplify_set): Likewise.
2750 * cse.c (cse_insn): Likewise.
2751 * fold-const.c (fold_single_bit_test): Likewise.
2752 (fold_unary_loc): Likewise.
2753 * postreload.c (reload_cse_simplify_set): Likewise.
2754 (reload_cse_simplify_operands): Likewise.
2755
2756 2015-07-08 Jiong Wang <jiong.wang@arm.com>
2757
2758 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2759 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2760
2761 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2762
2763 PR target/66746
2764 * config/i386/x86intrin.h: Include <adxintrin.h> even if
2765 __iamcu__ is defined.
2766
2767 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2768
2769 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2770
2771 2015-07-08 Iain Sandoe <iain@codesourcery.com>
2772
2773 PR target/66523
2774 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2775 names from preservation.
2776
2777 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2778
2779 PR target/66806
2780 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2781 change for IAMCU.
2782 (function_arg_advance_32): Don't pass vectors in registers for
2783 IAMCU.
2784 (function_arg_32): Likewise.
2785 (ix86_return_in_memory): Don't return vectors in registers for
2786 IAMCU.
2787
2788 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
2789
2790 PR middle-end/66334
2791 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2792 hard regno live at the start of BB with incoming abnormal edges.
2793 * lra-lives.c (process_bb_lives): Ditto.
2794
2795 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2796
2797 PR libgomp/65099
2798 * config/nvptx/mkoffload.c (main): Create an offload image only in
2799 64-bit configurations.
2800
2801 2015-07-08 Martin Liska <mliska@suse.cz>
2802
2803 PR bootstrap/66744
2804 * tree-sra.c (create_access_1): Call ctor without brackets.
2805 (create_artificial_child_access): Likewise.
2806
2807 2015-07-08 Richard Biener <rguenther@suse.de>
2808
2809 PR tree-optimization/66793
2810 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2811 Properly split the block after stmts ending it.
2812
2813 2015-07-08 Richard Biener <rguenther@suse.de>
2814
2815 PR tree-optimization/66794
2816 * passes.c (execute_function_todo): Assert that post-dominators
2817 are not computed.
2818 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2819 Free post-dominators.
2820
2821 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2822
2823 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2824 with early exit.
2825
2826 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2827
2828 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2829 more than or equal 8 and less than 32 when optimizing for size.
2830
2831 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2832
2833 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2834 COSTS_N_INSNS (1) and increment it appropriately throughout the
2835 function.
2836
2837 2015-07-08 Richard Biener <rguenther@suse.de>
2838
2839 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2840
2841 2015-07-08 Alan Modra <amodra@gmail.com>
2842
2843 * target.def (rtx_costs): Remove "code" param, add "mode".
2844 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2845 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
2846 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2847 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
2848 call. Track mode when given in rtx.
2849 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
2850 (default_address_cost): Pass Pmode to rtx_cost.
2851 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2852 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2853 with NULL set.
2854 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
2855 (notreg_cost): Add mode param. Use it.
2856 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
2857 mode param and pass to set_src_cost. Update all calls.
2858 (hash_scan_set): Formatting.
2859 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2860 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2861 * hooks.h: Ditto.
2862 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2863 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2864 emit_store_flag): Update set_src_cost and rtx_cost calls.
2865 * auto-inc-dec.c (attempt_change): Likewise.
2866 * calls.c (precompute_register_parameters): Likewise.
2867 * combine.c (expand_compound_operation, make_extraction,
2868 force_to_mode, distribute_and_simplify_rtx): Likewise.
2869 * dojump.c (prefer_and_bit_test): Likewise.
2870 * dse.c (find_shift_sequence): Likewise.
2871 * expr.c (compress_float_constant): Likewise.
2872 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2873 * ifcvt.c (noce_try_sign_mask): Likewise.
2874 * loop-doloop.c (doloop_optimize): Likewise.
2875 * loop-invariant.c (create_new_invariant): Likewise.
2876 * lower-subreg.c (shift_cost, compute_costs): Likewise.
2877 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2878 lshift_cheap_p): Likewise.
2879 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2880 try_replace_in_use, reload_cse_move2add): Likewise.
2881 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2882 Likewise.
2883 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2884 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2885 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2886 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2887 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2888 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
2889 to rtx_cost calls.
2890 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2891 * config/arc/arc.c (arc_rtx_costs): Likewise.
2892 * config/arm/arm.c (arm_rtx_costs): Likewise.
2893 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2894 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2895 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2896 * config/cris/cris.c (cris_rtx_costs): Likewise.
2897 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2898 * config/frv/frv.c (frv_rtx_costs): Likewise.
2899 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2900 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2901 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2902 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2903 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2904 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2905 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2906 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2907 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2908 * config/mep/mep.c (mep_rtx_cost): Likewise.
2909 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2910 * config/mips/mips.c (mips_rtx_costs): Likewise.
2911 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2912 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2913 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2914 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2915 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2916 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2917 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2918 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2919 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2920 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2921 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2922 * config/s390/s390.c (s390_rtx_costs): Likewise.
2923 * config/sh/sh.c (sh_rtx_costs): Likewise.
2924 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2925 * config/spu/spu.c (spu_rtx_costs): Likewise.
2926 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2927 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2928 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2929 * config/v850/v850.c (v850_rtx_costs): Likewise.
2930 * config/vax/vax.c (vax_rtx_costs): Likewise.
2931 * config/visium/visium.c (visium_rtx_costs): Likewise.
2932 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2933 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2934 "code" param, and pass as outer_code to first rtx_cost call. Pass
2935 mode to rtx_cost calls.
2936 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2937 calls.
2938 (aarch64_rtx_costs_wrapper): Update.
2939 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2940 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2941 rtx_cost calls.
2942 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2943 and rtx_cost calls.
2944 (avr_operand_rtx_cost): Similarly.
2945 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2946 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2947 * config/mips/mips.c (mips_stack_address_p): Comment typo.
2948 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2949 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2950 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2951 rtx_cost.
2952 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2953 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2954 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2955 * doc/tm.texi: Regenerate.
2956
2957 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
2958
2959 * tree-core.h: Include symtab.h.
2960 * rtl.h: Include hard-reg-set.h but not flags.h.
2961 (HARD_CONST): Remove condition compilation involving HARD_CONST since
2962 hard-reg-set.h is always included.
2963 * regs.h: Don't include hard-reg-set.h or rtl.h.
2964 * cfg.h: Include dominance.h.
2965 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2966 * backend.h: New. Aggregate commonly used backend header files.
2967 * gimple-ssa.h: Don't include tree-hasher.h.
2968 * ssa.h: New. Aggregate commonly used SSA header files.
2969 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2970 * sel-sched-ir.h: Flatten includes.
2971 * lra-int.h: Flatten completely.
2972 * sel-sched-dump.h: Flatten includes.
2973 * ira-int.h: Flatten includes.
2974 * gimple-streamer.h: Remove all includes.
2975 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2976 * resource.h: Flatten hard-reg-set.h and df.h.
2977 * sched-int.h: Flatten insn-arrt.h and df.h.
2978 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2979 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2980 * genattrtab.c (write_header): Adjust generated includes.
2981 * genautomata.c (main): Likewise.
2982 * genconditions.c (write-header): Likewise.
2983 * genemit.c (main): Likewise.
2984 * gengtype.c (open_base_files): Likewise.
2985 * genopinit.c (main): Likewise.
2986 * genoutput.c (output_prologue): Likewise.
2987 * genpeep.c (main): Likewise.
2988 * genpreds.c (write_insn_preds_c): Likewise.
2989 * genrecog.c (write_header): Likewise.
2990 * alias.c: Adjust includes.
2991 * asan.c: Likewise.
2992 * attribs.c: Likewise.
2993 * auto-inc-dec.c: Likewise.
2994 * auto-profile.c: Likewise.
2995 * bb-reorder.c: Likewise.
2996 * bt-load.c: Likewise.
2997 * builtins.c: Likewise.
2998 * caller-save.c: Likewise.
2999 * calls.c: Likewise.
3000 * ccmp.c: Likewise.
3001 * cfg.c: Likewise.
3002 * cfganal.c: Likewise.
3003 * cfgbuild.c: Likewise.
3004 * cfgcleanup.c: Likewise.
3005 * cfgexpand.c: Likewise.
3006 * cfghooks.c: Likewise.
3007 * cfgloop.c: Likewise.
3008 * cfgloopanal.c: Likewise.
3009 * cfgloopmanip.c: Likewise.
3010 * cfgrtl.c: Likewise.
3011 * cgraph.c: Likewise.
3012 * cgraphbuild.c: Likewise.
3013 * cgraphclones.c: Likewise.
3014 * cgraphunit.c: Likewise.
3015 * cilk-common.c: Likewise.
3016 * combine-stack-adj.c: Likewise.
3017 * combine.c: Likewise.
3018 * compare-elim.c: Likewise.
3019 * convert.c: Likewise.
3020 * coverage.c: Likewise.
3021 * cppbuiltin.c: Likewise.
3022 * cprop.c: Likewise.
3023 * cse.c: Likewise.
3024 * cselib.c: Likewise.
3025 * data-streamer-in.c: Likewise.
3026 * data-streamer-out.c: Likewise.
3027 * data-streamer.c: Likewise.
3028 * dbxout.c: Likewise.
3029 * dce.c: Likewise.
3030 * ddg.c: Likewise.
3031 * debug.c: Likewise.
3032 * df-core.c: Likewise.
3033 * df-problems.c: Likewise.
3034 * df-scan.c: Likewise.
3035 * dfp.c: Likewise.
3036 * dojump.c: Likewise.
3037 * dominance.c: Likewise.
3038 * domwalk.c: Likewise.
3039 * double-int.c: Likewise.
3040 * dse.c: Likewise.
3041 * dumpfile.c: Likewise.
3042 * dwarf2asm.c: Likewise.
3043 * dwarf2cfi.c: Likewise.
3044 * dwarf2out.c: Likewise.
3045 * emit-rtl.c: Likewise.
3046 * et-forest.c: Likewise.
3047 * except.c: Likewise.
3048 * explow.c: Likewise.
3049 * expmed.c: Likewise.
3050 * expr.c: Likewise.
3051 * final.c: Likewise.
3052 * fixed-value.c: Likewise.
3053 * fold-const.c: Likewise.
3054 * function.c: Likewise.
3055 * fwprop.c: Likewise.
3056 * gcc-plugin.h: Likewise.
3057 * gcse-common.c: Likewise.
3058 * gcse.c: Likewise.
3059 * generic-match-head.c: Likewise.
3060 * ggc-page.c: Likewise.
3061 * gimple-builder.c: Likewise.
3062 * gimple-expr.c: Likewise.
3063 * gimple-fold.c: Likewise.
3064 * gimple-iterator.c: Likewise.
3065 * gimple-low.c: Likewise.
3066 * gimple-match-head.c: Likewise.
3067 * gimple-pretty-print.c: Likewise.
3068 * gimple-ssa-isolate-paths.c: Likewise.
3069 * gimple-ssa-strength-reduction.c: Likewise.
3070 * gimple-streamer-in.c: Likewise.
3071 * gimple-streamer-out.c: Likewise.
3072 * gimple-walk.c: Likewise.
3073 * gimple.c: Likewise.
3074 * gimplify-me.c: Likewise.
3075 * gimplify.c: Likewise.
3076 * godump.c: Likewise.
3077 * graph.c: Likewise.
3078 * graphite-blocking.c: Likewise.
3079 * graphite-dependences.c: Likewise.
3080 * graphite-interchange.c: Likewise.
3081 * graphite-isl-ast-to-gimple.c: Likewise.
3082 * graphite-optimize-isl.c: Likewise.
3083 * graphite-poly.c: Likewise.
3084 * graphite-scop-detection.c: Likewise.
3085 * graphite-sese-to-poly.c: Likewise.
3086 * graphite.c: Likewise.
3087 * haifa-sched.c: Likewise.
3088 * hw-doloop.c: Likewise.
3089 * ifcvt.c: Likewise.
3090 * init-regs.c: Likewise.
3091 * internal-fn.c: Likewise.
3092 * ipa-chkp.c: Likewise.
3093 * ipa-comdats.c: Likewise.
3094 * ipa-cp.c: Likewise.
3095 * ipa-devirt.c: Likewise.
3096 * ipa-icf-gimple.c: Likewise.
3097 * ipa-icf.c: Likewise.
3098 * ipa-inline-analysis.c: Likewise.
3099 * ipa-inline-transform.c: Likewise.
3100 * ipa-inline.c: Likewise.
3101 * ipa-polymorphic-call.c: Likewise.
3102 * ipa-profile.c: Likewise.
3103 * ipa-prop.c: Likewise.
3104 * ipa-pure-const.c: Likewise.
3105 * ipa-ref.c: Likewise.
3106 * ipa-reference.c: Likewise.
3107 * ipa-split.c: Likewise.
3108 * ipa-utils.c: Likewise.
3109 * ipa-visibility.c: Likewise.
3110 * ipa.c: Likewise.
3111 * ira-build.c: Likewise.
3112 * ira-color.c: Likewise.
3113 * ira-conflicts.c: Likewise.
3114 * ira-costs.c: Likewise.
3115 * ira-emit.c: Likewise.
3116 * ira-lives.c: Likewise.
3117 * ira.c: Likewise.
3118 * jump.c: Likewise.
3119 * langhooks.c: Likewise.
3120 * lcm.c: Likewise.
3121 * loop-doloop.c: Likewise.
3122 * loop-init.c: Likewise.
3123 * loop-invariant.c: Likewise.
3124 * loop-iv.c: Likewise.
3125 * loop-unroll.c: Likewise.
3126 * lower-subreg.c: Likewise.
3127 * lra-assigns.c: Likewise.
3128 * lra-coalesce.c: Likewise.
3129 * lra-constraints.c: Likewise.
3130 * lra-eliminations.c: Likewise.
3131 * lra-lives.c: Likewise.
3132 * lra-remat.c: Likewise.
3133 * lra-spills.c: Likewise.
3134 * lra.c: Likewise.
3135 * lto-cgraph.c: Likewise.
3136 * lto-compress.c: Likewise.
3137 * lto-opts.c: Likewise.
3138 * lto-section-in.c: Likewise.
3139 * lto-section-out.c: Likewise.
3140 * lto-streamer-in.c: Likewise.
3141 * lto-streamer-out.c: Likewise.
3142 * lto-streamer.c: Likewise.
3143 * mcf.c: Likewise.
3144 * mode-switching.c: Likewise.
3145 * modulo-sched.c: Likewise.
3146 * omega.c: Likewise.
3147 * omp-low.c: Likewise.
3148 * optabs.c: Likewise.
3149 * opts-global.c: Likewise.
3150 * passes.c: Likewise.
3151 * plugin.c: Likewise.
3152 * postreload-gcse.c: Likewise.
3153 * postreload.c: Likewise.
3154 * predict.c: Likewise.
3155 * print-rtl.c: Likewise.
3156 * print-tree.c: Likewise.
3157 * profile.c: Likewise.
3158 * real.c: Likewise.
3159 * realmpfr.c: Likewise.
3160 * recog.c: Likewise.
3161 * ree.c: Likewise.
3162 * reg-stack.c: Likewise.
3163 * regcprop.c: Likewise.
3164 * reginfo.c: Likewise.
3165 * regrename.c: Likewise.
3166 * regstat.c: Likewise.
3167 * reload.c: Likewise.
3168 * reload1.c: Likewise.
3169 * reorg.c: Likewise.
3170 * resource.c: Likewise.
3171 * rtl-chkp.c: Likewise.
3172 * rtlanal.c: Likewise.
3173 * rtlhooks.c: Likewise.
3174 * sanopt.c: Likewise.
3175 * sched-deps.c: Likewise.
3176 * sched-ebb.c: Likewise.
3177 * sched-rgn.c: Likewise.
3178 * sched-vis.c: Likewise.
3179 * sdbout.c: Likewise.
3180 * sel-sched-dump.c: Likewise.
3181 * sel-sched-ir.c: Likewise.
3182 * sel-sched.c: Likewise.
3183 * sese.c: Likewise.
3184 * shrink-wrap.c: Likewise.
3185 * simplify-rtx.c: Likewise.
3186 * stack-ptr-mod.c: Likewise.
3187 * stmt.c: Likewise.
3188 * stor-layout.c: Likewise.
3189 * store-motion.c: Likewise.
3190 * stringpool.c: Likewise.
3191 * symtab.c: Likewise.
3192 * target-globals.c: Likewise.
3193 * targhooks.c: Likewise.
3194 * toplev.c: Likewise.
3195 * tracer.c: Likewise.
3196 * trans-mem.c: Likewise.
3197 * tree-affine.c: Likewise.
3198 * tree-browser.c: Likewise.
3199 * tree-call-cdce.c: Likewise.
3200 * tree-cfg.c: Likewise.
3201 * tree-cfgcleanup.c: Likewise.
3202 * tree-chkp-opt.c: Likewise.
3203 * tree-chkp.c: Likewise.
3204 * tree-chrec.c: Likewise.
3205 * tree-complex.c: Likewise.
3206 * tree-data-ref.c: Likewise.
3207 * tree-dfa.c: Likewise.
3208 * tree-diagnostic.c: Likewise.
3209 * tree-dump.c: Likewise.
3210 * tree-eh.c: Likewise.
3211 * tree-emutls.c: Likewise.
3212 * tree-if-conv.c: Likewise.
3213 * tree-inline.c: Likewise.
3214 * tree-into-ssa.c: Likewise.
3215 * tree-iterator.c: Likewise.
3216 * tree-loop-distribution.c: Likewise.
3217 * tree-nested.c: Likewise.
3218 * tree-nrv.c: Likewise.
3219 * tree-object-size.c: Likewise.
3220 * tree-outof-ssa.c: Likewise.
3221 * tree-parloops.c: Likewise.
3222 * tree-phinodes.c: Likewise.
3223 * tree-predcom.c: Likewise.
3224 * tree-pretty-print.c: Likewise.
3225 * tree-profile.c: Likewise.
3226 * tree-scalar-evolution.c: Likewise.
3227 * tree-sra.c: Likewise.
3228 * tree-ssa-address.c: Likewise.
3229 * tree-ssa-alias.c: Likewise.
3230 * tree-ssa-ccp.c: Likewise.
3231 * tree-ssa-coalesce.c: Likewise.
3232 * tree-ssa-copy.c: Likewise.
3233 * tree-ssa-copyrename.c: Likewise.
3234 * tree-ssa-dce.c: Likewise.
3235 * tree-ssa-dom.c: Likewise.
3236 * tree-ssa-dse.c: Likewise.
3237 * tree-ssa-forwprop.c: Likewise.
3238 * tree-ssa-ifcombine.c: Likewise.
3239 * tree-ssa-live.c: Likewise.
3240 * tree-ssa-loop-ch.c: Likewise.
3241 * tree-ssa-loop-im.c: Likewise.
3242 * tree-ssa-loop-ivcanon.c: Likewise.
3243 * tree-ssa-loop-ivopts.c: Likewise.
3244 * tree-ssa-loop-manip.c: Likewise.
3245 * tree-ssa-loop-niter.c: Likewise.
3246 * tree-ssa-loop-prefetch.c: Likewise.
3247 * tree-ssa-loop-unswitch.c: Likewise.
3248 * tree-ssa-loop.c: Likewise.
3249 * tree-ssa-math-opts.c: Likewise.
3250 * tree-ssa-operands.c: Likewise.
3251 * tree-ssa-phiopt.c: Likewise.
3252 * tree-ssa-phiprop.c: Likewise.
3253 * tree-ssa-pre.c: Likewise.
3254 * tree-ssa-propagate.c: Likewise.
3255 * tree-ssa-reassoc.c: Likewise.
3256 * tree-ssa-sccvn.c: Likewise.
3257 * tree-ssa-scopedtables.c: Likewise.
3258 * tree-ssa-sink.c: Likewise.
3259 * tree-ssa-strlen.c: Likewise.
3260 * tree-ssa-structalias.c: Likewise.
3261 * tree-ssa-tail-merge.c: Likewise.
3262 * tree-ssa-ter.c: Likewise.
3263 * tree-ssa-threadedge.c: Likewise.
3264 * tree-ssa-threadupdate.c: Likewise.
3265 * tree-ssa-uncprop.c: Likewise.
3266 * tree-ssa-uninit.c: Likewise.
3267 * tree-ssa.c: Likewise.
3268 * tree-ssanames.c: Likewise.
3269 * tree-stdarg.c: Likewise.
3270 * tree-streamer-in.c: Likewise.
3271 * tree-streamer-out.c: Likewise.
3272 * tree-streamer.c: Likewise.
3273 * tree-switch-conversion.c: Likewise.
3274 * tree-tailcall.c: Likewise.
3275 * tree-vect-data-refs.c: Likewise.
3276 * tree-vect-generic.c: Likewise.
3277 * tree-vect-loop-manip.c: Likewise.
3278 * tree-vect-loop.c: Likewise.
3279 * tree-vect-patterns.c: Likewise.
3280 * tree-vect-slp.c: Likewise.
3281 * tree-vect-stmts.c: Likewise.
3282 * tree-vectorizer.c: Likewise.
3283 * tree-vrp.c: Likewise.
3284 * tree.c: Likewise.
3285 * tsan.c: Likewise.
3286 * ubsan.c: Likewise.
3287 * valtrack.c: Likewise.
3288 * value-prof.c: Likewise.
3289 * var-tracking.c: Likewise.
3290 * varasm.c: Likewise.
3291 * varpool.c: Likewise.
3292 * vmsdbgout.c: Likewise.
3293 * vtable-verify.c: Likewise.
3294 * web.c: Likewise.
3295 * wide-int.cc: Likewise.
3296 * xcoffout.c: Likewise.
3297 * config/aarch64/aarch64-builtins.c: Likewise.
3298 * config/aarch64/aarch64.c: Likewise.
3299 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3300 * config/alpha/alpha.c: Likewise.
3301 * config/arc/arc.c: Likewise.
3302 * config/arm/aarch-common.c: Likewise.
3303 * config/arm/arm-builtins.c: Likewise.
3304 * config/arm/arm-c.c: Likewise.
3305 * config/arm/arm.c: Likewise.
3306 * config/avr/avr-c.c: Likewise.
3307 * config/avr/avr-log.c: Likewise.
3308 * config/avr/avr.c: Likewise.
3309 * config/bfin/bfin.c: Likewise.
3310 * config/c6x/c6x.c: Likewise.
3311 * config/cr16/cr16.c: Likewise.
3312 * config/cris/cris.c: Likewise.
3313 * config/darwin-c.c: Likewise.
3314 * config/darwin.c: Likewise.
3315 * config/epiphany/epiphany.c: Likewise.
3316 * config/epiphany/mode-switch-use.c: Likewise.
3317 * config/epiphany/resolve-sw-modes.c: Likewise.
3318 * config/fr30/fr30.c: Likewise.
3319 * config/frv/frv.c: Likewise.
3320 * config/ft32/ft32.c: Likewise.
3321 * config/h8300/h8300.c: Likewise.
3322 * config/i386/i386-c.c: Likewise.
3323 * config/i386/i386.c: Likewise.
3324 * config/i386/msformat-c.c: Likewise.
3325 * config/i386/winnt-cxx.c: Likewise.
3326 * config/i386/winnt-stubs.c: Likewise.
3327 * config/i386/winnt.c: Likewise.
3328 * config/ia64/ia64-c.c: Likewise.
3329 * config/ia64/ia64.c: Likewise.
3330 * config/iq2000/iq2000.c: Likewise.
3331 * config/lm32/lm32.c: Likewise.
3332 * config/m32c/m32c-pragma.c: Likewise.
3333 * config/m32c/m32c.c: Likewise.
3334 * config/m32r/m32r.c: Likewise.
3335 * config/m68k/m68k.c: Likewise.
3336 * config/mcore/mcore.c: Likewise.
3337 * config/mep/mep-pragma.c: Likewise.
3338 * config/mep/mep.c: Likewise.
3339 * config/microblaze/microblaze-c.c: Likewise.
3340 * config/microblaze/microblaze.c: Likewise.
3341 * config/mips/mips.c: Likewise.
3342 * config/mmix/mmix.c: Likewise.
3343 * config/mn10300/mn10300.c: Likewise.
3344 * config/moxie/moxie.c: Likewise.
3345 * config/msp430/msp430-c.c: Likewise.
3346 * config/msp430/msp430.c: Likewise.
3347 * config/nds32/nds32-cost.c: Likewise.
3348 * config/nds32/nds32-fp-as-gp.c: Likewise.
3349 * config/nds32/nds32-intrinsic.c: Likewise.
3350 * config/nds32/nds32-isr.c: Likewise.
3351 * config/nds32/nds32-md-auxiliary.c: Likewise.
3352 * config/nds32/nds32-memory-manipulation.c: Likewise.
3353 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3354 * config/nds32/nds32-predicates.c: Likewise.
3355 * config/nds32/nds32.c: Likewise.
3356 * config/nios2/nios2.c: Likewise.
3357 * config/nvptx/nvptx.c: Likewise.
3358 * config/pa/pa.c: Likewise.
3359 * config/pdp11/pdp11.c: Likewise.
3360 * config/rl78/rl78-c.c: Likewise.
3361 * config/rl78/rl78.c: Likewise.
3362 * config/rs6000/rs6000-c.c: Likewise.
3363 * config/rs6000/rs6000.c: Likewise.
3364 * config/rx/rx.c: Likewise.
3365 * config/s390/s390-c.c: Likewise.
3366 * config/s390/s390.c: Likewise.
3367 * config/sh/sh-c.c: Likewise.
3368 * config/sh/sh-mem.cc: Likewise.
3369 * config/sh/sh.c: Likewise.
3370 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3371 * config/sh/sh_treg_combine.cc: Likewise.
3372 * config/sol2-c.c: Likewise.
3373 * config/sol2-cxx.c: Likewise.
3374 * config/sol2-stubs.c: Likewise.
3375 * config/sol2.c: Likewise.
3376 * config/sparc/sparc-c.c: Likewise.
3377 * config/sparc/sparc.c: Likewise.
3378 * config/spu/spu-c.c: Likewise.
3379 * config/spu/spu.c: Likewise.
3380 * config/stormy16/stormy16.c: Likewise.
3381 * config/tilegx/mul-tables.c: Likewise.
3382 * config/tilegx/tilegx-c.c: Likewise.
3383 * config/tilegx/tilegx.c: Likewise.
3384 * config/tilepro/mul-tables.c: Likewise.
3385 * config/tilepro/tilepro-c.c: Likewise.
3386 * config/tilepro/tilepro.c: Likewise.
3387 * config/v850/v850-c.c: Likewise.
3388 * config/v850/v850.c: Likewise.
3389 * config/vax/vax.c: Likewise.
3390 * config/visium/visium.c: Likewise.
3391 * config/vms/vms-c.c: Likewise.
3392 * config/vms/vms.c: Likewise.
3393 * config/vxworks.c: Likewise.
3394 * config/xtensa/xtensa.c: Likewise.
3395
3396 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
3397
3398 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3399 Remove operand constraints. Change operand 2 predicate to
3400 nonmemory operand. Limit const_int values to mode bitsize. Only
3401 allow const_int values less than 32 when optimizing for size.
3402 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3403 Remove operand constraints.
3404 (*bt<mode>): Use SImode for const_int values less than 32.
3405 (regmode): Remove mode attribute.
3406
3407 2015-07-07 Anatoly Sokolov <aesok@post.ru>
3408
3409 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3410 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3411 moxie_legitimate_address_p): New functions.
3412 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3413
3414 2015-07-07 Tom de Vries <tom@codesourcery.com>
3415
3416 PR tree-optimization/66642
3417 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3418 header comment. Rename split_edge variable to edge_at_split. Split
3419 exit edge to create new loop exit bb. Insert loop exit phis in new
3420 loop exit bb.
3421
3422 2015-07-07 Tom de Vries <tom@codesourcery.com>
3423
3424 * tree-cfg.c (get_virtual_phi): New function.
3425 * tree-cfg.h (get_virtual_phi): Declare.
3426 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3427 (rewrite_virtuals_into_loop_closed_ssa): New function.
3428 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3429 Declare.
3430 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3431 (transform_to_exit_first_loop_alt): Use
3432 rewrite_virtuals_into_loop_closed_ssa.
3433
3434 2015-07-07 Richard Biener <rguenther@suse.de>
3435
3436 * fold-const.c (fold_binary_loc): Move
3437 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3438 * match.pd: ... here.
3439 Add (X * C1) % C2 -> 0 simplification pattern derived from
3440 extract_muldiv_1.
3441
3442 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
3443
3444 PR target/66780
3445 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3446 change for target/65249.
3447
3448 2015-07-07 Paulo Matos <pmatos@broadcom.com>
3449
3450 * symtab.c (address_matters_1): Fix typo in comment above.
3451 (can_increase_alignment_p): Likewise.
3452
3453 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3454
3455 * function.c (free_after_compilation): Clear PROP_cfg in
3456 f->curr_properties.
3457
3458 2015-07-07 Richard Biener <rguenther@suse.de>
3459
3460 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3461 add which use to.
3462 (add_control_edge): Remove excessive vertical space in dumping.
3463 (process_ssa_edge_worklist): Simulate at most one statement and
3464 return whether we did. Do not simulate PHIs if they are in a
3465 BB not yet simulated.
3466 (ssa_propagate): Adjust to always drain the BB worklist whenever
3467 a BB is available there, likewise the VARYING edges list before
3468 the interesting edge list.
3469
3470 2015-07-07 Christian Bruel <christian.bruel@st.com>
3471
3472 PR target/52144
3473 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3474
3475 2015-07-07 Richard Biener <rguenther@suse.de>
3476
3477 PR middle-end/66739
3478 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3479 A - B.
3480
3481 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3482
3483 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
3484 modes for operands 0 and 3. Use SImode for operands 2 and 3.
3485 Copy operand 0 to a temporary if !ext_register_operand. Remove
3486 ancient extract_bit_field workaround.
3487 (insv<mode>_1): Rename from mov<mode>_insv_1.
3488 (*insvqi): Rename from *movqi_insv_2.
3489 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3490 for renamed insvsi_1.
3491 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3492
3493 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
3494
3495 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
3496 call to nvptx_reorg_subreg.
3497
3498 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
3499
3500 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3501 * graphite-dependencies.c, graphite-interchange.c,
3502 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3503 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3504 Likewise.
3505
3506 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
3507
3508 * match.pd: Remove element_mode inside HONOR_*.
3509 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3510 (~X | X -> -1, ~X ^ X -> -1): Merge.
3511 * tree.c (build_each_one_cst): New function.
3512 * tree.h (build_each_one_cst): Likewise.
3513
3514 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3515
3516 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3517 PROCESSOR_IAMCU.
3518
3519 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
3520
3521 * config.gcc <mips*-*-*>: Add fused-madd.opt.
3522 * config/mips/mips.opt (mfused-madd): Remove.
3523 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3524 * config/mips/mips.h (TARGET_MIPS8000): New.
3525 (ISA_HAS_FP_MADD4_MSUB4): Remove.
3526 (ISA_HAS_FP_MADDF_MSUBF): Remove.
3527 (ISA_HAS_FP_MADD3_MSUB3): Remove.
3528 (ISA_HAS_NMADD4_NMSUB4): Remove.
3529 (ISA_HAS_NMADD3_NMSUB3): Remove.
3530 (ISA_HAS_FUSED_MADD4): New.
3531 (ISA_HAS_UNFUSED_MADD4): New.
3532 (ISA_HAS_FUSED_MADDF): New.
3533 (ISA_HAS_FUSED_MADD3): New.
3534 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3535 (*fma<mode>4_madd3) New.
3536 (*fma<mode>4_madd4) New.
3537 (*fma<mode>4_maddf) New.
3538 (fms<mode>4) New.
3539 (*fms<mode>4_msub3) New.
3540 (*fms<mode>4_msub4) New.
3541 (fnma<mode>4) New.
3542 (*fnma<mode>4_nmadd3) New.
3543 (*fnma<mode>4_nmadd4) New.
3544 (fnms<mode>4) New.
3545 (*fnms<mode>4_nmsub3) New.
3546 (*fnms<mode>4_nmsub4) New.
3547 (*madd4<mode>) Modify to be unfused only.
3548 (*msub4<mode>) Modify to be unfused only.
3549 (*nmadd4<mode>) Modify to be unfused only.
3550 (*nmsub4<mode>) Modify to be unfused only.
3551 (*madd3<mode>) Remove.
3552 (*msub3<mode>) Remove.
3553 (*nmadd3<mode>) Remove.
3554 (*nmsub3<mode>) Remove.
3555 (*nmadd3<mode>_fastmath) Remove.
3556 (*nmsub3<mode>_fastmath) Remove.
3557 (*nmadd4<mode>_fastmath) Update condition.
3558 (*nmsub4<mode>_fastmath) Update condition.
3559
3560 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3561
3562 PR target/65956
3563 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3564 alignment attribute, exploring one level down for records and arrays.
3565
3566 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3567
3568 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
3569 modes for operands 0 and 1. Use SImode for operands 2 and 3.
3570 Copy operand 1 to a temporary if !ext_register_operand. Remove
3571 ancient extract_bit_field workaround.
3572 (*extv<mode>): Rename from *mov<mode>_extv_1.
3573 (*extvqi): Rename from *movqi_extv_1.
3574 (extzv<mode>): Rename from extzv. Use SWI248 modes for
3575 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
3576 to a temporary if !ext_register_operand. Remove ancient
3577 extract_bit_field workaround.
3578 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3579 (*extzvqi): Rename from *movqi_extzv_2.
3580 (*testqi_ext_3): Remove modes from const_int_operand predicated
3581 operands. Add "n" constraint.
3582 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3583 operand. Add "J" constraint.
3584 (*btsq, *btrq, *btcq peephole2s): Remove mode from
3585 const_0_to_63 predicated operand.
3586 (regmode): New insn attribute.
3587 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
3588 to nonmemory_operand. Use regmode insn attribute.
3589 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3590 (*jcc_bt<mode>_mask): Remove mode from operand 3.
3591 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3592 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3593 operands. Use "N" constraint instead of "n".
3594
3595 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3596
3597 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3598
3599 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3600
3601 PR target/66749
3602 * config/i386/i386.c (iamcu_cost): New.
3603 (m_IAMCU): Likewise.
3604 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3605 (processor_target_table): Add an entry for "iamcu".
3606 (processor_alias_table): Likewise.
3607 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3608 (ix86_adjust_cost): Likewise.
3609 (ia32_multipass_dfa_lookahead): Likewise.
3610 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3611 * config/i386/x86-tune.def: Updated for m_IAMCU.
3612
3613 2015-07-06 Richard Biener <rguenther@suse.de>
3614
3615 PR tree-optimization/66772
3616 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3617 values are available in the PHI node BB when there are
3618 still unexecutable edges.
3619
3620 2015-07-06 Richard Biener <rguenther@suse.de>
3621
3622 PR tree-optimization/66767
3623 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3624 Make sure to build the alignment test on a SSA name without
3625 final alignment info valid only if the alignment test
3626 evaluates to true.
3627
3628 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
3629
3630 PR target/66620
3631 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3632 loop start when inserting LSETUP.
3633
3634 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3635
3636 PR target/53383
3637 * config/i386/i386.c (ix86_option_override_internal): Allow
3638 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3639
3640 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3641
3642 * read-md.c (decimal_string): Rename to ...
3643 (md_decimal_string): ... this.
3644 (handle_enum): Reflect this.
3645
3646 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3647
3648 PR target/66731
3649 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3650
3651 2015-07-06 Richard Biener <rguenther@suse.de>
3652
3653 PR middle-end/66759
3654 * match.pd: Add missing constraint of y to REAL_CST in
3655 REAL_CST - x CMP y to y - CST CMP x simplification.
3656
3657 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
3658
3659 PR tree-optimization/66757
3660 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3661
3662 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
3663 Sandra Loosemore <sandra@codesourcery.com>
3664
3665 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3666 Delete extern declaration.
3667 (gprel_constant_p): Add extern declaration.
3668 * config/nios2/constraints.md ("S"): Use gprel_constant_p
3669 instead of nios2_symbol_ref_in_small_data_p.
3670 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3671 (nios2_symbol_ref_in_small_data_p): Make static.
3672 (gprel_constant_p): Make non-static.
3673
3674 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
3675
3676 * doc/fragments.texi (Target Fragment): Convert debian.org
3677 link to use https.
3678 * doc/install.texi (Configuration): Ditto.
3679
3680 2015-07-05 Jakub Jelinek <jakub@redhat.com>
3681
3682 PR tree-optimization/66718
3683 * tree-vect-stmts.c (vectorizable_call): Replace uses of
3684 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3685
3686 PR tree-optimization/66718
3687 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3688 vectorizable_load, vectorizable_condition): Move vectype,
3689 nunits, ncopies computation after checking what kind of statement
3690 stmt is.
3691
3692 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3693
3694 * target-insns.def (extv, extzv, insv): New targetm instruction
3695 patterns.
3696 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3697 interface.
3698 * recog.c (simplify_while_replacing): Likewise.
3699
3700 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3701
3702 * target-insns.def (doloop_begin, doloop_end): New targetm
3703 instruction patterns.
3704 * loop-init.c: Include target.h.
3705 (pass_loop2::gate): Use the new targetm patterns instead of
3706 HAVE_*/gen_* interface.
3707 (pass_rtl_doloop::gate): Likewise.
3708 (pass_rtl_doloop::execute): Remove preprocessor condition.
3709 * hw-doloop.c: Build unconditionally.
3710 * loop-doloop.c: Likewise.
3711 (doloop_optimize): Use the new targetm patterns instead of
3712 HAVE_*/gen_* interface.
3713 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3714 * modulo-sched.c (doloop_register_get): Likewise.
3715
3716 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3717
3718 * target-insns.def (clear_cache): New targetm instruction pattern.
3719 * builtins.c (expand_builtin___clear_cache): Use it instead of
3720 HAVE_*/gen_* interface.
3721
3722 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3723
3724 * target-insns.def (allocate_stack, check_stack, probe_stack)
3725 (probe_stack_address, split_stack_prologue, split_stack_space_check):
3726 New targetm instruction patterns.
3727 * explow.c (allocate_dynamic_stack_space): Use them instead of
3728 HAVE_*/gen_* interface.
3729 (emit_stack_probe): Likewise.
3730 (probe_stack_range): Likewise.
3731 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3732
3733 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3734
3735 * target-insns.def (stack_protect_set, stack_protect_test): New
3736 targetm instruction patterns.
3737 * cfgexpand.c (stack_protect_prologue): Use them instead of
3738 HAVE_*/gen_* interface.
3739 * function.c (stack_protect_epilogue): Likewise.
3740
3741 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3742
3743 * expr.h (gen_move_insn_uncast): Delete.
3744 * expr.c (gen_move_insn_uncast): Delete.
3745
3746 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3747
3748 * target-insns.def (restore_stack_block, restore_stack_function)
3749 (restore_stack_nonlocal, save_stack_block, save_stack_function)
3750 (save_stack_nonlocal): New targetm instruction patterns.
3751 * builtins.c (expand_builtin_apply): Use them instead of
3752 HAVE_*/gen_* interface.
3753 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3754
3755 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3756
3757 * target-insns.def (trap): New targetm instruction pattern.
3758 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3759 interface.
3760 * explow.c (allocate_dynamic_stack_space): Likewise.
3761 * ifcvt.c (find_if_header): Likewise.
3762
3763 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3764
3765 * target-insns.def (prefetch): New targetm instruction pattern.
3766 * tree-ssa-loop-prefetch.c: Include targeth.
3767 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3768 of HAVE_*/gen_* interface.
3769 * builtins.c (expand_builtin_prefetch): Likewise.
3770 * toplev.c (process_options): Likewise.
3771
3772 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3773
3774 * target-insns.def (untyped_call, untyped_return): New targetm
3775 instruction patterns.
3776 * builtins.c (expand_builtin_apply): Use them instead of
3777 HAVE_*/gen_* interface.
3778 (result_vector): Define unconditionally.
3779
3780 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3781
3782 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3783 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3784 (nonlocal_goto_receiver): New targetm instruction patterns.
3785 * builtins.c (expand_builtin_setjmp_setup): Use them instead
3786 of HAVE_*/gen_* interface.
3787 (expand_builtin_setjmp_receiver): Likewise.
3788 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3789 * except.c (expand_dw2_landing_pad_for_region): Likewise.
3790
3791 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3792
3793 * target.def: Add code_for_* hooks.
3794 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3795 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3796 * target-insns.def (casesi, tablejump): New targetm instruction
3797 patterns.
3798 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3799 (do_tablejump): Likewise.
3800 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3801 (expand_sjlj_dispatch_table): Likewise.
3802 * targhooks.c (default_case_values_threshold): Likewise.
3803
3804 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
3805
3806 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3807 Use rtx_insn * instead of rtx.
3808 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3809 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3810 (nios2_call_tls_get_addr): Likewise.
3811 (nios2_emit_expensive_div): Likewise.
3812 (nios2_emit_move_sequence): Change return type to bool.
3813 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3814 Change return type to bool.
3815
3816 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3817
3818 PR target/66747
3819 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3820
3821 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
3822
3823 PR target/66114
3824 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3825 of register_operand. Remove constraint.
3826
3827 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
3828
3829 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3830 the first argument.
3831
3832 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
3833
3834 * attribs.c (decl_attributes): Guard inform with the return value
3835 of the preceding warning.
3836
3837 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3838
3839 * doc/invoke.texi (moverride): Move to correct section.
3840
3841 2015-07-03 Richard Biener <rguenther@suse.de>
3842
3843 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3844 Copy from tree.c
3845 (dt_operand::gen_gimple_expr): After valueizing operands
3846 re-canonicalize operand order for commutative tree codes.
3847
3848 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 PR target/66746.
3851 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3852 is defined.
3853 (__crc32w): Likewise.
3854 (__crc32d): Likewise.
3855 (__rdpmc): Likewise.
3856 (__rdtscp): Likewise.
3857 (_rdpmc): Likewise.
3858 (_rdtscp): Likewise.
3859 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3860 is defined.
3861
3862 2015-07-03 Richard Biener <rguenther@suse.de>
3863
3864 * fold-const.c (fold_mathfn_compare): Remove.
3865 (fold_inf_compare): Likewise.
3866 (fold_comparison): Move floating point comparison simplifications...
3867 * match.pd: ... to patterns here. Introduce simple_comparisons
3868 operator list and use it for patterns formerly in fold_comparison.
3869
3870 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3871
3872 PR tree-optimization/66119
3873 * toplev.c (process_options): Don't set up default values for
3874 the sra_max_scalarization_size_{speed,size} parameters.
3875 * tree-sra (analyze_all_variable_accesses): If no values
3876 have been set for the sra_max_scalarization_size_{speed,size}
3877 parameters, call get_move_ratio to get target defaults.
3878
3879 2015-07-03 Richard Biener <rguenther@suse.de>
3880
3881 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3882 * match.pd: ... here.
3883
3884 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
3885
3886 PR target/37072
3887 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3888 is not actually the default on FreeBSD.
3889
3890 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3891
3892 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3893 definition.
3894 (CMPGE_8HI): Likewise.
3895 (CMPGE_4SI): Likewise.
3896 (CMPGE_2DI): Likewise.
3897 (CMPGE_U16QI): Likewise.
3898 (CMPGE_U8HI): Likewise.
3899 (CMPGE_U4SI): Likewise.
3900 (CMPGE_U2DI): Likewise.
3901 (CMPLE_16QI): Likewise.
3902 (CMPLE_8HI): Likewise.
3903 (CMPLE_4SI): Likewise.
3904 (CMPLE_2DI): Likewise.
3905 (CMPLE_U16QI): Likewise.
3906 (CMPLE_U8HI): Likewise.
3907 (CMPLE_U4SI): Likewise.
3908 (CMPLE_U2DI): Likewise.
3909 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3910 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3911 ALTIVEC_BUILTIN_VEC_CMPLE.
3912 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3913 floating-point vector modes.
3914 (vector_nlt<mode>): New define_expand.
3915 (vector_nltu<mode>): Likewise.
3916 (vector_ngt<mode>): Likewise.
3917 (vector_ngtu<mode>): Likewise.
3918
3919 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
3920
3921 PR rtl-optimization/66706
3922 * combine.c (make_compound_operation): If an AND of SUBREG of
3923 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3924
3925 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
3926
3927 * tree-pass.h (make_pass_ch_vect): New.
3928 * passes.def: Add pass_ch_vect just before pass_if_conversion.
3929
3930 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3931 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3932 make_pass_ch_vect): New.
3933 (pass_ch): Extend ch_base.
3934
3935 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3936 (ch_base::copy_headers): ...here.
3937
3938 2015-07-02 Richard Biener <rguenther@suse.de>
3939
3940 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3941 * fold-const.c (get_pointer_modulus_and_residue): Remove.
3942 (fold_binary_loc): Implement (T)ptr & CST in terms of
3943 get_pointer_alignment_1.
3944 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3945 Make sure to build the alignment test on a SSA name without
3946 final alignment info valid only after the prologue.
3947
3948 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
3949
3950 * config/cris/cris.md ("epilogue"): Remove condition.
3951 ("prologue"): Ditto.
3952
3953 2015-07-02 Richard Biener <rguenther@suse.de>
3954
3955 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3956 parameter to record a condition that is false.
3957 (record_conditions): When recording an extra NE_EXPR that is
3958 true also record a EQ_EXPR that is false.
3959
3960 2015-07-02 Bin Cheng <bin.cheng@arm.com>
3961
3962 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3963 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3964 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
3965 (set_iv, find_interesting_uses_address, add_candidate_1): New
3966 argument to alloc_iv.
3967 (find_interesting_uses_op, find_interesting_uses_cond): Don't
3968 duplicate struct iv.
3969 (free_loop_data): Don't free struct iv explicitly.
3970 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3971
3972 2015-07-01 DJ Delorie <dj@redhat.com>
3973
3974 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3975 (LIB_SPEC): Add.
3976 (SUPPORTS_DISCRIMINATOR): Define.
3977
3978 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3979
3980 PR bootstrap/66685
3981 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3982 there are no CALLs in the same pattern.
3983
3984 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3985
3986 PR rtl-optimization/61047
3987 * rtlanal.c (get_initial_register_offset): New function.
3988 (rtx_addr_can_trap_p_1): Check offsets of stack references.
3989
3990 2015-07-01 Richard Biener <rguenther@suse.de>
3991
3992 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3993 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3994 ~X CMP C -> X CMP' ~C to ...
3995 * match.pd: ... patterns here.
3996
3997 2015-07-01 Nick Clifton <nickc@redhat.com>
3998
3999 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
4000 a 16-bit value into a 20-bit memory slot.
4001
4002 2015-07-01 Jiong Wang <jiong.wang@arm.com>
4003
4004 * doc/sourcebuild.texi (AArch64-specific attributes): Document
4005 "aarch64_tiny", "aarch64_small", "aarch64_large",
4006 "aarch64_little_endian", "aarch64_big_endian".
4007
4008 2015-07-01 Jiong Wang <jiong.wang@arm.com>
4009
4010 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
4011 Document "aarch64_small_fpic".
4012
4013 2015-07-01 Jiong Wang <jiong.wang@arm.com>
4014
4015 * configure.ac: Add check for aarch64 assembler -fpic relocation
4016 modifier support.
4017 * configure: Regenerate.
4018 * config.in: Regenerate.
4019 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
4020 to -fPIC if not support of -fpic relocation modifier in assembler.
4021
4022 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
4023
4024 PR bootstrap/66685
4025 * rtl.c (classify_insn): Handle returns in PARALLELs.
4026
4027 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
4028
4029 PR middle-end/66633
4030 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
4031 to true if the function is nested and if not optimizing.
4032 (convert_local_omp_clauses): Initialize need_frame to true if the
4033 function contains nested functions and if not optimizing.
4034
4035 2015-07-01 Richard Biener <rguenther@suse.de>
4036
4037 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
4038 (X & Y) ^ Y -> ~X & Y transforms to ...
4039 * match.pd: ... here.
4040
4041 2015-07-01 Richard Biener <rguenther@suse.de>
4042
4043 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
4044 of converts to avoid uninteresting noise from the conversion
4045 simplifying patterns.
4046
4047 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
4048
4049 * config/c6x/c6x.c (try_rename_operands): Do not depend on
4050 gcc_assert evaluating its argument for side-effect.
4051
4052 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
4053
4054 PR target/64833
4055 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
4056 flag_pic is set.
4057
4058 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
4059
4060 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
4061 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
4062 (hash_scc): Add this_ref_p and ref_p parameters and pass them
4063 to the inner DFS walk.
4064
4065 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
4066
4067 * target-insns.def (jump): New targetm instruction pattern.
4068 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
4069 instead of gen_jump.
4070 (fix_up_crossing_landing_pad): Likewise.
4071 (add_labels_and_missing_jumps): Likewise.
4072 (fix_crossing_conditional_branches): Likewise.
4073 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4074 (force_nonfallthru_and_redirect): Likewise.
4075 * cse.c (cse_insn): Likewise.
4076 * expmed.c (expand_divmod): Likewise.
4077 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
4078 * haifa-sched.c (init_before_recovery): Likewise.
4079 (sched_create_recovery_edges): Likewise.
4080 * ifcvt.c (find_cond_trap): Likewise.
4081 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
4082 (expand_float, expand_fix): Likewise.
4083 * stmt.c (emit_jump): Likewise.
4084
4085 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
4086
4087 * defaults.h (HAVE_load_multiple, gen_load_multiple)
4088 (HAVE_store_multiple, gen_store_multiple): Delete.
4089 * target-insns.def (load_multiple, store_multiple): New targetm
4090 instruction patterns.
4091 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
4092 of HAVE_*/gen_* interface.
4093
4094 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
4095
4096 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
4097 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
4098 (gen_mem_signal_fence): Delete.
4099 * target-insns.def (mem_signal_fence, mem_thread_fence)
4100 (memory_barrier): New targetm instruction patterns.
4101 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
4102 interface.
4103 (expand_mem_signal_fence): Likewise.
4104
4105 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
4106
4107 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
4108 * target-insns.def (epilogue, prologue, sibcall_prologue): New
4109 targetm instruction patterns.
4110 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
4111 interface.
4112 * calls.c (expand_call): Likewise.
4113 * cfgrtl.c (cfg_layout_finalize): Likewise.
4114 * df-scan.c (df_get_entry_block_def_set): Likewise.
4115 (df_get_exit_block_use_set): Likewise.
4116 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
4117 * final.c (final_start_function): Likewise.
4118 * function.c (thread_prologue_and_epilogue_insns): Likewise.
4119 (reposition_prologue_and_epilogue_notes): Likewise.
4120 * reorg.c (find_end_label): Likewise.
4121 * toplev.c (process_options): Likewise.
4122
4123 2015-06-30 David Malcolm <dmalcolm@redhat.com>
4124
4125 * typed-splay-tree.h: New file.
4126
4127 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
4128
4129 PR debug/66691
4130 * lra-int.h (lra_substitute_pseudo): Add a parameter.
4131 (lra_substitute_pseudo_within_insn): Ditto.
4132 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
4133 of constant.
4134 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
4135 to lra_substitute_pseudo.
4136 * lra-lives.c (process_bb_lives): Add an argument to
4137 lra_substitute_pseudo_within_insn call.
4138 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
4139 argument to lra_substitute_pseudo and
4140 lra_substitute_pseudo_within_insn calls.
4141 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
4142
4143 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
4144
4145 * configure: Regenerated.
4146
4147 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
4148
4149 * config.gcc: Support i[34567]86-*-elfiamcu target.
4150 * config/i386/iamcu.h: New.
4151 * config/i386/i386.opt: Add -miamcu.
4152 * doc/invoke.texi: Document -miamcu.
4153 * common/config/i386/i386-common.c (ix86_handle_option): Turn
4154 off x87/MMX/SSE/AVX codegen for -miamcu.
4155 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4156 __iamcu/__iamcu__ for -miamcu.
4157 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
4158 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
4159 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
4160 * config/i386/i386.c (ix86_option_override_internal): Ignore and
4161 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
4162 MCU by default. Default long double to 64-bit for Intel MCU.
4163 Turn on -freg-struct-return for Intel MCU. Issue an error when
4164 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
4165 AVX is turned on.
4166 (function_arg_advance_32): Pass value whose size is no larger
4167 than 8 bytes in registers for Intel MCU.
4168 (function_arg_32): Likewise.
4169 (ix86_return_in_memory): Return value whose size is no larger
4170 than 8 bytes in registers for Intel MCU.
4171 (iamcu_alignment): New function.
4172 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
4173 true.
4174 (ix86_local_alignment): Don't increase alignment for Intel MCU.
4175 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
4176 true.
4177
4178 2015-06-30 Marek Polacek <polacek@redhat.com>
4179
4180 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
4181 both operands of the resulting expression.
4182
4183 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
4184 the final expression with the operand's type and then convert
4185 it to the type of the expression.
4186
4187 2015-06-30 Richard Biener <rguenther@suse.de>
4188
4189 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
4190 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
4191 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
4192 * match.pd: ... to patterns here.
4193
4194 2015-06-30 Richard Biener <rguenther@suse.de>
4195
4196 PR tree-optimization/66704
4197 * tree-vect-data-refs.c (vect_setup_realignment): Use
4198 make_ssa_name for non-SSA name source.
4199
4200 2015-06-30 Jakub Jelinek <jakub@redhat.com>
4201
4202 PR middle-end/66702
4203 * omp-low.c (simd_clone_adjust): Handle addressable linear
4204 or uniform parameters or non-gimple type uniform parameters.
4205
4206 2015-06-30 Richard Biener <rguenther@suse.de>
4207
4208 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
4209 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
4210 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
4211 * match.pd: ... here.
4212 Add a few cases of A - B -> A + (-B) when B "easily" negates.
4213 Move (x & y) | x -> x and friends before
4214 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
4215
4216 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
4217
4218 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
4219 -mfix-ut699 is not specified.
4220 (leon3_load): Rename into...
4221 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
4222 is specified.
4223
4224 2015-06-30 Marek Polacek <polacek@redhat.com>
4225
4226 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
4227 * match.pd: ... here.
4228
4229 2015-06-30 Richard Biener <rguenther@suse.de>
4230
4231 * target-insns.def (canonicalize_funcptr_for_compare): Add.
4232 * fold-const.c (build_range_check): Replace uses of
4233 HAVE_canonicalize_funcptr_for_compare.
4234 (fold_widened_comparison): Likewise.
4235 (fold_sign_changed_comparison): Likewise.
4236 * dojump.c: Include "target.h".
4237 (do_compare_and_jump): Replace uses of
4238 HAVE_canonicalize_funcptr_for_compare and
4239 gen_canonicalize_funcptr_for_compare.
4240 * expr.c (do_store_flag): Likewise.
4241
4242 2015-06-30 Tom de Vries <tom@codesourcery.com>
4243
4244 PR tree-optimization/66652
4245 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4246 max_loop_iterations to determine if nit + 1 overflows.
4247
4248 2015-06-30 Richard Biener <rguenther@suse.de>
4249
4250 * tree-vrp.c (register_edge_assert_for_2): Also register
4251 asserts for dominating conversion results.
4252
4253 2015-06-30 Bin Cheng <bin.cheng@arm.com>
4254
4255 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
4256 field in struct iv.
4257
4258 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
4259
4260 PR target/66509
4261 * configure.ac: Fix filds and fildq test for 64-bit.
4262 * configure: Regenerated.
4263
4264 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
4265
4266 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
4267 (nvptx_reorg): Here. Keep the non-subreg pieces.
4268
4269 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
4270
4271 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4272 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4273
4274 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
4275
4276 * config/i386/i386.md (*jcc_1): Use %! in asm template.
4277 Set attribute "length_nobnd" instead of "length".
4278 (*jcc_2): Ditto.
4279 (jump): Ditto.
4280 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4281
4282 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
4283
4284 * config/nios2/nios2.c (nios2_delegitimize_address): Make
4285 assert less restrictive.
4286
4287 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4288
4289 PR fortran/66605
4290 * cgraphunit.c (cgraph_node::finalize_function): Do not call
4291 do_warn_unused_parameter.
4292 * function.c (do_warn_unused_parameter): Move from here.
4293 * function.h (do_warn_unused_parameter): Do not declare.
4294
4295 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4296
4297 PR target/65697
4298 * gcc.target/arm/armv-sync-comp-swap.c: New.
4299 * gcc.target/arm/armv-sync-op-acquire.c: New.
4300 * gcc.target/arm/armv-sync-op-full.c: New.
4301 * gcc.target/arm/armv-sync-op-release.c: New.
4302
4303 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4304
4305 PR target/65697
4306 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4307 initial acquire barrier with final barrier.
4308
4309 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4310
4311 PR target/65697
4312 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4313 initial acquire barrier with final barrier.
4314
4315 2015-06-29 Richard Henderson <rth@redhat.com>
4316
4317 * config/i386/constraints.md (Bf): New constraint.
4318 * config/i386/i386-c.c (ix86_target_macros): Define
4319 __GCC_ASM_FLAG_OUTPUTS__.
4320 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4321 as flags outputs.
4322 * doc/extend.texi (FlagOutputOperands): Document them.
4323
4324 2015-06-29 Jiong Wang <jiong.wang@arm.com>
4325
4326 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4327 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4328 unspec name.
4329 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4330 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4331 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4332 (aarch64_symbol_context): Ditto.
4333 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4334 and use new pattern name.
4335 (aarch64_expand_mov_immediate): Ditto.
4336 (aarch64_print_operand): Ditto.
4337 (aarch64_classify_tls_symbol): Ditto.
4338
4339 2015-06-29 Marek Polacek <polacek@redhat.com>
4340 Marc Glisse <marc.glisse@inria.fr>
4341
4342 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4343 * match.pd: ... pattern here.
4344
4345 2015-06-29 Tom de Vries <tom@codesourcery.com>
4346
4347 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4348 function structure.
4349
4350 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4351
4352 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4353 feature description, split out the native option, add a link to
4354 the feature documentation, rearrange and slightly rewrite text.
4355 (Aarch64 options, -mcpu): Likewise.
4356 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
4357 +rdma implies Adv. SIMD.
4358
4359 2015-06-29 Marek Polacek <polacek@redhat.com>
4360
4361 PR c/66322
4362 * function.c (stack_protect_epilogue): Remove a cast to int.
4363 * doc/invoke.texi: Update -Wswitch-bool description.
4364
4365 2015-06-29 Richard Biener <rguenther@suse.de>
4366
4367 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4368 * fold-const.c (fold_binary_loc): Move &A - &B simplification
4369 via ptr_difference_const ...
4370 * match.pd: ... here.
4371 When matching (X ^ Y) == Y also match with swapped operands.
4372
4373 2015-06-29 Richard Biener <rguenther@suse.de>
4374
4375 * lto-streamer.h (LTO_major_version): Bump to 5.
4376
4377 2015-06-29 Richard Biener <rguenther@suse.de>
4378
4379 PR tree-optimization/66677
4380 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4381 STMT_VINFO_VEC_STMT clobbering less strict.
4382
4383 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4384
4385 PR middle-end/64130
4386 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4387 division, compute max and min when value ranges for dividend and
4388 divisor are available.
4389
4390 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
4391 Sandra Loosemore <sandra@codesourcery.com>
4392
4393 * regrename.h (regrename_do_replace): Change to return bool.
4394 * regrename.c (rename_chains): Check return value of
4395 regname_do_replace.
4396 (regrename_do_replace): Re-validate the modified insns and
4397 return bool status.
4398 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4399 Update to match rename_chains changes.
4400 * config/c6x/c6x.c (try_rename_operands): Assert that
4401 regrename_do_replace returns true.
4402
4403 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
4404
4405 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4406 operand 2 here. Use copy_addr_to_reg to copy non-index
4407 register operand 2 to a temporary.
4408 (<mode>_stx): Ditto for operand 1.
4409 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4410 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4411 (ix86_store_bounds): Ditto.
4412
4413 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
4414
4415 * print-tree.c (print_node) [TREE_VEC]: Print its length.
4416
4417 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
4418
4419 * gimple.c (gimple_call_set_fndecl): Remove.
4420 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4421 build1_loc directly instead of build_fold_addr_expr_loc.
4422
4423 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4424
4425 * hash-map.h (hash_map::traverse): Use the definition of the
4426 Key typedef rather than the typedef itself.
4427
4428 2015-06-26 Martin Jambor <mjambor@suse.cz>
4429
4430 PR debug/66301
4431 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4432 NULL instead of calling dump_enabled_p.
4433
4434 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4435
4436 * config/aarch64/aarch64.opt: (override): New.
4437 * doc/invoke.texi (override): Document.
4438 * config/aarch64/aarch64.c (aarch64_flag_desc): New
4439 (aarch64_fusible_pairs): Likewise.
4440 (aarch64_tuning_flags): Likewise.
4441 (aarch64_tuning_override_function): Likewise.
4442 (aarch64_tuning_override_functions): Likewise.
4443 (aarch64_parse_one_option_token): Likewise.
4444 (aarch64_parse_boolean_options): Likewise.
4445 (aarch64_parse_fuse_string): Likewise.
4446 (aarch64_parse_tune_string): Likewise.
4447 (aarch64_parse_one_override_token): Likewise.
4448 (aarch64_parse_override_string): Likewise.
4449 (aarch64_override_options): Parse the -override string if it
4450 is present.
4451
4452 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4453
4454 * config/aarch64/aarch64-protos.h (tune_params): Remove
4455 const from members.
4456 (aarch64_tune_params): Remove const, change to no longer be
4457 a pointer.
4458 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4459 change to no longer be a pointer, initialize to generic_tunings.
4460 (aarch64_min_divisions_for_recip_mul): Change dereference of
4461 aarch64_tune_params to member access.
4462 (aarch64_reassociation_width): Likewise.
4463 (aarch64_rtx_mult_cost): Likewise.
4464 (aarch64_address_cost): Likewise.
4465 (aarch64_branch_cost): Likewise.
4466 (aarch64_rtx_costs): Likewise.
4467 (aarch64_register_move_cost): Likewise.
4468 (aarch64_memory_move_cost): Likewise.
4469 (aarch64_sched_issue_rate): Likewise.
4470 (aarch64_builtin_vectorization_cost): Likewise.
4471 (aarch64_override_options): Take a copy of the selected tuning
4472 struct in to aarch64_tune_params, rather than just setting
4473 a pointer, change dereferences of aarch64_tune_params to member
4474 accesses.
4475 (aarch64_override_options_after_change): Change dereferences of
4476 aarch64_tune_params to member access.
4477 (aarch64_macro_fusion_p): Likewise.
4478 (aarch_macro_fusion_pair_p): Likewise.
4479 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4480
4481 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4482
4483 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4484 (aarch64_tune_flags): Likewise.
4485 (AARCH64_TUNE_FMA_STEERING): Likewise.
4486 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4487 to AARCH64_FL_USE_FMA_STEERING_PASS.
4488 (cortex-a57.cortex-a53): Likewise.
4489 (cortex-a72): Use cortexa72_tunings.
4490 (cortex-a72.cortex-a53): Likewise.
4491 (exynos-m1): Likewise.
4492 * config/aarch64/aarch64-protos.h (tune_params): Add
4493 a field: extra_tuning_flags.
4494 * config/aarch64/aarch64-tuning-flags.def: New.
4495 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4496 (aarch64_extra_tuning_flags): Likewise.
4497 (aarch64_tune_params): Declare here.
4498 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4499 (cortexa53_tunings): Likewise.
4500 (cortexa57_tunings): Likewise.
4501 (thunderx_tunings): Likewise.
4502 (xgene1_tunings): Likewise.
4503 (cortexa72_tunings): New.
4504 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4505 (gate): Check against aarch64_tune_params.
4506 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4507 aarch64-protos.h.
4508
4509 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4510
4511 * config/aarch64/aarch64-fusion-pairs.def: New.
4512 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4513 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4514 aarch64_fusion_pairs.
4515 (AARCH64_FUSE_MOV_MOVK): Likewise.
4516 (AARCH64_FUSE_ADRP_ADD): Likewise.
4517 (AARCH64_FUSE_MOVK_MOVK): Likewise.
4518 (AARCH64_FUSE_ADRP_LDR): Likewise.
4519 (AARCH64_FUSE_CMP_BRANCH): Likewise.
4520
4521 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4522
4523 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4524 SYMBOL_SMALL_GOT_28K.
4525 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4526 relocation modifiers.
4527 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4528 (ldr_got_small_28k_<mode>): New.
4529 (ldr_got_small_28k_sidi): New.
4530 * config/aarch64/iterators.md (got_modifier): New mode iterator.
4531 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4532 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4533 SYMBOL_SMALL_GOT_28K.
4534 (aarch64_rtx_costs): Add costs for new instruction sequences.
4535 (initialize_aarch64_code_model): Initialize new model.
4536 (aarch64_classify_symbol): Recognize new model and new symbol classification.
4537 (aarch64_asm_preferred_eh_data_format): Support new model.
4538 (aarch64_load_symref_appropriately): Generate new instruction
4539 sequences for -fpic.
4540 (TARGET_USE_PSEUDO_PIC_REG): New definition.
4541 (aarch64_use_pseudo_pic_reg): New function.
4542
4543 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4544
4545 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4546 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4547 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4548 (aarch64_expand_mov_immediate): Ditto.
4549 (aarch64_print_operand): Ditto.
4550 (aarch64_classify_symbol): Ditto.
4551
4552 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
4553
4554 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4555
4556 2015-06-26 Bin Cheng <bin.cheng@arm.com>
4557
4558 PR bootstrap/66638
4559 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4560 assertion failed. Remove assertion itself.
4561
4562 2015-06-26 Richard Biener <rguenther@suse.de>
4563
4564 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4565 and -A CMP CST -> A CMP -CST which is redundant with a pattern
4566 in match.pd.
4567 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4568 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4569 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4570 * match.pd: ... patterns here.
4571
4572 2015-06-26 Marek Polacek <polacek@redhat.com>
4573
4574 * match.pd ((x | y) & ~(x & y) -> x ^ y,
4575 (x | y) & (~x ^ y) -> x & y): New patterns.
4576
4577 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4578
4579 * rtl.h (emit): Add an optional boolean parameter to control
4580 whether barriers are emitted.
4581 * emit-rtl.c (emit): Likewise.
4582 * gensupport.c (get_emit_function): Return null rather than "emit".
4583 * genemit.c (gen_emit_seq): Handle the null return value.
4584 Don't emit barriers after the final instruction in the sequence.
4585 * gentarget-def.c (main): Don't emit barriers after the instruction.
4586
4587 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4588
4589 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4590 TARGET_UNIFIED_ASM.
4591
4592 2015-06-26 Richard Biener <rguenther@suse.de>
4593
4594 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4595
4596 2015-06-26 Richard Biener <rguenther@suse.de>
4597
4598 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4599 irrespective on whether the inner operation has a single use
4600 of both off are constant.
4601
4602 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
4603 Segher Boessenkool <segher@kernel.crashing.org>
4604
4605 PR target/66412
4606 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4607 before doing PUT_MODE or PUT_CODE on operands to avoid
4608 in-place RTX modification.
4609
4610 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4611
4612 * gentarget-def.c (def_target_insn): Cast return of strtol to
4613 unsigned int.
4614
4615 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4616
4617 * gimple.h (gimple_call_set_fn): Move inline function.
4618 * gimple.c (gimple_call_set_fn): Relocate here.
4619
4620 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
4621
4622 PR target/65979
4623 PR target/66611
4624 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4625 the replacement insn will work.
4626
4627 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4628
4629 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4630 by default.
4631
4632 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4633
4634 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4635 * cgraph.h: Include ipa-ref.h and plugin-api.h.
4636 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4637 (symtab_node::address_can_be_compared_p): Move function.
4638 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4639 definition here.
4640 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4641 * auto-profile.c: Likewise.
4642 * bb-reorder.c: Likewise.
4643 * builtins.c: Likewise.
4644 * calls.c: Likewise.
4645 * cfgexpand.c: Likewise.
4646 * cgraphbuild.c: Likewise.
4647 * cgraphclones.c: Likewise.
4648 * cgraphunit.c: Likewise.
4649 * combine.c: Likewise.
4650 * coverage.c: Likewise.
4651 * data-streamer-in.c: Likewise.
4652 * data-streamer-out.c: Likewise.
4653 * data-streamer.c: Likewise.
4654 * dbxout.c: Likewise.
4655 * dwarf2out.c: Likewise.
4656 * except.c: Likewise.
4657 * expr.c: Likewise.
4658 * final.c: Likewise.
4659 * fold-const.c: Likewise.
4660 * ggc-page.c: Likewise.
4661 * gimple-fold.c: Likewise.
4662 * gimple-iterator.c: Likewise.
4663 * gimple-pretty-print.c: Likewise.
4664 * gimple-streamer-in.c: Likewise.
4665 * gimple-streamer-out.c: Likewise.
4666 * gimple.c: Likewise.
4667 * gimplify.c: Likewise.
4668 * ipa-chkp.c: Likewise.
4669 * ipa-comdats.c: Likewise.
4670 * ipa-cp.c: Likewise.
4671 * ipa-devirt.c: Likewise.
4672 * ipa-icf-gimple.c: Likewise.
4673 * ipa-icf.c: Likewise.
4674 * ipa-inline-analysis.c: Likewise.
4675 * ipa-inline-transform.c: Likewise.
4676 * ipa-inline.c: Likewise.
4677 * ipa-polymorphic-call.c: Likewise.
4678 * ipa-profile.c: Likewise.
4679 * ipa-prop.c: Likewise.
4680 * ipa-pure-const.c: Likewise.
4681 * ipa-ref.c: Likewise.
4682 * ipa-reference.c: Likewise.
4683 * ipa-split.c: Likewise.
4684 * ipa-utils.c: Likewise.
4685 * ipa-visibility.c: Likewise.
4686 * ipa.c: Likewise.
4687 * langhooks.c: Likewise.
4688 * lto-cgraph.c: Likewise.
4689 * lto-compress.c: Likewise.
4690 * lto-opts.c: Likewise.
4691 * lto-section-in.c: Likewise.
4692 * lto-section-out.c: Likewise.
4693 * lto-streamer-in.c: Likewise.
4694 * lto-streamer-out.c: Likewise.
4695 * lto-streamer.c: Likewise.
4696 * omp-low.c: Likewise.
4697 * opts-global.c: Likewise.
4698 * passes.c: Likewise.
4699 * predict.c: Likewise.
4700 * print-tree.c: Likewise.
4701 * profile.c: Likewise.
4702 * ree.c: Likewise.
4703 * sanopt.c: Likewise.
4704 * stor-layout.c: Likewise.
4705 * symtab.c: Likewise.
4706 * toplev.c: Likewise.
4707 * trans-mem.c: Likewise.
4708 * tree-cfg.c: Likewise.
4709 * tree-chkp.c: Likewise.
4710 * tree-eh.c: Likewise.
4711 * tree-emutls.c: Likewise.
4712 * tree-inline.c: Likewise.
4713 * tree-nested.c: Likewise.
4714 * tree-parloops.c: Likewise.
4715 * tree-pretty-print.c: Likewise.
4716 * tree-profile.c: Likewise.
4717 * tree-sra.c: Likewise.
4718 * tree-ssa-alias.c: Likewise.
4719 * tree-ssa-live.c: Likewise.
4720 * tree-ssa-loop-ivcanon.c: Likewise.
4721 * tree-ssa-loop-ivopts.c: Likewise.
4722 * tree-ssa-pre.c: Likewise.
4723 * tree-ssa-sccvn.c: Likewise.
4724 * tree-ssa-strlen.c: Likewise.
4725 * tree-ssa-structalias.c: Likewise.
4726 * tree-streamer-in.c: Likewise.
4727 * tree-streamer-out.c: Likewise.
4728 * tree-streamer.c: Likewise.
4729 * tree-switch-conversion.c: Likewise.
4730 * tree-tailcall.c: Likewise.
4731 * tree-vect-data-refs.c: Likewise.
4732 * tree-vect-stmts.c: Likewise.
4733 * tree-vectorizer.c: Likewise.
4734 * tree.c: Likewise.
4735 * tsan.c: Likewise.
4736 * ubsan.c: Likewise.
4737 * value-prof.c: Likewise.
4738 * varasm.c: Likewise.
4739 * varpool.c: Likewise.
4740 * config/arm/arm.c: Likewise.
4741 * config/bfin/bfin.c: Likewise.
4742 * config/c6x/c6x.c: Likewise.
4743 * config/cris/cris.c: Likewise.
4744 * config/darwin-c.c: Likewise.
4745 * config/darwin.c: Likewise.
4746 * config/i386/i386.c: Likewise.
4747 * config/i386/winnt.c: Likewise.
4748 * config/microblaze/microblaze.c: Likewise.
4749 * config/mips/mips.c: Likewise.
4750 * config/rs6000/rs6000.c: Likewise.
4751 * config/rx/rx.c: Likewise.
4752 * config/s390/s390.c: Likewise.
4753 * config/tilegx/mul-tables.c: Likewise.
4754
4755 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4756
4757 * config/aarch64/aarch64.c, config/alpha/alpha.c,
4758 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4759 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4760 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4761 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4762 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4763 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4764 config/microblaze/microblaze.c, config/mips/mips.c,
4765 config/mmix/mmix.c, config/mn10300/mn10300.c,
4766 config/moxie/moxie.c, config/msp430/msp430.c,
4767 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4768 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4769 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4770 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4771 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4772 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4773 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4774 target-def.h include.
4775 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
4776
4777 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4778
4779 * Makefile.in (TARGET_DEF): Add target-insns.def.
4780 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4781 (build/gentarget-def.o): New rule.
4782 (genprogrtl): Add target-def.
4783 * target-insns.def, gentarget-def.c: New files.
4784 * target.def: Add targetm.have_* and targetm.gen_* hooks,
4785 based on the contents of target-insns.def.
4786 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4787 (HAVE_return, gen_return): Delete.
4788 * target-def.h: Include insn-target-def.h.
4789 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4790 instead of direct calls. Rely on them to do the appropriate assertions.
4791 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
4792 (convert_jumps_to_returns): Use targetm interface instead of
4793 direct calls.
4794 (thread_prologue_and_epilogue_insns): Likewise.
4795 * reorg.c (find_end_label, dbr_schedule): Likewise.
4796 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4797 * shrink-wrap.c (convert_to_simple_return): Likewise.
4798 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4799
4800 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4801
4802 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4803 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4804 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4805 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4806 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4807 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4808 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4809 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4810 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4811 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4812 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4813 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4814 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4815 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4816 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4817 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4818 includes to end.
4819
4820 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4821
4822 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4823 (unbounded_int_hashmap_traits::key_type): Likewise.
4824 * hash-map.h (hash_map): Get the key type from the traits.
4825 * hash-traits.h (default_hash_traits): By default, inherit from the
4826 template parameter.
4827 * alias.c (alias_set_traits): Delete.
4828 (alias_set_entry_d::children): Use alias_set_hash as the first
4829 template parameter.
4830 (record_alias_subset): Update accordingly.
4831 * except.c (tree_hash_traits): Delete.
4832 (type_to_runtime_map): Use tree_hash as the first template parameter.
4833 (init_eh): Update accordingly.
4834 * genmatch.c (capture_id_map_hasher): Delete.
4835 (cid_map_t): Use nofree_string_hash as first template parameter.
4836 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4837 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4838 Use symbol_compare_hash as the first template parameter in
4839 subdivide_hash_map.
4840 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4841 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4842 template parameter.
4843 * passes.c (pass_registry_hasher): Delete.
4844 (name_to_pass_map): Use nofree_string_hash as the first template
4845 parameter.
4846 (register_pass_name): Update accordingly.
4847 * sanopt.c (sanopt_tree_map_traits): Delete.
4848 (sanopt_tree_triplet_map_traits): Delete.
4849 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4850 template parameter.
4851 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4852 the first template parameter.
4853 * sese.c (rename_map_hasher): Delete.
4854 (rename_map_type): Use tree_ssa_name_hash as the first template
4855 parameter.
4856 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4857 (function_summary::m_map): Use map_hash as the first template
4858 parameter.
4859 (function_summary::release): Update accordingly.
4860 * tree-if-conv.c (phi_args_hash_traits): Delete.
4861 (predicate_scalar_phi): Use tree_operand_hash as the first template
4862 parameter to phi_arg_map.
4863 * tree-inline.h (dependence_hasher): Delete.
4864 (copy_body_data::dependence_map): Use dependence_hash as the first
4865 template parameter.
4866 * tree-inline.c (remap_dependence_clique): Update accordingly.
4867 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4868 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4869 parameter.
4870 (addr_stridxptr): Update accordingly.
4871 * value-prof.c (profile_id_traits): Delete.
4872 (cgraph_node_map): Use profile_id_hash as the first template
4873 parameter.
4874 (init_node_map): Update accordingly.
4875 * config/alpha/alpha.c (string_traits): Delete.
4876 (machine_function::links): Use nofree_string_hash as the first
4877 template parameter.
4878 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4879 * config/m32c/m32c.c (pragma_traits): Delete.
4880 (pragma_htab): Use nofree_string_hash as the first template parameter.
4881 (m32c_note_pragma_address): Update accordingly.
4882 * config/mep/mep.c (pragma_traits): Delete.
4883 (pragma_htab): Use nofree_string_hash as the first template parameter.
4884 (mep_note_pragma_flag): Update accordingly.
4885 * config/mips/mips.c (mips16_flip_traits): Delete.
4886 (mflip_mips16_htab): Use nofree_string_hash as the first template
4887 parameter.
4888 (mflip_mips16_use_mips16_p): Update accordingly.
4889 (local_alias_traits): Delete.
4890 (mips16_local_aliases): Use nofree_string_hash as the first template
4891 parameter.
4892 (mips16_local_alias): Update accordingly.
4893
4894 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4895
4896 * hash-map-traits.h (default_hashmap_traits): Delete.
4897
4898 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4899
4900 * hash-map-traits.h (unbounded_hashmap_traits): New class.
4901 (unbounded_int_hashmap_traits): Likewise.
4902 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4903
4904 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4905
4906 * ipa-icf.h (symbol_compare_hash): New class.
4907 (symbol_compare_hashmap_traits): Use it.
4908 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4909 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4910 (mem_alloc_description::reverse_mem_map_t): Remove redundant
4911 default_hashmap_traits.
4912 * sanopt.c (sanopt_tree_triplet_hash): New class.
4913 (sanopt_tree_triplet_map_traits): Use it.
4914
4915 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4916
4917 * gengtype-parse.c (require_template_declaration): Allow '+' in
4918 template parameters. Consolidate cases.
4919 * hash-traits.h (int_hash): New class.
4920 * alias.c (alias_set_hash): New structure.
4921 (alias_set_traits): Use it.
4922 * symbol-summary.h (function_summary::map_hash): New class.
4923 (function_summary::summary_hashmap_traits): Use it.
4924 * tree-inline.h (dependence_hash): New class.
4925 (dependence_hasher): Use it.
4926 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4927 * value-prof.c (profile_id_hash): New class.
4928 (profile_id_traits): Use it.
4929
4930 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4931
4932 * config/mips/mips.c (mips16_flip_traits): Use it.
4933 (local_alias_traits, mips16_local_aliases): Convert from a map of
4934 rtxes to a map of symbol names.
4935 (mips16_local_alias): Update accordingly.
4936
4937 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4938
4939 * hash-traits.h (string_hash, nofree_string_hash): New classes.
4940 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4941 * passes.c (pass_registry_hasher): Likewise.
4942 * config/alpha/alpha.c (string_traits): Likewise.
4943 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4944 * config/m32c/m32c.c (pragma_traits): Likewise.
4945 * config/mep/mep.c (pragma_traits): Likewise.
4946
4947 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4948
4949 * tree-hash-traits.h (tree_hash): New class.
4950 * except.c: Include tree-hash-traits.h.
4951 (tree_hash_traits): Use tree_hash.
4952
4953 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4954
4955 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4956 * sese.c: Include tree-hash-traits.h.
4957 (rename_map_hasher): Use tree_ssa_name_hasher.
4958
4959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4960
4961 * tree-hash-traits.h (tree_decl_hash): New class.
4962 * tree-ssa-strlen.c: Include tree-hash-traits.h.
4963 (stridxlist_hash_traits): Use tree_decl_hash.
4964
4965 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4966
4967 * tree-hash-traits.h: New file.
4968 (tree_operand_hash): New class.
4969 * sanopt.c: Include tree-hash-traits.h.
4970 (sanopt_tree_map_traits): Use tree_operand_hash.
4971 * tree-if-conv.c: Include tree-hash-traits.h.
4972 (phi_args_hash_traits): Use tree_operand_hash.
4973 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4974 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4975
4976 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4977
4978 * hash-map-traits.h: Include hash-traits.h.
4979 (simple_hashmap_traits): New class.
4980 * mem-stats.h (hash_map): Change the default traits to
4981 simple_hashmap_traits<default_hash_traits<Key> >.
4982
4983 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4984
4985 * hash-table.h: Update comments.
4986
4987 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4988
4989 * hash-traits.h (default_hash_traits): New structure.
4990 * hash-set.h (default_hashset_traits): Delete.
4991 (hash_set): Use default_hash_traits<Key> instead of
4992 default_hashset_traits. Delete hash_entry type and use Key directly.
4993 * ipa-devirt.c (pair_traits): Delete.
4994 (default_hash_traits <type_pair>): Override.
4995 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4996 (odr_types_equivalent_p, add_type_duplicate): Likewise.
4997
4998 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4999
5000 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
5001
5002 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5003
5004 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
5005 (has_is_empty, is_empty_helper): Delete.
5006 (has_mark_deleted, mark_deleted_helper): Delete.
5007 (has_mark_empty, mark_empty_helper): Delete.
5008 (hash_table::is_deleted): Call the Descriptor unconditionally.
5009 (hash_table::is_empty): Likewise.
5010 (hash_table::mark_deleted): Likewise.
5011 (hash_table::mark_empty): Likewise.
5012
5013 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5014
5015 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
5016 redundant typedefs and members.
5017 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
5018 redundant typedefs.
5019 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
5020 * ipa-devirt.c (odr_name_hasher): Likewise.
5021 (polymorphic_call_target_hasher): Likewise.
5022 * ira-costs.c (cost_classes_hasher): Likewise.
5023 * statistics.c (stats_counter_hasher): Likewise.
5024 * trans-mem.c (log_entry_hasher): Likewise.
5025 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
5026 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
5027 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
5028 * var-tracking.c (variable_hasher): Likewise.
5029 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
5030 Remove redundant typedefs and members.
5031
5032 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5033
5034 * hash-traits.h (ggc_cache_hasher): Rename to...
5035 (ggc_cache_remove): ...this and remove typedefs.
5036 (ggc_cache_ptr_hash): New class.
5037 * hash-table.h: Update commentary.
5038 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
5039 rather than ggc_cache_hasher.
5040 (const_wide_int_hasher, reg_attr_hasher): Likewise.
5041 (const_double_hasher, const_fixed_hasher): Likewise.
5042 * function.c (insn_cache_hasher): Likewise.
5043 * trans-mem.c (tm_wrapper_hasher): Likewise.
5044 * tree.h (tree_decl_map_cache_hasher): Likewise.
5045 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
5046 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
5047 * ubsan.c (tree_type_map_cache_hasher): Likewise.
5048 * varasm.c (tm_clone_hasher): Likewise.
5049 * config/i386/i386.c (dllimport_hasher): Likewise.
5050 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
5051 (tree_hasher): Likewise.
5052
5053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5054
5055 * hash-traits.h (ggc_hasher): Rename to...
5056 (ggc_remover): ...this and remove typedefs.
5057 (ggc_cache_hasher): Update accordingly. Add typedefs.
5058 (ggc_ptr_hash): New class.
5059 * hash-table.h: Update comment.
5060 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
5061 ggc_hasher.
5062 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
5063 (tree_descriptor_hasher): Likewise.
5064 * cgraph.c (function_version_hasher): Likewise.
5065 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
5066 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
5067 (dw_loc_list_hasher, addr_hasher): Likewise.
5068 * function.h (used_type_hasher): Likewise.
5069 * function.c (temp_address_hasher): Likewise.
5070 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
5071 * libfuncs.h (libfunc_hasher): Likewise.
5072 * lto-streamer.h (decl_state_hasher): Likewise.
5073 * optabs.c (libfunc_decl_hasher): Likewise.
5074 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
5075 * varasm.c (section_hasher, object_block_hasher): Likewise.
5076 (const_rtx_desc_hasher): Likewise.
5077 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
5078 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
5079
5080 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5081
5082 * hash-traits.h (free_ptr_hash): New class.
5083 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
5084 rather than typed_free_remove. Remove redudant typedefs.
5085 (external_ref_hasher): Likewise.
5086 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
5087 (ehspec_hasher): Likewise.
5088 * ggc-common.c (saving_hasher): Likewise.
5089 * gimplify.c (gimplify_hasher): Likewise.
5090 * haifa-sched.c (delay_i2_hasher): Likewise.
5091 * loop-invariant.c (invariant_expr_hasher): Likewise.
5092 * loop-iv.c (biv_entry_hasher): Likewise.
5093 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
5094 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
5095 * tree-cfg.c (locus_discrim_hasher): Likewise.
5096 * tree-eh.c (finally_tree_hasher): Likewise.
5097 * tree-into-ssa.c (var_info_hasher): Likewise.
5098 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
5099 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
5100 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
5101 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
5102 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
5103 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
5104 (shared_bitmap_hasher): Likewise.
5105 * tree-ssa-threadupdate.c (redirection_data): Likewise.
5106 * tree-vectorizer.h (peel_info_hasher): Likewise.
5107 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
5108 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
5109
5110 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5111
5112 * hash-table.h: Update comments.
5113 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
5114 (nofree_ptr_hash): New class.
5115 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
5116 than typed_noop_remove. Remove redudant typedefs.
5117 * attribs.c (attribute_hasher): Likewise.
5118 * cfg.c (bb_copy_hasher): Likewise.
5119 * cselib.c (cselib_hasher): Likewise.
5120 * dse.c (invariant_group_base_hasher): Likewise.
5121 * dwarf2cfi.c (trace_info_hasher): Likewise.
5122 * dwarf2out.c (macinfo_entry_hasher): Likewise.
5123 (comdat_type_hasher, loc_list_hasher): Likewise.
5124 * gcse.c (pre_ldst_expr_hasher): Likewise.
5125 * genmatch.c (id_base): Likewise.
5126 * genrecog.c (test_pattern_hasher): Likewise.
5127 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
5128 * haifa-sched.c (delay_i1_hasher): Likewise.
5129 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
5130 * ipa-icf.h (congruence_class_group_hash): Likewise.
5131 * ipa-profile.c (histogram_hash): Likewise.
5132 * ira-color.c (allocno_hard_regs_hasher): Likewise.
5133 * lto-streamer.h (string_slot_hasher): Likewise.
5134 * lto-streamer.c (tree_entry_hasher): Likewise.
5135 * plugin.c (event_hasher): Likewise.
5136 * postreload-gcse.c (expr_hasher): Likewise.
5137 * store-motion.c (st_expr_hasher): Likewise.
5138 * tree-sra.c (uid_decl_hasher): Likewise.
5139 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
5140 (ssa_name_var_hash): Likewise.
5141 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
5142 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
5143 * tree-ssa-pre.c (pre_expr_d): Likewise.
5144 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
5145 * vtable-verify.h (registration_hasher): Likewise.
5146 * vtable-verify.c (vtbl_map_hasher): Likewise.
5147 * config/arm/arm.c (libcall_hasher): Likewise.
5148 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
5149 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
5150 * config/sol2.c (comdat_entry_hasher): Likewise.
5151 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
5152 (print_fold_checksum, fold_checksum_tree): Likewise.
5153 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
5154 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
5155 (fold_build_call_array_loc): Likewise.
5156 * tree-ssa-ccp.c (gimple_htab): Likewise.
5157 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
5158 rather than pointer_type.
5159
5160 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5161
5162 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
5163 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
5164
5165 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5166
5167 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
5168 (ggc_hasher::ggc_mx): Likewise.
5169 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
5170 that duplicate ggc_hasher ones.
5171
5172 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5173
5174 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
5175 (gt_cleare_cache): Check here for deleted and empty entries.
5176 Replace handle_cache_entry with a call to keep_cache_entry.
5177 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
5178 (ggc_cache_hasher::keep_cache_entry): New function.
5179 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
5180 (tm_wrapper_hasher::keep_cache_entry): New function.
5181 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
5182 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
5183 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
5184 (type_cache_hasher::keep_cache_entry): New function.
5185 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
5186 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
5187 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
5188 (tree_type_map_cache_hasher::keep_cache_entry): New function.
5189 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
5190 (tm_clone_hasher::keep_cache_entry): New function.
5191 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
5192 (dllimport_hasher::keep_cache_entry): New function.
5193
5194 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5195
5196 * hash-table.h: Include hash-traits.h.
5197 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
5198 (ggc_cache_hasher): Move to...
5199 * hash-traits.h: ...this new file.
5200
5201 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5202
5203 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
5204 struct cl_optimization.
5205 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
5206 * tree.c (make_node_stat): Allocate cl_optimization struct.
5207 (copy_node_stat): Allocate and copy cl_optimization struct.
5208
5209 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5210
5211 * function.h (struct incoming_args): Move struct.
5212 (pass_by_reference, reference_callee_copied): Remove prototypes.
5213 * emit-rtl.h (struct incoming_args): Relocate struct here.
5214 * calls.h (pass_by_reference, reference_callee_copied): Relocate
5215 prototypes here.
5216 * function.c (pass_by_reference, reference_callee_copied): Move.
5217 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
5218 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
5219 * ipa-chkp.c: Include calls.h.
5220
5221 2015-06-25 Andrew Macleod <amacleod@redhat.com>
5222
5223 * alias.h (alias_set_type): Move typedef.
5224 * coretypes.h (alias_set_type): Relocate typedef here.
5225 * rtl.h: Don't include alias.h.
5226
5227 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5228
5229 * cgraph.h (cgraph_rtl_info): Move to rtl.h
5230 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
5231 and instance.
5232 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
5233 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
5234 doesn't exist.
5235 * calls.c: Include hard-reg-set.h before rtl.h.
5236 * ira.c: Likewise.
5237
5238 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5239 Vladimir Makarov <vmakarov@redhat.com>
5240
5241 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
5242 Add assert.
5243
5244 2015-06-25 Richard Biener <rguenther@suse.de>
5245
5246 * fold-const.c (fold_binary_loc): Move simplification of
5247 (X <<>> C1) & C2 ...
5248 * match.pd: ... here.
5249
5250 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
5251
5252 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
5253
5254 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5255
5256 * match.pd: Add patterns for vec_conds between 1 and 0.
5257
5258 2015-06-25 Richard Biener <rguenther@suse.de>
5259
5260 * tree-vect-stmts.c (vectorizable_conversion): Do not set
5261 STMT_VINFO_VEC_STMT for SLP.
5262 (vectorizable_store): Likewise.
5263 (vectorizable_load): Likewise.
5264 (vect_transform_stmt): Catch SLP vectorization clobbering
5265 STMT_VINFO_VEC_STMT.
5266
5267 2015-06-25 Richard Biener <rguenther@suse.de>
5268
5269 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
5270 dumping.
5271 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5272 cleanup resulting dead code and parameters.
5273 (vect_transform_slp_perm_load): Adjust.
5274
5275 2015-06-25 Nick Clifton <nickc@redhat.com>
5276
5277 * config/bfin/bfin.c (bfin_expand_prologue): Set
5278 current_function_static_stack_size if flag_stack_usage_info is set.
5279 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5280 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5281 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5282 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5283
5284 2015-06-25 Tom de Vries <tom@codesourcery.com>
5285
5286 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5287 comment that the generated IV is unsigned.
5288
5289 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5290
5291 PR target/29693
5292 * config/arm/arm.c (arm_dbx_register_number): Return
5293 DWARF_FRAME_REGISTERS by default.
5294
5295 2015-06-25 Tom de Vries <tom@codesourcery.com>
5296
5297 * dominance.c (calculate_dominance_info): Fix verify_dominators call
5298 argument. Call verify_dominator when reusing dominator info.
5299
5300 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
5301
5302 PR target/66563
5303 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5304 an additional element of the unspec vector. Modify indices
5305 of operands.
5306 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5307 * config/sh/sh.c (prepare_move_operands): Pass incremented
5308 const_int to gen_GOTaddr2picreg.
5309 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5310
5311 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5312
5313 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5314 Condition on TARGET_FLOAT.
5315
5316 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5317
5318 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5319 and (no)crypto.
5320
5321 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5322
5323 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5324
5325 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5326 aarch64_err_no_fpadvsimd.
5327
5328 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5329 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5330 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5331 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5332 Turn error into assert, test TARGET_FLOAT.
5333 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5334 TARGET_FLOAT.
5335
5336 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
5337
5338 PR debug/66482
5339 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5340
5341 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5342
5343 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5344
5345 2015-06-24 Renlin Li <renlin.li@arm.com>
5346
5347 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5348 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5349
5350 2015-06-24 Richard Biener <rguenther@suse.de>
5351
5352 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5353 (main): Likewise.
5354 (lower_opt_convert): Support lowering of conditional view_convert.
5355 (parser::parse_operation): Likewise.
5356 (parser::parse_for): Likewise.
5357
5358 2015-06-24 Renlin Li <renlin.li@arm.com>
5359
5360 * varasm.c (emit_local): Use unsigned int for align variable.
5361
5362 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5363
5364 PR target/63408
5365 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5366 for negative numbers.
5367
5368 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5369
5370 PR rtl-optimization/66306
5371 * reload.c (find_reloads): Swap the match_dup info for
5372 commutative operands.
5373
5374 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5375
5376 * config/s390/vx-builtins.md
5377 ("vec_scatter_element<mode>_<non_vec_int>")
5378 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5379 attribute with bhfgq.
5380
5381 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5382
5383 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5384
5385 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5386
5387 * config/s390/s390-builtin-types.def: Add flag to indicate the
5388 options under which the function type is needed.
5389 * config/s390/s390-builtins.def: Add flag to indicate the options
5390 under which the builtin is enabled.
5391 * config/s390/s390-builtins.h: Add flags parameter to macro
5392 definitions.
5393 (bflags_for_builtin): New function.
5394 (flags_for_builtin): Renamed to ...
5395 (opflags_for_builtin): ... this.
5396 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5397 flags_for_builtin to bflags_for_builtin and
5398 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5399 * config/s390/s390.c: Add initialization of bflags_builtin and
5400 opflags_builtin arrays.
5401 Remove code for flags_builtin.
5402 (s390_init_builtins): Only create builtin function types if one of
5403 their flags is active.
5404 Only create builtins if all of their flags are active.
5405 (s390_expand_builtin): Rename flags_for_builtin to
5406 opflags_for_builtin.
5407
5408 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5409
5410 * config/s390/vecintrin.h: Remove internal builtins.
5411
5412 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5413
5414 * config/s390/s390.c (s390_secondary_reload): Fix check for
5415 GENERAL_REGS register class.
5416
5417 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5418
5419 * config/s390/s390.c (s390_support_vector_misalignment): Call
5420 default implementation for !TARGET_VX.
5421
5422 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5423
5424 * config/s390/s390.c (s390_legitimate_constant_p): Add
5425 TARGET_VX check.
5426
5427 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5428
5429 * config/s390/s390.c (s390_vector_abi): New variable definition.
5430 (s390_check_type_for_vector_abi): New function.
5431 (TARGET_ASM_FILE_END): New macro definition.
5432 (s390_asm_file_end): New function.
5433 (s390_function_arg): Call s390_check_type_for_vector_abi.
5434 (s390_gimplify_va_arg): Likewise.
5435 * configure: Regenerate.
5436 * configure.ac: Check for .gnu_attribute Binutils feature.
5437
5438 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
5439
5440 PR target/65803
5441 * config/bfin/bfin.c (hwloop_optimize): Initialize
5442 JUMP_LABEL for newly created jump.
5443
5444 2015-06-23 Tristan Gingold <gingold@adacore.com>
5445
5446 * collect-utils.c (collect_wait): Unlink the response file here
5447 instead of...
5448 (do_wait): ...here.
5449 (utils_cleanup): ...and here.
5450
5451 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5452
5453 * df-scan.c: Don't include target-def.h.
5454 * targhooks.c: Likewise.
5455 * config/arm/arm-c.c: Likewise.
5456 * config/i386/i386-c.c: Likewise.
5457 * config/nds32/nds32-cost.c: Likewise.
5458 * config/nds32/nds32-fp-as-gp.c: Likewise.
5459 * config/nds32/nds32-intrinsic.c: Likewise.
5460 * config/nds32/nds32-isr.c: Likewise.
5461 * config/nds32/nds32-md-auxiliary.c: Likewise.
5462 * config/nds32/nds32-memory-manipulation.c: Likewise.
5463 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5464 * config/nds32/nds32-predicates.c: Likewise.
5465
5466 2015-06-23 Richard Biener <rguenther@suse.de>
5467
5468 PR tree-optimization/66636
5469 * tree-vect-stmts.c (vectorizable_store): Properly compute the
5470 def type for further defs for strided stores.
5471
5472 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
5473
5474 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5475 conditional selects.
5476 (setcc_int<mode>, setcc_float<mode>): Reformat.
5477
5478 2015-06-23 Marek Polacek <polacek@redhat.com>
5479
5480 * match.pd ((x + y) - (x | y) -> x & y,
5481 (x + y) - (x & y) -> x | y): New patterns.
5482
5483 2015-06-23 Ludovic Courtès <ludo@gnu.org>
5484
5485 PR 65711
5486 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5487 '-dynamic-linker' within %{!shared: ...}.
5488
5489 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
5490
5491 PR target/66560
5492 * config/i386/predicates.md (addsub_vm_operator): New predicate.
5493 (addsub_vs_operator): Ditto.
5494 (addsub_vs_parallel): Ditto.
5495 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5496 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5497 Put minus RTX before plus and adjust vec_merge selector.
5498 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5499 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5500 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5501 (addsub vec_merge splitters): New combiner splitters.
5502 (addsub vec_select/vec_concat splitters): Ditto.
5503
5504 2015-06-23 Bin Cheng <bin.cheng@arm.com>
5505
5506 PR tree-optimization/66449
5507 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5508 POINTER_PLUS_EXPR for pointers.
5509
5510 2015-06-23 Alan Modra <amodra@gmail.com>
5511
5512 * rtlanal.c (commutative_operand_precedence): Correct comments.
5513 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5514 declaration. Return an int. Distinguish REG,REG return from
5515 others.
5516 (struct simplify_plus_minus_op_data): Make local to function.
5517 (simplify_plus_minus): Don't set canonicalized if merely sorting
5518 registers. Avoid packing ops if nothing changes. White space fixes.
5519
5520 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5521
5522 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5523 -fdump-ada-spec is passed but not if -fsyntax-only is.
5524
5525 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
5526
5527 PR bootstrap/63740
5528 * lra-lives.c (process_bb_lives): Check insn copying the same
5529 reload pseudo and don't create a copy for it.
5530
5531 2015-06-22 Tom de Vries <tom@codesourcery.com>
5532
5533 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5534 for cond_stmt.
5535
5536 2015-06-22 Tom de Vries <tom@codesourcery.com>
5537
5538 * builtins.def (DEF_GOMP_BUILTIN): Test
5539 'flag_tree_parallelize_loops > 1' instead of
5540 'flag_tree_parallelize_loops'. Test flag_cilkplus.
5541
5542 2015-06-22 Tom de Vries <tom@codesourcery.com>
5543
5544 * dominance.c (calculate_dominance_info): Verify dominators if
5545 early-out.
5546
5547 2015-06-22 Marek Polacek <polacek@redhat.com>
5548
5549 * match.pd ((x ^ y) ^ (x | y) -> x & y,
5550 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5551 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5552 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5553
5554 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
5555
5556 PR target/65871
5557 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5558 cost of embedded comparison.
5559
5560 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5561
5562 PR target/65914
5563 * config/rs6000/predicates.md (altivec_register_operand): Permit
5564 virtual stack registers.
5565 (vsx_register_operand): Likewise.
5566 (vfloat_operand): Likewise.
5567 (vint_operand): Likewise.
5568 (vlogical_operand): Likewise.
5569
5570 2015-06-22 Richard Biener <rguenther@suse.de>
5571
5572 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5573 and single_scalar_iteration_cost members.
5574 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5575 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5576 (vect_get_single_scalar_iteration_cost): Remove.
5577 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5578 Use LOOP_VINFO_SCALAR_ITERATION_COST.
5579 * tree-vect-loop.c (destroy_loop_vec_info): Free
5580 scalar_cost_vec.
5581 (vect_get_single_scalar_iteration_cost): Compute result into
5582 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5583 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
5584 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5585 (vect_estimate_min_profitable_iters): Use them.
5586
5587 2015-06-22 Christian Bruel <christian.bruel@st.com>
5588
5589 PR target/52144
5590 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5591 (TARGET_INSERT_ATTRIBUTES): Define.
5592 (thumb_flipper): New var.
5593 * config/arm/arm.opt (-mflip-thumb): New switch.
5594
5595 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5596 Martin Liska <mliska@suse.cz>
5597
5598 PR ipa/65908
5599 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5600 construction of arg_types.
5601 (sem_function::sem_function): Likewise.
5602 (sem_function::~sem_function): Remove destruction of arg_types.
5603 (sem_function::compatible_parm_types_p): New function.
5604 (sem_function::equals_wpa): Reorg matching of return values
5605 and parameter types.
5606 (sem_function::equals_private): Reorg mathcing of argument types.
5607 (sem_function::parse_tree_args): Remove.
5608 * ipa-icf.h (init_wpa): Do not call it.
5609 (parse_tree_args): Remove.
5610 (compatible_parm_types_p): Declare.
5611 (result_type): Remove.
5612 (arg_types): Remove.
5613
5614 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5615
5616 PR ipa/66351
5617 * ipa-polymorphic-call.c
5618 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5619 initializing alias oracle; fix formating; set base_alias_set if it
5620 is known.
5621
5622 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5623
5624 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5625 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5626 (find_inc): Likewise.
5627 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5628 swapping.
5629 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5630 * df-scan.c (df_swap_refs): Remove.
5631 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5632 * dominance.c (link_roots): Use std::swap instead of manually swapping.
5633 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5634 * fold-const.c (fold_relational_const): Likewise.
5635 * genattrtab.c (simplify_test_exp): Likewise.
5636 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5637 gimple_simplify): Likewise.
5638 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5639 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5640 * ipa-devirt.c (add_type_duplicate): Likewise.
5641 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5642 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5643 * lra.c (lra_create_copy): Likewise.
5644 * lto-streamer-out.c (DFS::DFS): Likewise.
5645 * modulo-sched.c (get_sched_window): Likewise.
5646 * omega.c (omega_pretty_print_problem): Likewise.
5647 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5648 * reload1.c (reloads_unique_chain_p): Likewise.
5649 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5650 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5651 use std::swap.
5652 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5653 manually swapping.
5654 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5655 predicate_mem_writes): Likewise.
5656 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5657 * tree-predcom.c (combine_chains): Likewise.
5658 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5659 refs_may_alias_p_1): Likewise.
5660 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5661 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5662 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5663 number_of_iterations_cond): Likewise.
5664 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5665 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5666 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5667 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5668 * tree-vrp.c (extract_range_from_binary_expr_1,
5669 extract_range_from_unary_expr_1): Likewise.
5670
5671 2015-06-20 Marek Polacek <polacek@redhat.com>
5672
5673 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5674
5675 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
5676
5677 PR target/66591
5678 * config/sh/sh.c (prepare_move_operands): Replace subreg
5679 index term with R0 for base and index addressing.
5680
5681 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
5682
5683 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5684 op1 is an fp zero.
5685 (movsf_aarch64): Change condition from register_operand to
5686 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
5687 load1. Change type for alternative 7 to store1.
5688 (movdf_aarch64): Likewise.
5689
5690 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
5691
5692 * config/vax/vax.md: Adjust sign/zero extend patterns to
5693 handle SUBREGs in operands[1].
5694
5695 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5696
5697 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5698 of manually swapping.
5699 (expand_vec_perm_interleave2): Likewise.
5700
5701 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
5702
5703 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5704 reuse bounds created for abnormal ssa names.
5705
5706 2015-06-19 Jakub Jelinek <jakub@redhat.com>
5707
5708 * config/nvptx/nvptx.md (allocate_stack): Rename to...
5709 (allocate_stack_<mode>): ... this, and add :P on both
5710 match_operand and unspec.
5711 (allocate_stack): New expander.
5712
5713 2015-06-19 Christian Bruel <christian.bruel@st.com>
5714
5715 PR target/66541
5716 PR target/52144
5717 * config/arm/arm.c (arm_set_current_function): Handle
5718 explicit default options.
5719
5720 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5721
5722 * config/i386/i386.md (*movsicc_noc_zext): New insn.
5723 (zero-extended cmove with mem peephole2): New pattern.
5724 (cmove with mem peephole2): Merge patterns.
5725
5726 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
5727
5728 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5729
5730 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
5731
5732 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5733 * config/mips/mips.md (*madd4<mode>): Ditto.
5734 (*nmadd3<mode>) Ditto.
5735 (*nmadd4<mode>_fastmath): Ditto.
5736 (*nmadd3<mode>_fastmath): Ditto.
5737 (*nmsub4<mode>): Ditto.
5738 (*nmsub3<mode>): Ditto.
5739 (*nmsub4<mode>_fastmath): Ditto.
5740 (*nmsub3<mode>_fastmath): Ditto.
5741
5742 2015-06-18 Michael Matz <matz@suse.de>
5743
5744 PR middle-end/66253
5745 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5746 grouped strided stores.
5747 (vectorizable_load): Don't use the DR from first_stmt in
5748 the non-SLP grouped strided case.
5749
5750 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5751
5752 PR target/66569
5753 * function.c (assign_bounds): Add arguments assign_regs,
5754 assign_special, assign_bt.
5755 (assign_parms): For vararg functions handle bounds in BT
5756 and special slots after incoming vararg bounds.
5757
5758 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5759
5760 PR middle-end/66568
5761 * cfgexpand.c (expand_return): Handle missing bounds.
5762 (expand_gimple_stmt_1): Likewise.
5763 * tree-chkp.c (chkp_expand_zero_bounds): New.
5764 * tree-chkp.h (chkp_expand_zero_bounds): New.
5765
5766 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5767
5768 PR middle-end/66567
5769 * ipa-chkp.c (chkp_maybe_create_clone): Require
5770 functions to be instrumentable.
5771 * tree-chkp.c (chkp_replace_function_pointer): Use
5772 chkp_instrumentable_p instead of attribute check.
5773
5774 2015-06-18 Richard Biener <rguenther@suse.de>
5775
5776 PR tree-optimization/66510
5777 * tree-vect-stmts.c (vectorizable_load): Properly compute the
5778 number of vector loads for SLP permuted loads.
5779 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5780 check the stride for loop vectorization.
5781 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5782 vectorization factor.
5783 (vect_analyze_group_access): If the group size is not a power
5784 of two require a epilogue loop.
5785 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5786 compute and optimizing and alias test pruning after final
5787 vectorization factor computation.
5788 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5789 vector alignment.
5790 (vect_transform_slp_perm_load): Properly compute the original
5791 number of vector load stmts.
5792
5793 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5794
5795 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5796 "unlikely character , in @var" warning.
5797
5798 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
5799
5800 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5801 (ix86_function_arg_advance): Ditto.
5802 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
5803
5804 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5805
5806 * function.h (struct rtl_data): Remove struct and accessor macros.
5807 * emit-rtl.h (struct rtl_data): Relocate to here.
5808 * Makefile.in (GTFILES): Add emit-rtl.h.
5809 * df-core.c: Include emit-rtl.h.
5810 * genattrtab.c: Likewise.
5811 * genconditions.c: Likewise.
5812 * genpreds.c: Likewise.
5813 * genrecog.c: Likewise.
5814 * regcprop.c: Likewise.
5815 * resource.c: Likewise.
5816 * sched-rgn.c: Likewise.
5817 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5818 * config/i386/winnt.c: Likewise.
5819
5820 2015-06-17 Jakub Jelinek <jakub@redhat.com>
5821
5822 PR middle-end/66429
5823 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5824 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
5825 and has_force_vectorize_loops flags from cfun into
5826 child_cfun.
5827 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5828 if simduid is non-NULL.
5829 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5830 * passes.def (pass_simduid_cleanup): Add new pass after loop
5831 passes.
5832 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5833 indirection from htab argument's type.
5834 (shrink_simd_arrays): New function.
5835 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
5836 Don't call adjust_simduid_builtins if there are no loops.
5837 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5838 (pass_simduid_cleanup::execute): New method.
5839 (make_pass_simduid_cleanup): New function.
5840
5841 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
5842
5843 * tree-core.h (tree_target_option): Make opts field a pointer to a
5844 cl_target_option instead of an instance of the struct.
5845 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5846 the structure.
5847 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5848 TARGET_OPTION_NODE.
5849 (copy_node_stat): Allocate and copy struct cl_target_option.
5850
5851 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5852
5853 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5854 Remove conditional exposure of prototypes.
5855 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5856 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
5857 definitions in tree.h with functions.
5858 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5859 anon_aggrname_p.
5860 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5861
5862 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
5863
5864 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5865 (*cmp<mode>_signed): ... this.
5866 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5867 (*cmp<mode>_unsigned): ... this. Remove %b.
5868
5869 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5870
5871 * coretypes.h: Include input.h and as-a.h.
5872 * rtl.h: Include input.h and as-a.h for generator files.
5873 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5874 * vec.c: Don't include diagnostic-core.h.
5875 * alias.c: Do not include input.h, line-map.h or is-a.h.
5876 * asan.c: Likewise.
5877 * attribs.c: Likewise.
5878 * auto-inc-dec.c: Likewise.
5879 * auto-profile.c: Likewise.
5880 * bb-reorder.c: Likewise.
5881 * bt-load.c: Likewise.
5882 * builtins.c: Likewise.
5883 * caller-save.c: Likewise.
5884 * calls.c: Likewise.
5885 * ccmp.c: Likewise.
5886 * cfg.c: Likewise.
5887 * cfganal.c: Likewise.
5888 * cfgbuild.c: Likewise.
5889 * cfgcleanup.c: Likewise.
5890 * cfgexpand.c: Likewise.
5891 * cfghooks.c: Likewise.
5892 * cfgloop.c: Likewise.
5893 * cfgloop.h: Likewise.
5894 * cfgloopanal.c: Likewise.
5895 * cfgloopmanip.c: Likewise.
5896 * cfgrtl.c: Likewise.
5897 * cgraph.c: Likewise.
5898 * cgraphbuild.c: Likewise.
5899 * cgraphclones.c: Likewise.
5900 * cgraphunit.c: Likewise.
5901 * cilk-common.c: Likewise.
5902 * combine-stack-adj.c: Likewise.
5903 * combine.c: Likewise.
5904 * compare-elim.c: Likewise.
5905 * convert.c: Likewise.
5906 * coverage.c: Likewise.
5907 * cppbuiltin.c: Likewise.
5908 * cprop.c: Likewise.
5909 * cse.c: Likewise.
5910 * cselib.c: Likewise.
5911 * data-streamer-in.c: Likewise.
5912 * data-streamer-out.c: Likewise.
5913 * data-streamer.c: Likewise.
5914 * dbxout.c: Likewise.
5915 * dce.c: Likewise.
5916 * ddg.c: Likewise.
5917 * debug.c: Likewise.
5918 * df-core.c: Likewise.
5919 * df-problems.c: Likewise.
5920 * df-scan.c: Likewise.
5921 * df.h: Likewise.
5922 * dfp.c: Likewise.
5923 * diagnostic-core.h: Likewise.
5924 * diagnostic.c: Likewise.
5925 * dojump.c: Likewise.
5926 * dominance.c: Likewise.
5927 * domwalk.c: Likewise.
5928 * double-int.c: Likewise.
5929 * dse.c: Likewise.
5930 * dumpfile.c: Likewise.
5931 * dumpfile.h: Likewise.
5932 * dwarf2asm.c: Likewise.
5933 * dwarf2cfi.c: Likewise.
5934 * dwarf2out.c: Likewise.
5935 * emit-rtl.c: Likewise.
5936 * et-forest.c: Likewise.
5937 * except.c: Likewise.
5938 * explow.c: Likewise.
5939 * expmed.c: Likewise.
5940 * expr.c: Likewise.
5941 * final.c: Likewise.
5942 * fixed-value.c: Likewise.
5943 * fold-const.c: Likewise.
5944 * function.c: Likewise.
5945 * fwprop.c: Likewise.
5946 * gcc-plugin.h: Likewise.
5947 * gcse.c: Likewise.
5948 * generic-match-head.c: Likewise.
5949 * ggc-page.c: Likewise.
5950 * gimple-builder.c: Likewise.
5951 * gimple-expr.c: Likewise.
5952 * gimple-fold.c: Likewise.
5953 * gimple-iterator.c: Likewise.
5954 * gimple-low.c: Likewise.
5955 * gimple-match-head.c: Likewise.
5956 * gimple-pretty-print.c: Likewise.
5957 * gimple-ssa-isolate-paths.c: Likewise.
5958 * gimple-ssa-strength-reduction.c: Likewise.
5959 * gimple-streamer-in.c: Likewise.
5960 * gimple-streamer-out.c: Likewise.
5961 * gimple-streamer.h: Likewise.
5962 * gimple-walk.c: Likewise.
5963 * gimple.c: Likewise.
5964 * gimplify-me.c: Likewise.
5965 * gimplify.c: Likewise.
5966 * godump.c: Likewise.
5967 * graph.c: Likewise.
5968 * graphite-blocking.c: Likewise.
5969 * graphite-dependences.c: Likewise.
5970 * graphite-interchange.c: Likewise.
5971 * graphite-isl-ast-to-gimple.c: Likewise.
5972 * graphite-optimize-isl.c: Likewise.
5973 * graphite-poly.c: Likewise.
5974 * graphite-scop-detection.c: Likewise.
5975 * graphite-sese-to-poly.c: Likewise.
5976 * graphite.c: Likewise.
5977 * haifa-sched.c: Likewise.
5978 * hw-doloop.c: Likewise.
5979 * ifcvt.c: Likewise.
5980 * init-regs.c: Likewise.
5981 * input.c: Likewise.
5982 * internal-fn.c: Likewise.
5983 * ipa-chkp.c: Likewise.
5984 * ipa-comdats.c: Likewise.
5985 * ipa-cp.c: Likewise.
5986 * ipa-devirt.c: Likewise.
5987 * ipa-icf-gimple.c: Likewise.
5988 * ipa-icf.c: Likewise.
5989 * ipa-inline-analysis.c: Likewise.
5990 * ipa-inline-transform.c: Likewise.
5991 * ipa-inline.c: Likewise.
5992 * ipa-polymorphic-call.c: Likewise.
5993 * ipa-profile.c: Likewise.
5994 * ipa-prop.c: Likewise.
5995 * ipa-pure-const.c: Likewise.
5996 * ipa-ref.c: Likewise.
5997 * ipa-reference.c: Likewise.
5998 * ipa-split.c: Likewise.
5999 * ipa-utils.c: Likewise.
6000 * ipa-visibility.c: Likewise.
6001 * ipa.c: Likewise.
6002 * ira-build.c: Likewise.
6003 * ira-color.c: Likewise.
6004 * ira-conflicts.c: Likewise.
6005 * ira-costs.c: Likewise.
6006 * ira-emit.c: Likewise.
6007 * ira-lives.c: Likewise.
6008 * ira.c: Likewise.
6009 * jump.c: Likewise.
6010 * langhooks.c: Likewise.
6011 * lcm.c: Likewise.
6012 * loop-doloop.c: Likewise.
6013 * loop-init.c: Likewise.
6014 * loop-invariant.c: Likewise.
6015 * loop-iv.c: Likewise.
6016 * loop-unroll.c: Likewise.
6017 * lower-subreg.c: Likewise.
6018 * lra-assigns.c: Likewise.
6019 * lra-coalesce.c: Likewise.
6020 * lra-constraints.c: Likewise.
6021 * lra-eliminations.c: Likewise.
6022 * lra-lives.c: Likewise.
6023 * lra-remat.c: Likewise.
6024 * lra-spills.c: Likewise.
6025 * lra.c: Likewise.
6026 * lto-cgraph.c: Likewise.
6027 * lto-compress.c: Likewise.
6028 * lto-opts.c: Likewise.
6029 * lto-section-in.c: Likewise.
6030 * lto-section-out.c: Likewise.
6031 * lto-streamer-in.c: Likewise.
6032 * lto-streamer-out.c: Likewise.
6033 * lto-streamer.c: Likewise.
6034 * mcf.c: Likewise.
6035 * mode-switching.c: Likewise.
6036 * modulo-sched.c: Likewise.
6037 * omega.c: Likewise.
6038 * omp-low.c: Likewise.
6039 * optabs.c: Likewise.
6040 * opts-global.c: Likewise.
6041 * opts.h: Likewise.
6042 * passes.c: Likewise.
6043 * plugin.c: Likewise.
6044 * postreload-gcse.c: Likewise.
6045 * postreload.c: Likewise.
6046 * predict.c: Likewise.
6047 * pretty-print.h: Likewise.
6048 * print-rtl.c: Likewise.
6049 * print-tree.c: Likewise.
6050 * profile.c: Likewise.
6051 * real.c: Likewise.
6052 * realmpfr.c: Likewise.
6053 * recog.c: Likewise.
6054 * ree.c: Likewise.
6055 * reg-stack.c: Likewise.
6056 * regcprop.c: Likewise.
6057 * reginfo.c: Likewise.
6058 * regrename.c: Likewise.
6059 * regstat.c: Likewise.
6060 * reload.c: Likewise.
6061 * reload1.c: Likewise.
6062 * reorg.c: Likewise.
6063 * resource.c: Likewise.
6064 * rtl-chkp.c: Likewise.
6065 * rtl-error.c: Likewise.
6066 * rtlanal.c: Likewise.
6067 * rtlhooks.c: Likewise.
6068 * sanopt.c: Likewise.
6069 * sched-deps.c: Likewise.
6070 * sched-ebb.c: Likewise.
6071 * sched-rgn.c: Likewise.
6072 * sched-vis.c: Likewise.
6073 * sdbout.c: Likewise.
6074 * sel-sched-dump.c: Likewise.
6075 * sel-sched-ir.c: Likewise.
6076 * sel-sched.c: Likewise.
6077 * sese.c: Likewise.
6078 * shrink-wrap.c: Likewise.
6079 * simplify-rtx.c: Likewise.
6080 * stack-ptr-mod.c: Likewise.
6081 * statistics.c: Likewise.
6082 * stmt.c: Likewise.
6083 * stor-layout.c: Likewise.
6084 * store-motion.c: Likewise.
6085 * streamer-hooks.c: Likewise.
6086 * stringpool.c: Likewise.
6087 * symtab.c: Likewise.
6088 * target-globals.c: Likewise.
6089 * targhooks.c: Likewise.
6090 * toplev.c: Likewise.
6091 * tracer.c: Likewise.
6092 * trans-mem.c: Likewise.
6093 * tree-affine.c: Likewise.
6094 * tree-browser.c: Likewise.
6095 * tree-call-cdce.c: Likewise.
6096 * tree-cfg.c: Likewise.
6097 * tree-cfgcleanup.c: Likewise.
6098 * tree-chkp-opt.c: Likewise.
6099 * tree-chkp.c: Likewise.
6100 * tree-chrec.c: Likewise.
6101 * tree-complex.c: Likewise.
6102 * tree-data-ref.c: Likewise.
6103 * tree-dfa.c: Likewise.
6104 * tree-diagnostic.c: Likewise.
6105 * tree-dump.c: Likewise.
6106 * tree-eh.c: Likewise.
6107 * tree-emutls.c: Likewise.
6108 * tree-if-conv.c: Likewise.
6109 * tree-inline.c: Likewise.
6110 * tree-into-ssa.c: Likewise.
6111 * tree-iterator.c: Likewise.
6112 * tree-loop-distribution.c: Likewise.
6113 * tree-nested.c: Likewise.
6114 * tree-nrv.c: Likewise.
6115 * tree-object-size.c: Likewise.
6116 * tree-outof-ssa.c: Likewise.
6117 * tree-parloops.c: Likewise.
6118 * tree-phinodes.c: Likewise.
6119 * tree-predcom.c: Likewise.
6120 * tree-pretty-print.c: Likewise.
6121 * tree-profile.c: Likewise.
6122 * tree-scalar-evolution.c: Likewise.
6123 * tree-sra.c: Likewise.
6124 * tree-ssa-address.c: Likewise.
6125 * tree-ssa-alias.c: Likewise.
6126 * tree-ssa-ccp.c: Likewise.
6127 * tree-ssa-coalesce.c: Likewise.
6128 * tree-ssa-copy.c: Likewise.
6129 * tree-ssa-copyrename.c: Likewise.
6130 * tree-ssa-dce.c: Likewise.
6131 * tree-ssa-dom.c: Likewise.
6132 * tree-ssa-dse.c: Likewise.
6133 * tree-ssa-forwprop.c: Likewise.
6134 * tree-ssa-ifcombine.c: Likewise.
6135 * tree-ssa-live.c: Likewise.
6136 * tree-ssa-loop-ch.c: Likewise.
6137 * tree-ssa-loop-im.c: Likewise.
6138 * tree-ssa-loop-ivcanon.c: Likewise.
6139 * tree-ssa-loop-ivopts.c: Likewise.
6140 * tree-ssa-loop-manip.c: Likewise.
6141 * tree-ssa-loop-niter.c: Likewise.
6142 * tree-ssa-loop-prefetch.c: Likewise.
6143 * tree-ssa-loop-unswitch.c: Likewise.
6144 * tree-ssa-loop.c: Likewise.
6145 * tree-ssa-math-opts.c: Likewise.
6146 * tree-ssa-operands.c: Likewise.
6147 * tree-ssa-phiopt.c: Likewise.
6148 * tree-ssa-phiprop.c: Likewise.
6149 * tree-ssa-pre.c: Likewise.
6150 * tree-ssa-propagate.c: Likewise.
6151 * tree-ssa-reassoc.c: Likewise.
6152 * tree-ssa-sccvn.c: Likewise.
6153 * tree-ssa-scopedtables.c: Likewise.
6154 * tree-ssa-sink.c: Likewise.
6155 * tree-ssa-strlen.c: Likewise.
6156 * tree-ssa-structalias.c: Likewise.
6157 * tree-ssa-tail-merge.c: Likewise.
6158 * tree-ssa-ter.c: Likewise.
6159 * tree-ssa-threadedge.c: Likewise.
6160 * tree-ssa-threadupdate.c: Likewise.
6161 * tree-ssa-uncprop.c: Likewise.
6162 * tree-ssa-uninit.c: Likewise.
6163 * tree-ssa.c: Likewise.
6164 * tree-ssanames.c: Likewise.
6165 * tree-stdarg.c: Likewise.
6166 * tree-streamer-in.c: Likewise.
6167 * tree-streamer-out.c: Likewise.
6168 * tree-streamer.c: Likewise.
6169 * tree-switch-conversion.c: Likewise.
6170 * tree-tailcall.c: Likewise.
6171 * tree-vect-data-refs.c: Likewise.
6172 * tree-vect-generic.c: Likewise.
6173 * tree-vect-loop-manip.c: Likewise.
6174 * tree-vect-loop.c: Likewise.
6175 * tree-vect-patterns.c: Likewise.
6176 * tree-vect-slp.c: Likewise.
6177 * tree-vect-stmts.c: Likewise.
6178 * tree-vectorizer.c: Likewise.
6179 * tree-vrp.c: Likewise.
6180 * tree.c: Likewise.
6181 * tsan.c: Likewise.
6182 * ubsan.c: Likewise.
6183 * valtrack.c: Likewise.
6184 * value-prof.c: Likewise.
6185 * var-tracking.c: Likewise.
6186 * varasm.c: Likewise.
6187 * varpool.c: Likewise.
6188 * vmsdbgout.c: Likewise.
6189 * vtable-verify.c: Likewise.
6190 * web.c: Likewise.
6191 * wide-int.cc: Likewise.
6192 * xcoffout.c: Likewise.
6193 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
6194 * common/common-targhooks.c: Likewise.
6195 * config/aarch64/aarch64-builtins.c: Likewise.
6196 * config/aarch64/aarch64.c: Likewise.
6197 * config/alpha/alpha.c: Likewise.
6198 * config/arc/arc.c: Likewise.
6199 * config/arm/aarch-common.c: Likewise.
6200 * config/arm/arm-builtins.c: Likewise.
6201 * config/arm/arm-c.c: Likewise.
6202 * config/arm/arm.c: Likewise.
6203 * config/avr/avr-c.c: Likewise.
6204 * config/avr/avr-log.c: Likewise.
6205 * config/avr/avr.c: Likewise.
6206 * config/bfin/bfin.c: Likewise.
6207 * config/c6x/c6x.c: Likewise.
6208 * config/cr16/cr16.c: Likewise.
6209 * config/cris/cris.c: Likewise.
6210 * config/darwin-c.c: Likewise.
6211 * config/darwin.c: Likewise.
6212 * config/default-c.c: Likewise.
6213 * config/epiphany/epiphany.c: Likewise.
6214 * config/epiphany/mode-switch-use.c: Likewise.
6215 * config/epiphany/resolve-sw-modes.c: Likewise.
6216 * config/fr30/fr30.c: Likewise.
6217 * config/frv/frv.c: Likewise.
6218 * config/ft32/ft32.c: Likewise.
6219 * config/glibc-c.c: Likewise.
6220 * config/h8300/h8300.c: Likewise.
6221 * config/i386/i386-c.c: Likewise.
6222 * config/i386/i386.c: Likewise.
6223 * config/i386/msformat-c.c: Likewise.
6224 * config/i386/winnt-cxx.c: Likewise.
6225 * config/i386/winnt-stubs.c: Likewise.
6226 * config/i386/winnt.c: Likewise.
6227 * config/ia64/ia64-c.c: Likewise.
6228 * config/ia64/ia64.c: Likewise.
6229 * config/iq2000/iq2000.c: Likewise.
6230 * config/lm32/lm32.c: Likewise.
6231 * config/m32c/m32c-pragma.c: Likewise.
6232 * config/m32c/m32c.c: Likewise.
6233 * config/m32r/m32r.c: Likewise.
6234 * config/m68k/m68k.c: Likewise.
6235 * config/mcore/mcore.c: Likewise.
6236 * config/mep/mep-pragma.c: Likewise.
6237 * config/mep/mep.c: Likewise.
6238 * config/microblaze/microblaze-c.c: Likewise.
6239 * config/microblaze/microblaze.c: Likewise.
6240 * config/mips/mips.c: Likewise.
6241 * config/mmix/mmix.c: Likewise.
6242 * config/mn10300/mn10300.c: Likewise.
6243 * config/moxie/moxie.c: Likewise.
6244 * config/msp430/msp430-c.c: Likewise.
6245 * config/msp430/msp430.c: Likewise.
6246 * config/nds32/nds32-cost.c: Likewise.
6247 * config/nds32/nds32-fp-as-gp.c: Likewise.
6248 * config/nds32/nds32-intrinsic.c: Likewise.
6249 * config/nds32/nds32-isr.c: Likewise.
6250 * config/nds32/nds32-md-auxiliary.c: Likewise.
6251 * config/nds32/nds32-memory-manipulation.c: Likewise.
6252 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6253 * config/nds32/nds32-predicates.c: Likewise.
6254 * config/nds32/nds32.c: Likewise.
6255 * config/nios2/nios2.c: Likewise.
6256 * config/nvptx/nvptx.c: Likewise.
6257 * config/pa/pa.c: Likewise.
6258 * config/pdp11/pdp11.c: Likewise.
6259 * config/rl78/rl78-c.c: Likewise.
6260 * config/rl78/rl78.c: Likewise.
6261 * config/rs6000/rs6000-c.c: Likewise.
6262 * config/rs6000/rs6000.c: Likewise.
6263 * config/rx/rx.c: Likewise.
6264 * config/s390/s390-c.c: Likewise.
6265 * config/s390/s390.c: Likewise.
6266 * config/sh/sh-c.c: Likewise.
6267 * config/sh/sh-mem.cc: Likewise.
6268 * config/sh/sh.c: Likewise.
6269 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6270 * config/sh/sh_treg_combine.cc: Likewise.
6271 * config/sol2-c.c: Likewise.
6272 * config/sol2-cxx.c: Likewise.
6273 * config/sol2-stubs.c: Likewise.
6274 * config/sol2.c: Likewise.
6275 * config/sparc/sparc-c.c: Likewise.
6276 * config/sparc/sparc.c: Likewise.
6277 * config/spu/spu-c.c: Likewise.
6278 * config/spu/spu.c: Likewise.
6279 * config/stormy16/stormy16.c: Likewise.
6280 * config/tilegx/mul-tables.c: Likewise.
6281 * config/tilegx/tilegx-c.c: Likewise.
6282 * config/tilegx/tilegx.c: Likewise.
6283 * config/tilepro/mul-tables.c: Likewise.
6284 * config/tilepro/tilepro-c.c: Likewise.
6285 * config/tilepro/tilepro.c: Likewise.
6286 * config/v850/v850-c.c: Likewise.
6287 * config/v850/v850.c: Likewise.
6288 * config/vax/vax.c: Likewise.
6289 * config/visium/visium.c: Likewise.
6290 * config/vms/vms-c.c: Likewise.
6291 * config/vms/vms.c: Likewise.
6292 * config/vxworks.c: Likewise.
6293 * config/winnt-c.c: Likewise.
6294 * config/xtensa/xtensa.c: Likewise.
6295
6296 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
6297
6298 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6299 function.
6300 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6301
6302 2015-06-17 Richard Biener <rguenther@suse.de>
6303
6304 PR tree-optimization/66251
6305 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6306 stmts for SLP strided stores.
6307
6308 Revert
6309 2015-05-22 Richard Biener <rguenther@suse.de>
6310
6311 PR tree-optimization/66251
6312 * tree-vect-stmts.c (vectorizable_conversion): Properly
6313 set STMT_VINFO_VEC_STMT even for the SLP case.
6314
6315 2015-05-26 Michael Matz <matz@suse.de>
6316
6317 PR middle-end/66251
6318 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6319 STMT_VINFO_VEC_STMT, also with SLP.
6320
6321 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
6322
6323 PR target/56766
6324 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6325 (*avx_addsubv4df3_1s): Ditto.
6326 (*sse3_addsubv2df3_1): Ditto.
6327 (*sse3_addsubv2df3_1s): Ditto.
6328 (*avx_addsubv8sf3_1): Ditto.
6329 (*avx_addsubv8sf3_1s): Ditto.
6330 (*sse3_addsubv4sf3_1): Ditto.
6331 (*sse3_addsubv4sf3_1s): Ditto.
6332
6333 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
6334
6335 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6336 (SYSROOT_SUFFIX_SPEC): Update.
6337 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6338 (STARTFILE_PREFIX_SPEC): Update.
6339 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6340 (MULTILIB_REQUIRED): New.
6341 (MULTILIB_OSDIRNAMES): New.
6342 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6343 (MULTILIB_REQUIRED): New.
6344 (MULTILIB_OSDIRNAMES): New.
6345
6346 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
6347
6348 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6349 * config/aarch64/aarch64-options-extensions.def: Update "fP",
6350 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
6351 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6352 (AARCH64_FL_PAN): New.
6353 (AARCH64_FL_LOR): New.
6354 (AARCH64_FL_RDMA): New.
6355 (AARCH64_FL_FOR_ARCH8_1): New.
6356 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6357 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6358
6359 2015-06-16 Martin Liska <mliska@suse.cz>
6360
6361 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6362 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6363 guard.
6364
6365 2015-06-16 Richard Biener <rguenther@suse.de>
6366
6367 * tree-vect-stmts.c (vectorizable_store): Adjust.
6368 (vectorizable_load): Likewise.
6369 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6370 Simplify.
6371 (vect_create_data_ref_ptr): Likewise.
6372 (bump_vector_ptr): Adjust.
6373
6374 2015-06-16 Richard Biener <rguenther@suse.de>
6375
6376 * tree-vect-stmts.c (vectorizable_load): Properly start loads
6377 with the first element if this is grouped loads.
6378
6379 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
6380
6381 * config/arm/arm-protos.h (struct tune_params): Rename
6382 log_op_non_sc to log_op_non_short_circuit, and rename enum
6383 values to expand SC to SHORT_CIRCUIT.
6384 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6385 to LOG_OP_NON_SHORT_CIRCUIT.
6386 (arm_fastmul_tune):Likewise
6387 (arm_strongarm_tune): Likewise.
6388 (arm_xscale_tune): Likewise.
6389 (arm_9e_tune): Likewise.
6390 (arm_marvell_pj4_tune): Likewise.
6391 (arm_v6t2_tune): Likewise.
6392 (arm_cortex_tune): Likewise.
6393 (arm_cortex_a8_tune): Likewise.
6394 (arm_cortex_a7_tune): Likewise.
6395 (arm_cortex_a15_tune): Likewise.
6396 (arm_cortex_a53_tune): Likewise.
6397 (arm_cortex_a57_tune): Likewise.
6398 (arm_xgene1_tune): Likewise.
6399 (arm_cortex_a5_tune): Likewise.
6400 (arm_cortex_a9_tune): Likewise.
6401 (arm_cortex_a12_tune): Likewise.
6402 (arm_v7m_tune): Likewise.
6403 (arm_cortex_m7_tune): Likewise.
6404 (arm_v6m_tune): Likewise.
6405 (arm_fa726te_tune): Likewise.
6406
6407 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
6408
6409 * altivec.md: Delete UNSPEC_VMLADDUHM.
6410 (mulv4si3_p8): New pattern.
6411 (mulv4si3): Use it for POWER8.
6412 (mulv8hi3): Use vmladduhm with zero addend.
6413 (altivec_vmladduhm): Descriptive RTL.
6414
6415 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
6416
6417 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6418 to use neon_move instead of mov_imm.
6419 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6420 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6421
6422 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6423 aarch64_float_const_zero_rtx_p check before TFmode check.
6424 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6425 an fp zero.
6426 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
6427 code and attributes to match. Change condition from register_operand
6428 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
6429 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
6430 to store2.
6431
6432 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
6433
6434 PR debug/66535
6435 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6436 there is no parent.
6437
6438 2015-06-14 Shiva Chen <shiva0217@gmail.com>
6439
6440 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6441 HOST_WIDE_INT parameter.
6442
6443 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
6444
6445 PR ipa/66181
6446 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6447 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6448 TYPE_NO_FORCE_BLK.
6449 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6450
6451 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
6452
6453 * rtl.h (classify_insn): Declare.
6454 * emit-rtl.c (classify_insn): Move to...
6455 * rtl.c: ...here and add generator support.
6456 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6457 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6458 * genemit.c (gen_emit_seq): New function.
6459 (gen_expand, gen_split): Use it.
6460
6461 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
6462
6463 * tree.c (make_vector_stat): Fix comment to state that the
6464 function returns a VECTOR_CST.
6465
6466 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
6467
6468 * gensupport.h (add_implicit_parallel): Declare.
6469 * genrecog.c (add_implicit_parallel): Move to...
6470 * gensupport.c (add_implicit_parallel): ...here.
6471 (process_one_cond_exec): Use it.
6472 * genemit.c (gen_insn): Likewise.
6473
6474 2015-06-13 Iain Sandoe <iain@codesourcery.com>
6475
6476 PR bootstrap/66448
6477 * passes.c (rest_of_decl_compilation): Do not register globals for
6478 early debug if they are declared in built-ins.
6479
6480 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
6481
6482 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6483
6484 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6485
6486 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6487 manually swapping.
6488 (noce_try_cmove_arith): Likewise.
6489 (noce_get_alt_condition): Likewise.
6490
6491 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6492
6493 * common/config/i386/i386-common.c
6494 (OPTION_MASK_ISA_MWAITX_SET): New.
6495 (ix86_handle_option): Handle mwaitx.
6496 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6497 (x86_64-*-*): Likewise.
6498 * config/i386/mwaitxintrin.h: New header.
6499 * config/i386/cpuid.h (bit_MWAITX): Define.
6500 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6501 MWAITX support.
6502 * config/i386/i386.opt (mwaitx): New.
6503 * config/i386/i386-builtin-types.def
6504 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6505 * config/i386/i386-c.c: Define __MWAITX__ if needed.
6506 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6507 (PTA_MWAITX): New.
6508 (ix86_option_override_internal): Handle new option.
6509 (processor_alias_table): Added PTA_MWAITX.
6510 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6511 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6512 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6513 IX86_BUILTIN_MONITORX built-ins.
6514 * config/i386/i386.h (TARGET_MWAITX): New.
6515 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6516 UNSPEC_MONITORX.
6517 (mwaitx): New pattern.
6518 (monitorx_<mode>): New pattern.
6519 * config/i386/x86intrin.h: Include mwaitxintrin.h.
6520 * doc/extend.texi: Document monitorx and mwaitx builtins.
6521 * doc/invoke.texi: Document -mmwaitx option.
6522
6523 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
6524
6525 * emit-rtl.c (need_atomic_barrier_p): Mask model with
6526 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
6527
6528 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6529
6530 * dbxout.c (xcoff_debug_hooks): Provide a function for
6531 register_main_translation_unit hook.
6532
6533 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6534
6535 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6536 variants cases from switch.
6537 (rs6000_post_atomic_barrier): Same.
6538 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6539 (rs6000_expand_atomic_exchange): Same.
6540 (rs6000_expand_atomic_op): Same.
6541 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6542 SYNC variants cases from switch.
6543 (atomic_load): Same.
6544 (atomic_store): Same.
6545
6546 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
6547
6548 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6549 CONST_INT for goto.
6550
6551 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
6552
6553 PR bootstrap/66448
6554 * dwarf2out.c (check_die): Check for common duplicate attributes.
6555 (add_location_or_const_value_attribute): Do not add duplicate
6556 attributes.
6557 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6558 time around.
6559 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6560 (gen_type_die_with_usage): Call check_die.
6561 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6562
6563 2015-06-11 Jason Merrill <jason@redhat.com>
6564
6565 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6566 dies.
6567
6568 2015-06-11 Marek Polacek <polacek@redhat.com>
6569
6570 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6571
6572 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
6573
6574 PR bootstrap/66252
6575 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6576 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6577 (*addx_extend_sp32): Fix pasto.
6578 (*subx_extend): Rename into...
6579 (*subx_extend_sp32): ...this.
6580 (*adddi3_extend_sp32): Add earlyclobber.
6581 (*subdi3_insn_sp32): Likewise.
6582 (*subdi3_extend_sp32): Likewise.
6583 (*and_not_di_sp32): Likewise.
6584 (*or_not_di_sp32): Likewise.
6585 (*xor_not_di_sp32): Likewise.
6586 (*negdi2_sp32): Likewise.
6587 (*one_cmpldi2_sp32): Likewise.
6588
6589 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
6590
6591 * debug.h (struct gcc_debug_hooks): Add a
6592 register_main_translation_unit hook.
6593 * debug.c (do_nothing_debug_hooks): Provide a function for this
6594 new hook.
6595 * dbxout.c (dbx_debug_hooks): Likewise.
6596 * sdbout.c (sdb_debug_hooks): Likewise.
6597 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6598 * dwarf2out.c (main_translation_unit): New global variable.
6599 (dwarf2out_register_main_translation_unit): New function
6600 implementing the new hook.
6601 (dwarf2_debug_hooks): Assign
6602 dwarf2out_register_main_translation_unit to this new hook.
6603 (dwarf2out_init): Associate any main translation unit to
6604 comp_unit_die ().
6605
6606 2015-06-11 Marek Polacek <polacek@redhat.com>
6607
6608 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6609
6610 2015-06-11 Marek Polacek <polacek@redhat.com>
6611
6612 * match.pd: Use single_use throughout.
6613
6614 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6615
6616 * config/arm/arm.c (arm_option_params_internal): When optimising
6617 for speed set max_insns_skipped when arm_restrict_it.
6618
6619 2015-06-11 Christian Bruel <christian.bruel@st.com>
6620
6621 PR target/52144
6622 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6623 macros in ...
6624 (arm_cpu_builtins): New function.
6625 (arm_pragma_target_parse): Call arm_cpu_builtins.
6626 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6627 (arm_register_target_pragmas): Likewise.
6628 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6629 Call arm_register_target_pragmas.
6630 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6631 (arm_pragma_target_parse): Likewise.
6632
6633 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
6634
6635 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6636 of the second operand.
6637
6638 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
6639
6640 PR target/66473
6641 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6642 to prepare mask operand for AVX512 modes.
6643
6644 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6645
6646 PR target/66474
6647 * doc/md.texi (Machine Constraints): Document that on the PowerPC
6648 if you use a constraint that targets a VSX register, you must use
6649 %x<n> in the template.
6650
6651 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
6652
6653 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6654 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6655 (define_insn "trap"): New definition.
6656
6657 2015-06-10 Richard Biener <rguenther@suse.de>
6658
6659 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6660 out from ...
6661 (vect_supported_load_permutation_p): ... here. Handle
6662 supportable permutations in reductions.
6663 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6664 for vectorizing strided group loads.
6665
6666 2015-06-10 Jakub Jelinek <jakub@redhat.com>
6667
6668 PR target/66470
6669 * config/i386/i386.c (ix86_split_long_move): For collisions
6670 involving direct tls segment refs, move the UNSPEC_TP possibly
6671 wrapped in ZERO_EXTEND out of the address for lea, to each of
6672 the memory loads.
6673
6674 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6675
6676 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6677 dmb sy. Adjust tabs.
6678
6679 2015-06-10 Tom de Vries <tom@codesourcery.com>
6680
6681 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6682
6683 2015-06-10 Martin Liska <mliska@suse.cz>
6684
6685 PR bootstrap/66471
6686 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6687 all enum values in mem_alloc_origin.
6688 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6689 name.
6690 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6691 * bitmap.c (bitmap_register): Likewise.
6692 (dump_bitmap_statistics): Likewise.
6693 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6694 (ggc_record_overhead): Likewise.
6695 * hash-map.h: Likewise.
6696 * hash-set.h: Likewise.
6697 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6698 * hash-table.h: Likewise.
6699 * vec.c (vec_prefix::register_overhead): Likewise.
6700 (vec_prefix::release_overhead): Likewise.
6701 (dump_vec_loc_statistics): Likewise.
6702
6703 2015-06-09 Christian Bruel <christian.bruel@st.com>
6704
6705 PR target/52144
6706 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6707 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6708 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6709 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6710 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6711 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6712 (arm_valid_target_attribute_p): Likewise.
6713 (arm_set_current_function, arm_can_inline_p): Likewise.
6714 (arm_valid_target_attribute_rec): Likewise.
6715 (arm_previous_fndecl): New variable.
6716 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6717 (TARGET_CAN_INLINE_P): Define.
6718 (arm_asm_trampoline_template): Emit mode.
6719 (arm_file_start): Don't set unified syntax.
6720 (arm_declare_function_name): Set unified syntax and mode.
6721 (arm_option_override): Init target_option_default_node.
6722 and target_option_current_node.
6723 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6724 (*call_symbol): Likewise.
6725 * doc/extend.texi: Document ARM/Thumb target attribute.
6726 * doc/invoke.texi: Likewise.
6727
6728 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6729
6730 Revert:
6731 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6732 PR rtl-optimization/64164
6733 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6734 * tree-ssa-copyrename.c: Removed.
6735 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6736 -ftree-coalesce-vars.
6737 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6738 * common.opt (ftree-copyrename): Ignore.
6739 (ftree-coalesce-inlined-vars): Likewise.
6740 * doc/invoke.texi: Remove the ignored options above.
6741 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6742 * tree-ssa-coalesce.h: ... here.
6743 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6744 headers required by it.
6745 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6746 across variables when flag_tree_coalesce_vars. Check register
6747 use and promoted modes to allow coalescing. Moved to
6748 tree-ssa-coalesce.c.
6749 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6750 with its member functions to tree-ssa-coalesce.c.
6751 (var_map_base_init): Likewise. Renamed to
6752 compute_samebase_partition_bases.
6753 (partition_view_normal): Drop want_bases parameter.
6754 (partition_view_bitmap): Likewise.
6755 * tree-ssa-live.h: Adjust declarations.
6756 * tree-ssa-coalesce.c: Include explow.h.
6757 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6758 default defs at the entry point.
6759 (dump_part_var_map): New.
6760 (compute_optimized_partition_bases): New, called by...
6761 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6762 of compute_samebase_partition_bases. Adjust.
6763 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6764 * cfgexpand.c (leader_merge): New.
6765 (get_rtl_for_parm_ssa_default_def): New.
6766 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6767 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6768 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6769 redundant MEM attr setting.
6770 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6771 from...
6772 (expand_one_stack_var): ... this. New wrapper to check and
6773 skip already expanded SSA partitions.
6774 (record_alignment_for_reg_var): New, factored out of...
6775 (expand_one_var): ... this.
6776 (expand_one_ssa_partition): New.
6777 (adjust_one_expanded_partition_var): New.
6778 (expand_one_register_var): Check and skip already expanded SSA
6779 partitions.
6780 (expand_used_vars): Don't create DECLs for anonymous SSA
6781 names. Expand all SSA partitions, then adjust all SSA names.
6782 (pass::execute): Replace the loops that set
6783 SA.partition_to_pseudo from partition leaders and cleared
6784 DECL_RTL for multi-location variables, and that which used to
6785 rename vars and set attrs, with one that clears DECL_RTL and
6786 checks that PARMs and RESULTs default_defs match DECL_RTL.
6787 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6788 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6789 * explow.c (promote_ssa_mode): New.
6790 * explow.h (promote_ssa_mode): Declare.
6791 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6792 * function.c: Include cfgexpand.h.
6793 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6794 (use_register_for_parm_decl): Wrapper for the above to
6795 special-case the result_ptr.
6796 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6797 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6798 multiple locations.
6799 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6800 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6801 (assign_parm_setup_block): Prefer SSA-assigned location.
6802 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6803 if stack_parm is NULL.
6804 (assign_parm_setup_stack): Prefer SSA-assigned location.
6805 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6806 rtl before testing for pointer bounds. Special-case result_ptr.
6807 (expand_function_start): Maybe reset DECL_RTL of result.
6808 Prefer SSA-assigned location for result and static chain.
6809 Factor out DECL_RESULT and SET_DECL_RTL.
6810 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6811 anonymous SSA names. Use promote_ssa_mode.
6812 (get_temp_reg): Likewise.
6813 (remove_ssa_form): Adjust.
6814 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6815 and get its reg_usage for reg invalidation.
6816 (compute_bb_dataflow): Pass it insn.
6817 (emit_notes_in_bb): Likewise.
6818 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6819 fail assert on conversion between unsigned types.
6820
6821 2015-06-09 Tom de Vries <tom@codesourcery.com>
6822
6823 PR tree-optimization/65460
6824 * omp-low.c (expand_omp_target): Set parallelized_function on
6825 cgraph_node for child_fn.
6826
6827 2015-06-09 Tom de Vries <tom@codesourcery.com>
6828
6829 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6830 parallelized_function before add_new_function.
6831
6832 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
6833
6834 * gcc-plugin.h: Move decls to plugin.h and include it.
6835 * plugin.h: Relocate decls from gcc-plugin.h
6836 * ggc-page.c: Include required header files.
6837 * passes.c: Likewise.
6838 * cgraphunit.c: Likewise.
6839
6840 2015-06-09 Tom de Vries <tom@codesourcery.com>
6841
6842 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6843
6844 2015-06-09 Jason Merrill <jason@redhat.com>
6845
6846 PR bootstrap/66448
6847 * toplev.c (check_global_declaration): Don't warn about a clone.
6848
6849 2015-06-09 Marek Polacek <polacek@redhat.com>
6850
6851 PR tree-optimization/66299
6852 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6853 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6854 patterns.
6855
6856 2015-06-09 Richard Biener <rguenther@suse.de>
6857
6858 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6859 (vect_analyze_slp_instance): Instead do not falsely drop
6860 load permutations.
6861
6862 2015-06-09 Richard Biener <rguenther@suse.de>
6863
6864 PR middle-end/66423
6865 * match.pd: Handle A % (unsigned)(1 << B).
6866
6867 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
6868
6869 * varasm.c (output_object_block_htab): Remove.
6870 (output_object_block_compare): New.
6871 (output_object_blocks): Sort named object_blocks before outputting
6872 them.
6873
6874 2015-06-09 Richard Biener <rguenther@suse.de>
6875
6876 PR tree-optimization/66419
6877 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6878 consider GROUP_GAP when detecting a perfect subchain.
6879
6880 2015-06-09 Nick Clifton <nickc@redhat.com>
6881
6882 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6883 place read only data in the .frodata section.
6884
6885 2015-06-09 Shiva Chen <shiva0217@gmail.com>
6886
6887 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6888 (atomic_store<mode>): Likewise.
6889
6890 2015-06-09 Richard Biener <rguenther@suse.de>
6891
6892 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6893
6894 2015-06-09 Richard Biener <rguenther@suse.de>
6895
6896 PR middle-end/66413
6897 * tree-inline.c (insert_init_debug_bind): Unshare value.
6898
6899 2015-06-09 Richard Biener <rguenther@suse.de>
6900
6901 PR tree-optimization/66396
6902 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6903 Rename virtual operands.
6904
6905 2015-06-09 Tom de Vries <tom@codesourcery.com>
6906
6907 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6908 always return false.
6909
6910 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6911
6912 PR rtl-optimization/64164
6913 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6914 * tree-ssa-copyrename.c: Removed.
6915 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6916 -ftree-coalesce-vars.
6917 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6918 * common.opt (ftree-copyrename): Ignore.
6919 (ftree-coalesce-inlined-vars): Likewise.
6920 * doc/invoke.texi: Remove the ignored options above.
6921 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6922 * tree-ssa-coalesce.h: ... here.
6923 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6924 headers required by it.
6925 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6926 across variables when flag_tree_coalesce_vars. Check register
6927 use and promoted modes to allow coalescing. Moved to
6928 tree-ssa-coalesce.c.
6929 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6930 with its member functions to tree-ssa-coalesce.c.
6931 (var_map_base_init): Likewise. Renamed to
6932 compute_samebase_partition_bases.
6933 (partition_view_normal): Drop want_bases parameter.
6934 (partition_view_bitmap): Likewise.
6935 * tree-ssa-live.h: Adjust declarations.
6936 * tree-ssa-coalesce.c: Include explow.h.
6937 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6938 default defs at the entry point.
6939 (dump_part_var_map): New.
6940 (compute_optimized_partition_bases): New, called by...
6941 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6942 of compute_samebase_partition_bases. Adjust.
6943 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6944 * cfgexpand.c (leader_merge): New.
6945 (get_rtl_for_parm_ssa_default_def): New.
6946 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6947 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6948 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6949 redundant MEM attr setting.
6950 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6951 from...
6952 (expand_one_stack_var): ... this. New wrapper to check and
6953 skip already expanded SSA partitions.
6954 (record_alignment_for_reg_var): New, factored out of...
6955 (expand_one_var): ... this.
6956 (expand_one_ssa_partition): New.
6957 (adjust_one_expanded_partition_var): New.
6958 (expand_one_register_var): Check and skip already expanded SSA
6959 partitions.
6960 (expand_used_vars): Don't create DECLs for anonymous SSA
6961 names. Expand all SSA partitions, then adjust all SSA names.
6962 (pass::execute): Replace the loops that set
6963 SA.partition_to_pseudo from partition leaders and cleared
6964 DECL_RTL for multi-location variables, and that which used to
6965 rename vars and set attrs, with one that clears DECL_RTL and
6966 checks that PARMs and RESULTs default_defs match DECL_RTL.
6967 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6968 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6969 * explow.c (promote_ssa_mode): New.
6970 * explow.h (promote_ssa_mode): Declare.
6971 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6972 * function.c: Include cfgexpand.h.
6973 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6974 (use_register_for_parm_decl): Wrapper for the above to
6975 special-case the result_ptr.
6976 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6977 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6978 multiple locations.
6979 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6980 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6981 (assign_parm_setup_block): Prefer SSA-assigned location.
6982 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6983 if stack_parm is NULL.
6984 (assign_parm_setup_stack): Prefer SSA-assigned location.
6985 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6986 rtl before testing for pointer bounds. Special-case result_ptr.
6987 (expand_function_start): Maybe reset DECL_RTL of result.
6988 Prefer SSA-assigned location for result and static chain.
6989 Factor out DECL_RESULT and SET_DECL_RTL.
6990 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6991 anonymous SSA names. Use promote_ssa_mode.
6992 (get_temp_reg): Likewise.
6993 (remove_ssa_form): Adjust.
6994 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6995 and get its reg_usage for reg invalidation.
6996 (compute_bb_dataflow): Pass it insn.
6997 (emit_notes_in_bb): Likewise.
6998 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6999 fail assert on conversion between unsigned types.
7000
7001 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
7002
7003 PR debug/58315
7004 * tree-inline.c (reset_debug_binding): New.
7005 (reset_debug_bindings): Likewise.
7006 (expand_call_inline): Call it.
7007
7008 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7009
7010 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
7011 TYPE_STRING_FLAG.
7012
7013 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7014
7015 * lto-streamer-out.c (lto_output_location): Stream
7016 reserved locations correctly.
7017 * lto-streamer-in.c (lto_output_location): Likewise.
7018
7019 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
7020
7021 * coretypes.h: Include hash-table.h and hash-set.h for host files.
7022 * ggc.h: Don't include statistics.h>
7023 * hash-map.h: Remove all includes.
7024 * hash-set.h: Likewise.
7025 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
7026 the include list. Remove <new>.
7027 * inchash.h: Remove all includes.
7028 * mem-stats.h: Likewise.
7029 * vec.h: No special processing for generators or ggc.
7030 * alias.c : Adjust include files.
7031 * alloc-pool.c : Likewise.
7032 * alloc-pool.h : Likewise.
7033 * asan.c : Likewise.
7034 * attribs.c : Likewise.
7035 * auto-inc-dec.c : Likewise.
7036 * auto-profile.c : Likewise.
7037 * bb-reorder.c : Likewise.
7038 * bitmap.c : Likewise.
7039 * bitmap.h : Likewise.
7040 * bt-load.c : Likewise.
7041 * builtins.c : Likewise.
7042 * caller-save.c : Likewise.
7043 * calls.c : Likewise.
7044 * ccmp.c : Likewise.
7045 * cfg.c : Likewise.
7046 * cfganal.c : Likewise.
7047 * cfgbuild.c : Likewise.
7048 * cfgcleanup.c : Likewise.
7049 * cfgexpand.c : Likewise.
7050 * cfghooks.c : Likewise.
7051 * cfgloop.c : Likewise.
7052 * cfgloop.h : Likewise.
7053 * cfgloopanal.c : Likewise.
7054 * cfgloopmanip.c : Likewise.
7055 * cfgrtl.c : Likewise.
7056 * cgraph.c : Likewise.
7057 * cgraphbuild.c : Likewise.
7058 * cgraphclones.c : Likewise.
7059 * cgraphunit.c : Likewise.
7060 * cilk-common.c : Likewise.
7061 * combine-stack-adj.c : Likewise.
7062 * combine.c : Likewise.
7063 * compare-elim.c : Likewise.
7064 * context.c : Likewise.
7065 * convert.c : Likewise.
7066 * coverage.c : Likewise.
7067 * cppbuiltin.c : Likewise.
7068 * cprop.c : Likewise.
7069 * cse.c : Likewise.
7070 * cselib.c : Likewise.
7071 * data-streamer-in.c : Likewise.
7072 * data-streamer-out.c : Likewise.
7073 * data-streamer.c : Likewise.
7074 * data-streamer.h : Likewise.
7075 * dbxout.c : Likewise.
7076 * dce.c : Likewise.
7077 * ddg.c : Likewise.
7078 * debug.c : Likewise.
7079 * df-core.c : Likewise.
7080 * df-problems.c : Likewise.
7081 * df-scan.c : Likewise.
7082 * df.h : Likewise.
7083 * dfp.c : Likewise.
7084 * dojump.c : Likewise.
7085 * dominance.c : Likewise.
7086 * domwalk.c : Likewise.
7087 * double-int.c : Likewise.
7088 * dse.c : Likewise.
7089 * dumpfile.c : Likewise.
7090 * dwarf2asm.c : Likewise.
7091 * dwarf2cfi.c : Likewise.
7092 * dwarf2out.c : Likewise.
7093 * emit-rtl.c : Likewise.
7094 * et-forest.c : Likewise.
7095 * except.c : Likewise.
7096 * except.h : Likewise.
7097 * explow.c : Likewise.
7098 * expmed.c : Likewise.
7099 * expr.c : Likewise.
7100 * final.c : Likewise.
7101 * fixed-value.c : Likewise.
7102 * fold-const.c : Likewise.
7103 * function.c : Likewise.
7104 * fwprop.c : Likewise.
7105 * gcc-plugin.h : Likewise.
7106 * gcc.c : Likewise.
7107 * gcse-common.c : Likewise.
7108 * gcse.c : Likewise.
7109 * genattrtab.c : Likewise.
7110 * genautomata.c : Likewise.
7111 * genconditions.c : Likewise.
7112 * genemit.c : Likewise.
7113 * generic-match-head.c : Likewise.
7114 * genextract.c : Likewise.
7115 * gengtype-state.c : Likewise.
7116 * gengtype.c : Likewise.
7117 * genhooks.c : Likewise.
7118 * genmatch.c : Likewise.
7119 * genmodes.c : Likewise.
7120 * genrecog.c : Likewise.
7121 * gensupport.c : Likewise.
7122 * ggc-common.c : Likewise.
7123 * ggc-internal.h : Likewise.
7124 * ggc-none.c : Likewise.
7125 * ggc-page.c : Likewise.
7126 * gimple-builder.c : Likewise.
7127 * gimple-expr.c : Likewise.
7128 * gimple-fold.c : Likewise.
7129 * gimple-iterator.c : Likewise.
7130 * gimple-low.c : Likewise.
7131 * gimple-match-head.c : Likewise.
7132 * gimple-pretty-print.c : Likewise.
7133 * gimple-ssa-isolate-paths.c : Likewise.
7134 * gimple-ssa-strength-reduction.c : Likewise.
7135 * gimple-ssa.h : Likewise.
7136 * gimple-streamer-in.c : Likewise.
7137 * gimple-streamer-out.c : Likewise.
7138 * gimple-streamer.h : Likewise.
7139 * gimple-walk.c : Likewise.
7140 * gimple.c : Likewise.
7141 * gimplify-me.c : Likewise.
7142 * gimplify.c : Likewise.
7143 * godump.c : Likewise.
7144 * graph.c : Likewise.
7145 * graphds.c : Likewise.
7146 * graphite-blocking.c : Likewise.
7147 * graphite-dependences.c : Likewise.
7148 * graphite-interchange.c : Likewise.
7149 * graphite-isl-ast-to-gimple.c : Likewise.
7150 * graphite-optimize-isl.c : Likewise.
7151 * graphite-poly.c : Likewise.
7152 * graphite-scop-detection.c : Likewise.
7153 * graphite-sese-to-poly.c : Likewise.
7154 * graphite.c : Likewise.
7155 * haifa-sched.c : Likewise.
7156 * hard-reg-set.h : Likewise.
7157 * hw-doloop.c : Likewise.
7158 * ifcvt.c : Likewise.
7159 * inchash.c : Likewise.
7160 * incpath.c : Likewise.
7161 * init-regs.c : Likewise.
7162 * input.c : Likewise.
7163 * internal-fn.c : Likewise.
7164 * ipa-chkp.c : Likewise.
7165 * ipa-comdats.c : Likewise.
7166 * ipa-cp.c : Likewise.
7167 * ipa-devirt.c : Likewise.
7168 * ipa-icf-gimple.c : Likewise.
7169 * ipa-icf.c : Likewise.
7170 * ipa-inline-analysis.c : Likewise.
7171 * ipa-inline-transform.c : Likewise.
7172 * ipa-inline.c : Likewise.
7173 * ipa-polymorphic-call.c : Likewise.
7174 * ipa-profile.c : Likewise.
7175 * ipa-prop.c : Likewise.
7176 * ipa-pure-const.c : Likewise.
7177 * ipa-ref.c : Likewise.
7178 * ipa-reference.c : Likewise.
7179 * ipa-split.c : Likewise.
7180 * ipa-utils.c : Likewise.
7181 * ipa-visibility.c : Likewise.
7182 * ipa.c : Likewise.
7183 * ira-build.c : Likewise.
7184 * ira-color.c : Likewise.
7185 * ira-conflicts.c : Likewise.
7186 * ira-costs.c : Likewise.
7187 * ira-emit.c : Likewise.
7188 * ira-lives.c : Likewise.
7189 * ira.c : Likewise.
7190 * jump.c : Likewise.
7191 * langhooks.c : Likewise.
7192 * lcm.c : Likewise.
7193 * libfuncs.h : Likewise.
7194 * lists.c : Likewise.
7195 * loop-doloop.c : Likewise.
7196 * loop-init.c : Likewise.
7197 * loop-invariant.c : Likewise.
7198 * loop-iv.c : Likewise.
7199 * loop-unroll.c : Likewise.
7200 * lower-subreg.c : Likewise.
7201 * lra-assigns.c : Likewise.
7202 * lra-coalesce.c : Likewise.
7203 * lra-constraints.c : Likewise.
7204 * lra-eliminations.c : Likewise.
7205 * lra-lives.c : Likewise.
7206 * lra-remat.c : Likewise.
7207 * lra-spills.c : Likewise.
7208 * lra.c : Likewise.
7209 * lto-cgraph.c : Likewise.
7210 * lto-compress.c : Likewise.
7211 * lto-opts.c : Likewise.
7212 * lto-section-in.c : Likewise.
7213 * lto-section-out.c : Likewise.
7214 * lto-streamer-in.c : Likewise.
7215 * lto-streamer-out.c : Likewise.
7216 * lto-streamer.c : Likewise.
7217 * lto-streamer.h : Likewise.
7218 * mcf.c : Likewise.
7219 * mode-switching.c : Likewise.
7220 * modulo-sched.c : Likewise.
7221 * omega.c : Likewise.
7222 * omp-low.c : Likewise.
7223 * optabs.c : Likewise.
7224 * opts-global.c : Likewise.
7225 * opts.h : Likewise.
7226 * passes.c : Likewise.
7227 * plugin.c : Likewise.
7228 * postreload-gcse.c : Likewise.
7229 * postreload.c : Likewise.
7230 * predict.c : Likewise.
7231 * print-rtl.c : Likewise.
7232 * print-tree.c : Likewise.
7233 * profile.c : Likewise.
7234 * read-md.c : Likewise.
7235 * read-md.h : Likewise.
7236 * read-rtl.c : Likewise.
7237 * real.c : Likewise.
7238 * realmpfr.c : Likewise.
7239 * recog.c : Likewise.
7240 * ree.c : Likewise.
7241 * reg-stack.c : Likewise.
7242 * regcprop.c : Likewise.
7243 * reginfo.c : Likewise.
7244 * regrename.c : Likewise.
7245 * regstat.c : Likewise.
7246 * reload.c : Likewise.
7247 * reload1.c : Likewise.
7248 * reorg.c : Likewise.
7249 * resource.c : Likewise.
7250 * rtl-chkp.c : Likewise.
7251 * rtl.c : Likewise.
7252 * rtl.h : Likewise.
7253 * rtlanal.c : Likewise.
7254 * rtlhash.c : Likewise.
7255 * rtlhash.h : Likewise.
7256 * rtlhooks.c : Likewise.
7257 * sanopt.c : Likewise.
7258 * sched-deps.c : Likewise.
7259 * sched-ebb.c : Likewise.
7260 * sched-rgn.c : Likewise.
7261 * sched-vis.c : Likewise.
7262 * sdbout.c : Likewise.
7263 * sel-sched-dump.c : Likewise.
7264 * sel-sched-ir.c : Likewise.
7265 * sel-sched-ir.h : Likewise.
7266 * sel-sched.c : Likewise.
7267 * sese.c : Likewise.
7268 * shrink-wrap.c : Likewise.
7269 * shrink-wrap.h : Likewise.
7270 * simplify-rtx.c : Likewise.
7271 * stack-ptr-mod.c : Likewise.
7272 * statistics.c : Likewise.
7273 * stmt.c : Likewise.
7274 * stor-layout.c : Likewise.
7275 * store-motion.c : Likewise.
7276 * stringpool.c : Likewise.
7277 * symtab.c : Likewise.
7278 * target-globals.c : Likewise.
7279 * targhooks.c : Likewise.
7280 * tlink.c : Likewise.
7281 * toplev.c : Likewise.
7282 * tracer.c : Likewise.
7283 * trans-mem.c : Likewise.
7284 * tree-affine.c : Likewise.
7285 * tree-affine.h : Likewise.
7286 * tree-browser.c : Likewise.
7287 * tree-call-cdce.c : Likewise.
7288 * tree-cfg.c : Likewise.
7289 * tree-cfgcleanup.c : Likewise.
7290 * tree-chkp-opt.c : Likewise.
7291 * tree-chkp.c : Likewise.
7292 * tree-chrec.c : Likewise.
7293 * tree-complex.c : Likewise.
7294 * tree-data-ref.c : Likewise.
7295 * tree-dfa.c : Likewise.
7296 * tree-diagnostic.c : Likewise.
7297 * tree-dump.c : Likewise.
7298 * tree-eh.c : Likewise.
7299 * tree-eh.h : Likewise.
7300 * tree-emutls.c : Likewise.
7301 * tree-hasher.h : Likewise.
7302 * tree-if-conv.c : Likewise.
7303 * tree-inline.c : Likewise.
7304 * tree-inline.h : Likewise.
7305 * tree-into-ssa.c : Likewise.
7306 * tree-iterator.c : Likewise.
7307 * tree-loop-distribution.c : Likewise.
7308 * tree-nested.c : Likewise.
7309 * tree-nrv.c : Likewise.
7310 * tree-object-size.c : Likewise.
7311 * tree-outof-ssa.c : Likewise.
7312 * tree-parloops.c : Likewise.
7313 * tree-phinodes.c : Likewise.
7314 * tree-predcom.c : Likewise.
7315 * tree-pretty-print.c : Likewise.
7316 * tree-profile.c : Likewise.
7317 * tree-scalar-evolution.c : Likewise.
7318 * tree-sra.c : Likewise.
7319 * tree-ssa-address.c : Likewise.
7320 * tree-ssa-alias.c : Likewise.
7321 * tree-ssa-ccp.c : Likewise.
7322 * tree-ssa-coalesce.c : Likewise.
7323 * tree-ssa-copy.c : Likewise.
7324 * tree-ssa-copyrename.c : Likewise.
7325 * tree-ssa-dce.c : Likewise.
7326 * tree-ssa-dom.c : Likewise.
7327 * tree-ssa-dse.c : Likewise.
7328 * tree-ssa-forwprop.c : Likewise.
7329 * tree-ssa-ifcombine.c : Likewise.
7330 * tree-ssa-live.c : Likewise.
7331 * tree-ssa-loop-ch.c : Likewise.
7332 * tree-ssa-loop-im.c : Likewise.
7333 * tree-ssa-loop-ivcanon.c : Likewise.
7334 * tree-ssa-loop-ivopts.c : Likewise.
7335 * tree-ssa-loop-manip.c : Likewise.
7336 * tree-ssa-loop-niter.c : Likewise.
7337 * tree-ssa-loop-prefetch.c : Likewise.
7338 * tree-ssa-loop-unswitch.c : Likewise.
7339 * tree-ssa-loop.c : Likewise.
7340 * tree-ssa-math-opts.c : Likewise.
7341 * tree-ssa-operands.c : Likewise.
7342 * tree-ssa-phiopt.c : Likewise.
7343 * tree-ssa-phiprop.c : Likewise.
7344 * tree-ssa-pre.c : Likewise.
7345 * tree-ssa-propagate.c : Likewise.
7346 * tree-ssa-reassoc.c : Likewise.
7347 * tree-ssa-sccvn.c : Likewise.
7348 * tree-ssa-scopedtables.c : Likewise.
7349 * tree-ssa-sink.c : Likewise.
7350 * tree-ssa-strlen.c : Likewise.
7351 * tree-ssa-structalias.c : Likewise.
7352 * tree-ssa-tail-merge.c : Likewise.
7353 * tree-ssa-ter.c : Likewise.
7354 * tree-ssa-threadedge.c : Likewise.
7355 * tree-ssa-threadupdate.c : Likewise.
7356 * tree-ssa-uncprop.c : Likewise.
7357 * tree-ssa-uninit.c : Likewise.
7358 * tree-ssa.c : Likewise.
7359 * tree-ssanames.c : Likewise.
7360 * tree-stdarg.c : Likewise.
7361 * tree-streamer-in.c : Likewise.
7362 * tree-streamer-out.c : Likewise.
7363 * tree-streamer.c : Likewise.
7364 * tree-streamer.h : Likewise.
7365 * tree-switch-conversion.c : Likewise.
7366 * tree-tailcall.c : Likewise.
7367 * tree-vect-data-refs.c : Likewise.
7368 * tree-vect-generic.c : Likewise.
7369 * tree-vect-loop-manip.c : Likewise.
7370 * tree-vect-loop.c : Likewise.
7371 * tree-vect-patterns.c : Likewise.
7372 * tree-vect-slp.c : Likewise.
7373 * tree-vect-stmts.c : Likewise.
7374 * tree-vectorizer.c : Likewise.
7375 * tree-vectorizer.h : Likewise.
7376 * tree-vrp.c : Likewise.
7377 * tree.c : Likewise.
7378 * tsan.c : Likewise.
7379 * ubsan.c : Likewise.
7380 * valtrack.c : Likewise.
7381 * valtrack.h : Likewise.
7382 * value-prof.c : Likewise.
7383 * var-tracking.c : Likewise.
7384 * varasm.c : Likewise.
7385 * varpool.c : Likewise.
7386 * vec.c: Likewise.
7387 * vmsdbgout.c : Likewise.
7388 * vtable-verify.c : Likewise.
7389 * vtable-verify.h : Likewise.
7390 * web.c : Likewise.
7391 * wide-int.cc : Likewise.
7392 * xcoffout.c : Likewise.
7393 * config/aarch64/aarch64-builtins.c : Likewise.
7394 * config/aarch64/aarch64.c : Likewise.
7395 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7396 * config/alpha/alpha.c : Likewise.
7397 * config/arc/arc.c : Likewise.
7398 * config/arm/aarch-common.c : Likewise.
7399 * config/arm/arm-builtins.c : Likewise.
7400 * config/arm/arm-c.c : Likewise.
7401 * config/arm/arm.c : Likewise.
7402 * config/avr/avr-c.c : Likewise.
7403 * config/avr/avr-log.c : Likewise.
7404 * config/avr/avr.c : Likewise.
7405 * config/bfin/bfin.c : Likewise.
7406 * config/c6x/c6x.c : Likewise.
7407 * config/cr16/cr16.c : Likewise.
7408 * config/cris/cris.c : Likewise.
7409 * config/darwin-c.c : Likewise.
7410 * config/darwin.c : Likewise.
7411 * config/default-c.c : Likewise.
7412 * config/epiphany/epiphany.c : Likewise.
7413 * config/epiphany/mode-switch-use.c : Likewise.
7414 * config/epiphany/resolve-sw-modes.c : Likewise.
7415 * config/fr30/fr30.c : Likewise.
7416 * config/frv/frv.c : Likewise.
7417 * config/ft32/ft32.c : Likewise.
7418 * config/glibc-c.c : Likewise.
7419 * config/h8300/h8300.c : Likewise.
7420 * config/i386/i386-c.c : Likewise.
7421 * config/i386/i386.c : Likewise.
7422 * config/i386/msformat-c.c : Likewise.
7423 * config/i386/winnt-cxx.c : Likewise.
7424 * config/i386/winnt-stubs.c : Likewise.
7425 * config/i386/winnt.c : Likewise.
7426 * config/ia64/ia64-c.c : Likewise.
7427 * config/ia64/ia64.c : Likewise.
7428 * config/iq2000/iq2000.c : Likewise.
7429 * config/lm32/lm32.c : Likewise.
7430 * config/m32c/m32c-pragma.c : Likewise.
7431 * config/m32c/m32c.c : Likewise.
7432 * config/m32r/m32r.c : Likewise.
7433 * config/m68k/m68k.c : Likewise.
7434 * config/mcore/mcore.c : Likewise.
7435 * config/mep/mep-pragma.c : Likewise.
7436 * config/mep/mep.c : Likewise.
7437 * config/microblaze/microblaze-c.c : Likewise.
7438 * config/microblaze/microblaze.c : Likewise.
7439 * config/mips/mips.c : Likewise.
7440 * config/mmix/mmix.c : Likewise.
7441 * config/mn10300/mn10300.c : Likewise.
7442 * config/moxie/moxie.c : Likewise.
7443 * config/msp430/msp430-c.c : Likewise.
7444 * config/msp430/msp430.c : Likewise.
7445 * config/nds32/nds32-cost.c : Likewise.
7446 * config/nds32/nds32-fp-as-gp.c : Likewise.
7447 * config/nds32/nds32-intrinsic.c : Likewise.
7448 * config/nds32/nds32-isr.c : Likewise.
7449 * config/nds32/nds32-md-auxiliary.c : Likewise.
7450 * config/nds32/nds32-memory-manipulation.c : Likewise.
7451 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7452 * config/nds32/nds32-predicates.c : Likewise.
7453 * config/nds32/nds32.c : Likewise.
7454 * config/nios2/nios2.c : Likewise.
7455 * config/nvptx/nvptx.c : Likewise.
7456 * config/pa/pa.c : Likewise.
7457 * config/pdp11/pdp11.c : Likewise.
7458 * config/rl78/rl78-c.c : Likewise.
7459 * config/rl78/rl78.c : Likewise.
7460 * config/rs6000/rs6000-c.c : Likewise.
7461 * config/rs6000/rs6000.c : Likewise.
7462 * config/rx/rx.c : Likewise.
7463 * config/s390/s390-c.c : Likewise.
7464 * config/s390/s390.c : Likewise.
7465 * config/sh/sh-c.c : Likewise.
7466 * config/sh/sh-mem.cc : Likewise.
7467 * config/sh/sh.c : Likewise.
7468 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7469 * config/sh/sh_treg_combine.cc : Likewise.
7470 * config/sol2-c.c : Likewise.
7471 * config/sol2-cxx.c : Likewise.
7472 * config/sol2-stubs.c : Likewise.
7473 * config/sol2.c : Likewise.
7474 * config/sparc/sparc-c.c : Likewise.
7475 * config/sparc/sparc.c : Likewise.
7476 * config/spu/spu-c.c : Likewise.
7477 * config/spu/spu.c : Likewise.
7478 * config/stormy16/stormy16.c : Likewise.
7479 * config/tilegx/mul-tables.c : Likewise.
7480 * config/tilegx/tilegx-c.c : Likewise.
7481 * config/tilegx/tilegx.c : Likewise.
7482 * config/tilepro/mul-tables.c : Likewise.
7483 * config/tilepro/tilepro-c.c : Likewise.
7484 * config/tilepro/tilepro.c : Likewise.
7485 * config/v850/v850-c.c : Likewise.
7486 * config/v850/v850.c : Likewise.
7487 * config/vax/vax.c : Likewise.
7488 * config/visium/visium.c : Likewise.
7489 * config/vms/vms-c.c : Likewise.
7490 * config/vms/vms.c : Likewise.
7491 * config/vxworks.c : Likewise.
7492 * config/winnt-c.c : Likewise.
7493 * config/xtensa/xtensa.c : Likewise.
7494
7495 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7496
7497 PR lto/65378
7498 * ipa-utils.h (warn_types_mismatch): Update prototype.
7499 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7500 parameters.
7501 (type_mismatch_p): New function.
7502 (warn_types_mismatch): Reorg to work better on non-C++ types.
7503 (odr_types_equivalent_p): Add loc1/loc2 parameters.
7504 (add_type_duplicate): Update.
7505
7506 2015-06-08 Tom de Vries <tom@codesourcery.com>
7507
7508 PR rtl-optimization/66444
7509 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7510 call_used_regs.
7511
7512 2015-06-08 Richard Biener <rguenther@suse.de>
7513
7514 PR tree-optimization/66422
7515 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7516 block after inserted gcc_unreachable.
7517
7518 2015-06-08 Nick Clifton <nickc@redhat.com>
7519
7520 * config/rx/rx.c (rx_function_value): Do not promote vector types.
7521 (rx_promote_function_mode): Likewise.
7522 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7523
7524 2015-06-08 Jakub Jelinek <jakub@redhat.com>
7525
7526 * genattrtab.c (insn_alternatives): Change type from int *
7527 to uint64_t *.
7528 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7529 (get_attr_value): Change type of num_alt to uint64_t.
7530 (compute_alternative_mask): Change return type from
7531 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7532 (make_alternative_compare, mk_attr_alt): Change argument type
7533 from int to uint64_t.
7534 (simplify_test_exp): Change type of i from int to uint64_t.
7535 Shift ((uint64_t) 1) instead of 1 up.
7536 (main): Adjust oballocvec first argument from int to uint64_t.
7537 Shift ((uint64_t) 1) instead of 1 up.
7538
7539 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7540
7541 PR other/65366
7542 * gdbhooks.py: Import sys.
7543 (intptr): New function. Replace int(...) by intptr(...).
7544
7545 2015-06-08 Richard Biener <rguenther@suse.de>
7546
7547 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7548 adjustment for gaps at the end of a SLP load group properly.
7549 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7550 all permutations we can generate.
7551 (vect_transform_slp_perm_load): Use the correct group-size.
7552
7553 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
7554
7555 * genmatch.c (expr::gen_transform): For conditions, guess the type
7556 from the second operand.
7557
7558 2015-06-08 Tom de Vries <tom@codesourcery.com>
7559
7560 PR tree-optimization/66442
7561 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7562 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7563 if the loop latch is not a singleton. Use
7564 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7565
7566 2015-06-08 Marek Polacek <polacek@redhat.com>
7567
7568 PR sanitizer/66452
7569 * toplev.c (check_global_declaration): Don't warn about artificial
7570 decls.
7571
7572 2015-06-08 Tom de Vries <tom@codesourcery.com>
7573
7574 PR tree-optimization/66436
7575 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7576 dump file.
7577 * gimplify.c: Add tree-dump.h include.
7578 (gimplify_function_tree): Dump function to gimple dump file.
7579 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7580 dump file.
7581
7582 2015-06-08 Tom de Vries <tom@codesourcery.com>
7583
7584 PR tree-optimization/66435
7585 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7586 function.
7587
7588 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
7589
7590 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7591 of ptr_type_node to not be ptr_to_node.
7592 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7593 TREE_TYPE of pointers.
7594 * gimple-expr.c (useless_type_conversion): Reorder the check for
7595 function pointers and TYPE_CANONICAL.
7596
7597 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
7598
7599 PR bootstrap/66319
7600 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7601 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7602 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7603 later.
7604 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7605 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7606 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7607 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7608 and non iso if unix2003.
7609
7610 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
7611
7612 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7613
7614 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
7615
7616 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7617 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7618 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7619 except.c, final.c, function.c, gcse-common.c, genemit.c,
7620 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7621 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7622 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7623 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7624 more derived ones.
7625
7626 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
7627
7628 * combine.c (combine_split_insns): Remove cast.
7629 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7630 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7631 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7632 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7633 * genemit.c (gen_split): Change return type of generated functions to
7634 rtx_insn.
7635 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7636 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7637 gen_peephole2_* functions.
7638 (print_subroutine, main): Likewise.
7639 * recog.c (peephole2_optimize): Remove cast.
7640 (peep2_next_insn): Promote return type to rtx_insn.
7641 * recog.h (peep2_next_insn): Fix prototype.
7642 * rtl.h (try_split, split_insns): Likewise.
7643
7644 2015-06-06 DJ Delorie <dj@redhat.com>
7645
7646 * config/msp430/msp430.c (msp430_asm_integer): Support addition
7647 and subtraction too.
7648
7649 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
7650
7651 PR target/66410
7652 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7653 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7654 instead of Snd. Disparage Sid/z alternative with '^'.
7655
7656 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7657
7658 * dwarf2out.c: Remove deferred_locations*.
7659 (dwarf2_debug_hooks): Add early_finish hook.
7660 Remove global_decl hook.
7661 Add early_global_decl and late_global_decl hook.
7662 New global early_dwarf.
7663 New structure set_early_dwarf.
7664 (output_die): Indicate whether a DIE was generated early
7665 when generating assembly with -dA.
7666 (struct limbo_die_struct): Document created_for field.
7667 Remove file_table_last_lookup.
7668 (remove_AT): Return TRUE if successful.
7669 (remove_child_TAG): Clear die_parent.
7670 (reparent_child): New function abstracted from...
7671 (splice_child_die): ...here.
7672 (new_die): ICE if a DIE ends up in limbo too late.
7673 (check_die): New.
7674 (defer_location): Remove.
7675 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7676 (fill_variable_array_bounds): New.
7677 (decl_start_label): Call fill_variable_array_bounds.
7678 (gen_formal_parameter_die): Rewrite to reuse previously generated
7679 DIEs.
7680 (gen_subprogram_die): Same.
7681 (gen_variable_die): Same.
7682 (gen_const_die): Same.
7683 (gen_label_die): Same.
7684 (gen_lexical_block_die): Same.
7685 (decl_will_get_specification_p): New.
7686 (local_function_static): New.
7687 (gen_struct_or_union_type_die): Fill in variable-length fields.
7688 (gen_typedef_die): Fill in variable-length typedefs.
7689 (gen_tagged_type_die): Gracefully return on error_mark_node.
7690 Handle re-entrancy.
7691 (gen_type_die_with_usage): Handle variable-length types.
7692 Remove duplicate code for ARRAY_TYPE case.
7693 (process_scope_var): Only process imported modules during early
7694 dwarf.
7695 (dwarf2out_early_global_decl): New.
7696 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7697 (dwarf2out_type_decl): Set early_dwarf while calling
7698 dwarf2out_decl.
7699 (dwarf2out_decl): Verify that we did not recreate a previously
7700 generated DIE.
7701 Do not return on DECL_EXTERNALs in VAR_DECLs.
7702 Abstract some code to local_function_static.
7703 (lookup_filename): Remove use of file_table_last_lookup.
7704 Gracefully exit on missing file_name.
7705 (dwarf2out_finish): Verify limbo list.
7706 Remove deferred_locations_list use.
7707 Move deferred_asm_name and limbo flushing to...
7708 (dwarf2out_early_finish): ...here. New.
7709 (dwarf2out_c_finalize): Remove set of deferred_location_list,
7710 deferred_asm_name, and file_table_last_lookup.
7711 * cgraph.h (referred_to_p): Add default argument.
7712 * cgraphunit.c (referred_to_p): Add and handle include_self
7713 argument.
7714 (analyze_functions): Add first_time argument.
7715 Call check_global_declaration for all symbols.
7716 Call late_global_decl for nodes for moribund nodes.
7717 (finalize_compilation_unit): Add new argument to
7718 analyze_functions.
7719 Call early_global_decl for functions.
7720 Call early_finish debug hook.
7721 * dbxout.c (dbxout_early_global_decl): New.
7722 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
7723 (dbx_debug_hooks): Add new hooks.
7724 (xcoff_debug_hooks): Same.
7725 * debug.c (do_nothing_debug_hooks): Add early_finish field.
7726 Add early and late debug hooks.
7727 Remove global_decl hook.
7728 * debug.h (struct gcc_debug_hooks): Add early_finish,
7729 early_global_decl, and late_global_decl fields.
7730 Remove global_decl field.
7731 Document gcc_debug_hooks.
7732 * gengtype.c (output_typename): Remove.
7733 * godump.c (go_early_global_decl): New.
7734 (go_late_global_decl): New.
7735 (go_global_decl): Remove.
7736 (dump_go_spec_init): Remove global_decl. Add
7737 {early,late}_global_decl.
7738 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7739 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7740 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7741 (write_global_declarations): Remove.
7742 (global_decl_processing): New.
7743 * langhooks.h (struct lang_hooks_for_decls): Remove
7744 final_write_globals field.
7745 Add post_compilation_parsing_cleanups field.
7746 * passes.c (rest_of_decl_compilation): Call early_global_decl.
7747 * sdbout.c: Add early and late_global_decl hooks. Remove
7748 sdbout_global_decl hook.
7749 Add early_finish field for sdb_debug_hooks.
7750 (sdbout_global_decl): Remove.
7751 (sdbout_early_global_decl): New.
7752 (sdbout_late_global_decl): New.
7753 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7754 * toplev.c (check_global_declaration): Rename from
7755 check_global_declaration_1.
7756 Adapt to use symtab infrastructure.
7757 (check_global_declarations): Remove.
7758 (emit_debug_global_declarations): Remove.
7759 (compile_file): Remove call to final_write_globals langhook.
7760 Run the actual compilation process.
7761 Perform any post compilation parser cleanups.
7762 Generate late debug info.
7763 * toplev.h (check_global_declaration): New.
7764 (check_global_declaration_1): Remove.
7765 (check_global_declarations): Remove.
7766 (write_global_declarations): Remove.
7767 (emit_debug_global_declarations): Remove.
7768 (global_decl_processing): New.
7769 * tree-core.h (struct tree_block): Add DIE field.
7770 * tree.h (BLOCK_DIE): New.
7771 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7772 throughout.
7773 (vmsdbgout_early_global_decl): New.
7774 (vmsdbgout_late_global_decl): New.
7775 Add early_finish debug hook field to vmsdbg_debug_hooks.
7776 Remove vmsdbgout_decl to vmsdbgout_function_decl.
7777 Add early and late_global_decl debug hooks.
7778
7779 2015-06-05 Julian Brown <julian@codesourcery.com>
7780 Sandra Loosemore <sandra@codesourcery.com>
7781
7782 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7783 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7784 to print-sysroot-suffix.sh script.
7785
7786 2015-06-05 Tom de Vries <tom@codesourcery.com>
7787
7788 merge from gomp4 branch:
7789 2015-05-28 Tom de Vries <tom@codesourcery.com>
7790
7791 PR tree-optimization/65443
7792 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7793 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7794 (try_transform_to_exit_first_loop_alt): New function.
7795 (transform_to_exit_first_loop): Use
7796 try_transform_to_exit_first_loop_alt.
7797
7798 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
7799
7800 * builtins.c (expand_builtin_atomic_compare_exchange): Call
7801 emit_cmp_and_jump_insns with the mode of target.
7802
7803 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7804
7805 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7806
7807 2015-06-04 DJ Delorie <dj@redhat.com>
7808
7809 * config/msp430/msp430.md (movsi_s): New. Special case for
7810 storing a 20-bit symbol into a 32-bit register.
7811 * config/msp430/msp430.c (msp430_subreg): Add support for it.
7812 * config/msp430/predicates.md (msp430_symbol_operand): New.
7813
7814 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7815
7816 * c-family/c-common.c (noplt): New attribute.
7817 (handle_noplt_attribute): New handler.
7818 * calls.c (prepare_call_address): Check for noplt
7819 attribute.
7820 * config/i386/i386.c (ix86_expand_call): Check
7821 for noplt attribute.
7822 (ix86_nopic_noplt_attribute_p): New function.
7823 (ix86_output_call_insn): Output indirect call for non-pic
7824 no plt calls.
7825 * doc/extend.texi (noplt): Document new attribute.
7826 * doc/invoke.texi: Document new attribute.
7827
7828 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7829
7830 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7831 real.h, and fixed-value.h when included in host source files.
7832 * double-int.h: Remove redundant #includes listed above.
7833 * fixed-value.h: Likewise.
7834 * real.h: Likewise.
7835 * wide-int.h: Likewise.
7836 * inchash.h: Likewise.
7837 * rtl.h: Add some include files When included from a generator file.
7838 * target.h: Remove wide-int.h and insn-modes.h from the include list.
7839 * internal-fn.h: Don't include coretypes.h.
7840 * alias.c: Adjust includes for restructured coretypes.h.
7841 * asan.c: Likewise.
7842 * attribs.c: Likewise.
7843 * auto-inc-dec.c: Likewise.
7844 * auto-profile.c: Likewise.
7845 * bb-reorder.c: Likewise.
7846 * bt-load.c: Likewise.
7847 * builtins.c: Likewise.
7848 * caller-save.c: Likewise.
7849 * calls.c: Likewise.
7850 * ccmp.c: Likewise.
7851 * cfg.c: Likewise.
7852 * cfganal.c: Likewise.
7853 * cfgbuild.c: Likewise.
7854 * cfgcleanup.c: Likewise.
7855 * cfgexpand.c: Likewise.
7856 * cfghooks.c: Likewise.
7857 * cfgloop.c: Likewise.
7858 * cfgloop.h: Likewise.
7859 * cfgloopanal.c: Likewise.
7860 * cfgloopmanip.c: Likewise.
7861 * cfgrtl.c: Likewise.
7862 * cgraph.c: Likewise.
7863 * cgraphbuild.c: Likewise.
7864 * cgraphclones.c: Likewise.
7865 * cgraphunit.c: Likewise.
7866 * cilk-common.c: Likewise.
7867 * combine-stack-adj.c: Likewise.
7868 * combine.c: Likewise.
7869 * compare-elim.c: Likewise.
7870 * convert.c: Likewise.
7871 * coverage.c: Likewise.
7872 * cppbuiltin.c: Likewise.
7873 * cprop.c: Likewise.
7874 * cse.c: Likewise.
7875 * cselib.c: Likewise.
7876 * data-streamer-in.c: Likewise.
7877 * data-streamer-out.c: Likewise.
7878 * data-streamer.c: Likewise.
7879 * dbxout.c: Likewise.
7880 * dce.c: Likewise.
7881 * ddg.c: Likewise.
7882 * debug.c: Likewise.
7883 * df-core.c: Likewise.
7884 * df-problems.c: Likewise.
7885 * df-scan.c: Likewise.
7886 * df.h: Likewise.
7887 * dfp.c: Likewise.
7888 * dojump.c: Likewise.
7889 * dominance.c: Likewise.
7890 * domwalk.c: Likewise.
7891 * double-int.c: Likewise.
7892 * dse.c: Likewise.
7893 * dumpfile.c: Likewise.
7894 * dwarf2asm.c: Likewise.
7895 * dwarf2cfi.c: Likewise.
7896 * dwarf2out.c: Likewise.
7897 * dwarf2out.h: Likewise.
7898 * emit-rtl.c: Likewise.
7899 * et-forest.c: Likewise.
7900 * except.c: Likewise.
7901 * explow.c: Likewise.
7902 * expmed.c: Likewise.
7903 * expr.c: Likewise.
7904 * final.c: Likewise.
7905 * fixed-value.c: Likewise.
7906 * fold-const.c: Likewise.
7907 * function.c: Likewise.
7908 * fwprop.c: Likewise.
7909 * gcc-plugin.h: Likewise.
7910 * gcse.c: Likewise.
7911 * generic-match-head.c: Likewise.
7912 * ggc-page.c: Likewise.
7913 * gimple-builder.c: Likewise.
7914 * gimple-expr.c: Likewise.
7915 * gimple-fold.c: Likewise.
7916 * gimple-iterator.c: Likewise.
7917 * gimple-low.c: Likewise.
7918 * gimple-match-head.c: Likewise.
7919 * gimple-pretty-print.c: Likewise.
7920 * gimple-ssa-isolate-paths.c: Likewise.
7921 * gimple-ssa-strength-reduction.c: Likewise.
7922 * gimple-streamer-in.c: Likewise.
7923 * gimple-streamer-out.c: Likewise.
7924 * gimple-streamer.h: Likewise.
7925 * gimple-walk.c: Likewise.
7926 * gimple.c: Likewise.
7927 * gimplify-me.c: Likewise.
7928 * gimplify.c: Likewise.
7929 * godump.c: Likewise.
7930 * graph.c: Likewise.
7931 * graphite-blocking.c: Likewise.
7932 * graphite-dependences.c: Likewise.
7933 * graphite-interchange.c: Likewise.
7934 * graphite-isl-ast-to-gimple.c: Likewise.
7935 * graphite-optimize-isl.c: Likewise.
7936 * graphite-poly.c: Likewise.
7937 * graphite-scop-detection.c: Likewise.
7938 * graphite-sese-to-poly.c: Likewise.
7939 * graphite.c: Likewise.
7940 * haifa-sched.c: Likewise.
7941 * hooks.h: Likewise.
7942 * hw-doloop.c: Likewise.
7943 * ifcvt.c: Likewise.
7944 * incpath.c: Likewise.
7945 * init-regs.c: Likewise.
7946 * internal-fn.c: Likewise.
7947 * ipa-chkp.c: Likewise.
7948 * ipa-comdats.c: Likewise.
7949 * ipa-cp.c: Likewise.
7950 * ipa-devirt.c: Likewise.
7951 * ipa-icf-gimple.c: Likewise.
7952 * ipa-icf.c: Likewise.
7953 * ipa-inline-analysis.c: Likewise.
7954 * ipa-inline-transform.c: Likewise.
7955 * ipa-inline.c: Likewise.
7956 * ipa-polymorphic-call.c: Likewise.
7957 * ipa-profile.c: Likewise.
7958 * ipa-prop.c: Likewise.
7959 * ipa-pure-const.c: Likewise.
7960 * ipa-ref.c: Likewise.
7961 * ipa-reference.c: Likewise.
7962 * ipa-split.c: Likewise.
7963 * ipa-utils.c: Likewise.
7964 * ipa-visibility.c: Likewise.
7965 * ipa.c: Likewise.
7966 * ira-build.c: Likewise.
7967 * ira-color.c: Likewise.
7968 * ira-conflicts.c: Likewise.
7969 * ira-costs.c: Likewise.
7970 * ira-emit.c: Likewise.
7971 * ira-lives.c: Likewise.
7972 * ira.c: Likewise.
7973 * jump.c: Likewise.
7974 * langhooks.c: Likewise.
7975 * lcm.c: Likewise.
7976 * loop-doloop.c: Likewise.
7977 * loop-init.c: Likewise.
7978 * loop-invariant.c: Likewise.
7979 * loop-iv.c: Likewise.
7980 * loop-unroll.c: Likewise.
7981 * lower-subreg.c: Likewise.
7982 * lra-assigns.c: Likewise.
7983 * lra-coalesce.c: Likewise.
7984 * lra-constraints.c: Likewise.
7985 * lra-eliminations.c: Likewise.
7986 * lra-lives.c: Likewise.
7987 * lra-remat.c: Likewise.
7988 * lra-spills.c: Likewise.
7989 * lra.c: Likewise.
7990 * lto-cgraph.c: Likewise.
7991 * lto-compress.c: Likewise.
7992 * lto-opts.c: Likewise.
7993 * lto-section-in.c: Likewise.
7994 * lto-section-out.c: Likewise.
7995 * lto-streamer-in.c: Likewise.
7996 * lto-streamer-out.c: Likewise.
7997 * lto-streamer.c: Likewise.
7998 * mcf.c: Likewise.
7999 * mode-switching.c: Likewise.
8000 * modulo-sched.c: Likewise.
8001 * omega.c: Likewise.
8002 * omp-low.c: Likewise.
8003 * optabs.c: Likewise.
8004 * opts-global.c: Likewise.
8005 * passes.c: Likewise.
8006 * plugin.c: Likewise.
8007 * postreload-gcse.c: Likewise.
8008 * postreload.c: Likewise.
8009 * predict.c: Likewise.
8010 * print-rtl.c: Likewise.
8011 * print-tree.c: Likewise.
8012 * profile.c: Likewise.
8013 * real.c: Likewise.
8014 * realmpfr.c: Likewise.
8015 * realmpfr.h: Likewise.
8016 * recog.c: Likewise.
8017 * ree.c: Likewise.
8018 * reg-stack.c: Likewise.
8019 * regcprop.c: Likewise.
8020 * reginfo.c: Likewise.
8021 * regrename.c: Likewise.
8022 * regs.h: Likewise.
8023 * regstat.c: Likewise.
8024 * reload.c: Likewise.
8025 * reload1.c: Likewise.
8026 * reorg.c: Likewise.
8027 * resource.c: Likewise.
8028 * rtl-chkp.c: Likewise.
8029 * rtlanal.c: Likewise.
8030 * rtlhooks.c: Likewise.
8031 * sanopt.c: Likewise.
8032 * sched-deps.c: Likewise.
8033 * sched-ebb.c: Likewise.
8034 * sched-rgn.c: Likewise.
8035 * sched-vis.c: Likewise.
8036 * sdbout.c: Likewise.
8037 * sel-sched-dump.c: Likewise.
8038 * sel-sched-ir.c: Likewise.
8039 * sel-sched.c: Likewise.
8040 * sese.c: Likewise.
8041 * shrink-wrap.c: Likewise.
8042 * shrink-wrap.h: Likewise.
8043 * simplify-rtx.c: Likewise.
8044 * stack-ptr-mod.c: Likewise.
8045 * statistics.c: Likewise.
8046 * stmt.c: Likewise.
8047 * stor-layout.c: Likewise.
8048 * store-motion.c: Likewise.
8049 * stringpool.c: Likewise.
8050 * symtab.c: Likewise.
8051 * target-globals.c: Likewise.
8052 * targhooks.c: Likewise.
8053 * toplev.c: Likewise.
8054 * tracer.c: Likewise.
8055 * trans-mem.c: Likewise.
8056 * tree-affine.c: Likewise.
8057 * tree-affine.h: Likewise.
8058 * tree-browser.c: Likewise.
8059 * tree-call-cdce.c: Likewise.
8060 * tree-cfg.c: Likewise.
8061 * tree-cfgcleanup.c: Likewise.
8062 * tree-chkp-opt.c: Likewise.
8063 * tree-chkp.c: Likewise.
8064 * tree-chrec.c: Likewise.
8065 * tree-complex.c: Likewise.
8066 * tree-data-ref.c: Likewise.
8067 * tree-dfa.c: Likewise.
8068 * tree-diagnostic.c: Likewise.
8069 * tree-dump.c: Likewise.
8070 * tree-eh.c: Likewise.
8071 * tree-emutls.c: Likewise.
8072 * tree-if-conv.c: Likewise.
8073 * tree-inline.c: Likewise.
8074 * tree-into-ssa.c: Likewise.
8075 * tree-iterator.c: Likewise.
8076 * tree-loop-distribution.c: Likewise.
8077 * tree-nested.c: Likewise.
8078 * tree-nrv.c: Likewise.
8079 * tree-object-size.c: Likewise.
8080 * tree-outof-ssa.c: Likewise.
8081 * tree-parloops.c: Likewise.
8082 * tree-phinodes.c: Likewise.
8083 * tree-predcom.c: Likewise.
8084 * tree-pretty-print.c: Likewise.
8085 * tree-pretty-print.h: Likewise.
8086 * tree-profile.c: Likewise.
8087 * tree-scalar-evolution.c: Likewise.
8088 * tree-sra.c: Likewise.
8089 * tree-ssa-address.c: Likewise.
8090 * tree-ssa-alias.c: Likewise.
8091 * tree-ssa-ccp.c: Likewise.
8092 * tree-ssa-coalesce.c: Likewise.
8093 * tree-ssa-copy.c: Likewise.
8094 * tree-ssa-copyrename.c: Likewise.
8095 * tree-ssa-dce.c: Likewise.
8096 * tree-ssa-dom.c: Likewise.
8097 * tree-ssa-dse.c: Likewise.
8098 * tree-ssa-forwprop.c: Likewise.
8099 * tree-ssa-ifcombine.c: Likewise.
8100 * tree-ssa-live.c: Likewise.
8101 * tree-ssa-loop-ch.c: Likewise.
8102 * tree-ssa-loop-im.c: Likewise.
8103 * tree-ssa-loop-ivcanon.c: Likewise.
8104 * tree-ssa-loop-ivopts.c: Likewise.
8105 * tree-ssa-loop-manip.c: Likewise.
8106 * tree-ssa-loop-niter.c: Likewise.
8107 * tree-ssa-loop-prefetch.c: Likewise.
8108 * tree-ssa-loop-unswitch.c: Likewise.
8109 * tree-ssa-loop.c: Likewise.
8110 * tree-ssa-loop.h: Likewise.
8111 * tree-ssa-math-opts.c: Likewise.
8112 * tree-ssa-operands.c: Likewise.
8113 * tree-ssa-phiopt.c: Likewise.
8114 * tree-ssa-phiprop.c: Likewise.
8115 * tree-ssa-pre.c: Likewise.
8116 * tree-ssa-propagate.c: Likewise.
8117 * tree-ssa-reassoc.c: Likewise.
8118 * tree-ssa-sccvn.c: Likewise.
8119 * tree-ssa-scopedtables.c: Likewise.
8120 * tree-ssa-sink.c: Likewise.
8121 * tree-ssa-strlen.c: Likewise.
8122 * tree-ssa-structalias.c: Likewise.
8123 * tree-ssa-tail-merge.c: Likewise.
8124 * tree-ssa-ter.c: Likewise.
8125 * tree-ssa-threadedge.c: Likewise.
8126 * tree-ssa-threadupdate.c: Likewise.
8127 * tree-ssa-uncprop.c: Likewise.
8128 * tree-ssa-uninit.c: Likewise.
8129 * tree-ssa.c: Likewise.
8130 * tree-ssanames.c: Likewise.
8131 * tree-stdarg.c: Likewise.
8132 * tree-streamer-in.c: Likewise.
8133 * tree-streamer-out.c: Likewise.
8134 * tree-streamer.c: Likewise.
8135 * tree-switch-conversion.c: Likewise.
8136 * tree-tailcall.c: Likewise.
8137 * tree-vect-data-refs.c: Likewise.
8138 * tree-vect-generic.c: Likewise.
8139 * tree-vect-loop-manip.c: Likewise.
8140 * tree-vect-loop.c: Likewise.
8141 * tree-vect-patterns.c: Likewise.
8142 * tree-vect-slp.c: Likewise.
8143 * tree-vect-stmts.c: Likewise.
8144 * tree-vectorizer.c: Likewise.
8145 * tree-vrp.c: Likewise.
8146 * tree.c: Likewise.
8147 * tsan.c: Likewise.
8148 * ubsan.c: Likewise.
8149 * valtrack.c: Likewise.
8150 * value-prof.c: Likewise.
8151 * var-tracking.c: Likewise.
8152 * varasm.c: Likewise.
8153 * varpool.c: Likewise.
8154 * vmsdbgout.c: Likewise.
8155 * vtable-verify.c: Likewise.
8156 * web.c: Likewise.
8157 * wide-int-print.cc: Likewise.
8158 * wide-int-print.h: Likewise.
8159 * wide-int.cc: Likewise.
8160 * xcoffout.c: Likewise.
8161 * config/aarch64/aarch64-builtins.c: Likewise.
8162 * config/aarch64/aarch64.c: Likewise.
8163 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8164 * config/alpha/alpha.c: Likewise.
8165 * config/arc/arc.c: Likewise.
8166 * config/arm/aarch-common.c: Likewise.
8167 * config/arm/arm-builtins.c: Likewise.
8168 * config/arm/arm-c.c: Likewise.
8169 * config/arm/arm.c: Likewise.
8170 * config/avr/avr-c.c: Likewise.
8171 * config/avr/avr-log.c: Likewise.
8172 * config/avr/avr.c: Likewise.
8173 * config/bfin/bfin.c: Likewise.
8174 * config/c6x/c6x.c: Likewise.
8175 * config/cr16/cr16.c: Likewise.
8176 * config/cris/cris.c: Likewise.
8177 * config/darwin-c.c: Likewise.
8178 * config/darwin.c: Likewise.
8179 * config/default-c.c: Likewise.
8180 * config/epiphany/epiphany.c: Likewise.
8181 * config/epiphany/mode-switch-use.c: Likewise.
8182 * config/epiphany/resolve-sw-modes.c: Likewise.
8183 * config/fr30/fr30.c: Likewise.
8184 * config/frv/frv.c: Likewise.
8185 * config/ft32/ft32.c: Likewise.
8186 * config/glibc-c.c: Likewise.
8187 * config/h8300/h8300.c: Likewise.
8188 * config/i386/i386-c.c: Likewise.
8189 * config/i386/i386.c: Likewise.
8190 * config/i386/msformat-c.c: Likewise.
8191 * config/i386/winnt-cxx.c: Likewise.
8192 * config/i386/winnt-stubs.c: Likewise.
8193 * config/i386/winnt.c: Likewise.
8194 * config/ia64/ia64-c.c: Likewise.
8195 * config/ia64/ia64.c: Likewise.
8196 * config/iq2000/iq2000.c: Likewise.
8197 * config/lm32/lm32.c: Likewise.
8198 * config/m32c/m32c-pragma.c: Likewise.
8199 * config/m32c/m32c.c: Likewise.
8200 * config/m32r/m32r.c: Likewise.
8201 * config/m68k/m68k.c: Likewise.
8202 * config/mcore/mcore.c: Likewise.
8203 * config/mep/mep-pragma.c: Likewise.
8204 * config/mep/mep.c: Likewise.
8205 * config/microblaze/microblaze-c.c: Likewise.
8206 * config/microblaze/microblaze.c: Likewise.
8207 * config/mips/mips.c: Likewise.
8208 * config/mmix/mmix.c: Likewise.
8209 * config/mn10300/mn10300.c: Likewise.
8210 * config/moxie/moxie.c: Likewise.
8211 * config/msp430/msp430-c.c: Likewise.
8212 * config/msp430/msp430.c: Likewise.
8213 * config/nds32/nds32-cost.c: Likewise.
8214 * config/nds32/nds32-fp-as-gp.c: Likewise.
8215 * config/nds32/nds32-intrinsic.c: Likewise.
8216 * config/nds32/nds32-isr.c: Likewise.
8217 * config/nds32/nds32-md-auxiliary.c: Likewise.
8218 * config/nds32/nds32-memory-manipulation.c: Likewise.
8219 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8220 * config/nds32/nds32-predicates.c: Likewise.
8221 * config/nds32/nds32.c: Likewise.
8222 * config/nios2/nios2.c: Likewise.
8223 * config/nvptx/nvptx.c: Likewise.
8224 * config/pa/pa.c: Likewise.
8225 * config/pdp11/pdp11.c: Likewise.
8226 * config/rl78/rl78-c.c: Likewise.
8227 * config/rl78/rl78.c: Likewise.
8228 * config/rs6000/rs6000-c.c: Likewise.
8229 * config/rs6000/rs6000.c: Likewise.
8230 * config/rx/rx.c: Likewise.
8231 * config/s390/s390-c.c: Likewise.
8232 * config/s390/s390.c: Likewise.
8233 * config/sh/sh-c.c: Likewise.
8234 * config/sh/sh-mem.cc: Likewise.
8235 * config/sh/sh.c: Likewise.
8236 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8237 * config/sh/sh_treg_combine.cc: Likewise.
8238 * config/sol2-c.c: Likewise.
8239 * config/sol2-cxx.c: Likewise.
8240 * config/sol2-stubs.c: Likewise.
8241 * config/sol2.c: Likewise.
8242 * config/sparc/sparc-c.c: Likewise.
8243 * config/sparc/sparc.c: Likewise.
8244 * config/spu/spu-c.c: Likewise.
8245 * config/spu/spu.c: Likewise.
8246 * config/stormy16/stormy16.c: Likewise.
8247 * config/tilegx/mul-tables.c: Likewise.
8248 * config/tilegx/tilegx-c.c: Likewise.
8249 * config/tilegx/tilegx.c: Likewise.
8250 * config/tilepro/mul-tables.c: Likewise.
8251 * config/tilepro/tilepro-c.c: Likewise.
8252 * config/tilepro/tilepro.c: Likewise.
8253 * config/v850/v850-c.c: Likewise.
8254 * config/v850/v850.c: Likewise.
8255 * config/vax/vax.c: Likewise.
8256 * config/visium/visium.c: Likewise.
8257 * config/vms/vms-c.c: Likewise.
8258 * config/vms/vms.c: Likewise.
8259 * config/vxworks.c: Likewise.
8260 * config/winnt-c.c: Likewise.
8261 * config/xtensa/xtensa.c: Likewise.
8262 * common/config/bfin/bfin-common.c: Likewise.
8263
8264 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
8265
8266 * tree.h (tree_code_for_canonical_type_merging): New function.
8267 * tree.c (gimple_canonical_types_compatible_p): Use
8268 tree_code_for_canonical_type_merging..
8269
8270 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8271
8272 PR c++/66192
8273 PR target/66200
8274 * doc/tm.texi: Regenerate.
8275 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8276 * target.def (TARGET_RELAXED_ORDERING): Likewise.
8277 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8278 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8279 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8280 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8281 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8282 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8283 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8284
8285 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8286
8287 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8288 register fma steering pass.
8289 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8290 AARCH64_TUNE_FMA_STEERING.
8291
8292 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
8293
8294 * tree.c (verify_type_variant): Verify that type and variant is
8295 compatible.
8296 (gimple_canonical_types_compatible_p): Look for main variants.
8297
8298 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8299
8300 * config.gcc (powerpc*-*-*): Add support for a new configure
8301 option --with-advance-toolchain=<xxx> which overrides using the
8302 default header files, libraries and dynamic linker.
8303
8304 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8305 specs to support the configure --with-advance-toolchain=<xxx>
8306 option.
8307 (INCLUDE_EXTRA_SPEC): Likewise.
8308 (LINK_OS_EXTRA_SPEC32): Likewise.
8309 (LINK_OK_EXTRA_SPEC64): Likewise.
8310 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8311 (DYNAMIC_LINKER_PREFIX): Likewise.
8312 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8313 toolchain support.
8314 (GLIBC_DYNAMIC_LINKER32): Likewise.
8315 (GLIBC_DYNAMIC_LINKER64): Likewise.
8316 (LINK_OS_LINUX_SPEC32): Likewise.
8317 (LINK_OS_LINUX_SPEC64): Likewise.
8318
8319 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8320 configuration option.
8321
8322 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
8323
8324 PR target/66275
8325 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8326 to determine current function ABI.
8327 (ix86_function_value_regno_p): Ditto.
8328
8329 2015-06-03 Martin Liska <mliska@suse.cz>
8330
8331 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8332 * bitmap.h (struct bitmap_usage): Likewise.
8333 * ggc-common.c (struct ggc_usage): Likewise.
8334 * mem-stats.h (struct mem_location): Likewise.
8335 (struct mem_usage): Likewise.
8336 * vec.c (struct vec_usage): Likewise.
8337
8338 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
8339
8340 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8341 -Bsymbolic.
8342
8343 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
8344
8345 * doc/plugins.texi (enum plugin_event): New event.
8346 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8347 and PLUGIN_FINISH_FUNCTION.
8348 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8349 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8350
8351 2015-06-03 Richard Biener <rguenther@suse.de>
8352
8353 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8354 compute GROUP_GAP for the first element.
8355 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8356 on in-group gaps.
8357
8358 2015-06-03 Nick Clifton <nickc@redhat.com>
8359
8360 * config/rl78/rl78-real.md: Add peepholes to avoid a register
8361 copy when calling a function.
8362 * config/rl78/rl78.c (need_to_save): Do not push the frame
8363 pointer in an interrupt handler prologue if it is never used.
8364
8365 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8366
8367 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8368
8369 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8370
8371 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8372 reference when cloning alias node.
8373
8374 2015-06-03 Martin Liska <mliska@suse.cz>
8375
8376 * alloc-pool.h (struct pool_usage): Correct space padding.
8377 * ggc-page.c (ggc_print_statistics): Align columns in a report.
8378 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8379 * tree.c (dump_tree_statistics): Align columns in a report.
8380
8381 2015-06-03 Martin Liska <mliska@suse.cz>
8382
8383 * alloc-pool.c (allocate_pool_descriptor): Remove.
8384 (struct pool_output_info): Likewise.
8385 (print_alloc_pool_statistics): Likewise.
8386 (dump_alloc_pool_statistics): Likewise.
8387 * alloc-pool.h (struct pool_usage): New struct.
8388 (pool_allocator::initialize): Change usage of memory statistics
8389 to a new interface.
8390 (pool_allocator::release): Likewise.
8391 (pool_allocator::allocate): Likewise.
8392 (pool_allocator::remove): Likewise.
8393 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8394 for a pool allocator.
8395 * mem-stats.h (struct mem_location): Add new ctor.
8396 (struct mem_usage): Add counter for number of
8397 instances.
8398 (mem_alloc_description::register_descriptor): New overload of
8399 * mem-stats.h (mem_location::to_string): New function.
8400 * bitmap.h (struct bitmap_usage): Use this new function.
8401 * ggc-common.c (struct ggc_usage): Likewise.
8402 the function.
8403
8404 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8405
8406 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8407 of GCC_INSN_FLAGS_H block.
8408
8409 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8410
8411 * explow.c (plus_constant): Update check after force_const_mem call
8412 to see if the value returned is not a NULL_RTX.
8413
8414 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8415
8416 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8417 remove instumentation thunks calling reachable functions.
8418 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8419 * lto/lto-partition.c (privatize_symbol_name_1): New.
8420 (privatize_symbol_name): Privatize both decl and orig_decl
8421 names for instrumented functions.
8422 * cgraph.c (cgraph_node::verify_node): Add transparent
8423 alias chain check for instrumented node.
8424
8425 2015-06-03 Marek Polacek <polacek@redhat.com>
8426
8427 PR c/64223
8428 PR c/29358
8429 * tree.c (attribute_value_equal): Handle attribute format.
8430 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8431
8432 2015-06-03 Richard Biener <rguenther@suse.de>
8433
8434 PR tree-optimization/63916
8435 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8436 Forward-propagate non-invariant addresses by splicing their
8437 reference ops if the result isn't going to be used by PRE.
8438 (vn_reference_lookup_3): Remove pointless assert.
8439
8440 2015-06-03 Richard Biener <rguenther@suse.de>
8441
8442 PR tree-optimization/66375
8443 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8444 add to the evolution before following SSA edges.
8445
8446 2015-06-03 Bin Cheng <bin.cheng@arm.com>
8447
8448 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8449 (dump_use, dump_cand, find_induction_variables): Pass new argument
8450 to dump_iv.
8451 (record_use): Preserve the ssa name information in IV.
8452
8453 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8454
8455 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8456 NO_MODE_TEST.
8457 (add_mode_tests): Don't add mode tests if the predicate only
8458 accepts scalar constant integers. Otherwise, allow the mode
8459 of "op" to be VOIDmode if the predicate does accept such integers.
8460
8461 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
8462
8463 PR target/66258
8464 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8465 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8466 (aarch64_secondary_reload): Likewise
8467 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8468 to !TARGET_FLOAT.
8469 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8470 Likewise.
8471
8472 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
8473 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8474
8475 PR target/65768
8476 * cprop.c (try_replace_reg): Check cost of constants before propagating.
8477
8478 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8479
8480 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8481 provide access to the IBM extended double floating point mode if
8482 long double is IEEE 128-bit floating point.
8483 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8484 point if long double is the IBM extended double type.
8485
8486 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8487 enable adding IEEE 128-bit floating point support.
8488 (-mfloat128-software): Likewise.
8489 (-mfloat128-sw): Likewise.
8490
8491 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8492 128-bit floating point types to occupy any register if
8493 -mlong-double-64. Do not allow use of IFmode/KFmode unless
8494 -mfloat128-software is enabled.
8495 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8496 support.
8497 (rs6000_option_override_internal): Add -mfloat128-* support.
8498 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8499
8500 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8501 and float128 type nodes.
8502 (ieee128_float_type_node): Likewise.
8503 (ibm128_float_type_node): Likewise.
8504
8505 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8506
8507 PR target/66136
8508 * config/aarch64/geniterators.sh: Rewrite in awk.
8509
8510 2015-06-02 Martin Liska <mliska@suse.cz>
8511
8512 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8513 values to avoid -Wmaybe-uninitialized errors.
8514
8515 2015-06-02 Richard Biener <rguenther@suse.de>
8516
8517 PR debug/65549
8518 * dwarf2out.c (lookup_context_die): New function.
8519 (resolve_addr): Avoid forcing a full DIE for the
8520 target of a DW_TAG_GNU_call_site during late compilation.
8521 Instead create a stub DIE without a type if we have a
8522 context DIE present.
8523
8524 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
8525
8526 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8527
8528 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8529
8530 PR tree-optimization/48052
8531 * cfgloop.h (struct control_iv): New.
8532 (struct loop): New field control_ivs.
8533 * tree-ssa-loop-niter.c : Include "stor-layout.h".
8534 (number_of_iterations_lt): Set no_overflow information.
8535 (number_of_iterations_exit): Init control iv in niter struct.
8536 (record_control_iv): New.
8537 (estimate_numbers_of_iterations_loop): Call record_control_iv.
8538 (loop_exits_before_overflow): New. Interface factored out of
8539 scev_probably_wraps_p.
8540 (scev_probably_wraps_p): Factor loop niter related code into
8541 loop_exits_before_overflow.
8542 (free_numbers_of_iterations_estimates_loop): Free control ivs.
8543 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8544
8545 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
8546
8547 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8548 the target doesn't belong to the current function.
8549
8550 2015-06-02 Marek Polacek <polacek@redhat.com>
8551
8552 PR middle-end/66345
8553 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8554 get_maxval_strlen does not produce an INTEGER_CST.
8555
8556 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
8557
8558 * config/arc/constraints.md: Use lower-case names in match_code.
8559 * config/mmix/constraints.md: Likewise.
8560
8561 2015-06-02 Richard Biener <rguenther@suse.de>
8562
8563 PR tree-optimization/65961
8564 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8565 check and clarify dump message.
8566 (vect_build_slp_tree): If all children are built up from scalars
8567 build up the parent from scalars instead.
8568 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8569
8570 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8571
8572 PR other/65366
8573 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
8574 instead of print ... .
8575
8576 2015-06-02 Alan Modra <amodra@gmail.com>
8577
8578 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8579 2014-08-11 change.
8580
8581 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8582
8583 PR tree-optimization/52563
8584 PR tree-optimization/62173
8585 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
8586 (alloc_iv, set_iv): New parameter.
8587 (determine_biv_step): Delete.
8588 (find_bivs): Inline original determine_biv_step. Pass new
8589 argument to set_iv.
8590 (idx_find_step): Use no_overflow information for conversion.
8591 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8592 resolve_mixers handle folded_casts.
8593 (instantiate_scev_name): Change bool parameter to bool pointer.
8594 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8595 (instantiate_array_ref, instantiate_scev_not): Ditto.
8596 (instantiate_scev_3, instantiate_scev_2): Ditto.
8597 (instantiate_scev_1, instantiate_scev_r): Ditto.
8598 (instantiate_scev_convert, ): Change parameter. Pass argument
8599 to chrec_convert_aggressive.
8600 (instantiate_scev): Change argument.
8601 (resolve_mixers): New parameter and set it.
8602 (scev_const_prop): New argument.
8603 * tree-scalar-evolution.h (resolve_mixers): New parameter.
8604 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8605 of chrec_conert_1.
8606 (chrec_convert): New parameter. Move definition below.
8607 (chrec_convert_aggressive): New parameter and set it. Call
8608 convert_affine_scev.
8609 * tree-chrec.h (chrec_convert): New parameter.
8610 (chrec_convert_aggressive): Ditto.
8611
8612 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8613
8614 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8615 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8616 the LHS of a no-return call if its type has variable size.
8617 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8618 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8619
8620 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
8621
8622 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8623 * config.in: Regenerate.
8624
8625 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8626
8627 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8628 consecutive accesses within outer-loop with force_vectorize
8629 for references with zero step in inner-loop.
8630
8631 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8632
8633 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8634 rather than from gcc/build directory.
8635
8636 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8637
8638 PR target/65697
8639 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8640 for __sync memory models, emit initial loads and final barriers as
8641 appropriate.
8642
8643 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8644
8645 PR target/65697
8646 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8647 (aarch64_split_atomic_op): Check for __sync memory models, emit
8648 appropriate initial loads and final barriers.
8649
8650 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8651
8652 * Makefile.in: Fix gcov dependencies that should
8653 not point to a build folder.
8654
8655 2015-06-01 Richard Biener <rguenther@suse.de>
8656
8657 Revert
8658 2015-05-29 Richard Biener <rguenther@suse.de>
8659
8660 PR tree-optimization/66314
8661 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8662 parameter that says which loop the new block belongs to.
8663 (ssa_create_duplicates): Blocks duplicated for the threaded
8664 path belong to the loop of the thread destination.
8665
8666 2015-06-01 Martin Liska <mliska@suse.cz>
8667
8668 * sched-deps.c: Include pool-alloc.h before
8669 cselib.h header file is included.
8670
8671 2015-06-01 Richard Biener <rguenther@suse.de>
8672
8673 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8674 functions.
8675
8676 2015-06-01 Martin Liska <mliska@suse.cz>
8677
8678 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8679 a function local variable.
8680
8681 2015-06-01 Martin Liska <mliska@suse.cz>
8682
8683 * alloc-pool.c (create_alloc_pool): Remove.
8684 (empty_alloc_pool): Likewise.
8685 (free_alloc_pool): Likewise.
8686 (free_alloc_pool_if_empty): Likewise.
8687 (pool_alloc): Likewise.
8688 (pool_free): Likewise.
8689 * alloc-pool.h: Remove old declarations.
8690
8691 2015-06-01 Martin Liska <mliska@suse.cz>
8692
8693 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8694 (ira_create_object): Likewise.
8695 (ira_create_allocno): Likewise.
8696 (ira_create_live_range): Likewise.
8697 (copy_live_range): Likewise.
8698 (ira_finish_live_range): Likewise.
8699 (ira_free_allocno_costs): Likewise.
8700 (finish_allocno): Likewise.
8701 (finish_allocnos): Likewise.
8702 (initiate_prefs): Likewise.
8703 (ira_create_pref): Likewise.
8704 (finish_pref): Likewise.
8705 (finish_prefs): Likewise.
8706 (initiate_copies): Likewise.
8707 (ira_create_copy): Likewise.
8708 (finish_copy): Likewise.
8709 (finish_copies): Likewise.
8710 (finish_prefs): Likewise.
8711
8712 2015-06-01 Martin Liska <mliska@suse.cz>
8713
8714 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8715 (allocate_and_init_ipcp_value): Likewise.
8716 (ipcp_lattice::add_value): Likewise.
8717 (merge_agg_lats_step): Likewise.
8718 (ipcp_driver): Likewise.
8719 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8720 (ipa_free_all_structures_after_iinln): Likewise.
8721 * ipa-prop.h: Likewise.
8722
8723 2015-06-01 Martin Liska <mliska@suse.cz>
8724
8725 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8726 pool allocator.
8727 (set_hint_predicate): Likewise.
8728 (inline_summary_alloc): Likewise.
8729 (reset_inline_edge_summary): Likewise.
8730 (reset_inline_summary): Likewise.
8731 (set_cond_stmt_execution_predicate): Likewise.
8732 (set_switch_stmt_execution_predicate): Likewise.
8733 (compute_bb_predicates): Likewise.
8734 (estimate_function_body_sizes): Likewise.
8735 (inline_free_summary): Likewise.
8736
8737 2015-06-01 Martin Liska <mliska@suse.cz>
8738
8739 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8740 (ipa_edge_duplication_hook): Likewise.
8741 (ipa_free_all_structures_after_ipa_cp): Likewise.
8742 (ipa_free_all_structures_after_iinln): Likewise.
8743
8744 2015-06-01 Martin Liska <mliska@suse.cz>
8745
8746 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8747 (ipa_profile_generate_summary): Likewise.
8748 (ipa_profile_read_summary): Likewise.
8749 (ipa_profile): Likewise.
8750
8751 2015-06-01 Martin Liska <mliska@suse.cz>
8752
8753 * tree-ssa-structalias.c (new_var_info): Use new type-based
8754 pool allocator.
8755 (new_constraint): Likewise.
8756 (init_alias_vars): Likewise.
8757 (delete_points_to_sets): Likewise.
8758
8759 2015-06-01 Martin Liska <mliska@suse.cz>
8760
8761 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8762 (free_strinfo): Likewise.
8763 (pass_strlen::execute): Likewise.
8764
8765 2015-06-01 Martin Liska <mliska@suse.cz>
8766
8767 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8768 pool allocator.
8769 (vn_reference_insert_pieces): Likewise.
8770 (vn_phi_insert): Likewise.
8771 (visit_reference_op_call): Likewise.
8772 (copy_phi): Likewise.
8773 (copy_reference): Likewise.
8774 (process_scc): Likewise.
8775 (allocate_vn_table): Likewise.
8776 (free_vn_table): Likewise.
8777
8778 2015-06-01 Martin Liska <mliska@suse.cz>
8779
8780 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8781 pool allocator.
8782 (add_repeat_to_ops_vec): Likewise.
8783 (get_ops): Likewise.
8784 (maybe_optimize_range_tests): Likewise.
8785 (init_reassoc): Likewise.
8786 (fini_reassoc): Likewise.
8787
8788 2015-06-01 Martin Liska <mliska@suse.cz>
8789
8790 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8791 pool allocator.
8792 (bitmap_set_new): Likewise.
8793 (get_or_alloc_expr_for_constant): Likewise.
8794 (get_or_alloc_expr_for): Likewise.
8795 (phi_translate_1): Likewise.
8796 (compute_avail): Likewise.
8797 (init_pre): Likewise.
8798 (fini_pre): Likewise.
8799
8800 2015-06-01 Martin Liska <mliska@suse.cz>
8801
8802 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8803 (delete_dep_node): Likewise.
8804 (create_deps_list): Likewise.
8805 (free_deps_list): Likewise.
8806 (sched_deps_init): Likewise.
8807 (sched_deps_finish): Likewise.
8808
8809 2015-06-01 Martin Liska <mliska@suse.cz>
8810
8811 * regcprop.c (free_debug_insn_changes): Use new type-based
8812 pool allocator.
8813 (replace_oldest_value_reg): Likewise.
8814 (pass_cprop_hardreg::execute): Likewise.
8815
8816 2015-06-01 Martin Liska <mliska@suse.cz>
8817
8818 * ira-build.c (initiate_cost_vectors): Use new type-based
8819 pool allocator.
8820 (ira_allocate_cost_vector): Likewise.
8821 (ira_free_cost_vector): Likewise.
8822 (finish_cost_vectors): Likewise.
8823
8824 2015-06-01 Martin Liska <mliska@suse.cz>
8825
8826 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8827 pool allocator.
8828 (free_sched_pools): Likewise.
8829 * sel-sched-ir.h (_list_alloc): Likewise.
8830 (_list_remove): Likewise.
8831
8832 2015-06-01 Martin Liska <mliska@suse.cz>
8833
8834 * stmt.c (add_case_node): Use new type-based pool allocator.
8835 (expand_case): Likewise.
8836 (expand_sjlj_dispatch_table): Likewise.
8837
8838 2015-06-01 Martin Liska <mliska@suse.cz>
8839
8840 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8841 (free_bb): Likewise.
8842 (pass_cse_reciprocals::execute): Likewise.
8843
8844 2015-06-01 Martin Liska <mliska@suse.cz>
8845
8846 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8847 (sra_deinitialize) Likewise.
8848 (create_access_1) Likewise.
8849 (build_accesses_from_assign) Likewise.
8850 (create_artificial_child_access) Likewise.
8851
8852 2015-06-01 Martin Liska <mliska@suse.cz>
8853
8854 * dse.c (get_group_info):Use new type-based pool allocator.
8855 (dse_step0) Likewise.
8856 (free_store_info) Likewise.
8857 (delete_dead_store_insn) Likewise.
8858 (free_read_records) Likewise.
8859 (record_store) Likewise.
8860 (replace_read) Likewise.
8861 (check_mem_read_rtx) Likewise.
8862 (scan_insn) Likewise.
8863 (dse_step1) Likewise.
8864 (dse_step7) Likewise.
8865
8866 2015-06-01 Martin Liska <mliska@suse.cz>
8867
8868 * df-scan.c (struct df_scan_problem_data):Use new type-based
8869 pool allocator.
8870 (df_scan_free_internal) Likewise.
8871 (df_scan_alloc) Likewise.
8872 (df_grow_reg_info) Likewise.
8873 (df_free_ref) Likewise.
8874 (df_insn_create_insn_record) Likewise.
8875 (df_mw_hardreg_chain_delete) Likewise.
8876 (df_insn_info_delete) Likewise.
8877 (df_free_collection_rec) Likewise.
8878 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8879 (df_sort_and_compress_mws) Likewise.
8880 (df_ref_create_structure) Likewise.
8881 (df_ref_record) Likewise.
8882
8883 2015-06-01 Martin Liska <mliska@suse.cz>
8884
8885 * df-problems.c (df_chain_create):Use new type-based pool allocator.
8886 (df_chain_unlink_1) Likewise.
8887 (df_chain_unlink) Likewise.
8888 (df_chain_remove_problem) Likewise.
8889 (df_chain_alloc) Likewise.
8890 (df_chain_free) Likewise.
8891 * df.h (struct dataflow) Likewise.
8892
8893 2015-06-01 Martin Liska <mliska@suse.cz>
8894
8895 * cselib.c (new_elt_list):Use new type-based pool allocator.
8896 (new_elt_loc_list) Likewise.
8897 (unchain_one_elt_list) Likewise.
8898 (unchain_one_elt_loc_list) Likewise.
8899 (unchain_one_value) Likewise.
8900 (new_cselib_val) Likewise.
8901 (cselib_init) Likewise.
8902 (cselib_finish) Likewise.
8903
8904 2015-06-01 Martin Liska <mliska@suse.cz>
8905
8906 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8907 (sh_reorg) Likewise.
8908
8909 2015-06-01 Martin Liska <mliska@suse.cz>
8910
8911 * cfg.c (initialize_original_copy_tables):Use new type-based
8912 pool allocator.
8913 (free_original_copy_tables) Likewise.
8914 (copy_original_table_clear) Likewise.
8915 (copy_original_table_set) Likewise.
8916
8917 2015-06-01 Martin Liska <mliska@suse.cz>
8918
8919 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8920 pool allocator.
8921 (asan_mem_ref_new) Likewise.
8922 (free_mem_ref_resources) Likewise.
8923
8924 2015-06-01 Martin Liska <mliska@suse.cz>
8925
8926 * var-tracking.c (variable_htab_free):Use new type-based
8927 pool allocator.
8928 (attrs_list_clear) Likewise.
8929 (attrs_list_insert) Likewise.
8930 (attrs_list_copy) Likewise.
8931 (shared_hash_unshare) Likewise.
8932 (shared_hash_destroy) Likewise.
8933 (unshare_variable) Likewise.
8934 (var_reg_delete_and_set) Likewise.
8935 (var_reg_delete) Likewise.
8936 (var_regno_delete) Likewise.
8937 (drop_overlapping_mem_locs) Likewise.
8938 (variable_union) Likewise.
8939 (insert_into_intersection) Likewise.
8940 (canonicalize_values_star) Likewise.
8941 (variable_merge_over_cur) Likewise.
8942 (dataflow_set_merge) Likewise.
8943 (remove_duplicate_values) Likewise.
8944 (variable_post_merge_new_vals) Likewise.
8945 (dataflow_set_preserve_mem_locs) Likewise.
8946 (dataflow_set_remove_mem_locs) Likewise.
8947 (variable_from_dropped) Likewise.
8948 (variable_was_changed) Likewise.
8949 (set_slot_part) Likewise.
8950 (clobber_slot_part) Likewise.
8951 (delete_slot_part) Likewise.
8952 (loc_exp_insert_dep) Likewise.
8953 (notify_dependents_of_changed_value) Likewise.
8954 (emit_notes_for_differences_1) Likewise.
8955 (vt_emit_notes) Likewise.
8956 (vt_initialize) Likewise.
8957 (vt_finalize) Likewise.
8958
8959 2015-06-01 Martin Liska <mliska@suse.cz>
8960
8961 * ira-color.c (init_update_cost_records):Use new type-based
8962 pool allocator.
8963 (get_update_cost_record) Likewise.
8964 (free_update_cost_record_list) Likewise.
8965 (finish_update_cost_records) Likewise.
8966 (initiate_cost_update) Likewise.
8967
8968 2015-06-01 Martin Liska <mliska@suse.cz>
8969
8970 * lra.c (init_insn_regs): Use new type-based pool allocator.
8971 (new_insn_reg) Likewise.
8972 (free_insn_reg) Likewise.
8973 (free_insn_regs) Likewise.
8974 (finish_insn_regs) Likewise.
8975 (init_insn_recog_data) Likewise.
8976 (init_reg_info) Likewise.
8977 (finish_reg_info) Likewise.
8978 (lra_free_copies) Likewise.
8979 (lra_create_copy) Likewise.
8980 (invalidate_insn_data_regno_info) Likewise.
8981
8982 2015-06-01 Martin Liska <mliska@suse.cz>
8983
8984 * lra-lives.c (free_live_range): Use new type-based pool allocator.
8985 (free_live_range_list) Likewise.
8986 (create_live_range) Likewise.
8987 (copy_live_range) Likewise.
8988 (lra_merge_live_ranges) Likewise.
8989 (remove_some_program_points_and_update_live_ranges) Likewise.
8990 (lra_live_ranges_init) Likewise.
8991 (lra_live_ranges_finish) Likewise.
8992
8993 2015-06-01 Martin Liska <mliska@suse.cz>
8994
8995 * et-forest.c (et_new_occ): Use new type-based pool allocator.
8996 (et_new_tree): Likewise.
8997 (et_free_tree): Likewise.
8998 (et_free_tree_force): Likewise.
8999 (et_free_pools): Likewise.
9000 (et_split): Likewise.
9001
9002 2015-06-01 Martin Liska <mliska@suse.cz>
9003
9004 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
9005 to header file.
9006 * alloc-pool.h (pool_allocator::pool_allocator): New function.
9007 (pool_allocator::release): Likewise.
9008 (inline pool_allocator::release_if_empty): Likewise.
9009 (inline pool_allocator::~pool_allocator): Likewise.
9010 (pool_allocator::allocate): Likewise.
9011 (pool_allocator::remove): Likewise.
9012
9013 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
9014
9015 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
9016 in comment.
9017
9018 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
9019
9020 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
9021 to fusible_ops.
9022 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
9023 (arm_macro_fusion_p): Likewise.
9024 (arm_macro_fusion_pair_p): Likewise.
9025
9026 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
9027
9028 * config/aarch64/aarch64-protos.h (tune_params): Rename
9029 fuseable_ops to fusible_ops.
9030 * config/aarch64/aarch64.c (generic_tunings): Rename
9031 fuseable_ops to fusible_ops.
9032 (cortexa53_tunings): Likewise.
9033 (cortexa57_tunings): Likewise.
9034 (thunderx_tunings): Likewise.
9035 (xgene1_tunings): Likewise.
9036 (aarch64_macro_fusion_p): Likewise.
9037 (aarch64_macro_fusion_pair_p): Likewise.
9038
9039 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
9040
9041 * config/s390/driver-native.c: New file.
9042 * config/s390/x-native: New file.
9043 * config.host: Add new files for s390.
9044 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
9045 and -march=native
9046 * config.gcc: Likewise.
9047 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
9048 * config/s390/s390-opts.h (enum processor_type): Ditto.
9049 * config/s390/s390.c (s390_option_override): Catch unhandled
9050 PROCESSOR_NATIVE
9051
9052 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
9053
9054 PR target/65527
9055 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
9056 redirection for instrumented calls.
9057 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
9058 (append_compiler_options): Append -fcheck-pointer-bounds.
9059 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
9060 (chkp_redirect_edge): New.
9061 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
9062 (chkp_redirect_edge): New.
9063
9064 2015-06-01 Richard Biener <rguenther@suse.de>
9065
9066 PR tree-optimization/66280
9067 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
9068 def-use walking.
9069
9070 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9071
9072 * config/aarch64/aarch64.md
9073 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
9074 logic_shift_imm.
9075
9076 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
9077
9078 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
9079 Remove obsolete kludge.
9080
9081 2015-06-01 Richard Biener <rguenther@suse.de>
9082
9083 * tree-ssa-reassoc.c (get_rank): Simplify.
9084
9085 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
9086
9087 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
9088 * configure: Regenerated.
9089
9090 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
9091
9092 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
9093 issue (add space between string literal and macro).
9094 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
9095
9096 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
9097
9098 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
9099 implict or explicit -fPIE or -fpie.
9100
9101 2015-05-30 Mike Frysinger <vapier@gentoo.org>
9102
9103 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
9104
9105 2015-05-28 DJ Delorie <dj@redhat.com>
9106
9107 * expmed.c (extract_bit_field_1): Avoid clobbering a
9108 yet-to-be-used base/index register.
9109
9110 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
9111
9112 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
9113 (alias_stats): Add num_universal.
9114 (alias_set_subset_of): Special case pointers; be ready for NULL
9115 children.
9116 (alias_sets_conflict_p): Special case pointers; be ready for NULL
9117 children.
9118 (init_alias_set_entry): Break out from ...
9119 (record_alias_subset): ... here; propagate new fields;
9120 allocate children only when really needed.
9121 (get_alias_set): Do less generous pointer globbing.
9122 (dump_alias_stats_in_alias_c): Update statistics.
9123
9124 2015-05-30 Alan Modra <amodra@gmail.com>
9125
9126 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
9127 correct block for use of r12.
9128 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
9129
9130 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9131
9132 PR target/66215
9133 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
9134 with -mhotpatch=.
9135
9136 2015-05-29 Jakub Jelinek <jakub@redhat.com>
9137
9138 PR tree-optimization/66142
9139 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
9140 virtual phis that feed themselves.
9141
9142 2015-05-29 Richard Biener <rguenther@suse.de>
9143
9144 PR tree-optimization/66314
9145 * tree-ssa-threadupdate.c (create_block_for_threading): Add
9146 parameter that says which loop the new block belongs to.
9147 (ssa_create_duplicates): Blocks duplicated for the threaded
9148 path belong to the loop of the thread destination.
9149
9150 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9151
9152 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
9153 to cleanup-saved-temps.
9154 * doc/sourcebuild.texi (Clean up generated test files): Expand
9155 introduction.
9156 (dg-keep-saved-temps): Document new proc.
9157 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
9158 cleanup-saved-temps): Remove.
9159
9160 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
9161
9162 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
9163 gcc_AC_CHECK_DECLS.
9164 * configure: Regenerate.
9165
9166 2015-05-28 Mike Frysinger <vapier@gentoo.org>
9167
9168 * config/nios2/linux.h (CPP_SPEC): Define.
9169
9170 2015-05-28 Mike Frysinger <vapier@gentoo.org>
9171
9172 * config/microblaze/linux.h (CPP_SPEC): Define.
9173
9174 2015-05-28 Mike Frysinger <vapier@gentoo.org>
9175
9176 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
9177 -pthread is specified.
9178
9179 2015-05-28 Richard Biener <rguenther@suse.de>
9180
9181 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
9182 (vect_fixup_scalar_cycles_with_patterns): Likewise.
9183 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
9184 after pattern recog.
9185 (vect_create_epilog_for_reduction): Properly handle reductions
9186 with patterns.
9187 (vectorizable_reduction): Likewise.
9188 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
9189 reduction chains.
9190 (vect_get_constant_vectors): Create the correct number of
9191 initial values for reductions.
9192 (vect_schedule_slp_instance): Handle reduction chains that are
9193 type changing properly.
9194 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
9195
9196 2015-05-28 Richard Biener <rguenther@suse.de>
9197
9198 PR tree-optimization/66142
9199 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
9200 values better in memcpy destination handling. Handle non-aliasing
9201 we discover here.
9202
9203 2015-05-28 Lawrence Velázquez <vq@larryv.me>
9204
9205 PR target/63810
9206 * config/darwin-c.c (version_components): New global enum.
9207 (parse_version, version_as_legacy_macro)
9208 (version_as_modern_macro, macosx_version_as_macro): New functions.
9209 (version_as_macro): Remove.
9210 (darwin_cpp_builtins): Use new function.
9211
9212 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
9213
9214 * builtins.c (expand_builtin_acc_on_device): Mark parameters
9215 with ATTRIBUTE_UNUSED.
9216
9217 2015-05-28 Julian Brown <julian@codesourcery.com>
9218
9219 PR libgomp/65742
9220
9221 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
9222 sequence for !ACCEL_COMPILER.
9223
9224 2015-05-28 Nick Clifton <nickc@redhat.com>
9225
9226 * config/rx/rx.c (push_regs): New function. Extracts code from...
9227 (rx_expand_prologue): ... here. Use push_regs to push even small
9228 spans of registers.
9229 (pop_regs): New function.
9230 (rx_expand_epilogue): Use pop_regs to pop even small spans of
9231 registers.
9232
9233 2015-05-28 Richard Biener <rguenther@suse.de>
9234
9235 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
9236 member.
9237 (SLP_INSTANCE_BODY_COST_VEC): Remove.
9238 (vect_update_slp_costs_according_to_vf): Likewise.
9239 (vect_slp_analyze_operations): Update prototype.
9240 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
9241 vect_update_slp_costs_according_to_vf, adjust.
9242 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
9243 (vect_analyze_slp_cost_1): Likewise.
9244 (vect_analyze_slp_cost): Likewise. Properly deal with
9245 widening reduction ops. Commit body costs.
9246 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
9247 cost for loops from here.
9248 (vect_slp_analyze_operations): But do it from here when
9249 the vectorization factor is known and stmts are analyzed.
9250 (vect_bb_vectorization_profitable_p): Simplify.
9251 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
9252 (vect_update_slp_costs_according_to_vf): Remove.
9253
9254 2015-05-27 Magnus Granberg <zorry@gentoo.org>
9255 H.J. Lu <hongjiu.lu@intel.com>
9256
9257 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
9258 (BUILD_CFLAGS): Likewise.
9259 (BUILD_CXXFLAGS): Likewise.
9260 (LINKER): Add @NO_PIE_FLAG@.
9261 (BUILD_LDFLAGS): Likewise.
9262 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
9263 --enable-default-pie.
9264 * common.opt (fPIE): Initialize to -1.
9265 (fpie): Likewise.
9266 (no-pie): New option.
9267 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
9268 * configure.ac: Add --enable-default-pie.
9269 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
9270 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
9271 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
9272 * gcc.c (NO_PIE_SPEC): New.
9273 (PIE_SPEC): Likewise.
9274 (NO_FPIE1_SPEC): Likewise.
9275 (FPIE1_SPEC): Likewise.
9276 (NO_FPIE2_SPEC): Likewise.
9277 (FPIE2_SPEC): Likewise.
9278 (NO_FPIE2_SPEC): Likewise.
9279 (FPIE_SPEC): Likewise.
9280 (NO_FPIE_SPEC): Likewise.
9281 (NO_FPIC1_SPEC): Likewise.
9282 (FPIC1_SPEC): Likewise.
9283 (NO_FPIC2_SPEC): Likewise.
9284 (FPIC2_SPEC): Likewise.
9285 (NO_FPIC2_SPEC): Likewise.
9286 (FPIC_SPEC): Likewise.
9287 (NO_FPIC_SPEC): Likewise.
9288 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9289 (FPIE1_OR_FPIC1_SPEC): Likewise.
9290 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9291 (FPIE2_OR_FPIC2_SPEC): Likewise.
9292 (NO_FPIE_AND_FPIC_SPEC): Likewise.
9293 (FPIE_OR_FPIC_SPEC): Likewise.
9294 (LD_PIE_SPEC): Likewise.
9295 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
9296 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9297 * config/darwin.h (PIE_SPEC): Renamed to ...
9298 (DARWIN_PIE_SPEC): This.
9299 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9300 * config/darwin9.h (PIE_SPEC): Renamed to ...
9301 (DARWIN_PIE_SPEC): This.
9302 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9303 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9304 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9305 FPIE2_OR_FPIC2_SPEC.
9306 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9307 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9308 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9309 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9310 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9311 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9312 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9313 * config/m32r/m32r.h (ASM_SPEC): Likewise.
9314 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9315 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9316 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9317 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9318 * config/sparc/linux.h (ASM_SPEC): Likewise.
9319 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9320 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9321 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9322 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9323 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9324 * config/sparc/sparc.h (ASM_SPEC): Likewise.
9325 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9326 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9327 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9328 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9329 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9330 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9331 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9332 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9333 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9334 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9335 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9336 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9337 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9338 * config/vax/linux.h (ASM_SPEC): Likewise.
9339 * doc/install.texi: Document --enable-default-pie.
9340 * doc/invoke.texi: Document -no-pie.
9341 * config.in: Regenerated.
9342 * configure: Likewise.
9343
9344 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9345
9346 PR rtl-optimization/66168
9347 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9348 can_move_invariant_reg.
9349
9350 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
9351
9352 PR target/66148
9353 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9354 REG_EQUAL note when doing insert.
9355
9356 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9357 instead of "%d" for 'o' operand.
9358
9359 2015-05-27 Nathan Sidwell <nathan@acm.org>
9360
9361 PR c++/66270
9362 * tree.c (build_pointer_type_for_mode): Canonical type does not
9363 inherit can_alias_all.
9364 (build_reference_type_for_mode): Likewise.
9365
9366 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
9367
9368 * expr.h (array_at_struct_end_p): Move to...
9369 (array_ref_element_size): Likewise.
9370 (component_ref_field_offset): Likewise.
9371 * tree.h (array_ref_element_size): ...here.
9372 (array_at_struct_end_p): Likewise.
9373 (component_ref_field_offset): Likewise.
9374 * expr.c (array_ref_element_size): Move to...
9375 (array_ref_low_bound): Likewise.
9376 (array_at_struct_end_p): Likewise.
9377 (array_ref_up_bound): Likewise.
9378 (component_ref_field_offset): Likewise.
9379 * tree.c (array_ref_element_size): ...here.
9380 (array_ref_low_bound): Likewise.
9381 (array_ref_up_bound): Likewise.
9382 (array_at_struct_end_p): Likewise.
9383 (component_ref_field_offset): Likewise.
9384
9385 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9386 Szabolcs Nagy <szabolcs.nagy@arm.com>
9387
9388 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9389
9390 2015-05-27 Jason Merrill <jason@redhat.com>
9391
9392 PR bootstrap/66304
9393 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9394 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9395 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9396
9397 2015-05-22 Aditya Kumar <hiraditya@msn.com>
9398
9399 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9400 is true.
9401
9402 * statistics.c (statistics_fini_pass): Print pass name.
9403
9404 2015-05-27 Richard Biener <rguenther@suse.de>
9405
9406 PR tree-optimization/66272
9407 Revert parts of
9408 2014-08-15 Richard Biener <rguenther@suse.de>
9409
9410 PR tree-optimization/62031
9411 * tree-data-ref.c (dr_analyze_indices): Do not set
9412 DR_UNCONSTRAINED_BASE.
9413 (dr_may_alias_p): All indirect accesses have to go the
9414 formerly DR_UNCONSTRAINED_BASE path.
9415 * tree-data-ref.h (struct indices): Remove
9416 unconstrained_base member.
9417 (DR_UNCONSTRAINED_BASE): Remove.
9418
9419 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
9420
9421 * dwarf2out.c: Remove block_map.
9422 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9423 (gen_lexical_block_die): Same.
9424 (dwarf2out_function_decl): Remove block_map use.
9425 (dwarf2out_c_finalize): Same.
9426 * tree-core.h (struct tree_block): Add die field.
9427 * tree.h (BLOCK_DIE): New.
9428
9429 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9430
9431 PR target/65358
9432 * expr.c (memory_load_overlap): New function.
9433 (emit_push_insn): When pushing partial args to the stack would
9434 clobber the register part load the overlapping part into a pseudo
9435 and put it into the hard reg after pushing. Change return type
9436 to bool. Add bool argument.
9437 * expr.h (emit_push_insn): Change return type to bool.
9438 Add bool argument.
9439 * calls.c (expand_call): Cancel sibcall optimization when encountering
9440 partial argument on targets with ARGS_GROW_DOWNWARD and
9441 !STACK_GROWS_DOWNWARD.
9442 (emit_library_call_value_1): Update callsite of emit_push_insn.
9443 (store_one_arg): Likewise.
9444
9445 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9446
9447 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9448
9449 2015-05-27 Martin Liska <mliska@suse.cz>
9450
9451 * Makefile.in: Add additional dependencies related to memory report
9452 enhancement.
9453 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9454 * bitmap.c (struct bitmap_descriptor_d): Remove.
9455 (struct loc): Likewise.
9456 (struct bitmap_desc_hasher): Likewise.
9457 (bitmap_desc_hasher::hash): Likewise.
9458 (bitmap_desc_hasher::equal): Likewise.
9459 (get_bitmap_descriptor): Likewise.
9460 (bitmap_register): User new memory descriptor API.
9461 (register_overhead): Likewise.
9462 (bitmap_find_bit): Register nsearches and search_iter statistics.
9463 (struct bitmap_output_info): Remove.
9464 (print_statistics): Likewise.
9465 (dump_bitmap_statistics): Use new memory descriptor.
9466 * bitmap.h (struct bitmap_usage): New class.
9467 * genmatch.c: Extend header file inclusion.
9468 * genpreds.c: Likewise.
9469 * ggc-common.c (struct ggc_usage): New class.
9470 (struct ggc_loc_desc_hasher): Remove.
9471 (ggc_loc_desc_hasher::hash): Likewise.
9472 (ggc_loc_desc_hasher::equal): Likewise.
9473 (struct ggc_ptr_hash_entry): Likewise.
9474 (struct ptr_hash_hasher): Likewise.
9475 (ptr_hash_hasher::hash): Likewise.
9476 (ptr_hash_hasher::equal): Likewise.
9477 (make_loc_descriptor): Likewise.
9478 (ggc_prune_ptr): Likewise.
9479 (dump_ggc_loc_statistics): Use new memory descriptor.
9480 (ggc_record_overhead): Likewise.
9481 (ggc_free_overhead): Likewise.
9482 (final_cmp_statistic): Remove.
9483 (cmp_statistic): Likewise.
9484 (ggc_add_statistics): Liekwise.
9485 (ggc_prune_overhead_list): Likewise.
9486 * hash-map-traits.h: New file.
9487 * hash-map.h (struct default_hashmap_traits): Move the traits to a
9488 separate header file.
9489 * hash-set.h: Pass memory statistics info to ctor.
9490 * hash-table.c (void dump_hash_table_loc_statistics): New function.
9491 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9492 (hash_table::~hash_table): Register memory release operation.
9493 (hash_table::alloc_entries): Handle memory allocation operation.
9494 (hash_table::expand): Likewise.
9495 * inchash.c (iterative_hash_hashval_t): Move implementation to header
9496 file.
9497 (iterative_hash_host_wide_int): Likewise.
9498 * inchash.h (class hash): Likewise.
9499 * mem-stats-traits.h: New file.
9500 * mem-stats.h: New file.
9501 (mem_location): Add new class.
9502 (mem_usage): Likewise.
9503 (mem_alloc_description): Likewise.
9504 * sese.c: Add new header file inclusision.
9505 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9506 and hash_set.
9507 * tree-sra.c: Add new header file inclusision.
9508 * vec.c (struct vec_descriptor): Remove.
9509 (hash_descriptor): Likewise.
9510 (struct vec_usage): Likewise.
9511 (struct ptr_hash_entry): Likewise.
9512 (hash_ptr): Likewise.
9513 (eq_ptr): Likewise.
9514 (vec_prefix::register_overhead): Use new memory descriptor API.
9515 (vec_prefix::release_overhead): Likewise.
9516 (add_statistics): Remove.
9517 (dump_vec_loc_statistics): Use new memory descriptor API.
9518 * vec.h (struct vec_prefix): Likewise.
9519 (va_heap::reserve): Likewise.
9520 (va_heap::release): Likewise.
9521 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9522
9523 2015-05-27 Richard Biener <rguenther@suse.de>
9524
9525 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9526 earlier and remove ??? comment.
9527 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9528 and got called from loop analysis bail out. Always pass the SLP
9529 node to the vectorizable_* functions.
9530 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9531 the premature SLP check here.
9532 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9533 detected SLP stmts.
9534 (vect_detect_hybrid_slp_1): Likewise.
9535
9536 2015-05-26 Jeff Law <law@redhat.com>
9537
9538 * combine.c (find_split_point): Verify that the shift count is a
9539 constant when choosing (plus (ashift ...)) as a split point.
9540
9541 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9542 No functional changes.
9543
9544 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
9545
9546 * ipa-polymorphic-call.c
9547 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9548 case when call target is already known.
9549
9550 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
9551
9552 PR target/65979
9553 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9554 take into account the case that operands[1] and operands[2]
9555 are the same register.
9556
9557 2015-05-26 Michael Matz <matz@suse.de>
9558
9559 PR middle-end/66251
9560
9561 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9562 stores.
9563 (vect_create_vectorized_demotion_stmts): Always set
9564 STMT_VINFO_VEC_STMT, also with SLP.
9565 (vectorizable_store): Handle strided group stores.
9566
9567 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9568
9569 PR target/66049
9570 * config/aarch64/aarch64.md
9571 (*adds_shift_imm_<mode>): New pattern.
9572 (*subs_shift_imm_<mode>): Likewise.
9573 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9574 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9575 (*add_uxt<mode>_shift2): Likewise.
9576 (*add_uxtsi_shift2_uxtw): Likewise.
9577 (*sub_uxt<mode>_shift2): Likewise.
9578 (*sub_uxtsi_shift2_uxtw): Likewise.
9579
9580 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
9581
9582 * config/rs6000/constraints.md (Y, U): Use match_test.
9583
9584 2015-05-26 Christian Bruel <christian.bruel@st.com>
9585
9586 PR target/52144
9587 * config/arm/arm.c (arm_option_check_internal)
9588 (arm_option_params_internal): Check opts->target_flags to set macros.
9589 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9590 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9591 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9592 (builtin_define): Replaced with def_or_undef_macro.
9593 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9594 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9595 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9596 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9597 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9598 (TARGET_ARM_FEATURE_LDREX_P)
9599 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9600 * config/arm/arm-c.c (def_or_undef_macro): New function.
9601 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9602
9603 2015-05-26 Christian Bruel <christian.bruel@st.com>
9604
9605 * c-common.h (builtin_define_with_int_value)
9606 (builtin_define_type_sizeof): Declare.
9607 * c-cppbuiltin.c (builtin_define_with_int_value)
9608 (builtin_define_type_sizeof): Externalize.
9609 (builtin_define_std): Cleanup declaration.
9610 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9611 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9612 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9613 (builtin_define, builtin_assert): New macros.
9614
9615 2015-05-26 Richard Biener <rguenther@suse.de>
9616
9617 PR tree-optimization/66142
9618 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9619 MEM_REFs for the same base address.
9620
9621 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9622
9623 PR ipa/66181
9624 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9625
9626 2015-05-26 Jason Merrill <jason@redhat.com>
9627
9628 * configure.ac: Set CXXFLAGS for ISL test.
9629 * configure: Regenerate.
9630
9631 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
9632 strstr and basename.
9633 * configure: Regenerate.
9634
9635 2015-05-26 Richard Biener <rguenther@suse.de>
9636
9637 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9638 X % C -> X & (C - 1) for C being a power-of two to ...
9639 * match.pd: ... patterns.
9640
9641 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
9642
9643 * match.pd (swapped_tcc_comparison): New operator list.
9644 (-A CMP -B): New simplification.
9645 * fold-const.c (fold_comparison): Remove corresponding code.
9646
9647 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9648
9649 * caller-save.c (init_caller_save): Base temporary register numbers
9650 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9651 * cfgloopanal.c (init_set_costs): Likewise.
9652 * dojump.c (prefer_and_bit_test): Likewise.
9653 * expr.c (init_expr_target): Likewise.
9654 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9655 * lower-subreg.c (init_lower_subreg): Likewise.
9656 * postreload.c (reload_cse_regs_1): Likewise.
9657
9658 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9659
9660 * gensupport.h (compute_test_codes): Declare.
9661 * gensupport.c (compute_predicate_codes): Rename to...
9662 (compute_test_codes): ...this. Generalize error message.
9663 (process_define_predicate): Update accordingly.
9664 * genpreds.c (compute_maybe_allows): Delete.
9665 (add_constraint): Use compute_test_codes to determine whether
9666 something can accept a SUBREG, REG or MEM.
9667
9668 2015-05-26 Torvald Riegel <triegel@redhat.com>
9669
9670 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9671 'memory model' to align with C++11; fix description of memory orders;
9672 fix a few typos.
9673
9674 2015-05-26 Richard Biener <rguenther@suse.de>
9675
9676 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9677 (vect_analyze_loop_operations): ... here. Remove slp parameter,
9678 detect whether we apply SLP. Remove call to
9679 vect_update_slp_costs_according_to_vf.
9680 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9681 vect_update_slp_costs_according_to_vf from here. Dispatch
9682 to vect_slp_analyze_operations to analyze SLP stmts.
9683 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9684 unused bb_vec_info parameter, adjust assert.
9685 (vect_slp_analyze_operations): Pass in the slp instance tree
9686 instead of bb_vec_info.
9687 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9688 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9689
9690 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9691
9692 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9693 Q_REGS. Expand comment.
9694 (REG_CLASS_NAMES): Ditto.
9695 (REG_CLASS_CONTENTS): Ditto.
9696
9697 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
9698
9699 PR target/66274
9700 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9701 when LEGACY_INT_REGNO_P is processed.
9702
9703 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9704
9705 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9706
9707 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9708
9709 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9710 register if not marked dead/unused, before return.
9711
9712 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9713
9714 PR lto/66180
9715 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9716 is set; check for assembler name at LTO time.
9717 (type_in_anonymous_namespace): Remove hacks, check that all
9718 anonymous types are called "<anon>"
9719 (odr_type_p): Simplify; add check for "<anon>"
9720 (odr_subtypes_equivalent): Add odr_type_p check.
9721 * tree.c (need_assembler_name_p): Even anonymous namespace needs
9722 assembler name.
9723
9724 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9725
9726 * ipa-utils.h (method_class_type): Remove.
9727 * cgraphunit.c (walk_polymorphic_call_targets): Use
9728 TYPE_METHOD_BASETYPE.
9729 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9730 on main variants only.
9731 (method_class_type): Remove.
9732 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9733 (build_type_inheritance_graph): Likewise.
9734 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9735 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9736 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9737
9738 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9739
9740 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9741 is_typedef_decl, typedef_variant_p): Constify.
9742 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9743 is_typedef_decl, typedef_variant_p): Constify.
9744
9745 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9746
9747 * defaults.h (gen_tablejump): New function.
9748 (HAVE_tablejump): Add default value.
9749 * expr.c: Adjust.
9750 * stmt.c: Likewise.
9751
9752 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9753
9754 * defaults.h (gen_store_multiple): New function.
9755 (HAVE_store_multiple): Add default value.
9756 * expr.c (move_block_from_reg): Adjust.
9757
9758 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9759
9760 * defaults.h (gen_load_multiple): New function.
9761 (HAVE_load_multiple): Add default value.
9762 * expr.c (move_block_to_reg): Adjust.
9763
9764 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9765
9766 * defaults.h (gen_mem_signal_fence): New function.
9767 (HAVE_mem_signal_fence): Add default value.
9768 * optabs.c: Adjust.
9769
9770 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9771
9772 * defaults.h (gen_memory_barrier): New function.
9773 (HAVE_memory_barrier): Add default value.
9774 * optabs.c: Adjust.
9775
9776 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9777
9778 * defaults.h (gen_mem_thread_fence): New function.
9779 (HAVE_mem_thread_fence): Add default definition.
9780 * optabs.c: Adjust.
9781
9782 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9783
9784 * combine.c (find_split_point): Check the value of HAVE_lo_sum
9785 instead of if it is defined.
9786 (combine_simplify_rtx): Likewise.
9787 * lra-constraints.c (process_address_1): Likewise.
9788 * config/darwin.c: Adjust.
9789 * genconfig.c (main): Always define HAVE_lo_sum.
9790
9791 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9792
9793 * genmatch.c (parser::parse_operation): Reject expanding
9794 operator-list inside 'for'.
9795
9796 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9797
9798 * genmatch.c (parser::parse_for): Reject iterator if used as
9799 operator-list.
9800
9801 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9802
9803 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9804 after end of id-list.
9805
9806 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9807
9808 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9809 we do not try to compute canonical type for type that does not need
9810 alias set.
9811 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9812 FUNCITON_TYPE.
9813 * tree.h (type_with_alias_set_p): New.
9814
9815 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9816
9817 * tree.c (gimple_canonical_types_compatible_p): Do not compare
9818 function attributes.
9819 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9820
9821 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
9822
9823 * Makefile.in (check_gcc_parallelize): Delete.
9824 (lang_checks_parallelized): Update comment.
9825
9826 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
9827
9828 PR rtl-optimization/66237
9829 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9830 location of an "as_a" cast.
9831
9832 2015-05-22 Jeff Law <law@redhat.com>
9833
9834 * config/pa/pa.md (non-canonical shift-add insns): Remove.
9835 (peepholes with non-canonical RTL sources): Remove.
9836 (peepholes for indexed stores of FP regs in integer modes): Match and
9837 generate canonical RTL.
9838
9839 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9840
9841 PR tree-optimization/63387
9842 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9843 ((x ord x) & (y ord y) -> (x ord y),
9844 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9845 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9846 vectors like scalars.
9847
9848 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9849
9850 * convert.c (convert_to_integer, convert_to_vector): Include the
9851 types in the error message.
9852
9853 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9854
9855 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9856 simplifications.
9857
9858 2015-05-22 Jeff Law <law@redhat.com>
9859
9860 * config/pa/pa.md (integer_indexed_store splitters): Use
9861 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
9862 insns -- adjusting the constant 2nd operand accordingly.
9863
9864 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9865 (plus (ashift X log2) Y) if it is a split point.
9866
9867 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9868 out of hppa_legitimize_address to handle both forms of a multiply
9869 by 2, 4 or 8.
9870 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9871 Always generate the ASHIFT variant as the result is not directly
9872 used in a MEM. Update comments and refactor slightly to improve
9873 readability.
9874
9875 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9876
9877 PR target/65491
9878 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9879 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
9880 (aarch64_composite_type_p): Return false if given type and mode are
9881 for a short vector.
9882
9883 2015-05-22 Richard Biener <rguenther@suse.de>
9884
9885 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9886 member.
9887 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9888 patterns when determining whether SLP is pure.
9889 (vect_is_slp_reduction): Remove check for pattern stmts.
9890 (vect_is_simple_reduction_1): Remove dead code.
9891 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9892 (vect_get_and_check_slp_defs): Pass in the stmt number.
9893 Allow the first def in a reduction to be not a pattern stmt when
9894 the rest of the stmts def are patterns.
9895 (vect_build_slp_tree_1): Allow tcc_expression codes like
9896 SAD_EXPR and DOT_PROD_EXPR.
9897 (vect_build_slp_tree): Adjust.
9898 (vect_analyze_slp): Refactor and move BB vect error message ...
9899 (vect_slp_analyze_bb_1): ... here.
9900
9901 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
9902
9903 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9904 for CSWTCH temporary.
9905
9906 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9907
9908 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9909 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
9910 unknown unspecs.
9911
9912 2015-05-22 Richard Biener <rguenther@suse.de>
9913
9914 PR tree-optimization/66251
9915 * tree-vect-stmts.c (vectorizable_conversion): Properly
9916 set STMT_VINFO_VEC_STMT even for the SLP case.
9917
9918 2015-05-22 Marek Polacek <polacek@redhat.com>
9919
9920 * doc/extend.texi: Use @pxref instead of @xref.
9921
9922 2015-05-22 hiraditya <hiraditya@msn.com>
9923
9924 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9925 redundant if.
9926
9927 2015-05-22 Richard Biener <rguenther@suse.de>
9928
9929 PR tree-optimization/65701
9930 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9931 Move peeling cost models into one place. Peel for alignment
9932 for single loads only if an aligned load is cheaper than
9933 an unaligned load.
9934
9935 2015-05-22 Marek Polacek <polacek@redhat.com>
9936
9937 PR c/47043
9938 * doc/extend.texi (Enumerator Attributes): New section.
9939 Document syntax of enumerator attributes.
9940
9941 2015-05-22 Richard Biener <rguenther@suse.de>
9942
9943 * tree-vect-loop.c (get_reduction_op): New function.
9944 (vect_model_reduction_cost): Use it, add reduc_index parameter.
9945 Make ready for BB reductions.
9946 (vect_create_epilog_for_reduction): Use get_reduction_op.
9947 (vectorizable_reduction): Init reduc_index to a valid value.
9948 Adjust vect_model_reduction_cost call.
9949 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9950 operand for reduction defaults. Add SAD_EXPR support.
9951 Assert we have a neutral op for SLP reductions.
9952 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9953 walking pattern stmt ops only recurse to SSA names.
9954
9955 2015-05-22 Richard Biener <rguenther@suse.de>
9956
9957 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9958 assert with guard, remove check on detected reduction.
9959 (vect_recog_sad_pattern): Likewise.
9960 (vect_recog_widen_sum_pattern): Likewise.
9961
9962 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9963
9964 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9965 __always_inline__ attribute.
9966 (vaesdq_u8): Likewise.
9967 (vaesmcq_u8): Likewise.
9968 (vaesimcq_u8): Likewise.
9969 (vsha1cq_u32): Likewise.
9970 (vsha1mq_u32): Likewise.
9971 (vsha1pq_u32): Likewise.
9972 (vsha1h_u32): Likewise.
9973 (vsha1su0q_u32): Likewise.
9974 (vsha1su1q_u32): Likewise.
9975 (vsha256hq_u32): Likewise.
9976 (vsha256h2q_u32): Likewise.
9977 (vsha256su0q_u32): Likewise.
9978 (vsha256su1q_u32): Likewise.
9979 (vmull_p64): Likewise.
9980 (vmull_high_p64): Likewise.
9981
9982 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9983
9984 * final.c (final_scan_insn): Don't check HAVE_peephole with the
9985 preprocessor.
9986 * output.h: Likewise.
9987 * genconfig.c (main): Alwways define HAVE_peephole.
9988 * genpeep.c: Don't emit checks of HAVE_peephole.
9989
9990 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9991
9992 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9993 check HAVE_conditional_move with the preprocessor.
9994
9995 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9996
9997 * genconfig.c (main): Always define HAVE_conditional_move.
9998 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9999 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
10000 is defined.
10001
10002 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10003
10004 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
10005 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
10006 and FRAME_POINTER_REGNUM with the preprocessor.
10007
10008 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10009
10010 * defaults.h: Add default for STACK_PUSH_CODE.
10011 * expr.c: Don't redefine STACK_PUSH_CODE.
10012 * recog.c: Likewise.
10013
10014 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10015
10016 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
10017 sched-deps.c: Use if instead of preprocessor checks with
10018 STACK_GROWS_DOWNWARD.
10019
10020 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10021
10022 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
10023 is defined.
10024 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
10025 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
10026 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
10027 * doc/tm.texi: Regenerate.
10028
10029 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
10030
10031 PR target/66232
10032 * config/i386/constraints.md (Bg): New constraint for GOT memory
10033 operand.
10034 * config/i386/i386.md (*call_got_x32): New pattern.
10035 (*call_value_got_x32): Likewise.
10036 * config/i386/predicates.md (GOT_memory_operand): New predicate.
10037
10038 2015-05-21 Jakub Jelinek <jakub@redhat.com>
10039
10040 PR tree-optimization/66233
10041 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
10042 Simplify.
10043
10044 2015-05-21 Jeff Law <law@redhat.com>
10045
10046 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
10047 than MULT for shadd sequences.
10048
10049 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
10050
10051 * alias.c (alias_stats): New static var.
10052 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
10053 (dump_alias_stats_in_alias_c): New function.
10054 * alias.h (dump_alias_stats_in_alias_c): Declare.
10055 * tree-ssa-alias.c (dump_alias_stats): Call it.
10056
10057 2015-05-08 Michael Matz <matz@suse.de>
10058
10059 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
10060 to strided_p.
10061 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
10062 (STMT_VINFO_STRIDED_P): ... this.
10063 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
10064 (vect_verify_datarefs_alignment): Likewise.
10065 (vect_enhance_data_refs_alignment): Likewise.
10066 (vect_analyze_data_ref_access): Likewise.
10067 (vect_analyze_data_refs): Accept strided stores.
10068 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
10069 (vect_model_load_cost): Adjust for macro rename.
10070 (vectorizable_mask_load_store): Likewise.
10071 (vectorizable_load): Likewise.
10072 (vectorizable_store): Open code strided stores.
10073
10074 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10075
10076 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
10077 Document sqrt_insn.
10078
10079 2015-05-21 Richard Biener <rguenther@suse.de>
10080
10081 PR c++/66211
10082 * match.pd: Guard pattern optimzing (int)(float)int
10083 conversions to apply only on GIMPLE.
10084
10085 2015-05-21 Jeff Law <law@redhat.com>
10086
10087 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
10088 multiply-accumulate/shift-add insn generation.
10089
10090 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10091
10092 PR target/54236
10093 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
10094 operands[1] are the same.
10095
10096 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10097
10098 PR middle-end/66221
10099 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
10100 build_distinct_type_copy to copy bounds.
10101
10102 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
10103
10104 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
10105 Change to unsigned int.
10106
10107 2015-05-20 Jeff Law <law@redhat.com>
10108
10109 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
10110 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
10111 (pa_shadd_constant_p): Allow constants for shadd insns rather
10112 than valid scaling constants for memory addresses.
10113 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
10114 * config/pa/predicates.md (mem_shadd_operand): New predicate.
10115 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
10116 (shift-add insns using ASHIFT): New patterns.
10117
10118 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
10119
10120 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
10121 feasible.
10122 (fix_up_fall_thru_edges): Likewise.
10123 (fix_crossing_conditional_branches): Likewise. Promote jump targets
10124 from to rtx_insn to rtx_code_label where feasible.
10125 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
10126 gen_move_insn (returned type changed to rtx_insn).
10127 * builtins.c (expand_errno_check): Fix arguments of
10128 do_compare_rtx_and_jump (now expects rtx_code_label).
10129 (expand_builtin_acc_on_device): Likewise.
10130 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
10131 invert_jump (now exprects rtx_jump_insn).
10132 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
10133 (construct_init_block): Use rtx_code_label.
10134 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
10135 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
10136 calling redirect_jump.
10137 (patch_jump_insn): Likewise.
10138 (redirect_branch_edge): Likewise.
10139 (force_nonfallthru_and_redirect): Likewise.
10140 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
10141 when suitable.
10142 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
10143 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
10144 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
10145 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
10146 to store the value retured by gen_label_rtx.
10147 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
10148 rtx_jump_insn.
10149 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
10150 (split_branches): Fix calls of redirect_jump.
10151 * dojump.c (jumpifnot): Promote argument type from rtx to
10152 rtx_code_label.
10153 (jumpifnot_1): Likewise.
10154 (jumpif): Likewise.
10155 (jumpif_1): Likewise.
10156 (do_jump_1): Likewise.
10157 (do_jump): Likewise. Use rtx_code_label when feasible.
10158 (do_jump_by_parts_greater_rtx): Likewise.
10159 (do_jump_by_parts_zero_rtx): Likewise.
10160 (do_jump_by_parts_equality_rtx): Likewise.
10161 (do_compare_rtx_and_jump): Likewise.
10162 * dojump.h: Update function prototypes.
10163 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
10164 returns rtx_insn).
10165 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
10166 rtx_jump_insn.
10167 (emit_label_before): Likewise.
10168 (emit_jump_insn_after_noloc): Likewise.
10169 (emit_jump_insn_after_setloc): Likewise.
10170 (emit_jump_insn_after): Likewise
10171 (emit_jump_insn_before_setloc): Likewise.
10172 (emit_jump_insn_before): Likewise.
10173 (emit_label_before): Promote return type to rtx_code_label.
10174 (emit_label): Likewise.
10175 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
10176 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
10177 gen_move_insn.
10178 (emit_stack_restore): Likewise.
10179 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
10180 (do_cmp_and_jump): Likewise.
10181 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
10182 from rtx to rtx_code_label.
10183 (gen_move_insn_uncast): New function.
10184 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
10185 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
10186 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
10187 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
10188 invert_jump_1 and redirect_jump_1.
10189 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
10190 do_compare_rtx_and_jump.
10191 (expand_addsub_overflow): Likewise.
10192 (expand_neg_overflow): Likewise.
10193 (expand_mul_overflow): Likewise.
10194 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
10195 return value of gen_move_insn.
10196 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
10197 * loop-doloop.c (add_test): Use rtx_code_label.
10198 (doloop_modify): Likewise.
10199 (doloop_optimize): Likewise.
10200 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
10201 * lra-constraints.c (emit_spill_move): Remove cast of value returned
10202 by gen_move_insn.
10203 (inherit_reload_reg): Add cast when calling dump_insn_slim.
10204 (split_reg): Likewise.
10205 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
10206 gen_move_insn.
10207 * optabs.c (expand_binop_directly): Remove casts of values returned by
10208 maybe_gen_insn.
10209 (expand_unop_direct): Likewise.
10210 (expand_abs): Likewise.
10211 (maybe_emit_unop_insn): Likewise.
10212 (maybe_gen_insn): Promote return type to rtx_insn.
10213 * optabs.h: Update prototype of maybe_gen_insn.
10214 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
10215 redundant cast.
10216 * recog.c (struct peep2_insn_data): Promote type of insn field to
10217 rtx_insn.
10218 (peep2_reinit_state): Use NULL instead of NULL_RTX.
10219 (peep2_attempt): Remove casts of insn in peep2_insn_data.
10220 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
10221 * recog.h (struct insn_gen_fn): Promote return types of function
10222 pointers and operator ().from rtx to rtx_insn.
10223 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
10224 (fill_eager_delay_slots): Likewise.
10225 (relax_delay_slots): Likewise.
10226 (make_return_insns): Likewise.
10227 (dbr_schedule): Likewise.
10228 (optimize_skips): Likewise.
10229 (reorg_redirect_jump): Likewise.
10230 (fill_slots_from_thread): Likewise.
10231 * reorg.h: Update prototypes.
10232 * resource.c (find_dead_or_set_registers): Use dyn_cast to
10233 rtx_jump_insn instead of check. Use it's jump_target method.
10234 * rtl.h (rtx_jump_insn::jump_label): Define new method.
10235 (rtx_jump_insn::jump_target): Define new method.
10236 (rtx_jump_insn::set_jump_target): Define new method.
10237 * rtlanal.c (tablejump_p): Promote type of one local variable.
10238 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
10239 (sched_analyze_insn): Likewise.
10240 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
10241 (print_insn): Likewise.
10242 * stmt.c (label_rtx): Promote return type to rtx_insn.
10243 (force_label_rtx): Likewise.
10244 (jump_target_rtx): Define new function.
10245 (expand_label): Use it, get rid of one cast.
10246 (expand_naked_return): Promote rtx to rtx_code_label.
10247 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
10248 (expand_case): Use rtx_code_label instread of rtx where feasible.
10249 (expand_sjlj_dispatch_table): Likewise.
10250 (emit_case_nodes): Likewise.
10251 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
10252 * store-motion.c (insert_store): Make use of new return type of
10253 gen_move_insn and remove a cast.
10254 (replace_store_insn): Likewise.
10255
10256 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
10257
10258 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
10259 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10260
10261 2015-05-20 Jeff Law <law@redhat.com>
10262
10263 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
10264 dispose of the jump thread path when the jump threading
10265 opportunity is cancelled.
10266
10267 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10268
10269 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
10270 when printing the caret character.
10271
10272 2015-05-20 Marek Polacek <polacek@redhat.com>
10273
10274 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10275
10276 2015-05-20 Marek Polacek <polacek@redhat.com>
10277
10278 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10279 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10280 * gimple-fold.c (canonicalize_bool): Likewise.
10281 (same_bool_result_p): Likewise.
10282 * tree-if-conv.c (parse_predicate): Likewise.
10283
10284 2015-05-20 Marek Polacek <polacek@redhat.com>
10285
10286 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10287 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10288
10289 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10290
10291 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10292 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10293 values.
10294
10295 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
10296
10297 * config/mips/mips.h (micromips_globals): Declare.
10298
10299 2015-05-20 David Malcolm <dmalcolm@redhat.com>
10300
10301 * timevar.def (TV_INITIALIZE_RTL): New.
10302 * toplev.c (initialize_rtl): Use an auto_timevar to account this
10303 function's time to TV_INITIALIZE_RTL.
10304
10305 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
10306
10307 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10308 gimple_build_nop calls.
10309 (chkp_find_bounds_for_elem): Likewise.
10310 (chkp_get_zero_bounds): Likewise.
10311 (chkp_get_none_bounds): Likewise.
10312 (chkp_get_bounds_by_definition): Likewise.
10313 (chkp_generate_extern_var_bounds): Likewise.
10314 (chkp_get_bounds_for_decl_addr): Likewise.
10315 (chkp_get_bounds_for_string_cst): Likewise.
10316
10317 2015-05-20 Bin Cheng <bin.cheng@arm.com>
10318
10319 PR tree-optimization/65447
10320 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10321 (dump_use, dump_uses): Support to dump sub use.
10322 (record_use): New parameters to support sub use. Remove call to
10323 dump_use.
10324 (record_sub_use, record_group_use): New functions.
10325 (compute_max_addr_offset, split_all_small_groups): New functions.
10326 (group_address_uses, rewrite_use_address): New functions.
10327 (strip_offset): New declaration.
10328 (find_interesting_uses_address): Call record_group_use.
10329 (add_candidate): New assertion.
10330 (infinite_cost_p): Move definition forward.
10331 (add_costs): Check INFTY cost and return immediately.
10332 (get_computation_cost_at): Clear setup cost and dependent bitmap
10333 for sub uses.
10334 (determine_use_iv_cost_address): Compute cost for sub uses.
10335 (rewrite_use_address_1): Rename from old rewrite_use_address.
10336 (free_loop_data): Free sub uses.
10337 (tree_ssa_iv_optimize_loop): Call group_address_uses.
10338
10339 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10340 Jim Wilson <jim.wilson@linaro.org>
10341
10342 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10343 new fields loadv and storev.
10344 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10345 Initialize loadv and storev.
10346 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10347 (cortexa53_extra_costs): Likewise.
10348 (cortexa57_extra_costs): Likewise.
10349 (xgene1_extra_costs): Likewise.
10350 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10351 rtx_costs.
10352
10353 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10354
10355 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10356 storev.
10357 (cortexa8_extra_costs): Likewise.
10358 (cortexa5_extra_costs): Likewise.
10359 (cortexa7_extra_costs): Likewise.
10360 (cortexa12_extra_costs): Likewise.
10361 (cortexa15_extra_costs): Likewise.
10362 (v7m_extra_costs): Likewise.
10363
10364 2015-05-20 Jeff Law <law@redhat.com>
10365
10366 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10367 instead of open-coded version. Also delete the jump thread created
10368 within this function.
10369
10370 2015-05-20 Alan Modra <amodra@gmail.com>
10371
10372 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10373 stack adjusting insn. Formatting.
10374 (rs6000_emit_prologue): Track stack adjusting insn, and use of
10375 r12. If possible, emit first -fsplit-stack arg pointer insn
10376 before stack adjust. Don't use r12 to save cr if split-stack.
10377
10378 2015-05-20 Alan Modra <amodra@gmail.com>
10379
10380 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10381 Define.
10382 (rs6000_supports_split_stack): New function.
10383 * gcc/config/rs6000/rs6000.c (machine_function): Add
10384 split_stack_arg_pointer.
10385 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10386 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10387 rather than virtual_incoming_args_rtx.
10388 (rs6000_va_start): Likewise.
10389 (split_stack_arg_pointer_used_p): New function.
10390 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10391 (morestack_ref): New var.
10392 (gen_add3_const, rs6000_expand_split_stack_prologue,
10393 rs6000_internal_arg_pointer, rs6000_live_on_entry,
10394 rs6000_split_stack_space_check): New functions.
10395 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10396 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10397 (UNSPECV_SPLIT_STACK_RETURN): Define.
10398 (split_stack_prologue, load_split_stack_limit,
10399 load_split_stack_limit_di, load_split_stack_limit_si,
10400 split_stack_return, split_stack_space_check): New expands and insns.
10401 * gcc/config/rs6000/rs6000-protos.h
10402 (rs6000_expand_split_stack_prologue): Declare.
10403 (rs6000_split_stack_space_check): Declare.
10404
10405 2015-05-20 Alan Modra <amodra@gmail.com>
10406
10407 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10408 (direct_return): Test vrsave_size rather than vrsave_mask.
10409 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
10410 (rs6000_emit_epilogue): Likewise.
10411
10412 2015-05-20 Alan Modra <amodra@gmail.com>
10413
10414 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10415 when not saving registers.
10416 (debug_stack_info): Adjust to omit printing unused offsets,
10417 as before.
10418 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10419 expression.
10420
10421 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10422
10423 PR c++/65835
10424 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10425 value_type to const char *.
10426
10427 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
10428
10429 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10430 to build a biarch toolchain again.
10431
10432 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10433
10434 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10435 or implicit declarations.
10436 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10437 into it.
10438 (get_odr_type): Check type has linkage before adding bases.
10439 (register_odr_type): Check that type has linkage before adding it.
10440 (type_known_to_have_no_deriavations_p): Rename to ..
10441 (type_known_to_have_no_derivations_p): This one.
10442 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10443 (type_known_to_have_no_derivations_p): This one.
10444 * ipa-polymorphic-call.c
10445 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10446 type has linkage.
10447
10448 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10449
10450 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10451 (layout_type): Use RECORD_OR_UNION_TYPE_P.
10452
10453 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10454
10455 * config/s390/s390.c (s390_vector_bool_type_p): New function.
10456 (s390_invalid_binary_op): New function.
10457 (TARGET_INVALID_BINARY_OP): Define macro.
10458
10459 2015-05-19 David Sherwood <david.sherwood@arm.com>
10460
10461 * loop-invariant.c (create_new_invariant): Don't calculate address cost
10462 if mode is not a scalar integer.
10463 (get_inv_cost): Increase computational cost for unused invariants.
10464
10465 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10466
10467 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
10468 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
10469 * config/s390/s390-builtin-types.def: New file.
10470 * config/s390/s390-builtins.def: New file.
10471 * config/s390/s390-builtins.h: New file.
10472 * config/s390/s390-c.c: New file.
10473 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10474 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10475 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10476 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10477 prototypes.
10478 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10479 Include.
10480 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10481 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10482 variable definitions.
10483 (s390_const_operand_ok): New function.
10484 (s390_expand_builtin): Rewrite.
10485 (s390_init_builtins): New function.
10486 (s390_handle_vectorbool_attribute): New function.
10487 (s390_attribute_table): Add s390_vector_bool attribute.
10488 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10489 (s390_branch_condition_mask): Generate masks for new modes.
10490 (s390_expand_vec_compare_cc): New function.
10491 (s390_mangle_type): Add mangling for vector bool types.
10492 (enum s390_builtin): Remove.
10493 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10494 efpc builtins.
10495 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10496 s390_cpu_cpp_builtins.
10497 (REGISTER_TARGET_PRAGMAS): New macro.
10498 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10499 (insn_cmp mode attribute): Add new CC modes.
10500 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10501 (lcbb): New pattern definition.
10502 * config/s390/s390intrin.h: Include vecintrin.h.
10503 * config/s390/t-s390: New file.
10504 * config/s390/vecintrin.h: New file.
10505 * config/s390/vector.md: Include vx-builtins.md.
10506 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10507 support.
10508
10509 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10510
10511 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10512 CCVFHE.
10513 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10514 (s390_select_ccmode): Likewise.
10515 (s390_canonicalize_comparison): Swap operands if necessary.
10516 (s390_expand_vec_compare_scalar): Expand DFmode compare using
10517 single element vector instructions.
10518 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10519 (s390_branch_condition_mask): Generate CC masks for the new modes.
10520 * config/s390/s390.md (v0, vf, vd): New mode attributes.
10521 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10522 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10523 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10524 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10525 (*extend<DSF:mode><BFP:mode>2): New insn definition.
10526 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10527 (extend<DSF:mode><BFP:mode>2): Turn into expander.
10528 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10529 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10530 (sqrt<mode>2): Add vector instruction.
10531
10532 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10533
10534 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10535 constraints.
10536 * config/s390/predicates.md (const0_operand, constm1_operand)
10537 (constable_operand): Accept vector operands.
10538 * config/s390/s390-modes.def: Add supported vector modes.
10539 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10540 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10541 (s390_bytemask_vector_p, s390_expand_vec_strlen)
10542 (s390_expand_vec_compare, s390_expand_vcond)
10543 (s390_expand_vec_init): Add prototypes.
10544 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10545 (s390_vector_mode_supported_p): New function.
10546 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10547 (s390_contiguous_bitmask_vector_p): New function.
10548 (s390_bytemask_vector_p): New function.
10549 (s390_split_ok_p): Vector regs don't work either.
10550 (regclass_map): Add VEC_REGS.
10551 (s390_legitimate_constant_p): Handle vector constants.
10552 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10553 (legitimate_reload_vector_constant_p): New function.
10554 (s390_preferred_reload_class): Handle CONST_VECTOR.
10555 (s390_reload_symref_address): Likewise.
10556 (s390_secondary_reload): Vector memory instructions only support
10557 short displacements. Rename reload*_nonoffmem* to reload*_la*.
10558 (s390_emit_ccraw_jump): New function.
10559 (s390_expand_vec_strlen): New function.
10560 (s390_expand_vec_compare): New function.
10561 (s390_expand_vcond): New function.
10562 (s390_expand_vec_init): New function.
10563 (s390_dwarf_frame_reg_mode): New function.
10564 (print_operand): Handle addresses with 'O' and 'R' constraints.
10565 (NR_C_MODES, constant_modes): Add vector modes.
10566 (s390_output_pool_entry): Handle vector constants.
10567 (s390_hard_regno_mode_ok): Handle vector registers.
10568 (s390_class_max_nregs): Likewise.
10569 (s390_cannot_change_mode_class): New function.
10570 (s390_invalid_arg_for_unprototyped_fn): New function.
10571 (s390_function_arg_vector): New function.
10572 (s390_function_arg_float): Remove size variable.
10573 (s390_pass_by_reference): Handle vector arguments.
10574 (s390_function_arg_advance): Likewise.
10575 (s390_function_arg): Likewise.
10576 (s390_return_in_memory): Vector values are returned in a VR if
10577 possible.
10578 (s390_function_and_libcall_value): Handle vector arguments.
10579 (s390_gimplify_va_arg): Likewise.
10580 (s390_call_saved_register_used): Consider the arguments named.
10581 (s390_conditional_register_usage): Disable v16-v31 for non-vec
10582 targets.
10583 (s390_preferred_simd_mode): New function.
10584 (s390_support_vector_misalignment): New function.
10585 (s390_vector_alignment): New function.
10586 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10587 (TARGET_VECTOR_MODE_SUPPORTED_P)
10588 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10589 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10590 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10591 (TARGET_VECTOR_ALIGNMENT): Define target macro.
10592 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10593 (FIRST_PSEUDO_REGISTER): Increase value.
10594 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10595 (VECTOR_REG_P): Define macros.
10596 (FIXED_REGISTERS, CALL_USED_REGISTERS)
10597 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10598 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10599 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10600 Add vector registers.
10601 (CANNOT_CHANGE_MODE_CLASS): Call C function.
10602 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10603 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10604 memory.
10605 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10606 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10607 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10608 (VR*_REGNUM): New constants.
10609 (ALL): New mode iterator.
10610 (INTALL): Remove mode iterator.
10611 Include vector.md.
10612 (movti): Implement TImode moves for VRs.
10613 Disable TImode splitter for VR targets.
10614 Implement splitting TImode GPR<->VR moves.
10615 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10616 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10617 reload<mode>_la_in, reload<mode>_la_out.
10618 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10619 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10620 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10621 (mov<mode> SF SD): Prefer lder, lde for loading.
10622 Add lrl and strl instructions.
10623 Add vector instructions.
10624 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10625 Call s390_expand_vec_strlen on z13.
10626 (*cc_to_int): Change predicate to nonimmediate_operand.
10627 (addti3): Rename to *addti3. New expander.
10628 (subti3): Rename to *subti3. New expander.
10629 * config/s390/vector.md: New file.
10630
10631 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10632
10633 * common/config/s390/s390-common.c (processor_flags_table): Add
10634 z13.
10635 * config.gcc: Add z13.
10636 * config/s390/s390-opts.h (enum processor_type): Add
10637 PROCESSOR_2964_Z13.
10638 * config/s390/s390.c (s390_adjust_priority): Check for
10639 PROCESSOR_2964_Z13.
10640 (s390_reorg): Likewise.
10641 (s390_sched_reorder): Likewise.
10642 (s390_sched_variable_issue): Likewise.
10643 (s390_loop_unroll_adjust): Likewise.
10644 (s390_option_override): Likewise. Default to -mvx when available.
10645 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10646 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10647 (TARGET_VX_ABI): Define macros.
10648 macros.
10649 (TARGET_DEFAULT): Add MASK_OPT_VX.
10650 * config/s390/s390.md ("cpu" attribute): Add z13.
10651 ("cpu_facility" attribute): Add vec.
10652 * config/s390/s390.opt (processor_type): Add z13.
10653 (mvx): New options.
10654 * doc/invoke.texi: Add z13 option for -march.
10655
10656 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10657
10658 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10659 mode check to make sure that only scalar integer values are
10660 accepted.
10661
10662 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10663
10664 * tree.c (verify_type_variant): Fix #undef.
10665 (gimple_canonical_types_compatible_p): Move here from lto.c
10666 (verify_type): Verify TYPE_CANONICAL compatibility.
10667 * tree.h (gimple_canonical_types_compatible_p): Declare.
10668
10669 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10670
10671 PR middle-end/66199
10672 * tree.h (OMP_TEAMS_COMBINED): Define.
10673 * gimplify.c (enum gimplify_omp_var_data): Add
10674 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10675 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10676 (omp_notice_variable): Accept both ORT_TEAMS
10677 and ORT_COMBINED_TEAMS. Don't recurse if
10678 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10679 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10680 GOVD_FIRSTPRIVATE.
10681 (omp_no_lastprivate): New function.
10682 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10683 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10684 notice_outer and set appropriate bits, otherwise make
10685 sure default(none) combined constructs won't complain.
10686 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10687 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10688 omp_no_lastprivate either remove the clause or turn it
10689 into OMP_CLAUSE_PRIVATE.
10690 (gimplify_omp_for): Fix up handling of implicit
10691 lastprivate or linear iterators.
10692 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10693 ORT_COMBINED_TEAMS.
10694 * omp-low.c (lower_omp_for_lastprivate): For combined
10695 for simd use fd.loop.n2 from the for rather than simd.
10696
10697 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10698
10699 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10700 instead of gen_rtx_raw_REG.
10701 (cris_expand_epilogue): Likewise.
10702 * config/microblaze/microblaze.c (microblaze_classify_address):
10703 Likewise.
10704 * config/sparc/sparc.md: Likewise.
10705
10706 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
10707
10708 * config/alpha/alpha.c (alpha_legitimize_reload_address)
10709 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10710 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10711 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10712 Use CASE_CONST_SCALAR_INT.
10713 (print_operand) <case 'M'>: Use mode_width_operand to check the
10714 value of the constant.
10715 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10716 * config/alpha/predicates.md (input_operand): Use general_operand
10717 instead of match_code as operand check.
10718 (symbolic_operand): Use match_code with subexpression digits.
10719 * config/alpha/constraints.md (Q): Ditto.
10720
10721 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10722
10723 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10724
10725 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10726
10727 * config/s390/s390.c (s390_secondary_reload): Fix check for
10728 load/store relative.
10729
10730 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10731
10732 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
10733 alternative_mask to uint64_t.
10734
10735 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10736
10737 PR tree-optimization/66187
10738 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10739 Pass TYPE_SIGN to tree_int_cst_min_precision. If
10740 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10741
10742 2015-05-19 David Malcolm <dmalcolm@redhat.com>
10743
10744 * diagnostic.c (diagnostic_report_current_module): Strengthen
10745 local "new_map" from const line_map * to
10746 const line_map_ordinary *.
10747 * genmatch.c (error_cb): Likewise for local "map".
10748 (output_line_directive): Likewise for local "map".
10749 * input.c (expand_location_1): Likewise for local "map".
10750 Pass NULL rather than &map to
10751 linemap_unwind_to_first_non_reserved_loc, since the value is never
10752 read from there, and the value written back not read from here.
10753 (is_location_from_builtin_token): Strengthen local "map" from
10754 const line_map * to const line_map_ordinary *.
10755 (dump_location_info): Strengthen locals "map" from
10756 line_map *, one to const line_map_ordinary *, the other
10757 to const line_map_macro *.
10758 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10759 const line_map * to const line_map_macro *.
10760 (maybe_unwind_expanded_macro_loc): Add a call to
10761 linemap_check_macro when writing to the "map" field of the
10762 loc_map_pair.
10763 Introduce local const line_map_ordinary * "ord_map", using it in
10764 place of "map" in the part of the function where we know we have
10765 an ordinary map. Strengthen local "m" from const line_map * to
10766 const line_map_ordinary *.
10767
10768 2015-05-19 Nick Clifton <nickc@redhat.com>
10769
10770 PR target/66156
10771 * config/msp430/msp430.md (zero_extendhisi2): Add support for
10772 separate source and destination registers.
10773
10774 2015-05-19 Richard Biener <rguenther@suse.de>
10775
10776 PR tree-optimization/66165
10777 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10778 for no load permutation.
10779
10780 PR tree-optimization/66185
10781 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10782 when building the SLP node from scalars.
10783
10784 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10785 Tristan Gingold <gingold@adacore.com>
10786
10787 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10788 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10789 (expand_stack_restore): Call record_new_stack_level.
10790 (expand_stack_save): Do not call do_pending_stack_adjust.
10791 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10792 * calls.c (expand_call): Call record_new_stack_level for alloca.
10793 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10794 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10795 (update_sjlj_context): New global function.
10796 * except.h (update_sjlj_context): Declare.
10797 * explow.c (record_new_stack_level): New global function.
10798 (allocate_dynamic_stack_space): Call record_new_stack_level.
10799 * explow.h (record_new_stack_level): Declare.
10800 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10801 * cfgrtl.c (duplicate_insn_chain): Likewise.
10802
10803 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10804
10805 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10806 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10807 STACK_GROWS_DOWNWARD as normal if.
10808 (expand_call): Likewise.
10809
10810 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
10811
10812 PR target/54236
10813 * config/sh/sh.md (*round_int_even): New insn_and_split and
10814 accompanying new unnamed split.
10815
10816 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10817
10818 * bitmap.c (bitmap_set_range): Handle count==1 specially.
10819 (bitmap_clear_range): Likewise.
10820 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10821 bitmap_set_range unconditionally.
10822 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10823 * df-scan.c (df_mark_reg): Likewise.
10824 * haifa-sched.c (setup_ref_regs): Likewise.
10825 * sched-rgn.c (update_live_1): Likewise.
10826
10827 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10828
10829 * regs.h (END_HARD_REGNO): Delete.
10830 (END_REGNO): Move to...
10831 * rtl.h: ...here.
10832 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10833 * caller-save.c (mark_set_regs): Likewise.
10834 * combine.c (move_deaths, distribute_notes): Likewise.
10835 * cse.c (invalidate, invalidate_for_call): Likewise.
10836 * df-scan.c (df_ref_record): Likewise.
10837 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10838 (record_last_reg_set_info): Likewise.
10839 * reg-stack.c (convert_regs_exit): Likewise.
10840 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10841 * resource.c (update_live_status): Likewise.
10842 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10843
10844 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10845
10846 * rtl.h (reg_info): Add an nregs field.
10847 (REG_NREGS): Use it.
10848 (SET_REGNO_RAW): Delete.
10849 (set_regno_raw): New function.
10850 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10851 (END_REGNO): Redefine in terms of REG_NREGS.
10852 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10853 SET_REGNO_RAW.
10854 * emit-rtl.c (set_mode_and_regno): Likewise.
10855 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10856 instead of SET_REGNO_RAW.
10857
10858 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10859
10860 * rtl.h (PUT_MODE_RAW): New macro.
10861 (PUT_REG_NOTE_KIND): Use it.
10862 (set_mode_and_regno): Declare.
10863 (gen_raw_REG): Change regno to "unsigned int".
10864 (gen_rtx_REG): Change "unsigned" to "unsigned int".
10865 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10866 use set_mode_and_regno to change the mode of registers.
10867 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10868 * emit-rtl.c (set_mode_and_regno): New function.
10869 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
10870 * caller-save.c (reg_save_code): Use set_mode_and_regno.
10871 * expr.c (init_expr_target): Likewise.
10872 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10873 * postreload.c (reload_cse_simplify_operands): Likewise.
10874
10875 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10876
10877 * caller-save.c (init_caller_save): Use word_mode and
10878 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10879 * expr.c (init_expr_target): Likewise.
10880 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10881 * postreload.c (reload_cse_regs_1): Likewise.
10882
10883 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10884
10885 * rtl.def (REG): Change format to "r".
10886 * rtl.h (rtunion): Remove rt_reg.
10887 (reg_info): New structure.
10888 (rtx_def): Add reg field to main union.
10889 (X0REGATTR): Delete.
10890 (REG_CHECK): New macro.
10891 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10892 * rtl.c (rtx_format): Document "r".
10893 (rtx_code_size): Handle REG specially.
10894 * gengenrtl.c (special_format): Return true for formats
10895 that include 'r'.
10896 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10897 Deal with REG_ATTRS after the field loop.
10898 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10899 * expmed.c (init_expmed): Call gen_raw_REG instead of
10900 gen_rtx_raw_REG.
10901 * expr.c (init_expr_target): Likewise.
10902 * regcprop.c (maybe_mode_change): Likewise.
10903 * varasm.c (make_decl_rtl): Likewise.
10904 * final.c (leaf_renumber_regs_insn): Return early after
10905 handling REGs.
10906 * genemit.c (gen_exp): Handle 'r' fields.
10907 * genpeep.c (match_rtx): Likewise.
10908 * gensupport.c (subst_pattern_match): Likewise.
10909 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10910 (alter_constraints, subst_dup): Likewise.
10911 * read-rtl.c (read_rtx_code): Likewise.
10912 * print-rtl.c (print_rtx): Likewise.
10913 * genrecog.c (find_operand, find_matching_operand): Likewise.
10914 (validate_pattern, match_pattern_2): Likewise.
10915 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10916 (rtx_test::regno_field): New function.
10917 (operator ==, safe_to_hoist_p, transition_parameter_type)
10918 (parameter_type_string, print_parameter_value)
10919 (print_nonbool_test, print_test): Handle new enum values.
10920 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10921 * lra-constraints.c (operands_match_p): Likewise.
10922
10923 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10924
10925 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10926 Change type of new_regno to unsigned int.
10927 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10928 new_regno to unsigned int.
10929 (df_ref_change_reg_with_loc): Remove old_regno parameter.
10930 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
10931 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10932 (SET_REGNO_RAW): Add space after ",".
10933
10934 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10935
10936 * rtl.h (REG_NREGS): New macro
10937 * alias.c (record_set): Use it.
10938 * cfgcleanup.c (mark_effect): Likewise.
10939 * combine.c (likely_spilled_retval_1): Likewise.
10940 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10941 (move_deaths, distribute_notes): Likewise.
10942 * cselib.c (cselib_record_set): Likewise.
10943 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10944 * df-scan.c (df_mark_reg): Likewise.
10945 * dse.c (look_for_hardregs): Likewise.
10946 * dwarf2out.c (reg_loc_descriptor): Likewise.
10947 (multiple_reg_loc_descriptor): Likewise.
10948 * expr.c (write_complex_part, read_complex_part): Likewise.
10949 (emit_move_complex): Likewise.
10950 * haifa-sched.c (setup_ref_regs): Likewise.
10951 * ira-lives.c (mark_hard_reg_live): Likewise.
10952 * lra.c (lra_set_insn_recog_data): Likewise.
10953 * mode-switching.c (create_pre_exit): Likewise.
10954 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10955 (reload_combine_recognize_pattern): Likewise.
10956 (reload_combine_note_use, move2add_record_mode): Likewise.
10957 (reload_cse_move2add): Likewise.
10958 * reg-stack.c (subst_stack_regs_pat): Likewise.
10959 * regcprop.c (kill_value, copy_value): Likewise.
10960 (copyprop_hardreg_forward_1): Likewise.
10961 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10962 (build_def_use): Likewise.
10963 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10964 (deps_analyze_insn): Likewise.
10965 * sched-rgn.c (check_live_1, update_live_1): Likewise.
10966 * sel-sched.c (count_occurrences_equiv): Likewise.
10967 * valtrack.c (dead_debug_insert_temp): Likewise.
10968
10969 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10970
10971 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10972 * dse.c (note_add_store): Likewise.
10973 * ira-lives.c (mark_hard_reg_dead): Likewise.
10974 * loop-invariant.c (mark_reg_store): Likewise.
10975 (mark_reg_death): Likewise.
10976 * postreload.c (reload_combine): Likewise.
10977 (reload_combine_note_store): Likewise.
10978 (reload_combine_note_use): Likewise.
10979 * recog.c (peep2_reg_dead_p): Likewise.
10980
10981 2015-05-19 Alan Modra <amodra@gmail.com>
10982
10983 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10984 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10985 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10986 unused predicates.
10987 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10988 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
10989 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10990 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10991
10992 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
10993
10994 * config/mips/mips.md (JOIN_MODE): New mode iterator.
10995 (join2_load_Store<JOIN_MODE:mode>): New pattern.
10996 (join2_loadhi): Likewise.
10997 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10998 load-load and store-stores.
10999 * config/mips/mips.opt (mload-store-pairs): New option.
11000 (TARGET_LOAD_STORE_PAIRS): New macro.
11001 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
11002 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
11003 * config/mips/mips.c (mips_load_store_bonding_p): New function.
11004
11005 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
11006
11007 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
11008 explicit swaps.
11009 * dojump.c (do_compare_rtx_and_jump): Likewise.
11010 * expmed.c (emit_store_flag_1): Likewise.
11011 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
11012 * final.c (sprint_ul): Use std::reverse for reversing a string.
11013 * fold-const.c (extract_muldiv_1): Use std::swap.
11014 * genmodes.c (emit_mode_int_n): Likewise.
11015 * ifcvt.c (dead_or_predicable): Likewise.
11016 * ira-build.c (ira_merge_live_ranges): Likewise.
11017 (swap_allocno_copy_ends_if_necessary): Likewise.
11018 * ira.c (ira_setup_alts): Likewise.
11019 * loop-iv.c (iv_analyze_expr): Likewise.
11020 (implies_p): Likewise.
11021 (canon_condition): Likewise.
11022 * lra-constraints.c (swap_operands): Likewise.
11023 * lra-lives.c (lra_merge_live_ranges): Likewise.
11024 * omega.c (swap): Remove.
11025 (bswap): Remove.
11026 (omega_unprotect_1): Use std::swap.
11027 (omega_solve_geq): Likewise.
11028 * optabs.c (expand_binop_directly): Likewise.
11029 (expand_binop): Likewise.
11030 (emit_conditional_move): Likewise.
11031 (emit_conditional_add): Likewise.
11032 * postreload.c (reload_cse_simplify_operands): Likewise.
11033 * reg-stack.c (emit_swap_insn): Likewise.
11034 (swap_to_top): Likewise.
11035 (compare_for_stack_reg): Likewise.
11036 (subst_asm_stack_regs): Likewise.
11037 * reload.c (find_reloads): Likewise.
11038 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
11039 * sel-sched.c (invoke_reorder_hooks): Likewise.
11040 (create_block_for_bookkeeping): Likewise.
11041 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
11042 (lambda_matrix_right_hermite): Use std::swap.
11043 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
11044 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11045 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
11046 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
11047 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
11048 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
11049 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
11050 * tree-vrp.c (compare_ranges): Likewise.
11051 * var-tracking.c (add_with_sets): Likewise.
11052 (vt_find_locations): Likewise.
11053
11054 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
11055
11056 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
11057 pie executables.
11058 (FBSD_ENDFILE_SPEC): Likewise.
11059 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
11060 config/freebsd-spec.h.
11061 (ENDFILE_SPEC): Likewise.
11062
11063 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
11064 Richard Henderson <rth@redhat.com>
11065
11066 PR target/57032
11067 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
11068 Check for a memory location that is not a reference (using an AND)
11069 to an unaligned location here.
11070 * config/alpha/predicates.md (normal_memory_operand): Remove.
11071
11072 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
11073
11074 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
11075 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
11076
11077 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
11078
11079 * config/mips/mips.c (micromips_globals): New variable.
11080 (mips_set_compression_mode): Save and reinitialize target-dependent
11081 state for microMIPS.
11082
11083 2015-05-18 Martin Liska <mliska@suse.cz>
11084
11085 * dbgcnt.def: Add new counter.
11086 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
11087
11088 2015-05-18 Martin Liska <mliska@suse.cz>
11089
11090 * dbgcnt.def: Sort counters.
11091 * opts.c (common_handle_option): Do not compile if
11092 -fdbg-cnt-list is enabled.
11093
11094 2015-05-18 Tom de Vries <tom@codesourcery.com>
11095
11096 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
11097 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
11098 address operator to va_list operand.
11099 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
11100 unconditionally.
11101 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
11102 operand.
11103 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
11104 * config/s390/s390.c (s390_gimplify_va_arg): Same.
11105 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
11106
11107 2015-05-18 Tom de Vries <tom@codesourcery.com>
11108
11109 * tree-ssa-tail-merge.c: Fix whitespace.
11110
11111 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
11112
11113 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
11114 cortex-a17, and cortex-a17.cortex-a7.
11115
11116 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
11117
11118 PR target/54236
11119 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
11120
11121 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
11122
11123 PR target/66174
11124 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
11125 QImode inner modes for TARGET_AVX512BW. Force mask operand
11126 to a register for AVX512F modes.
11127
11128 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
11129
11130 * toplev.c (emit_debug_global_declarations): Do not output debug info
11131 when doing slim LTO objects.
11132
11133 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
11134
11135 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
11136 odr_types_equivalent_p): Declare.
11137 (odr_type_p): Use gcc_checking_assert.
11138 (type_in_anonymous_namespace_p) Declare.
11139 (type_with_linkage_p): Declare.
11140 * common.opt (Wlto-type-mismatch): New warning.
11141 * ipa-devirt.c (compound_type_base): New function.
11142 (odr_or_derived_type_p): New function.
11143 (odr_types_equivalent_p): New function.
11144 (add_type_duplicate): Simplify.
11145 (type_with_linkage_p): Add hack to prevent false positives on C types
11146 (type_in_anonymous_namespace_p): Likewise.
11147 * tree.c (need_assembler_name_p): Use type_with_linkage.
11148 * tree.h (type_in_anonymous_namespace_p): Remove.
11149 * doc/invoke.texi (-Wlto-type-mismatch): Document
11150
11151 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
11152
11153 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
11154 (verify_type): Verify STRING_FLAG.
11155
11156 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11157
11158 PR fortran/44054
11159 * tree-pretty-print.c (percent_K_format): Replace locus pointer
11160 with accessor function.
11161 * tree-diagnostic.c (diagnostic_report_current_function): Use
11162 diagnostic_location function.
11163 (maybe_unwind_expanded_macro_loc): Likewise.
11164 (virt_loc_aware_diagnostic_finalizer): Likewise.
11165 (default_tree_printer): Replace locus pointer with accessor function.
11166 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
11167 (diagnostic_set_info_translated): Initialize second location.
11168 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
11169 (diagnostic_show_locus): Handle two locations. Call
11170 diagnostic_print_caret_line.
11171 (diagnostic_print_caret_line): New.
11172 (default_diagnostic_starter): Use diagnostic_location function.
11173 (diagnostic_report_diagnostic): Use diagnostic_location function.
11174 (verbatim): Do not set text.locus.
11175 * diagnostic.h (struct diagnostic_info): Remove location field.
11176 (struct diagnostic_context): Make caret_chars an array of two.
11177 (diagnostic_location): New inline.
11178 (diagnostic_expand_location): Handle two locations.
11179 (diagnostic_same_line): New inline.
11180 (diagnostic_print_caret_line): Declare.
11181 (CARET_LINE_MARGIN): New constant.
11182 * pretty-print.c (pp_printf): Do not set text.locus.
11183 (pp_verbatim): Do not set text.locus.
11184 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
11185 (struct text_info): Replace locus pointer with locations
11186 array. Add accessor functions.
11187
11188 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
11189 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11190
11191 PR target/65768
11192 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
11193 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
11194 large constants in register instead of splitting them.
11195
11196 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
11197
11198 PR target/66140
11199 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
11200 replacements in memory addresses.
11201 (get_unaligned_address): Ditto.
11202
11203 2015-05-16 James Bowman <james.bowman@ftdichip.com>
11204
11205 * config/ft32/*: New files for FT32 port.
11206 * doc/install.texi: Add FT32 information.
11207 * doc/invoke.texi: Add FT32 information.
11208 * doc/md.texi: Add FT32 information.
11209 * doc/contrib.texi: Self added.
11210
11211 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
11212
11213 PR tree-optimization/64454
11214 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
11215 (-1 - A -> ~A): Remove unnecessary condition.
11216
11217 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11218
11219 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
11220 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
11221 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
11222
11223 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
11224
11225 * ipa-chkp.h (chkp_wrap_function): New.
11226 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
11227 (chkp_wrap_function_name): New.
11228 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
11229 to get wrapper name.
11230 * lto-cgraph.c: Include ipa-chkp.h.
11231 (input_cgraph_1): Avoid alias chain for wrappers.
11232
11233 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
11234
11235 PR middle-end/66134
11236 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
11237 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
11238
11239 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11240
11241 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
11242 (AARCH64_FL_SLOWMUL): Delete.
11243 (AARCH64_FL_CRC): Redefine to 1<<3.
11244 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
11245
11246 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11247
11248 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
11249 casting.
11250
11251 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11252
11253 * config/alpha/alpha.md (extendqidi2): Use general_operand
11254 instead of some_operand for operand[1] predicate.
11255 (extendhidi2): Ditto.
11256 (cbranchdi4): Use general_operand instead of some_operand
11257 for operand[1] and operands[2] predicates.
11258 (cstoredi4): Ditto.
11259 * config/alpha/predicates.md (some_operand): Remove unused predicate.
11260 (some_ni_operand): Ditto.
11261
11262 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11263
11264 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
11265 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
11266 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
11267 low part of the constant using alpha_emit_set_const_1.
11268 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
11269
11270 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
11271
11272 * varasm.c (output_constant_pool_1): Pass down alignment from
11273 constant pool entry's descriptor to output_constant_pool_2.
11274 (output_object_block): Add comment prior to call to
11275 output_constant_pool_1.
11276
11277 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
11278
11279 PR rtl-optimization/65862
11280 * target.def (ira_change_pseudo_allocno_class): New hook.
11281 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11282 value of the hook.
11283 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11284 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11285 hook.
11286 * ira-costs.c (find_costs_and_classes): Call the hook and change
11287 classes when it is necessary.
11288 * doc/tm.texi: Update.
11289
11290 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
11291
11292 * config/i386/i386.md (sibcall_memory): Check that register with
11293 callee address is not also used as one of the arguments, instead
11294 of checking that it is not live after the sibcall.
11295 (sibcall_pop_memory): Ditto.
11296 (sibcall_value_memory): Ditto.
11297 (sibcall_value_pop_memory): Ditto.
11298
11299 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
11300
11301 * generic-match-head.c (types_match): Handle non-types.
11302 * gimple-match-head.c (types_match): Likewise.
11303 * match.pd: Remove unnecessary TREE_TYPE for types_match.
11304
11305 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
11306
11307 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11308 (csneg3<mode>_insn): Enable expansion of pattern.
11309
11310 2015-05-14 Nick Clifton <nickc@redhat.com>
11311
11312 * config/rl78/rl78.c (rl78_select_section): Select the correct
11313 default section based upon the category of the decl.
11314
11315 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11316
11317 PR rtl-optimization/30967
11318 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11319 destination mode for the cost of scc patterns.
11320
11321 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11322
11323 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11324 using SWIM248 mode iterator.
11325 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11326 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
11327 for operand[2] constraint.
11328 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11329
11330 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11331
11332 PR middle-end/66133
11333 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11334 make sure it is never noreturn, even when the task body does not
11335 return.
11336 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11337 right before GIMPLE_OMP_RETURN.
11338 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11339 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
11340 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11341
11342 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11343
11344 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11345 * tree-ssa-math-opts.c: Include params.h
11346 (pow_synth_sqrt_info): New struct.
11347 (representable_as_half_series_p): New function.
11348 (get_fn_chain): Likewise.
11349 (print_nested_fn): Likewise.
11350 (dump_fractional_sqrt_sequence): Likewise.
11351 (dump_integer_part): Likewise.
11352 (expand_pow_as_sqrts): Likewise.
11353 (gimple_expand_builtin_pow): Use above to attempt to expand
11354 pow as series of square roots. Removed now unused variables.
11355
11356 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11357
11358 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11359 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11360 Remove *p0 and *p1 arguments. Rewrite function.
11361 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11362 (alpha_split_const_mov): Update calls to alpha_extract_integer and
11363 alpha_emit_set_long_const.
11364 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11365 (alpha_output_mi_thunk_osf): Ditto.
11366 * config/alpha/alpha.md (movti): Do not check operands[1]
11367 for CONST_DOUBLE.
11368
11369 2015-05-13 Richard Biener <rguenther@suse.de>
11370
11371 PR tree-optimization/66129
11372 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11373 commutative.
11374 (vect_schedule_slp_instance): Fix typo.
11375
11376 2015-05-13 David Malcolm <dmalcolm@redhat.com>
11377
11378 * common.opt (fdump-internal-locations): New option.
11379 * input.c: Include diagnostic-core.h.
11380 (get_end_location): New function.
11381 (write_digit): New function.
11382 (write_digit_row): New function.
11383 (dump_location_range): New function.
11384 (dump_labelled_location_range): New function.
11385 (dump_location_info): New function.
11386 * input.h (dump_location_info): New prototype.
11387 * toplev.c (compile_file): Handle flag_dump_locations.
11388
11389 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
11390
11391 * gimple-expr.h (is_gimple_constant): Reorder.
11392 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11393
11394 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11395
11396 * combine.c (simplify_set): When generating a CC set, if the
11397 source already is in the correct mode, do not wrap it in a
11398 compare. Simplify the rest of that code.
11399
11400 2015-05-13 Richard Biener <rguenther@suse.de>
11401
11402 PR tree-optimization/66123
11403 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11404 a taken edge.
11405
11406 2015-05-13 Richard Biener <rguenther@suse.de>
11407
11408 PR middle-end/66110
11409 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11410 specially.
11411 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11412
11413 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11414
11415 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11416 * aclocal.m4: Regenerated with automake-1.11.6.
11417
11418 2015-05-13 Tom de Vries <tom@codesourcery.com>
11419
11420 PR tree-optimization/66010
11421 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11422 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11423 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
11424 and rval based on do_deref.
11425
11426 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11427
11428 PR target/65103
11429 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11430 link time constants into adress expressions and therefore set
11431 their cost to 0.
11432
11433 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11434
11435 PR target/66112
11436 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11437 Use SWI248 iterator instead of SWI.
11438 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
11439 Use eq_attr "alternative" "0" instead of match_test in
11440 length_immediate attribute computation.
11441 (*mulvhi4, *mulvhi4_1): New define_insns.
11442
11443 PR target/66112
11444 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11445 SIGNED to get precision of non-negative value.
11446
11447 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11448
11449 PR target/66048
11450 * function.c (diddle_return_value_1): Process bounds first.
11451 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11452 register.
11453
11454 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11455
11456 PR rtl-optimization/64616
11457 * loop-invariant.c (can_move_invariant_reg): New.
11458 (move_invariant_reg): Call above new function to decide whether
11459 instruction can just be moved, skipping creation of temporary
11460 register.
11461
11462 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11463
11464 PR target/pr66047.c
11465 * i386.c (ix86_function_sseregparm): Only return -1 if local function
11466 with implied regparm is called from -mno-sse function.
11467 (init_cumulative_args): Output error if ix86_function_sseregparm
11468 return -1 and SSE register would be needed.
11469 (function_arg_advance_32): Likewise.
11470 (function_arg_32): Likewise.
11471 * i386.h (ix86_args): Add decl field.
11472
11473 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11474
11475 PR ipa/65873
11476 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11477 inlines across optimization boundary.
11478
11479 2015-05-12 Jason Merrill <jason@redhat.com>
11480
11481 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11482 string literal and macro name.
11483
11484 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
11485
11486 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11487 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11488 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11489
11490 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11491
11492 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11493 (-Wmisleading-indentation): New option.
11494 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11495
11496 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
11497
11498 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11499 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11500 (alpha_extract_integer): Ditto.
11501 (alpha_legitimate_constant_p): Ditto.
11502 (alpha_split_tmode_pair): Ditto.
11503 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11504 (alpha_expand_mov): Ditto.
11505 (print_operand): Remove handling of 'H' modifier.
11506 <case 'm'>: Remove CONST_DOUBLE handling.
11507 (summarize_insn): Handle CONST_WIDE_INT.
11508 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11509 (anddi3): Ditto.
11510 (movti): Handle CONST_WIDE_INT.
11511 * config/alpha/constraints.md ('H'): Remove constraint definition.
11512 ('G'): Do not match MODE_FLOAT class.
11513 * config/alpha/predicates.md (const0_operand): Also match
11514 const_wide_int.
11515 (non_add_const_operand): Ditto.
11516 (non_zero_const_operand): Ditto.
11517 (some_operand): Ditto.
11518 (input_operand): Ditto. Handle CONST_WIDE_INT.
11519 (and_operand): Do not match const_double.
11520 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11521
11522 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
11523
11524 PR target/65697
11525 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11526 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11527 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11528 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11529 is_mm_seq_cst, is_mm_sync): New accessor functions.
11530 * builtins.c (expand_builtin_sync_operation,
11531 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11532 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11533 (get_memmodel, expand_builtin_atomic_compare_exchange,
11534 expand_builtin_atomic_load, expand_builtin_atomic_store,
11535 expand_builtin_atomic_clear): Use new accessor routines.
11536 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11537 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11538 (maybe_emit_sync_lock_test_and_set): Use new accessors and
11539 MEMMODEL_SYNC_ACQUIRE.
11540 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11541 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11542 expand_atomic_store): Use new accessors.
11543 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11544 * tsan.c (instrument_builtin_call): Update check for memory model beyond
11545 final enum to use MEMMODEL_LAST.
11546 * c-family/c-common.c: Use new accessor for memmodel_base.
11547 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11548 accessors.
11549 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11550 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11551 mem_thread_fence, *dmb): Likewise.
11552 * config/alpha/alpha.c (alpha_split_compare_and_swap,
11553 alpha_split_compare_and_swap_12): Likewise.
11554 * config/arm/arm.c (arm_expand_compare_and_swap,
11555 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11556 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11557 atomic_loaddi): Likewise.
11558 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11559 Likewise.
11560 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11561 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11562 use new accessors.
11563 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11564 atomic_store<mode>, atomic_compare_and_swap<mode>,
11565 atomic_exchange<mode>): Use new accessors.
11566 * config/mips/mips.c (mips_process_sync_loop): Likewise.
11567 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11568 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11569 rs6000_post_atomic_barrier): Add new cases.
11570 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11571 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11572 (atomic_load<mode>): Add new cases and use new accessors.
11573 (store_quadpti): Add new cases.
11574 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11575 accessors.
11576 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11577 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11578 model, not 8.
11579
11580 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11581
11582 * ipa-devirt.c (type_with_linkage_p): New function.
11583 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11584 type has linkage.
11585 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11586 (can_be_name_hashed_p): Simplify.
11587 (hash_odr_name): Check that type has linkage before checking if it is
11588 anonymous.
11589 (types_same_for_odr): Likewise.
11590 (odr_name_hasher::equal): Likewise.
11591 (odr_subtypes_equivalent_p): Likewise.
11592 (warn_types_mismatch): Likewise.
11593 (get_odr_type): Likewise.
11594 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11595 * ipa-utils.h (odr_type_p): Move offline.
11596 * tree.c (need_assembler_name_p): Fix handling of types
11597 without linkages.
11598 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11599
11600 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11601
11602 * timevar.c (timevar_enable): Delete in favor of...
11603 (g_timer): New global.
11604 (struct timevar_def): Move to timevar.h inside class timer.
11605 (struct timevar_stack_def): Likewise.
11606 (timevars): Delete global in favor of field "m_timevars" within
11607 class timer in timevar.h
11608 (stack): Likewise, in favor of field "m_stack".
11609 (unused_stack_instances): Likewise, in favor of field
11610 "m_unused_stack_instances".
11611 (start_time): Likewise, in favor of field "m_start_time".
11612 (get_time): Eliminate check for timevar_enable.
11613 (timer::timer): New function, built from part of timevar_init.
11614 (timevar_init): Rewrite idempotency test from using
11615 "timevar_enable" bool to using dynamic allocation of "g_timer".
11616 Move rest of implementation into timer's constructor.
11617 (timevar_push_1): Rename to...
11618 (timer::push): ...this, adding "m_" prefixes to variables that
11619 are now fields of timer.
11620 (timevar_pop_1): Likewise, rename to...
11621 (timer::pop): ...this, and add "m_" prefixes.
11622 (timevar_start): Replace test for "timevar_enable" with one for
11623 "g_timer", and move bulk of implementation to...
11624 (timer::start): ...here, adding "m_" prefixes.
11625 (timevar_stop): Likewise, from here...
11626 (timer::stop): ...to here.
11627 (timevar_cond_start): Likewise, from here...
11628 (timer::cond_start): ...to here.
11629 (timevar_cond_stop): Likewise, from here...
11630 (timer::cond_stop): ...to here.
11631 (validate_phases): Rename to...
11632 (timer::validate_phases): ...this, and add "m_" prefixes. Make
11633 locals "total" and "tv" const.
11634 (timevar_print): Rename to...
11635 (timer::print): ...this, and add "m_" prefixes. Make locals
11636 "total" and "tv" const. Eliminate test for timevar_enable.
11637 * timevar.h (timevar_enable): Eliminate.
11638 (g_timer): New declaration.
11639 (timevar_push_1): Eliminate.
11640 (timevar_pop_1): Eliminate.
11641 (timevar_print): Eliminate.
11642 (class timer): New class.
11643 (timevar_push): Rewrite to use g_timer.
11644 (timevar_pop): Likewise.
11645 * toplev.c (toplev::~toplev): Likewise.
11646
11647 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
11648
11649 * arm-protos.h (arm_sched_autopref): Delete.
11650 (tune_params): Re-organize, use enums for flag values.
11651 (FUSE_OPS): New macro.
11652 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11653 (ARM_PREFETCH_BENEFICIAL): Likewise.
11654 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11655 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11656 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11657 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11658 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11659 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
11660 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11661 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11662 format.
11663 (arm_option_override, thumb2_reorg, arm_print_tune_info)
11664 (aarch_macro_fusion_pair_p): Update uses of current_tune.
11665 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11666
11667 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
11668
11669 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11670 "break".
11671
11672 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
11673 Sandra Loosemore <sandra@codesourcery.com>
11674
11675 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11676 value.
11677 (REG_CLASS_NAMES): Add "IJMP_REGS".
11678 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11679 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11680 use new "c" register constraint.
11681 * config/nios2/constraint.md (c): New register constraint
11682 corresponding to IJMP_REGS.
11683
11684 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11685
11686 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11687 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11688 define_splits): Delete, revamp, transmogrify into ...
11689 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11690 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11691 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11692 New.
11693
11694 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11695
11696 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11697 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11698
11699 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11700
11701 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11702 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11703 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11704 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11705 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11706 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11707 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11708 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11709 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11710 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11711 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11712 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11713 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11714 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11715 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11716 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11717 and 30 corresponding splitters): Delete.
11718
11719 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11720
11721 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11722 zero_extract.
11723
11724 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11725
11726 * combine.c (recog_for_combine_1): New function, factored out
11727 from recog_for_combine.
11728 (change_zero_ext): New function.
11729 (recog_for_combine): If recog fails, try again with the pattern
11730 modified by change_zero_ext; if that still fails, restore the
11731 pattern.
11732
11733 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11734
11735 * combine.c (get_undo_marker): New function.
11736 (undo_to_marker): New function, largely factored out from ...
11737 (undo_all): ... this. Adjust.
11738
11739 2015-05-12 Richard Biener <rguenther@suse.de>
11740
11741 PR tree-optimization/66101
11742 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11743 fixup if we turn a loop exit edge to a fallthru edge.
11744
11745 2015-05-12 Richard Biener <rguenther@suse.de>
11746
11747 PR tree-optimization/37021
11748 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11749 (SLP_TREE_TWO_OPERATORS): New define.
11750 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11751 SLP_TREE_TWO_OPERATORS.
11752 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11753 SLP node.
11754 (vect_build_slp_tree): Adjust.
11755 (vect_analyze_slp_cost_1): Likewise.
11756 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11757 emitting two vector stmts and mixing the results.
11758
11759 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11760
11761 * call.c (print_z_candidates): Remove dead code.
11762
11763 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11764
11765 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11766 and zEC12_simple_fp.
11767 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11768 to 1.
11769
11770 2015-05-12 Tom de Vries <tom@codesourcery.com>
11771
11772 PR tree-optimization/66010
11773 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11774 ifn_va_arg.
11775 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11776 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
11777 va_lists are passed, and remove corresponding handling.
11778 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
11779 do_deref argument to ifn_va_arg.
11780 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11781 ifn_va_arg.
11782
11783 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11784
11785 PR target/65955
11786 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11787 REG before taking its REGNO.
11788
11789 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11790
11791 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11792 rsp->sign_bit_copies and rsp->nonzero_bits into ...
11793 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
11794 present to get more accurate information about the number of sign bit
11795 copies and non zero bits.
11796
11797 2015-05-12 Richard Biener <rguenther@suse.de>
11798
11799 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11800 do not allow unrolling.
11801
11802 2015-05-11 Richard Henderson <rth@redhat.com>
11803
11804 * config/i386/i386-modes.def (CCP): New.
11805 * config/i386/i386.c (put_condition_code): Handle it.
11806 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11807
11808 2015-05-11 Richard Henderson <rth@redhat.com>
11809
11810 * target.def (md_asm_clobbers): Replace with...
11811 (md_asm_adjust): this.
11812 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11813 (TARGET_MD_ASM_ADJUST): New.
11814 * tm.texi: Rebuild.
11815 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11816 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11817 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11818
11819 * cfgexpand.c (check_operand_nalternatives): Accept vector of
11820 constraints instead of lists of outputs and inputs.
11821 (expand_asm_stmt): Save and restore input_location around the
11822 body of the function. Move asm data into vectors instead of
11823 building tree lists. Generate cleanup sequences as needed,
11824 rather than waiting til the end. Use new md_asm_adjust hook.
11825
11826 * config/vxworks.c: Include vec.h before target.h.
11827 * gimple.c: Likewise.
11828 * incpath.c: Likewise.
11829 * mode-switching.c: Likewise.
11830
11831 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11832 (cris_md_asm_adjust): this.
11833 (TARGET_MD_ASM_CLOBBERS): Remove.
11834 (TARGET_MD_ASM_ADJUST): New.
11835 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11836 (ix86_md_asm_adjust): this.
11837 (TARGET_MD_ASM_CLOBBERS): Remove.
11838 (TARGET_MD_ASM_ADJUST): New.
11839 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11840 (mn10300_md_asm_adjust): this.
11841 (TARGET_MD_ASM_CLOBBERS): Remove.
11842 (TARGET_MD_ASM_ADJUST): New.
11843 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11844 (rs6000_md_asm_adjust): this.
11845 (TARGET_MD_ASM_CLOBBERS): Remove.
11846 (TARGET_MD_ASM_ADJUST): New.
11847 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11848 (visium_md_asm_adjust): this.
11849 (TARGET_MD_ASM_CLOBBERS): Remove.
11850 (TARGET_MD_ASM_ADJUST): New.
11851
11852 2015-05-11 Richard Henderson <rth@redhat.com>
11853
11854 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11855 if noutputs is zero.
11856 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11857
11858 * cfgexpand.c (expand_asm_operands): Merge into...
11859 (expand_asm_stmt): ... here.
11860
11861 * cfgexpand.c (expand_asm_operands): Don't call
11862 resolve_asm_operand_names.
11863 * stmt.c (resolve_asm_operand_names): Clarify block comment.
11864
11865 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
11866
11867 * dwarf2out.c (gen_member_die): Sanity check that we access
11868 TYPE_MAIN_VARIANT for TYPE_METHODS.
11869 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11870 checking TYPE_METHODS.
11871 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11872 if non-null.
11873 (build_distinct_type_copy): Clear TYPE_METHODS.
11874 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11875 (verify_type): Allow TYPE_METHODS to be error_mark_node.
11876 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11877
11878 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
11879
11880 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11881 (emit_pattern_before_setloc): Likewise.
11882
11883 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11884
11885 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11886 for define_peephole2s.
11887 (get_peephole2_pattern): New function.
11888 (main): Use it. Call validate_pattern.
11889
11890 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11891
11892 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11893 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11894 (Last callee saved reg is different for AVR_TINY architecture)
11895
11896 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11897
11898 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11899 when looking for memory references.
11900
11901 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11902
11903 PR target/65753
11904 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11905 via function pointers.
11906
11907 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11908
11909 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11910 indirect call by forcing address into a pseudo with -fno-plt.
11911 * common.opt (flag_plt): New option.
11912 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11913 ([-fno-plt]): Document.
11914
11915 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
11916
11917 PR bootstrap/66105
11918 * config/rs6000/option-defaults.h: Add space between string literal
11919 and macro name.
11920
11921 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11922
11923 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11924 accross ARM targets.
11925
11926 2015-05-11 Christian Bruel <christian.bruel@st.com>
11927
11928 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11929 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11930
11931 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11932
11933 PR rtl-optimization/66076
11934 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11935 Don't grow the heap array if it is already big enough from a
11936 previous iteration.
11937
11938 2015-05-11 Christian Bruel <christian.bruel@st.com>
11939
11940 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11941 (is_called_in_ARM_mode): Remove.
11942 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11943 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11944 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11945 arm_declare_function_name.
11946
11947 2015-05-11 Christian Bruel <christian.bruel@st.com>
11948
11949 * config/arm/arm.c (arm_option_override): Reoganized and split into :
11950 (arm_option_params_internal); New function.
11951 (arm_option_check_internal): New function.
11952 (arm_option_override_internal): New function.
11953 (thumb_code, thumb1_code): Remove.
11954 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11955 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11956 (thumb_code, thumb1_code): Remove.
11957 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11958
11959 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11960
11961 * config/alpha/alpha.c (alpha_emit_set_const_1)
11962 (alpha_emit_set_long_const, alpha_extract_integer)
11963 (alpha_legitimate_constant_p, alpha_split_const_mov)
11964 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11965 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11966 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11967 HOST_WIDE_INT_1U.
11968 * config/alpha/predicates.md (mode_mask_operand): Do not match
11969 const_double RTX.
11970 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11971 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11972 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11973 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11974 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11975
11976 2015-05-11 Jakub Jelinek <jakub@redhat.com>
11977
11978 PR target/65780
11979 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11980 default_binds_local_p_2.
11981 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11982 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11983
11984 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11985
11986 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11987
11988 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11989
11990 Patch by Richard Biener
11991 * coverage.c (coverage_obj_init): Delay building of type variant
11992 until the type is finished.
11993
11994 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11995
11996 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11997 mismatch between C and C++ type; compoare correctly ARG_TYPES
11998 for non-prototypes and output correctly parameter index for METHOD_TYPE.
11999 (odr_types_equivalent_p): Fix wording of warning about attributes;
12000 it is OK to match prototype and non-prototype.
12001
12002 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
12003
12004 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
12005 TYPE_ARG_TYPES list.
12006 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
12007 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
12008
12009 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
12010
12011 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
12012 * tree.h (is_lang_specific): Constify.
12013
12014 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
12015
12016 PR tree-optimization/64454
12017 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
12018 Rewrite.
12019
12020 2015-05-08 Jason Merrill <jason@redhat.com>
12021
12022 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
12023 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
12024 config/darwin.h, config/darwin9.h, config/elfos.h,
12025 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
12026 config/microblaze/microblaze.h, config/mips/mips.h,
12027 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
12028 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
12029 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
12030 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
12031 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
12032 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
12033 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
12034 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
12035 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
12036 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
12037 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
12038 between string literal and macro name.
12039
12040 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12041
12042 * jump.c: Change argument types to rtx_insn *.
12043 * rtl.h: Adjust.
12044
12045 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12046
12047 * lra-constraints.c: Change argument type to rtx_insn *.
12048
12049 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12050
12051 * df-problems.c: Change argument type to rtx_insn *.
12052
12053 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12054
12055 * combine.c: Change argument type to rtx_insn *.
12056
12057 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12058
12059 * rtl.h: Adjust.
12060 * rtlanal.c: Change argument type to rtx_insn *.
12061
12062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12063
12064 * sched-deps.c: Change argument types to rtx_insn *.
12065 * sched-int.h: Adjust.
12066
12067 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12068
12069 * dwarf2cfi.c: Change argument type to rtx_insn *.
12070
12071 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12072
12073 * ira.c (decrease_live_ranges_number): Changetype of local
12074 variable to rtx_insn *.
12075 * recog.c: Change argument types to rtx_insn *.
12076 * recog.h: Adjust.
12077
12078 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12079
12080 * reorg.c: Change argument types to rtx_insn *.
12081
12082 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12083
12084 * ira-color.c: Change argument types to rtx_insn *.
12085 * lra-eliminations.c: Likewise.
12086 * ira.h: Adjust.
12087
12088 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12089
12090 * gcse.c: Change argument types to rtx_insn *.
12091
12092 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12093
12094 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
12095
12096 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12097
12098 * emit-rtl.c (emit_debug_insn_before): Change argument type to
12099 rtx_insn *.
12100 * rtl.h: Adjust.
12101
12102 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12103
12104 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
12105 * rtl.h: Adjust.
12106
12107 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12108
12109 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
12110 * rtl.h: Adjust.
12111
12112 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12113
12114 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
12115 * rtl.h: Adjust.
12116
12117 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12118
12119 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
12120 * rtl.h: Adjust.
12121
12122 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12123
12124 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
12125 to rtx_insn *.
12126 * rtl.h: Adjust.
12127
12128 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12129
12130 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
12131 to rtx_insn *.
12132 * rtl.h: Likewise.
12133
12134 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12135
12136 * except.c (can_nonlocal_goto): Change type of argument to
12137 rtx_insn *.
12138 * rtl.h: Adjust.
12139
12140 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12141
12142 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
12143 * rtl.h: Adjust.
12144
12145 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12146
12147 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
12148 * cfgrtl.c (can_delete_label_p): Adjust.
12149 * rtl.h: likewise.
12150
12151 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12152
12153 * reorg.c (stop_search_p): Change argument to rtx_insn *.
12154
12155 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12156
12157 * except.c (make_reg_eh_region_note): Change argument to
12158 rtx_insn *.
12159 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
12160 * except.h: Adjust.
12161
12162 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12163
12164 * mode-switching.c (commit_mode_sets): Change type of local
12165 variable from rtx to rtx_insn *.
12166
12167 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
12168
12169 * doc/install.texi (--enable-languages): Add missing jit and lto info.
12170 Add ^ to grep command.
12171 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
12172 arg to last gimple_simplify declaration. Add missing gimple_build
12173 declaration for built-in function case with four tree args.
12174
12175 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
12176 Szabolcs Nagy <szabolcs.nagy@arm.com>
12177
12178 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
12179 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
12180 (GNU_USER_DYNAMIC_LINKERN32): Update.
12181
12182 2015-05-08 Richard Biener <rguenther@suse.de>
12183
12184 PR tree-optimization/66036
12185 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12186 Handle strided group loads.
12187 (vect_verify_datarefs_alignment): Likewise.
12188 (vect_enhance_data_refs_alignment): Likewise.
12189 (vect_analyze_group_access): Likewise.
12190 (vect_analyze_data_ref_access): Likewise.
12191 (vect_analyze_data_ref_accesses): Likewise.
12192 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
12193 (vectorizable_load): Likewise.
12194
12195 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
12196
12197 * config/rs6000/rs6000.md: Require operand inequality in one
12198 of the peepholes.
12199
12200 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
12201 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12202
12203 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
12204 from (set ...).
12205 * config/rx/rx.md (movdi, movdf): Likewise.
12206 Likewise for define_peephole2s.
12207
12208 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12209
12210 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
12211 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
12212 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
12213 vtst_u64): Rewrite using gcc vector extensions.
12214
12215 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12216
12217 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
12218 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
12219
12220 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12221
12222 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
12223
12224 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
12225
12226 * config/glibc-stdint.h (OPTION_MUSL): Define.
12227 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
12228 Change the definition based on OPTION_MUSL for 64 bit targets.
12229 * config/linux.h (OPTION_MUSL): Redefine.
12230 * config/alpha/linux.h (OPTION_MUSL): Redefine.
12231 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
12232 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
12233
12234 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
12235 Szabolcs Nagy <szabolcs.nagy@arm.com>
12236
12237 * config.gcc (LIBC_MUSL): New tm_defines macro.
12238 * config/linux.h (OPTION_MUSL): Define.
12239 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
12240 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
12241 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12242 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12243 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12244 * config/linux.opt (mmusl): New option.
12245 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
12246 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12247 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12248 * configure: Regenerate.
12249
12250 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
12251 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12252
12253 PR target/48904
12254 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
12255 * config/i386/knetbsd-gnu64.h: New file.
12256
12257 2015-05-08 Marek Polacek <polacek@redhat.com>
12258
12259 PR c/64918
12260 * doc/invoke.texi: Document -Woverride-init-side-effects.
12261
12262 2015-05-07 Marek Polacek <polacek@redhat.com>
12263
12264 PR c/65179
12265 * doc/invoke.texi: Document -Wshift-negative-value.
12266
12267 2015-05-06 Aditya Kumar <hiraditya@msn.com>
12268
12269 * gcov-tool.c (do_merge): Refactore to remove int ret.
12270 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12271 !type == FUNC to type != FUNC.
12272 * reload.h (struct target_reload): Changee to type of
12273 x_spill_indirect_levels from bool to unsigned char.
12274
12275 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
12276
12277 * rtl.h (always_void_p): New function.
12278 * gengenrtl.c (always_void_p): Likewise.
12279 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12280 with code foo are always VOIDmode.
12281 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12282 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12283 compare-elim.c, config/aarch64/aarch64.c,
12284 config/aarch64/aarch64.md, config/alpha/alpha.c,
12285 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12286 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12287 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12288 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12289 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12290 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12291 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12292 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12293 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12294 config/ia64/vect.md, config/iq2000/iq2000.c,
12295 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12296 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12297 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12298 config/mep/mep.c, config/microblaze/microblaze.c,
12299 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12300 config/mn10300/mn10300.c, config/msp430/msp430.c,
12301 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12302 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12303 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12304 config/rs6000/altivec.md, config/rs6000/rs6000.c,
12305 config/rs6000/rs6000.md, config/rs6000/vector.md,
12306 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12307 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12308 config/sh/sh.md, config/sh/sh_treg_combine.cc,
12309 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12310 config/spu/spu.md, config/stormy16/stormy16.c,
12311 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12312 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12313 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12314 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12315 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12316 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12317 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12318 var-tracking.c: Update calls accordingly.
12319
12320 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12321
12322 PR middle-end/192
12323 PR middle-end/54303
12324 * varasm.c (function_mergeable_rodata_prefix): New function.
12325 (mergeable_string_section): Use it.
12326 (mergeable_constant_section): Use it.
12327
12328 2015-05-07 Jeff Law <law@redhat.com>
12329
12330 PR target/39726
12331 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12332 simplifier to narrow arithmetic.
12333 * generic-match-head.c: (types_match, single_use): New functions.
12334 * gimple-match-head.c: (types_match, single_use): New functions.
12335
12336 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12337
12338 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12339 rtx type.
12340
12341 2015-05-07 Richard Biener <rguenther@suse.de>
12342
12343 PR tree-optimization/66002
12344 * passes.def: Schedule another pass_merge_phi after ifcombine, right
12345 before phiopt.
12346
12347 2015-05-07 Marek Polacek <polacek@redhat.com>
12348 Martin Uecker <uecker@eecs.berkeley.edu>
12349
12350 * doc/invoke.texi: Document -fsanitize=bounds-strict.
12351 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12352 into SANITIZE_NONDEFAULT.
12353 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12354
12355 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
12356
12357 PR target/66015
12358 * config/alpha/alpha.c (alpha_override_options_after_change): New.
12359 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12360 (alpha_override_options): Move align_loops, align_jumps and
12361 align_functions handling into alpha_override_options_after_change.
12362
12363 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
12364 Chris Jones <chrisj@nvidia.com>
12365 Joshua Conner <jconner@nvidia.com>
12366
12367 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12368 linking of crtfastmath.o.
12369 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12370
12371 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12372
12373 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12374 (cstore<mode>4_unsigned_imm): New expander.
12375 (cstore<mode>4): Remove empty constraint strings. Use the new
12376 expanders.
12377
12378 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
12379
12380 PR target/64208
12381 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12382 alternatives.
12383
12384 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12385
12386 * config/aarch64/geniterators.sh: Use standard BRE in sed.
12387
12388 2015-05-06 Alan Modra <amodra@gmail.com>
12389
12390 PR target/66033
12391 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12392 (UNSPEC_NOP): Define.
12393 (reload_vsx_from_gpr<mode>): Add missing DONE.
12394 (reload_gpr_from_vsx<mode>): Likewise.
12395 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12396 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12397
12398 2015-05-06 Christian Bruel <christian.bruel@st.com>
12399
12400 PR target/66015
12401 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12402 align_jumps, align_functions into aarch64_override_options_after_change.
12403
12404 2015-05-06 Richard Biener <rguenther@suse.de>
12405
12406 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12407 vect_transform_slp_perm_load to check if we support a permutation
12408 for basic-block vectorization.
12409
12410 2015-05-06 Nick Clifton <nickc@redhat.com>
12411
12412 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12413 used, even if it is not being used as a frame pointer.
12414
12415 2015-05-05 Jason Merrill <jason@redhat.com>
12416
12417 * dwarf2out.c (gen_member_die): Don't emit anything for an
12418 anonymous class constructor.
12419
12420 2015-05-05 David Malcolm <dmalcolm@redhat.com>
12421
12422 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12423 that it reflects the block structure.
12424 (afdo_propagate_edge): Likewise.
12425 (afdo_calculate_branch_prob): Likewise.
12426 (afdo_annotate_cfg): Likewise.
12427 * cfgcleanup.c (equal_different_set_p): Likewise.
12428 (try_crossjump_to_edge): Likewise.
12429 * cgraph.c (cgraph_node::verify_node): Likewise.
12430 * cgraphunit.c (expand_all_functions): Likewise.
12431 * config/i386/i386.c (ix86_expand_copysign): Likewise.
12432 (exact_dependency_1): Likewise.
12433 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12434 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12435 * gensupport.c (process_define_subst): Likewise.
12436 * lto-wrapper.c (merge_and_complain): Likewise.
12437 * tree-if-conv.c (if_convertible_bb_p): Likewise.
12438 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12439 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12440 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12441 * tree-vect-loop.c (vectorizable_reduction): Likewise.
12442 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12443 * tree-vect-stmts.c (vectorizable_shift): Likewise.
12444 * tree-vrp.c (vrp_finalize): Likewise.
12445 * tree.c (variably_modified_type_p): Likewise.
12446
12447 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
12448
12449 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12450 on darwin12 and later.
12451 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12452 file to pass -rdynamic on darwin12 and later.
12453 * config/darwin.opt (rdynamic): Add.
12454
12455 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12456
12457 * doc/extend.texi (C Extensions): Update menu for moved Variable
12458 Attributes and Type Attributes sections.
12459
12460 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12461
12462 PR target/65990
12463 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12464 if rep_8byte stringop strategy was specified for 32-bit target.
12465
12466 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
12467
12468 PR target/65915
12469 * config/i386/i386.md (vector convert to float spltiter): Check for
12470 xmm16+, when splitting scalar float conversion.
12471 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12472
12473 2015-05-05 Nick Clifton <nickc@redhat.com>
12474
12475 * config/msp430/msp430-opts.h (enum msp430_regions): New.
12476 * config/msp430/msp430.c (msp430_override_options): Complain if
12477 -mcode-region or -mdata-region is used on a non MSP430X.
12478 (msp430_section_attr): New function. Checks lower, upper and
12479 either attributes.
12480 (msp430_attribute_table): Add lower, upper and either.
12481 (gen_prefix): New function. Generates a prefix for a section
12482 name.
12483 (msp430_select_section): New function - handles the choice of
12484 section for an object. Takes into account memory region
12485 attributes and options.
12486 (msp430_function_section): Use gen_prefix.
12487 (TARGET_SECTION_TYPE_FLAGS): Define.
12488 (msp430_section_type_flags): New function.
12489 (TARGET_ASM_UNIQUE_SECTION): Define.
12490 (msp430_unique_section): New function.
12491 (msp430_output_aligned_decl_common): New function.
12492 (msp430_do_not_relax_short_jumps): New function.
12493 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12494 Define.
12495 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12496 * config/msp430/msp430-protos.h
12497 (msp430_do_not_relax_short_jumps): New prototype.
12498 (msp430_output_aligned_decl_common): New prototype.
12499 * config/msp430/msp430.md (length): New attribute.
12500 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12501 then use a long code sequence for short jumps.
12502 * config/msp430/msp430.opt (mcode-region): New.
12503 (mdata-region): New.
12504 * doc/invoke.texi: Document new options.
12505 * doc/extend.texi: Document new attributes.
12506
12507 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12508
12509 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12510 (tune_params): Add field branch_costs.
12511 (aarch64_branch_cost): Declare.
12512 * gcc/config/aarch64.c (generic_branch_cost): New.
12513 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12514 (cortexa53_tunings): Likewise.
12515 (cortexa57_tunings): Likewise.
12516 (thunderx_tunings): Likewise.
12517 (xgene1_tunings): Likewise.
12518 (aarch64_branch_cost): Define.
12519 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12520
12521 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12522
12523 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12524 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12525 * config/i386/i386.md: Ditto.
12526 * config/i386/winnt.c: Ditto.
12527
12528 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12529
12530 * doc/extend.texi (__atomic Builtins): Move implementation details
12531 to the end of the description, rewrite opening paragraphs, state
12532 difference with __sync builtins, state C11/C++11 assumptions,
12533 weaken itemized descriptions, add explanation of memory model
12534 behaviour, expand description of compare-exchange, simplify text.
12535
12536 2015-05-05 Renlin Li <renlin.li@arm.com>
12537
12538 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12539
12540 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
12541
12542 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12543 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12544 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12545 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12546 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12547 * configure: Regenerate.
12548 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12549 * doc/install.texi (aarch64*-*-*): Document new
12550 --enable-fix-cortex-a53-843419 option.
12551 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12552 and -mno-fix-cortex-a53-843419 options.
12553
12554 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12555
12556 PR target/65871
12557 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12558
12559 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
12560
12561 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12562 fix overactive TYPE_MIN_VALUE check and add FIXME for type
12563 compatibility problems.
12564
12565 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12566
12567 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12568 constraints.
12569 (cbranchsi4_reg): New.
12570 * config/microblaze/microblaze.c
12571 (microblaze_expand_conditional_branch_reg): New.
12572 * config/microblaze/microblaze-protos.h
12573 (microblaze_expand_conditional_branch_reg): New prototype.
12574
12575 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12576
12577 * config/microblaze/microblaze.md (peephole2): New.
12578
12579 2015-05-04 Jeff Law <law@redhat.com>
12580
12581 Revert:
12582 2015-05-04 Jeff Law <law@redhat.com>
12583
12584 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12585 simplifier to narrow arithmetic.
12586 * generic-match-head.c: (types_match, single_use): New functions.
12587 * gimple-match-head.c: (types_match, single_use): New functions.
12588
12589 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12590
12591 PR target/65987
12592 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12593 (split_branches): Likewise.
12594
12595 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
12596
12597 * common.opt (fdelete-null-pointer-checks): Init to -1.
12598 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12599 override flag_delete_null_pointer_checks default.
12600 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12601 behavior re address zero. Better document target-specific behavior.
12602 (-fisolate-errneous-paths-dereference): Mention relationship to
12603 -fdelete-null-pointer-checks.
12604
12605 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12606
12607 PR tree-optimization/65984
12608 * ubsan.c: Include tree-cfg.h.
12609 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12610 stmt_could_throw_p test, rename can_throw variable to ends_bb.
12611
12612 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12613
12614 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12615 to CONST_DOUBLE_P predicate.
12616 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12617 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12618 allow only operands that satisfy standard_sse_constant_p predicate.
12619 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12620 to CONST_DOUBLE_P predicate.
12621
12622 2015-05-04 Jeff Law <law@redhat.com>
12623
12624 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12625 simplifier to narrow arithmetic.
12626 * generic-match-head.c: (types_match, single_use): New functions.
12627 * gimple-match-head.c: (types_match, single_use): New functions.
12628
12629 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
12630
12631 * config/arm/arm.c: Restore bootstrap.
12632
12633 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12634
12635 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12636 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12637 as CONST_WIDE_INT, not CONST_DOUBLE.
12638 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12639 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12640 (ix86_find_base_term): Do not check for CONST_DOUBLE.
12641 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12642 (ix86_build_signbit_mask): Rewrite using wide ints.
12643 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12644 (ix86_rtx_costs): Handle CONST_WIDE_INT.
12645 (find_constant): Ditto.
12646 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12647 using gen_int_mode.
12648 * config/i386/predicates.md (x86_64_immediate_operand)
12649 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12650 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12651 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12652 (const0_operand): Also match const_wide_int.
12653 (constm1_operand): Ditto.
12654 (const1_operand): Ditto.
12655
12656 2015-05-04 Richard Biener <rguenther@suse.de>
12657
12658 PR tree-optimization/65965
12659 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12660 store groups at gaps.
12661
12662 2015-05-04 Richard Biener <rguenther@suse.de>
12663
12664 PR tree-optimization/65935
12665 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12666 then make sure to apply that swapping to the IL.
12667
12668 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12669
12670 * Makefile.in (PATCHLEVEL_c): New variable.
12671 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12672 expand the same way as if DEVPHASE_c was non-empty.
12673
12674 2015-05-04 Kai Tietz <ktietz@redhat.com>
12675
12676 PR target/65559
12677 * lto-wrapper.c (run_gcc): Open filename
12678 in binary-mode.
12679
12680 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
12681
12682 * doc/extend.texi (Variable Attributes, Type Attributes): Move
12683 sections up in file, to immediately after the Function Attributes
12684 section.
12685
12686 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
12687
12688 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12689
12690 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12691
12692 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12693 (insert_partition_copy_on_edge): Adjust.
12694 (insert_rtx_to_part_on_edge): Likewise.
12695 (insert_part_to_rtx_on_edge): Likewise.
12696
12697 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12698
12699 * function.c (set_return_jump_label): Change type of argument to
12700 rtx_insn *.
12701 * function.h (set_return_jump_label): Adjust.
12702
12703 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12704
12705 * reload.h (struct reg_equivs_t): Change type of init to
12706 rtx_insn *.
12707 * ira.c (fix_reg_equiv_init): Adjust.
12708 * reload1.c (eliminate_regs_1): Likewise.
12709 (init_eliminable_invariants): Likewise.
12710
12711 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12712
12713 * cselib.c (fp_setter_insn): Take a rtx_insn *.
12714 * cselib.h (fp_setter_insn): Adjust.
12715
12716 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12717
12718 * recog.c (struct validate_replace_src_data): Change type of
12719 insn field to rtx_insn *.
12720 (validate_replace_src_group): Change type of argument to rtx_insn *.
12721 * recog.h (validate_replace_src_group): Adjust.
12722
12723 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12724
12725 * haifa-sched.c: Change the type of some variables to rtx_insn *.
12726 * sched-deps.c: Likewise.
12727 * sched-int.h: Likewise.
12728 * sched-rgn.c: Likewise.
12729 * sel-sched.c: Likewise.
12730
12731 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12732
12733 to rtx_insn *.
12734 * config/i386/i386.c: Change the type of some arguments to
12735 rtx_insn *.
12736 * config/arm/arm.c: Likewise.
12737
12738 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12739
12740 * lra-constraints.c: Change type of some arguments to rtx_insn *.
12741
12742 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12743
12744 * regcprop.c (kill_autoinc_value): Change type of argument to
12745 rtx_insn *.
12746
12747 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12748
12749 * genrecog.c (print_subroutine): Adjust.
12750 * recog.c (get_bool_attr_mask_uncached): Likewise.
12751 * recog.h (struct recog_data_d): Change the type of insn to
12752 rtx_insn *.
12753
12754 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12755
12756 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12757
12758 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12759
12760 * df-problems.c (df_set_note): Change type of argument to
12761 rtx_insn *.
12762
12763 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12764
12765 * builtins.c (expand_builtin_trap): Change type of local
12766 variable to rtx_insn *.
12767 (add_sched_insns_for_speculation): Likewise.
12768 (ix86_emit_save_regs): Likewise.
12769 (get_scratch_register_on_entry): Likewise.
12770 (ix86_emit_restore_reg_using_pop): Likewise.
12771 (ix86_emit_leave): Likewise.
12772 (ix86_emit_restore_regs_using_mov): Likewise.
12773 (ix86_expand_epilogue): Likewise.
12774 Likewise.
12775 (rl78_alloc_physical_registers_umul): Likewise.
12776 * cselib.c (discard_useless_locs): Likewise.
12777 (cselib_invalidate_regno): Likewise.
12778 (cselib_invalidate_mem): Likewise.
12779 * function.c (expand_function_start): Likewise.
12780 (emit_use_return_register_into_block): Likewise.
12781 * gcse.c: Likewise.
12782 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12783 * ifcvt.c (noce_get_alt_condition): Likewise.
12784 * loop-doloop.c (doloop_condition_get): Likewise.
12785 * lra-constraints.c (inherit_in_ebb): Likewise.
12786 * modulo-sched.c (sms_schedule_by_order): Likewise.
12787 * recog.c (next_insn_tests_no_inequality): Likewise.
12788 * reorg.c (emit_delay_sequence): Likewise.
12789 (update_reg_dead_notes): Likewise.
12790 (fix_reg_dead_note): Likewise.
12791 (fill_slots_from_thread): Likewise.
12792 (delete_computation): Likewise.
12793
12794 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
12795
12796 * doc/extend.texi (Variable Attributes): Add menu and proper
12797 @nodes to subsections. Move Microsoft Windows attributes to
12798 their own subsection.
12799 (Type Attributes): Reorganize introduction to remove duplicate
12800 list of attributes. Add menu and proper @nodes to subsections.
12801 Alphabetize the main table of common attributes.
12802
12803 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
12804
12805 * match.pd: New simplification patterns.
12806 (x + (x & 1)) -> ((x + 1) & ~1)
12807 (x & ~(x & y)) -> ((x & ~y))
12808 (x | ~(x | y)) -> ((x | ~y))
12809
12810 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12811
12812 * target.def (attribute_table): Mention that struct attribute_spec
12813 is defined in tree-core.h rather than tree.h
12814 * doc/tm.texi: Regenerate.
12815
12816 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
12817
12818 * genrecog.c (test): Rename to rtx_test. Update rest of file
12819 accordingly.
12820
12821 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
12822
12823 PR translation/65959
12824 * params.h (DEFPARAM): Rename msgid to nocmsgid.
12825
12826 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12827
12828 * gcc/config/aarch64/aarch64-protos.h (tune_params):
12829 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12830 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12831 Return value depending on target.
12832 (generic_tunings): Initialize new target settings.
12833 (cortexa53_tunings): Likewise.
12834 (cortexa57_tunings): Likewise.
12835 (thunderx_tunings): Likewise.
12836 (xgene1_tunings): Likewise.
12837
12838 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12839
12840 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12841 Make Cortex-A53 shift costs more accurate.
12842
12843 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12844
12845 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12846 UNSIGNED_FLOAT.
12847
12848 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12849
12850 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12851 Calculate cost of op0 and op1 in PLUS and MINUS cases.
12852
12853 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12854
12855 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12856 Add cost of op0 in the compare-with-fpzero case.
12857
12858 2015-04-30 David Malcolm <dmalcolm@redhat.com>
12859
12860 * builtins.c (fold_builtin_1): Remove spurious second
12861 semicolon.
12862 * cgraph.h (symtab_node::get_availability): Likewise.
12863 * opts.c (common_handle_option): Remove spurious second semicolon.
12864 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12865 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12866
12867 2015-04-30 Caroline Tice <cmtice@google.com>
12868
12869 PR gcov-profile/65929
12870 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12871 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12872 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12873 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12874 * doc/tm.texi: Regenerate.
12875 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
12876 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12877 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
12878 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12879
12880 2015-04-30 Marek Polacek <polacek@redhat.com>
12881
12882 * varasm.c (handle_cache_entry): Fix logic.
12883
12884 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12885
12886 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12887 (*extrsi5_insn_uxtw_alt): Likewise.
12888 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12889 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12890 operations.
12891
12892 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12893
12894 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12895 fabd in ABS case.
12896
12897 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12898
12899 * config/aarch64/aarch64.md
12900 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12901 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12902 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12903 appropriately. Handle alternative EON form.
12904
12905 2015-04-30 Renlin Li <renlin.li@arm.com>
12906
12907 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12908 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12909
12910 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12911
12912 PR ipa/65873
12913 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12914 -fstrict-aliasing boundaries.
12915
12916 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12917
12918 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12919 and [SU]MNEGL patterns.
12920
12921 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12922
12923 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12924 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12925 combined arithmetic-shift ops. Properly handle all shift and extend
12926 operations that can occur in combination with PLUS/MINUS.
12927 Rename maybe_fma to compound_p.
12928 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12929 arithmetic and shift operations.
12930
12931 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12932
12933 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12934 rather than arith_shift cost when costing ADD/MINUS of an
12935 extended value.
12936
12937 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12938
12939 PR lto/65948
12940 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12941 to itself.
12942
12943 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
12944
12945 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12946 are for the same position.
12947
12948 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
12949
12950 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
12951 vectorize_loops.
12952 (vectorize_loops): Use it.
12953
12954 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12955
12956 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12957 for aggregate types.
12958 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12959 type to be non_ODR.
12960 * tree.c (need_assembler_name_p): Compute mangled name for
12961 non-fundamental types and integer types.
12962
12963 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
12964
12965 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12966 manual swaps.
12967 * expr.c (expand_expr_real_2): Likewise.
12968
12969 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12970
12971 * tree.c (build_common_builtin_nodes): Do not build
12972 __builtin_alloca_with_align as equivalent of library alloca.
12973
12974 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12975
12976 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12977 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12978 bugus variants.
12979 * tree.c: Include print-tree.h and ipa-utils.h
12980 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12981 (free_lang_data_in_cgraph): Call verify_type.
12982 (verify_type_variant): New function.
12983 (verify_type): New function.
12984 * tree.h (verify_type): Declare.
12985
12986 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
12987
12988 * config/mips/mips-cpus.def: (mips4): Change default processor
12989 from PROCESSOR_R8000 to PROCESSOR_R10000.
12990
12991 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
12992
12993 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12994 la/jalr instead of jal.
12995
12996 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
12997
12998 PR target/65871
12999 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
13000 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
13001 (setcc+movzbl peephole2): Check also clobbered reg.
13002 (setcc+andl peephole2): Ditto.
13003
13004 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
13005
13006 PR libgomp/65099
13007 * config/nvptx/mkoffload.c (target_ilp32): New variable.
13008 (main): Set it depending on "-foffload-abi=[...]".
13009 (compile_native, main): Use it to pass "-m32" or "-m64" to the
13010 compiler.
13011
13012 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
13013
13014 PR target/65770
13015 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
13016 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
13017 Flip lane index back at assembly time for bigendian.
13018
13019 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
13020
13021 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
13022 * gimplify.c (gimplify_omp_workshare): Use it.
13023
13024 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
13025
13026 * Makefile.in (build/genrecog.o): Depend on inchash.h.
13027 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
13028 build/inchash.o
13029 * genrecog.c: Rewrite most of the code except for the third page.
13030
13031 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
13032
13033 * inchash.h, inchash.c: Include bconfig.h for build objects.
13034 * Makefile.in (build/inchash.o): New rule.
13035
13036 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
13037
13038 PR target/65924
13039 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
13040 number in type attribute expression.
13041
13042 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
13043
13044 * loop-iv.c (canon_condition): Generalize to all types of integer
13045 constant.
13046
13047 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
13048
13049 * gimple-walk.c: Prune duplicate or unneeded includes.
13050 (walk_gimple_asm): Only call parse_input_constraint or
13051 parse_output_constraint if their findings are used.
13052 Honour parse_input_constraint and parse_output_constraint
13053 result.
13054
13055 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
13056
13057 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
13058
13059 2015-04-29 Tom de Vries <tom@codesourcery.com>
13060
13061 PR tree-optimization/65893
13062 * passes.def (pass_all_optimizations): Move pass_stdarg to after
13063 pass_dce.
13064
13065 2015-04-29 Richard Biener <rguenther@suse.de>
13066
13067 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13068 compute GROUP_SIZE for basic-block SLP.
13069 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
13070 take into account gaps.
13071 (vect_get_mask_element): Properly reject references to previous
13072 vectors.
13073 (vect_transform_slp_perm_load): Likewise.
13074
13075 2015-04-29 Christian Bruel <christian.bruel@st.com>
13076
13077 PR target/64835
13078 * config/i386/i386.c (ix86_default_align): New function.
13079 (ix86_override_options_after_change): Call ix86_default_align.
13080 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
13081 (ix86_override_options_after_change): New function.
13082
13083 2015-04-28 Jeff Law <law@redhat.com>
13084
13085 * tree-ssa-dom.c (record_equality); Fix comment typos.
13086
13087 2015-04-28 Tom de Vries <tom@codesourcery.com>
13088
13089 PR tree-optimization/65887
13090 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
13091
13092 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
13093
13094 * doc/extend.texi (Declaring Attributes of Functions): Split into
13095 subsections by target. Alphabetize the table of common attributes.
13096 Rewrite some of the introductory text to reflect the new structure.
13097 Update some cross-references to point to the new subsections.
13098 (Attribute Syntax): Put paragraph about "__" naming here. Remove
13099 duplicate copies in the discussion of function, label, and type
13100 attributes.
13101
13102 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
13103
13104 PR bootstrap/65910
13105 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
13106
13107 2015-04-28 Jason Merrill <jason@redhat.com>
13108
13109 PR c++/65734
13110 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
13111 (finalize_type_size): Respect TYPE_USER_ALIGN.
13112 (layout_type) [ARRAY_TYPE]: Likewise.
13113
13114 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
13115
13116 * config/arm/arm.md (*arm_movt): Fix type attribute.
13117 (*cmpsi_shiftsi): Likewise.
13118 (*cmpsi_shiftsi_swp): Likewise.
13119 (*movsicc_insn): Likewise.
13120 (*cond_move): Likewise.
13121 (*if_plus_move): Likewise.
13122 (*if_move_plus): Likewise.
13123 (*if_arith_move): Likewise.
13124 (*if_move_arith): Likewise.
13125 (*if_shift_move): Likewise.
13126 (*if_move_shift): Likewise.
13127 (*arm_movtas_ze): Likewise.
13128 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
13129 redundancy and type attribute.
13130 (*thumb2_movsi_insn): Fix type attribute.
13131 (*thumb2_addsi_short): Likewise.
13132 (thumb2_addsi3_compare0): Likewise.
13133 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
13134 attributes accordingly.
13135
13136 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
13137
13138 PR other/65911
13139 * function.c (pad_to_arg_alignment): Add parentheses.
13140
13141 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
13142
13143 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
13144 libgcc/config/frv/elf-lib.h.
13145
13146 2015-04-28 Tom de Vries <tom@codesourcery.com>
13147
13148 * tree-call-cdce.c: Fix example in header comment.
13149
13150 2015-04-28 Richard Biener <rguenther@suse.de>
13151
13152 PR tree-optimization/62283
13153 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
13154 fails fatally and we are vectorizing a basic-block simply
13155 cause the child to be constructed piecewise.
13156 (vect_analyze_slp_cost_1): Adjust.
13157 (vect_detect_hybrid_slp_stmts): Likewise.
13158 (vect_bb_slp_scalar_cost): Likewise.
13159 (vect_get_constant_vectors): For piecewise constructed
13160 constants place them after the last def.
13161 (vect_get_slp_defs): Adjust.
13162 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
13163 externals for basic-block vectorization.
13164
13165 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
13166
13167 PR target/63503
13168 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
13169 aarch64-*-*.
13170 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
13171 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
13172 (AARCH64_TUNE_FMA_STEERING): Likewise.
13173 * config/aarch64/aarch64-cores.def: Set
13174 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
13175 FMUL/FMADD instructions.
13176 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
13177 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
13178 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
13179 * config/aarch64/cortex-a57-fma-steering.h: New file.
13180 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13181
13182 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
13183
13184 * gensupport.c (std_preds): Add missing codes to address_operand entry.
13185
13186 2015-04-28 Richard Biener <rguenther@suse.de>
13187
13188 PR tree-optimization/65851
13189 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
13190 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
13191 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
13192 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
13193 (ccp_visit_phi_node): Adjust.
13194 (evaluate_stmt): For simplifications to SSA names return its
13195 lattice value if that isn't VARYING. Return immediately when
13196 simplified to a constant.
13197 (visit_assignment): Adjust.
13198 (ccp_visit_stmt): Likewise.
13199
13200 2015-04-28 Tom de Vries <tom@codesourcery.com>
13201
13202 PR tree-optimization/65818
13203 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
13204 evaluated.
13205
13206 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13207
13208 * calls.c (save_fixed_argument_area): Don't check
13209 ARGS_GROW_DOWNWARD with the preprocessor.
13210 (restore_fixed_argument_area): Likewise.
13211 (mem_overlaps_already_clobbered_arg_p): Likewise.
13212 (check_sibcall_argument_overlap): Likewise.
13213 (expand_call): Likewise.
13214 (emit_library_call_value_1): Likewise.
13215 (store_one_arg): Likewise.
13216 * function.c (assign_parms): Likewise.
13217 (locate_and_pad_parm): Likewise.
13218 (pad_to_arg_alignment): Likewise.
13219 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13220
13221 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13222
13223 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
13224 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
13225 * calls.c (save_fixed_argument_area): Don't chekc if
13226 ARGS_GROW_DOWNWARD is defined.
13227 (restore_fixed_argument_area): Likewise.
13228 (mem_overlaps_already_clobbered_arg_p): Likewise.
13229 (check_sibcall_argument_overlap): Likewise.
13230 (expand_call): Likewise.
13231 (emit_library_call_value_1): Likewise.
13232 (store_one_arg): Likewise.
13233 * function.c (assign_parms): Likewise.
13234 (locate_and_pad_parm): Likewise.
13235 (pad_to_arg_alignment): Likewise.
13236 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13237
13238 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13239
13240 * defaults.h (gen_epilogue): New function.
13241 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
13242 defined.
13243 * cfgrtl.c (cfg_layout_finalize): Likewise.
13244 * df-scan.c: Likewise.
13245 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13246 (reposition_prologue_and_epilogue_notes): Likewise.
13247 * reorg.c (find_end_label): Likewise.
13248 * toplev.c: Likewise.
13249
13250 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13251
13252 * bb-reorder.c (HAVE_return): Don't check if its undefined.
13253 * defaults.h (gen_simple_return): New function.
13254 (gen_simple_return): Likewise.
13255 (HAVE_return): Add default definition to false.
13256 (HAVE_simple_return): Likewise.
13257 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
13258 HAVE_return and HAVE_simple_return are defined.
13259 * function.c (gen_return_pattern): Likewise.
13260 (convert_jumps_to_returns): Likewise.
13261 (thread_prologue_and_epilogue_insns): Likewise.
13262 * reorg.c (find_end_label): Likewise.
13263 (dbr_schedule): Likewise.
13264 * shrink-wrap.c: Likewise.
13265 * shrink-wrap.h: Likewise.
13266
13267 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13268
13269 * defaults.h (EPILOGUE_USES): Add default definition of false.
13270 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13271 * resource.c (init_resource_info): Likewise.
13272
13273 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13274
13275 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13276 to false.
13277 * dwarf2out.c (field_byte_offset): REmove check if
13278 PCC_BITFIELD_TYPE_MATTERS is defined.
13279 * stor-layout.c (layout_decl): Likewise.
13280 (update_alignment_for_field): Likewise.
13281 (place_field): Likewise.
13282
13283 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13284
13285 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13286 true.
13287 * regrename.c (check_new_reg_p): Remove check if
13288 HARD_REGNO_RENAME_OK is defined.
13289 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13290
13291 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13292
13293 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13294 * cse.c (fold_rtx): Likewise.
13295 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13296 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13297 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13298 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13299 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13300 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13301 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13302 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13303 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13304 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13305 * Likewise.
13306 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13307 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13308 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13309 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13310 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13311 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13312 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13313 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13314 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13315 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13316 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13317 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13318 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13319 * doc/tm.texi: Regenerate.
13320 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13321 either true or false.
13322
13323 2015-04-27 Jeff Law <law@redhat.com>
13324
13325 PR tree-optimization/65217
13326 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13327 of them has a single use, make sure it is the LHS of the implied
13328 copy.
13329
13330 2015-04-28 Alan Modra <amodra@gmail.com>
13331
13332 PR target/65810
13333 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13334 (offsettable_ok_by_alignment): Use minimum of decl and toc
13335 pointer alignment. Replace dead code with assertion.
13336 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
13337 case if size exceeds toc pointer alignment.
13338 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13339 (rs6000_emit_move): Likewise.
13340 * configure.ac: Add linker toc pointer alignment check.
13341 * configure: Regenerate.
13342 * config.in: Regenerate.
13343
13344 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
13345
13346 * config.gcc: Add h8300-*-linux.
13347 * config/h8300/linux.h: New.
13348 * config/h8300/t-linux: New.
13349 * config/h8300/h8300.c (h8300_option_override): Normal mode
13350 is not supported for h8300-*-linux.
13351 (h8300_file_start): Target priority change.
13352 (get_shift_alg): Likewise.
13353 (h8300_shift_need_scratch_p): Likewise.
13354 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13355 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13356
13357 2015-04-27 Caroline Tice <cmtice@google.com>
13358
13359 * final.c (final_scan_insn): Output cold_function_name as function
13360 type.
13361 * varasm.c (cold_function_name): Make global.
13362 (assemble_start_function): Re-set cold_function_name.
13363 (assemble_end_function): Output cold partition size.
13364 * varasm.h (cold_function_name): Declare global.
13365
13366 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
13367
13368 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13369 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13370 constraint.
13371 (*movxi_internal_avx512f): Ditto.
13372 (define_split): Check for xmm16+, when splitting scalar float_extend.
13373 (*extendsfdf2_mixed): Use "v" constraint.
13374 (define_split): Check for xmm16+, when splitting scalar float_truncate.
13375 (*truncdfsf_fast_sse): Use "v" constraint.
13376 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13377 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13378 (define_peephole2): Check for xmm16+, when converting scalar
13379 float_truncate.
13380 (define_peephole2): Check for xmm16+, when converting scalar
13381 float_extend.
13382 (*fop_<mode>_comm_mixed): Use "v" constraint.
13383 (*fop_<mode>_comm_sse): Ditto.
13384 (*fop_<mode>_1_mixed): Ditto.
13385 (*sqrt<mode>2_sse): Ditto.
13386 (*ieee_s<ieee_maxmin><mode>3): Ditto.
13387
13388 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13389
13390 * combine.c (simplify_if_then_else): Use std::swap instead
13391 of manually swapping.
13392 (known_cond): Likewise.
13393 (simplify_comparison): Likewise.
13394
13395 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
13396
13397 PR target/64579
13398 * config/rs6000/htm.md: Remove all define_expands.
13399 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13400 UNSPECV_HTM_TABORTWCI): Remove.
13401 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13402 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13403 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13404 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13405 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13406 tabortwci_internal): Remove define_insns.
13407 (tabort<wd>c, tabort<wd>ci): New define_insns.
13408 (tabort): Use gpc_reg_operand.
13409 (tcheck): Remove operand.
13410 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13411 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13412 expected value.
13413 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13414 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
13415 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13416 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13417 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13418 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13419 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13420 (tcheck): Remove builtin argument.
13421 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13422 not TARGET_64BIT.
13423 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
13424 tabortdc and tabortdci builtins when not in 64-bit mode.
13425 Modify code to handle the loss of the HTM define_expands.
13426 Emit code to copy the CR register to TARGET.
13427 (htm_init_builtins): Modify code to handle the loss of the HTM
13428 define_expands.
13429 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13430 (RS6000_BTC_64BIT): Likewise.
13431 (RS6000_BTC_CR): New macro.
13432 * doc/extend.texi: Update documentation for htm builtins.
13433
13434 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13435
13436 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13437 of manually swapping.
13438 (simplify_associative_operation): Likewise.
13439 (simplify_binary_operation): Likewise.
13440 (simplify_plus_minus): Likewise.
13441 (simplify_relational_operation): Likewise.
13442 (simplify_ternary_operation): Likewise.
13443
13444 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13445
13446 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13447 (xs_hi_nonmemory_operand): Remove error.
13448 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13449 general_operand rather than xs_hi_general_operand.
13450
13451 2015-04-27 Richard Biener <rguenther@suse.de>
13452
13453 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13454 (record_equivalences_from_stmt): Valueize rhs.
13455 (record_equality): Canonicalize x and y order via
13456 tree_swap_operands_p. Do not swap operands for same loop depth.
13457
13458 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
13459
13460 PR target/65296
13461 PR target/65895
13462 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13463 Add hint how to use own spec file.
13464
13465 2015-04-27 Jakub Jelinek <jakub@redhat.com>
13466
13467 PR tree-optimization/65875
13468 * tree-vrp.c (update_value_range): If in is_new case setting
13469 old_vr to VR_VARYING, also set new_vr to it. Remove
13470 old_vr->type == VR_VARYING test.
13471 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13472 SSA_PROP_INTERESTING if update_value_range returned true,
13473 but new range is VR_VARYING.
13474
13475 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13476
13477 * combine.c (sign_extend_short_imm): New.
13478 (set_nonzero_bits_and_sign_copies): Use above new function for sign
13479 extension of src short immediate.
13480 (reg_nonzero_bits_for_combine): Likewise for tem.
13481
13482 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13483
13484 * stor-layout.c (self_referential_component_ref_p): New predicate.
13485 (copy_self_referential_tree_r): Use it.
13486 (self_referential_size): Punt for simple operations directly involving
13487 self-referential component references.
13488 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13489
13490 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13491
13492 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13493
13494 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13495
13496 * vec.h (vec): Make splice arguments const. Update definitions
13497 accordingly.
13498
13499 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
13500
13501 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13502 alternatives.
13503
13504 2015-04-26 Tom de Vries <tom@codesourcery.com>
13505
13506 PR tree-optimization/65826
13507 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13508
13509 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
13510
13511 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13512 (*madd3<mode>): Ditto.
13513 (*msub4<mode>): Ditto.
13514 (*msub3<mode>): Ditto.
13515 (*nmadd4<mode>): Ditto.
13516 (*nmadd3<mode>): Ditto.
13517 (*nmadd4<mode>_fastmath): Ditto.
13518 (*nmadd3<mode>_fastmath): Ditto.
13519 (*nmsub4<mode>): Ditto.
13520 (*nmsub3<mode>): Ditto.
13521 (*nmsub4<mode>_fastmath): Ditto.
13522 (*nmsub3<mode>_fastmath): Ditto.
13523
13524 2015-04-24 Jason Merrill <jason@redhat.com>
13525
13526 PR c++/50800
13527 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13528 down when building TYPE_CANONICAL.
13529 (build_pointer_type_for_mode): Likewise.
13530
13531 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
13532
13533 * genrecog.c (validate_pattern): Check matching constraint refers
13534 to a lower numbered operand.
13535
13536 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13537
13538 PR target/65849
13539 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13540 save to independent variables use the Save attribute. This will
13541 allow these options to be modified with the #pragma/attribute
13542 target support.
13543 (-mallow-movmisalign): Likewise.
13544 (-mallow-df-permute): Likewise.
13545 (-msched-groups): Likewise.
13546 (-malways-hint): Likewise.
13547 (-malign-branch-targets): Likewise.
13548 (-mvectorize-builtins): Likewise.
13549 (-msave-toc-indirect): Likewise.
13550
13551 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13552 can be set via the #pragma/attribute target support.
13553 (rs6000_opt_vars): Likewise.
13554 (rs6000_inner_target_options): If VSX was set, also set
13555 -mno-avoid-indexed-addresses.
13556
13557 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13558
13559 * config/arm/iterators.md (shiftable_ops): Rename to...
13560 (SHIFTABLE_OPS): ... This. Update use in comments.
13561 (ior_xor): Rename to...
13562 (IOR_XOR): ... This.
13563 (vqh_ops): Rename to...
13564 (VQH_OPS): ... This.
13565 (vqhs_ops): Rename to...
13566 (VQHS_OPS): ... This.
13567 (rshifts): Rename to...
13568 (RSHIFTS): ... This.
13569 (returns): Rename to...
13570 (RETURNS): ... This.
13571 * config/arm/arm.md: Update uses of the above.
13572 * config/arm/neon.md: Likewise.
13573
13574 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13575
13576 * config.host (case ${host}): Add aarch64*-*-linux case.
13577 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13578 fields to all the cores.
13579 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13580 Add MCPU_MTUNE_NATIVE_SPECS.
13581 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13582 field to all extensions.
13583 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13584 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13585 Adjust definition of AARCH64_OPT_EXTENSION.
13586 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13587 (MCPU_MTUNE_NATIVE_SPECS): Define.
13588 * config/aarch64/driver-aarch64.c: New file.
13589 * config/aarch64/x-arch64: New file.
13590 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13591 -mtune and -march.
13592
13593 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13594 Wei Mi <wmi@google.com>
13595
13596 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13597 * config/i386/i386.c (extract_base_offset_in_addr): New function.
13598 (ix86_operands_ok_for_move_multiple): Ditto.
13599 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13600 (movlpd/movhpd to movupd peephole2): Ditto.
13601
13602 2015-04-24 Marek Polacek <polacek@redhat.com>
13603
13604 PR c/61534
13605 * input.h (from_macro_expansion_at): Define.
13606
13607 PR c/63357
13608 * doc/invoke.texi: Update description of -Wlogical-op.
13609
13610 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13611
13612 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13613 ternary operator in fprintf and harmonize spacing.
13614
13615 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13616
13617 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13618 Mark operand1 commutative.
13619
13620 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13621
13622 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13623 input operands in memory.
13624 (*vec_concatv2si_sse4_1): Ditto.
13625 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13626 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13627 register_operand.
13628 (vec_extract_hi_v32hi): Ditto.
13629 (vec_extract_hi_v64hi): Ditto.
13630 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13631
13632 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13633 Steven Bosscher <steven@gcc.gnu.org>
13634
13635 PR rtl-optimization/34503
13636 * cprop.c (cprop_reg_p): New.
13637 (hash_scan_set): Use above function to check if register can be
13638 propagated.
13639 (find_avail_set): Return up to two sets, one whose source is a
13640 register and one whose source is a constant. Sets are returned in an
13641 array passed as parameter rather than as a return value.
13642 (cprop_insn): Use a do while loop rather than a goto. Try each of the
13643 sets returned by find_avail_set, starting with the one whose source is
13644 a constant. Use cprop_reg_p to check if register can be propagated.
13645 (do_local_cprop): Use cprop_reg_p to check if register can be
13646 propagated.
13647 (implicit_set_cond_p): Likewise.
13648
13649 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13650
13651 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13652 (sem_function::equals): IGNORED_NODES parameter is now unused;
13653 update call of equals_private.
13654 (sem_function::equals_private): Do not call equals_wpa; skip
13655 gimple body matching if there is no body.
13656 (sem_function::init): Add logic to hash tthunk info.
13657 (sem_function::parse): Also parse thunks.
13658 * ipa-icf.h (equals_private): Update declaration.
13659
13660 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13661
13662 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13663 asterisk from name so this can be generated directly.
13664 (*altivec_stvx_<mode>_internal): Likewise.
13665 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13666 that this is never called during or after reload/lra.
13667 (rs6000_frame_related): Remove split_reg
13668 argument and logic that references it.
13669 (emit_frame_save): Remove last parameter from call to
13670 rs6000_frame_related.
13671 (rs6000_emit_prologue): Remove last parameter from eight calls to
13672 rs6000_frame_related. Force generation of stvx instruction for
13673 Altivec register saves. Remove split_reg handling, which is no
13674 longer needed.
13675 (rs6000_emit_epilogue): Force generation of lvx instruction for
13676 Altivec register restores.
13677
13678 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13679
13680 * config/rs6000/rs6000.opt (mcrypto): Change option description to
13681 match category changes in ISA 2.07B.
13682
13683 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13684
13685 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13686 iterators.
13687 (cmp_op, cmp_type): New code attributes.
13688 (NEON_VCMP, NEON_VACMP): New int iterators.
13689 (cmp_op_unsp): New int attribute.
13690 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13691 (neon_vceq<mode>): Delete.
13692 (neon_vc<cmp_op><mode>_insn): New pattern.
13693 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13694 (neon_vcgeu<mode>): Delete.
13695 (neon_vcle<mode>): Likewise.
13696 (neon_vclt<mode>: Likewise.
13697 (neon_vcage<mode>): Likewise.
13698 (neon_vcagt<mode>): Likewise.
13699 (neon_vca<cmp_op><mode>): New define_expand.
13700 (neon_vca<cmp_op><mode>_insn): New pattern.
13701 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13702
13703 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13704
13705 * tree.h (attribute_value_equal): Declare.
13706 * tree.c (attribute_value_equal): Export.
13707
13708 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13709
13710 * ipa-icf.c (sem_item::compare_attributes): New function.
13711 (sem_item::compare_referenced_symbol_properties): Compare variable
13712 attributes.
13713 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13714 (sem_function::param_used_p): New function.
13715 (sem_function::equals_wpa): Fix attribute comparsion; match
13716 parameter type codes; do not compare paremter flags when
13717 they are not used; compare edge flags; compare indirect calls.
13718 (sem_item::update_hash_by_addr_refs): Hash reference type.
13719 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13720 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13721 reference use type.
13722 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13723 * ipa-icf.h (compare_attributes, param_used_p): Declare.
13724
13725 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13726
13727 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13728 cleanup.
13729 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13730 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13731 (sem_item::compare_referenced_symbol_properties): New.
13732 (sem_item::hash_referenced_symbol_properties): New.
13733 (sem_item::compare_cgraph_references): Rename to ...
13734 (sem_item::compare_symbol_references): ... this one; use
13735 compare_referenced_symbol_properties.
13736 (sem_function::equals_wpa): Do not compare
13737 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13738 DECL_IS_OPERATOR_NEW; compare pointer sizes.
13739 (sem_item::update_hash_by_addr_refs): Call
13740 hash_referenced_symbol_properties.
13741 (sem_item::update_hash_by_local_refs): Cleanup.
13742 (sem_function::merge): Do not mix up symbol properties.
13743 (sem_variable::equals_wpa): Use compare_symbol_references.
13744 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13745 (sem_item::hash_referenced_symbol_properties): New.
13746 (sem_item::compare_symbol_references): New.
13747 (sem_item::compare_cgraph_references): Remove.
13748
13749 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
13750
13751 PR target/26702
13752 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13753 Emit size of local.
13754
13755 2015-04-23 Nick Clifton <nickc@redhat.com>
13756
13757 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13758 ATTRIBUTE_UNUSED to x parameter.
13759 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13760
13761 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13762
13763 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13764 TARGET_CRYPTO to TARGET_P8_VECTOR>
13765 (crypto_vpermxor_<mode>): Likewise.
13766 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13767 (BU_CRYPTO_3A): Likewise.
13768 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13769 (BU_CRYPTO_OVERLOAD_3A): New #define.
13770 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13771 (VPMSUMH): Likewise.
13772 (VPMSUMW): Likewise.
13773 (VPMSUMD): Likewise.
13774 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13775 (VPERMXOR_V4SI): Likewise.
13776 (VPERMXOR_V8HI): Likewise.
13777 (VPERMXOR_V16QI): Likewise.
13778 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13779 BU_CRYPTO_OVERLOAD_2A.
13780 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13781 BU_CRYPTO_OVERLOAD_3A.
13782 * config/rs6000/rs6000.opt (mcrypto): Change description of
13783 option.
13784
13785 2015-04-23 Richard Biener <rguenther@suse.de>
13786
13787 * passes.def: Remove copy propagation passes run directly after CCP.
13788 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13789 SSA names.
13790 (ccp_visit_phi_node): Rework to handle first executable edge
13791 specially.
13792
13793 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
13794
13795 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13796 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13797 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13798 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13799 (thumb_legimitimize_reload_address): Remove.
13800 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13801 Remove.
13802 (thumb_legimitimize_reload_address): Remove.
13803
13804 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13805
13806 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13807
13808 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13809
13810 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13811 MAX_LDM_STM_OPS.
13812 (store_multiple): Likewise.
13813
13814 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13815
13816 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13817 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13818 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13819 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13820 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13821 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13822 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13823 Specify issue_rate value.
13824 (arm_issue_rate): Look up issue rate from tuning structs. Remove
13825 large switch statement.
13826 (arm_marvell_pj4_tune): New struct.
13827 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13828 struct.
13829
13830 2015-04-23 Richard Biener <rguenther@suse.de>
13831
13832 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13833 (vect_find_last_store_in_slp_instance): Rename to ...
13834 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13835 (vect_analyze_slp_cost_1): Use vector_load for constant defs
13836 and vec_construct for external defs when estimating prologue cost.
13837 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13838 Compute costs here only when vectorizing loops.
13839 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13840 have been determined.
13841 (vect_schedule_slp_instance): Simplify vectorized code placement
13842 and prepare for in-BB external defs.
13843 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13844 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13845 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13846 guard.
13847 (vect_model_load_cost): Likewise.
13848 (vectorizable_store): Instead add it here.
13849 (vectorizable_load): Likewise.
13850 (vect_is_simple_use): Dump def type textually.
13851
13852 2015-04-23 Richard Biener <rguenther@suse.de>
13853
13854 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13855 * cfgloop.c (verify_loop_structure): Verify the root loop node.
13856 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13857 instead of get_eh_region_from_lp_number.
13858 * loop-init.c (fix_loop_structure): If we removed a loop, reset
13859 the SCEV cache.
13860
13861 2015-04-23 Anton Blanchard <anton@samba.org>
13862
13863 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13864 need for -mprofile-kernel to save LR to stack.
13865
13866 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13867
13868 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13869 adjustments.
13870 (insn_is_swappable_p): Return 1 for a convert from double to
13871 single precision when all of its uses are splats of BE element
13872 zero.
13873
13874 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13875
13876 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13877
13878 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13879
13880 PR target/65456
13881 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
13882 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13883 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13884 option.
13885 (rs6000_builtin_mask_for_load): Return 0 for targets with
13886 efficient unaligned VSX accesses so that the vectorizer will use
13887 direct unaligned loads.
13888 (rs6000_builtin_support_vector_misalignment): Always return true
13889 for targets with efficient unaligned VSX accesses.
13890 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13891 stores on targets with efficient unaligned VSX accesses is almost
13892 always the same as the cost of an aligned load or store, so model
13893 it that way.
13894 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13895 unaligned vectors if we have efficient unaligned VSX accesses.
13896 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13897 undocumented option.
13898
13899 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13900
13901 Revert:
13902 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13903
13904 * config.gcc (LIBC_MUSL): New tm_defines macro.
13905 * config/linux.h (OPTION_MUSL): Define.
13906 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13907 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13908 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13909
13910 * config/linux.opt (mmusl): New option.
13911 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13912 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13913
13914 * configure: Regenerate.
13915
13916 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13917
13918 * config.gcc (LIBC_MUSL): New tm_defines macro.
13919 * config/linux.h (OPTION_MUSL): Define.
13920 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13921 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13922 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13923
13924 * config/linux.opt (mmusl): New option.
13925 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13926 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13927
13928 * configure: Regenerate.
13929
13930 2015-04-22 Yury Gribov <y.gribov@samsung.com>
13931
13932 * doc/invoke.texi (-fsanitize-sections): Update description.
13933 * asan.c (set_sanitized_sections): Parse incoming arg.
13934 (section_sanitized_p): Support wildcards.
13935
13936 2015-04-22 Tom de Vries <tom@codesourcery.com>
13937
13938 PR tree-optimization/65823
13939 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13940 equality between ap_copy and ap.
13941
13942 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13943
13944 PR target/47098
13945 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13946
13947 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13948
13949 PR target/47122
13950 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13951
13952 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13953
13954 PR target/55144
13955 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13956 remove already contained t-files.
13957
13958 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13959
13960 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13961 Remove unneeded forward declarations.
13962 (suitable_for_tail_call_opt_p): Commentary typo fix.
13963
13964 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13965
13966 * varasm.c (emit_bss): Remove redundant guard.
13967
13968 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13969
13970 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13971
13972 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13973
13974 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13975
13976 2015-04-22 Hale Wang <hale.wang@arm.com>
13977 Terry Guo <terry.guo@arm.com>
13978
13979 PR rtl-optimization/64818
13980 * combine.c (can_combine_p): Don't combine user-specified
13981 register if it is in an asm input.
13982
13983 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
13984
13985 PR ipa/65076
13986 * passes.def (early_optimizations): Add pass_dse.
13987
13988 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13989
13990 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13991 * reorg.c (redundant_insn): Remove ifdef
13992 INSN_REFERENCES_ARE_DELAYED.
13993 * resource.c (mark_referenced_resources): Likewise.
13994
13995 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13996
13997 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13998 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13999 * resource.c (mark_set_resources): Likewise.
14000
14001 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14002
14003 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
14004 * cfgcleanup.c (flow_find_cross_jump): Likewise.
14005 (flow_find_head_matching_sequence): Likewise.
14006 (try_head_merge_bb): Likewise.
14007 * combine.c (can_combine_p): Likewise.
14008 (try_combine): Likewise.
14009 (distribute_notes): Likewise.
14010 * df-problems.c (can_move_insns_across): Likewise.
14011 * final.c (final): Likewise.
14012 * gcse.c (insert_insn_end_basic_block): Likewise.
14013 * ira.c (find_moveable_pseudos): Likewise.
14014 * reorg.c (try_merge_delay_insns): Likewise.
14015 (fill_simple_delay_slots): Likewise.
14016 (fill_slots_from_thread): Likewise.
14017 * sched-deps.c (sched_analyze_2): Likewise.
14018
14019 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14020
14021 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
14022 PIC_OFFSET_TABLE_REGNUM.
14023
14024 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14025
14026 * alias.c (init_alias_target): Remove ifdef
14027 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
14028 * df-scan.c (df_insn_refs_collect): Likewise.
14029 (df_get_regular_block_artificial_uses): Likewise.
14030 (df_get_eh_block_artificial_uses): Likewise.
14031 (df_get_entry_block_def_set): Likewise.
14032 (df_get_exit_block_use_set): Likewise.
14033 * emit-rtl.c (gen_rtx_REG): Likewise.
14034 * ira.c (ira_setup_eliminable_regset): Likewise.
14035 * reginfo.c (init_reg_sets_1): Likewise.
14036 * regrename.c (rename_chains): Likewise.
14037 * reload1.c (reload): Likewise.
14038 (eliminate_regs_in_insn): Likewise.
14039 * resource.c (mark_referenced_resources): Likewise.
14040 (init_resource_info): Likewise.
14041
14042 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14043
14044 * defaults.h (MASK_RETURN_ADDR): New definition.
14045 * except.c (expand_builtin_extract_return_addr): Remove ifdef
14046 MASK_RETURN_ADDR.
14047
14048 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14049
14050 * defaults.h (RETURN_ADDR_OFFSET): New definition.
14051 * except.c (expand_builtin_extract_return_addr): Remove ifdef
14052 RETURN_ADDR_OFFSET.
14053 (expand_builtin_frob_return_addr): Likewise.
14054
14055 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14056
14057 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
14058 (try_redirect_by_replacing_jump): Likewise.
14059 (rtl_tidy_fallthru_edge): Likewise.
14060 * combine.c (insn_a_feeds_b): Likewise.
14061 (find_split_point): Likewise.
14062 (simplify_set): Likewise.
14063 * cprop.c (cprop_jump): Likewise.
14064 * cse.c (cse_extended_basic_block): Likewise.
14065 * df-problems.c (can_move_insns_across): Likewise.
14066 * function.c (emit_use_return_register_into_block): Likewise.
14067 * haifa-sched.c (sched_init): Likewise.
14068 * ira.c (find_moveable_pseudos): Likewise.
14069 * loop-invariant.c (find_invariant_insn): Likewise.
14070 * lra-constraints.c (curr_insn_transform): Likewise.
14071 * postreload.c (reload_combine_recognize_const_pattern):
14072 * Likewise.
14073 * reload.c (find_reloads): Likewise.
14074 * reorg.c (delete_scheduled_jump): Likewise.
14075 (steal_delay_list_from_target): Likewise.
14076 (steal_delay_list_from_fallthrough): Likewise.
14077 (redundant_insn): Likewise.
14078 (fill_simple_delay_slots): Likewise.
14079 (fill_slots_from_thread): Likewise.
14080 (delete_computation): Likewise.
14081 * sched-rgn.c (add_branch_dependences): Likewise.
14082
14083 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14084
14085 * genconfig.c (main): Always define HAVE_cc0.
14086 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
14087 HAVE_cc0.
14088 * cfgcleanup.c (flow_find_cross_jump): Likewise.
14089 (flow_find_head_matching_sequence): Likewise.
14090 (try_head_merge_bb): Likewise.
14091 * cfgrtl.c (rtl_merge_blocks): Likewise.
14092 (try_redirect_by_replacing_jump): Likewise.
14093 (rtl_tidy_fallthru_edge): Likewise.
14094 * combine.c (do_SUBST_MODE): Likewise.
14095 (insn_a_feeds_b): Likewise.
14096 (combine_instructions): Likewise.
14097 (can_combine_p): Likewise.
14098 (try_combine): Likewise.
14099 (find_split_point): Likewise.
14100 (subst): Likewise.
14101 (simplify_set): Likewise.
14102 (distribute_notes): Likewise.
14103 * cprop.c (cprop_jump): Likewise.
14104 * cse.c (cse_extended_basic_block): Likewise.
14105 * df-problems.c (can_move_insns_across): Likewise.
14106 * final.c (final): Likewise.
14107 (final_scan_insn): Likewise.
14108 * function.c (emit_use_return_register_into_block): Likewise.
14109 * gcse.c (insert_insn_end_basic_block): Likewise.
14110 * haifa-sched.c (sched_init): Likewise.
14111 * ira.c (find_moveable_pseudos): Likewise.
14112 * loop-invariant.c (find_invariant_insn): Likewise.
14113 * lra-constraints.c (curr_insn_transform): Likewise.
14114 * optabs.c (prepare_cmp_insn): Likewise.
14115 * postreload.c (reload_combine_recognize_const_pattern):
14116 * Likewise.
14117 * reload.c (find_reloads): Likewise.
14118 (find_reloads_address_1): Likewise.
14119 * reorg.c (delete_scheduled_jump): Likewise.
14120 (steal_delay_list_from_target): Likewise.
14121 (steal_delay_list_from_fallthrough): Likewise.
14122 (try_merge_delay_insns): Likewise.
14123 (redundant_insn): Likewise.
14124 (fill_simple_delay_slots): Likewise.
14125 (fill_slots_from_thread): Likewise.
14126 (delete_computation): Likewise.
14127 (relax_delay_slots): Likewise.
14128 * sched-deps.c (sched_analyze_2): Likewise.
14129 * sched-rgn.c (add_branch_dependences): Likewise.
14130
14131 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14132
14133 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
14134 that is trivially ded on non cc0 targets.
14135 (simplify_set): Likewise.
14136 (mark_used_regs_combine): Likewise.
14137 * cse.c (new_basic_block): Likewise.
14138 (fold_rtx): Likewise.
14139 (cse_insn): Likewise.
14140 (cse_extended_basic_block): Likewise.
14141 (set_live_p): Likewise.
14142 * rtlanal.c (canonicalize_condition): Likewise.
14143 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14144
14145 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14146
14147 * conditions.h: Define macros even if HAVE_cc0 is undefined.
14148 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
14149 * final.c: Likewise.
14150 * jump.c: Likewise.
14151 * recog.c: Likewise.
14152 * recog.h: Declare functions even when HAVE_cc0 is undefined.
14153 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
14154
14155 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14156
14157 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
14158 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
14159 * builtins.c (expand_builtin): Remove check if
14160 EH_RETURN_DATA_REGNO is defined.
14161 * df-scan.c (df_bb_refs_collect): Likewise.
14162 (df_get_exit_block_use_set): Likewise.
14163 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
14164 * ira-lives.c (process_bb_node_lives): Likewise.
14165 * lra-lives.c (process_bb_lives): Likewise.
14166
14167 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
14168
14169 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
14170 FIRST_PSEUDO_REG): New.
14171 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
14172 (ARG_POINTER_REGNUM): Define to ARGP_REG.
14173 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
14174 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
14175 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
14176 (FIRST_INT_REG): New.
14177 (LAST_INT_REG): New.
14178 (FIRST_*_REG): Define using *_REG.
14179 (LAST_*_REG): Ditto.
14180 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
14181 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
14182 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
14183
14184 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14185
14186 * expmed.c: (synth_mult): Only assume overlapping
14187 shift with previous steps in alg_sub_t_m2 case.
14188
14189 2015-04-21 Richard Biener <rguenther@suse.de>
14190
14191 PR tree-optimization/65650
14192 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
14193 transitions involving copies.
14194 (set_lattice_value): Adjust for copy lattice state.
14195 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
14196 if that doesn't dominate the merge point.
14197 (bit_value_unop): Adjust what we treat as varying mask.
14198 (bit_value_binop): Likewise.
14199 (bit_value_assume_aligned): Likewise.
14200 (evaluate_stmt): When we simplified to a SSA name record a copy
14201 instead of dropping to varying.
14202 (visit_assignment): Simplify.
14203
14204 * gimple-match.h (gimple_simplify): Add another callback.
14205 * gimple-fold.c (fold_stmt_1): Adjust caller.
14206 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
14207 for the 2nd callback.
14208 * gimple-match-head.c (gimple_simplify): Add a callback that is
14209 used to valueize the stmt operands and use it that way.
14210
14211 2015-04-21 Richard Biener <rguenther@suse.de>
14212
14213 PR tree-optimization/65788
14214 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
14215
14216 2015-04-21 Richard Biener <rguenther@suse.de>
14217
14218 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
14219 vec_construct cost by vec_stmt_cost.
14220
14221 2015-04-21 Richard Biener <rguenther@suse.de>
14222
14223 * cfghooks.h (create_basic_block): Replace with two overloads
14224 for RTL and GIMPLE.
14225 (split_block): Likewise.
14226 * cfghooks.c (split_block): Rename to ...
14227 (split_block_1): ... this.
14228 (split_block): Add two type-safe overloads for RTL and GIMPLE.
14229 (split_block_after_labels): Call split_block_1.
14230 (create_basic_block): Rename to ...
14231 (create_basic_block_1): ... this.
14232 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
14233 (create_empty_bb): Call create_basic_block_1.
14234 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
14235 split_block_after_labels.
14236 * omp-low.c (expand_parallel_call): Likewise.
14237 (expand_omp_target): Likewise.
14238 (simd_clone_adjust): Likewise.
14239 * tree-chkp.c (chkp_get_entry_block): Likewise.
14240 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
14241 create_basic_block overload.
14242 (cgraph_node::expand_thunk): Likewise.
14243 * tree-cfg.c (make_blocks): Likewise.
14244 (handle_abnormal_edges): Likewise.
14245 * tree-inline.c (copy_bb): Likewise.
14246
14247 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14248
14249 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
14250 New pattern.
14251 (*xor_one_cmplsidi3_ze): Likewise.
14252
14253 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
14254
14255 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
14256 use df_remove_problem rather than manually removing problems, leaving
14257 holes in df->problems_in_order[].
14258
14259 2015-04-21 Tom de Vries <tom@codesourcery.com>
14260
14261 PR tree-optimization/65802
14262 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
14263
14264 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14265
14266 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
14267 Increase to 128.
14268 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
14269 at '.'. Assert that there's enough space for everything.
14270
14271 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
14272
14273 PR tree-optimization/64950
14274 Revert:
14275 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
14276
14277 PR target/41089
14278 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14279 as volatile.
14280
14281 2015-04-20 Shiva Chen <shiva0217@gmail.com>
14282
14283 PR rtl-optimization/64916
14284 * cfgcleanup.c (values_equal_p): New function.
14285 (can_replace_by): Use it.
14286
14287 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
14288
14289 PR c++/65801
14290 * doc/invoke.texi ([-Wnarrowing]): Update.
14291
14292 2015-04-20 Jeff Law <law@redhat.com>
14293
14294 PR tree-optimization/65658
14295 * tree-ssa-threadupdate.c (redirection_block_p): Remove
14296 redundant test for GIMPLE_ASSIGN in last change.
14297
14298 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
14299
14300 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14301 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14302 (legitimize_tls_address): Ditto.
14303 (ix86_expand_move): Ditto.
14304 (ix86_expand_binary_operator): Remove reload_in_progress checks.
14305 (ix86_expand_unary_operator): Ditto.
14306 * config/i386/predicates.md (index_register_operand): Ditto.
14307
14308 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
14309
14310 * reorg.c (try_merge_delay_insns): Improve correctness checking
14311 for targets with multiple delay slots.
14312
14313 2015-04-20 Jeff Law <law@redhat.com>
14314
14315 PR tree-optimization/65658
14316 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14317 statements too.
14318
14319 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14320
14321 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14322 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14323 Delete.
14324
14325 2015-04-20 Jakub Jelinek <jakub@redhat.com>
14326
14327 PR debug/65807
14328 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14329
14330 2015-04-20 Richard Biener <rguenther@suse.de>
14331
14332 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14333 * gimple-fold.c (gimple_build_valueize): New function.
14334 (gimple_build): Always use gimple_build_valueize as valueize hook.
14335
14336 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14337
14338 PR target/64134
14339 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14340 and overwrite variable parts if <= 1/2 the elements are variable.
14341
14342 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
14343
14344 PR rtl-optimization/65805
14345 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14346 Don't use difference of offset and previous offset if
14347 update_sp_offset is non-zero.
14348 (eliminate_regs_in_insn): Ditto.
14349 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14350 lra_eliminate_regs_1 call.
14351 * lra-constraints.c (get_equiv_with_elimination): Ditto.
14352
14353 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
14354
14355 * hash-table.h: Remove version of hash_table that stored value_type *.
14356 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14357 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14358 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14359 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14360 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14361 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14362 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14363 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14364 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14365 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14366 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14367 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14368 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14369 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14370 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14371 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14372
14373 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14374 Jakub Jelinek <jakub@redhat.com>
14375
14376 PR target/65787
14377 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14378 subsequent SH_NONE operand does not overwrite an existing *special
14379 value.
14380 (adjust_extract): Handle case where a vec_extract operation is
14381 wrapped in a PARALLEL.
14382
14383 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14384
14385 PR target/65780
14386 * config/i386/i386.c (ix86_binds_local_p): Define only if
14387 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14388
14389 2015-04-17 Jeff Law <law@redhat.com>
14390
14391 PR tree-optimization/47679
14392 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14393 * tree-ssa-scopedtables.c: New file.
14394 * tree-ssa-scopedtables.h: New file.
14395 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14396 (const_and_copies): Change name/type.
14397 (record_const_or_copy): Move into tree-ssa-scopedtables.c
14398 (record_const_or_copy_1): Similarly.
14399 (restore_vars_to_original_value): Similarly.
14400 (pass_dominator::execute): Create and destroy const_and_copies table.
14401 (thread_across_edge): Update passing of const_and_copies.
14402 (record_temporary_equivalence): Use method calls rather than
14403 manipulating const_and_copies directly.
14404 (record_equality, cprop_into_successor_phis): Similarly.
14405 (dom_opt_dom_walker::before_dom_children): Similarly.
14406 (dom_opt_dom_walker::after_dom_children): Similarly.
14407 (eliminate_redundant_computations): Similarly.
14408 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14409 (record_temporary_equivalence): Likewise.
14410 (invalidate_equivalences): Likewise.
14411 (record_temporary_equivalences_from_phis): Update due to type
14412 change of const_and_copies. Use method calls rather than
14413 manipulating the stack directly.
14414 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14415 (thread_through_normal_block, thread_across_edge): Likewise.
14416 (thread_across_edge): Likewise.
14417 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14418 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
14419 of equiv_stack.
14420 (identify_jump_threads): Update due to type change of equiv_stack.
14421 (finalize_jump_threads): Delete the equiv_stack when complete.
14422
14423 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
14424
14425 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14426 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14427 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14428
14429 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
14430
14431 PR target/65535
14432 * config.gcc: Exit with a comment when we do not have a major version
14433 number for the FreeBSD target.
14434
14435 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14436
14437 PR target/65689
14438 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14439 maybe_allows_mem bitfields.
14440 (maybe_allows_none_start, maybe_allows_none_end,
14441 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14442 maybe_allows_mem_end): New variables.
14443 (compute_maybe_allows): New function.
14444 (add_constraint): Use it to initialize maybe_allows_reg and
14445 maybe_allows_mem fields.
14446 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14447 is_address constraints such that those that allow neither mem nor
14448 reg come first, then those that only allow reg but not mem, then
14449 those that only allow mem but not reg, then the rest.
14450 (write_allows_reg_mem_function): New function.
14451 (write_tm_preds_h): Call it.
14452 * stmt.c (parse_output_constraint, parse_input_constraint): Use
14453 the generated insn_extra_constraint_allows_reg_mem function
14454 instead of always setting *allows_reg = true; *allows_mem = true;
14455 for unknown extra constraints.
14456
14457 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14458
14459 PR target/65780
14460 * output.h (default_binds_local_p_3): New.
14461 * varasm.c (default_binds_local_p_3): Make it public. Take an
14462 argument to indicate if common symbol may be local. If common
14463 symbol may be local, treat non-external variable as defined
14464 locally.
14465 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14466 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14467 * config/i386/i386.c (ix86_binds_local_p): New.
14468 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14469 ix86_binds_local_p.
14470
14471 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14472
14473 PR debug/65771
14474 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14475 trying mem_loc_descriptor on XEXP (rtl, 0).
14476
14477 2015-04-17 Martin Liska <mliska@suse.cz>
14478
14479 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14480 Release symbol_compare_collection.
14481 * ipa-reference.c: Add TODO that a vector should be released.
14482
14483 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14484
14485 PR target/65296
14486 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14487 to new AVR-LibC file layout (bug #44574).
14488 (*avrlibc_devicelib): Same.
14489 * config/avr/avr-mcus.def: Adjust comments.
14490 * config/avr/avr.opt (nodevicelib): Adjust help.
14491
14492 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
14493
14494 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14495
14496 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
14497
14498 PR c++/64527
14499 * gimplify.c (gimplify_init_constructor): Always emit a
14500 side-effecting constructor.
14501
14502 2015-04-17 Tom de Vries <tom@codesourcery.com>
14503
14504 PR tree-optimization/64950
14505 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14506 in cfun->curr_properties.
14507 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14508 if we generate an IFN_VA_ARG.
14509 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14510 function if PROP_gimple_lva is not set in src function.
14511
14512 2015-04-17 Tom de Vries <tom@codesourcery.com>
14513 Michael Matz <matz@suse.de>
14514
14515 PR tree-optimization/64950
14516 * gimple-iterator.c (update_modified_stmts): Remove static.
14517 * gimple-iterator.h (update_modified_stmts): Declare.
14518 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14519 (gimplify_va_arg_internal): New function.
14520 (gimplify_va_arg_expr): Use IFN_VA_ARG.
14521 * gimplify.h (gimplify_va_arg_internal): Declare.
14522 * internal-fn.c (expand_VA_ARG): New unreachable function.
14523 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14524 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14525 (expand_ifn_va_arg): New function.
14526 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14527 (pass_stdarg::execute): Call expand_ifn_va_arg.
14528 (pass_data_lower_vaarg): New pass_data.
14529 (pass_lower_vaarg): New gimple_opt_pass.
14530 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14531 (make_pass_lower_vaarg): New function.
14532 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14533 properties_required field.
14534 * passes.def (all_passes): Add pass_lower_vaarg.
14535 * tree-pass.h (PROP_gimple_lva): Add define.
14536 (make_pass_lower_vaarg): Declare.
14537
14538 2015-04-17 Tom de Vries <tom@codesourcery.com>
14539
14540 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14541 * calls.c (call_expr_flags): Same.
14542
14543 2015-04-17 Tom de Vries <tom@codesourcery.com>
14544
14545 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14546 (pass_stdarg::execute): ... here.
14547
14548 2015-04-17 Tom de Vries <tom@codesourcery.com>
14549 Michael Matz <matz@suse.de>
14550
14551 * tree-cfg.c (make_blocks_1): Factor out of ...
14552 (make_blocks): ... here.
14553 (make_edges_bb): Factor out of ...
14554 (make_edges): ... here.
14555 (gimple_find_sub_bbs): New function.
14556 * tree-cfg.h (gimple_find_sub_bbs): Declare.
14557
14558 2015-04-17 Tom de Vries <tom@codesourcery.com>
14559
14560 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14561
14562 2015-04-17 Yury Gribov <y.gribov@samsung.com>
14563
14564 * asan.c (set_sanitized_sections): New function.
14565 (section_sanitized_p): Ditto.
14566 (asan_protect_global): Optionally sanitize user-defined
14567 sections.
14568 * asan.h (set_sanitized_sections): Declare new function.
14569 * common.opt (fsanitize-sections): New option.
14570 * doc/invoke.texi (-fsanitize-sections): Document new option.
14571 * opts-global.c (handle_common_deferred_options): Handle new
14572 option.
14573
14574 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14575
14576 PR debug/65771
14577 * dwarf2out.c (loc_list_from_tree): Return NULL
14578 for DEBUG_EXPR_DECL.
14579
14580 2015-04-17 Christian Bruel <christian.bruel@st.com>
14581
14582 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14583 same attributes.
14584
14585 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14586
14587 * ira-color.c (setup_left_conflict_sizes_p): Do not process
14588 node itself when computing left conflict subnode size.
14589
14590 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14591
14592 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14593 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14594 *fop_<mode>_1_sse using enabled attribute. Use
14595 register_mixssei387nonimm_operand operand 1 predicate. Change
14596 alternative 3 constraints from "x" to "v".
14597
14598 2015-04-16 Richard Biener <rguenther@suse.de>
14599
14600 PR tree-optimization/65774
14601 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14602 bit-value tracking on.
14603
14604 2015-04-16 Richard Biener <rguenther@suse.de>
14605
14606 PR tree-optimization/64277
14607 * tree-vrp.c (check_array_ref): Fix anti-range handling,
14608 simplify upper bound handling.
14609 (search_for_addr_array): Simplify.
14610 (check_array_bounds): Handle ADDR_EXPRs here.
14611 (check_all_array_refs): Simplify.
14612
14613 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14614
14615 * config/i386/i386.c (print_reg): Rewrite function.
14616
14617 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14618
14619 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14620 Invert the condition.
14621
14622 2015-04-16 Renlin Li <renlin.li@arm.com>
14623
14624 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14625 simplifications for UNSIGNED_FLOAT.
14626
14627 2015-04-16 Nick Clifton <nickc@redhat.com>
14628
14629 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14630 MUL_UNINIT.
14631 (enum rl78_cpu_type): New.
14632 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14633 (umulhi3_shift_virt): Remove m constraint from operand 1.
14634 (umulqihi3_virt): Likewise.
14635 * config/rl78/rl78.c (rl78_option_override): Add code to process
14636 -mcpu and -mmul options.
14637 (rl78_alloc_physical_registers): Add code to handle divhi and
14638 divsi valloc attributes.
14639 (set_origin): Likewise.
14640 * config/rl78/rl78.h (RL78_MUL_G14): Define.
14641 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14642 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14643 __RL78_Gxx__.
14644 (ASM_SPEC): Pass -mcpu on to assembler.
14645 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14646 (mulqi3_rl78): Likewise.
14647 (mulhi3_g13): Likewise.
14648 (mulhi3): Generate the G13 or G14 versions of the insn directly.
14649 (mulsi3): Likewise.
14650 (mulhi3_g14): Add clobbers of AX and BC.
14651 (mulsi3_g14): Likewise.
14652 (mulsi3_g13): Likewise.
14653 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14654 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14655 * config/rl78/rl78.opt (mmul): Initialise value to
14656 RL78_MUL_UNINIT.
14657 (mcpu): New option.
14658 (m13, m14, mrl78): New option aliases.
14659 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14660 (MULTILIB_DIRNAMES): Add g13 and g14.
14661 * doc/invoke.texi: Document -mcpu and -mmul options.
14662
14663 2015-04-16 Richard Biener <rguenther@suse.de>
14664
14665 * tree-ssa-ccp.c (likely_value): See if we have operands that
14666 are marked as never simulate again and return CONSTANT in this
14667 case.
14668 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14669 not have any operands that will be simulated again as
14670 not being simulated again.
14671
14672 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
14673
14674 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14675 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14676 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14677 attribute.
14678 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14679 enabled attribute.
14680 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14681 *float<SWI48:mode><MODEF:mode>2_sse.
14682 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14683 enabled attribute.
14684 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14685 enabled attribute.
14686
14687 2015-04-15 Tom de Vries <tom@codesourcery.com>
14688
14689 PR other/65487
14690 * function.c (push_dummy_function): New function.
14691 (init_dummy_function_start): Use push_dummy_function.
14692 (pop_dummy_function): New function. Factored out of ...
14693 (expand_dummy_function_end): ... here.
14694 * function.h (push_dummy_function, pop_dummy_function): Declare.
14695 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14696 pop_dummy_function.
14697 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14698
14699 2015-04-15 Jeff Law <law@redhat.com>
14700
14701 PR tree-optimization/47679
14702 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14703 need for forward declaration in upcoming changes.
14704 (record_conditions, record_edge_info): Likewise.
14705
14706 PR rtl-optimization/42522
14707 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14708 SIGN_EXTRACT as a whole object rather than simplifying
14709 its operand.
14710
14711 2015-04-15 Jakub Jelinek <jakub@redhat.com>
14712
14713 PR ipa/65765
14714 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14715 and GIMPLE_PREDICT use break instead of return true. For
14716 GIMPLE_EH_DISPATCH, compare dispatch region.
14717
14718 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
14719
14720 * doc/extend.texi (__sync Builtins): Simplify some text. Update
14721 details about the implementation. Make clear preference for
14722 __atomic builtins. Reduce possibility of future change.
14723
14724 2015-04-15 Nick Clifton <nickc@redhat.com>
14725
14726 * config/rx/rx.opt (mallow-string-insns): New option.
14727 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14728 builtin if string instructions are denied.
14729 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14730 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14731 appropriate.
14732 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14733 * config/rx/rx.md (movstr): Enable pattern only if string
14734 instructions are allowed.
14735 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14736 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14737 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14738 (MULTILIB_DIRNAMES): Add no-strings.
14739 * doc/invoke.texi: Document -mno-allow-string-insns.
14740
14741 2015-04-15 Alan Modra <amodra@gmail.com>
14742
14743 PR target/65408
14744 PR target/58744
14745 PR middle-end/36043
14746 * calls.c (load_register_parameters): Don't load past end of
14747 mem unless suitably aligned.
14748
14749 2015-04-15 Nick Clifton <nickc@redhat.com>
14750
14751 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14752 decrement instruction as being frame related.
14753 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14754 based addresses.
14755 If zero extending a function address enclose the operation in
14756 %code(...).
14757 (rl78_preferred_reload_class): New function.
14758 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14759 * config/rl78/rl78.md: Remove useless constraints in expanders.
14760 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14761 (mulhi3_rl78): Likewise.
14762 (mulhi3_g13): Likewise.
14763 (mulsi3_rl78): Likewise.
14764 (es_addr): Move to before the multiply patterns.
14765
14766 2015-04-15 Alan Modra <amodra@gmail.com>
14767
14768 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14769 and sequence_stack. Add seq.
14770 (seq_stack): Delete.
14771 * function.c (prepare_function_start): Don't access x_last_insn.
14772 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14773 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14774 * emit_rtl.c (start_sequence, push_topmost_sequence,
14775 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14776 sequence accessors.
14777 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14778 remove_insn): Likewise. Simplify.
14779 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14780 and pop_topmost_sequence.
14781 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
14782 debug insns.
14783 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14784
14785 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
14786
14787 PR target/65729
14788 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14789 the assertiion.
14790
14791 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14792
14793 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14794 (LEGACY_INT_REGNO_P): Ditto.
14795 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14796 (ANY_MASK_REG_P): Remove.
14797 (BND_REG_P): Rename from ANY_BND_REG_P.
14798 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14799 legacy integer registers. Do not handle MMX_REG_P in a special way.
14800 Merge 64byte and 32byte SSE handling.
14801
14802 2015-04-14 Nick Clifton <nickc@redhat.com>
14803
14804 * expr.c (expand_assignment): Force an address offset computation
14805 into a register before changing its mode.
14806 (expand_expr_real_1): Likewise.
14807
14808 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
14809
14810 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14811 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14812 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14813 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14814 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14815 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14816 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14817 and __aarch64_vget_lane_any.
14818
14819 2015-04-14 Jakub Jelinek <jakub@redhat.com>
14820
14821 PR rtl-optimization/65761
14822 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14823 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14824
14825 2015-04-14 Richard Biener <rguenther@suse.de>
14826
14827 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14828 (graphite_can_represent_scev): Use POINTER_TYPE_P.
14829
14830 2015-04-14 Richard Biener <rguenther@suse.de>
14831
14832 PR tree-optimization/65758
14833 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14834 against -1.
14835 (ccp_lattice_meet): Likewise.
14836 (bit_value_unop): Likewise.
14837 (bit_value_binop): Likewise.
14838 (bit_value_assume_aligned): Likewise.
14839
14840 2015-04-14 Christian Bruel <christian.bruel@st.com>
14841
14842 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14843 function.
14844
14845 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
14846
14847 PR tree-optimization/63387
14848 * match.pd ((x unord x) | (y unord y) -> (x unord y),
14849 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14850
14851 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14852
14853 * config/i386/predicates.md (any_QIreg_operand): Rename from
14854 q_regs_operand. Do not process subregs.
14855 (QIreg_operand): Use QI_REGNO_P predicate.
14856 (ext_QIreg_operand): Ditto.
14857 (ext_register_operand): Ditto.
14858 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14859 (AND splitters): Ditto.
14860 (AND with -65536 splitter): Add SWI48 mode for operand 0.
14861 (AND with -256 splitter): Use any_QIreg_operand predicate and
14862 SWI248 mode for operand 0.
14863 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14864 mode for operand 0.
14865 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14866
14867 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
14868
14869 * doc/plugins.texi: Rewrite first introductory paragraph.
14870
14871 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14872
14873 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14874 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14875
14876 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14877
14878 * ipa-profie.c (ipa_profile): Check number of parameters
14879 and possible polymorphic call targets before
14880 devirtualizing.
14881
14882 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
14883
14884 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14885 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14886
14887 2015-04-13 Richard Biener <rguenther@suse.de>
14888
14889 PR tree-optimization/65204
14890 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14891 takens for bit-CCP.
14892
14893 2015-04-13 Richard Biener <rguenther@suse.de>
14894
14895 PR target/65660
14896 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14897 and cond_not_taken_branch_cost to 4 and 2.
14898 (bdver2_cost): Likewise.
14899 (bdver3_cost): Likewise.
14900 (bdver4_cost): Likewise.
14901
14902 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14903
14904 * hash-table.h (hash_table constructor): Add mem stats.
14905 (alloc_entries): Likewise.
14906
14907 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14908
14909 * ipa-cp.c (ipcp_driver): Relase prev_edge.
14910 * passes.c (execute_one_pass): Only add transform if pass has one.
14911
14912 2015-04-12 Joseph Myers <joseph@codesourcery.com>
14913
14914 * config/i386/i386.c (ix86_option_override_internal): Don't set
14915 -fprefetch-loop-arrays if optimizing for size.
14916
14917 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14918 Gerald Pfeifer <gerald@pfeifer.com>
14919
14920 * doc/contrib.texi (Contributors): Add Martin Jambor and
14921 Michael Matz.
14922
14923 2015-04-12 Jakub Jelinek <jakub@redhat.com>
14924
14925 * BASE-VER: Set to 6.0.0.
14926
14927 PR tree-optimization/65747
14928 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14929 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14930
14931 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14932
14933 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14934 sentence. Improve grammar.
14935
14936 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14937
14938 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14939
14940 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14941
14942 PR ipa/65743
14943 * ipa-inline-transform.c (speculation_removed): Remove static var.
14944 (check_speculations): New function.
14945 (clone_inlined_nodes): Do not check spculations.
14946 (inline_call): Call check_speculations.
14947 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14948 consider non-invariants.
14949
14950 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14951 Martin Liska <mliska@suse.cz>
14952
14953 PR ipa/65722
14954 * ipa-icf.c (sem_item::compare_cgraph_references): function and
14955 variable can not match.
14956 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14957 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14958
14959 2015-04-11 Jakub Jelinek <jakub@redhat.com>
14960
14961 PR tree-optimization/65735
14962 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14963 Remove visited_phis argument, add visited_bbs, avoid recursing into the
14964 same bb rather than just into the same phi node.
14965 (thread_through_normal_block): Adjust caller.
14966
14967 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14968
14969 * doc/contrib.texi (Contributors): Add Ira Rosen.
14970
14971 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
14972
14973 * gcov.c (find_source): Fix miswording in error message.
14974 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14975 (ix86_expand_sse_comi_round): Fix typo in error message.
14976
14977 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14978
14979 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14980
14981 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
14982
14983 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14984
14985 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14986
14987 PR target/65710
14988 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14989 Print bad_spills_num and insn_pseudos_num.
14990
14991 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14992
14993 PR target/65694
14994 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14995 when creating +1 values for SImode.
14996
14997 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14998
14999 PR target/65729
15000 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
15001 assert.
15002
15003 2015-04-10 Jakub Jelinek <jakub@redhat.com>
15004 Iain Sandoe <iain@codesourcery.com>
15005
15006 PR target/65351
15007 * configure: Regenerate.
15008
15009 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
15010
15011 PR target/65671
15012 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
15013
15014 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
15015
15016 * doc/contrib.texi (Contributors): Add John Marino.
15017
15018 2015-04-09 Jakub Jelinek <jakub@redhat.com>
15019
15020 PR tree-optimization/65709
15021 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
15022 TREE_TYPE (TREE_TYPE (t)).
15023
15024 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
15025
15026 PR target/65710
15027 * lra-int.h (lra_bad_spill_regno_start): New.
15028 * lra.c (lra_bad_spill_regno_start): New.
15029 (lra): Set up lra_bad_spill_regno_start. Set up
15030 lra_constraint_new_regno_start unconditionally.
15031 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
15032 spill preferences.
15033
15034 2015-04-09 Marek Polacek <polacek@redhat.com>
15035 Jakub Jelinek <jakub@redhat.com>
15036
15037 PR middle-end/65554
15038 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
15039 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
15040 of STRIP_NOPS.
15041
15042 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
15043
15044 PR rtl-optimization/65693
15045 * combine.c (is_parallel_of_n_reg_sets): Move outside of
15046 #ifndef HAVE_cc0.
15047
15048 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
15049
15050 PR target/65296
15051 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
15052 device specs file if "device-specs%s" didn't resolve to a path.
15053
15054 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
15055
15056 PR target/65676
15057 * config/i386/i386.c (fixup_modeless_constant): New.
15058 (ix86_expand_args_builtin): Fixup modeless constant operand.
15059 (ix86_expand_round_builtin): Ditto.
15060 (ix86_expand_special_args_builtin): Ditto.
15061 (ix86_expand_builtin): Ditto.
15062
15063 2015-04-09 Jakub Jelinek <jakub@redhat.com>
15064
15065 PR target/65693
15066 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
15067 any pow2 integer in between 2 and 0x80000000U inclusive.
15068
15069 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
15070
15071 PR rtl-optimization/65693
15072 * combine.c (is_parallel_of_n_reg_sets): Change first argument
15073 from an rtx_insn * to an rtx.
15074 (try_combine): Adjust both callers. Use it once more.
15075
15076 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
15077
15078 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
15079 (chkp_make_static_const_bounds): Search existing
15080 symbol by assembler name. Use make_decl_one_only.
15081 (chkp_get_zero_bounds_var): Remove node search which
15082 is now performed in chkp_make_static_const_bounds.
15083 (chkp_get_none_bounds_var): Likewise.
15084
15085 2015-04-08 Michael Witten <mfwitten@gmail.com>
15086
15087 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
15088 to an example.
15089
15090 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15091
15092 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
15093
15094 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
15095
15096 * doc/extend.texi (__sync Builtins): Fix grammar.
15097
15098 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15099
15100 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
15101
15102 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15103
15104 * varasm.c (emit_local): Move definition of align.
15105
15106 2015-04-08 Julian Brown <julian@codesourcery.com>
15107
15108 * config/nvptx/mkoffload.c (process): Support variable mapping.
15109
15110 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
15111
15112 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
15113 alpha_links **.
15114 (alpha_write_one_linkage): Correct typo.
15115
15116 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
15117
15118 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
15119
15120 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
15121
15122 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
15123
15124 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
15125
15126 * tree-chkp.h (chkp_insert_retbnd_call): New.
15127 * tree-chkp.c (chkp_insert_retbnd_call): New.
15128 * ipa-split.c (insert_bndret_call_after): Remove.
15129 (split_function): Use chkp_insert_retbnd_call.
15130 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
15131 bounds for instrumented functions.
15132
15133 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
15134
15135 PR ipa/65540
15136 * calls.c (initialize_argument_information): When producing tail
15137 call also turn SSA_NAMES passed by references to original PARM_DECLs
15138
15139 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
15140
15141 PR target/65648
15142 * lra-remat.c (do_remat): Process input and non-input insn
15143 registers separately.
15144
15145 2015-04-07 Jakub Jelinek <jakub@redhat.com>
15146
15147 PR debug/65678
15148 * valtrack.c (debug_lowpart_subreg): New function.
15149 (dead_debug_insert_temp): Use it.
15150
15151 PR middle-end/65680
15152 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
15153 into signed HOST_WIDE_INT the same as negative bit_offset.
15154
15155 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
15156
15157 * ipa-comdats.c (ipa_comdats): Visit all thunks
15158 to set proper comdat group.
15159
15160 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15161
15162 PR target/65489
15163 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
15164 on constants for NEON VSTRUCT modes.
15165
15166 2015-04-07 Jakub Jelinek <jakub@redhat.com>
15167 Iain Sandoe <iain@codesourcery.com>
15168
15169 PR target/65351
15170 * configure: Regenerate.
15171
15172 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15173
15174 PR target/65614
15175 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
15176 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
15177 that LFD is used to load double constants instead of LFS. Add
15178 defaults for all costs structures. Add comments for missing
15179 initialization fields.
15180 (size32_cost): Likewise.
15181 (size64_cost): Likewise.
15182 (rs64a_cost): Likewise.
15183 (mpccore_cost): Likewise.
15184 (ppc403_cost): Likewise.
15185 (ppc405_cost): Likewise.
15186 (ppc440_cost): Likewise.
15187 (ppc476_cost): Likewise.
15188 (ppc601_cost): Likewise.
15189 (ppc603_cost): Likewise.
15190 (ppc604_cost): Likewise.
15191 (ppc604e_cost): Likewise.
15192 (ppc620_cost): Likewise.
15193 (ppc630_cost): Likewise.
15194 (ppccell_cost): Likewise.
15195 (ppc750_cost): Likewise.
15196 (ppc7450_cost): Likewise.
15197 (ppc8540_cost): Likewise.
15198 (ppce300c2c3_cost): Likewise.
15199 (ppce500mc_cost): Likewise.
15200 (ppce500mc64_cost): Likewise.
15201 (ppce5500_cost): Likewise.
15202 (ppce6500_cost): Likewise.
15203 (titan_cost): Likewise.
15204 (power4_cost): Likewise.
15205 (power6_cost): Likewise.
15206 (power7_cost): Likewise.
15207 (power8_cost): Likewise.
15208 (ppca2_cost): Likewise.
15209 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
15210
15211 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
15212 instead of XXLOR to copy SFmode to clear out dirty bits created
15213 when SFmode denormals are generated.
15214 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
15215 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
15216
15217 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
15218
15219 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
15220 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
15221 * config/aarch64/aarch64-tune.md: Regenerate.
15222
15223 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
15224
15225 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
15226 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
15227 * config/arm/arm-cores.def (exynos-m1): New core.
15228 * config/arm/arm-tune.md: Regenerate.
15229 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
15230 * config/arm/bpabi.h: Likewise.
15231
15232 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15233
15234 * ipa-cp (set_single_call_flag): Remove too
15235 restrictive assert.
15236
15237 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15238
15239 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
15240 GOMP_offload_unregister from the destructor.
15241
15242 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15243
15244 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
15245 flags for instrumentation thunk.
15246 (chkp_produce_thunks): Likewise.
15247
15248 2015-04-05 Martin Liska <mliska@suse.cz>
15249
15250 PR ipa/65665
15251 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
15252 has computed data structure.
15253 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15254
15255 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
15256
15257 * invoke.texi (inline-unit-growth): Increase growth to 20%
15258 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
15259
15260 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
15261
15262 PR target/65647
15263 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
15264 value checking.
15265 (lra_rematerialization_iter): New.
15266 * lra.c (lra): Initialize lra_rematerialization_iter.
15267 Stop updating lra_constraint_new_regno_start after switching of
15268 inheritance and rematerialization.
15269 * lra-remat.c (lra_rematerialization_iter): New.
15270 (lra_remat): Add printing pass iteration. Do rematerialization
15271 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15272
15273 2015-04-04 Richard Biener <rguenther@suse.de>
15274
15275 PR tree-optimization/64909
15276 PR tree-optimization/65660
15277 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15278 to take a cost vector for scalar iteration cost.
15279 (vect_get_single_scalar_iteration_cost): Likewise.
15280 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15281 Compute the scalar iteration cost into a cost vector.
15282 (vect_get_known_peeling_cost): Use the scalar cost vector to
15283 account for the cost of the peeled iterations.
15284 (vect_estimate_min_profitable_iters): Likewise.
15285 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15286 Likewise.
15287
15288 2015-04-04 Alan Modra <amodra@gmail.com>
15289
15290 PR target/65576
15291 PR target/65240
15292 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15293 0.0 constant unless TARGET_VSX.
15294 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15295 alternative.
15296
15297 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15298
15299 PR ipa/65654
15300 * ipa-inline-transform.c (inline_call): Skip sanity check to work
15301 around the ICE
15302
15303 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15304
15305 PR ipa/65655
15306 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15307 speculative indirect edges to avoid ordering issue.
15308
15309 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15310
15311 PR ipa/65076
15312 * ipa-inline.c (edge_badness): Add combined size to the denominator.
15313
15314 2015-04-03 Jakub Jelinek <jakub@redhat.com>
15315
15316 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15317 TYPE_ARTIFICIAL on the .omp_data* types.
15318
15319 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15320
15321 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15322 instrumentation thunks.
15323
15324 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15325
15326 * config/i386/i386.c (ix86_expand_call): Avoid nested
15327 PARALLEL in returned call value.
15328
15329 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15330
15331 * lto-cgraph.c (input_cgraph_1): Always link instrumented
15332 assembler name with original one.
15333
15334 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15335
15336 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15337
15338 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15339
15340 Revert parts of r216820.
15341 * config/i386/i386.md (movqi_internal): Correct type calculation
15342 for alternatives 3 and 5.
15343
15344 2015-04-02 Jakub Jelinek <jakub@redhat.com>
15345
15346 PR preprocessor/61977
15347 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15348 predefine __vector/__bool/__pixel macros nor context sensitive
15349 macros for CLK_ASM.
15350 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15351
15352 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
15353
15354 * config/pa/pa.c (pa_output_move_double): Directly handle register
15355 indexed memory operand. Simplify handling of scaled register indexed
15356 memory operands.
15357
15358 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15359
15360 PR driver/65444
15361 * config/i386/linux-common.h (MPX_SPEC): New.
15362 (CHKP_SPEC): Add MPX_SPEC.
15363 * doc/invoke.texi (-fcheck-pointer-boudns): Document
15364 possible issues with '-z bndplt' support in linker.
15365
15366 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15367
15368 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15369 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15370 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15371 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15372 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15373
15374 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
15375
15376 * config/i386/sync.md (UNSPEC_MOVA): Remove.
15377 (atomic_load<mode>): Change operand 0 predicate to
15378 nonimmediate_operand and fix up the destination when needed.
15379 Use UNSPEC_LDA.
15380 (atomic_loaddi_fpu): Use UNSPEC_LDA.
15381 (atomic_store<mode>): Change operand 1 predicate to
15382 nonimmendate_operand and move the source to register when needed.
15383 Use UNSPEC_STA.
15384 (atomic_store<mode>_1): Use UNSPEC_STA.
15385 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15386 Fix moves from memory operand. Use UNSPEC_STA.
15387
15388 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15389
15390 * expmed.c (strict_volatile_bitfield_p): Check that the access will
15391 not cross a MODESIZE boundary.
15392 (store_bit_field, extract_bit_field): Added assertions in the
15393 strict volatile bitfields code path.
15394
15395 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
15396
15397 PR target/65624
15398 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15399 Increase args array size by one to avoid buffer overflow.
15400
15401 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15402
15403 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15404 split_part.
15405 * ipa-inline.c (edge_badness): Add wrapper penalty.
15406 (sum_callers): Move up.
15407 (inline_small_functions): Set single_caller.
15408 * ipa-inline.h (inline_summary): Add single_caller.
15409 * ipa-split.c (split_function): Set split_part.
15410 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15411 * cgraph.h (cgraph_node): Add split_part.
15412
15413 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
15414
15415 PR target/58945
15416 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15417 Do not split operands 0 and operands 2 to halfmode.
15418 (atomic_compare_and_swap<mode>): Update for
15419 atomic_compare_and_swap<dwi>_doubleword changes.
15420
15421 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15422
15423 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15424 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15425 no caching is done.
15426
15427 2015-03-31 Martin Liska <mliska@suse.cz>
15428
15429 PR ipa/65557
15430 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15431 has already filled up function summary.
15432 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15433
15434 2015-03-31 Richard Biener <rguenther@suse.de>
15435
15436 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15437 of types.
15438
15439 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
15440
15441 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15442 nested functions.
15443 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15444 (s390_asm_output_function_label): Adapt to new signature of
15445 s390_function_num_hotpatch_hw
15446 Optimise the code generating assembler output.
15447 Add comments to assembler file.
15448
15449 2015-03-31 Richard Biener <rguenther@suse.de>
15450
15451 PR middle-end/65626
15452 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15453 of the noreturn call so it is last and cleanup_control_flow_bb
15454 can do the CFG part.
15455
15456 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
15457
15458 PR target/65531
15459 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15460 same_comdat_group for external symbols.
15461 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15462 infinite same_comdat_group traversal loop.
15463
15464 2015-03-31 Jakub Jelinek <jakub@redhat.com>
15465
15466 PR plugins/61176
15467 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15468 automatically to $headers.
15469
15470 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15471
15472 PR ipa/65610
15473 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15474 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15475 function.
15476 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15477 Use it.
15478 * ipa-prop.c (param_type_may_change_p): Likewise.
15479 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15480 (remove_unused_scope_block_p): Add in_ctor_dtor_block
15481 argument. Before inlining, preserve
15482 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15483 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
15484 recursive calls.
15485 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15486
15487 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15488
15489 PR ipa/65076
15490 * ipa-inline.c (edge_badness): Base denominator on callee's
15491 grwoth squared.
15492
15493 2015-03-27 Martin Jambor <mjambor@suse.cz>
15494
15495 PR ipa/65478
15496 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15497 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15498 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15499 node_calling_single_call.
15500 * ipa-cp.c (count_callers): New function.
15501 (set_single_call_flag): Likewise.
15502 (initialize_node_lattices): Count callers and set single_flag_call if
15503 necessary.
15504 (incorporate_penalties): New function.
15505 (good_cloning_opportunity_p): Use it, dump new flags.
15506 (propagate_constants_topo): Set node_within_scc flag if appropriate.
15507 * doc/invoke.texi (ipa-cp-recursion-penalty,
15508 ipa-cp-single-call-pentalty): Document.
15509
15510 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15511
15512 PR ipa/65588
15513 * symtab.c (symtab_node::get_partitioning_class): Register vars
15514 are duplicated.
15515 * varpool.c (symbol_table::output_variables) Do not assemble unefined
15516 decls for non-symbols.
15517
15518 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
15519
15520 PR target/65248
15521 * output.h (default_binds_local_p_2): New.
15522 * varasm.c (default_binds_local_p_2): Renamed to ...
15523 (default_binds_local_p_3): This. Don't return true on protected
15524 data symbol if protected data may be external.
15525 (default_binds_local_p): Use default_binds_local_p_3.
15526 (default_binds_local_p_1): Likewise.
15527 (default_binds_local_p_2): New.
15528 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15529 default_binds_local_p_2 if TARGET_MACHO is undefined.
15530
15531 2015-03-27 Jakub Jelinek <jakub@redhat.com>
15532
15533 PR target/65593
15534 * config/i386/i386.c (legitimize_pic_address): If base
15535 is SYMBOL_REF or LABEL_REF using %rip addressing, force
15536 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15537
15538 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15539
15540 PR target/65531
15541 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15542 comdat groups.
15543
15544 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15545
15546 PR ipa/65600
15547 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15548 of optimized out indirect call.
15549 (redirect_to_unreachable): Always build symbol table node for
15550 BUILT_IN_UNREACHABLE
15551
15552 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
15553
15554 PR target/65407
15555 * ira-costs.c (record_reg_classes): Process all constraint string
15556 containing 0-9.
15557
15558 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
15559
15560 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15561 memory_operand.
15562
15563 PR target/65052
15564 * config/c6x/constraints.md (S3): New constraint.
15565 * config/c6x/c6x.md (real_jump): Use it.
15566
15567 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15568
15569 PR middle-end/65595
15570 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15571 do redirection if the call is not optimized out.
15572
15573 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
15574
15575 PR target/65495
15576 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15577 (fchkp-check-incomplete-type): Add LTO.
15578 (fchkp-zero-input-bounds-for-main): Likewise.
15579 (fchkp-first-field-has-own-bounds): Likewise.
15580 (fchkp-narrow-bounds): Likewise.
15581 (fchkp-narrow-to-innermost-array): Likewise.
15582 (fchkp-use-static-bounds): Likewise.
15583 (fchkp-use-static-const-bounds): Likewise.
15584 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15585
15586 2015-03-27 Marek Polacek <polacek@redhat.com>
15587
15588 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15589
15590 2015-03-27 Marek Polacek <polacek@redhat.com>
15591
15592 PR sanitizer/65583
15593 * ubsan.c (ubsan_create_edge): New function.
15594 (instrument_bool_enum_load): Call it.
15595 (instrument_nonnull_arg): Likewise.
15596 (instrument_nonnull_return): Likewise.
15597 (instrument_object_size): Likewise.
15598
15599 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15600
15601 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15602 auto_vec.
15603
15604 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15605
15606 PR lto/65536
15607 * lto-streamer.h (class lto_location_cache): New.
15608 (struct data_in): Add location_cache.
15609 (lto_input_location): Update prototype.
15610 (stream_input_location_now): New.
15611 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15612 pointer to location.
15613 (stream_input_location): Update.
15614 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15615 (warn_odr): Apply location cache before warning.
15616 (lto_input_location): Update prototype.
15617 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15618 Use stream_input_location_now.
15619 * lto-streamer-in.c (lto_location_cache::current_cache): New static
15620 variable.
15621 (lto_location_cache::cmp_loc): New function.
15622 (lto_location_cache::apply_location_cache): New function.
15623 (lto_location_cache::accept_location_cache): New function.
15624 (lto_location_cache::revert_location_cache): New function.
15625 (lto_location_cache::input_location): New function.
15626 (lto_input_location): Do location caching.
15627 (stream_input_location_now): New function.
15628 (input_eh_region, input_struct_function_base): Use
15629 stream_input_location_now.
15630 (lto_data_in_create): use new.
15631 (lto_data_in_delete): Use delete.
15632 * tree-streamer-in.c (unpack_ts_block_value_fields,
15633 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15634 lto_input_ts_exp_tree_pointers): Update for cached location api.
15635
15636 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15637
15638 PR ipa/65076
15639 * passes.def: Add pass_nothrow.
15640 * ipa-pure-const.c: (pass_data_nothrow): New.
15641 (pass_nothrow): New.
15642 (pass_nothrow::execute): New.
15643 (make_pass_nothrow): New.
15644 * tree-pass.h (make_pass_nothrow): Declare.
15645
15646 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15647
15648 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15649 edge to change by speculation resolution or redirection.
15650 (edge_set_predicate): Likewise.
15651 (inline_summary_t::duplicate): Likewise.
15652 (remap_edge_summaries): Likewise.
15653
15654 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15655
15656 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15657 New macros.
15658 (can_inline_edge_p): Relax option matching for always inline functions.
15659
15660 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
15661
15662 PR target/65561
15663 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15664 Check operand 4 and operand 0 for equality.
15665 (avx512f_vextract<shuffletype>32x4_1_maskm):
15666 Check operand 6 and operand 0 for equality.
15667 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15668 for equality.
15669 (vec_extract_hi_<mode>_maskm): Ditto.
15670
15671 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15672
15673 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15674 dead calls back to live.
15675 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15676 cross check to ...
15677 (cgraph_node::verify_node): ... here; verify only callee edges,
15678 not caller.
15679 * cif-code.def (CILK_SPAWN): New code.
15680
15681 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15682
15683 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15684 (edge_set_predicate): Use it to mark unreachable edges.
15685 (inline_summary_t::duplicate): Remove unnecesary code.
15686 (remap_edge_summaries): Likewise.
15687 (dump_inline_summary): Report contains_cilk_spawn.
15688 (compute_inline_parameters): Compute contains_cilk_spawn.
15689 (inline_read_section, inline_write_summary): Stream
15690 contains_cilk_spawn.
15691 * ipa-inline.c (can_inline_edge_p): Do not touch
15692 DECL_STRUCT_FUNCTION that may not be available;
15693 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15694 remove check for callee_fun->can_throw_non_call_exceptions and
15695 replace it by optimization attribute check; check for flag_exceptions.
15696 * ipa-inline-transform.c (inline_call): Maintain
15697 DECL_FUNCTION_PERSONALITY
15698 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15699
15700 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15701
15702 PR tree-optimization/65551
15703 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15704 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15705
15706 2015-03-26 Richard Biener <rguenther@suse.de>
15707
15708 PR middle-end/65555
15709 * tree-cfg.c (verify_gimple_call): Do not require a call to
15710 have no LHS if it wasn't recognized as control altering yet.
15711
15712 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15713
15714 PR tree-optimization/64715
15715 * passes.def: Add another instance of pass_object_sizes before ccp1.
15716 * tree-object-size.c (pass_object_sizes::execute): In
15717 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15718 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15719 __bos result and the computed constant. Remove redundant
15720 checks, obsoleted by gimple_call_builtin_p test.
15721
15722 * var-tracking.c (variable_tracking_main_1): Don't track
15723 variables for targetm.no_register_allocation targets.
15724
15725 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
15726
15727 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15728 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15729
15730 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15731
15732 PR target/65569
15733 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15734 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
15735 0.0 is correctly setup.
15736 (extenddftf2_internal): Likewise.
15737
15738 2015-03-25 Sebastian Pop <s.pop@samsung.com>
15739
15740 PR tree-optimization/65177
15741 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15742 (bb_in_bbs): New.
15743 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
15744 edges not adjacent on the path to the original code.
15745
15746 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
15747
15748 PR bootstrap/65537
15749 * doc/install.texi (Building a native compiler): Document new
15750 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
15751 configuration assumes that the host supports the linker plugin.
15752
15753 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
15754
15755 PR target/65508
15756 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15757 chain for generated call.
15758
15759 2015-03-25 Richard Biener <rguenther@suse.de>
15760
15761 * passes.c (pass_manager::execute_early_local_passes): Guard
15762 execution of pass_chkp_instrumentation_passes with
15763 flag_check_pointer_bounds.
15764 (pass_chkp_instrumentation_passes::gate): Likewise.
15765
15766 2015-03-25 Martin Liska <mliska@suse.cz>
15767
15768 PR tree-optimization/65538
15769 * symbol-summary.h (function_summary::~function_summary):
15770 Relese memory for allocated summaries.
15771 (function_summary::release): New function.
15772
15773 2015-03-25 Jakub Jelinek <jakub@redhat.com>
15774
15775 PR lto/65515
15776 * lto-streamer-out.c (DFS::worklist): New struct.
15777 (DFS::worklist_vec): New data member.
15778 (DFS::next_dfs_num): Remove.
15779 (DFS::DFS): Rewritten using worklist instead of recursion,
15780 using most of code from DFS::DFS_write_tree.
15781 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15782 pass it to DFS_write_tree calls.
15783 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15784 quick initial checks push it into worklist_vec and return.
15785
15786 2015-03-25 Richard Biener <rguenther@suse.de>
15787
15788 PR middle-end/65519
15789 * genmatch.c (expr::gen_transform): Re-write to avoid
15790 using gimple_build.
15791
15792 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15793
15794 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15795
15796 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15797
15798 * config/arm/arm.opt (print_tune_info): New option.
15799 * config/arm/arm.c (arm_print_tune_info): New function.
15800 (arm_file_start): Call arm_print_tune_info.
15801 * config/arm/arm-protos.h (struct tune_params): Add comment.
15802 * doc/invoke.texi (@item -mprint-tune-info): New item.
15803 (-mtune): mention it in ARM Option Summary.
15804
15805 2015-03-25 DJ Delorie <dj@redhat.com>
15806
15807 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15808 correct clause.
15809
15810 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
15811 Martin Liska <mliska@suse.cz>
15812
15813 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15814 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15815 (sem_item::add_type): New function.
15816 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15817 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15818 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15819 (sem_function::equals_wpa): Fix typo.
15820 * ipa-icf.h (sem_item::add_type): New function.
15821 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15822 order.
15823
15824 2015-03-24 Jakub Jelinek <jakub@redhat.com>
15825
15826 PR tree-optimization/65533
15827 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15828 with swapped operands, call vect_free_slp_tree on
15829 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15830 vector.
15831
15832 2015-03-24 Richard Biener <rguenther@suse.de>
15833
15834 PR middle-end/65517
15835 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15836 for fixup if necessary.
15837
15838 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
15839
15840 * doc/extend.texi (Function Attributes): Add @cindex entries
15841 for all attributes and regularize their format. Delete text
15842 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
15843 information about "eightbit_data", "tiny_data", and "model"
15844 variable attributes to the Variable Attributes section. Fix
15845 some obvious typos and copy-editing issues.
15846 (Variable Attributes, Type Attributes): Likewise add/fix
15847 @cindex entries for all attributes.
15848
15849 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15850
15851 PR target/65523
15852 * tree-chkp.c (chkp_build_returned_bound): Ignore
15853 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15854
15855 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
15856
15857 PR target/65505
15858 * config/sh/predicates.md (simple_mem_operand,
15859 displacement_mem_operand): Add test for reg.
15860 (short_displacement_mem_operand): Test for displacement_mem_operand
15861 before invoking sh_disp_addr_displacement.
15862 * config/sh/constraints.md (Sdd, Sra): Simplify.
15863 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15864 Remove redundant displacement_mem_operand tests.
15865
15866 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
15867
15868 PR target/65296
15869 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15870 the same -mmcu=MCU more than once.
15871
15872 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15873
15874 PR bootstrap/65522
15875 * ipa-devirt.c: Remove duplicate demangle.h include.
15876
15877 PR target/65504
15878 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15879 on the pseudo.
15880 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15881 REG_POINTER on *destptr after adjusting it for prologue size.
15882
15883 PR ipa/65521
15884 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15885 ultimate_alias_target ()->order ints instead of
15886 ultimate_alias_target () pointers.
15887
15888 2015-03-23 Richard Biener <rguenther@suse.de>
15889
15890 PR tree-optimization/65518
15891 * tree-vect-stmts.c (vectorizable_load): Reject single-element
15892 interleaving cases we generate absymal code for.
15893
15894 2015-03-23 Richard Biener <rguenther@suse.de>
15895
15896 PR tree-optimization/65494
15897 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15898 matches here.
15899 (vect_analyze_slp_instance): But do that here, always and once.
15900
15901 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15902
15903 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15904 adding T or multiplying by T+1 and subracting T.
15905
15906 2015-03-22 Jeff Law <law@redhat.com>
15907
15908 PR rtl-optimization/64317
15909 * Makefile.in (OBJS): Add gcse-common.c
15910 * gcse.c: Include gcse-common.h
15911 (struct modify_pair_s): Move structure definition to gcse-common.h
15912 (compute_transp): Move function to gcse-common.c.
15913 (canon_list_insert): Similarly.
15914 (record_last_mem_set_info): Break out some code and put it into
15915 gcse-common.c. Call into the new common code.
15916 (compute_local_properties): Pass additional arguments to compute_transp.
15917 * postreload-gcse.c: Include gcse-common.h and df.h
15918 (modify_mem_list_set, blocks_with_calls): New variables.
15919 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15920 (get_bb_avail_insn): Pass in the expression index too.
15921 (alloc_mem): Allocate memory for the new bitmaps and lists.
15922 (free_mem): Free memory for the new bitmaps and lists.
15923 (insert_expr_in_table): Record a bitmap index for each entry we
15924 add to the table.
15925 (record_last_mem_set_info): Call into common code in gcse-common.c.
15926 (get_bb_avail_insn): If no available insn was found in the requested
15927 BB. If BB has a single predecessor, see if the expression is
15928 transparent in BB and available in that single predecessor.
15929 (compute_expr_transp): New wrapper for compute_transp.
15930 (eliminate_partially_redundant_load): Pass expression's bitmap_index
15931 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
15932 (gcse_after_reload_main): If there are elements in the hash table,
15933 then compute transparency for all the elements in the hash table.
15934 * gcse-common.h: New file.
15935 * gcse-common.c: New file.
15936
15937 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
15938
15939 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15940 as an adjective.
15941 (System Headers): Likewise.
15942 (Ifdef): Likewise.
15943 (Traditional macros): Likewise.
15944 (Invocation): Likewise.
15945 (Option Index): Likewise.
15946 * doc/cppopts.texi (-M): Likewise.
15947 (-finput-charset): Likewise.
15948 (--help): Likewise.
15949 * doc.invoke.texi (AVR Options): Likewise.
15950 (V850 Options): Likewise.
15951
15952 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
15953
15954 PR ipa/65475
15955 * ipa-devirt.c: Include demangle.h
15956 (odr_type_d): Add field rtti_broken.
15957 (odr_subtypes_equivalent_p): Do not require name to match.
15958 (compare_virtual_tables): Fix typo; if type already has ODR violation,
15959 bypass the tests; be ready for function referneces in vtables that are
15960 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15961 (warn_odr): Give up for nameless types.
15962 (warn_types_mismatch): Report mismatch in mangled names;
15963 report mismatch in anonymous namespaces; look into component types to
15964 give useful error; report when mismatch is dragged in from other ODR
15965 type.
15966 (odr_types_equivalent_p): Match types for being polymorphic; avoid
15967 duplicated diagnostics.
15968 (add_type_duplicate): Reorder checks so more informative ones come
15969 first; fix typo; do not output "the extra base is defined here" when
15970 we did not warn.
15971 (BINFO_N_BASE_BINFOS): Relax sanity check.
15972
15973 2015-03-22 Martin Liska <mliska@suse.cz>
15974 Jakub Jelinek <jakub@redhat.com>
15975
15976 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15977 masks that can potentially include a builtin.
15978 (ix86_add_new_builtins): Introduce fast filter for isa values
15979 that cannot trigger builtin inclusion.
15980
15981 2015-03-22 Martin Liska <mliska@suse.cz>
15982
15983 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15984 (sem_item::update_hash_by_local_refs): Likewise.
15985 (sem_variable::get_hash): Empty line is fixed.
15986 (sem_item_optimizer::execute): Include adding of hash references.
15987 (sem_item_optimizer::update_hash_by_addr_refs): New function.
15988 (sem_item_optimizer::build_hash_based_classes): Use local hash.
15989 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15990 (sem_item::update_hash_by_local_refs): Likewise.
15991
15992 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15993
15994 PR ipa/65502
15995 * ipa-comdats.c (enqueue_references): Walk through thunks.
15996 (ipa_comdats): Likewise.
15997 (set_comdat_group_1): New function.
15998
15999 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
16000
16001 PR ipa/65475
16002 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
16003 non-polymorphic
16004
16005 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
16006 Gerald Pfeifer <gerald@pfeifer.com>
16007
16008 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
16009
16010 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
16011 Sandra Loosemore <sandra@codesourcery.com>
16012
16013 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
16014 function parameter declaration.
16015 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
16016 Update arguments to nios2_adjust_call_address().
16017 (sibcall_internal): Rename from *sibcall.
16018 (sibcall_value_internal): Rename from *sibcall_value.
16019 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
16020 (nios2_large_got_address): Add target temp reg parameter.
16021 (nios2_got_address): Adjust call to nios2_large_got_address, add
16022 force_reg around it.
16023 (nios2_load_pic_address): Add target temp reg parameter, replace call
16024 to nios2_got_address with corresponding code.
16025 (nios2_legitimize_constant_address): Update call to
16026 nios2_load_pic_address.
16027 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
16028 to use temp reg for PIC loading purposes.
16029 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
16030 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16031 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
16032
16033 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
16034
16035 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
16036 usage of "the @option{...}".
16037 (-Wopenmp-simd): Likewise.
16038 (-fsanitize-recover): Likewise.
16039 (-fsanitize-undefined-trap-on-error): Likewise.
16040 (-flto): Likewise.
16041 (tracer-dynamic-coverage-feedback): Likewise.
16042 (reorder-block-duplicate-feedback): Likewise.
16043 (loop-unroll-jam-size): Likewise.
16044 (-B): Likewise.
16045 (-I-): Likewise.
16046 (-mabs=legacy): Likewise.
16047 (-mupper-regs-df): Likewise.
16048 (-mupper-regs-sf): Likewise.
16049 (-mpointers-to-nested-functions): Likewise.
16050
16051 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
16052
16053 * doc/extend.texi (Cilk Plus Builtins): Add markup.
16054
16055 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
16056
16057 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
16058 additional index entries and cross-references.
16059 (-fchkp-check-incomplete-type): Likewise.
16060 (-fchkp-first-field-has-own-bounds): Likewise.
16061 (-fchkp-narrow-to-innermost-array): Likewise.
16062 (-fchkp-use-fast-string-functions): Likewise.
16063 (-fchkp-use-nochk-string-functions): Likewise.
16064 (-fchkp-use-static-const-bounds): Likewise.
16065 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
16066 (-fchkp-instrument-marked-only): Likewise.
16067 (-fchkp-use-wrappers): Likewise.
16068 (-static-libmpx): Likewise.
16069 (-static-libmpxwrappers): Likewise.
16070 * doc/extend.texi (bnd_legacy): Likewise.
16071 (bnd_instrument): Likewise.
16072 (bnd_variable_size): Likewise.
16073 (Pointer Bounds Checker builtins): Likewise.
16074
16075 2015-03-21 Tom de Vries <tom@codesourcery.com>
16076
16077 PR tree-optimization/65458
16078 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
16079 * cgraph.h (cgraph_node): Add parallelized_function field.
16080 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
16081 (input_overwrite_node): Read parallelized_function field.
16082 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
16083 parallelized_function on cgraph_node for child_fn.
16084 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
16085 Remove include of gt-tree-parloops.h.
16086 (parallelized_functions): Remove static variable.
16087 (parallelized_function_p): Rewrite using parallelized_function field of
16088 cgraph_node.
16089 (create_loop_fn): Remove adding to parallelized_functions.
16090 * Makefile.in (GTFILES): Remove tree-parloops.c
16091
16092 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
16093
16094 PR rtl-optimization/64366
16095 * lra.c (lra_update_insn_regno_info): Consider regs in
16096 CALL_INSN_FUNCTION_USAGE memory.
16097
16098 2015-03-20 Richard Biener <rguenther@suse.de>
16099
16100 PR middle-end/64715
16101 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
16102 for type comparison and gcc_checking_assert.
16103 (chrec_fold_plus_poly_poly): Likewise.
16104 (chrec_fold_multiply_poly_poly): Likewise.
16105 (chrec_convert_1): Likewise.
16106 * gimplify.c (gimplify_expr): Remove premature folding of
16107 &X + CST to &MEM[&X, CST].
16108
16109 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
16110
16111 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
16112 already is final.
16113 (ipa_inline): Recompute inline_failed codes.
16114 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
16115 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
16116 CIF_FINAL_ERROR.
16117
16118 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
16119
16120 PR rtl-optimization/60851
16121 * recog.c (constrain_operands): Accept a pseudo register before reload
16122 for LRA enabled targets.
16123
16124 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
16125
16126 PR target/65240
16127 * config/rs6000/predicates.md (easy_fp_constant): Remove special
16128 -ffast-math handling that kept non-0 constants live in the RTL
16129 until reload. Remove logic testing the number of instructions it
16130 took to create a constant in a GPR that was never used, due to a
16131 test for soft-float earlier.
16132 (memory_fp_constant): Delete, no longer used.
16133
16134 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
16135 alternatives for loading non-0 constants into GPRs for hard
16136 floating point that is no longer needed due to changes in
16137 easy_fp_constant. Add support for loading 0.0 into GPRs.
16138 (mov<mode>_hardfloat32): Likewise.
16139 (mov<mode>_hardfloat64): Likewise.
16140 (mov<mode>_64bit_dm): Likewise.
16141 (movtd_64bit_nodm): Likewise.
16142 (pre-reload move FP constant define_split): Delete define_split,
16143 since it is no longer used.
16144 (extenddftf2_internal): Remove GHF constraints that are not valid
16145 for extenddftf2.
16146
16147 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
16148
16149 PR rtl-optimization/63491
16150 * lra-constraints.c (check_and_process_move): Use src instead of
16151 sreg. Remove some dead code.
16152
16153 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
16154
16155 PR ipa/65380
16156 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
16157 (sem_variable::merge): Likewise.
16158
16159 2015-03-19 Martin Liska <mliska@suse.cz>
16160
16161 PR ipa/65465
16162 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
16163 all fields of cgraph_thunk_info.
16164
16165 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
16166
16167 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
16168 clone instrumented thunks.
16169
16170 2015-03-19 Richard Biener <rguenther@suse.de>
16171
16172 Revert
16173 2015-03-10 Richard Biener <rguenther@suse.de>
16174
16175 PR middle-end/63155
16176 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16177 * tree-ssa-coalesce.c: Include timevar.h.
16178 (attempt_coalesce): Handle graph being NULL.
16179 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16180 Split out abnormal coalescing to ...
16181 (perform_abnormal_coalescing): ... this function.
16182 (coalesce_ssa_name): Perform abnormal coalescing without computing
16183 live/conflict.
16184 (verify_ssa_coalescing_worker): New function.
16185 (verify_ssa_coalescing): Likewise.
16186
16187 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
16188 Jakub Jelinek <jakub@redhat.com>
16189
16190 PR sanitizer/65400
16191 * tsan.c (instrument_gimple): Clear tail call flag on
16192 calls.
16193
16194 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16195
16196 PR sanitizer/65400
16197 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
16198 call in the return bb.
16199 (find_split_points): Add RETURN_BB argument, don't call
16200 find_return_bb.
16201 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
16202 if true append TSAN_FUNC_EXIT internal call after the call to
16203 the split off function.
16204 (execute_split_functions): Call find_return_bb here.
16205 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
16206 Adjust find_split_points and split_function calls.
16207
16208 2015-03-18 DJ Delorie <dj@redhat.com>
16209
16210 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
16211 (iorqi3_virt): Likewise.
16212
16213 2015-03-18 Tom de Vries <tom@codesourcery.com>
16214
16215 * tree-parloops.c (parallelize_loops): Make static.
16216 * tree-parloops.h (parallelize_loops): Remove extern declaration.
16217
16218 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
16219
16220 PR middle-end/64491
16221 Revert:
16222 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
16223
16224 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
16225 condition would be removed due to undefined behaviour.
16226
16227 2015-03-18 Martin Liska <mliska@suse.cz>
16228
16229 PR ipa/65432
16230 * cgraph.c (cgraph_node::get_create): Remove unnecessary
16231 xstrdup_for_dump wrapper.
16232 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
16233 sem_item::name.
16234 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
16235 with xstrdup_for_dump.
16236 (sem_variable::equals): Likewise.
16237 (sem_item_optimizer::read_section): Use symtab_node::name instead of
16238 sem_item::name.
16239 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
16240 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
16241 symtab_node::asm_name with xstrdup_for_dump.
16242 (congruence_class::dump): Use symtab_node::name instead of
16243 sem_item::name.
16244 * ipa-icf.h (symtab_node::name): Remove.
16245 (symtab_node::asm_name): Likewise.
16246
16247 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16248
16249 PR tree-optimization/65450
16250 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
16251 function.
16252 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
16253 it instead of duplicate_ssa_name_ptr_info.
16254
16255 PR target/65222
16256 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
16257
16258 2015-03-18 Richard Biener <rguenther@suse.de>
16259
16260 * tree-data-ref.h (struct access_matrix): Remove.
16261 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16262 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16263 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
16264 (am_vector_index_for_loop): Likewise.
16265 (struct data_reference): Remove access_matrix member.
16266 (DR_ACCESS_MATRIX): Remove.
16267 (lambda_vector_new): Add comment.
16268 (lambda_matrix_new): Use XOBNEWVEC.
16269
16270 2015-03-18 Richard Biener <rguenther@suse.de>
16271
16272 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16273 (pass_ch::execute): Cleanup the CFG only if we did sth.
16274 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16275
16276 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16277
16278 * expmed.c (synth_mult): Use std::swap instead of manually
16279 swapping algorithms.
16280
16281 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16282
16283 PR target/65078
16284 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16285
16286 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
16287
16288 PR target/65296
16289 * config/avr/avr.opt (-nodevicelib): New option.
16290 * doc/invoke.texi (AVR Options): Document it.
16291 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16292 libgcc.a, libc.a, libm.a.
16293 * config/avr/specs.h: Same.
16294 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16295 which don't (directly) depend on the device. Print more help.
16296 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16297 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16298 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16299 case of an error.
16300 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16301 for specs file name.
16302 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16303 * config/avr/avr-mcus.def: Adjust initializers and comments.
16304
16305 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
16306
16307 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16308 DECL_ONE_ONLY to check if decl is one only.
16309 * ipa-split.c (consider_split): Limit splitt of one only functions.
16310
16311 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16312
16313 PR tree-optimization/65427
16314 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16315 functions.
16316 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16317
16318 2015-03-16 Marek Polacek <polacek@redhat.com>
16319
16320 * cgraph.h (add_new_static_var): Remove declaration.
16321 * varpool.c (add_new_static_var): Remove function.
16322
16323 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16324
16325 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16326 instead of vec<tree> * with vec_alloc and release for args.
16327 Adjust all users.
16328
16329 PR middle-end/65431
16330 * omp-low.c (delete_omp_context): Only splay_tree_delete
16331 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16332 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
16333
16334 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
16335
16336 PR sanitizer/64820
16337 * cfgexpand.c (align_base): New function.
16338 (alloc_stack_frame_space): Call it.
16339 (expand_stack_vars): Align prev_frame to be sure
16340 data->asan_vec elements aligned properly.
16341
16342 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
16343
16344 PR middle-end/65409
16345 * expr.c (store_field): Do not do a direct block copy if the source is
16346 a PARALLEL with BLKmode.
16347
16348 2015-03-16 Tom de Vries <tom@codesourcery.com>
16349
16350 PR middle-end/65414
16351 Revert:
16352 2015-03-12 Tom de Vries <tom@codesourcery.com>
16353
16354 PR rtl-optimization/64895
16355 * lra-lives.c (check_pseudos_live_through_calls): Use
16356 actual_call_used_reg_set instead of call_used_reg_set, if available.
16357
16358 2015-03-16 Alan Modra <amodra@gmail.com>
16359
16360 PR target/63150
16361 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16362 Modify Z->r bswapdi splitter to use dest in place of scratch.
16363 In r->Z and Z->r bswapdi splitter rename word_high, word_low
16364 to word1, word2 and rearrange logic to suit.
16365 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16366 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
16367 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16368 Add one '?' on r->r. Modify Z->r splitter to avoid need for
16369 early clobber.
16370
16371 2015-03-14 Jakub Jelinek <jakub@redhat.com>
16372
16373 PR tree-optimization/65369
16374 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16375 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16376 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16377
16378 PR tree-optimization/65418
16379 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16380 are casts in the first PLUS_EXPR operand, ensure tbias and
16381 *totallowp are in the inner type.
16382
16383 PR rtl-optimization/65401
16384 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16385 argument. If true, adjust_address_nv of x with big-endian
16386 correction for the mode widening to GET_MODE (y).
16387 (make_field_assignment): Don't do MEM mode widening here.
16388 Use MEM_P instead of GET_CODE == MEM.
16389
16390 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16391
16392 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16393 the external decls.
16394
16395 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16396
16397 PR target/64600
16398 * config/arm/arm.c (arm_gen_constant, AND case): Use
16399 ARM_SIGN_EXTEND when constructing AND mask.
16400
16401 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16402
16403 * graph.c (print_graph_cfg): Make function names visible and append
16404 parenthesis to it. Also make groups of basic blocks belonging to the
16405 same function visible.
16406
16407 2015-03-12 Richard Biener <rguenther@suse.de>
16408
16409 PR middle-end/44563
16410 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16411 to avoid quadratic behavior with inline expansion splitting blocks.
16412 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16413 with the successor if the predecessor will be merged with it.
16414 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16415 entry block with its successor.
16416
16417 2015-03-13 Richard Biener <rguenther@suse.de>
16418
16419 PR middle-end/44563
16420 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16421 (cleanup_tree_cfg_1): Do not call it.
16422 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16423 (fixup_noreturn_call): Mark the stmt as control altering.
16424 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16425 here.
16426 (pass_data_fixup_cfg): Produce a dump file.
16427 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16428 (need_noreturn_fixup): New global.
16429 (pass_dominator::execute): Fixup queued noreturn calls.
16430 (optimize_stmt): Queue calls that became noreturn for fixup.
16431 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16432 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16433 (el_to_fixup): New global.
16434 (eliminate_dom_walker::before_dom_childre): Queue calls that
16435 became noreturn for fixup.
16436 (eliminate): Fixup queued noreturn calls.
16437 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16438 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16439 (substitute_and_fold_dom_walker::before_dom_children): Queue
16440 alls that became noreturn for fixup.
16441 (substitute_and_fold): Fixup queued noreturn calls.
16442
16443 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
16444
16445 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16446 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16447 are building; for methods check ODR type of class they belong to if
16448 they may lead to a polymorphic call.
16449 (sem_function::compare_polymorphic_p): Be bit smarter about testing
16450 when function may lead to a polymorphic call.
16451 (sem_function::compare_type_list): Remove.
16452 (sem_variable::equals): Update use of compatible_types_p.
16453 (sem_variable::parse_tree_refs): Remove.
16454 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16455 cdtor.
16456 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16457 matching here.
16458 (func_checker::compatible_polymorphic_types_p): Break out from ...
16459 (unc_checker::compatible_types_p): ... here.
16460 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16461 Declare.
16462 (unc_checker::compatible_types_p): Update.
16463 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16464 Remove.
16465
16466 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16467
16468 PR rtl-optimization/65235
16469 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16470 When first element of vec_concat is const_int, calculate its size
16471 using second element.
16472
16473 2015-03-12 Richard Biener <rguenther@suse.de>
16474
16475 PR middle-end/65270
16476 * fold-const.c (operand_equal_p): Fix ordering of resetting
16477 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16478
16479 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
16480
16481 * config/s390/s390.c (s390_reorg): Move code to output nops after label
16482 to s390_reorg ().
16483 (s390_asm_output_function_label): Likewise.
16484 * config/s390/s390.c (s390_asm_output_function_label):
16485 Fix function label alignment with -mhtopatch.
16486 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16487 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16488 ("nop_2_byte"): New define_insn.
16489 ("nop_4_byte"): Likewise.
16490 ("nop_6_byte"): Likewise.
16491 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16492 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16493
16494 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16495
16496 PR target/65103
16497 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16498 register.
16499
16500 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16501
16502 PR target/65044
16503 * toplev.c (process_options): Restrict Pointer Bounds Checker
16504 usage with Address Sanitizer.
16505
16506 2015-03-12 Richard Biener <rguenther@suse.de>
16507
16508 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16509 to split on.
16510 * omp-low.c (expand_omp_taskreg): Split block before removing
16511 the stmt.
16512 (expand_omp_target): Likewise.
16513 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16514 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16515 stmt to split_block.
16516
16517 2015-03-12 Tom de Vries <tom@codesourcery.com>
16518
16519 PR rtl-optimization/64895
16520 * lra-lives.c (check_pseudos_live_through_calls): Use
16521 actual_call_used_reg_set instead of call_used_reg_set, if available.
16522
16523 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16524
16525 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16526 (cgraph_node::remove): Likewise.
16527 (cgraph_node::get_untransformed_body): Likewise.
16528 * varpool.c (varpool_node::remove): Likewise.
16529 (varpool_node::get_constructor): Add sanity check.
16530
16531 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
16532
16533 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16534 old GCC versions.
16535 (-fabi-compat-version): Likewise.
16536 (-ffriend-injection): Likewise.
16537 (-Wdeclaration-after-statement): Likewise.
16538 (-fomit-frame-pointer): Likewise.
16539 (-ftree-coalesce-inlined-vars): Likewise.
16540 (-fvisibility=): Likewise.
16541 * doc/extend.texi (Typeof): Likewise.
16542 (Zero Length): Likewise.
16543 (Escaped Newlines): Likewise.
16544 (Compound Literals): Likewise.
16545 (Function Attributes): Likewise.
16546 (Label Attributes): Likewise.
16547 (Type Attributes): Likewise.
16548 (Function Names): Likewise.
16549 (Other Builtins): Likewise.
16550 (Function Specific Option Pragmas): Likewise.
16551 (C++ Interface): Likewise.
16552
16553 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
16554
16555 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16556
16557 2015-03-11 Marek Polacek <polacek@redhat.com>
16558
16559 PR tree-optimization/65388
16560 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16561
16562 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16563
16564 PR target/65296
16565 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16566 * configure: Regenerate.
16567 * config.in: Regenerate.
16568 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16569 [-mn-flash]: Document it.
16570 [__AVR_ARCH__]: Document avrtiny.
16571
16572 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16573 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16574 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16575
16576 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16577
16578 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16579
16580 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16581
16582 PR target/65242
16583 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16584 allow reloads of PLUS in floating point/VSX registers.
16585
16586 2015-03-11 Junmo Park <junmoz.park@samsung.com>
16587
16588 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16589 crypto_sha256_fast.
16590 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16591
16592 2015-03-11 Richard Biener <rguenther@suse.de>
16593
16594 PR tree-optimization/65310
16595 * tree-sra.c (build_ref_for_offset): Also preserve larger
16596 alignment.
16597
16598 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
16599
16600 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16601
16602 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16603
16604 PR target/65368
16605 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16606 new define_expand.
16607 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16608
16609 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16610
16611 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16612 (sem_function::equals_wpa): ... here.
16613
16614 2015-03-10 Marek Polacek <polacek@redhat.com>
16615 Jakub Jelinek <jakub@redhat.com>
16616
16617 PR sanitizer/65367
16618 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16619 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
16620 separately.
16621
16622 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16623
16624 PR target/65286
16625 * config/rs6000/t-linux: For powerpc64* target set
16626 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16627
16628 2015-03-10 Richard Biener <rguenther@suse.de>
16629
16630 PR middle-end/44563
16631 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16632 for redirect_all_calls.
16633
16634 2015-03-10 Marek Polacek <polacek@redhat.com>
16635
16636 * gdbinit.in (pcfun): Define and document.
16637
16638 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
16639
16640 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16641 of libgomp-plugin.h.
16642 (find_target_compiler): Support a case when the path to gcc is
16643 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16644 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16645 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16646 libgomp-plugin.h.
16647 (main): Use GCC_INSTALL_NAME as target_driver_name.
16648 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16649 define.
16650 (mkoffload.o): Remove obsolete include path and defines.
16651 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16652
16653 2015-03-10 Richard Biener <rguenther@suse.de>
16654
16655 PR middle-end/63155
16656 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16657 * tree-ssa-coalesce.c: Include timevar.h.
16658 (attempt_coalesce): Handle graph being NULL.
16659 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16660 Split out abnormal coalescing to ...
16661 (perform_abnormal_coalescing): ... this function.
16662 (coalesce_ssa_name): Perform abnormal coalescing without computing
16663 live/conflict.
16664 (verify_ssa_coalescing_worker): New function.
16665 (verify_ssa_coalescing): Likewise.
16666
16667 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16668
16669 PR target/65296
16670 * config.gcc (extra_options) [avr]: Remove.
16671 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16672 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16673 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16674
16675 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16676 (-mmcu=): Add Var and MissingArgError properties.
16677 (-march=): Remove.
16678 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16679 * config/avr/t-multilib: Regenerate.
16680 * config/avr/specs.h: New file.
16681 * config/avr/driver-avr.c: New file.
16682 * config/avr/genopt.sh: Remove file.
16683 * config/avr/avr-tables.opt: Remove file.
16684 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16685 * config/avr/avr-c.c: Same.
16686 * avr-arch.h: Same.
16687 (avr_current_device): Remove proto.
16688 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16689 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16690 (EXTRA_SPEC_FUNCTIONS): Define.
16691 (avr_devicespecs_file): New specs function proto.
16692 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16693 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16694 (avr_current_device): Remove definition and usage.
16695 (avr_set_core_architecture): New static function.
16696 (avr_option_override): Use it.
16697 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16698 (mcu_name): New static array.
16699 (comparator, avr_archs_str, avr_mcus_str): New static functions.
16700 (avr_inform_devices, avr_inform_core_architectures): New functions.
16701 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16702 (avrlibc.h) [WITH_AVRLIBC]: Include.
16703 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16704 (print_mcu): Rewrite from scratch.
16705 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16706 Forward to avr-specific specs defined in device-specs file.
16707 * config/avr/t-avr (driver-avr.o): New rule.
16708 (avr-devices.o): Depend on avr-arch.h.
16709 (avr-mcus): No more depend on avr-tables.opt.
16710 (avr-tables.opt): Remove rule.
16711 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16712
16713 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16714
16715 * c-family/c.opt (fchkp-use-wrappers): New.
16716 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16717 (chkp_wrap_function): New.
16718 (chkp_build_instrumented_fndecl): Support wrapped
16719 functions.
16720 * doc/invoke.texi (-fcheck-pointer-bounds): New.
16721 (-fchkp-check-incomplete-type): New.
16722 (-fchkp-first-field-has-own-bounds): New.
16723 (-fchkp-narrow-bounds): New.
16724 (-fchkp-narrow-to-innermost-array): New.
16725 (-fchkp-optimize): New.
16726 (-fchkp-use-fast-string-functions): New.
16727 (-fchkp-use-nochk-string-functions): New.
16728 (-fchkp-use-static-bounds): New.
16729 (-fchkp-use-static-const-bounds): New.
16730 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16731 (-fchkp-check-read): New.
16732 (-fchkp-check-write): New.
16733 (-fchkp-store-bounds): New.
16734 (-fchkp-instrument-calls): New.
16735 (-fchkp-instrument-marked-only): New.
16736 (-fchkp-use-wrappers): New.
16737 (-static-libmpx): New.
16738 (-static-libmpxwrappers): New.
16739
16740 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16741
16742 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16743 (CHKP_SPEC): Add wrappers library.
16744 * c-family/c.opt (static-libmpxwrappers): New.
16745
16746 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16747
16748 * config/i386/linux-common.h (LIBMPX_LIBS): New.
16749 (LIBMPX_SPEC): New.
16750 (CHKP_SPEC): New.
16751 * gcc.c (CHKP_SPEC): New.
16752 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16753 * c-family/c.opt (static-libmpx): New.
16754
16755 2015-03-10 Richard Biener <rguenther@suse.de>
16756
16757 PR middle-end/44563
16758 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16759 for compare_type.
16760 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16761 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16762 (cgraph_add_edge_to_call_site_hash): Likewise.
16763 (cgraph_node::get_edge): Likewise.
16764 (cgraph_edge::set_call_stmt): Likewise.
16765 (cgraph_edge::remove_caller): Likewise.
16766
16767 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
16768
16769 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16770 (callee_saved_gpr_regs_size): ... this.
16771 (callee_saved_regs_first_regno): Rename to ...
16772 (callee_saved_first_gpr_regno): ... this.
16773 (callee_saved_regs_last_regno) Rename to ...
16774 (callee_saved_last_gpr_regno): ... this.
16775 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16776 variables.
16777 (nds32_initial_elimination_offset): Likewise.
16778 (nds32_expand_prologue): Likewise.
16779 (nds32_expand_epilogue): Likewise.
16780 (nds32_expand_prologue_v3push): Likewise.
16781 (nds32_expand_epilogue_v3pop): Likewise.
16782 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16783 Adjust renamed variables.
16784 (nds32_output_stack_pop): Likewise.
16785
16786 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
16787
16788 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16789 code in comment.
16790
16791 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16792
16793 PR rtl-optimization/65321
16794 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16795 than shift mode.
16796 * var-tracking.c (use_narrower_mode): Likewise.
16797
16798 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16799
16800 PR tree-optimization/65355
16801 * varasm.c (notice_global_symbol): Do not produce RTL.
16802 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16803 anchor.
16804 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16805 check for section anchors.
16806
16807 2015-03-10 Alan Modra <amodra@gmail.com>
16808
16809 PR target/65286
16810 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16811 to be single-arch by default. Set cpu_is_64bit for powerpc64
16812 given --with-cpu=native.
16813 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16814 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16815 and powerpc64le.
16816 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16817 rs6000_isa_flags rather than TARGET_64BIT.
16818
16819 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
16820 Kaz Kojima <kkojima@gcc.gnu.org>
16821
16822 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16823
16824 2015-03-09 Jakub Jelinek <jakub@redhat.com>
16825
16826 PR lto/65361
16827 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16828 on a TREE_BINFO, instead use BINFO_TYPE.
16829
16830 2015-03-09 Richard Biener <rguenther@suse.de>
16831
16832 PR middle-end/65270
16833 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16834 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16835 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
16836 of that. When comparing dereferences compare alignment.
16837 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16838
16839 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16840
16841 * ipa-inline-analysis.c (check_callers): Check
16842 node->can_remove_if_no_direct_calls_and_refs_p.
16843 (growth_likely_positive): Reorganize to call
16844 can_remove_if_no_direct_calls_p later.
16845 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16846 will_be_removed_from_program_if_no_direct_calls_p): Add
16847 will_inline parameter.
16848 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16849 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16850 Handle inliner case correctly.
16851
16852 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16853
16854 PR tree-optimization/63743
16855 * cfgexpand.c (reorder_operands): Also reorder if only second operand
16856 had its definition forwarded by TER.
16857
16858 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16859
16860 PR lto/65316
16861 * ipa-utils.h (types_odr_comparable): Add strict argument.
16862 * ipa-devirt.c: Fix whitespace;
16863 (odr_hasher): Remove.
16864 (odr_name_hasher, odr_vtable_hasher): New hashers.
16865 (can_be_name_hashed_p): New predicate.
16866 (hash_type_name): remove.
16867 (hash_odr_name): New.
16868 (odr_name_hasher::hash): new.
16869 (can_be_vtable_hashed_p): New.
16870 (hash_odr_vtable): New.
16871 (odr_vtable_hasher::hash): New.
16872 (types_same_for_odr): Add strict parameter.
16873 (types_odr_comparable): Likewise.
16874 (odr_name_hasher::equal): New.
16875 (odr_vtable_hasher::equal): New.
16876 (odr_name_hasher::remove): New.
16877 (odr_hash_type): Change to hash_table<odr_name_hasher>.
16878 (odr_vtable_hash_type): New.
16879 (odr_vtable_hash): New.
16880 (odr_subtypes_equivalent_p): Do strict comparsion.
16881 (add_type_duplicate): Merge type names; cleanup; avoid type
16882 duplicates.
16883 (register_odr_type): Initialize vtable hash.
16884 (build_type_inheritance_graph): Likewise
16885 (get_odr_type): Reorg to use two hashes.
16886 (dump_possible_polymorphic_call_targets): Move sanity check after debug
16887 output.
16888 (ipa_devirt): Dump type_inheritance_graph.
16889 (types_same_for_odr): Add strict mode.
16890
16891 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16892
16893 PR ipa/65334
16894 * cgraph.h (symtab_node): Add definition_alignment,
16895 can_increase_alignment_p and increase_alignment.
16896 * symtab.c (symtab_node::can_increase_alignment_p,
16897 increase_alignment_1, symtab_node::increase_alignment,
16898 symtab_node::definition_alignment): New.
16899 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16900 can_increase_alignment_p.
16901 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16902 * tree-vect-stmts.c (ensure_base_align): Likewise.
16903 * varasm.c (function_section_1): Use definition_alignment.
16904 (assemble_start_function): Likewise.
16905 (emit_local): likewise.
16906 (build_constant_desc): Likewsie.
16907 (output_constant_def_contents): Likewise.
16908 (place_block_symbol): Likewise.
16909 (output_object_block): Likewise.
16910
16911 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16912
16913 PR ipa/65316
16914 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16915 when outputting debug.
16916
16917 2015-03-07 Marek Polacek <polacek@redhat.com>
16918 Martin Uecker <uecker@eecs.berkeley.edu>
16919
16920 PR sanitizer/65280
16921 * doc/invoke.texi: Update description of -fsanitize=bounds.
16922
16923 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
16924
16925 * tree-ssa-phiopt.c (neg_replacement): Remove.
16926 (tree_ssa_phiopt_worker): Remove negate optimization.
16927
16928 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16929
16930 PR ipa/65302
16931 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16932
16933 2015-03-06 Richard Biener <rguenther@suse.de>
16934
16935 PR middle-end/64928
16936 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16937 and liveout_obstack members.
16938 (calculate_live_on_exit): Remove.
16939 (calculate_live_ranges): Change declaration.
16940 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16941 (new_tree_live_info): Adjust.
16942 (calculate_live_ranges): Delete livein when not wanted.
16943 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16944 Deal with partly deleted live info.
16945 (loe_visit_block): Remove temporary bitmap by using
16946 bitmap_ior_and_compl_into.
16947 (live_worklist): Adjust accordingly.
16948 (calculate_live_on_exit): Make static.
16949 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16950 we do not need livein.
16951
16952 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
16953
16954 * real.c (real_from_string): Fix typo in assertion.
16955
16956 2015-03-06 Alex Velenko <alex.velenko@arm.com>
16957
16958 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16959 the patch.
16960
16961 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16962
16963 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16964
16965 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
16966
16967 PR target/64342
16968 * lra-assigns.c (find_hard_regno_for): Rename to
16969 find_hard_regno_for_1. Add a new parameter.
16970 (find_hard_regno_for): New function using find_hard_regno_for_1.
16971
16972 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16973
16974 PR rtl-optimization/65067
16975 * expmed.c (store_bit_field, extract_bit_field): Reworked the
16976 strict volatile bitfield handling.
16977
16978 2015-03-05 Martin Liska <mliska@suse.cz>
16979
16980 PR ipa/65318
16981 * ipa-icf.c (sem_variable::equals): Compare variables types.
16982
16983 2015-03-05 Richard Henderson <rth@redhat.com>
16984
16985 PR target/65121
16986 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16987 correctly check weak symbol binding.
16988
16989 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
16990
16991 PR middle-end/65315
16992 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16993 needed alignment.
16994
16995 2015-03-05 Martin Liska <mliska@suse.cz>
16996
16997 * ipa-inline.c (inline_small_functions): Set default value to
16998 prevent warning during bootstrap.
16999 * tree.h: Add pragma guard that ignores false positives during
17000 bootstrap.
17001
17002 2015-03-05 Richard Biener <rguenther@suse.de>
17003
17004 PR tree-optimization/65310
17005 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17006 Properly preserve alignment of the base of the access.
17007
17008 2015-03-05 Richard Biener <rguenther@suse.de>
17009
17010 PR ipa/65270
17011 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
17012 Compare dependence info.
17013
17014 2015-03-05 Richard Biener <rguenther@suse.de>
17015
17016 PR middle-end/65233
17017 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
17018 tree-into-ssa.h.
17019 (walk_ssa_copies): Revert last chage. Instead do not walk
17020 SSA names registered for SSA update.
17021
17022 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
17023
17024 PR ipa/65270
17025 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
17026 vtable references for their containing type.
17027 (sem_function::equals_wpa): Compare TYPE_RESTRICT
17028 and type attributes.
17029
17030 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
17031
17032 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
17033 before negating it.
17034 * stor-layout.c (finalize_record_size): Revert latest change.
17035
17036 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
17037
17038 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
17039
17040 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
17041
17042 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
17043 for correct comdat handling.
17044 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
17045 Likewise.
17046 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
17047 (used_from_object_file_p_worker): Remove.
17048 (cgraph_node::only_called_directly_or_alised): Add
17049 used_from_object_file_p.
17050 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
17051 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
17052 can_remove_if_no_direct_calls_and_refs_p.
17053
17054 2015-03-04 Nick Clifton <nickc@redhat.com>
17055
17056 * config/rl78/rl78.h (enum reg_class): Remove real registers from
17057 General register class.
17058 * config/rl78/rl78-real.md: Replace general register constraints
17059 with real+virtual register constraints.
17060
17061 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17062
17063 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
17064 from checking for -mhtm option.
17065
17066 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
17067
17068 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
17069 (struct ipa_sra_check_caller_data): Add has_thunk field.
17070 (ipa_sra_check_caller): Check for thunk.
17071 (ipa_sra_preliminary_function_checks): Give up on function with
17072 thunks.
17073 (ipa_early_sra): Use call_for_symbol_and_aliases.
17074
17075 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
17076
17077 PR target/65249
17078 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
17079 called for __stack_chk_guard symbol.
17080
17081 2015-03-03 DJ Delorie <dj@redhat.com>
17082
17083 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
17084 inc/dec.
17085 (*addhi3_real): Likewise.
17086 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
17087 pattern to match incrementing memory.
17088 * config/rl78/predicates.md (rl78_1_2_operand): New.
17089 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
17090 it's the same and only mem.
17091 (rl78_alloc_physical_registers_op2): If there's effectively only
17092 one MEM, transcode it into HL.
17093 (rl78_far_p): Reject addresses that aren't legitimate.
17094
17095 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
17096
17097 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
17098 negating it.
17099
17100 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
17101
17102 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
17103
17104 Implement call0 ABI for xtensa
17105 * config/xtensa/constraints.md ("a" constraint): Include stack
17106 pointer in case of call0 ABI.
17107 ("q" constraint): Make empty in case of call0 ABI.
17108 ("D" constraint): Include stack pointer in case of call0 ABI.
17109 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
17110 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
17111 prototypes.
17112 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
17113 variable.
17114 (xtensa_regno_to_class): Make it a local variable in the
17115 function xtensa_regno_to_class.
17116 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
17117 macro, function prototype and implementation.
17118 (reg_nonleaf_alloc_order): Make it a local variable in the
17119 function order_regs_for_local_alloc.
17120 (xtensa_conditional_register_usage): New function.
17121 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
17122 (xtensa_valid_move): Allow direct moves to stack pointer
17123 register in call0 ABI.
17124 (xtensa_setup_frame_addresses): Only spill register windows in
17125 windowed ABI.
17126 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
17127 call0 ABI respectively.
17128 (xtensa_function_arg_1): Only mark a7 register for copying in
17129 windowed ABI.
17130 (xtensa_call_save_reg): New function.
17131 (compute_frame_size): Add space for callee saved register
17132 storage to the frame size in call0 ABI.
17133 (xtensa_expand_prologue): Generate code to set up stack frame
17134 and save callee-saved registers in call0 ABI.
17135 (xtensa_expand_epilogue): New function.
17136 (xtensa_set_return_address): New function.
17137 (xtensa_return_addr): Calculate return address in call0 ABI.
17138 (xtensa_builtin_saveregs): Only mark a7 register for copying and
17139 emit copying code in windowed ABI.
17140 (order_regs_for_local_alloc): Add preferred register allocation
17141 order for non-leaf function in call0 ABI.
17142 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
17143 (xtensa_asm_trampoline_template): Add trampoline generation for
17144 call0 ABI.
17145 (xtensa_trampoline_init): Add trampoline initialization for
17146 call0 ABI.
17147 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
17148 functions.
17149 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
17150 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
17151 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
17152 ABI call-used registers.
17153 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
17154 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
17155 call0 ABI.
17156 (REG_CLASS_CONTENTS): Include all registers into the preferred
17157 reload registers set, adjust the set in the
17158 xtensa_conditional_register_usage.
17159 (xtensa_regno_to_class): Drop variable declaration.
17160 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
17161 function.
17162 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
17163 respectively.
17164 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
17165 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
17166 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
17167 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
17168 location in call0 ABI.
17169 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
17170 stack adjustment size when handling exception.
17171 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
17172 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
17173 definitions.
17174 ("return" pattern): Generate ret.n/ret in call0 ABI.
17175 ("epilogue" pattern): Expand epilogue.
17176 ("nonlocal_goto" pattern): Use default in call0 ABI.
17177 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
17178 emit eh_set_a0_* depending on ABI.
17179 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
17180 ("eh_set_a0_call0", "blockage"): New patterns.
17181
17182 2015-03-03 Martin Liska <mliska@suse.cz>
17183
17184 PR ipa/65287
17185 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
17186
17187 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17188
17189 PR 65138/target
17190 * config/rs6000/rs6000-tables.opt: Regenerate table.
17191
17192 2015-03-03 Renlin Li <renlin.li@arm.com>
17193
17194 * doc/md.texi (@item ^): Change ? into ^.
17195
17196 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
17197
17198 * doc/tm.texi: Regenerated.
17199
17200 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
17201
17202 * builtins.c (expand_builtin_return_addr): Add
17203 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
17204 surrounding #ifdef.
17205 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
17206 definition to 1.
17207 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
17208 Likewise.
17209 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
17210 undefined.
17211 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
17212 paragraph.
17213
17214 2015-03-03 Martin Jambor <mjambor@suse.cz>
17215 Eric Botcazou <ebotcazou@adacore.com>
17216
17217 * tree-sra.c (ipa_sra_check_caller_data): New type.
17218 (has_caller_p): Removed.
17219 (ipa_sra_check_caller): New function.
17220 (ipa_sra_preliminary_function_checks): Use it.
17221
17222 2015-03-03 Martin Liska <mliska@suse.cz>
17223
17224 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
17225 instead of if branch.
17226
17227 2015-03-03 Martin Liska <mliska@suse.cz>
17228
17229 PR ipa/65282
17230 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
17231
17232 2015-03-23 Jeff Law <law@redhat.com>
17233
17234 PR tree-optimization/65241
17235 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
17236 hash table if INSERT is true.
17237
17238 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17239
17240 PR target/65296
17241 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
17242
17243 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17244
17245 PR target/64331
17246 * config/avr/avr.c (context.h, tree-pass.h): Include them.
17247 (avr_pass_data_recompute_notes): New static variable.
17248 (avr_pass_recompute_notes): New class.
17249 (avr_register_passes): New static function.
17250 (avr_option_override): Call it.
17251
17252 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17253
17254 Fix various problems with specs file generation.
17255
17256 PR target/65296
17257 * config.gcc (extra_gcc_objs) [avr]: Remove.
17258 * config/avr/driver-avr.c: Remove file.
17259 * config/avr/t-avr (driver-avr.o): Remove rule.
17260 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
17261 INCLUDES to build. Depend on TM_H.
17262 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
17263 build warnings. Fix non-matching types and non-existing %-codes.
17264 (tm.h): Include.
17265 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
17266 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
17267 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
17268 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
17269 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
17270 (LIBGCC_SPEC): Remove definitions.
17271
17272 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
17273
17274 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17275 to create a register in testing mode.
17276
17277 2015-03-03 Martin Liska <mliska@suse.cz>
17278 Jan Hubicka <hubicka@ucw.cz>
17279
17280 PR ipa/65263
17281 * cgraph.c (cgraph_node::has_thunk_p): New function.
17282 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17283 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17284 (sem_function::merge): Assert is changed.
17285
17286 2015-03-03 Martin Liska <mliska@suse.cz>
17287 Martin Jambor <mjambor@suse.cz>
17288
17289 PR ipa/65087
17290 * ipa-icf.c (sem_item_optimizer::execute): Change function
17291 return value to boolean.
17292 (sem_item_optimizer::merge_classes): Likewise.
17293 (ipa_icf_driver): Return TODO_remove_functions in case there's
17294 a merge operation processed.
17295 * ipa-icf.h: Change function return value to boolean.
17296
17297 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17298
17299 PR 65138/target
17300 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17301 processor type for 64-bit little endian PowerPC.
17302
17303 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17304 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
17305 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
17306 printing built-in mask so it does not pass NULL pointers.
17307
17308 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17309 -mcpu=powerpc64le.
17310
17311 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
17312
17313 PR target/58158
17314 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17315 !ISA_HAS_FP_CONDMOVE.
17316
17317 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
17318
17319 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17320 reload_completed.
17321
17322 2015-03-02 Ulrich Drepper <drepper@gmail.com>
17323
17324 * doc/invoke.texi (Options for Code Generation Conventions):
17325 Fix URL of DSO paper.
17326
17327 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17328
17329 PR ipa/65130
17330 * ipa-inline.c (check_callers): Looks for recursion.
17331 (inline_to_all_callers): Give up on uninlinable or recursive edges.
17332 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17333 summary of inline clones.
17334 (do_estimate_growth_1): Fix recursion check.
17335
17336 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17337
17338 PR ipa/64988
17339 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17340 comdat groups.
17341
17342 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17343 Aldy Hernandez <aldyh@redhat.com>
17344
17345 PR lto/65276
17346 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17347 when checking TYPE_BINFO.
17348
17349 2015-03-02 Richard Biener <rguenther@suse.de>
17350
17351 PR ipa/65270
17352 * ipa-icf-gimple.c: Include builtins.h.
17353 (func_checker::compare_memory_operand): Compare base alignment.
17354
17355 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17356
17357 PR target/65184
17358 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17359 are never passed by reference.
17360
17361 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17362
17363 PR target/65183
17364 * tree-chkp.c (chkp_check_lower): Don't check against
17365 zero bounds for already instrumented functions.
17366 (chkp_check_upper): Likewise.
17367 (chkp_fini): Clean pass local data to avoid wrong reusage.
17368
17369 2015-02-28 Martin Liska <mliska@suse.cz>
17370 Jan Hubicka <hubicka@ucw.cz>
17371
17372 * ipa-icf.c (sem_variable::equals): Improve debug output;
17373 get variable constructor.
17374 (sem_variable::parse): Do not filter out too early; give up on
17375 volatile and register vars.
17376 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17377 variables.
17378 * ipa-icf.h (sem_variable::init): Do not set ctor.
17379 (sem_variable::ctor): Remove.
17380
17381 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
17382
17383 PR middle-end/65233
17384 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17385
17386 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17387
17388 * ipa-icf.c: Include stor-layout.h
17389 (sem_function::compare_cgraph_references): Rename to ...
17390 (sem_item::compare_cgraph_references): ... this one.
17391 (sem_variable::equals_wpa): New function
17392 (sem_variable::equals): Do not check stuff already verified by
17393 equals_wpa.
17394 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17395 * ipa-icf.h (sem_item): Add compare_cgraph_references.
17396 (sem_function): Remove compare_cgraph_references.
17397 (sem_variable): Turns equals_wpa into non-inline.
17398
17399 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17400
17401 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17402 (sem_item::add_expr): New function.
17403 (sem_function::hash_stmt): Handle operands of most statements.
17404 (sem_variable::get_hash): Hash the actual constructor.
17405 * ipa-icf.h (sem_item): Add add_expr.
17406 (sem_function): Update prototype of hash_stmt
17407
17408 2015-02-28 Martin Liska <mliska@suse.cz>
17409 Jan Hubicka <hubicka@ucw.cz>
17410
17411 PR ipa/65245
17412 * ipa-icf-gimple.c (func_checker::compare_function_decl):
17413 Remove.
17414 (func_checker::compare_variable_decl): Skip symtab vars.
17415 (func_checker::compare_cst_or_decl): Update.
17416 * ipa-icf.c (sem_function::parse): Do not consider aliases.
17417 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17418 use correct symtab predicates.
17419 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17420 (sem_variable::parse): Update comment.
17421 (sem_item_optimizer::build_graph): Consider ultimate aliases
17422 for references.
17423
17424 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17425
17426 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17427 of OBJ_TYPE_REF.
17428
17429 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17430
17431 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17432 (sem_variable::merge) Likewise.
17433
17434 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17435
17436 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17437 target; also match flag_ipa_devirt.
17438
17439 2015-03-01 Martin Liska <mliska@suse.cz>
17440 Jan Hubicka <hubicka@ucw.cz>
17441
17442 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17443 Validate variable alignment.
17444 * ipa-icf.c (sem_function::equals_private): Be more precise
17445 about non-common function attributes.
17446 (sem_variable::equals): Likewise.
17447
17448 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17449
17450 PR ipa/65237
17451 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17452 across COMDAT group boundary.
17453
17454 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17455
17456 PR ipa/65232
17457 * ipa-icf.c (clear_decl_rtl): New function.
17458 (sem_function::merge): Clear RTL before forming alias.
17459 (sem_variable::merge): Clear RTL before forming alias.
17460
17461 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17462
17463 PR ipa/65236
17464 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17465
17466 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
17467
17468 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17469 to neon_to_gp<q>.
17470
17471 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17472
17473 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17474 a typo in the description.
17475
17476 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17477
17478 PR target/64317
17479 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17480 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17481 * lra-constraints.c: Include "params.h".
17482 (EBB_PROBABILITY_CUTOFF): Use
17483 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17484 (lra_inheritance): Use '<' instead of '<=' for
17485 EBB_PROBABILITY_CUTOFF.
17486 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17487 Document change.
17488
17489 2015-02-27 Martin Liska <mliska@suse.cz>
17490
17491 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17492 vector length condition.
17493
17494 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
17495
17496 * doc/extend.texi (x86 transactional memory intrinsics):
17497 Reorganize discussion of _xbegin. Clarify that the return
17498 value is a bit mask. Expand example and move to end of section.
17499
17500 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17501 Aldy Hernandez <aldyh@redhat.com>
17502
17503 PR rtl-optimization/65220
17504 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17505
17506 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17507
17508 PR target/65032
17509 * lra-remat.c (update_scratch_ops): New.
17510 (do_remat): Call it.
17511 * lra.c (lra_register_new_scratch_op): New. Take code from ...
17512 (remove_scratches): ... here.
17513 * lra-int.h (lra_register_new_scratch_op): New prototype.
17514
17515 2015-02-27 Marek Polacek <polacek@redhat.com>
17516
17517 PR c/65040
17518 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17519 -Wformat-signedness anymore.
17520
17521 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17522
17523 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17524 function.
17525 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17526
17527 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17528
17529 * config/s390/s390.c (enum s390_builtin):
17530 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17531 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17532 (s390_init_builtins): Generate new builtin functions.
17533 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17534 (s390_sfpc, s390_efpc): New pattern definitions.
17535
17536 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17537
17538 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17539 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17540 (s390_builtin_decls): New array.
17541 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17542 (s390_builtin_decl): New function.
17543 (TARGET_BUILTIN_DECL): Define macro.
17544
17545 2015-02-27 Richard Biener <rguenther@suse.de>
17546
17547 PR middle-end/63175
17548 * builtins.c (get_object_alignment_2): Make sure to re-apply
17549 the ANDed mask after recursing to its operand gets us a new
17550 misalignment bit position.
17551
17552 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
17553 Martin Liska <mliska@suse.cz>
17554
17555 PR bootstrap/65150
17556 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17557 Use address_matters_p.
17558 (redirect_all_callers, set_addressable): New functions.
17559 (sem_function::merge): Reorganize and fix merging issues.
17560 (sem_variable::merge): Likewise.
17561 (sem_variable::compare_sections): Remove.
17562 * common.opt (fmerge-all-constants, fmerge-constants): Remove
17563 Optimization flag.
17564 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17565 redirect them.
17566 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17567 decl is used.
17568 (address_matters_1): New function.
17569 (symtab_node::address_matters_p): New function.
17570 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17571 check for merged flag.
17572 * cgraph.h (address_matters_p): Declare.
17573 (symtab_node::address_taken_from_non_vtable_p): Remove.
17574 (symtab_node::address_can_be_compared_p): New method.
17575 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17576 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17577 Remove.
17578 (comdat_can_be_unshared_p_1) Use address_matters_p.
17579 (update_vtable_references): Fix formating.
17580 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17581 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17582 * cgraphclones.c: Preserve merged and icf_merged flags.
17583
17584 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
17585
17586 * doc/extend.texi (Function Attributes): Fix spelling and typos.
17587 (Label Attributes): Likewise.
17588 (Cilk Plus Builtins): Likewise.
17589 (ARC SIMD Built-in Functions): Likewise.
17590 (ARM C Language Extensions (ACLE)): Likewise.
17591 (PowerPC Built-in Functions): Likewise.
17592 (PowerPC Hardware Transactional Memory Built-in Functions):
17593 Likewise.
17594
17595 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17596
17597 PR tree-optimization/65216
17598 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17599 new stmt and new SSA_NAME for lhs whenever the arguments have
17600 changed and weren't just swapped. Fix comment typo.
17601
17602 PR tree-optimization/65215
17603 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17604 for PDP endian targets.
17605 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17606 Fix up formatting issues.
17607 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
17608 size is smaller than the original, adjust MEM_REF offset by the
17609 difference of sizes. Use is_gimple_mem_ref_addr instead of
17610 is_gimple_min_invariant test to avoid adding address temporaries.
17611
17612 2015-02-26 Martin Liska <mliska@suse.cz>
17613 Jan Hubicka <hubicka@ucw.cz>
17614
17615 PR ipa/64693
17616 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17617 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17618 (sem_item_optimizer::process_cong_reduction): Include division by
17619 sensitive references.
17620 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17621 * ipa-ref.c (ipa_ref::address_matters_p): New function.
17622 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17623
17624 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
17625
17626 PR target/65192
17627 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17628 Remove.
17629 * config/avr/avr.c: Same.
17630 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17631 Refuse any constant address not in 0..0xbf.
17632 * config/avr/avr.md (*mov<mode>, *movsf): Remove
17633 tiny_valid_direct_memory_access_range from insn conditions.
17634 (mov<mode>): Don't special-case expansion of avrtiny addresses.
17635
17636 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17637
17638 PR target/61142
17639 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17640 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17641 * config/sh/predicates.md (const_logical_operand): New predicate.
17642 * config/sh/sh.md: Add new peephole2 patterns.
17643
17644 2015-02-26 Marek Polacek <polacek@redhat.com>
17645
17646 PR ipa/65008
17647 * ipa-inline.c (early_inliner): Recompute inline parameters.
17648
17649 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17650
17651 PR target/65171
17652 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17653 instructions with TImode operands are included in the analysis.
17654
17655 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17656
17657 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17658 of an EDGE_FSM_THREAD.
17659
17660 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
17661
17662 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17663
17664 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
17665
17666 PR debug/46102
17667 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17668
17669 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17670
17671 PR tree-optimization/65048
17672 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17673 (thread_through_all_blocks): Call valid_jump_thread_path.
17674 Remove invalid FSM jump-thread paths.
17675
17676 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17677
17678 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17679 (ipa_write_optimization_summaries): Likewise.
17680 * tree-streamer.h: Include data-streamer.h.
17681 (streamer_mode_table): Declare extern variable.
17682 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17683 * lto-streamer-out.c (lto_output_init_mode_table,
17684 lto_write_mode_table): New functions.
17685 (produce_asm_for_decls): Call lto_write_mode_table when streaming
17686 offloading LTO.
17687 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17688 (lto_create_simple_input_block): Add mode_table argument to the
17689 lto_input_block constructors.
17690 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17691 Likewise.
17692 * data-streamer-in.c (string_for_index): Likewise.
17693 * ipa-inline-analysis.c (inline_read_section): Likewise.
17694 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17695 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17696 * lto-streamer-in.c (lto_read_body_or_constructor,
17697 lto_input_toplevel_asms): Likewise.
17698 (lto_input_mode_table): New function.
17699 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17700 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17701 Use bp_pack_machine_mode.
17702 * real.h (struct real_format): Add name field.
17703 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17704 (class lto_input_block): Add mode_table member.
17705 (lto_input_block::lto_input_block): Add mode_table_ argument,
17706 initialize mode_table.
17707 (struct lto_file_decl_data): Add mode_table field.
17708 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17709 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17710 unpack_ts_decl_common_value_fields,
17711 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17712 * tree-streamer.c (streamer_mode_table): New variable.
17713 * real.c (ieee_single_format, mips_single_format,
17714 motorola_single_format, spu_single_format, ieee_double_format,
17715 mips_double_format, motorola_double_format,
17716 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17717 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17718 ibm_extended_format, mips_extended_format, ieee_quad_format,
17719 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17720 decimal_single_format, decimal_double_format, decimal_quad_format,
17721 ieee_half_format, arm_half_format, real_internal_format): Add name
17722 field.
17723 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17724
17725 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
17726
17727 PR target/65161
17728 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17729 reordering for selective scheduling.
17730
17731 2015-02-26 Terry Guo <terry.guo@arm.com>
17732
17733 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17734 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17735 (arm_arch_no_volatile_ce): Declare new global variable.
17736 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17737 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17738 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17739 (TARGET_NO_VOLATILE_CE): New macro.
17740 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17741 volatile memory access in IT block
17742
17743 2015-02-25 Kai Tietz <ktietz@redhat.com>
17744
17745 PR tree-optimization/61917
17746 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17747 that reduc_def_stmt is null.
17748
17749 2015-02-25 Martin Liska <mliska@suse.cz>
17750
17751 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17752 hard register variables.
17753
17754 2015-02-25 Kai Tietz <ktietz@redhat.com>
17755
17756 PR target/64212
17757 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17758 (symtab::noninterposable_alias): Likewise.
17759
17760 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
17761
17762 PR target/65167
17763 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17764 bounds registers.
17765 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17766
17767 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
17768
17769 PR target/64997
17770 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17771 as split condition; force split via '#' in output pattern.
17772
17773 2015-02-25 Richard Biener <rguenther@suse.de>
17774 Kai Tietz <ktietz@redhat.com>
17775
17776 PR tree-optimization/61917
17777 * tree-vect-loop.c (vectorizable_reduction): Allow
17778 vect_internal_def without reduction to exit graceful.
17779
17780 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17781
17782 PR target/65196
17783 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17784 only with NONDEBUG_INSN_P.
17785
17786 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17787
17788 Use variadic macros with avr-log.c.
17789
17790 * config/avr/avr-protos.h (avr_vdump): New prototype.
17791 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17792 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17793 * config/avr/avr-log.c: Adjust comments.
17794 (avr_vdump): New function.
17795 (avr_vadump): Pass caller as 2nd argument instead of format string.
17796 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17797 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17798
17799 2015-02-25 Jakub Jelinek <jakub@redhat.com>
17800
17801 PR lto/64374
17802 * target.def (target_option_stream_in): New target hook.
17803 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17804 targetm.target_option.post_stream_in if non-NULL.
17805 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17806 * doc/tm.texi: Updated.
17807 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17808 function.
17809 (TARGET_OPTION_POST_STREAM_IN): Redefine.
17810
17811 2015-02-24 Jeff Law <law@redhat.com>
17812
17813 PR target/65117
17814 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17815 of operand 0 and operand 2.
17816 (zero_cost_loop_end, loop_end): Similarly.
17817
17818 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
17819
17820 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17821 CXX_MEM_STAT_INFO.
17822
17823 2015-02-24 DJ Delorie <dj@redhat.com>
17824
17825 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17826 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17827 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17828 instead of hardcoding SImode.
17829
17830 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
17831
17832 * omp-low.c (create_omp_child_function): Tag entrypoint
17833 functions with a special attribute.
17834
17835 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17836
17837 PR target/65058
17838 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17839
17840 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
17841
17842 PR rtl-optimization/65123
17843 * lra-remat.c (operand_to_remat): Check hard regs in insn
17844 definition too.
17845
17846 2015-02-24 Nick Clifton <nickc@redhat.com>
17847
17848 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17849 to the assembler.
17850
17851 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
17852
17853 PR libgomp/64625
17854 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17855 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17856 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17857 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17858 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17859 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17860 (BUILT_IN_GOACC_PARALLEL): Specify as
17861 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17862 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17863 * builtin-types.def
17864 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17865 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17866 Remove function types.
17867 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17868 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17869 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17870 New function types.
17871
17872 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
17873
17874 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17875
17876 2015-02-24 Jakub Jelinek <jakub@redhat.com>
17877
17878 PR tree-optimization/65170
17879 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17880 if val[1] < 0, clear also val[2] and return 3.
17881
17882 2015-02-24 Alan Modra <amodra@gmail.com>
17883
17884 PR target/65172
17885 * config/rs6000/rs6000.c (get_memref_parts): Only return true
17886 when *base is a reg. Handle nested plus addresses. Simplify
17887 pre_modify test.
17888
17889 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
17890
17891 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17892 use natural alignment when optimizing for size.
17893
17894 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
17895
17896 PR target/65153
17897 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17898 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17899 * config/sh/sh.c (replace_n_hard_rtx): Remove.
17900
17901 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
17902
17903 PR fortran/63427
17904 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17905 too big for a wide_int. Implement missing wrapping operation.
17906
17907 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
17908
17909 PR target/65163
17910 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17911 instead of const_int 4294901760.
17912
17913 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
17914
17915 * config/avr/t-avr: Fix typo in comment.
17916
17917 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
17918
17919 * doc/rtl.texi (fma): Clarify documentation.
17920
17921 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
17922
17923 PR debug/58123
17924 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17925 over input_location.
17926
17927 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17928
17929 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17930 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17931 restrict alignments to absolute_biggest_alignment.
17932 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17933 Define.
17934 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17935 * doc/tm.texi: Regenerate.
17936 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17937
17938 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
17939
17940 PR target/64172
17941 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17942
17943 2015-02-20 Richard Biener <rguenther@suse.de>
17944
17945 PR tree-optimization/65136
17946 * tree-ssa-propagate.c: Include cfgloop.h.
17947 (replace_phi_args_in): Avoid replacing loop latch edge PHI
17948 arguments with constants.
17949
17950 2015-02-20 Jakub Jelinek <jakub@redhat.com>
17951 Martin Liska <mliska@suse.cz>
17952
17953 PR target/63892
17954 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17955 don't try to create_thunk if stdarg_p. If
17956 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17957 redirect_callers if possible.
17958 (sem_item_optimizer::execute): Call unregister_hooks here...
17959 (ipa_icf_driver): ... instead of here.
17960
17961 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17962
17963 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17964 Mark operand 0 as earlyclobber in 2nd alternative.
17965 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17966 Write negated shift amount into QI lowpart operand 0 and use it
17967 in the shift step.
17968 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17969
17970 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17971
17972 * cgraph.h (clone_function_name_1): Declare.
17973 * cgraphclones.c (clone_function_name_1): New function.
17974 (clone_function_name): Use it.
17975 * lto-partition.c: Include "stringpool.h".
17976 (must_not_rename, maybe_rewrite_identifier)
17977 (validize_symbol_for_target): New static functions.
17978 (privatize_symbol_name): Use must_not_rename.
17979 (promote_symbol): Call validize_symbol_for_target.
17980 (lto_promote_cross_file_statics): Likewise.
17981 (lto_promote_statics_nonwpa): Likewise.
17982
17983 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
17984
17985 PR target/64452
17986 * config/avr/avr.md (pushhi_insn): New insn.
17987 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17988
17989 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17990 Jakub Jelinek <jakub@redhat.com>
17991
17992 * tree-streamer.c (preload_common_nodes): Don't preload
17993 TI_VA_LIST* for offloading.
17994 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17995 in_lto_p.
17996
17997 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
17998
17999 * config/pa/pa.c (pa_emit_move_sequence): Always force
18000 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
18001 note on insn.
18002
18003 * config/pa/pa.c (pa_reloc_rw_mask): New function.
18004 (TARGET_ASM_RELOC_RW_MASK): Define.
18005 (pa_cannot_force_const_mem): Revert previous change.
18006
18007 2015-02-19 Martin Jambor <mjmabor@suse.cz>
18008 Jan Hubicka <hubicka@ucw.cz>
18009
18010 PR ipa/65028
18011 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
18012 across jump functions.
18013
18014 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
18015
18016 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
18017
18018 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
18019
18020 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
18021
18022 2015-02-19 Richard Henderson <rth@redhat.com>
18023
18024 PR middle-end/65074
18025 * varasm.c (default_binds_local_p_2): Don't test node->definition;
18026 test DECL_EXTERNAL independent of symtab_node.
18027
18028 2015-02-19 Jakub Jelinek <jakub@redhat.com>
18029
18030 PR lto/65012
18031 * varpool.c (varpool_node::get_constructor): Return early
18032 if this->lto_file_data is NULL.
18033
18034 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18035
18036 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
18037 (rank_for_schedule_debug): Update.
18038 (ready_sort): Make static. Move sorting logic to ...
18039 (ready_sort_debug, ready_sort_real): New static functions.
18040 (schedule_block): Sort both debug insns and real insns in preparation
18041 for ready list trimming. Improve debug output.
18042 * sched-int.h (ready_sort): Remove global declaration.
18043
18044 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
18045
18046 * ipa-icf.c (sem_function::equals_private): Adjust.
18047 (sem_function::bb_dict_test): Take a vec<int> * instead of
18048 auto_vec<int>.
18049 * ipa-icf.h (bb_dict_test): Likewise.
18050
18051 2015-02-18 Jakub Jelinek <jakub@redhat.com>
18052
18053 PR gcov-profile/64634
18054 * tree-eh.c (frob_into_branch_around): Fix up typos
18055 in function comment.
18056 (lower_catch): Put eh_seq resulting from EH lowering of
18057 the cleanup sequence after the cleanup rather than before it.
18058
18059 2015-02-18 Tom de Vries <tom@codesourcery.com>
18060
18061 * common.opt (fstdarg-opt): New option.
18062 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
18063 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
18064 (@item -fstdarg-opt): New item.
18065
18066 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
18067
18068 PR target/65064
18069 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
18070 for common symbols.
18071
18072 2015-02-18 Jakub Jelinek <jakub@redhat.com>
18073
18074 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
18075 insn-modes.h.
18076 (ALL_HOST_OBJS): Add mkoffload.o.
18077 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
18078
18079 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
18080
18081 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
18082 (compare_virtual_tables): Be smarter about skipping typeinfos;
18083 do sane output on virtual table table mismatch.
18084 (warn_odr): Be ready for forward declarations of enums;
18085 output sane info on base mismatch and virtual table mismatch.
18086 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
18087 when only one type is polymorphic.
18088 (get_odr_type): Fix hashtable corruption.
18089 (dump_odr_type): Dump mangled names.
18090
18091 2015-02-18 Richard Biener <rguenther@suse.de>
18092
18093 PR tree-optimization/65063
18094 * tree-predcom.c (determine_unroll_factor): Return 1 if we
18095 have replaced looparound PHIs.
18096
18097 2015-02-18 Martin Liska <mliska@suse.cz>
18098
18099 * lto-streamer.c (lto_streamer_init): Encapsulate
18100 streamer_check_handled_ts_structures with checking macro.
18101
18102 2015-02-18 Jakub Jelinek <jakub@redhat.com>
18103
18104 PR ipa/65087
18105 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
18106 section if !implicit_section.
18107 (cgraph_node::create_version_clone_with_body): Likewise.
18108 * trans-mem.c (ipa_tm_create_version): Likewise.
18109
18110 2015-02-18 Richard Biener <rguenther@suse.de>
18111
18112 PR tree-optimization/62217
18113 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
18114 into BIVs.
18115
18116 2015-02-18 Marek Polacek <polacek@redhat.com>
18117
18118 PR sanitizer/65081
18119 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
18120 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
18121 is in range [-16K, -1]. Don't issue run-time error if
18122 (ptr > ptr + offset).
18123
18124 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
18125
18126 * doc/install.texi (nvptx-*-none): New section.
18127 * doc/invoke.texi (Nvidia PTX Options): Likewise.
18128 * config/nvptx/nvptx.opt: Update.
18129
18130 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
18131 (access_check): New functions, copied from
18132 config/i386/intelmic-mkoffload.c.
18133 (main): For non-installed testing, look in all COMPILER_PATHs for
18134 GCC_INSTALL_NAME.
18135
18136 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
18137
18138 2015-02-18 Andrew Pinski <apinski@cavium.com>
18139 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18140
18141 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
18142 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
18143
18144 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
18145
18146 * ipa-visibility.c (function_and_variable_visibility): Only
18147 check locality if node is not already local.
18148 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
18149 call_for_symbol_and_aliases instead of
18150 call_for_symbol_thunks_and_aliases.
18151 (ipa_inline): Likewise.
18152 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18153 first walk aliases.
18154 * ipa.c (symbol_table::remove_unreachable_nodes): Use
18155 call_for_symbol_and_aliases.
18156 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18157 (ipa_propagate_frequency_1): Use it; use opt_for_fn
18158 (ipa_propagate_frequency): Update.
18159 (ipa_profile): Add opt_for_fn gueards.
18160
18161 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
18162
18163 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
18164 * doc/invoke.texi (SH options): Document it.
18165 * config/sh/sh.c (sh_insn_length_adjustment): Check
18166 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
18167
18168 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
18169
18170 * common.opt (fipa-cp-alignment): New.
18171 * ipa-cp.c (ipcp_store_alignment_results): Check
18172 flag_ipa_cp_alignment.
18173 * opts.c (default_options_table): Enable -fipa-cp-alignment for
18174 -O2.
18175 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
18176 * doc/invoke.texi: Document -fipa-cp-alignment.
18177
18178 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
18179
18180 PR target/64793
18181 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
18182 to nil. Adjust comments.
18183
18184 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
18185
18186 * ipa-visibility.c (function_and_variable_visibility): Only
18187 check locality if node is not already local.
18188 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
18189 call_for_symbol_and_aliases instead of
18190 call_for_symbol_thunks_and_aliases.
18191 (ipa_inline): Likewise.
18192 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18193 first walk aliases.
18194 * ipa.c (symbol_table::remove_unreachable_nodes): Use
18195 call_for_symbol_and_aliases.
18196 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18197 (ipa_propagate_frequency_1): Use it; use opt_for_fn
18198 (ipa_propagate_frequency): Update.
18199 (ipa_profile): Add opt_for_fn guards.
18200
18201 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
18202
18203 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
18204 skipping of "strange" tokens.
18205
18206 2015-02-17 Jeff Law <law@redhat.com>
18207
18208 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
18209 obsolete comment.
18210
18211 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
18212
18213 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
18214 as forcing a HARD_DEP between instructions, thereby
18215 disallowing rewriting to break dependencies.
18216
18217 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18218
18219 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
18220 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
18221 variables in boundary that have no inlitalizer encoded and are
18222 not aliases.
18223 * varasm.c (default_binds_local_p_2): External definitions do not
18224 count as definitions here.
18225
18226 2015-02-16 Jeff Law <law@redhat.com>
18227
18228 PR tree-optimization/64823
18229 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
18230 statements.
18231 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18232 threading through blocks with PHIs, but no statements.
18233 (thread_through_normal_block): Distinguish between blocks where
18234 we did not process all the statements and blocks with no statements.
18235
18236 2015-02-16 Jakub Jelinek <jakub@redhat.com>
18237 James Greenhalgh <james.greenhalgh@arm.com>
18238
18239 PR ipa/64963
18240 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
18241 section if not linkonce. Fix up formatting.
18242 (cgraph_node::create_version_clone_with_body): Copy section.
18243 * trans-mem.c (ipa_tm_create_version): Likewise.
18244
18245 2015-02-16 Richard Biener <rguenther@suse.de>
18246
18247 PR tree-optimization/65077
18248 * tree-ssa-structalias.c (get_constraint_for_1): Handle
18249 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
18250 (find_func_aliases): Allow float values to carry pointers again.
18251
18252 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
18253
18254 * doc/install.texi (Specific): Reorder targets list to put
18255 aarch64 in alphabetical order. Add a link to aarch64*-*-*
18256 from the top menu.
18257
18258 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18259 David Edelsohn <dje.gcc@gmail.com>
18260
18261 PR target/65058
18262 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
18263 mapping class to external variable or function reference.
18264 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
18265 mapping class.
18266
18267 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
18268
18269 PR target/53348
18270 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18271 ASM_WEAKEN_DECL if defined.
18272
18273 2015-02-16 Richard Biener <rguenther@suse.de>
18274
18275 PR lto/65015
18276 * varasm.c (default_file_start): For LTO produced units
18277 emit <artificial> as file directive.
18278
18279 2015-02-16 Richard Biener <rguenther@suse.de>
18280
18281 PR tree-optimization/63593
18282 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18283 stmts and releasing SSA names until...
18284 (execute_pred_commoning): ... after processing all chains.
18285
18286 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18287
18288 PR ipa/65059
18289 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18290 external functions.
18291
18292 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
18293
18294 * doc/bugreport.texi: Adjust section titles throughout the file
18295 to use "Title Case".
18296 * doc/extend.texi: Likewise.
18297 * doc/gcov.texi: Likewise.
18298 * doc/implement-c.texi: Likewise.
18299 * doc/implement-cxx.texi: Likewise.
18300 * doc/invoke.texi: Likewise.
18301 * doc/objc.texi: Likewise.
18302 * doc/standards.texi: Likewise.
18303 * doc/trouble.texi: Likewise.
18304
18305 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
18306
18307 * cgraph.h (symtab_node::has_aliases_p): Simplify.
18308 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18309 * tree.c (lookup_binfo_at_offset): Make static.
18310 (get_binfo_at_offset): Do not shadow offset; add explanatory
18311 comment.
18312
18313 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
18314
18315 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18316 for all floading point loads and stores except those using a register
18317 index address.
18318 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18319 to a register.
18320
18321 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18322
18323 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18324 (do_estimate_growth_1): Record if any uninlinable edge was seen.
18325 (estimate_growth): Handle uninlinable edges correctly.
18326 (check_callers): New.
18327 (growth_likely_positive): Handle aliases correctly.
18328
18329 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18330
18331 * ipa-chkp.c: Use iterate_direct_aliases.
18332 * symtab.c (resolution_used_from_other_file_p): Move inline.
18333 (symtab_node::create_reference): Fix formating.
18334 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18335 (symtab_node::iterate_reference): Move inline.
18336 (symtab_node::iterate_referring): Move inline.
18337 (symtab_node::iterate_direct_aliases): Move inline.
18338 (symtab_node::used_from_object_file_p_worker): Inline into ...
18339 (symtab_node::used_from_object_file_p): ... this one; move inline.
18340 (symtab_node::call_for_symbol_and_aliases): Move inline;
18341 use iterate_direct_aliases.
18342 (symtab_node::call_for_symbol_and_aliases_1): New method.
18343 (cgraph_node::call_for_symbol_and_aliases): Move inline;
18344 use iterate_direct_aliases.
18345 (cgraph_node::call_for_symbol_and_aliases_1): New method.
18346 (varpool_node::call_for_node_and_aliases): Rename to ...
18347 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18348 use iterate_direct_aliases.
18349 (varpool_node::call_for_symbol_and_aliases_1): New method.
18350 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18351 (ipa_discover_readonly_nonaddressable_var): Update.
18352 * ipa-devirt.c: Fix formating.
18353 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18354 Move inline.
18355 (cgraph_node::call_for_symbol_and_aliases): Move inline.
18356 (cgraph_node::call_for_symbol_and_aliases_1): New function..
18357 * cgraph.h (used_from_object_file_p_worker): Remove.
18358 (resolution_used_from_other_file_p): Move inline.
18359 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18360 (symtab_node::iterate_reference): Move inline.
18361 (symtab_node::iterate_referring): Move inline.
18362 (symtab_node::iterate_direct_aliases): Move inline.
18363 (symtab_node::used_from_object_file_p_worker): Inline into ...
18364 (symtab_node::used_from_object_file_p): Move inline.
18365 * tree-emutls.c (ipa_lower_emutls): Update.
18366 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18367 (varpool_node::call_for_node_and_aliases): Remove.
18368
18369 2015-02-14 Jakub Jelinek <jakub@redhat.com>
18370
18371 PR tree-optimization/62209
18372 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18373 op == range->exp, insert seq and gimplified code after labels
18374 instead of after the phi.
18375
18376 2015-02-13 Jeff Law <law@redhat.com>
18377
18378 PR bootstrap/65060
18379 Revert my change for tree-optimization/64823.
18380
18381 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18382
18383 PR tree-optimization/65053
18384 * tree-ssa-phiopt.c (value_replacement): When moving assign before
18385 cond, either reset VR on lhs or set it to phi result VR.
18386
18387 2015-02-13 Jeff Law <law@redhat.com>
18388
18389 PR tree-optimization/64823
18390 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18391 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18392 threading through blocks with PHIs, but no statements.
18393 (thread_through_normal_block): Distinguish between blocks where
18394 we did not process all the statements and blocks with no statements.
18395
18396 PR rtl-optimization/47477
18397 * match.pd (convert (plus/minus (convert @0) (convert @1): New
18398 simplifier to narrow arithmetic.
18399
18400 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
18401
18402 PR ipa/65028
18403 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18404 polymorphic call info when type is not known to be preserved.
18405
18406 2015-02-13 Maritn Jambor <mjambor@suse.cz>
18407
18408 PR ipa/65028
18409 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18410 (inline_call): Use it.
18411
18412 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
18413
18414 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18415 GOMP_DEVICE_NVIDIA_PTX.
18416
18417 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18418
18419 PR ipa/65034
18420 * stmt.c (emit_case_nodes): Use void_type_node instead of
18421 NULL_TREE as LABEL_DECL type.
18422
18423 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
18424
18425 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18426 constraints.
18427 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18428 symbolic references to data to be forced to constant memory on the
18429 SOM target.
18430
18431 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
18432
18433 PR tree-optimization/65002
18434 * tree-cfg.c (pass_data_fixup_cfg): Don't update
18435 SSA on start.
18436 * tree-sra.c (some_callers_have_no_vuse_p): New.
18437 (ipa_early_sra): Reject functions whose callers
18438 assume function is read only.
18439
18440 2015-02-13 Richard Biener <rguenther@suse.de>
18441
18442 PR lto/65015
18443 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18444 for LTO produced CUs.
18445
18446 2015-02-13 Bin Cheng <bin.cheng@arm.com>
18447
18448 PR tree-optimization/64705
18449 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18450 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18451 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18452 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18453 expand_simple_operations.
18454
18455 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
18456 Richard Henderson <rth@redhat.com>
18457
18458 PR rtl/32219
18459 * cgraphunit.c (cgraph_node::finalize_function): Set definition
18460 before notice_global_symbol.
18461 (varpool_node::finalize_decl): Likewise.
18462 * varasm.c (default_binds_local_p_2): Rename from
18463 default_binds_local_p_1, add weak_dominate argument. Use direct
18464 returns instead of assigning to local variable. Unify varpool and
18465 cgraph paths via symtab_node. Reject undef weak variables before
18466 testing visibility. Reorder tests for simplicity.
18467 (default_binds_local_p): Use default_binds_local_p_2.
18468 (default_binds_local_p_1): Likewise.
18469 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18470 via symtab_node.
18471 (default_elf_asm_output_external): Emit visibility when specified.
18472
18473 2015-02-13 Alan Modra <amodra@gmail.com>
18474
18475 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18476 code setting up r11 for out-of-line fp restore.
18477
18478 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
18479
18480 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18481 (muser-mode): Likewise.
18482
18483 2015-02-13 Alan Modra <amodra@gmail.com>
18484
18485 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18486 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18487
18488 2015-02-12 David Howells <dhowells@redhat.com>
18489
18490 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18491 warning.
18492 * tree-ssa-uninit.c (dump_predicates): Likewise.
18493 * opts.c (print_filtered_help): Likewise.
18494
18495 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18496
18497 * dwarf2out.c (output_die): Use "%s", name instead of name to
18498 avoid -Wformat-security warning.
18499
18500 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18501 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18502 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18503 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18504
18505 2015-02-12 Jason Merrill <jason@redhat.com>
18506
18507 * common.opt (-flifetime-dse): New.
18508
18509 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18510
18511 PR sanitizer/65019
18512 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18513
18514 PR tree-optimization/65014
18515 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18516 use original second operand of arg0 or arg1 instead of
18517 that adjusted by STRIP_NOPS.
18518
18519 2015-02-11 Jeff Law <law@redhat.com>
18520
18521 PR target/63347
18522 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18523 that needs to be queued, just queue it for a single cycle.
18524
18525 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
18526
18527 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18528 bodies of thunks; comment on why.
18529 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18530 symbols are extern.
18531
18532 2015-02-11 Richard Henderson <rth@redhat.com>
18533
18534 PR sanitize/65000
18535 * tree-eh.c (mark_reachable_handlers): Mark source and destination
18536 regions of __builtin_eh_copy_values.
18537
18538 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18539
18540 PR middle-end/65003
18541 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18542 ultimate alias is MEM with SYMBOL_REF satisfying
18543 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
18544 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18545
18546 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
18547
18548 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18549 "diagnostic-core.h".
18550 (main): Initialize progname, and call diagnostic_initialize.
18551
18552 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18553 instead of __OPENMP_TARGET__.
18554
18555 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18556 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18557 hard-coding PTX_ID.
18558
18559 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
18560
18561 * doc/sourcebuild.texi (pie_enabled): Document.
18562
18563 2015-02-11 Martin Liska <mliska@suse.cz>
18564
18565 PR ipa/64813
18566 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18567 a return value for call to a function that is noreturn.
18568
18569 2015-02-11 Richard Biener <rguenther@suse.de>
18570
18571 PR lto/65015
18572 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18573 and -fresolution.
18574
18575 2015-02-11 Andrew Pinski <apinski@cavium.com>
18576
18577 PR target/64893
18578 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18579 Change the first argument type to size_type_node and add another
18580 size_type_node.
18581 (aarch64_simd_expand_builtin): Handle the new argument to
18582 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18583 print an out when the first two arguments are not
18584 nonzero integer constants.
18585 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18586 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18587
18588 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18589
18590 PR target/61925
18591 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18592 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18593 (ix86_set_current_function): Rewritten.
18594 (ix86_add_new_builtins): Temporarily clear current_target_pragma
18595 when creating builtin fndecls.
18596
18597 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18598
18599 PR ipa/65005
18600 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18601 function.
18602 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18603 have no comdat group.
18604 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18605 (lto_output_varpool_node): Always output alias info.
18606 (output_refs): Output refs of boundary aliases, too.
18607 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18608 (output_symtab): Output call eges in thunks in boundary.
18609 (get_alias_symbol): Remove.
18610 (input_node, input_varpool_node): Do not special case weakrefs.
18611 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18612 alias and thunks targets in the boundary; do not take removed symbols
18613 from their comdat groups.
18614 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18615 (cgraph_node::global_info): Remove.
18616 (cgraph_node::rtl_info): Look through aliases and thunks.
18617 * cgrpah.h (global_info): Remove.
18618 (non_local_p): Remove.
18619
18620 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18621 Sandra Loosemore <sandra@codesourcery.com>
18622
18623 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18624 to inline asm. List dialects in proper order.
18625
18626 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18627 Sandra Loosemore <sandra@codesourcery.com>
18628
18629 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18630
18631 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18632
18633 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18634 modified) reference to Solaris.
18635
18636 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
18637
18638 * doc/extend.texi (Extended Asm): Fix typos.
18639
18640 2015-02-10 Jakub Jelinek <jakub@redhat.com>
18641
18642 PR sanitizer/65004
18643 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18644
18645 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
18646
18647 PR target/64661
18648 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18649 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18650 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18651 * config/sh/constraints.md (Ara, Add): New constraints.
18652 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18653 predicates.
18654 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18655 atomic_mem_operand_0. Don't use force_reg on the memory address.
18656 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18657 Sra constraint. Convert to insn_and_split. Add workaround for
18658 PR 64974.
18659 (atomic_compare_and_swap<mode>_hard): Copy to
18660 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
18661 Use atomic_mem_operand_0 predicate.
18662 (atomic_compare_and_swap<mode>_soft_gusa,
18663 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18664 AraAdd constraints.
18665 (atomic_compare_and_swap<mode>_soft_tcb,
18666 atomic_compare_and_swap<mode>_soft_imask,
18667 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18668 atomic_mem_operand_0 predicate and SraSdd constraints.
18669 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18670 constraint.
18671 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18672 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
18673 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18674 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
18675 force_reg on the memory address.
18676 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18677 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18678 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18679 atomic_mem_operand_1 predicate and Sra constraint.
18680 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18681 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18682 Use atomic_mem_operand_1 predicate.
18683 (atomic_<fetchop_name><mode>_hard): Copy to
18684 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18685 Use atomic_mem_operand_1 predicate.
18686 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18687 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18688 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
18689 insn_and_split. Use atomic_mem_operand_1 predicate.
18690 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18691 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
18692 Use atomic_mem_operand_1 predicate.
18693 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18694 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18695 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18696 in generated insn with original mem operand before emitting the insn.
18697 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18698 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18699 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18700 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18701 Use atomic_mem_operand_1 predicate and AraAdd constraints.
18702 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18703 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18704 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18705 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18706 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18707 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18708 atomic_not_fetch<mode>_soft_tcb,
18709 atomic_<fetchop_name>_fetch<mode>_soft_imask,
18710 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18711 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18712 Use atomic_mem_operand_1 predicate and SraSdd constraints.
18713
18714 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
18715
18716 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18717 and 3 earlyclobber operands.
18718
18719 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18720
18721 * common.opt (fstack-reuse): Mark as optimization.
18722
18723 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18724
18725 PR ipa/64982
18726 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18727
18728 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
18729
18730 PR tree-optimization/64326
18731 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18732
18733 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
18734
18735 PR gcov-profile/61889
18736 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18737
18738 2015-02-10 Richard Biener <rguenther@suse.de>
18739
18740 PR tree-optimization/64995
18741 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18742 value we use is final.
18743 (visit_reference_op_store): Always valueize op.
18744 (visit_use): Properly valueize vuses.
18745
18746 2015-02-10 Richard Biener <rguenther@suse.de>
18747
18748 PR tree-optimization/64909
18749 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18750 pass a scalar-stmt count estimate to the cost model.
18751 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18752
18753 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
18754
18755 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18756 enabled by default together with var-tracking.
18757
18758 2015-02-10 Nick Clifton <nickc@redhat.com>
18759
18760 * config/rl78/rl78.c: Remove DIV attribute code accidentally
18761 included in previous rl78 commit.
18762
18763 2015-02-10 Richard Biener <rguenther@suse.de>
18764
18765 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18766 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18767 return the bitpack.
18768
18769 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18770
18771 PR gcov-profile/61889
18772 * config.in: regenerate.
18773 * configure.in: Likewise.
18774 * configure.ac: Check for ftw.h.
18775 * gcov-tool.c: Check for ftw.h before using nftw.
18776
18777 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18778
18779 PR lto/64076
18780 * ipa-visibility.c (update_visibility_by_resolution_info): Only
18781 assert when not in lto mode.
18782
18783 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18784
18785 * ira-color.c (setup_left_conflict_sizes_p): Simplify
18786 initialization/assignment of conflict_size.
18787
18788 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
18789
18790 PR ipa/64978
18791 * ipa-cp.c (gather_caller_stats): Skip thunks.
18792 (propagate_constants_topo): Skip aliases.
18793
18794 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18795
18796 PR target/64761
18797 * config/sh/sh.c (sh_option_override): Don't change
18798 -freorder-blocks-and-partition to -freorder-blocks even when
18799 unwinding is enabled.
18800 (sh_can_follow_jump): Return false if the followee jump is
18801 a crossing jump when -freorder-blocks-and-partition is specified.
18802 * config/sh/sh.md (*jump_compact_crossing): New insn.
18803
18804 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
18805 Kaz Kojima <kkojima@gcc.gnu.org>
18806
18807 PR target/64761
18808 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18809 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18810 (sh_can_redirect_branch): Rename to ...
18811 (sh_can_follow_jump): ... this. Constify argument types.
18812 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18813 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18814 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18815 * doc/tm.texi: Regenerate.
18816
18817 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18818
18819 PR sanitizer/64981
18820 * builtins.c (expand_builtin): Call targetm.expand_builtin
18821 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18822
18823 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18824
18825 PR ipa/61548
18826 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18827
18828 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18829
18830 PR ipa/63566
18831 * ipa-icf.c (set_local): New function.
18832 (sem_function::merge): Use it.
18833
18834 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18835
18836 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18837 (add_type_duplicate): Fix comparison of BINFOs.
18838
18839 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18840
18841 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18842 on getting VOID pointer.
18843
18844 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18845
18846 PR target/64979
18847 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18848 va_list escapes.
18849
18850 2015-02-09 Richard Biener <rguenther@suse.de>
18851
18852 * genmatch.c (replace_id): Copy expr_type.
18853
18854 2015-02-09 Richard Biener <rguenther@suse.de>
18855
18856 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18857 (streamer_write_tree_bitfields): Declare.
18858 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18859 properly unpack padding.
18860 (unpack_value_fields): Inline ...
18861 (streamer_read_tree_bitfields): ... here.
18862 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18863 and properly add padding bits.
18864 (streamer_pack_tree_bitfields): Fold into ...
18865 (streamer_write_tree_bitfields): ... this new function,
18866 exposing the bitpack object.
18867 * lto-streamer-out.c (lto_write_tree_1): Call
18868 streamer_write_tree_bitfields.
18869
18870 2015-02-09 Richard Biener <rguenther@suse.de>
18871
18872 PR tree-optimization/54000
18873 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18874 (struct ivopts_data): Add loop_loc member.
18875 (tree_ssa_iv_optimize_loop): Dump loop location.
18876 (create_new_ivs): Likewise, also dump number of IVs generated.
18877
18878 2015-02-09 Martin Liska <mliska@suse.cz>
18879
18880 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18881 just if not yet registered.
18882 (ipa_icf_generate_summary): Register callgraph hooks.
18883
18884 2015-02-08 Andrew Pinski <apinski@cavium.com>
18885
18886 * config/aarch64/aarch64.c (gty_dummy): Delete.
18887
18888 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18889
18890 PR ipa/63566
18891 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18892 (cgraph_node::local_p): Remove thunk related FIXME.
18893
18894 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18895
18896 PR ipa/63566
18897 * i386.c (ix86_function_regparm): Look through aliases to see if callee
18898 is local and optimized.
18899 (ix86_function_sseregparm): Likewise; also use target's SSE math
18900 settings; error out instead of silently generating wrong code
18901 on mismatches.
18902 (init_cumulative_args): Look through aliases.
18903
18904 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18905
18906 PR ipa/63566
18907 * ipa-split.c (execute_split_functions): Split if function has aliases.
18908
18909 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18910
18911 PR ipa/63566
18912 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18913 aliases before trying to expand it.
18914 (cgraph_node::expand_thunk): Fix formating.
18915
18916 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
18917
18918 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18919 (Using Assembly Language with C): Expand introduction.
18920 (Basic Asm): Copy-edit. Add more information about uses of
18921 basic asm.
18922 (Extended Asm): Copy-edit. Document new escape syntax and
18923 %l[label] syntax.
18924 (Global Reg Vars): Copy-edit.
18925 (Local Reg Vars): Likewise.
18926
18927 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
18928
18929 PR debug/2714
18930 PR bootstrap/64256
18931 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18932 (DBX_CONTIN_CHAR): Define.
18933
18934 2015-02-06 Sebastian Pop <s.pop@samsung.com>
18935 Brian Rzycki <b.rzycki@samsung.com>
18936
18937 PR tree-optimization/64878
18938 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18939 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18940 Stop recursion at loop phi nodes after having visited a loop phi node.
18941
18942 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18943
18944 * toplev.c (process_options): Change flag_ipa_ra before creating
18945 optimization_{default,current}_node.
18946
18947 PR ipa/64896
18948 * cgraphunit.c (cgraph_node::expand_thunk): If
18949 restype is not is_gimple_reg_type nor the thunk_fndecl
18950 returns aggregate_value_p, set restmp to a temporary variable
18951 instead of resdecl.
18952
18953 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
18954
18955 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18956
18957 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18958
18959 PR target/64205
18960 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18961 add a general secondary reload handler for SDmode, unless we have
18962 both read/write support for SDmode.
18963
18964 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18965
18966 PR middle-end/64937
18967 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18968 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18969 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18970 1 before, push it to abstract_vec.
18971 (dwarf2out_abstract_function): Adjust caller. Don't call
18972 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18973 DECL_ABSTRACT_P flags for all abstract_vec elts.
18974
18975 2015-02-06 Renlin Li <renlin.li@arm.com>
18976
18977 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18978 complex gimple.
18979 * tree-ssa.c (execute_update_addresses_taken): Likewise.
18980
18981 2015-02-06 Jeff Law <law@redhat.com>
18982
18983 PR target/64889
18984 * config/h8300/h8300.c (push): New argument "in_prologue".
18985 Pass "in_prologue" along to "F".
18986 (h8300_push_pop): Corresponding changes.
18987 (h8300_expand_prologue): Likewise.
18988 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
18989
18990 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18991
18992 PR rtl-optimization/64957
18993 PR debug/64817
18994 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18995 IOR rather than for AND.
18996
18997 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
18998
18999 PR target/62631
19000 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
19001 of shift-add and (add + shift) operations. Rename local variable.
19002
19003 2015-02-05 Jeff Law <law@redhat.com>
19004
19005 PR target/17306
19006 * config/h8300/constraints.md (U): Correctly dectect
19007 "eightbit_data" memory addresses.
19008 * config/h8300/h8300.c (eightbit_constant_address_p): Also
19009 handle (const (plus (symbol_ref (x)))) where x is declared
19010 as an 8-bit data memory address.
19011 * config/h8300/h8300.md (call, call_value): Correctly detect
19012 "funcvec" functions.
19013
19014 PR target/43264
19015 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
19016 24 to 28 bits for the H8/300.
19017
19018 2015-02-06 Alan Modra <amodra@gmail.com>
19019
19020 PR target/64876
19021 * config/rs6000/rs6000.c (chain_already_loaded): New function.
19022 (rs6000_call_aix): Use it.
19023
19024 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
19025
19026 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
19027 check.
19028
19029 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
19030
19031 * config/h8300/constraints.md ("U" constraint): Use strict
19032 variant of REG_OK_FOR_BASE_P after reload has started.
19033
19034 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
19035
19036 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
19037 define to zero if !TARGET_NEON.
19038 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
19039
19040 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19041 Trevor Saunders <tsaunders@mozilla.com>
19042
19043 PR ipa/61548
19044 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
19045
19046 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19047
19048 PR ipa/61548
19049 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
19050 when removing varpool nodes.
19051
19052 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19053
19054 PR ipa/61548
19055 * varpool.c (varpool_node::remove): Fix order of variables.
19056
19057 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19058
19059 PR ipa/64686
19060 * ipa-inline.c (inline_small_functions): Fix ordering issue between
19061 speculation resolution and key updates.
19062
19063 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19064
19065 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
19066 about not letting any speculative edges unupdated.
19067
19068 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19069
19070 PR gcov/64123
19071 * gcov-io.c (gcov_var): Export.
19072
19073 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19074
19075 PR middle-end/64922
19076 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
19077 edges that become speculative.
19078
19079 2015-02-04 Jakub Jelinek <jakub@redhat.com>
19080
19081 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
19082 or DW_LANG_Fortran08.
19083 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
19084 DW_LANG_Fortran08.
19085 (gen_compile_unit_die): Handle "GNU Fortran2003" and
19086 "GNU Fortran2008" language strings.
19087 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
19088 * langhooks.h (lang_GNU_Fortran): New prototype.
19089 * langhooks.c (lang_GNU_Fortran): New function.
19090 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
19091 lang_GNU_Fortran.
19092
19093 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
19094
19095 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
19096 (RTX_OK_FOR_OLO10_P): Likewise.
19097
19098 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
19099
19100 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
19101
19102 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
19103
19104 PR middle-end/64922
19105 * gimple.c: Include gimple-ssa.h.
19106 (maybe_remove_unused_call_args): New function.
19107 * gimple.h (maybe_remove_unused_call_args): Declare.
19108 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
19109 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19110 * gimple-fold.c (gimple_fold_call): Likewise.
19111
19112 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
19113
19114 PR rtl-optimization/64905
19115 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
19116 pointer alignment if it isn't needed.
19117
19118 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
19119
19120 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
19121 cortex-a72.cortex-a53.
19122 * config/aarch64/aarch64-tune.md: Regenerate.
19123 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
19124
19125 2015-02-04 Nick Clifton <nickc@redhat.com>
19126
19127 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
19128 inside a MEM.
19129
19130 2015-02-04 Jakub Jelinek <jakub@redhat.com>
19131
19132 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
19133 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
19134 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
19135 of DEF_BUILTIN.
19136 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
19137 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
19138 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
19139 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
19140 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
19141 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
19142 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
19143 * tree-core.h (enum built_in_function): In between
19144 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
19145 for builtins that use DEF_BUILTIN_CHKP macro.
19146
19147 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
19148
19149 PR debug/64817
19150 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
19151 operands for tcc_comparison exprs. Fix typos.
19152
19153 PR debug/64817
19154 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
19155 of two XORs that have an intervening AND or IOR.
19156
19157 PR debug/64817
19158 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
19159 simplification of XOR of AND to not allocate new rtx before
19160 committing to a simplification.
19161
19162 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19163
19164 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
19165 manual swaps in all peepholes.
19166
19167 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19168
19169 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
19170 of manual swapping implementation.
19171 (aarch64_expand_vec_perm_const_1): Likewise.
19172
19173 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
19174
19175 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
19176 (generic_addrcost_table): Remove NAMED_PARAM.
19177 (cortexa57_addrcost_table): Likewise.
19178 (xgene1_addrcost_table): Likewise.
19179 (generic_regmove_table): Likewise.
19180 (cortexa53_regmove_table): Likewise.
19181 (xgene1_regmove_table): Likewise.
19182 (generic_vector_table): Likewise.
19183 (cortexa57_vector_table): Likewise.
19184 (xgene1_vector_table): Likewise.
19185 (generic_tunings): Likewise.
19186 (cortexa53_tunings): Likewise.
19187 (cortexa57_tunings): Likewise.
19188 (xgene1_tunings): Likewise.
19189
19190 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
19191
19192 * config/arm/arm-cores.def: Add cortex-a72 and
19193 cortex-a72.cortex-a53.
19194 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
19195 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
19196 * config/arm/arm-tune.md: Regenerate.
19197 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
19198 "cortex-a72.cortex-a53".
19199 * doc/invoke.texi (ARM Options/-mtune): Likewise.
19200
19201 2015-02-04 Nick Clifton <nickc@redhat.com>
19202
19203 PR target/64408
19204 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
19205 of accepted codes.
19206 (nonimmediate_di_operand): Likewise.
19207
19208 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
19209 prefixes of known F5 using MSP430 MCUs.
19210
19211 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19212
19213 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
19214 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
19215 instead of __builtin_sqrt.
19216
19217 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
19218
19219 * varasm.c (do_assemble_alias): Follow transparent alias
19220 chain for target.
19221 (default_assemble_visibility): Follow transparent alias
19222 chain for decl name.
19223
19224 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19225
19226 PR middle-end/62103
19227 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
19228 to compute size of referenced value in the constant case.
19229
19230 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19231
19232 PR rtl-optimization/64756
19233 * cse.c (invalidate_dest): New function.
19234 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
19235 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
19236 invalidate and do not record it.
19237
19238 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
19239
19240 PR target/64660
19241 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
19242 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
19243 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
19244 atomic_nand<mode>_soft_tcb): New insns.
19245 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
19246 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
19247 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
19248 Split into atomic_not_fetchsi_hard if operands[0] is unused.
19249 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
19250 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19251 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
19252 atomic_not<mode>_hard if operands[0] is unused.
19253 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
19254 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
19255 if operands[0] is unused.
19256 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
19257 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
19258 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
19259 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19260 unused.
19261 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
19262 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19263 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
19264 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
19265 if operands[0] is unused.
19266 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
19267 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
19268 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
19269 atomic_nand_fetchsi_hard if operands[0] is unused.
19270 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
19271 atomic_nand<mode>_hard if operands[0] is unused.
19272 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
19273 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19274 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
19275 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19276 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
19277 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19278 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19279 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19280 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
19281 atomic_not<mode>_hard if operands[0] is unused.
19282 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19283 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19284 unused.
19285 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19286 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19287 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
19288 atomic_nand<mode>_hard if operands[0] is unused.
19289 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19290 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19291
19292 2015-02-03 David Malcolm <dmalcolm@redhat.com>
19293
19294 PR jit/64810
19295 * Makefile.in (GCC_OBJS): Add gcc-main.o.
19296 * gcc-main.c: New file, containing "main" taken from gcc.c.
19297 * gcc.c (do_self_spec): Free decoded_options.
19298 (class driver): Move declaration to gcc.h.
19299 (main): Move declaration and implementation to new file
19300 gcc-main.c.
19301 (driver_get_configure_time_options): New function.
19302 * gcc.h (class driver): Move this declaration here, from
19303 gcc.c.
19304 (driver_get_configure_time_options): New declaration.
19305
19306 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
19307
19308 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19309 cross-module inlining.
19310 * cgraph.h (cgraph_node): Add flag merged.
19311 * ipa-icf.c (sem_function::merge): Maintain it.
19312
19313 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
19314
19315 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19316 instead of OBJECT_P.
19317
19318 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
19319
19320 PR target/62631
19321 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19322 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19323 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19324 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19325
19326 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19327
19328 PR other/63504
19329 * combine.c (reg_n_sets_max): New variable.
19330 (can_change_dest_mode, reg_nonzero_bits_for_combine,
19331 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19332 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19333 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19334 (rest_of_handle_combine): Initialize reg_n_sets_max.
19335
19336 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
19337
19338 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19339 if some always_inline was inlined, apply changes before inlining
19340 heuristically.
19341
19342 2015-02-02 David Malcolm <dmalcolm@redhat.com>
19343
19344 PR jit/64810
19345 * config/arm/arm.c (arm_option_override): Set
19346 arm_selected_arch/cpu/tune to NULL on entry.
19347
19348 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
19349 Andrew Pinski <pinskia@gcc.gnu.org>
19350 Jakub Jelinek <jakub@gcc.gnu.org>
19351
19352 PR target/64231
19353 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19354 integer typing for small model. Use IN_RANGE.
19355
19356 2015-02-02 Richard Biener <rguenther@suse.de>
19357
19358 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19359 * tree-vrp.c (vrp_valueize_1): Likewise.
19360
19361 2015-02-02 Alan Modra <amodra@gmail.com>
19362
19363 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19364 than mem for toc_restore.
19365 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19366 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19367 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19368
19369 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
19370
19371 PR target/64047
19372 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19373 explicit default options.
19374
19375 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
19376
19377 PR ipa/64872
19378 * ipa-utils.c (ipa_merge_profiles): Add release argument.
19379 * ipa-icf.c (sem_function::merge): Do not release body when merging.
19380 * ipa-utils.h (ipa_merge_profiles): Update prototype.
19381
19382 2015-02-01 Jakub Jelinek <jakub@redhat.com>
19383
19384 PR debug/64817
19385 * cfgexpand.c (deep_ter_debug_map): New variable.
19386 (avoid_deep_ter_for_debug): New function.
19387 (expand_debug_expr): If TERed SSA_NAME is in
19388 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19389 instead of trying to expand SSA_NAME's def stmt.
19390 (expand_debug_locations): When expanding debug bind
19391 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19392 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19393 value.
19394 (pass_expand::execute): Call avoid_deep_ter_for_debug on
19395 all debug bind stmts. Delete deep_ter_debug_map after
19396 expand_debug_location if non-NULL and clear it.
19397
19398 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
19399
19400 PR target/64851
19401 * config/sh/sync.md (atomic_fetch_notsi_hard,
19402 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19403 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19404 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19405 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19406 atomic_not_fetch<mode>_soft_imask): New insns.
19407
19408 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19409
19410 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19411 (rank_for_schedule_debug): Split from ...
19412 (rank_for_schedule): ... this.
19413 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19414 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19415
19416 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19417
19418 * doc/md.texi (Machine Constraints): Alphabetize table by target.
19419 * doc/extend.texi (x86 Variable Attributes): Move section to
19420 correct alphabetization after renaming.
19421 (x86 Type Attributes): Likewise.
19422 (Target Builtins): Re-alphabetize menu.
19423 (x86 Built-in Functions): Move section to correct alphabetization
19424 after renaming.
19425 (x86 transactional memory intrinsics): Likewise.
19426 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19427 and x86 Windows Options in table and menu.
19428 (x86 Options): Move section to correct alphabetization after
19429 renaming.
19430 (x86 Windows Options): Likewise.
19431
19432 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19433
19434 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19435 preferred names of the architecture and its 32- and 64-bit
19436 variants.
19437 * doc/invoke.texi: Likewise.
19438 * doc/md.texi: Likewise.
19439
19440 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19441
19442 PR target/64882
19443 * config/i386/predicates.md (address_no_seg_operand): Reject
19444 non-CONST_INT_P operands in invalid mode.
19445
19446 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19447
19448 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19449 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
19450 * config/i386/predicates.md (address_no_seg_operand): Call
19451 address_operand with VOIDmode.
19452 (vsib_address_operand): Ditto.
19453 (address_mpx_no_base_operand): Ditto.
19454 (address_mpx_no_index_operand): Ditto.
19455
19456 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19457
19458 PR target/64688
19459 * lra-constraints.c (original_subreg_reg_mode): New.
19460 (simplify_operand_subreg): Try to simplify subreg of const. Use
19461 original_subreg_reg_mode for it.
19462 (swap_operands): Update original_subreg_reg_mode.
19463 (curr_insn_transform): Set up original_subreg_reg_mode.
19464
19465 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19466
19467 PR target/64617
19468 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19469 function.
19470 (process_alt_operands): Use it.
19471 (curr_insn_transform): Check the optional reload pseudo class is
19472 ok for the mode.
19473
19474 2015-01-30 Joseph Myers <joseph@codesourcery.com>
19475
19476 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19477 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19478 prototype.
19479 * toplev.h (init_asm_output): Update comment on use of
19480 UNKNOWN_LOCATION with fatal_error.
19481 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19482 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19483 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19484 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19485 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19486 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19487 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19488 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19489 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19490 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19491 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19492 fatal_error changed to pass input_location as first argument.
19493
19494 2015-01-30 Martin Liska <mliska@suse.cz>
19495
19496 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19497 in #pragma GCC diagnostic guards.
19498
19499 2015-01-30 Richard Biener <rguenther@suse.de>
19500
19501 PR tree-optimization/64829
19502 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19503 not add a widening conversion pattern but hand off extra
19504 widenings to callers.
19505 (vect_recog_widen_mult_pattern): Handle extra widening produced
19506 by vect_handle_widen_op_by_const.
19507 (vect_recog_widen_shift_pattern): Likewise.
19508 (vect_pattern_recog_1): Remove excess vertical space in dumping.
19509 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19510 (vect_init_vector_1): Likewise.
19511 (vect_get_vec_def_for_operand): Likewise.
19512 (vect_finish_stmt_generation): Likewise.
19513 (vectorizable_load): Likewise.
19514 (vect_analyze_stmt): Likewise.
19515 (vect_is_simple_use): Likewise.
19516
19517 2015-01-29 Jeff Law <law@redhat.com>
19518
19519 * combine.c (try_combine): Fix typo in comment.
19520
19521 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
19522
19523 PR target/64580
19524 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19525 (rs6000_stack_info): Add assert.
19526 (rs6000_output_savres_externs): New function, split off from...
19527 (rs6000_output_function_prologue): ... here. Do not call it for
19528 thunks.
19529
19530 2015-01-29 Jeff Law <law@redhat.com>
19531
19532 PR target/15184
19533 * combine.c (try_combine): If I0 is a memory load and I3 a store
19534 to a related address, increase the "goodness" of doing a 4-insn
19535 combination with I0-I3.
19536 (make_field_assignment): Handle SUBREGs in the ior+and case.
19537
19538 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19539
19540 PR tree-optimization/64746
19541 * tree-if-conv.c (mask_exists): New function.
19542 (predicate_mem_writes): Save created mask with given size for further
19543 use.
19544 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19545 (ifcvt_repair_bool_pattern): Collect all statements that are root
19546 of bool pattern and use iterative algorithm to remove multiple uses
19547 of predicates, display number of required iterations.
19548
19549 2015-01-29 Richard Biener <rguenther@suse.de>
19550
19551 PR tree-optimization/64853
19552 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19553 stmt will get simulated again.
19554 * tree-ssa-ccp.c (valueize_op_1): Likewise.
19555
19556 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19557
19558 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19559 return_in_pc. Remove redundant assignments.
19560 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19561 (arm_expand_epilogue): Don't compare boolean with true in if condition.
19562
19563 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
19564
19565 * config/i386/i386.c (ix86_mode_after): Make static.
19566
19567 2015-01-29 Richard Biener <rguenther@suse.de>
19568
19569 PR tree-optimization/64844
19570 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19571 dump cost model analysis.
19572 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19573 Do not register adjusted load/store costs here.
19574
19575 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19576 Uros Bizjak <ubizjak@gmail.com>
19577
19578 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19579 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19580 using x86_use_pseudo_pic_reg.
19581 * config/i386/i386.c (ix86_conditional_register_usage): Remove
19582 support for fixed PIC register.
19583 (ix86_use_pseudo_pic_reg): Not static any more.
19584
19585 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19586
19587 PR middle-end/64805
19588 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19589 to avoid error in cgraph node verification.
19590
19591 2015-01-29 Marek Polacek <polacek@redhat.com>
19592
19593 * doc/standards.texi: Reflect that the default for C is gnu11.
19594
19595 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
19596
19597 PR target/64761
19598 * reorg.c (switch_text_sections_between_p): New function.
19599 (relax_delay_slots): Call it when testing if the jump insn
19600 is removable. Use targetm.can_follow_jump when testing if
19601 the conditional branch can follow an unconditional jump.
19602
19603 2015-01-27 Caroline Tice <cmtice@google.com>
19604
19605 Committing VTV Cywin/Ming patch for Patrick Wollgast
19606 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19607 if -fvtable-verify=preinit/std is used.
19608 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19609 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19610 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19611 if -fvtable-verify=preinit/std is used.
19612 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19613 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19614 if -fvtable-verify=preinit/std is used.
19615 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19616 * config/i386/mingw32.h (LIB_SPEC): Likewise.
19617 * varasm.c (assemble_variable): Add code to properly set the comdat
19618 section and name for the .vtable_map_vars section in case the
19619 target is PE or COFF.
19620
19621 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19622
19623 PR ipa/64801
19624 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19625 make sane BB profile.
19626 (cgraph_node::expand_thunk): Make sane BB profile.
19627 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19628 * cgraph.h (init_lowered_empty_function): Update prototype.
19629 * config/i386/i386.c (make_resolver_func): Update call.
19630 * predict.c (gate): Disable branch prediction pass if
19631 profile is already there.
19632
19633 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19634
19635 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19636 * opth-gen.awk: Likewise.
19637 * common.opt: Mark flag_fp_contract_mode as Optimization.
19638
19639 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
19640
19641 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19642 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19643
19644 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
19645
19646 PR target/64659
19647 * config/sh/predicates.md (atomic_arith_operand,
19648 atomic_logical_operand): Remove.
19649 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19650 (atomic_arith_operand_0): New predicate.
19651 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19652 Use atomic_arith_operand_0 for input values.
19653 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19654 atomic_compare_and_swap<mode>_soft_gusa,
19655 atomic_compare_and_swap<mode>_soft_tcb,
19656 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19657 arith_reg_operand instead of register_operand.
19658 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
19659 atomic_arith_operand_0 for newval input.
19660 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19661 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19662 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19663 arith_reg_operand instead of register_operand.
19664 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19665 fetchop_predicate_1, fetchop_constraint_1_llcs,
19666 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19667 fetchop_constraint_1_imask): New code iterator attributes.
19668 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19669 register_operand. Use fetchop_predicate_1.
19670 (atomic_fetch_<fetchop_name>si_hard,
19671 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19672 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19673 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19674 and arith_reg_operand instead of register_operand. Use
19675 fetchop_predicate_1, fetchop_constraint_1_gusa.
19676 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19677 and arith_reg_operand instead of register_operand. Use
19678 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
19679 to allow R0 usage.
19680 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19681 and arith_reg_operand instead of register_operand. Use
19682 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
19683 to allow R0 usage.
19684 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19685 register_operand. Use atomic_logical_operand_1.
19686 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19687 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19688 arith_reg_operand instead of register_operand.
19689 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19690 Use arith_reg_dest and arith_reg_operand instead of register_operand.
19691 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
19692 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19693 register_operand. Use fetchop_predicate_1.
19694 (atomic_<fetchop_name>_fetchsi_hard,
19695 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19696 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19697 fetchop_constraint_1_llcs.
19698 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19699 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19700 fetchop_constraint_1_gusa.
19701 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19702 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19703 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
19704 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19705 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19706 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
19707 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19708 register_operand. Use atomic_logical_operand_1.
19709 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19710 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19711 arith_reg_operand instead of register_operand.
19712 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19713 arith_reg_operand instead of register_operand. Use logical_operand
19714 and K08. Adjust asm sequence to allow R0 usage.
19715 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19716 arith_reg_operand instead of register_operand. Use logical_operand
19717 and K08.
19718
19719 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19720
19721 PR other/63504
19722 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19723 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19724 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19725 only get_full_len HOST_WIDE_INTs from get_val () array rather than
19726 all bits in *val_wide.
19727
19728 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
19729
19730 * varpool.c (tls_model_names): Fix names.
19731 (varpool_node::dump): Dump tls- prefix for tls models.
19732
19733 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
19734 Bernd Schmidt <bernds@codesourcery.com>
19735 Nathan Sidwell <nathan@codesourcery.com>
19736
19737 * config/nvptx/mkoffload.c: New file.
19738 * config/nvptx/t-nvptx: Add build rules for it.
19739 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19740 (extra_programs): Add mkoffload.
19741 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19742 function.
19743 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19744
19745 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
19746
19747 PR middle-end/64809
19748 * cfgexpand.c (reorder_operands): Skip debug gimples.
19749
19750 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
19751
19752 PR tree-optimization/64277
19753 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19754 range info when possible to refine estimation.
19755
19756 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19757
19758 PR tree-optimization/64718
19759 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19760 be a 16bit unsigned integer when n->range is 16.
19761 (bswap_replace): Convert src to that type if necessary for all bswap
19762 sizes. Fix rotation right notation in nearby comment. Use bswap_type
19763 set in pass_optimize_bswap::execute ().
19764
19765 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
19766
19767 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19768 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19769 integer and floating point variants.
19770 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19771
19772 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
19773
19774 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19775 for all vector modes.
19776
19777 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19778
19779 PR bootstrap/64612
19780 * doc/sourcebuild.texi (comdat_group): Document.
19781
19782 2015-01-28 Terry Guo <terry.guo@arm.com>
19783
19784 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19785
19786 2015-01-27 David Malcolm <dmalcolm@redhat.com>
19787
19788 * toplev.c (print_version): Add param "show_global_state", and
19789 only print GGC and plugin information if it is true.
19790 (init_asm_output): Pass in "true" for the new param when calling
19791 print_version.
19792 (process_options): Likewise.
19793 (toplev::main): Likewise.
19794 * toplev.h (print_version): Add new param to decl.
19795
19796 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19797
19798 PR ipa/60871
19799 PR ipa/64139
19800 * tree.c (lookup_binfo_at_offset): New function.
19801 (get_binfo_at_offset): Use it.
19802
19803 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19804
19805 PR ipa/64282
19806 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19807 on vtable being vtable.
19808
19809 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19810
19811 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19812 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19813 -mhotpatch= option.
19814 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19815 -mno-hotpatch options. Change syntax of -mhotpatch= option.
19816 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19817 Renamed.
19818 (s390_hotpatch_trampoline_halfwords_max): Renamed.
19819 (s390_hotpatch_hw_max): New name.
19820 (s390_hotpatch_trampoline_halfwords): Renamed.
19821 (s390_hotpatch_hw_before_label): New name.
19822 (get_hotpatch_attribute): Removed.
19823 (s390_hotpatch_hw_after_label): New name.
19824 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19825 attribute.
19826 (s390_attribute_table): Ditto.
19827 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19828 (s390_function_num_hotpatch_hw): New name.
19829 Remove special handling of inline functions and hotpatching.
19830 Return number of nops before and after the function label.
19831 (s390_can_inline_p): Removed.
19832 (s390_asm_output_function_label): Emit a configurable number of nops
19833 after the function label.
19834 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19835 (TARGET_CAN_INLINE_P) Removed.
19836 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19837
19838 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19839 Jiong Wang <jiong.wang@arm.com>
19840
19841 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19842 of scratch reg.
19843 (cb<optab><mode>1): Likewise.
19844 * config/aarch64/iterators.md (bcond): New define_code_attr.
19845
19846 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19847
19848 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19849 memory accesses.
19850
19851 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19852
19853 * config/s390/s390.c (s390_register_move_cost): Increase costs for
19854 FPR->GPR moves.
19855
19856 2015-01-27 Richard Biener <rguenther@suse.de>
19857
19858 * tree-vrp.c (update_value_range): Intersect the range with
19859 old recorded SSA name range information.
19860
19861 2015-01-27 Nick Clifton <nickc@redhat.com>
19862
19863 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19864 BC, DE and HL registers directly, not via AX.
19865 When decrementing the stack pointer by a large amount, transfer SP
19866 into AX and perform the subtraction there.
19867 (rl78_expand_epilogue): Perform the inverse of the above
19868 enhancements.
19869
19870 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19871
19872 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19873
19874 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19875 Yury Gribov <y.gribov@samsung.com>
19876
19877 PR ubsan/64741
19878 * ubsan.c (ubsan_source_location): Refactor code.
19879 (ubsan_type_descriptor): Update type size. Refactor code.
19880
19881 2015-01-27 Richard Biener <rguenther@suse.de>
19882
19883 PR tree-optimization/56273
19884 PR tree-optimization/59124
19885 PR tree-optimization/64277
19886 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19887 from the first VRP pass.
19888
19889 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19890
19891 PR ipa/64776
19892 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19893 handle the first argument in the same loop as all the other arguments.
19894
19895 PR rtl-optimization/61058
19896 * jump.c (cleanup_barriers): Update basic block boundaries
19897 if BLOCK_FOR_INSN is non-NULL on PREV.
19898
19899 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
19900
19901 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19902 bounds narrowing, already instrumented calls and calls to
19903 not instrumentable functions.
19904
19905 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19906
19907 PR tree-optimization/64807
19908 * wide-int.cc (wi::divmod_internal): Clear
19909 b_dividend[dividend_blocks_needed].
19910
19911 2015-01-26 DJ Delorie <dj@redhat.com>
19912
19913 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19914 volatile memory references.
19915
19916 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
19917
19918 PR target/49263
19919 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19920 remove_insn.
19921 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19922 shifts if it already fits into K08.
19923
19924 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19925
19926 PR ipa/64730
19927 * ipa-inline.c (inline_small_functions): Print "unknown" even
19928 if edge->call_stmt is non-NULL, but has builtins or unknown
19929 location.
19930
19931 PR middle-end/64421
19932 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19933 with asterisk, skip the first character.
19934
19935 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19936
19937 PR target/64806
19938 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19939 order change.
19940
19941 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
19942
19943 PR target/64795
19944 * config/i386/i386.md (*movdi_internal): Also check operand 0
19945 to determine TYPE_LEA operand.
19946 (*movsi_internal): Ditto.
19947
19948 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19949
19950 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19951 OPTION_MASK_QUAD_MEMORY_ATOMIC.
19952
19953 2015-01-26 Renlin Li <renlin.li@arm.com>
19954
19955 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19956 the comment.
19957 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19958 for higher part.
19959
19960 2015-01-26 Richard Biener <rguenther@suse.de>
19961
19962 PR middle-end/64764
19963 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19964 combining two BIT_AND_EXPR predicates.
19965
19966 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19967
19968 PR bootstrap/64754
19969 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19970
19971 2015-01-26 Terry Guo <terry.guo@arm.com>
19972
19973 * config/arm/arm.c (arm_file_start): Update the assignment of
19974 Tag_ABI_HardFP_use.
19975
19976 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
19977
19978 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19979 pipeline model.
19980 config/arm/arm.md: Include the new Cortex-A57 model.
19981 (generic_sched): Don't use generic_sched when tuning for
19982 Cortex-A57.
19983
19984 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
19985 Uros Bizjak <ubizjak@gmail.com>
19986
19987 * config/i386/i386.c (get_builtin_code_for_version): Add
19988 support for BMI and BMI2 multiversion functions.
19989
19990 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19991
19992 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19993 (extract_bit_field): Likewise.
19994 (extract_low_bits): Likewise.
19995 (expand_mult): Likewise.
19996 (expand_mult_highpart_adjust): Likewise.
19997
19998 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
19999
20000 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
20001 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
20002 * config/i386/i386.c (processor_model): Add
20003 M_INTEL_COREI7_BROADWELL.
20004 (arch_names_table): Add "broadwell".
20005
20006 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
20007
20008 PR target/49263
20009 PR target/53987
20010 PR target/64345
20011 PR target/59533
20012 PR target/52933
20013 PR target/54236
20014 PR target/51244
20015 * config/sh/sh-protos.h
20016 (sh_extending_set_of_reg::can_use_as_unextended_reg,
20017 sh_extending_set_of_reg::use_as_unextended_reg,
20018 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
20019 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
20020 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
20021 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
20022 (sh_treg_insns): New class.
20023 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
20024 (scope_counter): New class.
20025 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
20026 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
20027 sh_extending_set_of_reg::can_use_as_unextended_reg,
20028 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
20029 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
20030 sh_split_treg_set_expr): New functions.
20031 (addsubcosts): Handle treg_set_expr.
20032 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
20033 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
20034 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
20035 (sh_insn_operands_modified_between_p): Make non-static.
20036 * config/sh/predicates.md (zero_extend_movu_operand): Allow
20037 simple_mem_operand in addition to displacement_mem_operand.
20038 (zero_extend_operand): Don't allow zero_extend_movu_operand.
20039 (treg_set_expr, treg_set_expr_not_const01,
20040 arith_reg_or_treg_set_expr): New predicates.
20041 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
20042 arith_or_int_operand instead of logical_operand. Convert to
20043 insn_and_split. Try to optimize constant operand in splitter.
20044 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
20045 (*tstqi_t_zero): Delete.
20046 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
20047 (tstsi_t_and_not): Delete.
20048 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
20049 Convert to insn_and_split.
20050 (unnamed split, tstsi_t_zero_extract_xor,
20051 tstsi_t_zero_extract_subreg_xor_little,
20052 tstsi_t_zero_extract_subreg_xor_big): Delete.
20053 (*tstsi_t_shift_mask): New insn_and_split.
20054 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
20055 to recombine with surrounding insns when splitting.
20056 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
20057 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
20058 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
20059 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
20060 (*cbranch_div0s: Delete.
20061 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
20062 Try to recombine with surrounding insns when splitting. Add operand
20063 order variants.
20064 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
20065 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
20066 *addc_r_r_msb, *addc_2r_msb): Delete.
20067 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
20068 order variant.
20069 (*addc_negreg_t): New insn_and_split.
20070 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
20071 Try to recombine with surrounding insns when splitting.
20072 Add operand order variants.
20073 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
20074 insn_and_split patterns.
20075 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
20076 surrounding insns when splitting.
20077 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
20078 (*rotcl): Likewise. Add zero_extract variant.
20079 (*ashrsi2_31): New insn_and_split.
20080 (*negc): Convert to insn_and_split. Use treg_set_expr.
20081 (*zero_extend<mode>si2_disp_mem): Update comment.
20082 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
20083 condition.
20084 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
20085 with surrounding insns when splitting.
20086 (any_treg_expr_to_reg): New insn_and_split.
20087 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
20088 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
20089 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
20090 *zero_extract_2): New single bit zero extract patterns.
20091 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
20092 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
20093 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
20094 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
20095 set destination.
20096 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
20097 register_operand for set source.
20098
20099 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
20100
20101 * i386.opt (prefetch_sse): New targetsave.
20102 * i386.c (ix86_function_specific_save): Save prefetch_sse.
20103 (ix86_function_specific_restore): Restore prefetch_sse and initialize
20104 ix86_cost/ix86_tune_cost.
20105
20106 2015-01-23 David Malcolm <dmalcolm@redhat.com>
20107
20108 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
20109 Support the JIT by using 0 as the language type.
20110
20111 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
20112
20113 PR target/64317
20114 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
20115 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
20116 (mark_regno_live, process_bb_lives): Pass new parameter value to
20117 make_hard_regno_born.
20118
20119 2015-01-23 Jakub Jelinek <jakub@redhat.com>
20120
20121 PR rtl-optimization/63637
20122 PR rtl-optimization/60663
20123 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
20124 if elt->cost is MAX_COST for ASM_OPERANDS.
20125 (find_sets_in_insn): Fix up comment typo.
20126 (cse_insn): Don't set src_volatile for all non-volatile
20127 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
20128 or with "memory" clobber. Set elt->cost to MAX_COST
20129 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
20130 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
20131
20132 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
20133
20134 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
20135 alternative 1.
20136
20137 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
20138
20139 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
20140 libgcc/config/i386/elf-lib.h.
20141
20142 2015-01-23 Jakub Jelinek <jakub@redhat.com>
20143
20144 PR driver/64737
20145 * gcc.c (print_configuration): Don't print a blank line at the end
20146 here...
20147 (run_attempt): ... but here unstead.
20148
20149 PR middle-end/64734
20150 * omp-low.c (scan_sharing_clauses): Don't ignore
20151 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
20152 on target data/update constructs.
20153
20154 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
20155
20156 PR target/50928
20157 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
20158 (DEBUG_RELOAD): Removed define.
20159 (m32c_limit_reload_class): Enable traces with if DEBUG0.
20160 (m32c_function_arg): Added a type cast.
20161 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
20162 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
20163 * config/m32c/bitops.md (andqi3_16): Likewise.
20164 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
20165 (push_a01_l): Likewise.
20166
20167 2015-01-23 David Malcolm <dmalcolm@redhat.com>
20168
20169 PR jit/64721
20170 * main.c (main): Construct toplev instances with init_signals=true.
20171 * toplev.c (general_init): Add param "init_signals", and use it to
20172 conditionalize the calls to signal and host_hooks.extra_signals.
20173 (toplev::toplev): Add param "init_signals".
20174 (toplev::main): When invoking general_init, pass m_init_signals
20175 to control whether signal-handlers are installed.
20176 * toplev.h (toplev::toplev): Add param "init_signals".
20177 (toplev::m_init_signals): New field.
20178
20179 2015-01-23 David Malcolm <dmalcolm@redhat.com>
20180
20181 PR jit/64722
20182 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
20183 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
20184 latter may be affected by the former (e.g. on i686).
20185
20186 2015-01-23 Martin Liska <mliska@suse.cz>
20187
20188 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
20189 false positive during profiledbootstrap.
20190
20191 2015-01-23 Tom de Vries <tom@codesourcery.com>
20192
20193 PR libgomp/64672
20194 * lto-opts.c (lto_write_options): Output non-explicit conservative
20195 -fno-openacc.
20196 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
20197 (append_compiler_options): Pass -fopenacc through.
20198
20199 2015-01-23 Tom de Vries <tom@codesourcery.com>
20200
20201 PR libgomp/64707
20202 * lto-opts.c (lto_write_options): Output non-explicit conservative
20203 -fno-openmp.
20204 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
20205 (append_compiler_options): Pass -fopenmp through.
20206
20207 2015-01-23 Jakub Jelinek <jakub@redhat.com>
20208
20209 PR debug/64511
20210 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
20211 GTY markup.
20212
20213 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
20214 * diagnostic.def (DK_ICE_NOBT): New kind.
20215 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
20216 like DK_ICE, but never print backtrace.
20217 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
20218 (internal_error_no_backtrace): New function.
20219 * gcc.c (execute): Use internal_error_no_backtrace instead of
20220 internal_error.
20221
20222 2015-01-22 Jeff Law <law@redhat.com>
20223
20224 PR target/52076
20225 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
20226 improve code density for small immediate to memory case.
20227 (insv): Better handle bitfield assignments when the field is
20228 being set to all ones.
20229 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
20230 operand predicate.
20231
20232 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20233 Jakub Jelinek <jakub@redhat.com>
20234
20235 PR middle-end/64729
20236 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
20237 for !TARGET_LIBC_PROVIDES_SSP version and
20238 -fstack-protector-{all,strong,explicit} otherwise.
20239 * config/freebsd.h (LINK_SSP_SPEC): Handle
20240 -fstack-protector-{strong,explicit}.
20241
20242 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
20243 H.J. Lu <hongjiu.lu@intel.com>
20244
20245 PR ipa/64694
20246 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
20247 heap.
20248
20249 2015-01-22 Wei Mi <wmi@google.com>
20250
20251 PR rtl-optimization/64557
20252 * dse.c (record_store): Call get_addr for mem_addr.
20253 (check_mem_read_rtx): Likewise.
20254
20255 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
20256
20257 * fold-const.c (const_binop): Add early return for non-tcc_binary.
20258
20259 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
20260
20261 * toplev.c (init_local_tick): Process the failure when read
20262 fails for random_seed.
20263
20264 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
20265 'pretty_name' to avoid memory overflow.
20266
20267 2015-01-22 Richard Biener <rguenther@suse.de>
20268
20269 PR middle-end/64728
20270 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20271 abnormal coalescing on undefined SSA names.
20272
20273 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
20274
20275 PR target/64688
20276 PR target/64477
20277 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20278 for alternative 3.
20279 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20280
20281 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
20282
20283 PR middle-end/63325
20284 * fold-const.c (fold_checksum_tree): Don't include value of
20285 expr->decl_with_vis.symtab_node in the checksum.
20286
20287 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20288
20289 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20290
20291 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
20292
20293 PR driver/64690
20294 * gcc.c (insert_comments): New function.
20295 (try_generate_repro): Call it.
20296 (append_text): Removed.
20297
20298 2015-01-22 Richard Biener <rguenther@suse.de>
20299
20300 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20301 with IL incompatible options. Properly honor user optimize
20302 attributes.
20303
20304 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
20305
20306 PR rtl-optimization/64682
20307 * combine.c (distribute_notes): When moving a death note for
20308 a register that is set in the new I2, make sure to put it
20309 before that new I2.
20310
20311 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
20312
20313 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20314 not TARGET_DEFAULT.
20315
20316 2015-01-21 Jakub Jelinek <jakub@redhat.com>
20317
20318 PR debug/64511
20319 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20320 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20321 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20322
20323 PR sanitizer/64706
20324 * doc/invoke.texi (-fsanitize=vptr): Document.
20325
20326 PR rtl-optimization/62078
20327 * dse.c: Include cfgcleanup.h.
20328 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20329 anything call purge_all_dead_edges and cleanup_cfg at the end
20330 of the pass.
20331
20332 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
20333
20334 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20335 edges.
20336
20337 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20338
20339 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20340 decl attribute.
20341
20342 2015-01-21 David Sherwood <david.sherwood@arm.com>
20343 Tejas Belagod <Tejas.Belagod@arm.com>
20344
20345 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20346 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20347 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20348 Removed.
20349
20350 2015-01-21 David Sherwood <david.sherwood@arm.com>
20351 Tejas Belagod <Tejas.Belagod@arm.com>
20352
20353 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20354 (aarch64_reverse_mask): New decls.
20355 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20356 (insn_count): New mode_attr.
20357 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20358 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20359 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20360 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20361 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20362 (aarch64_simd_st4): New patterns.
20363 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20364 (aarch64_reverse_mask): New functions.
20365
20366 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
20367
20368 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20369 Declare.
20370 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20371 addressing modes for BE.
20372 (aarch64_print_operand): Add 'R' specifier.
20373 (aarch64_simd_disambiguate_copy): Delete.
20374 (aarch64_simd_emit_reg_reg_move): New function.
20375 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20376 in define_splits for structural moves.
20377 (mov<mode>): Use less restrictive predicates.
20378 (*aarch64_mov<mode>): Simplify and only allow for LE.
20379 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20380
20381 2015-01-21 Alan Hayward <alan.hayward@arm.com>
20382
20383 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20384
20385 2015-01-21 Richard Henderson <rth@redhat.com>
20386
20387 PR target/64669
20388 * ccmp.c (used_in_cond_stmt_p): Remove.
20389 (expand_ccmp_expr): Don't use it.
20390
20391 2015-01-21 Nick Clifton <nickc@redhat.com>
20392
20393 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20394 PARALLELs.
20395
20396 2015-01-21 Richard Biener <rguenther@suse.de>
20397
20398 PR middle-end/64313
20399 * tree-core.h (builtin_info, builtin_info_type): Turn from
20400 an object with two arrays into an array of an object with
20401 decl and two flags, implicit_p and declared_p.
20402 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20403 set_builtin_decl, set_builtin_decl_implicit_p,
20404 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20405 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20406 * builtins.c (builtin_info): Adjust.
20407 * gimplify.c (gimplify_addr_expr): References to builtins
20408 that have been declared by the user makes them eligible for
20409 use by the compiler. Call set_builtin_decl_implicit_p on them.
20410
20411 2015-01-20 Jeff Law <law@redhat.com>
20412
20413 PR target/59946
20414 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20415 allow pc-relative addresses in operand predicates or constraints.
20416
20417 2015-01-21 Bin Cheng <bin.cheng@arm.com>
20418
20419 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20420 neon on aarch32 processors for stringops.
20421
20422 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20423
20424 PR ipa/63576
20425 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20426
20427 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20428
20429 PR lto/45375
20430 * ipa-inline.c: Include lto-streamer.h
20431 (report_inline_failed_reason): Output source file differences and
20432 flags on optimization/target node mismatch.
20433 (can_inline_edge_p): Consider caller to be the outer inline function;
20434 be less restrictive about matching opimize and optimize_size attributes.
20435 (inline_account_function_p): Break out from ...
20436 (inline_small_functions): ... here.
20437 * ipa-inline-transform.c (clone_inlined_nodes): Use
20438 inline_account_function_p.
20439 (inline_call): Use optimize attribution; use inline_account_function_p.
20440 (inline_transform): Use opt_for_fn.
20441 * ipa-inline.h (inline_account_function_p): Declare.
20442
20443 2015-01-20 Jakub Jelinek <jakub@redhat.com>
20444
20445 PR debug/64663
20446 * dwarf2out.c (decl_piece_node): Don't put bitsize into
20447 mode if bitsize <= 0.
20448 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20449 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20450 sizes and positions.
20451
20452 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
20453
20454 * config/nios2/nios2.c (nios2_asm_file_end): Implement
20455 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20456 needed.
20457 (TARGET_ASM_FILE_END): Define.
20458
20459 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20460
20461 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20462 (struct tune_params): Use the enum.
20463 * arm.c (arm_*_tune): Update.
20464 (arm_option_override): Update.
20465
20466 2015-01-20 Richard Biener <rguenther@suse.de>
20467
20468 PR ipa/64684
20469 * ipa-reference.c (add_static_var): Inline ...
20470 (analyze_function): ... here after splitting out from ...
20471 (is_proper_for_analysis): ... this.
20472
20473 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
20474
20475 PR target/64149
20476 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20477 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20478 replace the conditional with it's true branch.
20479 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20480 (arm_lra_p): Remove.
20481
20482 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
20483
20484 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20485
20486 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20487
20488 * config/tilegx/mul-tables.c: Move symtab.h include after
20489 coretypes.h include.
20490 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20491 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20492 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20493 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20494 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20495
20496 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
20497
20498 PR bootstrap/64676
20499 Revert:
20500 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20501
20502 PR rtl-optimization/64081
20503 * loop-iv.c (def_pred_latch_p): New function.
20504 (latch_dominating_def): Allow specific cases with non-single
20505 definitions.
20506 (iv_get_reaching_def): Likewise.
20507 (check_complex_exit_p): New function.
20508 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20509 with exits not executing on any iteration.
20510
20511 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20512
20513 PR lto/45375
20514 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20515 to set branch cost.
20516
20517 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20518
20519 PR lto/45375
20520 * i386.c (gate): Check flag_expensive_optimizations and
20521 optimize_size.
20522 (ix86_option_override_internal): Drop optimize_size condition
20523 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20524 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20525 MASK_PREFER_AVX128.
20526 (ix86_avx256_split_vector_move_misalign,
20527 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20528 * sse.md (all uses of TARGET_PREFER_AVX128): Add
20529 optimize_insn_for_speed_p check.
20530
20531 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20532
20533 * config/mips/mips.h (FP_ASM_SPEC): New define.
20534 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20535 instead.
20536
20537 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
20538
20539 PR target/53988
20540 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20541 nullptr for insn when reaching the first insn.
20542 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20543 (sh_insn_operands_modified_between_p): Add nullptr check.
20544 (sh_find_extending_set_of_reg): Fix log message. Don't accept
20545 sign extending mem load if the insn contains any UNSPEC or
20546 UNSPEC_VOLATILE.
20547
20548 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20549
20550 * params.def (inline-unit-growth): Drop to 15%.
20551 * invoke.texi (inline-unit-growth): Document change.
20552
20553 2015-01-19 Martin Liska <mliska@suse.cz>
20554
20555 PR ipa/64668
20556 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20557 function for second argument of OBJ_TYPE_REF.
20558
20559 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20560
20561 PR ipa/64218
20562 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20563 whether function is an alias.
20564
20565 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20566
20567 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20568 cases.
20569
20570 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
20571
20572 PR rtl-optimization/64671
20573 * lra-remat.c (operand_to_remat): Don't consider jump and call
20574 insns.
20575
20576 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
20577
20578 PR target/59828
20579 * config/rs6000/default64.h: Include rs6000-cpus.def.
20580 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20581 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20582 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20583 and POWER8.
20584 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20585 POWER8.
20586 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20587 pseudo-op to specify assembler dialect.
20588
20589 2015-01-19 Martin Liska <mliska@suse.cz>
20590
20591 PR ipa/64664
20592 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20593 Handle safe potentially removed nodes during filtering.
20594
20595 2015-01-19 Martin Liska <mliska@suse.cz>
20596
20597 * doc/extend.texi (no_icf): Add new attribute description.
20598 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20599 where the pass attempts to merge a function with no_icf attribute.
20600
20601 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20602
20603 PR target/64532
20604 * doc/md.texi (ARM Options): Document register constraints.
20605
20606 2015-01-19 Jiong Wang <jiong.wang@arm.com>
20607 Andrew Pinski <apinski@cavium.com>
20608
20609 PR target/64304
20610 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20611 (ashl<mode>3): Don't expand if operands[2] is not constant.
20612
20613 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20614
20615 PR target/64448
20616 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20617 Match xor-and-xor RTL pattern.
20618
20619 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20620
20621 PR rtl-optimization/64081
20622 * loop-iv.c (def_pred_latch_p): New function.
20623 (latch_dominating_def): Allow specific cases with non-single
20624 definitions.
20625 (iv_get_reaching_def): Likewise.
20626 (check_complex_exit_p): New function.
20627 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20628 with exits not executing on any iteration.
20629
20630 2015-01-19 Jakub Jelinek <jakub@redhat.com>
20631
20632 * common.opt (fgraphite): Fix a typo.
20633
20634 2015-01-19 Felix Yang <felix.yang@huawei.com>
20635
20636 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20637 pattern.
20638 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20639 uminp, smax_nanp, smin_nanp): New builtins.
20640 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20641 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20642 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20643 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20644 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20645 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20646 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20647 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20648 vpminnms_f32): Rewrite using builtin functions.
20649
20650 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
20651
20652 PR libgomp/64625
20653 * omp-low.c (offload_symbol_decl): Remove variable.
20654 (get_offload_symbol_decl): Remove function.
20655 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20656 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20657 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20658 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20659 BUILT_IN_GOACC_UPDATE don't pass it at all.
20660
20661 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20662
20663 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20664 callers.
20665
20666 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20667
20668 * ipa-chkp.c (chkp_produce_thunks): Add early param
20669 to split thunks production into two passes. Keep
20670 'always_inline' function bodies after the first pass.
20671 (pass_data_ipa_chkp_early_produce_thunks): New.
20672 (pass_ipa_chkp_early_produce_thunks): New.
20673 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20674 chkp_produce_thunks signature.
20675 (make_pass_ipa_chkp_early_produce_thunks): New.
20676 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20677 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20678 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20679
20680 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20681
20682 * cgraph.c (cgraph_node::dump): Dump profile flags.
20683
20684 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
20685
20686 PR target/64652
20687 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20688 reg appear first in the parallel.
20689
20690 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20691
20692 * ipa-reference.c (set_reference_optimization_summary,
20693 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20694 disabled.
20695 (ignore_module_statics): New static var.
20696 (propagate_bits): If ipa-reference is disabled, do not look into local
20697 properties.
20698 (analyze_function): Disable analysis when ipa_reference is disabled.
20699 (generate_summary): Do not dump when reference is disabled;
20700 collect vars accessed from functions with ipa-reference disabled.
20701 (get_read_write_all_from_node): When ipa-reference is disabled, use the
20702 node flags.
20703 (gate): Enable for LTO.
20704 (ignore_edge_p): New function.
20705 (propagate): Skip functions w/o ipa-reference analysis.
20706 * optc-save-gen.awk: Handle optimize_debug correctly.
20707 * opth-gen.awk: Likewise.
20708 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20709 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20710 fira-share-save-slots, fira-share-spill-slots,
20711 fmodulo-sched-allow-regmoves, fpartial-inlining,
20712 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20713 ftracer, ftree-parallelize-loops, fassociative-math,
20714 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20715 Optimization
20716 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20717 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20718 Optimization.
20719 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20720 Fix for IPA.
20721
20722 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20723
20724 PR ipa/64378
20725 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20726 flag correctly.
20727 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20728
20729 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
20730
20731 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20732 Remove duplicate option listings.
20733
20734 2015-01-18 Felix Yang <felix.yang@huawei.com>
20735
20736 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20737 (autofdo_source_profile::get_callsite_total_count,
20738 function_instance::get_function_instance_by_decl,
20739 string_table::get_index, string_table::get_index_by_decl,
20740 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20741 Fix comment typos. Reformatting and minor code rearrangement.
20742
20743 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20744
20745 * config/rs6000/rs6000.md (probe_stack): Delete.
20746 (probe_stack_address): New.
20747
20748 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20749
20750 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20751 to test for 32-bit ABIs, not !TARGET_POWERPC64.
20752
20753 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20754
20755 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20756 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
20757 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
20758 snafu.
20759 (rs6000_libcall_value): Use the new function.
20760
20761 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
20762
20763 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20764
20765 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
20766
20767 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20768 implement a more precise life analysis for it during backward scan.
20769
20770 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
20771
20772 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20773
20774 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
20775
20776 PR rtl-optimization/52773
20777 * calls.c (emit_library_call_value): When pushing arguments use
20778 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20779 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
20780 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20781
20782 2015-01-17 Jeff Law <law@redhat.com>
20783
20784 PR rtl-optimization/32790
20785 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20786 not ZERO_EXTEND in SET_DESTs.
20787
20788 2015-01-17 Alan Modra <amodra@gmail.com>
20789
20790 * cprop.c (do_local_cprop): Revert last change.
20791
20792 2015-01-16 DJ Delorie <dj@redhat.com>
20793 Nick Clifton <nickc@redhat.com>
20794
20795 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20796 (addhi3_real): Likewise. Fix [HL+0] syntax.
20797 (subqi3_real): Likewise.
20798 (subhi3_real): Likewise.
20799 (cbranchqi4_real): Likewise. Allow saddr,#imm.
20800 (cbranchhi4_real): Likewise.
20801 (cbranchhi4_real_inverted): Likewise.
20802 (cbranchsi4_real_lt): Likewise.
20803 (cbranchsi4_real_ge): Likewise.
20804 (cbranchsi4_real_ge): Likewise.
20805 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20806 (sub<mode>3_virt): Likewise.
20807 (cbranchqi4_virt): Likewise.
20808 (cbranchhi4_virt): Likewise.
20809 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20810 always use '[reg+imm]' even when imm is zero.
20811 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20812 (rl78_general_operand): New.
20813 (rl78_nonimmediate_operand): New.
20814 (rl78_nonfar_operand): Use them.
20815 (rl78_nonfar_nonimm_operand): Likewise.
20816 (rl78_stack_based_mem): Fix.
20817 * config/rl78/constraints.md (Ibqi): New.
20818 (IBqi): New.
20819 (Wsa): New.
20820 (Wsf): New.
20821 (Cs1): Fix.
20822 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20823 (iorqi3): Likewise.
20824 (xorqi3): Likewise.
20825 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20826
20827 * config/rl78/constrains (Qs8): New constraint.
20828 * config/rl78/rl78.c (rl78_flags_already_set): New function.
20829 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20830 * config/rl78/rl78-real.md (update_Z): New attribute.
20831 Update patterns to set it.
20832 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20833 shorter compare and branch sequence can be used.
20834 (cbranchhi4_real): Likewise.
20835 (cbranchhi4_real_inverted): Likewise.
20836
20837 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20838 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20839 address space.
20840 * config/rl78/rl78.c (rl78_get_name_encoding): New.
20841 (rl78_option_override): Allow -mes0 only if C.
20842 (characterize_address): Support subregs of symbol_refs.
20843 (rl78_addr_space_address_mode): Move. Add __near.
20844 (rl78_far_p): Likewise.
20845 (rl78_addr_space_pointer_mode): Likewise.
20846 (rl78_as_legitimate_address): Likewise.
20847 (rl78_addr_space_subset_p): Likewise.
20848 (rl78_addr_space_convert): Likewise.
20849 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20850 symbols with -mes0.
20851 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
20852 addressing.
20853 (rl78_alloc_physical_registers_op1): Change logic to prefer
20854 symbol[BC] addressing.
20855 (frodata_section): New.
20856 (rl78_asm_init_sections): Initialize it.
20857 (rl78_select_section): Put __far readonly symbols in .frodata.
20858 (rl78_make_type_far): New.
20859 (rl78_insert_attributes): Force all readonly symbols to be
20860 __far when -mes0.
20861 (rl78_asm_out_integer): New.
20862 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20863 * config/rl78/rl78.opt (-mes0): New.
20864
20865 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20866 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20867 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20868 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20869 (rl78_saddr_p): New.
20870 (rl78_output_aligned_common): New.
20871 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20872 (rl78_handle_saddr_attribute): New.
20873 (rl78_handle_naked_attribute): New.
20874 (rl78_attribute_table): Add saddr.
20875 (rl78_print_operand_1): Don't print '!' on saddr operands.
20876 (rl78_print_operand_1): Strip encodings.
20877 (rl78_sfr_p): New.
20878 (rl78_strip_name_encoding): New.
20879 (rl78_attrlist_to_encoding): New.
20880 (rl78_encode_section_info): New.
20881 (rl78_asm_init_sections): New.
20882 (rl78_select_section): New.
20883 (rl78_output_labelref): New.
20884 (rl78_output_aligned_common): New.
20885 (rl78_asm_out_integer): New.
20886 (rl78_asm_ctor_dtor): New.
20887 (rl78_asm_constructor): New.
20888 (rl78_asm_destructor): New.
20889
20890 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20891 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20892 (transcode_memory_rtx): Update.
20893 (rl78_expand_epilogue): Use A_REG instead of 0.
20894
20895 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20896
20897 * config/arm/arm-protos.h (struct tune_params): New field
20898 sched_autopref_queue_depth.
20899 * config/arm/arm.c (sched-int.h): Include header.
20900 (arm_first_cycle_multipass_dfa_lookahead_guard,)
20901 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20902 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20903 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20904 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20905 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20906 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20907 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20908 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
20909 * config/arm/t-arm (arm.o): Update.
20910 * haifa-sched.c (update_insn_after_change): Update.
20911 (rank_for_schedule): Use auto-prefetcher model, if requested.
20912 (autopref_multipass_init): New static function.
20913 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20914 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20915 variable for debug dumps.
20916 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20917 (autopref_multipass_dfa_lookahead_guard): New global function that
20918 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20919 (init_h_i_d): Update.
20920 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20921 * sched-int.h (enum autopref_multipass_data_status): New const enum.
20922 (autopref_multipass_data_): Structure for auto-prefetcher data.
20923 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20924 (struct _haifa_insn_data:autopref_multipass_data): New field.
20925 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20926 (autopref_multipass_dfa_lookahead_guard): Declare.
20927
20928 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20929
20930 * rtlanal.c (get_base_term): Handle SCRATCH.
20931
20932 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20933
20934 * config/aarch64/aarch64.c
20935 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20936 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20937 * config/arm/arm.c
20938 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20939 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20940
20941 2015-01-17 Alan Modra <amodra@gmail.com>
20942
20943 * cprop.c (do_local_cprop): Disallow replacement of fixed
20944 hard registers.
20945
20946 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20947
20948 PR target/62066
20949 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20950 early return 0.
20951
20952 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20953
20954 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20955 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20956
20957 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20958
20959 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20960 * config/arm/thumb1.md: ... Here.
20961
20962 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20963
20964 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20965 TImode for TARGET_32BIT.
20966
20967 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20968
20969 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20970 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20971 as ...
20972 (rs6000_abi_word_mode): New function.
20973
20974 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20975
20976 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20977 instead of UNITS_PER_WORD to describe the size of stack slots.
20978
20979 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20980
20981 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20982 as rs6000_promote_function_mode. Move comment to there.
20983 (rs6000_promote_function_mode): New function.
20984
20985 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20986
20987 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20988 -mpowerpc64 is active.
20989
20990 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20991
20992 PR middle-end/64353
20993 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20994 virtuals on start.
20995
20996 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20997
20998 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20999 introduced in revision 219724.
21000
21001 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21002 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21003
21004 PR target/64263
21005 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
21006 destination is not a GP reg.
21007 (*movdi_aarch64): Likewise.
21008
21009 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
21010
21011 PR target/64623
21012 * config/rs6000/default64.h: Revert ISA change.
21013
21014 2015-01-16 Richard Biener <rguenther@suse.de>
21015
21016 PR middle-end/64614
21017 * tree-ssa-uninit.c: Include tree-cfg.h.
21018 (MAX_SWITCH_CASES): New define.
21019 (convert_control_dep_chain_into_preds): Handle switch statements.
21020 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
21021 (normalize_one_pred_1): Do not split bit-manipulations.
21022 Record (x & CST).
21023
21024 2015-01-16 Richard Biener <rguenther@suse.de>
21025
21026 PR tree-optimization/64568
21027 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
21028 complex load rewriting for TARGET_MEM_REFs.
21029
21030 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
21031
21032 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
21033
21034 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
21035
21036 PR target/64149
21037 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
21038 variable.
21039 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
21040 (aarch64_lra_p): Remove.
21041
21042 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21043
21044 PR target/64363
21045 * ipa-chkp.h (chkp_instrumentable_p): New.
21046 * ipa-chkp.c: Include tree-inline.h.
21047 (chkp_instrumentable_p): New.
21048 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
21049 Fix processing of not instrumentable functions.
21050 (chkp_versioning): Use chkp_instrumentable_p. Warn about
21051 not instrumentable functions.
21052 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
21053 chkp_instrumentable_p.
21054 * tree-inline.h (copy_forbidden): New.
21055 * tree-inline.c (copy_forbidden): Not static anymore.
21056
21057 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21058
21059 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
21060 ptr1, ptr2 unused.
21061
21062 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
21063
21064 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
21065 type OP_OUT to OP_INOUT.
21066
21067 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
21068
21069 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
21070 (high x) y) to y if x and y have the same base.
21071
21072 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
21073
21074 * config/arm/cortex-a57.md: New.
21075 * config/aarch64/aarch64.md: Include it.
21076 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
21077 * config/aarch64/aarch64-tune.md: Regenerate.
21078
21079 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
21080
21081 PR target/64015
21082 * ccmp.c (expand_ccmp_next): New function.
21083 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
21084 and compare insn sequence.
21085 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
21086 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
21087 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
21088 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
21089 (*ccmp_ior): Changed to ccmp_ior<mode>.
21090 (cmp<mode>): New pattern.
21091 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
21092 parameters.
21093 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
21094
21095 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
21096
21097 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
21098 _mm256_bsrli_epi128): New.
21099 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
21100
21101 2015-01-15 Jiong Wang <jiong.wang@arm.com>
21102
21103 * expmed.c (store_bit_field_using_insv): Improve warning message.
21104 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
21105
21106 2015-01-15 Jiong Wang <jiong.wang@arm.com>
21107
21108 PR rtl-optimization/64011
21109 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
21110 there is partial overflow.
21111
21112 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21113
21114 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
21115 prototype.
21116 (nds32_expand_epilogue_v3pop): Likewise.
21117 * config/nds32/nds32.md (sibcall): Define this for sibling call
21118 optimization.
21119 (sibcall_register): Likewise.
21120 (sibcall_immediate): Likewise.
21121 (sibcall_value): Likewise.
21122 (sibcall_value_register): Likewise.
21123 (sibcall_value_immediate): Likewise.
21124 (sibcall_epilogue): Likewise.
21125 (epilogue): Pass false to indicate this is not a sibcall epilogue.
21126 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
21127 (nds32_expand_epilogue_v3pop): Likewise.
21128
21129 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21130
21131 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
21132 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
21133 (return_internal): New.
21134 (return): Define this named pattern.
21135 (simple_return): Define this named pattern.
21136 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
21137 pattern instead of unspec_volatile_func_return.
21138 (nds32_expand_epilogue_v3pop): Likewise.
21139 (nds32_can_use_return_insn): New function.
21140
21141 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21142
21143 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
21144 * config/nds32/nds32.md (pop25return): New.
21145 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
21146 pop25return pattern.
21147
21148 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21149
21150 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
21151 -mforbid-fp-as-gp, and -mex9 options.
21152
21153 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21154
21155 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
21156 remove -mgp-direct option.
21157
21158 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21159
21160 * doc/invoke.texi (--param early-inlining-insns): Update default value.
21161 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
21162
21163 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21164
21165 * ipa-inline.c (inline_small_functions): Work around hints
21166 cache issue.
21167
21168 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
21169
21170 PR target/59710
21171 * doc/invoke.texi (Option Summary): Document new Nios II
21172 -mgpopt= syntax.
21173 (Nios II Options): Likewise.
21174 * config/nios2/nios2.opt: Add -mgpopt= option support.
21175 Modify existing -mgpopt and -mno-gpopt options to be aliases.
21176 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
21177 * config/nios2/nios2.c (nios2_option_override): Adjust
21178 -mgpopt defaulting.
21179 (nios2_in_small_data_p): Return true for explicit small data
21180 sections even with -G0.
21181 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
21182 option choices.
21183
21184 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21185
21186 PR ipa/64612
21187 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
21188 of comdat locals.
21189 (inline_call): Fix removal of aliases.
21190
21191 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21192
21193 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
21194 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
21195 * opts.c (common_handle_option): Add -fsanitize=vptr.
21196 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
21197 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
21198 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
21199 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
21200 (ubsan_expand_vptr_ifn): New prototype.
21201 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
21202 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
21203 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
21204 expand_LOOP_VECTORIZED): Make argument nameless, remove
21205 ATTRIBUTE_UNUSED.
21206 (expand_UBSAN_VPTR): New function.
21207 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
21208 in fn spec.
21209 (UBSAN_VPTR): New internal function.
21210 * sanopt.c (tree_map_traits): Renamed to ...
21211 (sanopt_tree_map_traits): ... this.
21212 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
21213 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
21214 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
21215 (maybe_optimize_ubsan_vptr_ifn): New function.
21216 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
21217 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
21218 -fsanitize=vptr.
21219 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
21220 internal calls like pure functions for aliasing, even when they
21221 have other side-effects that prevent making them ECF_PURE.
21222 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
21223 (ubsan_expand_vptr_ifn): New function.
21224
21225 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
21226
21227 PR rtl-optimization/64110
21228 * stmt.c (parse_output_constraint): Process '^' and '$'.
21229 (parse_input_constraint): Ditto.
21230 * lra-constraints.c (process_alt_operands): Process the new
21231 constraints.
21232 * ira-costs.c (record_reg_classes): Process the new constraint
21233 '^'.
21234 * genoutput.c (indep_constraints): Add '^' and '$'.
21235 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
21236 * doc/md.texi: Add description of the new constraints.
21237
21238 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
21239 Bernd Schmidt <bernds@codesourcery.com>
21240 Cesar Philippidis <cesar@codesourcery.com>
21241 James Norris <jnorris@codesourcery.com>
21242 Tom de Vries <tom@codesourcery.com>
21243 Ilmir Usmanov <i.usmanov@samsung.com>
21244 Dmitry Bocharnikov <dmitry.b@samsung.com>
21245 Evgeny Gavrin <e.gavrin@samsung.com>
21246 Jakub Jelinek <jakub@redhat.com>
21247
21248 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
21249 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21250 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21251 New function types.
21252 * builtins.c: Include "gomp-constants.h".
21253 (expand_builtin_acc_on_device): New function.
21254 (expand_builtin, is_inexpensive_builtin): Handle
21255 BUILT_IN_ACC_ON_DEVICE.
21256 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
21257 New macros.
21258 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
21259 flag_openmp.
21260 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
21261 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
21262 i386/intelmic-offload.h.
21263 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
21264 to libgomp and its dependencies.
21265 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
21266 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21267 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21268 * config/ia64/hpux.h (LIB_SPEC): Likewise.
21269 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21270 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21271 * doc/generic.texi: Update for OpenACC changes.
21272 * doc/gimple.texi: Likewise.
21273 * doc/invoke.texi: Likewise.
21274 * doc/sourcebuild.texi: Likewise.
21275 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21276 GF_OMP_FOR_KIND_OACC_LOOP.
21277 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21278 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21279 GF_OMP_TARGET_KIND_OACC_UPDATE,
21280 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21281 Dump more data.
21282 * gimple.c: Update comments for OpenACC changes.
21283 * gimple.def: Likewise.
21284 * gimple.h: Likewise.
21285 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21286 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21287 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21288 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21289 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21290 appropriate place.
21291 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21292 * gimplify.c: Include "gomp-constants.h".
21293 Update comments for OpenACC changes.
21294 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21295 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21296 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21297 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21298 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21299 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21300 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21301 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21302 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21303 OMP_CLAUSE_SEQ.
21304 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21305 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21306 OMP_CLAUSE_SET_MAP_KIND.
21307 (gimplify_oacc_cache): New function.
21308 (gimplify_omp_for): Handle OACC_LOOP.
21309 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21310 OACC_DATA.
21311 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21312 OACC_EXIT_DATA, OACC_UPDATE.
21313 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21314 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21315 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21316 (gimplify_body): Consider flag_openacc next to flag_openmp.
21317 * lto-streamer-out.c: Include "gomp-constants.h".
21318 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21319 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21320 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21321 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21322 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21323 (BUILT_IN_ACC_ON_DEVICE): New builtins.
21324 * omp-low.c: Include "gomp-constants.h".
21325 Update comments for OpenACC changes.
21326 (struct omp_context): Add reduction_map, gwv_below, gwv_this
21327 members.
21328 (extract_omp_for_data, use_pointer_for_field, install_var_field)
21329 (new_omp_context, delete_omp_context, scan_sharing_clauses)
21330 (create_omp_child_function, scan_omp_for, scan_omp_target)
21331 (check_omp_nesting_restrictions, lower_reduction_clauses)
21332 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21333 Update for OpenACC changes.
21334 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21335 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21336 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21337 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21338 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21339 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
21340 OMP_CLAUSE_MAP_*.
21341 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21342 Handle GF_OMP_FOR_KIND_OACC_LOOP.
21343 (expand_omp_target, lower_omp_target): Handle
21344 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21345 GF_OMP_TARGET_KIND_OACC_UPDATE,
21346 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21347 GF_OMP_TARGET_KIND_OACC_DATA.
21348 (pass_expand_omp::execute, execute_lower_omp)
21349 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21350 flag_openmp.
21351 (offload_symbol_decl): New variable.
21352 (oacc_get_reduction_array_id, oacc_max_threads)
21353 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21354 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21355 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21356 (oacc_gimple_assign, oacc_initialize_reduction_data)
21357 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21358 functions.
21359 (is_targetreg_ctx): Remove function.
21360 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21361 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21362 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21363 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21364 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21365 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21366 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21367 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21368 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21369 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21370 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21371 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21372 * tree-core.h: Update comments for OpenACC changes.
21373 (enum omp_clause_map_kind): Remove.
21374 (struct tree_omp_clause): Change type of map_kind member from enum
21375 omp_clause_map_kind to unsigned char.
21376 * tree-inline.c: Update comments for OpenACC changes.
21377 * tree-nested.c: Likewise. Include "gomp-constants.h".
21378 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21379 (convert_tramp_reference_stmt, convert_gimple_call): Update for
21380 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21381 OMP_CLAUSE_SET_MAP_KIND.
21382 * tree-pretty-print.c: Include "gomp-constants.h".
21383 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21384 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21385 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21386 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21387 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21388 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
21389 instead of OMP_CLAUSE_MAP_*.
21390 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21391 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21392 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21393 * tree-streamer-in.c: Include "gomp-constants.h".
21394 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21395 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
21396 * tree-streamer-out.c: Include "gomp-constants.h".
21397 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21398 OMP_CLAUSE_MAP_*.
21399 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21400 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21401 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21402 * tree.c (omp_clause_num_ops): Update accordingly.
21403 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21404 Likewise.
21405 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21406 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21407 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21408 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21409 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21410 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21411 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21412 (OMP_CLAUSE_SET_MAP_KIND): New macro.
21413 * varpool.c (varpool_node::get_create): Consider flag_openacc next
21414 to flag_openmp.
21415 * config/i386/intelmic-offload.h: New file.
21416 * config/nvptx/offload.h: Likewise.
21417
21418 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21419
21420 * explow.h: Remove duplicate contents.
21421 * dojump.h: Likewise.
21422
21423 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
21424
21425 * arm.c (arm_xgene_tune): Add default initializer for instruction
21426 fusion.
21427
21428 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21429
21430 PR ipa/64068
21431 PR ipa/64559
21432 * ipa.c (symbol_table::remove_unreachable_nodes):
21433 Do not put abstract origins into boundary.
21434
21435 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
21436
21437 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21438 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21439
21440 2015-01-15 Steve Ellcey <sellcey@mips.com>
21441
21442 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21443 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21444 builtins.def, and chkp-builtins.def.
21445
21446 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
21447
21448 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21449 ISA 2.7 (POWER8).
21450
21451 2015-01-15 Richard Biener <rguenther@suse.de>
21452
21453 PR tree-optimization/61743
21454 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21455 information on PHIs for some simple cases.
21456
21457 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21458
21459 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21460 Include xgene1.md.
21461 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21462 * config/arm/arm-cores.def (xgene1): New entry.
21463 * config/arm/arm-tables.opt: Regenerate.
21464 * config/arm/arm-tune.md: Regenerate.
21465 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21466
21467 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21468
21469 * tree-if-conv.c: Include hash-map.h.
21470 (aggressive_if_conv): New variable.
21471 (fold_build_cond_expr): Add simplification of non-zero condition.
21472 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21473 destination block is not always executed.
21474 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21475 than two predecessors if AGGRESSIVE_IF_CONV is true.
21476 (if_convertible_stmt_p): Fix commentary.
21477 (all_preds_critical_p): New function.
21478 (has_pred_critical_p): New function.
21479 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21480 BB can have more than two predecessors and all incoming edges can be
21481 critical.
21482 (predicate_bbs): Skip predication for loop exit block, use build2_loc
21483 to compute predicate for true edge.
21484 (find_phi_replacement_condition): Delete this function.
21485 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21486 Allow interchange PHI arguments if EXTENDED is false.
21487 Change check that block containing reduction statement candidate
21488 is predecessor of phi-block since phi may have more than two arguments.
21489 (phi_args_hash_traits): New helper structure.
21490 (struct phi_args_hash_traits): New type.
21491 (phi_args_hash_traits::hash): New function.
21492 (phi_args_hash_traits::equal_keys): New function.
21493 (gen_phi_arg_condition): New function.
21494 (predicate_scalar_phi): Add handling of phi nodes with more than two
21495 arguments, delete COND and TRUE_BB arguments, insert body of
21496 find_phi_replacement_condition to predicate ordinary phi nodes.
21497 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21498 delete call of find_phi_replacement_condition and invoke
21499 predicate_scalar_phi with two arguments.
21500 (insert_gimplified_predicates): Add assert that non-predicated block
21501 don't have statements to insert.
21502 (ifcvt_split_critical_edges): New function.
21503 (ifcvt_split_def_stmt): Likewise.
21504 (ifcvt_walk_pattern_tree): Likewise.
21505 (stmt_is_root_of_bool_pattern): Likewise.
21506 (ifcvt_repair_bool_pattern): Likewise.
21507 (ifcvt_local_dce): Likewise.
21508 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21509 is copy of inner or outer loop force_vectorize field, invoke
21510 ifcvt_split_critical_edges, ifcvt_local_dce and
21511 ifcvt_repair_bool_pattern for aggressive if-conversion.
21512
21513 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
21514
21515 * config/aarch64/aarch64.md: Include xgene1.md.
21516 * config/aarch64/xgene1.md: New file.
21517
21518 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21519
21520 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21521 xgene1 (APM XGene-1) core definition.
21522 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21523 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21524 * doc/invoke.texi: Document -mcpu=xgene1.
21525
21526 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21527
21528 * dojump.h: New header file.
21529 * explow.h: Likewise.
21530 * expr.h: Remove includes.
21531 Move expmed.c prototypes to expmed.h.
21532 Move dojump.c prototypes to dojump.h.
21533 Move alias.c prototypes to alias.h.
21534 Move explow.c prototypes to explow.h.
21535 Move calls.c prototypes to calls.h.
21536 Move emit-rtl.c prototypes to emit-rtl.h.
21537 Move varasm.c prototypes to varasm.h.
21538 Move stmt.c prototypes to stmt.h.
21539 (saved_pending_stack_adjust): Move to dojump.h.
21540 (adjust_address): Move to explow.h.
21541 (adjust_address_nv): Move to emit-rtl.h.
21542 (adjust_bitfield_address): Likewise.
21543 (adjust_bitfield_address_size): Likewise.
21544 (adjust_bitfield_address_nv): Likewise.
21545 (adjust_automodify_address_nv): Likewise.
21546 * explow.c (expr_size): Move to expr.c.
21547 (int_expr_size): Likewise.
21548 (tree_expr_size): Likewise.
21549 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21550 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21551 * genemit.c (main): Generate includes statistics.h, real.h,
21552 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21553 stmt.h.
21554 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21555 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21556 explow.h, emit-rtl.h, stmt.h.
21557 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21558 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21559 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21560 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21561 emit-rtl.h, varasm.h, stmt.h.
21562 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21563 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21564 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21565 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21566 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21567 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21568 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21569 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21570 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21571 tm.h tree.h varasm.h vec.h wide-int.h.
21572 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21573 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21574 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21575 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21576 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21577 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21578 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21579 * loop-iv.c: Likewise.
21580 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21581 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21582 statistics.h stmt.h tree.h varasm.h wide-int.h.
21583 * lra-constraints.c: Likewise.
21584 * lra-eliminations.c: Likewise.
21585 * lra-lives.c: Likewise.
21586 * lra-remat.c: Likewise.
21587 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21588 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21589 statistics.h stmt.h tree.h varasm.h wide-int.h.
21590 * hw-doloop.c: Likewise.
21591 * ira-color.c: Likewise.
21592 * ira-emit.c: Likewise.
21593 * loop-doloop.c: Likewise.
21594 * loop-invariant.c: Likewise.
21595 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21596 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21597 statistics.h stmt.h tree.h varasm.h wide-int.h.
21598 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21599 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21600 statistics.h stmt.h tree.h varasm.h wide-int.h.
21601 * combine-stack-adj.c: Likewise.
21602 * cse.c: Likewise.
21603 * ddg.c: Likewise.
21604 * ifcvt.c: Likewise.
21605 * ira-costs.c: Likewise.
21606 * jump.c: Likewise.
21607 * lra-coalesce.c: Likewise.
21608 * lra-spills.c: Likewise.
21609 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21610 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21611 stmt.h varasm.h wide-int.h.
21612 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21613 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21614 varasm.h.
21615 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21616 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21617 statistics.h stmt.h varasm.h wide-int.h.
21618 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21619 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21620 varasm.h wide-int.h.
21621 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21622 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21623 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21624 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21625 statistics.h stmt.h.
21626 * config/tilepro/tilepro.c: Likewise.
21627 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21628 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21629 * config/pdp11/pdp11.c: Likewise.
21630 * config/xtensa/xtensa.c: Likewise.
21631 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21632 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21633 varasm.h.
21634 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21635 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21636 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21637 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21638 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21639 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21640 * rtl-chkp.c: Likewise.
21641 * tree-chkp-opt.c: Likewise.
21642 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21643 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21644 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21645 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21646 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21647 statistics.h stmt.h.
21648 * tree-vect-data-refs.c: Likewise.
21649 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21650 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21651 rtl.h statistics.h stmt.h varasm.h.
21652 * internal-fn.c: Likewise.
21653 * ipa-icf-gimple.c: Likewise.
21654 * lto-section-out.c: Likewise.
21655 * tree-data-ref.c: Likewise.
21656 * tree-nested.c: Likewise.
21657 * tree-outof-ssa.c: Likewise.
21658 * tree-predcom.c: Likewise.
21659 * tree-pretty-print.c: Likewise.
21660 * tree-scalar-evolution.c: Likewise.
21661 * tree-ssa-strlen.c: Likewise.
21662 * tree-vect-loop.c: Likewise.
21663 * tree-vect-patterns.c: Likewise.
21664 * tree-vect-slp.c: Likewise.
21665 * tree-vect-stmts.c: Likewise.
21666 * tsan.c: Likewise.
21667 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21668 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21669 stmt.h.
21670 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21671 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21672 statistics.h stmt.h varasm.h.
21673 * loop-unroll.c: Likewise.
21674 * ubsan.c: Likewise.
21675 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21676 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21677 stmt.h varasm.h.
21678 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21679 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21680 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21681 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21682 statistics.h stmt.h.
21683 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21684 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21685 statistics.h stmt.h varasm.h.
21686 * gimple-match-head.c: Likewise.
21687 * lto-cgraph.c: Likewise.
21688 * lto-section-in.c: Likewise.
21689 * lto-streamer-in.c: Likewise.
21690 * lto-streamer-out.c: Likewise.
21691 * tree-affine.c: Likewise.
21692 * tree-cfg.c: Likewise.
21693 * tree-cfgcleanup.c: Likewise.
21694 * tree-if-conv.c: Likewise.
21695 * tree-into-ssa.c: Likewise.
21696 * tree-ssa-alias.c: Likewise.
21697 * tree-ssa-copyrename.c: Likewise.
21698 * tree-ssa-dse.c: Likewise.
21699 * tree-ssa-forwprop.c: Likewise.
21700 * tree-ssa-live.c: Likewise.
21701 * tree-ssa-math-opts.c: Likewise.
21702 * tree-ssa-pre.c: Likewise.
21703 * tree-ssa-sccvn.c: Likewise.
21704 * tree-tailcall.c: Likewise.
21705 * tree-vect-generic.c: Likewise.
21706 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21707 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21708 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21709 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21710 * varasm.c: Likewise.
21711 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21712 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21713 varasm.h.
21714 * init-regs.c: Likewise.
21715 * ira.c: Likewise.
21716 * omp-low.c: Likewise.
21717 * stack-ptr-mod.c: Likewise.
21718 * tree-ssa-reassoc.c: Likewise.
21719 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21720 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21721 varasm.h.
21722 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21723 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21724 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21725 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21726 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21727 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21728 * tree-ssa-phiopt.c: Likewise.
21729 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21730 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21731 * config/fr30/fr30.c: Likewise.
21732 * config/frv/frv.c: Likewise.
21733 * expr.c: Likewise.
21734 * final.c: Likewise.
21735 * optabs.c: Likewise.
21736 * passes.c: Likewise.
21737 * simplify-rtx.c: Likewise.
21738 * stmt.c: Likewise.
21739 * toplev.c: Likewise.
21740 * var-tracking.c: Likewise.
21741 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21742 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21743 * lower-subreg.c: Likewise.
21744 * postreload-gcse.c: Likewise.
21745 * ree.c: Likewise.
21746 * reginfo.c: Likewise.
21747 * store-motion.c: Likewise.
21748 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21749 fixed-value.h hashtab.h real.h stmt.h varasm.h.
21750 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21751 fixed-value.h hashtab.h statistics.h stmt.h.
21752 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21753 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21754 * except.c: Likewise.
21755 * explow.c: Likewise.
21756 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21757 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21758 varasm.h.
21759 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21760 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21761 * tree-ssa-structalias.c: Likewise.
21762 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21763 fixed-value.h insn-config.h real.h statistics.h.
21764 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21765 fixed-value.h insn-config.h real.h statistics.h stmt.h.
21766 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21767 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21768 * cfgbuild.c: Likewise.
21769 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21770 fixed-value.h real.h rtl.h statistics.h stmt.h.
21771 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21772 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21773 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21774 fixed-value.h real.h statistics.h stmt.h.
21775 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21776 fixed-value.h real.h statistics.h stmt.h varasm.h.
21777 * cprop.c: Likewise.
21778 * modulo-sched.c: Likewise.
21779 * postreload.c: Likewise.
21780 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21781 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21782 statistics.h stmt.h varasm.h.
21783 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21784 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21785 rtl.h statistics.h stmt.h varasm.h.
21786 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21787 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21788 varasm.h.
21789 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21790 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21791 varasm.h.
21792 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21793 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21794 varasm.h.
21795 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21796 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21797 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21798 function.h real.h statistics.h stmt.h varasm.h.
21799 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21800 insn-config.h real.h statistics.h stmt.h.
21801 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21802 statistics.h stmt.h.
21803 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21804 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21805 statistics.h stmt.h varasm.h.
21806 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21807 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21808 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21809 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21810 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21811 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21812 statistics.h stmt.h varasm.h.
21813 * ipa-polymorphic-call.c: Likewise.
21814 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21815 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21816 statistics.h stmt.h.
21817 * config/c6x/c6x.c: Likewise.
21818 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21819 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21820 statistics.h stmt.h varasm.h.
21821 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21822 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21823 stmt.h varasm.h.
21824 * ipa-split.c: Likewise.
21825 * tree-eh.c: Likewise.
21826 * tree-ssa-dce.c: Likewise.
21827 * tree-ssa-loop-niter.c: Likewise.
21828 * tree-vrp.c: Likewise.
21829 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21830 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21831 stmt.h.
21832 * config/nds32/nds32-fp-as-gp.c: Likewise.
21833 * config/nds32/nds32-intrinsic.c: Likewise.
21834 * config/nds32/nds32-isr.c: Likewise.
21835 * config/nds32/nds32-md-auxiliary.c: Likewise.
21836 * config/nds32/nds32-memory-manipulation.c: Likewise.
21837 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21838 * config/nds32/nds32-predicates.c: Likewise.
21839 * config/nds32/nds32.c: Likewise.
21840 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21841 fixed-value.h hashtab.h real.h statistics.h.
21842 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21843 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21844 * config/arm/arm.c: Likewise.
21845 * config/avr/avr.c: Likewise.
21846 * config/bfin/bfin.c: Likewise.
21847 * config/h8300/h8300.c: Likewise.
21848 * config/i386/i386.c: Likewise.
21849 * config/ia64/ia64.c: Likewise.
21850 * config/iq2000/iq2000.c: Likewise.
21851 * config/m32c/m32c.c: Likewise.
21852 * config/m32r/m32r.c: Likewise.
21853 * config/m68k/m68k.c: Likewise.
21854 * config/mcore/mcore.c: Likewise.
21855 * config/mep/mep.c: Likewise.
21856 * config/mips/mips.c: Likewise.
21857 * config/mn10300/mn10300.c: Likewise.
21858 * config/moxie/moxie.c: Likewise.
21859 * config/pa/pa.c: Likewise.
21860 * config/rl78/rl78.c: Likewise.
21861 * config/rx/rx.c: Likewise.
21862 * config/s390/s390.c: Likewise.
21863 * config/sh/sh.c: Likewise.
21864 * config/sparc/sparc.c: Likewise.
21865 * config/spu/spu.c: Likewise.
21866 * config/stormy16/stormy16.c: Likewise.
21867 * config/v850/v850.c: Likewise.
21868 * config/vax/vax.c: Likewise.
21869 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21870 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21871 * config/msp430/msp430.c: Likewise.
21872 * predict.c: Likewise.
21873 * value-prof.c: Likewise.
21874 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21875 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21876 * config/microblaze/microblaze.c: Likewise.
21877 * config/nios2/nios2.c: Likewise.
21878 * config/rs6000/rs6000.c: Likewise.
21879 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21880 insn-config.h real.h rtl.h statistics.h stmt.h.
21881 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21882 insn-config.h real.h statistics.h stmt.h.
21883 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21884 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21885 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21886 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21887 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21888 fixed-value.h real.h statistics.h stmt.h.
21889 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21890 fixed-value.h statistics.h stmt.h.
21891 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21892 stmt.h.
21893
21894 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21895
21896 * gengtype.c (create_user_defined_type): Workaround
21897 -Wmaybe-uninitialized false positives.
21898 * cse.c (fold_rtx): Likewise.
21899 * loop-invariant.c (gain_for_invariant): Likewise.
21900
21901 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
21902
21903 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21904 set the memory attributes in all cases but clear MEM_EXPR if need be.
21905
21906 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21907
21908 PR tree-optimization/64434
21909 * cfgexpand.c (reorder_operands): New function.
21910 (expand_gimple_basic_block): Insert call of reorder_operands if
21911 optimized is true.
21912
21913 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
21914
21915 * config/mips/micromips.md (*swp): Remove explicit parallel.
21916 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21917 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21918 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21919 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21920 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21921 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21922 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21923 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21924 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21925 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21926 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21927 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21928 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21929 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21930 (mips_wrdsp): Likewise.
21931 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21932 parallel.
21933 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21934 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21935 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21936 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21937 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21938 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21939 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21940 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21941 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21942
21943 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21944
21945 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21946 (mips_print_operand): Support 'y' to print exact log2 in decimal
21947 of a const_int.
21948 * config/mips/mips.h (ISA_HAS_LSA): New define.
21949 (ISA_HAS_DLSA): Likewise.
21950 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21951 * config/mips/predicates.md (const_immlsa_operand): New predicate.
21952
21953 2015-01-15 Martin Liska <mliska@suse.cz>
21954
21955 PR target/64377
21956 * optc-save-gen.awk: Add support for array types.
21957
21958 2015-01-15 Richard Biener <rguenther@suse.de>
21959
21960 PR middle-end/64365
21961 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21962 for MEM_REF access functions with the same base can never partially
21963 overlap.
21964
21965 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
21966
21967 * common.opt: New option -fstack-protector-explicit.
21968 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21969 (stack_protect_decl_phase): Handle stack_protect attribute for
21970 explicit stack protection requests.
21971 (expand_used_vars): Similarly.
21972 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21973 * doc/extend.texi: Add documentation for "stack_protect" attribute.
21974 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21975
21976 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
21977
21978 PR target/53988
21979 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21980 reg-reg copies.
21981 (sh_extending_set_of_reg): New struct.
21982 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21983 sh_remove_reg_dead_or_unused_notes): New Declarations.
21984 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21985 sh_find_extending_set_of_reg, sh_split_tst_subregs,
21986 sh_extending_set_of_reg::use_as_extended_reg): New functions.
21987 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21988 convert to insn_and_split and use new function sh_split_tst_subregs.
21989
21990 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
21991
21992 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21993 option.
21994 (Optimization Options): Move -fuse-ld documentation to...
21995 (Link Options): ...here.
21996
21997 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21998
21999 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
22000 offsets.
22001 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
22002 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
22003 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
22004 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
22005 instead of ZR for the memory operand of LL/SC.
22006 (compare_and_swap_12, sync_add<mode>): Likewise.
22007 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
22008 (sync_new_<optab>_12, sync_nand_12): Likewise.
22009 (sync_old_nand_12, sync_new_nand_12): Likewise.
22010 (sync_sub<mode>, sync_old_add<mode>): Likewise.
22011 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
22012 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
22013 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
22014 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
22015 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
22016 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
22017 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
22018 * doc/md.texi (ZC): Update description.
22019
22020 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
22021
22022 * builtins.c (expand_builtin_atomic_exchange): Remove error when
22023 memory model is CONSUME.
22024 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
22025 expand_builtin_atomic_store): Change invalid memory model errors to
22026 warnings.
22027 (expand_builtin_atomic_clear): Change invalid model errors to warnings
22028 and issue warning for CONSUME.
22029
22030 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
22031
22032 * lto-cgraph: Update function comments for
22033 lto_symtab_encoder_encode_*.
22034
22035 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
22036
22037 * Makefile.in (site.exp): Do not set ENABLE_LTO.
22038
22039 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
22040
22041 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
22042 * lto-cgraph.c (select_what_to_stream): Remove argument, use
22043 lto_stream_offload_p instead.
22044 * lto-streamer.h (select_what_to_stream): Remove argument.
22045 * passes.c (ipa_write_summaries): Likewise.
22046 * tree-pass.h (ipa_write_summaries): Likewise.
22047
22048 2015-01-14 Richard Biener <rguenther@suse.de>
22049
22050 PR tree-optimization/59354
22051 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
22052 groups larger than the slp group size as having gaps.
22053
22054 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
22055
22056 PR middle-end/59448
22057 * builtins.c (get_memmodel): Promote consume to acquire always.
22058
22059 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
22060
22061 PR target/64386
22062 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
22063 V32HImode.
22064
22065 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
22066
22067 PR target/64393
22068 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
22069 Enable AVX512BW.
22070 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
22071 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
22072 AVX512VBMI, as it implies AVX512BW.
22073
22074 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
22075
22076 PR target/64387
22077 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
22078 (vec_unpacks_hi_v16sf): Ditto.
22079
22080 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22081
22082 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
22083 is not available.
22084
22085 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22086
22087 * doc/invoke.texi (mapcs): Mention deprecation.
22088 (mapcs-frame): Likewise.
22089
22090 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
22091
22092 PR target/64453
22093 * config/arm/arm.c (callee_saved_reg_p): Define.
22094 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
22095 register is callee saved instead of !call_used_regs[reg].
22096 (thumb1_compute_save_reg_mask): Likewise.
22097
22098 2015-01-14 Hale Wang <hale.wang@arm.com>
22099
22100 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
22101 Cortex-M7.
22102
22103 2015-01-14 Richard Biener <rguenther@suse.de>
22104
22105 PR lto/64415
22106 * tree-inline.c (insert_debug_decl_map): Check destination
22107 function MAY_HAVE_DEBUG_STMTS.
22108 (insert_init_debug_bind): Likewise.
22109 (insert_init_stmt): Remove redundant check.
22110 (remap_gimple_stmt): Drop debug stmts if the destination
22111 function has var-tracking assignments disabled.
22112
22113 2015-01-14 Martin Liska <mliska@suse.cz>
22114
22115 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
22116 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
22117
22118 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22119
22120 PR target/64460
22121 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
22122 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
22123
22124 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
22125
22126 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
22127 level from an ARCH; do not inject the default.
22128 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
22129 MIPS_ISA_LEVEL_SPEC.
22130 (MIPS_ISA_NAN2008_SPEC): Update comment.
22131 (BASE_DRIVER_SELF_SPECS): Likewise.
22132 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
22133 MIPS_DEFAULT_ISA_LEVEL_SPEC.
22134 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
22135 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
22136 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
22137
22138 2015-01-14 Richard Biener <rguenther@suse.de>
22139
22140 PR tree-optimization/64493
22141 PR tree-optimization/64495
22142 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
22143 assign the proper vectorized PHI to the inner loop exit PHIs.
22144
22145 2015-01-14 Joey Ye <joey.ye@arm.com>
22146
22147 * config/arm/arm.c (arm_compute_save_reg_mask):
22148 Do not save lr in case of tail call.
22149 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
22150
22151 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
22152
22153 * tree-vrp.c (check_array_ref): Emit more warnings
22154 for warn_array_bounds >= 2.
22155 * common.opt: New option -Warray-bounds=.
22156 * doc/invoke.texi: Document -Warray-bounds=.
22157
22158 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
22159
22160 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
22161 (mforbid-fp-as-gp): Remove.
22162 (mex9): Remove.
22163 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
22164 (nds32_symbol_load_store_p): Remove.
22165 (nds32_fp_as_gp_check_available): Clean up implementation.
22166 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
22167 cases.
22168 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
22169 fp-as-gp and ex9 cases.
22170
22171 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22172
22173 * tree-profile.c (init_ic_make_global_vars): Drop workaround
22174 for bintuils bug 14342.
22175 (init_ic_make_global_vars): Likewise.
22176 (gimple_init_edge_profiler): Likewise.
22177 (gimple_gen_ic_func_profiler): Likewise.
22178
22179 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
22180
22181 * ipa-inline.c (inline_small_functions): Swap the operands in
22182 enum.
22183
22184 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22185
22186 PR ipa/64481
22187 * ipa-inline-analysis.c (node_growth_cache): Remove.
22188 (initialize_growth_caches): Do not initialize it.
22189 (free_growth_caches): Do not free it.
22190 (do_estimate_growth): Rename to ...
22191 (estimate_growth): ... this one; drop growth cache code.
22192 (growth_likely_positive): Always go the heuristics way.
22193 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
22194 (reset_edge_caches): Do not reset node growth.
22195 (heap_edge_removal_hook): Do not maintain cache.
22196 (inline_small_functions): Likewise; strenghten sanity check.
22197 (ipa_inline): Do not maintain caches.
22198 * ipa-inline.h (node_growth_cache): Remove.
22199 (do_estimate_growth): Remove to ...
22200 (estimate_growth): this one; remove inline version.
22201 (reset_node_growth_cache): Remove.
22202
22203 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22204
22205 PR ipa/64565
22206 * ipa-inline.c (inline_small_functions): Update callee keys after
22207 resolving speculation
22208 (inline_small_functions): Always check monotonicity of the queue.
22209
22210 2015-01-13 Marek Polacek <polacek@redhat.com>
22211
22212 PR middle-end/64391
22213 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
22214
22215 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22216
22217 PR rtl-optimization/64286
22218 * ree.c (combine_reaching_defs): Move part of comment earlier,
22219 remove !SCALAR_INT_MODE_P check.
22220 (add_removable_extension): Don't add vector mode
22221 extensions if all uses of the source register aren't the same
22222 vector extensions.
22223
22224 2015-01-13 Renlin Li <renlin.li@arm.com>
22225
22226 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
22227 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
22228
22229 2015-01-13 Martin Liska <mliska@suse.cz>
22230
22231 * ipa-icf.c (sem_function::equals_private): Call new functions
22232 cl_target_option_print_diff and cl_optimization_print_diff.
22233 * optc-save-gen.awk (cl_target_option_print_diff): New function.
22234 (cl_optimization_print_diff): Likewise.
22235 * opth-gen.awk: Likewise.
22236
22237 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
22238
22239 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
22240 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
22241 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
22242 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
22243 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
22244 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
22245
22246 2015-01-13 Andrew Pinski <apinski@cavium.com>
22247
22248 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
22249 instead of src mode.
22250
22251 2015-01-13 Richard Biener <rguenther@suse.de>
22252
22253 PR lto/64373
22254 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
22255 DECL_CONTEXT.
22256
22257 2015-01-13 Andrew Pinski <apinski@cavium.com>
22258
22259 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
22260 volatile mems.
22261 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
22262
22263 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22264
22265 PR middle-end/63974
22266 * cfgexpand.c (expand_computed_goto): Don't call
22267 convert_memory_address here.
22268
22269 2015-01-13 Richard Biener <rguenther@suse.de>
22270
22271 PR tree-optimization/64406
22272 * tree-loop-distibution.c (pass_loop_distribution::execute):
22273 Reset the SCEV hashtable if we distributed anything.
22274
22275 2015-01-13 Richard Biener <rguenther@suse.de>
22276
22277 PR tree-optimization/64404
22278 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22279 SLP types for CSEd loads.
22280
22281 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22282
22283 PR tree-optimization/64436
22284 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22285 merge of two symbolic numbers for a bitwise OR to ...
22286 (perform_symbolic_merge): This. Also fix computation of the range and
22287 end of the symbolic number corresponding to the result of a bitwise OR.
22288
22289 2015-01-13 Richard Biener <rguenther@suse.de>
22290
22291 PR tree-optimization/64568
22292 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22293 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22294
22295 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22296
22297 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22298 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22299
22300 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22301
22302 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22303 target-specific symbol_ref flag.
22304 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22305 resides in rodata section.
22306 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22307 (nds32_encode_section_info): New function.
22308
22309 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22310
22311 * config/nds32/nds32.md (call): Use pseudo instruction bal which
22312 clobbers TA_REGNUM if large code model is specified.
22313 (call_register): Likewise.
22314 (call_immediate): Likewise.
22315 (call_value): Likewise.
22316 (call_value_register): Likewise.
22317 (call_value_immediate): Likewise.
22318
22319 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22320
22321 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22322 (TARGET_CMODEL_MEDIUM): New macro.
22323 (TARGET_CMODEL_LARGE): New macro.
22324 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22325 code model setting in assembly code.
22326
22327 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22328
22329 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22330 Remove MASK_GP_DIRECT flag.
22331 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22332 one of the multilib default options.
22333 * config/nds32/nds32.opt (mgp-direct): Remove.
22334 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22335 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
22336
22337 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22338
22339 * config/nds32/nds32.opt (mcmodel): Add new option.
22340 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22341 to describe code model.
22342
22343 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
22344
22345 PR target/64479
22346 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22347
22348 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
22349
22350 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22351 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22352 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22353 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22354 __builtin_sh_set_fpscr.
22355
22356 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22357
22358 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22359 after a funtion name just to indicate it is a function.
22360 ([-fsanitize-undefined-trap-on-error]): Likewise.
22361 ([-fdbg-cnt=]): Likewise.
22362 ([-mmemcpy]): Likewise.
22363 ([-mflush-func]): Likewise.
22364 ([-msynci]): Likewise.
22365
22366 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22367
22368 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22369 example.
22370
22371 2015-01-12 Jakub Jelinek <jakub@redhat.com>
22372
22373 PR tree-optimization/64563
22374 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22375 instead of != VR_VARYING.
22376
22377 PR target/64513
22378 * config/i386/i386.c (ix86_expand_prologue): Add
22379 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22380
22381 PR tree-optimization/64454
22382 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22383 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22384 for signed or [0, op1 - 1] for unsigned modulo.
22385 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22386 even if op1 does not satisfy integer_pow2p.
22387
22388 PR other/64370
22389 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22390
22391 2015-01-12 Jeff Law <law@redhat.com>
22392
22393 PR target/64461
22394 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22395 (trunchiqi2, truncsihi2): Similarly.
22396
22397 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22398 rather than calling F.
22399
22400 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
22401
22402 * tsan.c (instrument_expr): Use force_gimple_operand.
22403 Use may_be_nonaddressable_p instead of is_gimple_addressable.
22404
22405 2015-01-12 Richard Biener <rguenther@suse.de>
22406
22407 PR tree-optimization/64530
22408 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22409 back dr1.
22410
22411 2015-01-12 Richard Biener <rguenther@suse.de>
22412
22413 PR middle-end/64357
22414 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22415 latches properly.
22416
22417 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22418
22419 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22420 Cortex-A17 tuning parameters.
22421 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22422
22423 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22424
22425 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22426 * config/arm/arm.c (arm_macro_fusion_p): New function.
22427 (arm_macro_fusion_pair_p): Likewise.
22428 (TARGET_SCHED_MACRO_FUSION_P): Define.
22429 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22430 (ARM_FUSE_NOTHING): Likewise.
22431 (ARM_FUSE_MOVW_MOVT): Likewise.
22432 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22433 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22434 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22435 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22436 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22437 arm_cortex_a5_tune): Specify fuseable_ops value.
22438
22439 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
22440
22441 PR bootstrap/64561
22442 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22443 test for PIE with copy reloc.
22444 * configure: Regenerated.
22445
22446 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22447
22448 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22449 in gen_rtx_REG.
22450 (arm_tls_descseq_addr): Likewise.
22451 (arm_gen_movmemqi): Likewise.
22452 (arm_expand_epilogue_apcs_frame): Likewise.
22453 (arm_expand_epilogue): Likewise.
22454 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
22455 in gen_rtx_REG.
22456
22457 2015-01-12 Martin Liska <mliska@suse.cz>
22458
22459 PR ipa/64550
22460 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22461 volatility for correct operands.
22462
22463 2015-01-12 Martin Liska <mliska@suse.cz>
22464
22465 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22466 indication that a function is not leaf.
22467 (sem_function::compare_polymorphic_p): Likewise.
22468
22469 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22470
22471 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22472 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22473 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22474 fold-const.h, tree-check.h.
22475
22476 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22477
22478 PR ipa/63967
22479 PR ipa/64425
22480 * ipa-inline.c (compute_uninlined_call_time,
22481 compute_inlined_call_time): Use counts for extra precision when
22482 needed possible.
22483 (big_speedup_p): Fix formating.
22484 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22485 (relative_time_benefit): Remove.
22486 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22487 merge guessed and read profile paths.
22488 (inline_small_functions): Count only !optimize_size functions into
22489 initial size; be more lax about sanity check when profile is used;
22490 be sure to update inlined function profile when profile is read.
22491
22492 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22493
22494 PR ipa/63470
22495 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22496 cost when edge becomes direct.
22497 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22498 is resolved or when introducing new speculation.
22499
22500 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
22501
22502 PR ipa/64551
22503 PR ipa/64552
22504 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22505 '||' to fix typo issue.
22506
22507 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22508 accept and return NULL.
22509
22510 2015-01-12 Martin Liska <mliska@suse.cz>
22511
22512 * cgraph.c (cgraph_edge::remove_callee): Move function to header
22513 file for being inlined.
22514 (cgraph_set_edge_callee): Delete.
22515 (cgraph_edge::redirect_callee): Move function to header file
22516 for being inlined.
22517 (cgraph_edge::make_direct): Use new function.
22518 (cgraph_edge::dump_edge_flags): New function created from
22519 static dump_edge_flags function.
22520 (cgraph_node::dump): Use new function.
22521 (cgraph_edge::verify_count_and_frequency): New function created
22522 from verify_edge_count_and_frequency.
22523 (cgraph_edge::verify_corresponds_to_fndecl): New function created
22524 from verify_edge_corresponds_to_fndecl.
22525 (verify_edge_corresponds_to_fndecl): Delete.
22526 (cgraph_node::verify_node): Use new function.
22527 * cgraph.h (cgraph_edge::set_callee): New function.
22528 (cgraph_edge::dump_edge_flags): Likewise.
22529 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22530
22531 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
22532
22533 * ipa-utils.c (estimate_function_body_sizes): Do not
22534 free node params when called late with early=true.
22535
22536 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
22537
22538 * doc/md.texi (Instruction Patterns): Rewrite text for
22539 clarity.
22540 (Example): Likewise.
22541
22542 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
22543
22544 * doc/invoke.texi (Option Summary): Break long lines.
22545 [(-fdiagnostics-color)]: Put long literal in @smallexample
22546 instead of inline.
22547 [(-fsanitize-recover)]: Likewise.
22548 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22549 [(-ffast-math)]: Likewise.
22550 [(--param max-inline-insns-recursive)]: Likewise.
22551 [(--param max-inline-recursive-depth)]: Likewise.
22552 [(-mno-text-section-literals)]: Likewise.
22553
22554 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
22555
22556 * doc/install.texi: Update for libgomp being renamed from "GNU
22557 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22558 Runtime Library".
22559 * doc/sourcebuild.texi: Likewise.
22560
22561 2015-01-10 Anthony Green <green@moxielogic.com>
22562
22563 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22564 mul.x availability for moxiebox configuration.
22565
22566 2015-01-09 Anthony Green <green@moxielogic.com>
22567
22568 * config/moxie/moxie.md: Tabify assembly output.
22569
22570 2015-01-09 Anthony Green <green@moxielogic.com>
22571
22572 * config/moxie/moxie.md (CC_REG): Correct register definition.
22573
22574 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
22575
22576 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22577 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
22578 of log files.
22579
22580 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22581
22582 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22583
22584 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
22585 Jakub Jelinek <jakub@redhat.com>
22586
22587 PR middle-end/64412
22588 * lto-streamer.h (lto_stream_offload_p): New declaration.
22589 * lto-streamer.c (lto_stream_offload_p): New variable.
22590 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22591 at the same time as section_name_prefix.
22592 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22593 if lto_stream_offload_p.
22594 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22595 stream TREE_TARGET_OPTION if lto_stream_offload_p.
22596 (write_ts_function_decl_tree_pointers): Don't
22597 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22598 * tree-streamer-in.c (unpack_value_fields): Don't stream
22599 TREE_TARGET_OPTION in if ACCEL_COMPILER.
22600 (lto_input_ts_function_decl_tree_pointers): Don't stream
22601 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22602 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22603 instead of section_name_prefix string comparisons.
22604
22605 2015-01-09 Jakub Jelinek <jakub@redhat.com>
22606
22607 PR rtl-optimization/64536
22608 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22609 tablejumps.
22610
22611 2015-01-09 Michael Collison <michael.collison@linaro.org>
22612
22613 PR tree-optimization/64322
22614 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22615 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22616
22617 2015-01-09 Tom de Vries <tom@codesourcery.com>
22618
22619 PR rtl-optimization/64539
22620 * regcprop.c (kill_clobbered_values): Factor out of ...
22621 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
22622 instead of note_stores with kill_clobbered_value.
22623
22624 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22625
22626 * ginclude/unwind-arm-common.h: Revert previous commit.
22627
22628 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22629
22630 * config.gcc (arm*-*-freebsd*): New configuration.
22631 * config/arm/freebsd.h: New file.
22632 * config.host: Add extra components for arm*-*-freebsd*.
22633 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22634 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22635
22636 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22637
22638 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22639 for -mcpu=e6500.
22640 * config/rs6000/t-rtems: Add e6500 multilibs.
22641
22642 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22643
22644 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22645 MPC8540.
22646
22647 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22648
22649 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22650 MULTILIB_EXCEPTIONS.
22651
22652 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22653
22654 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22655 MULTILIB_EXCEPTIONS.
22656
22657 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22658
22659 * config/arm/t-rtems-eabi: Rename to...
22660 * config/arm/t-rtems: ...this.
22661 * config/arm/rtems-eabi.h: Rename to...
22662 * config/arm/rtems.h: ...this.
22663 * config.gcc (arm*-*-rtems*): Reflect changes above.
22664
22665 2015-01-09 Richard Biener <rguenther@suse.de>
22666
22667 PR tree-optimization/64410
22668 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22669 on the LHS.
22670 (execute_update_addresses_taken): Deal with that.
22671 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22672 loads/stores for complex variables.
22673
22674 2015-01-09 Martin Liska <mliska@suse.cz>
22675
22676 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22677 name comparison.
22678 (func_checker::compare_memory_operand): New function.
22679 (func_checker::compare_operand): Split case to newly
22680 added functions.
22681 (func_checker::compare_cst_or_decl): New function.
22682 (func_checker::compare_gimple_call): Identify
22683 memory operands.
22684 (func_checker::compare_gimple_assign): Likewise.
22685 * ipa-icf-gimple.h: New function.
22686
22687 2015-01-09 Martin Liska <mliska@suse.cz>
22688
22689 PR ipa/64503
22690 * sreal.c (sreal::dump): Change unsigned format to signed for
22691 m_exp value.
22692 (sreal::to_double): Replace exp2 with scalbln.
22693
22694 2015-01-09 Martin Liska <mliska@suse.cz>
22695
22696 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22697 * ipa-icf.c (sem_function::equals_private): Add support for target and
22698 (sem_item_optimizer::merge_classes): Remove redundant function
22699 optimization flags comparison.
22700 * tree.h (target_opts_for_fn): New function.
22701
22702 2015-01-09 Tom de Vries <tom@codesourcery.com>
22703
22704 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22705
22706 2015-01-09 Kito Cheng <kito@0xlab.org>
22707
22708 PR rtl-optimization/64348
22709 * lra-constraints.c (split_reg): Fix caller-save store/restore
22710 instruction generation.
22711
22712 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
22713
22714 PR gcov-profile/61790
22715 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22716 long long. Fallback to int64_t if host doesn't have long long and
22717 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
22718
22719 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22720
22721 PR tree-optimization/63989
22722 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22723 from 1000 to 10000.
22724 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22725 (get_stridx): If we don't have a record for certain SSA_NAME,
22726 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22727 constant offset, call get_stridx_plus_constant.
22728 (get_stridx_plus_constant): New function.
22729 (zero_length_string): Don't use get_stridx here.
22730
22731 PR target/55023
22732 PR middle-end/64388
22733 * dse.c (struct insn_info): Mention frame_read set also
22734 before reload for tail calls on some targets.
22735 (scan_insn): Revert 2014-12-22 change. Set frame_read
22736 also before reload for tail calls if
22737 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
22738 instead of add_non_frame_wild_read for non-const/memset
22739 tail calls after reload.
22740
22741 2015-01-08 Jason Merrill <jason@redhat.com>
22742
22743 * ubsan.c (do_ubsan_in_current_function): New.
22744 (pass_ubsan::gate): Use it.
22745 * ubsan.h: Declare it.
22746 * convert.c (convert_to_integer): Use it.
22747
22748 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22749
22750 PR target/64338
22751 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22752 compare_code when it is unconditionally overwritten afterwards.
22753 Use ix86_reverse_condition instead of reverse_condition. Don't
22754 change code if *reverse_condition* returned UNKNOWN and don't
22755 swap ct/cf and negate diff in that case.
22756
22757 2015-01-08 Mike Stump <mikestump@comcast.net>
22758
22759 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22760 (pass_tsan_O0::gate): Likewise.
22761 * extend.texi (Function Attributes): Add no_sanitize_thread
22762 documentation.
22763
22764 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
22765
22766 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22767 for registering builtins.
22768 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22769 add -fopenmp to the argv_obstack used when invoking
22770 compile_for_target.
22771
22772 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22773 add "-m32" or "-m64" to argv_obstack.
22774 (generate_host_descr_file): Likewise, when invoking host_compiler.
22775 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22776 ld.
22777
22778 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22779
22780 * config/sh/sh-mem.cc: Use constant as second operand when emitting
22781 tstsi_t insns.
22782
22783 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22784
22785 PR target/55212
22786 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22787 constant load if constant operand fits into I08.
22788
22789 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22790
22791 PR sanitizer/64336
22792 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22793 and TREE_THIS_VOLATILE for MEM_REFs.
22794 (build5_stat): Fix up initialization of TREE_READONLY and
22795 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22796
22797 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22798
22799 PR target/64533
22800 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22801 of r for the second alternative of the destination operand.
22802
22803 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
22804
22805 PR target/36557
22806 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22807
22808 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22809
22810 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22811 keywords.
22812 ([-fivar-visibility], [-fvisibility]): Likewise.
22813
22814 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22815
22816 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22817 the file where @code, @command, etc is more appropriate.
22818
22819 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
22820
22821 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22822 of -mrecip= documentation.
22823
22824 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22825
22826 PR target/64505
22827 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22828 correct reload handler if -m32 -mpowerpc64 is used.
22829
22830 2015-01-06 Tom de Vries <tom@codesourcery.com>
22831
22832 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22833
22834 2015-01-08 Christian Bruel <christian.bruel@st.com>
22835
22836 PR target/64507
22837 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22838
22839 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22840
22841 PR tree-optimization/63259
22842 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22843 if optab exists for 16bit byteswap.
22844
22845 2015-01-06 Jakub Jelinek <jakub@redhat.com>
22846
22847 * opts.c (common_handle_option): Add support for
22848 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22849 * doc/invoke.texi: Document -fno-sanitize=all,
22850 -f{,no-}sanitize-recover=all. Document that
22851 -fsanitize=float-cast-overflow is not enabled
22852 by -fsanitize=undefined. Fix up documentation
22853 of -f{,no-}sanitize-recover.
22854
22855 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
22856
22857 * config.gcc: Add Visium support.
22858 * configure.ac: Likewise.
22859 * configure: Regenerate.
22860 * doc/extend.texi (interrupt attribute): Add Visium.
22861 * doc/invoke.texi: Document Visium options.
22862 * doc/install.texi: Document Visium target.
22863 * doc/md.texi: Document Visium constraints.
22864 * common/config/visium: New directory.
22865 * config/visium: Likewise.
22866
22867 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22868
22869 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22870 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22871
22872 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22873
22874 * combine.c (combine_validate_cost): Do not count the cost of a
22875 split I2 twice. Do not display it twice in the dump, either.
22876
22877 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22878
22879 Revert parts of r219199.
22880 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22881 <inttypes.h>.
22882 ([-Wtraditional]): Restore markup on <limits.h>.
22883
22884 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
22885
22886 PR c++/31397
22887 * doc/invoke.texi: Document -Wsuggest-override.
22888
22889 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
22890
22891 PR rtl-optimization/64287
22892 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22893 (process_options): Disable flag_ipa_ra if profiling.
22894
22895 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
22896
22897 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22898
22899 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
22900
22901 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22902 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22903 put under #if TARGET_LOOPS guard.
22904
22905 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
22906
22907 * config/i386/i386.c (output_387_binary_op): Use std::swap.
22908
22909 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
22910
22911 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22912 * rtl.h (refers_to_regno_p): Add overload.
22913 * cse.c: Use it.
22914 * bt-load.c: Likewise.
22915 * combine.c: Likewise.
22916 * df-scan.c: Likewise.
22917 * sched-deps.c: Likewise.
22918 * config/s390/s390.c: Likewise.
22919 * config/m32r/m32r.c: Likewise.
22920 * config/rs6000/spe.md: Likewise.
22921 * config/rs6000/rs6000.c: Likewise.
22922 * config/pa/pa.c: Likewise.
22923 * config/stormy16/stormy16.c: Likewise.
22924 * config/cris/cris.c: Likewise.
22925 * config/arc/arc.md: Likewise.
22926 * config/arc/arc.c: Likewise.
22927 * config/sh/sh.md: Likewise.
22928 * config/sh/sh.c: Likewise.
22929 * config/frv/frv.c: Likewise.
22930
22931 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22932
22933 PR sanitizer/64265
22934 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22935 call as cleanup of the whole body.
22936 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22937 * tsan.c (replace_func_exit): New function.
22938 (instrument_func_exit): Moved earlier.
22939 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22940 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22941 been found.
22942 (tsan_pass): Don't call instrument_func_exit.
22943 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22944 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22945 inlining.
22946
22947 PR sanitizer/64344
22948 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22949 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22950 it to libubsan handler instead of EXPR. Fold comparisons earlier,
22951 if the result is integer_zerop, return NULL_TREE.
22952 * convert.c (convert_to_integer): Pass expr as ARG.
22953
22954 PR tree-optimization/64465
22955 * tree-inline.c (redirect_all_calls): During inlining
22956 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22957 changed the stmt to a non-throwing call.
22958
22959 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22960
22961 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22962 etc markup throughout the file.
22963
22964 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22965
22966 Enable experimental TSAN support for Ada.
22967 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22968
22969 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22970
22971 PR tree-optimization/64494
22972 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22973 clear SSA_NAME_ANTI_RANGE_P flag.
22974
22975 2015-01-05 Marek Polacek <polacek@redhat.com>
22976
22977 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22978
22979 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22980
22981 Update copyright years.
22982
22983 * gcc.c (process_command): Update copyright notice dates.
22984 * gcov-dump.c: Ditto.
22985 * gcov.c: Ditto.
22986 * doc/cpp.texi: Bump @copying's copyright year.
22987 * doc/cppinternals.texi: Ditto.
22988 * doc/gcc.texi: Ditto.
22989 * doc/gccint.texi: Ditto.
22990 * doc/gcov.texi: Ditto.
22991 * doc/install.texi: Ditto.
22992 * doc/invoke.texi: Ditto.
22993
22994 * auto-profile.c, auto-profile.h: Fix up Copyright line.
22995
22996 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
22997
22998 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22999 verb tense, etc.
23000 ([-fvtable-verify], [-fvtv-debug]): Likewise.
23001 ([-Wabi]): Likewise.
23002 ([-fmessage-length]): Likewise.
23003 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
23004 ([-Wno-discarded-qualifiers]): Likewise.
23005 ([-Wnodiscarded-array-qualifiers]): Likewise.
23006 ([-Wno-virtual-move-assign]): Likewise.
23007 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
23008 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
23009 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
23010 ([-fsanitize-undefined-trap-on-error]): Likewise.
23011 ([-floop-interchange]): Likewise.
23012 ([-ftree-coalesce-inlined-vars]): Likewise.
23013 ([-fvect-cost-model]): Likewise.
23014 ([-flto]): Likewise.
23015 ([--param]): Likewise.
23016 (Spec Files): Likewise.
23017 ([-mstrict-align]): Likewise.
23018 ([-mfix-cortex-a53-835769]): Likewise.
23019 ([-march], [-mtune]): Likewise.
23020 ([-mpic-register]): Likewise.
23021 ([-munaligned-access]): Likewise.
23022 ([-msp8]): Likewise.
23023 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
23024 (AVR Built-in Macros): Likewise.
23025 ([-mpreferred-stack-boundary]): Likewise.
23026 ([-mtune-crtl]): Likewise.
23027 ([-mashf]): Likewise.
23028 ([-mmcu=]): Likewise.
23029 ([-minrt]): Likewise.
23030 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
23031 ([-mupper-regs]): Likewise.
23032 ([-matomic-model]): Likewise.
23033 ([-mdiv]): Likewise.
23034 ([-mzdcbranch]): Likewise.
23035 ([-mdisable-callt]): Likewise.
23036 ([-msoft-float]): Likewise.
23037 ([-m8byte-align]): Likewise.
23038 ([-fstack-reuse]): Likewise.
23039
23040 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
23041
23042 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
23043 Fix markup, light copy-editing.
23044 ([-fauto-profile]): Rewrite to fix formatting and content
23045 problems.
23046
23047 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
23048
23049 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
23050 Copy-edit description.
23051 ([-fisolate-erroneous-paths-attribute]): Likewise.
23052 * common.opt (fisolate-erroneous-paths-dereference):
23053 Copy-edit description.
23054 (fisolate-erroneous-paths-attribute): Likewise.
23055
23056 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
23057
23058 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
23059 tidy grammar.
23060
23061 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
23062
23063 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
23064 ([-fvtv-debug]): Likewise.
23065 ([-Wc++-compat]): Likewise.
23066 ([-Wc++11-compat]): Likewise.
23067 ([-Wc++14-compat]): Likewise.
23068 ([-Wno-sized-deallocation]): Likewise.
23069 ([-femit-class-debug-always]): Likewise.
23070 ([-femit-struct-debug-detailed]): Likewise.
23071 ([-fno-keep-inline-dllexport]): Likewise.
23072 ([-fira-algorithm]): Likewise.
23073 ([-fira-region]): Likewise.
23074 ([-flra-remat]): Likewise.
23075 ([-fipa-ra]): Likewise.
23076 ([-fhoist-adjacent-loads]): Likewise.
23077 ([-fisolate-erroneous-paths-dereference]): Likewise.
23078 ([-fisolate-erroneous-paths-attribute]): Likewise.
23079 ([-ftree-switch-conversion]): Likewise.
23080 ([-ftree-tail-merge]): Likewise.
23081 ([-ftree-loop-if-convert]): Likewise.
23082 ([-ftree-loop-if-convert-stores]): Likewise.
23083 ([-ftree-loop-distribution]): Likewise.
23084 ([-ftree-loop-distribute-patterns]): Likewise.
23085 ([-flto-compression-level]): Likewise.
23086 ([-flto-report]): Likewise.
23087 ([-flto-report-wpa]): Likewise.
23088 ([-fuse-linker-plugin]): Likewise.
23089 ([-mfix-cortex-a53-835769]): Likewise.
23090 ([-mno-fix-cortex-a53-835769]): Likewise.
23091 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
23092 explicit listing; add a note to the discussion indicating they
23093 exist. Reorder table to group similar options. Add missing
23094 @opindex entries. Add @need commands throughout the table to
23095 allow it to be split across multiple pages.
23096 ([-m8bit-idiv]): Fix @opindex.
23097 ([-mavx256-split-unaligned-load]): Likewise.
23098 ([-mavx256-split-unaligned-store]): Likewise.
23099 ([-mstack-protector-guard]): Likewise.
23100 ([-mcpu=]): Likewise.
23101 ([-mcpu]): Likewise.
23102 ([-mpointer-size=]): Likewise.
23103
23104 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
23105
23106 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
23107 instead of `m' constraint. Likewise for unnamed movb comparison
23108 patterns using reg_before_reload_operand predicate.
23109 * config/pa/predicates.md (reg_before_reload_operand): Tighten
23110 predicate to reject register index and LO_SUM DLT memory forms
23111 after reload.
23112
23113 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
23114
23115 * doc/invoke.texi (Option Summary): Fix spelling of
23116 -fdevirtualize-at-ltrans.
23117 ([-fdevirtualize]): Fix markup.
23118 ([-fdevirtualize-speculatively]): Fix typo.
23119 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
23120 implementor-speaky.
23121 * common.opt (fdevirtualize-at-ltrans): Likewise.
23122 * ipa-devirt.c: Fix typos in comments throughout the file.
23123 (ipa_devirt): Fix typos in format strings for dump output.
23124
23125 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
23126
23127 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
23128 discussion of defaults, light copy-editing.
23129
23130 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
23131
23132 * tsan.c (instrument_expr): corrected previous checkin.
23133
23134 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
23135
23136 Instrument bit field and unaligned accesses for TSAN.
23137 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
23138 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
23139 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
23140 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
23141 unaligned memory regions.
23142
23143 2015-01-01 Anthony Green <green@moxielogic.com>
23144
23145 * config/moxie/predicates.md (moxie_general_movsrc_operand):
23146 Restrict move source register offsets to 16 bits.
23147 \f
23148 Copyright (C) 2015 Free Software Foundation, Inc.
23149
23150 Copying and distribution of this file, with or without modification,
23151 are permitted in any medium without royalty provided the copyright
23152 notice and this notice are preserved.