]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
re PR other/66259 (Combined gcc and binutils build from git-master fails, with gas...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-07-24 Michael Darling <darlingm@gmail.com>
2
3 PR other/66259
4 * acinclude.m4: Reflects renaming of configure.in to configure.ac
5 * configure: Likewise
6 * configure.ac: Likewise
7 * doc/install.texi: Likewise
8 * doc/tm.texi: Likewise
9 * doc/tm.texi.in: Likewise
10
11 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12
13 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14 manually swapping values.
15 * cse.c (fold_rtx): Likewise.
16 * lra-eliminations.c (form_sum): Likewise.
17
18 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19
20 PR target/64003
21 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
22 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
23 (*jcc_1, *jcc_2, jump, simple_return_internal)
24 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
25 Set length_nobnd attribute instead of length attribute.
26 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
27 (length_nobnd): Remove attribute.
28 (length): Remove length_nobnd processing.
29
30 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
31
32 * gimplify.c (omp_default_clause): New function. Reorganize flow
33 for clarity. Broken out of ...
34 (omp_notice_variable): ... here.
35
36 2015-07-24 Gary Funck <gary@intrepid.com>
37
38 PR middle-end/66984
39 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
40 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
41
42 2015-07-24 Tom de Vries <tom@codesourcery.com>
43
44 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
45 exit-first loop transform.
46
47 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
48
49 PR 66714
50 * tree-cfg.c (struct replace_decls_d): New struct.
51 (replace_block_vars_by_duplicates_1): New function.
52 (replace_block_vars_by_duplicates): Use it to replace the decls
53 in the value exprs by duplicates.
54
55 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
56
57 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
58 -shared, -symbolic, -rdynamic.
59
60 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
61
62 PR target/65711
63 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
64 -dynamic-linker within %{!static %{!shared, and -rdynamic within
65 %{!static.
66
67 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
68
69 PR ipa/66566
70 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
71 edge summary is available.
72
73 2015-07-24 Richard Biener <rguenther@suse.de>
74
75 * genmatch.c (struct dt_node): Add statistic fields.
76 (dt_node::analyze): New method.
77 (decision_tree::gen_gimple): Call analyze on the root node
78 and print statistics to stderr.
79 (decision_tree::gen_generic): Likewise.
80
81 2015-07-24 Richard Biener <rguenther@suse.de>
82
83 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
84 against the highest or lowest possible integer ...
85 * match.pd: ... as patterns here.
86
87 2015-07-24 Richard Biener <rguenther@suse.de>
88
89 * genmatch.c (struct capture_info): Add same_as field.
90 (capture_info::capture_info): Initialize same_as.
91 (capture_info::walk_match): Compute same_as.
92 (capture_info::walk_result): Compute stuff for the leader.
93 (capture_info::walk_c_expr): Likewise.
94 (dt_simplify::gen_1): Only look at leaders when deciding
95 to force no side-effects or emit side-effects of omitted operands.
96
97 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
98
99 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
100 reg note to the GPR -> FPR save instructions.
101
102 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
103
104 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
105 cheaper.
106 (s390_expand_insv): Don't generate risbg pattern for constant zero
107 sources.
108 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
109 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
110 splitters.
111
112 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
113
114 * config/s390/s390.c (s390_reorg): Clean up handling of processors
115 with
116 -mtune=
117 (s390_issue_rate): Likewise.
118 (s390_sched_reorder): Likewise.
119 (s390_sched_variable_issue): Likewise.
120 (s390_loop_unroll_adjust): Likewise.
121 (s390_option_override): Likewise.
122
123 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
124
125 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
126 processor capabilities with -march=native.
127 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
128 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
129 (S390_TARGET_BITS_STRING): Macro to simplify specs.
130
131 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
132
133 * config/s390/s390.c (s390_issue_rate): Handle
134 PROCESSOR_2094_Z9_EC.
135 (s390_option_override): Likewise.
136 (s390_adjust_priority): Likewise.
137
138 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
139
140 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
141 when cross compiling.
142
143 2015-07-24 Richard Biener <rguenther@suse.de>
144
145 * fold-const.c (maybe_canonicalize_comparison_1): Move
146 A code CST canonicalization ...
147 * match.pd: ... to a pattern here.
148
149 2015-07-24 Jiong Wang <jiong.wang@arm.com>
150
151 Revert:
152 2015-07-22 Jiong Wang <jiong.wang@arm.com>
153 PR target/63521
154 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
155 (HONOR_REG_ALLOC_ORDER): Define.
156
157 2015-07-24 Richard Biener <rguenther@suse.de>
158
159 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
160 * fold-const.c (fold_comparison): Move parameter does not
161 alias &local simplification ...
162 * match.pd: ... as a pattern here.
163
164 2015-07-24 Richard Biener <rguenther@suse.de>
165
166 * gimple-fold.c (replace_stmt_with_simplification): Special-case
167 valueizing call operands.
168 * gimple-match-head.c (maybe_push_res_to_seq): Take
169 number of call arguments from ops array.
170 (do_valueize): New function.
171 (gimple_simplify): Return true if valueization changed
172 any operand even if the result didn't simplify further.
173
174 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
175
176 PR middle-end/25530
177 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
178
179 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
180
181 PR middle-end/25529
182 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
183
184 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
185
186 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
187 instruction.
188
189 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
190
191 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
192 clean up.
193
194 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
195
196 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
197 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
198 targets here.
199 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
200 ms_va_list_type_node initialization.
201
202 2015-07-23 Jeff Law <law@redhat.com>
203
204 PR lto/66752
205 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
206 unable to find X NE 0 in the tables, return X as the simplified
207 condition.
208 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
209 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
210 to VISISTED_BBS. */
211 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
212 after removing the control flow statement and unnecessary edges.
213
214 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
215
216 * tree-pass.h (get_current_pass_name): Removed.
217
218 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
219
220 PR rtl-optimization/64164
221 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
222 * tree-ssa-copyrename.c: Removed.
223 * opts.c (default_options_table): Drop -ftree-copyrename. Add
224 -ftree-coalesce-vars.
225 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
226 * common.opt (ftree-copyrename): Ignore.
227 (ftree-coalesce-inlined-vars): Likewise.
228 * doc/invoke.texi: Remove the ignored options above.
229 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
230 * tree-ssa-coalesce.h: ... here.
231 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
232 headers required by it.
233 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
234 across variables when flag_tree_coalesce_vars. Check register
235 use and promoted modes to allow coalescing. Moved to
236 tree-ssa-coalesce.c.
237 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
238 with its member functions to tree-ssa-coalesce.c.
239 (var_map_base_init): Likewise. Renamed to
240 compute_samebase_partition_bases.
241 (partition_view_normal): Drop want_bases parameter.
242 (partition_view_bitmap): Likewise.
243 * tree-ssa-live.h: Adjust declarations.
244 * tree-ssa-coalesce.c: Include explow.h.
245 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
246 default defs at the entry point.
247 (dump_part_var_map): New.
248 (compute_optimized_partition_bases): New, called by...
249 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
250 of compute_samebase_partition_bases. Adjust.
251 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
252 * cfgexpand.c (leader_merge): New.
253 (get_rtl_for_parm_ssa_default_def): New.
254 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
255 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
256 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
257 redundant MEM attr setting.
258 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
259 from...
260 (expand_one_stack_var): ... this. New wrapper to check and
261 skip already expanded SSA partitions.
262 (record_alignment_for_reg_var): New, factored out of...
263 (expand_one_var): ... this.
264 (expand_one_ssa_partition): New.
265 (adjust_one_expanded_partition_var): New.
266 (expand_one_register_var): Check and skip already expanded SSA
267 partitions.
268 (expand_used_vars): Don't create DECLs for anonymous SSA
269 names. Expand all SSA partitions, then adjust all SSA names.
270 (pass::execute): Replace the loops that set
271 SA.partition_to_pseudo from partition leaders and cleared
272 DECL_RTL for multi-location variables, and that which used to
273 rename vars and set attrs, with one that clears DECL_RTL and
274 checks that PARMs and RESULTs default_defs match DECL_RTL.
275 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
276 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
277 * explow.c (promote_ssa_mode): New.
278 * explow.h (promote_ssa_mode): Declare.
279 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
280 * function.c: Include cfgexpand.h.
281 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
282 (use_register_for_parm_decl): Wrapper for the above to
283 special-case the result_ptr.
284 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
285 (split_complex_args): Take assign_parm_data_all argument.
286 Pass it to rtl_for_parm. Set up rtl and context for split
287 args.
288 (assign_parms_augmented_arg_list): Adjust.
289 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
290 multiple locations. Recognize split complex args.
291 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
292 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
293 (assign_parm_setup_block): Prefer SSA-assigned location.
294 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
295 if stack_parm is NULL.
296 (assign_parm_setup_stack): Prefer SSA-assigned location.
297 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
298 rtl before testing for pointer bounds. Special-case result_ptr.
299 (expand_function_start): Maybe reset DECL_RTL of result.
300 Prefer SSA-assigned location for result and static chain.
301 Factor out DECL_RESULT and SET_DECL_RTL.
302 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
303 anonymous SSA names. Use promote_ssa_mode.
304 (get_temp_reg): Likewise.
305 (remove_ssa_form): Adjust.
306 * stor-layout.c (layout_decl): Don't set mem attributes of
307 non-MEMs.
308 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
309 and get its reg_usage for reg invalidation.
310 (compute_bb_dataflow): Pass it insn.
311 (emit_notes_in_bb): Likewise.
312
313 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
314
315 PR target/66217
316 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
317 prototype.
318 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
319 (rs6000_emit_2insn_and): Handle dot forms.
320 * config/rs6000/rs6000.md (and<mode>3): Adjust.
321 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
322 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
323
324 2015-07-23 Richard Biener <rguenther@suse.de>
325
326 * generic-match-head.c: Include cgraph.h.
327 * gimple-match-head.c: Likewise.
328 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
329 SSA names.
330 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
331 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
332 pattern.
333
334 2015-07-23 Richard Biener <rguenther@suse.de>
335
336 * gimple-fold.c (fold_gimple_cond): Do not require folding
337 results to pass valid_gimple_rhs_p.
338 * tree-cfg.h (fold_cond_expr_cond): Remove.
339 * tree-cfg.c (fold_cond_expr_cond): Likewise.
340 (make_edges): Do not call it.
341 * tree-inline.c (tree_function_versioning): Likewise.
342
343 2015-07-23 Tom de Vries <tom@codesourcery.com>
344
345 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
346 vect_force_simple_reduction.
347 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
348 (vect_is_simple_reduction_1): Add and handle
349 need_wrapping_integral_overflow parameter.
350 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
351 need_wrapping_integral_overflow parameter.
352 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
353 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
354 decl.
355
356 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
357
358 PR tree-optimization/66926,66951
359 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
360 INNER_LOOP and fix up condition for renaming virtual operands.
361
362 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
363
364 * combine.c (try_combine): Use std::swap instead of manually
365 swapping.
366
367 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
368
369 * config/mips/i6400.md: New file.
370 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
371 (mips64r6): Likewise.
372 (i6400): Define.
373 * config/mips/mips-tables.opt: Regenerate.
374 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
375 (mips_issue_rate): Add support for i6400.
376 (mips_multipass_dfa_lookahead): Likewise.
377 * config/mips/mips.h (TUNE_I6400): Define.
378 * config/mips/mips.md: Include i6400.md.
379 (processor): Add i6400.
380 * doc/invoke.texi (-march=@var{arch}): Add i6400.
381
382 2015-07-23 Richard Biener <rguenther@suse.de>
383
384 PR middle-end/66916
385 * match.pd: Guard widen and sign-change comparison simplification
386 with single_use.
387
388 2015-07-23 Richard Biener <rguenther@suse.de>
389
390 PR tree-optimization/66945
391 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
392 ::before_dom_children): Force the propagators idea of
393 non-executable edges to materialize, not what the folder
394 chooses.
395
396 2015-07-23 Richard Biener <rguenther@suse.de>
397
398 * gimple.h (gimple_cond_make_false): Use 0 != 0.
399 (gimple_cond_make_true): Use 1 != 0.
400
401 2015-07-22 DJ Delorie <dj@redhat.com>
402
403 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
404 slashes.
405
406 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
407 (ashrhi3): Likewise.
408 (lshrhi3): Likewise.
409 (movhi): Take advantage of zero-extend to load small constants.
410 (movpsi): Likewise.
411 (and<mode>3): Likewise.
412 (zero_extendqihi2): Likewise.
413 (zero_extendqisi2): New.
414 * config/msp430/constraints.md (N,O): New.
415 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
416
417 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
418
419 PR target/66954
420 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
421 to enum feature_priority and feature_list.
422 (fold_builtin_cpu): Add F_AES to enum processor_features
423 and isa_names_table.
424
425 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
426
427 PR driver/66737
428 * config/i386/linux-common.h (MPX_SPEC): Use linker option
429 for 64bit target only.
430
431 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
432
433 * config/nvptx/nvptx.c: Expand some comments.
434
435 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
436
437 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
438 (cortex_a53_advsimd): ...This.
439
440 2015-07-22 Richard Biener <rguenther@suse.de>
441
442 * genmatch.c (expr::gen_transform): Clarify error message
443 and display location.
444
445 2015-07-22 Richard Biener <rguenther@suse.de>
446
447 * genmatch.c (struct operand): Add location member.
448 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
449 constructors.
450 (struct simplify): Remove match_location and result_location
451 members.
452 (elsehwere): Adjust.
453
454 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
455
456 * config/mips/m5100.md: New file.
457 * config/mips/mips-cpus.def (m5100, m5101): Define.
458 * config/mips/mips-tables.opt: Regenerate.
459 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
460 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
461 -march=m5101 to -mips32r5.
462 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
463 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
464 !-msoft-float.
465 * config/mips/mips.md: Include m5100.md.
466 (processor): Add m5100.
467 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
468
469 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
470
471 * config/mips/mips-cpus.def (interaptiv): Define.
472 * config/mips/mips-tables.opt: Regenerate.
473 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
474 -mips32r2.
475 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
476 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
477
478 2015-07-22 Jiong Wang <jiong.wang@arm.com>
479
480 PR target/63521
481 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
482 (HONOR_REG_ALLOC_ORDER): Define.
483
484 2015-07-22 Richard Biener <rguenther@suse.de>
485
486 PR tree-optimization/66952
487 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
488 blocks we end up executing unconditionally reset all SSA
489 info such as range and alignment.
490 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
491 * tree-ssanames.c (reset_flow_sensitive_info): New function.
492
493 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
494
495 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
496 typo in attribute.
497
498 2015-07-22 Richard Biener <rguenther@suse.de>
499
500 * genmatch.c (parser::parse_result): Properly handle
501 match with result operands and conditions.
502
503 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
504
505 PR target/63870
506 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
507 Add qualifier_struct_load_store_lane_index.
508 (aarch64_types_loadstruct_lane_qualifiers): Use
509 qualifier_struct_load_store_lane_index for lane index argument for
510 last argument.
511 (aarch64_types_storestruct_lane_qualifiers): Ditto.
512 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
513 (aarch64_simd_expand_args): Add new argument describing mode of
514 builtin. Check lane bounds for arguments with
515 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
516 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
517 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
518 (aarch64_simd_expand_builtin): Handle arguments with
519 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
520 aarch64_simd_expand_args.
521 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
522 vst[234]_lane with BUILTIN_VALLDIF.
523 * config/aarch64/aarch64-simd.md:
524 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
525 endianness reversal on lane index.
526 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
527 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
528 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
529 (vec_store_lanesci_lane<mode>): Ditto.
530 (vec_store_lanesxi_lane<mode>): Ditto.
531 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
532 reversal of lane index.
533 (aarch64_ld3_lane<mode>): Ditto.
534 (aarch64_ld4_lane<mode>): Ditto.
535 (aarch64_st2_lane<mode>): Ditto.
536 (aarch64_st3_lane<mode>): Ditto.
537 (aarch64_st4_lane<mode>): Ditto.
538 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
539 to qmode. Add new mode parameter. Update uses.
540 (__LD3_LANE_FUNC): Ditto.
541 (__LD4_LANE_FUNC): Ditto.
542 (__ST2_LANE_FUNC): Ditto.
543 (__ST3_LANE_FUNC): Ditto.
544 (__ST4_LANE_FUNC): Ditto.
545
546 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
547
548 * doc/invoke.texi (Language Independent Options): Rename node to
549 Diagnostic Message Formatting Options.
550
551 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
552
553 PR ipa/66424.
554 * lra-remat.c (operand_to_remat): Prevent using insns with input
555 subregs processed separately by IRA.
556
557 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
558
559 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
560 straight loops.
561 (single_imm_use): Check for iterator node.
562 (num_imm_uses): Likewise.
563 * tree-ssa-operands.c (has_zero_uses_1): Delete.
564 (single_imm_use_1): Check for iterator node.
565
566 2015-07-21 Mike Frysinger <vapier@gentoo.org>
567 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
568
569 * configure.ac: Add check for new options in isl-0.15.
570 * config.in, configure: Rebuilt.
571 * graphite-blocking.c: Include <isl/constraint.h>
572 * graphite-interchange.c, graphite-poly.c: Likewise.
573 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
574 * graphite.c: Likewise.
575 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
576 <isl/union_set.h>.
577 * graphite-dependences.c: Include <isl/constraint.h>.
578 (max_number_of_out_dimensions): Returns isl_stat.
579 (extend_schedule_1): Likewise
580 (extend_schedule): Corresponding changes.
581 * graphite-optimize-isl.c: Include <isl/constraint.h> and
582 <isl/union_set.h>.
583 (getSingleMap): Change return type of isl_stat.
584 (optimize_isl): Conditionally use
585 isl_options_set_schedule_serialize_sccs.
586 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
587 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
588
589 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
590
591 PR target/66956
592 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
593 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
594
595 2015-07-21 Richard Biener <rguenther@suse.de>
596
597 PR tree-optimization/66948
598 * genmatch.c (capture_info::walk_match): Also recurse to
599 captures. Properly compute expr state from captures of
600 captures.
601 * match.pd: Add single-use guards to
602 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
603
604 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
605
606 * config/nvptx/mkoffload.c (process): Add static destructor call.
607
608 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
609
610 PR middle-end/66915
611 * match.pd (A - B -> A + (-B)): Don't allow folding
612 when type if a fixed-point type.
613
614 2015-07-20 DJ Delorie <dj@redhat.com>
615
616 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
617 (iorqi3_real): Likewise for set1.
618
619 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
620
621 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
622 for !TARGET_64BIT.
623
624 2015-07-20 Aditya Kumar <hiraditya@msn.com>
625
626 * graphite-isl-ast-to-gimple.c:
627 Refactor so that each function can access 'region'. This will help
628 maintain a parameter rename_map within a region.
629
630 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
631
632 * config/rs6000/rs6000.md (*lt0_disi): New.
633
634 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
635
636 PR target/66217
637 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
638 "available letters" comment.
639 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
640 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
641 and_2rld_operand): Delete.
642 (and_operand): Adjust.
643 (rotate_mask_operator): New.
644 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
645 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
646 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
647 extract_ME): Delete.
648 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
649 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
650 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
651 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
652 rs6000_emit_2insn_and): New.
653 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
654 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
655 includes_rldic_lshift_p, includes_rldicr_lshift_p,
656 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
657 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
658 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
659 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
660 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
661 rs6000_emit_2insn_and): New.
662 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
663 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
664 handling.
665 <NOT>: Don't fall through to next case.
666 <AND>: Handle the various rotate-and-mask cases directly.
667 <IOR>: Always cost as one insn.
668 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
669 (and<mode>3): Adjust expander for the new patterns.
670 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
671 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
672 (*and<mode>3_imm_dot_shifted): New.
673 (*and<mode>3_mask): Delete, rewrite as ...
674 (and<mode>3_mask): ... New.
675 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
676 (andsi3_internal0_nomc): Delete.
677 (*andsi3_internal6): Delete.
678 (*and<mode>3_2insn): New.
679 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
680 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
681 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
682 *insvdi_internal3): Delete.
683 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
684 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
685 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
686 *ior<mode>_mask): New.
687 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
688 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
689 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
690 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
691 Delete.
692 (ashr<mode>3): Delete expander.
693 (*ashr<mode>3): Rename to ...
694 (ashr<mode>3): ... This.
695 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
696 (*rotldi3_internal4, *rotldi3_internal5 and split,
697 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
698 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
699 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
700 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
701 (splitter for loading a mask): Adjust.
702 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
703
704 2015-07-20 Marek Polacek <polacek@redhat.com>
705
706 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
707 output_add_clobbers, output_added_clobbers_hard_reg_p,
708 gen_rtx_scratch): Remove declarations.
709
710 2015-07-20 Marek Polacek <polacek@redhat.com>
711
712 PR c++/55095
713 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
714
715 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
716
717 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
718 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
719
720 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
721
722 * combine.c (combine_simplify_rtx): Move simplification step
723 before various transformations/substitutions.
724
725 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
726
727 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
728 (struct int_traits): Likewise.
729
730 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
731
732 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
733 function to vmsdbgout_function_decl.
734
735 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
736
737 PR target/66922
738 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
739 from misaligned positions.
740 (ix86_expand_pinsr): Reject insertions to misaligned positions.
741
742 2015-07-18 Sebastian Pop <s.pop@samsung.com>
743
744 PR middle-end/46851
745 PR middle-end/60340
746 * Makefile.in: Removed omega.o.
747 * common.opt: Document flag fcheck-data-deps as deprecated.
748 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
749 its associated params: omega-max-vars, omega-max-geqs,
750 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
751 omega-max-keys, omega-eliminate-redundant-constraints.
752 * doc/loop.texi: Remove all the section on Omega.
753 * graphite-blocking.c: Include missing params.h: it used to be
754 included through tree-data-ref.h and omega.h.
755 * graphite-isl-ast-to-gimple.c: Same.
756 * graphite-optimize-isl.c: Same.
757 * graphite-sese-to-poly.c: Same.
758 * graphite.c: Same.
759 * omega.c: Remove.
760 * omega.h: Remove.
761 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
762 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
763 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
764 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
765 * passes.def: Remove pass_check_data_deps.
766 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
767 (dump_conflict_function): Same.
768 (dump_subscript): Same.
769 (print_direction_vector): Same.
770 (print_dir_vectors): Same.
771 (print_lambda_vector): Same.
772 (print_dist_vectors): Same.
773 (dump_data_dependence_relation): Same.
774 (dump_data_dependence_relations): Same.
775 (dump_dist_dir_vectors): Same.
776 (dump_ddrs): Same.
777 (init_omega_eq_with_af): Removed.
778 (omega_extract_distance_vectors): Removed.
779 (omega_setup_subscript): Removed.
780 (init_omega_for_ddr_1): Removed.
781 (init_omega_for_ddr): Removed.
782 (ddr_consistent_p): Removed.
783 (compute_affine_dependence): Do not use omega to check data
784 dependences.
785 (compute_data_dependences_for_bb): Removed.
786 (analyze_all_data_dependences): Removed.
787 (tree_check_data_deps): Removed.
788 * tree-data-ref.h: Do not include omega.h.
789 (compute_data_dependences_for_bb): Removed.
790 (tree_check_data_deps): Removed.
791 * tree-ssa-loop.c (pass_check_data_deps): Removed.
792 (make_pass_check_data_deps): Removed.
793 * tree-ssa-phiopt.c: Include params.h.
794 * tree-vect-data-refs.c: Same.
795 * tree-vect-slp.c: Same.
796
797 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
798
799 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
800 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
801 (mem->fpreg splitters): Ditto.
802 (general_operand->nonimmediate_operand splitter): Use explicit modes.
803 Disable DFmode for TARGET_64BIT.
804
805 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
806
807 PR target/66906
808 * config/i386/i386.c (ix86_expand_prologue): Replicate static
809 chain on the stack.
810
811 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
812
813 * config/nvptx/mkoffload.c (process): Constify host data.
814 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
815 Constify host data.
816 (generate_host_descr_file): Likewise.
817
818 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
819 Sebastian Pop <s.pop@samsung.com>
820
821 PR middle-end/61929
822 * graphite-dependences.c (add_pdr_constraints): Renamed
823 pdr->extent to pdr->subscript_sizes.
824 * graphite-interchange.c (build_linearized_memory_access): Add
825 back all gcc_assert's that the "isl_int to isl_val conversion"
826 patch has removed. Refactored.
827 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
828 * graphite-poly.c (new_poly_dr): Same.
829 (free_poly_dr): Same.
830 * graphite-poly.h (struct poly_dr): Same.
831 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
832 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
833 * graphite-scop-detection.h: Fix space.
834 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
835 back all gcc_assert's removed by a previous patch.
836 (wrap): Remove the_isl_ctx global variable that the same patch has
837 added.
838 (build_loop_iteration_domains): Same.
839 (add_param_constraints): Same.
840 (pdr_add_data_dimensions): Same. Refactored.
841 (build_poly_dr): Renamed extent to subscript_sizes.
842
843 2015-07-17 Marek Polacek <polacek@redhat.com>
844
845 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
846 * match.pd: ... here.
847
848 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
849
850 * config/nvptx/mkoffload.c (process): Constify target data.
851 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
852 Constify target data.
853 (generate_target_offloadend_file): Likewise.
854
855 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
856
857 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
858 to allow renaming of PHI arguments on edges incoming from outer
859 loop header, add corresponding check before start PHI iterator.
860 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
861 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
862 with true force_vectorize. Set-up dominator for outer loop too.
863 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
864 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
865 was marked with force_vectorize and has restricted cfg.
866 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
867 inner loop.
868 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
869 do peeling for outer loops.
870
871 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
872 Matthias Klose <doko@ubuntu.com>
873
874 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
875 build-sysroot, sysroot from the `Miscenalleous configure options' to
876 the `Directories' section and strip trailing `/' from with_sysroot.
877 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
878 * configure: Regenerated.
879
880 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
881
882 PR target/66824
883 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
884 (TARGET_HARD_DF_REGS): Ditto.
885 (TARGET_HARD_XF_REGS): Ditto.
886 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
887 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
888 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
889 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
890 (*movsf_internal): Add alternatives 16 and 17. Enable
891 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
892
893 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
894
895 PR rtl-optimization/66891
896 * calls.c (expand_call): Wrap precompute_register_parameters with
897 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
898
899 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
900
901 * config/nvptx/mkoffload.c (process): Constify mapping variables.
902 Define target data struct and initialize it.
903
904 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
905
906 PR rtl-optimization/66626
907 * ira.h (emit-rtl.h): Include.
908 (non_spilled_static_chain_regno_p): New.
909 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
910 unless it is non spilled static chain pseudo.
911 (assign_hard_rego): Spill memory profitable allocno unless it is
912 non spilled static chain pseudo.
913 (allocno_spill_priority_compare): Put non spilled static chain
914 pseudo at the end of sorted array.
915 (improve_allocation): Do nothing if we have static chain and
916 non-local goto.
917 (allocno__priority_compare_func): Put non spilled static chain
918 pseudo at the beginning of sorted array.
919 (move_spill_restore): Ignore non spilled static chain pseudo.
920 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
921 to non spilled static chain pseudo.
922 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
923 pseudo at the beginning of sorted array.
924 (spill_for): Spill non spilled static chain pseudo last.
925 * lra-constraints.c (lra_constraints): Remove static chain pseudo
926 check for equivalence.
927
928 2015-07-16 Martin Liska <mliska@suse.cz>
929
930 PR ipa/66896.
931 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
932 dst_ctx if it does not exist.
933
934 2015-07-16 Martin Liska <mliska@suse.cz>
935
936 * hash-set.h (remove): New function.
937 (iterator): New iteration class for hash_set.
938
939 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
940
941 * genattrtab.c (make_canonical): Add a file_location parameter.
942 Use fatal_at rather than fatal.
943 (get_attr_value): Likewise. Update call to make_canonical.
944 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
945 (make_internal_attr): Update calls accordingly.
946
947 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
948
949 * read-md.h (message_with_line, error_with_line): Delete.
950 * read-md.c (message_with_line, error_with_line): Delete.
951 * gensupport.h: Include read-md.h.
952 (md_rtx_info): New structure.
953 (read_md_rtx): Use it. Return a bool success value.
954 * gensupport.c (read_md_rtx): Likewise.
955 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
956 (main): Update after interface changes.
957 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
958 (main): Update after interface changes.
959 * genattrtab.c (insn_code_number): Delete.
960 (optimize_attrs): Add a max_insn_code parameter and use it instead
961 of insn_code_number.
962 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
963 Use *_at rather than *_with_line functions.
964 (gen_insn): Likewise.
965 (gen_delay): Likewise.
966 (gen_insn_reserv): Likewise.
967 (gen_bypass): Take an md_rtx_info rather than an rtx.
968 (main): Update after interface changes. Use a local max_insn_code
969 variable instead of insn_code_number.
970 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
971 an rtx. Use fatal_at rather than fatal.
972 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
973 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
974 (gen_absence_set, gen_final_absence_set, gen_automaton)
975 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
976 (main): Update after interface changes.
977 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
978 and code number.
979 (main): Update after interface changes.
980 * genconditions.c (main): Use new read_md_rtx interface.
981 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
982 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
983 (main): Update after interface changes.
984 * genemit.c (insn_code_number, insn_index_number): Delete.
985 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
986 Use fatal_at rather than fatal.
987 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
988 rather than fatal.
989 (gen_split): Likewise.
990 (main): Update after interface changes.
991 * genextract.c (line_no): Delete.
992 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
993 Update call to walk_rtx.
994 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
995 rather than message_with_line.
996 (walk_rtx): Add an md_rtx_info argument. Update call to
997 VEC_safe_set_locstr.
998 (main): Update after interface changes.
999 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
1000 and lineno. Use error_at rather than separate message_with_line
1001 calls and have_error assignments.
1002 (main): Update after interface changes.
1003 * genmddump.c (main): Use new read_md_rtx interface.
1004 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
1005 (main): Update after interface changes.
1006 * genoutput.c (next_code_number): Delete.
1007 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
1008 (gen_peephole, gen_expand, gen_split): Likewise.
1009 (note_constraint): Likewise. Use *_at rather than *_with_line
1010 functions.
1011 (main): Update after interface changes.
1012 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
1013 rtx and lineno.
1014 (main): Update after interface changes.
1015 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
1016 than an rtx and lineno.
1017 (process_define_constraint): Likewise.
1018 (process_define_register_constraint): Likewise.
1019 (main): Update after interface changes.
1020 * genrecog.c (next_insn_code, pattern_lineno): Delete.
1021 (validate_pattern): Replace top-level rtx with an md_rtx_info.
1022 Use *_at rather than *_with_line functions.
1023 (match_pattern_2): Likewise.
1024 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
1025 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
1026 Use *_at rather than *_with_line functions.
1027 * gentarget-def.c (add_insn): New function.
1028 (main): Use it. Use new read_md_rtx interface.
1029
1030 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1031
1032 * gensupport.h (compute_test_codes): Take a file_location rather
1033 than a line number.
1034 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
1035 rather than *_with_line functions.
1036 (process_define_predicate): Update call to compute_test_codes.
1037 * genpreds.c (validate_exp): Take a file_location rather than a
1038 line number. Use *_at functions rather than *_with_line functions.
1039 (process_define_predicate): Update call to validate_exp.
1040 (constraint_data): Replace lineno field with a file_location.
1041 (add_constraint): Take a file_location rather than a line number.
1042 Use *_at functions rather than *_with_line functions. Fix error
1043 message for address constraints. Update after changes to
1044 validate_exp, constraint_data and compute_test_codes.
1045 (process_define_constraint): Update accordingly.
1046 (process_define_register_constraint): Likewise.
1047
1048 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1049
1050 * genoutput.c (data): Use a file_location to record the source
1051 position.
1052 (nothing): Delete.
1053 (idata, idata_end): Remove initialization.
1054 (constraint_data): Replace lineno with a file_location.
1055 (output_insn_data): Update after changes to data.
1056 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
1057 (scan_operands): Likewise, using *_at rather than *_with_line
1058 functions.
1059 (process_template): Likewise.
1060 (validate_insn_alternatives): Likewise.
1061 (validate_insn_operands): Likewise.
1062 (validate_optab_operands): Likewise.
1063 (init_insn_for_nothing): Initialize idata and idata_end.
1064 (note_constraint): Update after changes to constraint_data,
1065 using at rather than with_line functions.
1066 (mdep_constraint_len): Take a file_location rather than a
1067 line number. Use at rather than with_line functions.
1068
1069 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1070
1071 * read-md.h (fatal_at): Declare.
1072 * read-md.c (fatal_at): New function.
1073 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
1074 to record the source position.
1075 (check_attr_test): Take a file_location instead of a line number.
1076 Use fatal_at instead of fatal.
1077 (check_attr_value): Update after above changes, using "at"
1078 rather than "with_line" reporting functions.
1079 (convert_set_attr_alternative): Likewise.
1080 (gen_attr): Likewise.
1081 (check_defs): Likewise. Don't assign to read_md_filename.
1082 (gen_insn): Update initialization after above changes.
1083 (gen_delay): Likewise.
1084 (write_insn_cases): Print the filename for a define_peephole.
1085 (gen_insn_reserv): Take a line number as argument and update
1086 the call to check_attr_test.
1087 (main): Pass a line number to gen_insn_reserv.
1088
1089 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1090
1091 * read-md.h (file_location): New structure.
1092 (directive_handler_t): Take a file_location rather than a line number.
1093 (message_at, error_at): Declare.
1094 (read_skip_construct): Delete.
1095 * read-md.c (message_with_line_1): Replace with...
1096 (message_at_1): ...this new function.
1097 (message_at, error_at): New functions.
1098 (message_with_line, error_with_line): Update to use message_at_1.
1099 (handle_enum): Take a file_location rather than a line number
1100 and use error_at for error reporting.
1101 (handle_include): Likewise.
1102 (read_skip_construct): Likewise. Make static.
1103 (handle_file): Update after above changes. Pass a file_location
1104 rather than a line number to handle_directive.
1105 * gensupport.c (queue_elem): Replace separate filename and lineno
1106 with a file_location.
1107 (queue_pattern): Replace filename and lineno arguments with a
1108 file_location. Update after change to queue_elem.
1109 (process_define_predicate): Replace lineno argument with a
1110 file_location and use error_at for error reporting. Update
1111 after above changes.
1112 (process_rtx): Likewise.
1113 (subst_pattern_match): Likewise.
1114 (get_alternatives_number): Likewise.
1115 (alter_predicate_for_insn): Likewise.
1116 (rtx_handle_directive): Likewise.
1117 (is_predicable): Update after above changes, using error_at rather
1118 than error_with_line.
1119 (has_subst_attribute): Likewise.
1120 (identify_predicable_attribute): Likewise.
1121 (alter_attrs_for_subst_insn): Likewise.
1122 (process_one_cond_exec): Likewise.
1123 (process_substs_on_one_elem): Likewise.
1124 (process_define_subst): Likewise.
1125 (check_define_attr_duplicates): Likewise.
1126 (read_md_rtx): Update after change to queue_elem.
1127
1128 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1129
1130 * genoutput.c (next_index_number): Delete.
1131 (data): Remove index_number.
1132 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1133 (main): Remove manipulation of next_index_number.
1134
1135 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1136
1137 * genattrtab.c (check_attr_value): Remove handling of null attrs.
1138 (make_canonical): Likewise.
1139
1140 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
1141
1142 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1143 instead of adjust_address_nv.
1144 (restore_stack_nonlocal): Likewise.
1145 (nonlocal_goto): Likewise.
1146
1147 2015-07-16 Tom de Vries <tom@codesourcery.com>
1148
1149 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1150 not have a corresponding loop header phi.
1151
1152 2015-07-16 Tom de Vries <tom@codesourcery.com>
1153
1154 * tree-parloops.c (create_loads_for_reductions): Handle case that
1155 reduction is unused.
1156
1157 2015-07-16 Richard Biener <rguenther@suse.de>
1158
1159 PR tree-optimization/66894
1160 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1161 about deriving NE_EXPR from truncated values.
1162
1163 2015-07-16 Martin Liska <mliska@suse.cz>
1164
1165 * alloc-pool.h
1166 (object_allocator): Add new class.
1167 (pool_allocator::initialize): Use the underlying class.
1168 (pool_allocator::allocate): Likewise.
1169 (pool_allocator::remove): Likewise.
1170 (operator new): A new generic allocator.
1171 * asan.c (struct asan_mem_ref): Remove unused members.
1172 (asan_mem_ref_new): Replace new operator with
1173 object_allocator::allocate.
1174 (free_mem_ref_resources): Change deallocation.
1175 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1176 with object_allocator.
1177 * config/sh/sh.c (add_constant): Replace new operator with
1178 object_allocator::allocate.
1179 (sh_reorg): Change call to a release method.
1180 * cselib.c (struct elt_list): Remove unused members.
1181 (new_elt_list): Replace new operator with
1182 object_allocator::allocate.
1183 (new_elt_loc_list): Likewise.
1184 (new_cselib_val): Likewise.
1185 (unchain_one_elt_list): Change delete operator with remove method.
1186 (unchain_one_elt_loc_list): Likewise.
1187 (unchain_one_value): Likewise.
1188 (cselib_finish): Release newly added static allocators.
1189 * cselib.h (struct cselib_val): Remove unused members.
1190 (struct elt_loc_list): Likewise.
1191 * df-problems.c (df_chain_alloc): Replace pool_allocator with
1192 object_allocator.
1193 * df-scan.c (struct df_scan_problem_data): Likewise.
1194 (df_scan_alloc): Likewise.
1195 * df.h (struct dataflow): Likewise.
1196 * dse.c (struct read_info_type): Likewise.
1197 (struct insn_info_type): Likewise.
1198 (struct dse_bb_info_type): Likewise.
1199 (struct group_info): Likewise.
1200 (struct deferred_change): Likewise.
1201 (get_group_info): Likewise.
1202 (delete_dead_store_insn): Likewise.
1203 (free_read_records): Likewise.
1204 (replace_read): Likewise.
1205 (check_mem_read_rtx): Likewise.
1206 (scan_insn): Likewise.
1207 (dse_step1): Likewise.
1208 (dse_step7): Likewise.
1209 * et-forest.c (struct et_occ): Remove unused members.
1210 (et_new_occ): Use allocate instead of new operator.
1211 (et_new_tree): Likewise.
1212 (et_free_tree): Call release method explicitly.
1213 (et_free_tree_force): Likewise.
1214 (et_free_pools): Likewise.
1215 (et_split): Use remove instead of delete operator.
1216 * et-forest.h (struct et_node): Remove unused members.
1217 * ipa-cp.c: Change pool_allocator to object_allocator.
1218 * ipa-inline-analysis.c: Likewise.
1219 * ipa-profile.c: Likewise.
1220 * ipa-prop.c: Likewise.
1221 * ipa-prop.h: Likewise.
1222 * ira-build.c (initiate_cost_vectors): Cast return value.
1223 (ira_allocate_cost_vector): Likewise.
1224 * ira-color.c (struct update_cost_record): Remove unused members.
1225 * lra-int.h (struct lra_live_range): Likewise.
1226 (struct lra_copy): Likewise.
1227 (struct lra_insn_reg): Likewise.
1228 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1229 * lra.c (new_insn_reg): Replace new operator with allocate method.
1230 (free_insn_regs): Same for operator delete.
1231 (finish_insn_regs): Release new static allocator.
1232 (finish_insn_recog_data): Likewise.
1233 (lra_free_copies): Replace delete operator with remove method.
1234 (lra_create_copy): Replace operator new with allocate method.
1235 (invalidate_insn_data_regno_info): Same for remove method.
1236 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1237 (free_debug_insn_changes): Replace delete operator with remove method.
1238 (replace_oldest_value_reg): Replace operator new with allocate method.
1239 (pass_cprop_hardreg::execute): Release new static variable.
1240 * sched-deps.c (sched_deps_init): Change pool_allocator to
1241 object_allocator.
1242 * sel-sched-ir.c: Likewise.
1243 * sel-sched-ir.h: Likewise.
1244 * stmt.c (expand_case): Likewise.
1245 (expand_sjlj_dispatch_table): Likewise.
1246 * tree-sra.c (struct access): Remove unused members.
1247 (struct assign_link): Likewise.
1248 (sra_deinitialize): Release newly added static pools.
1249 (create_access_1):Replace operator new with allocate method.
1250 (build_accesses_from_assign): Likewise.
1251 (create_artificial_child_access): Likewise.
1252 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1253 pool_allocator to object_allocator.
1254 * tree-ssa-pre.c: Likewise.
1255 * tree-ssa-reassoc.c: Likewise.
1256 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1257 * tree-ssa-strlen.c: Likewise.
1258 * tree-ssa-structalias.c: Likewise.
1259 * var-tracking.c (onepart_pool_allocate): New function.
1260 (unshare_variable): Use the newly added function.
1261 (variable_merge_over_cur): Likewise.
1262 (variable_from_dropped): Likewise.
1263 (variable_was_changed): Likewise.
1264 (set_slot_part): Likewise.
1265 (emit_notes_for_differences_1): Likewise.
1266 (vt_finalize): Release newly added static pools.
1267
1268 2015-07-16 Martin Jambor <mjambor@suse.cz>
1269
1270 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
1271 all uses. Fix two typos in its general comment.
1272 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
1273
1274 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
1275
1276 * config/i386/linux-common.h (LINK_MPX): New.
1277 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1278 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1279 indicating '-z bndplt' support by linker.
1280 * configure: Regenerate.
1281 * config.in: Regenerate.
1282
1283 2015-07-16 Richard Biener <rguenther@suse.de>
1284
1285 * fold-const.c (fold_widened_comparison): Remove.
1286 (fold_sign_changed_comparison): Likewise.
1287 (fold_comparison): Move widened and sign-changed comparison
1288 simplification ...
1289 * match.pd: ... to patterns here.
1290 * generic-match-head.c: Include target.h.
1291 * gimple-match-head.c: Likewise.
1292
1293 2015-07-16 Richard Biener <rguenther@suse.de>
1294
1295 * tree-ssa-dom.c (dom_valueize): New function.
1296 (record_temporary_equivalences): Also record equivalences
1297 for dominating stmts that have uses of equivalences we are
1298 about to record.
1299
1300 2015-07-16 Bin Cheng <bin.cheng@arm.com>
1301
1302 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1303 add_autoinc_candidates.
1304 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1305 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1306 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1307 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1308 Call new function.
1309 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1310 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1311 Remove parameter struct iv*. Call add_autoinc_candidates here.
1312 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1313 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1314 Call new function.
1315 (find_iv_candidates): Call new functions.
1316
1317 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
1318
1319 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1320 uninitialized-variable warning.
1321
1322 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
1323
1324 PR target/65249
1325 * config/sh/sh.md (movdi): Split simple reg move to two movsi
1326 when the destination is R0.
1327
1328 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
1329
1330 PR target/66866
1331 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1332 * config/i386/i386.c (ix86_expand_pextr): New function.
1333 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
1334 for non-lowpart subregs.
1335 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1336 (insv<mode>): Use SWI248 mode iterator.
1337 (insv<mode>_1): Ditto.
1338
1339 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1340 Sebastian Pop <s.pop@samsung.com>
1341
1342 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1343 iterator to use_stmt.
1344
1345 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1346 Sebastian Pop <s.pop@samsung.com>
1347
1348 * graphite-scop-detection.c (build_scops_1): Discard scops for
1349 which entry==exit.
1350
1351 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1352 Sebastian Pop <s.pop@samsung.com>
1353
1354 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1355 case of a return statement in scop.
1356
1357 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1358 Sebastian Pop <s.pop@samsung.com>
1359
1360 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1361 INTEGER_TYPE parameters.
1362 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1363 VECTOR_CST in scan_tree_for_params.
1364 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1365
1366 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1367
1368 * gimple-pretty-print.h: Don't include pretty-print.h.
1369 * tree-streamer.h: Don't include lto-streamer.h.
1370 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1371 * gimple-streamer-in.c: Remove redundant includes.
1372 * gimple-streamer-out.c: Likewise.
1373 * ipa-devirt.c: Likewise.
1374 * ipa-icf.c: Likewise.
1375 * ipa-inline-analysis.c: Likewise.
1376 * ipa-polymorphic-call.c: Likewise.
1377 * ipa-profile.c: Likewise.
1378 * ipa-prop.c: Likewise.
1379 * ipa-pure-const.c: Likewise.
1380 * lto-cgraph.c: Likewise.
1381 * lto-streamer-in.c: Likewise.
1382 * lto-streamer-out.c: Likewise.
1383 * lto-streamer.c: Likewise.
1384 * tree-streamer-in.c: Likewise.
1385 * tree-streamer-out.c: Likewise.
1386 * tree-streamer.c: Likewise.
1387
1388 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1389
1390 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1391 include input.h.
1392 * opts.c: Remove multiline #include comment.
1393
1394 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
1395
1396 * config/nvptx/mkoffload.c (process): Add C++ protection to
1397 emitted code.
1398
1399 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1400
1401 PR target/66854
1402 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1403 null before IEEE 128-bit floating point support patch.
1404
1405 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1406
1407 * simplify-rtx.c (simplify_ternary_operation): Add simplification
1408 for (!c) != {0,...,0} ? a : b for vector modes.
1409
1410 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1411 Martin Jambor <mjambor@suse.cz>
1412
1413 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1414 struct func_body_info* instead of struct ipa_node_params*, expecting
1415 fbi->info to be filled in. Replace throughout. Adjust call to
1416 ipa_load_from_parm_agg.
1417 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1418 instead of struct ipa_node_params*. Adjust calls to other functions
1419 so that they pass either fbi or fbi->info.
1420 (set_switch_stmt_execution_predicate): Likewise.
1421 (will_be_nonconstant_predicate): Likewise.
1422 (compute_bb_predicates): Likewise.
1423 (estimate_function_body_sizes): Move asserts earlier. Fill in
1424 struct func_body_info, replace parms_info with fbi.info. Adjust
1425 calls to functions that now accept struct func_body_info.
1426 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1427 (struct func_body_info): Likewise.
1428 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1429 remove static. Adjust callers.
1430 (ipa_load_from_parm_agg): Remove.
1431 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1432 (func_body_info): Likewise.
1433 (ipa_load_from_parm_agg): Adjust prototype.
1434
1435 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1436
1437 * gensupport.c (rtx_handle_directive): Adjust.
1438 * read-rtl.c (apply_iterators): Take vector to add rtxs to
1439 instead of expr list rtx.
1440 (add_define_attr_for_define_subst): Likewise.
1441 (add_define_subst_attr): Likewise.
1442 (read_subst_mapping): Likewise.
1443 (read_rtx): Likewise.
1444 * rtl.h (read_rtx): Adjust.
1445
1446 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1447
1448 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1449
1450 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1451
1452 PR target/58066
1453 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1454 (*tls_local_dynamic_base_64_<mode>): Ditto.
1455 (*tls_local_dynamic_base_64_largepic): Ditto.
1456 (tls_global_dynamic_64_<mode>): Update expander pattern.
1457 (tls_local_dynamic_base_64_<mode>): Ditto.
1458
1459 2015-07-15 Richard Biener <rguenther@suse.de>
1460
1461 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1462 and bool_var == 1 -> bool_var simplifications ...
1463 * match.pd: ... to patterns here. Factor out negate_expr_p
1464 cases from the A - B -> A + (-B) patterns as negate_expr_p
1465 predicate and add a -(A + B) -> (-B) - A pattern.
1466
1467 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1468
1469 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1470
1471 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
1472 Robert Suchanek <robert.suchanek@imgtec.com>
1473
1474 * config/mips/mips.c (mips_int_mask): New enum.
1475 (mips_shadow_set): Likewise.
1476 (int_mask): New variable.
1477 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1478 (machine_function): Add int_mask and use_shadow_register_set.
1479 (mips_attribute_table): Add attribute handlers for interrupt and
1480 use_shadow_register_set.
1481 (mips_interrupt_mask): New static function.
1482 (mips_handle_interrupt_attr): Likewise.
1483 (mips_handle_use_shadow_register_set_attr): Likewise.
1484 (mips_use_shadow_register_set): Change return type to enum
1485 mips_shadow_set. Add argument handling for use_shadow_register_set
1486 attribute.
1487 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1488 compare with mips_shadow_set enum.
1489 (mips_compute_frame_info): Add interrupt mask and
1490 use_shadow_register_set to per-function information structure.
1491 Add a stack slot for EPC unconditionally.
1492 (mips_expand_prologue): Compare use_shadow_register_set value
1493 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
1494 masked interrupt register but in EIC mode use K0 and save Cause in K0.
1495 EPC saved and restored unconditionally. Use PMODE_INSN macro when
1496 copying the stack pointer from the shadow register set.
1497 * config/mips/mips.h (SR_IM0): New define.
1498 * config/mips/mips.md (mips_rdpgpr): Rename to...
1499 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
1500 * doc/extend.texi (Declaring Attributes of Functions): Document
1501 optional arguments for interrupt and use_shadow_register_set
1502 attributes.
1503
1504 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1505
1506 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1507 interrupt attribute.
1508 (mips_expand_prologue): Disable the floating point unit in an ISR.
1509 * config/mips/mips.h (SR_COP1): New define.
1510
1511 2015-07-15 Richard Biener <rguenther@suse.de>
1512
1513 * genmatch.c (parser::peek, parser::peek_ident): Add argument
1514 to tell how many tokens to peek ahead (default 1).
1515 (parser::eat_token, parser::eat_ident): Return token consumed.
1516 (parser::parse_result): Parse new switch statement.
1517 * match.pd: Use case statements where appropriate.
1518
1519 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1520
1521 PR rtl-optimization/58066
1522 * calls.c (expand_call): Precompute register parameters before stack
1523 alignment is performed.
1524
1525 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1526
1527 PR rtl-optimization/66838
1528 * postreload.c (reload_cse_move2add): Also process
1529 CALL_INSN_FUNCTION_USAGE when resetting information of
1530 call-clobbered registers.
1531
1532 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1533 Cesar Philippidis <cesar@codesourcery.com>
1534 Chung-Lin Tang <cltang@codesourcery.com>
1535
1536 * config/nios2/constraints.md (U, v): New constraints.
1537 * config/nios2/predicates.md (rdprs_dcache_operand): New.
1538 (ldstex_memory_operand): New.
1539 * config/nios2/sync.md: New file.
1540 * config/nios2/nios2.md (unspecv): Add new builtin function
1541 UNSPECV codes.
1542 (rdprs, flushd, flushda, wrpie, eni): New patterns.
1543 (top-level): Include sync.md.
1544 * config/nios2/nios2.c (N2_FTYPES): Add function types for
1545 new builtins.
1546 (N2_BUILTINS): Add arch field setting, add new builtins.
1547 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1548 for arch field.
1549 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1550 Also handle ldex/stex/ldsex/stsex builtins.
1551 (nios2_expand_rdprs_builtin): New function.
1552 (nios2_expand_cache_builtin): New function.
1553 (nios2_expand_wrpie_builtin): New function.
1554 (nios2_expand_eni_builtin): New function.
1555 (nios2_expand_builtin): Add arch field handling and new builtin
1556 cases.
1557 * doc/extend.texi (Altera Nios II Built-in Functions): Document
1558 new builtins.
1559 * doc/md.texi (Machine Constraints): Document U and v constraints.
1560
1561 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1562 Cesar Philippidis <cesar@codesourcery.com>
1563 Chung-Lin Tang <cltang@codesourcery.com>
1564
1565 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1566 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1567 callee_save_reg_size and uses_anonymous_args fields.
1568 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1569 (nios2_create_cfa_notes): New function.
1570 (nios2_adjust_stack): New function for adjusting stack.
1571 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1572 Use nios2_adjust_stack.
1573 (nios2_expand_epilogue): Likewise.
1574 (nios2_expand_return): New function.
1575 (nios2_can_use_return_insn): Update for CDX pop.n usage.
1576 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1577 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1578 * config/nios2/nios2.md (return): Use nios2_expand_return.
1579
1580 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1581 Cesar Philippidis <cesar@codesourcery.com>
1582 Chung-Lin Tang <cltang@codesourcery.com>
1583
1584 * config/nios2/predicates.md (pop_operation): New.
1585 (ldwm_operation, stwm_operation): New.
1586 (nios2_hard_register_operand): New.
1587 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1588 (ldstwm_operation_p): Declare.
1589 (gen_ldstwm_peep): Declare.
1590 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1591 (base_reg_adjustment_p): New.
1592 (pop_operation_p): New.
1593 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1594 (nios2_ldstwm_regset_p): New.
1595 (ldstwm_operation_p): New.
1596 (gen_ldst): New.
1597 (nios2_ldst_parallel): New.
1598 (struct ldswm_operand): Declare.
1599 (compare_ldstwm_operands): New.
1600 (can_use_cdx_ldstw): New.
1601 (gen_ldstwm_peep): New.
1602 * config/nios2/nios2-ldstwm.sml: New.
1603 * config/nios2/nios2.md: Include ldstwm.md.
1604 * config/nios2/ldstwm.md: Generated.
1605
1606 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1607 Cesar Philippidis <cesar@codesourcery.com>
1608 Chung-Lin Tang <cltang@codesourcery.com>
1609
1610 * config/nios2/nios2.h (LABEL_ALIGN): Define.
1611 (REG_ALLOC_ORDER): Define.
1612 (ADJUST_REG_ALLOC_ORDER): Define.
1613 (HONOR_REG_ALLOC_ORDER): Define.
1614 (CDX_REG_P): Define.
1615 (ANDCLEAR_INT): Define.
1616 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1617 (nios2_label_align): Declare.
1618 (nios2_cdx_narrow_form_p): Declare.
1619 (nios2_adjust_reg_alloc_order): Declare.
1620 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1621 operation.
1622 (nios2_large_unspec_reloc_p): New function, split from...
1623 (nios2_legitimate_pic_operand_p): ...here.
1624 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1625 (nios2_print_operand_punct_valid_p): New.
1626 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
1627 (split_mem_address): New.
1628 (split_alu_insn): New.
1629 (cdxreg): New.
1630 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1631 (enum nios2_add_insn_kind): New.
1632 (nios2_add_insn_names, nios2_add_insn_narrow): New.
1633 (nios2_add_insn_classify): New.
1634 (nios2_add_insn_asm): New.
1635 (nios2_cdx_narrow_form_p): New.
1636 (label_align, min_labelno, max_labelno): New.
1637 (nios2_reorg): New.
1638 (nios2_label_align): New.
1639 (nios2_adjust_reg_alloc_order): New.
1640 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1641 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1642 * config/nios2/constraints.md (P): New constraint.
1643 * config/nios2/predicates.md (const_and_operand): New.
1644 (and_operand): New.
1645 (stack_memory_operand): New.
1646 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1647 (length): Update to use nios2_cdx_narrow_form_p().
1648 (type): Add new insn type values.
1649 (control, alu, st, ld, shift): Update insn reservations with
1650 new insn type values.
1651 (*high, *lo_sum): Define new insn patterns for constant generation.
1652 (movqi_internal, movhi_internal, movsi_internal): Reduce
1653 alternatives, update asm template to handle CDX variants, update
1654 type attributes.
1655 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1656 template, update type attributes.
1657 (extendhisi2, extendqi<mode>2): Likewise.
1658 (addsi3): Change to use function for asm string.
1659 (subsi3): Add CDX notation to asm template, update type attributes.
1660 (negsi3, one_cmplsi3): Likewise.
1661 (andsi3): New pattern, specialized from logical patterns.
1662 (<code>si3): Remove and case, combine alternatives, update asm
1663 template.
1664 (<shift_op>si3): Add CDX notation, update type attributes.
1665 (rotrsi3): Update type attribute.
1666 (*merge, extzv, insv): New insn patterns.
1667 (return): Change to define_expand.
1668 (simple_return): Add CDX notation, update type attributes.
1669 (indirect_jump): Add CDX notation.
1670 (jump): Update asm cases, update length attribute expression.
1671 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1672 (nios2_cbranch): Update asm cases and length attribute expression
1673 to handle CDX variants.
1674 (nios2_cmp<code>): Update asm template.
1675 (nop): Add CDX notation, update type attributes.
1676 (trap): Add CDX notation.
1677 (ctrapsi4): Update asm cases and length attribute expression to
1678 handle CDX variant.
1679 * doc/md.texi (Machine Constraints): Document P constraint.
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/nios2.h (SMALL_INT12): New macro.
1686 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1687 (nios2_valid_addr_expr_p): Use it.
1688 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1689 with implicit "io" instructions on R2.
1690 * config/nios2/constraints.md (w): New constraint.
1691 * config/nios2/predicates.md (ldstio_memory_operand): New.
1692 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1693 operand predicate and constraint.
1694 (ld<bh>io_signed, st<bhw>io>): Likewise.
1695 * doc/md.texi (Machine Constraints): Document w constraint.
1696
1697 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1698 Cesar Philippidis <cesar@codesourcery.com>
1699 Chung-Lin Tang <cltang@codesourcery.com>
1700
1701 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1702 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1703 Nios II architecture level.
1704 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1705 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1706 (OPTION_DEFAULT_SPECS): Define.
1707 (ASM_SPEC): Add -march= spec strings.
1708 * config/nios2/nios2.c (nios2_option_override): Check for
1709 conflicts involving new options.
1710 * config.gcc (nios2*-*-*): Support --with-arch=.
1711 * doc/invoke.texi (Option Summary, Nios II Options): Document
1712 -march=, -mbmx, and -mcdx.
1713
1714 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
1715
1716 PR rtl-optimization/66626
1717 * lra-constraints.c (lra_constraints): Prevent equivalence
1718 substitution for static chain pseudo in functions with nonlocal
1719 goto.
1720
1721 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1722
1723 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1724 (nios2_emit_stack_limit_check): Add size parameter. Handle
1725 -fstack-limit-symbol as well as -fstack-limit-register.
1726 (nios2_expand_prologue): Emit only a single stack limit check,
1727 even if multiple stack adjustments are required.
1728 (nios2_option_override): Diagnose unsupported combination of -fpic
1729 and -stack-limit-symbol.
1730
1731 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 * Makefile.in (top_srcdir): New.
1734 * configure.ac: Use AM_ZLIB.
1735 * configure: Regeneated.
1736
1737 2015-07-14 Matthias Klose <doko@ubuntu.com>
1738
1739 PR target/66840
1740 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1741
1742 2015-07-14 Richard Biener <rguenther@suse.de>
1743
1744 PR tree-optimization/66863
1745 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1746 what we record for conversion use stmt lhs inequalities.
1747
1748 2015-07-14 Richard Biener <rguenther@suse.de>
1749
1750 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1751 (decision_tree::gen_gimple): Likewise.
1752
1753 2015-07-14 Tom de Vries <tom@codesourcery.com>
1754
1755 * gcc.c (greater_than_spec_func): Declare forward.
1756 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1757 -ftree-parallelize-loops={0,1}.
1758 (static_spec_functions): Add greater_than_spec_func function with name
1759 "gt".
1760 (greater_than_spec_func): New function.
1761
1762 2015-07-14 Richard Biener <rguenther@suse.de>
1763
1764 * tree-ssa-dom.c (record_temporary_equivalences): Merge
1765 wideing type conversion case from record_equivalences_from_incoming_edge
1766 and use record_equality to record equivalences.
1767 (record_equivalences_from_incoming_edge): Call
1768 record_temporary_equivalences.
1769
1770 2015-07-14 Richard Biener <rguenther@suse.de>
1771
1772 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1773 (struct if_expr): New.
1774 (struct with_expr): Likewise.
1775 (is_a_helper): Add helpers for if_expr and with_expr.
1776 (struct simplify): Add simplify_kind enum and member. Remove
1777 ifexpr_vec member.
1778 (simplify::simplify): Adjust.
1779 (lower_commutative): Adjust.
1780 (lower_opt_convert): Likewise.
1781 (lower_cond): Likewise.
1782 (replace_id): Handle with_expr and if_expr.
1783 (lower_for): Adjust.
1784 (dt_simplify::gen_1): New recursive worker, split out from ...
1785 (dt_simplify::gen): ... here. Deal with if and with expansion
1786 recursively.
1787 (capture_info::capture_info): Take context argument
1788 (capture_info::walk_result): Only analyze specific result.
1789 (parser::parse_result): New function.
1790 (parser::parse_simplify): Adjust to parse ifs with then end
1791 else case.
1792 (parser::parse_if): Simplify.
1793 (parser::parse_pattern): Pass down simplify kind.
1794 * match.pd: Convert if structure to new syntax.
1795
1796 2015-07-13 Marek Polacek <polacek@redhat.com>
1797
1798 * rtl.c (rtx_equal_p_cb): Fix typo.
1799
1800 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
1801
1802 * omega.h: Don't include config.h, don't include params.h again if
1803 omega.h has already been included.
1804 * graphite-poly.h: Include sese.h.
1805 * graphite.c: Don't include sese.h, remove needless includes and
1806 minimize includes outside #ifdef HAVE_isl block.
1807 * graphite-blocking.c: Don't include sese.h, remove needless includes,
1808 and wrap entire file in #ifdef HAVE_isl
1809 * graphite-dependences.c: Likewise.
1810 * graphite-interchange.c: Likewise.
1811 * graphite-isl-ast-to-gimple.c: Likewise.
1812 * graphite-optimize-isl.c: Likewise.
1813 * graphite-poly.c: Likewise.
1814 * graphite-scop-detection.c: Likewise.
1815 * graphite-sese-to-poly.c: Likewise.
1816
1817 2015-07-13 Tom de Vries <tom@codesourcery.com>
1818
1819 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1820
1821 2015-07-13 Renlin Li <renlin.li@arm.com>
1822
1823 PR rtl/66556
1824 * simplify-rtx.c (simplify_const_relational_operation): Add
1825 side_effects_p checks.
1826
1827 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1828
1829 * bitmap.h: Fix double word typos.
1830 * builtins.c: Same.
1831 * calls.c: Same.
1832 * cfgloopmanip.c: Same.
1833 * cgraph.c: Same.
1834 * cgraph.h: Same.
1835 * cgraphclones.c: Same.
1836 * combine.c: Same.
1837 * config/aarch64/aarch64-protos.h: Same.
1838 * config/aarch64/aarch64.c: Same.
1839 * config/aarch64/aarch64.md: Same.
1840 * config/arm/arm.md: Same.
1841 * config/arm/arm1020e.md: Same.
1842 * config/arm/arm1026ejs.md: Same.
1843 * config/arm/arm926ejs.md: Same.
1844 * config/arm/fa526.md: Same.
1845 * config/arm/fa606te.md: Same.
1846 * config/arm/fa626te.md: Same.
1847 * config/arm/fa726te.md: Same.
1848 * config/arm/fmp626.md: Same.
1849 * config/darwin.c: Same.
1850 * config/epiphany/epiphany.c: Same.
1851 * config/frv/frv.c: Same.
1852 * config/ft32/ft32.c: Same.
1853 * config/gnu-user.h: Same.
1854 * config/h8300/constraints.md: Same.
1855 * config/i386/i386.c: Same.
1856 * config/i386/i386.md: Same.
1857 * config/iq2000/iq2000.md: Same.
1858 * config/mips/mips.c: Same.
1859 * config/mmix/mmix.md: Same.
1860 * config/moxie/moxie.c: Same.
1861 * config/nds32/nds32.md: Same.
1862 * config/pa/pa.h: Same.
1863 * config/rs6000/aix.h: Same.
1864 * config/rs6000/rs6000.h: Same.
1865 * config/sh/sh.c: Same.
1866 * config/tilegx/tilegx.md: Same.
1867 * config/tilepro/gen-mul-tables.cc: Same.
1868 * cse.c: Same.
1869 * dbxout.c: Same.
1870 * doc/invoke.texi: Same.
1871 * dse.c: Same.
1872 * dwarf2out.c: Same.
1873 * final.c: Same.
1874 * gcc.c: Same.
1875 * genmatch.c: Same.
1876 * gimplify.c: Same.
1877 * hash-table.h: Same.
1878 * internal-fn.c: Same.
1879 * ipa-cp.c: Same.
1880 * ipa-devirt.c: Same.
1881 * ipa-icf.c: Same.
1882 * ipa-icf.h: Same.
1883 * ipa-profile.c: Same.
1884 * ipa-prop.c: Same.
1885 * ipa-prop.h: Same.
1886 * ira.c: Same.
1887 * omp-low.c: Same.
1888 * reg-stack.c: Same.
1889 * regcprop.c: Same.
1890 * reorg.c: Same.
1891 * rtl.h: Same.
1892 * sbitmap.h: Same.
1893 * tree-eh.c: Same.
1894 * tree-inline.c: Same.
1895 * tree-sra.c: Same.
1896 * tree-ssa-dom.c: Same.
1897 * tree-ssa-loop-ivopts.c: Same.
1898 * tree-ssa-structalias.c: Same.
1899 * tree-ssa-tail-merge.c: Same.
1900 * tree-ssa-ter.c: Same.
1901 * tree-ssa-threadupdate.c: Same.
1902 * tree-ssa-uninit.c: Same.
1903 * tree-ssanames.c: Same.
1904 * tree-vect-loop-manip.c: Same.
1905 * tree-vrp.c: Same.
1906 * tree.c: Same.
1907 * valtrack.c: Same.
1908 * vec.h: Same.
1909
1910 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1911
1912 PR middle-end/66726
1913 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1914 tree_ssa_phiopt_worker): Call it.
1915
1916 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1917
1918 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1919 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1920 REG_EQUAL note.
1921
1922 2015-07-11 Marek Polacek <polacek@redhat.com>
1923
1924 PR middle-end/66353
1925 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1926 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1927 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1928 rather than bb_has_abnormal_call_pred.
1929 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1930 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1931 rather than bb_has_abnormal_call_pred.
1932
1933 2015-07-10 Anatoly Sokolov <aesok@post.ru>
1934
1935 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1936 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1937 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1938 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1939 v850_legitimate_address_p): New functions.
1940 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1941
1942 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
1943
1944 PR target/66819
1945 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1946 indirect sibcall with register arguments if register available
1947 for argument passing.
1948 (init_cumulative_args): Set cfun->machine->arg_reg_available
1949 to (cum->nregs > 0) or to true if function has a variable
1950 argument list.
1951 (function_arg_advance_32): Set cfun->machine->arg_reg_available
1952 to false if cum->nregs <= 0.
1953 * config/i386/i386.h (machine_function): Add arg_reg_available.
1954
1955 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1956
1957 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1958 and gen_higpart instead of gen_rtx_SUBREG.
1959 * config/i386/i386.md
1960 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1961 (read-modify peephole2): Use gen_lowpart instead of
1962 gen_rtx_SUBREG for operand 5.
1963
1964 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1965
1966 * config/tilepro/gen-mul-tables.cc (main): Change include list for
1967 generated files.
1968 * config/tilepro/mul-tables.c: Regenerate.
1969 * config/tilegx/mul-tables.c: Regenerate.
1970
1971 2015-07-10 Richard Biener <rguenther@suse.de>
1972
1973 * fold-const.c (distribute_bit_expr): Remove.
1974 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1975 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1976 to A & (B | C) and simplifying A << C1 << C2 to ...
1977 * match.pd: ... patterns here.
1978
1979 2015-07-10 Jiong Wang <jiong.wang@arm.com>
1980
1981 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1982 Mark mem as READONLY and NOTRAP for PIC symbol.
1983
1984 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1985
1986 * gimple-predict.h: New file.
1987 (gimple_predict_predictor, gimple_predict_set_predictor,
1988 gimple_predict_outcome, gimple_predict_set_outcome,
1989 gimple_build_predict): Relocate here.
1990 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1991 gimple_predict_outcome, gimple_predict_set_outcome): Move to
1992 gimple-predict.h.
1993 * gimple.c (gimple_build_predict): Move to gimple-predict.h
1994 * basic-block.h: Don't include cfghooks.h.
1995 * backend.h: Don't include predict.h.
1996 * cfghooks.h: Include predict.h.
1997 * gimple-pretty-print.c: Include gimple-predict.h.
1998 * gimplify.c: Likwise.
1999 * predict.c: Adjust includes.
2000 * tree-inline.c: Likewise.
2001 * asan.c: Likewise.
2002 * auto-inc-dec.c: Likewise.
2003 * auto-profile.c: Likewise.
2004 * bb-reorder.c: Likewise.
2005 * builtins.c: Likewise.
2006 * caller-save.c: Likewise.
2007 * calls.c: Likewise.
2008 * cfganal.c: Likewise.
2009 * cfgbuild.c: Likewise.
2010 * cfg.c: Likewise.
2011 * cfgcleanup.c: Likewise.
2012 * cfgexpand.c: Likewise.
2013 * cfghooks.c: Likewise.
2014 * cfgloopanal.c: Likewise.
2015 * cfgloop.c: Likewise.
2016 * cfgloopmanip.c: Likewise.
2017 * cfgrtl.c: Likewise.
2018 * cgraph.c: Likewise.
2019 * cgraphunit.c: Likewise.
2020 * combine.c: Likewise.
2021 * cprop.c: Likewise.
2022 * cse.c: Likewise.
2023 * dce.c: Likewise.
2024 * dojump.c: Likewise.
2025 * dse.c: Likewise.
2026 * except.c: Likewise.
2027 * expmed.c: Likewise.
2028 * expr.c: Likewise.
2029 * final.c: Likewise.
2030 * fold-const.c: Likewise.
2031 * function.c: Likewise.
2032 * fwprop.c: Likewise.
2033 * gcc-plugin.h: Likewise.
2034 * gcse.c: Likewise.
2035 * genattrtab.c: Likewise.
2036 * genemit.c: Likewise.
2037 * gengtype.c: Likewise.
2038 * genopinit.c: Likewise.
2039 * genoutput.c: Likewise.
2040 * genpreds.c: Likewise.
2041 * genrecog.c: Likewise.
2042 * gimple-fold.c: Likewise.
2043 * gimple-iterator.c: Likewise.
2044 * gimple-ssa-isolate-paths.c: Likewise.
2045 * gimple-ssa-strength-reduction.c: Likewise.
2046 * graph.c: Likewise.
2047 * graphite-blocking.c: Likewise.
2048 * graphite.c: Likewise.
2049 * graphite-dependences.c: Likewise.
2050 * graphite-interchange.c: Likewise.
2051 * graphite-isl-ast-to-gimple.c: Likewise.
2052 * graphite-optimize-isl.c: Likewise.
2053 * graphite-poly.c: Likewise.
2054 * graphite-scop-detection.c: Likewise.
2055 * graphite-sese-to-poly.c: Likewise.
2056 * haifa-sched.c: Likewise.
2057 * ifcvt.c: Likewise.
2058 * internal-fn.c: Likewise.
2059 * ipa-cp.c: Likewise.
2060 * ipa-profile.c: Likewise.
2061 * ipa-split.c: Likewise.
2062 * ipa-utils.c: Likewise.
2063 * ira-build.c: Likewise.
2064 * ira-color.c: Likewise.
2065 * ira-conflicts.c: Likewise.
2066 * ira-costs.c: Likewise.
2067 * ira-emit.c: Likewise.
2068 * ira-lives.c: Likewise.
2069 * jump.c: Likewise.
2070 * loop-doloop.c: Likewise.
2071 * loop-init.c: Likewise.
2072 * loop-invariant.c: Likewise.
2073 * loop-unroll.c: Likewise.
2074 * lower-subreg.c: Likewise.
2075 * lra-assigns.c: Likewise.
2076 * lra.c: Likewise.
2077 * lra-coalesce.c: Likewise.
2078 * lra-constraints.c: Likewise.
2079 * lra-lives.c: Likewise.
2080 * lto-cgraph.c: Likewise.
2081 * lto-streamer-in.c: Likewise.
2082 * mode-switching.c: Likewise.
2083 * modulo-sched.c: Likewise.
2084 * omp-low.c: Likewise.
2085 * optabs.c: Likewise.
2086 * passes.c: Likewise.
2087 * postreload.c: Likewise.
2088 * postreload-gcse.c: Likewise.
2089 * profile.c: Likewise.
2090 * recog.c: Likewise.
2091 * regstat.c: Likewise.
2092 * reload1.c: Likewise.
2093 * reorg.c: Likewise.
2094 * rtlanal.c: Likewise.
2095 * sched-ebb.c: Likewise.
2096 * sel-sched-ir.c: Likewise.
2097 * sese.c: Likewise.
2098 * shrink-wrap.c: Likewise.
2099 * simplify-rtx.c: Likewise.
2100 * stmt.c: Likewise.
2101 * store-motion.c: Likewise.
2102 * tracer.c: Likewise.
2103 * trans-mem.c: Likewise.
2104 * tree-call-cdce.c: Likewise.
2105 * tree-cfg.c: Likewise.
2106 * tree-cfgcleanup.c: Likewise.
2107 * tree-chkp.c: Likewise.
2108 * tree-complex.c: Likewise.
2109 * tree-eh.c: Likewise.
2110 * tree-if-conv.c: Likewise.
2111 * tree-loop-distribution.c: Likewise.
2112 * tree-outof-ssa.c: Likewise.
2113 * tree-parloops.c: Likewise.
2114 * tree-predcom.c: Likewise.
2115 * tree-pretty-print.c: Likewise.
2116 * tree-profile.c: Likewise.
2117 * tree-sra.c: Likewise.
2118 * tree-ssa.c: Likewise.
2119 * tree-ssa-coalesce.c: Likewise.
2120 * tree-ssa-dce.c: Likewise.
2121 * tree-ssa-dom.c: Likewise.
2122 * tree-ssa-forwprop.c: Likewise.
2123 * tree-ssa-ifcombine.c: Likewise.
2124 * tree-ssa-loop-ch.c: Likewise.
2125 * tree-ssa-loop-im.c: Likewise.
2126 * tree-ssa-loop-ivcanon.c: Likewise.
2127 * tree-ssa-loop-ivopts.c: Likewise.
2128 * tree-ssa-loop-manip.c: Likewise.
2129 * tree-ssa-loop-prefetch.c: Likewise.
2130 * tree-ssa-loop-unswitch.c: Likewise.
2131 * tree-ssa-math-opts.c: Likewise.
2132 * tree-ssa-phiopt.c: Likewise.
2133 * tree-ssa-pre.c: Likewise.
2134 * tree-ssa-reassoc.c: Likewise.
2135 * tree-ssa-sink.c: Likewise.
2136 * tree-ssa-tail-merge.c: Likewise.
2137 * tree-ssa-threadedge.c: Likewise.
2138 * tree-ssa-threadupdate.c: Likewise.
2139 * tree-switch-conversion.c: Likewise.
2140 * tree-tailcall.c: Likewise.
2141 * tree-vect-data-refs.c: Likewise.
2142 * tree-vect-loop.c: Likewise.
2143 * tree-vect-loop-manip.c: Likewise.
2144 * tree-vectorizer.c: Likewise.
2145 * tree-vrp.c: Likewise.
2146 * ubsan.c: Likewise.
2147 * value-prof.c: Likewise.
2148 * varasm.c: Likewise.
2149 * var-tracking.c: Likewise.
2150 * config/aarch64/aarch64-builtins.c: Likewise.
2151 * config/aarch64/aarch64.c: Likewise.
2152 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2153 * config/alpha/alpha.c: Likewise.
2154 * config/arc/arc.c: Likewise.
2155 * config/arm/arm.c: Likewise.
2156 * config/avr/avr.c: Likewise.
2157 * config/bfin/bfin.c: Likewise.
2158 * config/c6x/c6x.c: Likewise.
2159 * config/cr16/cr16.c: Likewise.
2160 * config/cris/cris.c: Likewise.
2161 * config/darwin.c: Likewise.
2162 * config/darwin-c.c: Likewise.
2163 * config/epiphany/epiphany.c: Likewise.
2164 * config/epiphany/mode-switch-use.c: Likewise.
2165 * config/epiphany/resolve-sw-modes.c: Likewise.
2166 * config/fr30/fr30.c: Likewise.
2167 * config/frv/frv.c: Likewise.
2168 * config/ft32/ft32.c: Likewise.
2169 * config/h8300/h8300.c: Likewise.
2170 * config/i386/i386.c: Likewise.
2171 * config/i386/winnt.c: Likewise.
2172 * config/ia64/ia64.c: Likewise.
2173 * config/iq2000/iq2000.c: Likewise.
2174 * config/lm32/lm32.c: Likewise.
2175 * config/m32c/m32c.c: Likewise.
2176 * config/m32r/m32r.c: Likewise.
2177 * config/m68k/m68k.c: Likewise.
2178 * config/mcore/mcore.c: Likewise.
2179 * config/mep/mep.c: Likewise.
2180 * config/microblaze/microblaze.c: Likewise.
2181 * config/mips/mips.c: Likewise.
2182 * config/mmix/mmix.c: Likewise.
2183 * config/mn10300/mn10300.c: Likewise.
2184 * config/moxie/moxie.c: Likewise.
2185 * config/msp430/msp430.c: Likewise.
2186 * config/nds32/nds32.c: Likewise.
2187 * config/nds32/nds32-cost.c: Likewise.
2188 * config/nds32/nds32-fp-as-gp.c: Likewise.
2189 * config/nds32/nds32-intrinsic.c: Likewise.
2190 * config/nds32/nds32-isr.c: Likewise.
2191 * config/nds32/nds32-md-auxiliary.c: Likewise.
2192 * config/nds32/nds32-memory-manipulation.c: Likewise.
2193 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2194 * config/nds32/nds32-predicates.c: Likewise.
2195 * config/nios2/nios2.c: Likewise.
2196 * config/nvptx/nvptx.c: Likewise.
2197 * config/pa/pa.c: Likewise.
2198 * config/pdp11/pdp11.c: Likewise.
2199 * config/rl78/rl78.c: Likewise.
2200 * config/rs6000/rs6000.c: Likewise.
2201 * config/rx/rx.c: Likewise.
2202 * config/s390/s390.c: Likewise.
2203 * config/sh/sh.c: Likewise.
2204 * config/sh/sh-mem.cc: Likewise.
2205 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2206 * config/sh/sh_treg_combine.cc: Likewise.
2207 * config/sparc/sparc.c: Likewise.
2208 * config/spu/spu.c: Likewise.
2209 * config/stormy16/stormy16.c: Likewise.
2210 * config/tilegx/tilegx.c: Likewise.
2211 * config/tilepro/tilepro.c: Likewise.
2212 * config/v850/v850.c: Likewise.
2213 * config/vax/vax.c: Likewise.
2214 * config/visium/visium.c: Likewise.
2215 * config/xtensa/xtensa.c: Likewise.
2216
2217 2015-07-10 Richard Biener <rguenther@suse.de>
2218
2219 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2220 (decision_tree::gen_gimple): Likewise.
2221 (decision_tree::gen_generic): Likewise.
2222
2223 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
2224
2225 PR target/66813
2226 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2227 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2228
2229 2015-07-10 Jakub Jelinek <jakub@redhat.com>
2230
2231 PR middle-end/66820
2232 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2233 or ORT_TASK contexts.
2234 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2235 is non-zero.
2236
2237 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2238
2239 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2240 above function.
2241
2242 2015-07-10 Tom de Vries <tom@codesourcery.com>
2243
2244 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2245 insert nit + 1 bound.
2246
2247 2015-07-10 Richard Biener <rguenther@suse.de>
2248
2249 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2250 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2251 (if_convertible_loop_p_1): For this always compute bb predicates.
2252 (if_convertible_loop_p): And free them.
2253
2254 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2255
2256 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2257 in dump message.
2258
2259 2015-07-10 Richard Biener <rguenther@suse.de>
2260
2261 PR tree-optimization/66823
2262 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2263 inverted predicate.
2264
2265 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
2266
2267 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2268 to handle mips[32|64]r3 and mips[32|64]r5.
2269
2270 2015-07-09 Jakub Jelinek <jakub@redhat.com>
2271
2272 PR middle-end/66633
2273 * tree-nested.c (get_static_chain): Or in a flag into
2274 info->static_chain_added.
2275 (get_frame_field, get_nonlocal_debug_decl): Likewise.
2276 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2277 2015-07-01 changes.
2278 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2279 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2280 add it to clauses.
2281
2282 PR tree-optimization/66718
2283 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2284 field.
2285 (vect_simd_lane_linear): New function.
2286 (vectorizable_simd_clone_call): Support using linear arguments for
2287 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2288
2289 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2290
2291 PR target/66821
2292 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2293
2294 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2295
2296 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2297 Use machine mode, not enum machine_mode in the prototype.
2298
2299 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2300 classify 128-bit floating point support.
2301 (FLOAT128_IBM_P): Likewise.
2302 (FLOAT128_VECTOR_P): Likewise.
2303 (FLOAT128_2REG_P): Likewise.
2304 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2305 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2306 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2307 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2308
2309 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2310 tests against TFmode/TDmode, since those modes do not use VSX
2311 addresses.
2312 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2313 support.
2314 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2315 tests against TFmode, etc.
2316 (invalid_e500_subreg): Add tests against IFmode/KFmode.
2317 (reg_offset_addressing_ok_p): Likewise.
2318 (rs6000_legitimate_offset_address_p): Likewise.
2319 (rs6000_legitimize_address): Likewise.
2320 (rs6000_legitimize_reload_address): Likewise.
2321 (rs6000_legitimate_address_p): Clean up tests against TFmode and
2322 TDmode to use the new helper macros, which will include IFmode and
2323 KFmode.
2324 (rs6000_emit_move): Likewise.
2325 (rs6000_darwin64_record_arg_recurse): Likewise.
2326 (print_operand): Likewise.
2327 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2328 that uses a single vector register as a vector and not as a
2329 floating point register in terms of the calling sequence.
2330 (rs6000_discover_homogeneous_aggregate): Likewise.
2331 (rs6000_return_in_memory): Likewise.
2332 (init_cumulative_args): Likewise.
2333 (rs6000_function_arg_boundary): Likewise.
2334 (rs6000_function_arg_advance_1): Likewise.
2335 (rs6000_function_arg): Likewise.
2336 (rs6000_pass_by_reference): Likewise.
2337 (rs6000_gimplify_va_arg): Likewise.
2338 (rs6000_secondary_reload_memory): Use machine_mode not enum
2339 machine mode.
2340 (rs6000_split_multireg_move): Use new helper macros.
2341 (spe_func_has_64bit_regs_p): Likewise.
2342 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2343 (output_toc): Use new helper macros.
2344 (rs6000_register_move_cost): Likewise.
2345 (rs6000_function_value): Add IEEE 128-bit floating point calling
2346 sequence support.
2347 (rs6000_libcall_value): Likewise.
2348 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2349 floating point support.
2350 (rs6000_vector_mode_supported_p): Likewise.
2351
2352 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
2353
2354 PR rtl-optimization/66782
2355 * lra-int.h (struct lra_insn_recog_data): Add comment about
2356 clobbered hard regs for arg_hard_regs.
2357 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2358 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2359 Add condition for processing used hard regs.
2360 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2361 Process clobbered hard regs.
2362
2363 2015-07-09 Michael Matz <matz@suse.de>
2364
2365 * genmatch.c (fprintf_indent): New function.
2366 (operand::gen_transform): Add indent parameter.
2367 (expr::gen_transform, c_expr::gen_transform,
2368 capture::gen_transform): Ditto and use fprintf_indent.
2369 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2370 (dt_operand::gen, dt_operand::gen_predicate,
2371 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2372 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2373 (decision_tree::gen_gimple): Adjust calls and indent generated
2374 code.
2375 (decision_tree::gen_generic): Ditto.
2376 (write_predicate): Ditto.
2377
2378 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2379
2380 PR target/66814
2381 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2382 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2383 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2384 {GENERAL,SSE,MMX}_REG_P where appropriate.
2385
2386 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2387
2388 * lto-streamer.h: Don't include target.h and alloc-pool.h.
2389 * builtins.c: Adjust includes.
2390 * gimple.c: Likewise.
2391 * ipa-icf.c: Likewise.
2392 * lto-opts.c: Likewise.
2393 * ipa-reference.c: Likewise.
2394 * lto-section-out.c: Likewise.
2395 * lto-streamer-in.c: Likewise.
2396 * lto-streamer-out.c: Likewise.
2397 * opts-global.c: Likewise.
2398 * symtab.c: Likewise.
2399 * tree-chkp.c: Likewise.
2400 * tree-ssa-live.c: Likewise.
2401 * tree-streamer-in.c: Likewise.
2402 * tree-streamer-out.c: Likewise.
2403 * config/darwin.c: Likewise.
2404 * config/i386/winnt.c: Likewise.
2405
2406 2015-07-09 Richard Biener <rguenther@suse.de>
2407
2408 * genmatch.c (struct expr): Add force_single_use flag.
2409 (expr::expr): Add copy constructor.
2410 (capture_info::walk_match): Gather force_single_use captures.
2411 (expr::gen_transform): Use possibly NULLified sequence.
2412 (dt_simplify::gen): Apply single-use restrictions by NULLifying
2413 seq if any constrained expr is not single-use.
2414 (parser::parse_expr): Refactor to allow multiple flags. Handle
2415 's' flag to force an expression have a single-use if the pattern
2416 simplifies to more than one statement.
2417 * match.pd: Convert most single_use conditionals to :s flags.
2418
2419 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2420
2421 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2422 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2423 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2424
2425 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2426
2427 * flags.h: Don't include flag-types.h or options.h.
2428 * opts-common.c: Adjust includes.
2429 * opts-global.c: Likewise.
2430 * common/config/epiphany/epiphany-common.c: Likewise.
2431
2432 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2433
2434 PR target/66818
2435 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2436 for IA MCU.
2437
2438 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2439
2440 PR target/66817
2441 * config/i386/i386.c (ix86_return_in_memory): Return true
2442 if int_size_in_bytes returns negative for IA MCU.
2443
2444 2015-07-09 Marek Polacek <polacek@redhat.com>
2445
2446 PR tree-optimization/66718
2447 * Makefile.in (OBJS): Add gimple-laddress.o.
2448 * passes.def: Schedule pass_laddress.
2449 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2450 * tree-pass.h (make_pass_laddress): Declare.
2451 * gimple-laddress.c: New file.
2452
2453 2015-07-09 Richard Biener <rguenther@suse.de>
2454
2455 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2456
2457 2015-07-09 Richard Biener <rguenther@suse.de>
2458
2459 PR tree-optimization/66807
2460 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2461
2462 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
2463
2464 * function.c (stack_protect_epilogue): Use if rather than switch for
2465 check targetm.have_stack_protect_test.
2466
2467 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2468
2469 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2470 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2471 * config/arc/arc.h: Likewise.
2472 * config/arm/arm.h: Likewise.
2473 * config/bfin/bfin.h: Likewise.
2474 * config/epiphany/epiphany.h: Likewise.
2475 * config/frv/frv.h: Likewise.
2476 * config/ia64/ia64.h: Likewise.
2477 * config/iq2000/iq2000.h: Likewise.
2478 * config/lm32/lm32.h: Likewise.
2479 * config/m32r/m32r.h: Likewise.
2480 * config/mcore/mcore.h: Likewise.
2481 * config/mep/mep.h: Likewise.
2482 * config/microblaze/microblaze.h: Likewise.
2483 * config/mips/mips.h: Likewise.
2484 * config/mmix/mmix.h: Likewise.
2485 * config/mn10300/mn10300.h: Likewise.
2486 * config/nds32/nds32.h: Likewise.
2487 * config/nios2/nios2.h: Likewise.
2488 * config/pa/pa.h: Likewise.
2489 * config/rl78/rl78.h: Likewise.
2490 * config/sh/sh.h: Likewise.
2491 * config/sparc/sparc.h: Likewise.
2492 * config/stormy16/stormy16.h: Likewise.
2493 * config/tilegx/tilegx.h: Likewise.
2494 * config/tilepro/tilepro.h: Likewise.
2495 * config/v850/v850.h: Likewise.
2496 * config/xtensa/xtensa.h: Likewise.
2497 * doc/tm.texi: Regenerate.
2498 * doc/tm.texi.in: Adjust.
2499 * combine.c (simplify_set): Likewise.
2500 (simplify_comparison): Likewise.
2501 * expr.c (store_constructor): Likewise.
2502 * internal-fn.c (expand_arith_overflow): Likewise.
2503 * reload.c (push_reload): Likewise.
2504 (find_reloads): Likewise.
2505 (find_reloads_subreg_address): Likewise.
2506 * reload1.c (eliminate_regs_1): Likewise.
2507 * rtlanal.c (nonzero_bits1): Likewise.
2508 (num_sign_bit_copies1): Likewise.
2509 * simplify-rtx.c (simplify_truncation): Likewise.
2510
2511 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2512
2513 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2514 of AUTO_INC_DEC with the preprocessor.
2515 * combine.c (combine_instructions): Likewise.
2516 (can_combine_p): Likewise.
2517 (try_combine): Likewise.
2518 * emit-rtl.c (try_split): Likewise.
2519 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2520 * lower-subreg.c (resolve_simple_move): Likewise.
2521 * lra.c (update_inc_notes): Likewise.
2522 * recog.c (asm_operand_ok): Likewise.
2523 (constrain_operands): Likewise.
2524 * regrename.c (scan_rtx_address): Likewise.
2525 * reload.c (update_auto_inc_notes): Likewise.
2526 (reg_inc_found_and_valid_p): Likewise.
2527 * reload1.c (reload): Likewise.
2528 (emit_input_reload_insns): Likewise.
2529 (delete_output_reload): Likewise.
2530 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2531 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2532
2533 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2534
2535 * rtl.h: Always define AUTO_INC_DEC.
2536 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2537 * combine.c (combine_instructions): Likewise.
2538 (can_combine_p): Likewise.
2539 (try_combine): Likewise.
2540 * emit-rtl.c (try_split): Likewise.
2541 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2542 * lower-subreg.c (resolve_simple_move): Likewise.
2543 * lra.c (update_inc_notes): Likewise.
2544 * recog.c (asm_operand_ok): Likewise.
2545 (constrain_operands): Likewise.
2546 * regrename.c (scan_rtx_address): Likewise.
2547 * reload.c (update_auto_inc_notes): Likewise.
2548 (find_equiv_reg): Likewise.
2549 * reload1.c (reload): Likewise.
2550 (reload_as_needed): Likewise.
2551 (choose_reload_regs): Likewise.
2552 (emit_input_reload_insns): Likewise.
2553 (delete_output_reload): Likewise.
2554 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2555 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2556
2557 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2558
2559 * combine.c (can_combine_def_p): Don't check the value of
2560 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2561 (combinable_i3pat): Likewise.
2562 (mark_used_regs_combine): Likewise.
2563 * regrename.c (rename_chains): Likewise.
2564 * reload.c (find_reloads_address): Likewise.
2565 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2566
2567 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2568
2569 * combine.c (update_rsp_from_reg_equal): Don't check if
2570 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2571 (reg_nonzero_bits_for_combine): Likewise.
2572 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2573 1.
2574 * config/frv/frv.h: Likewise.
2575 * config/lm32/lm32.h: Likewise.
2576 * config/mep/mep.h: Likewise.
2577 * config/mips/mips.h: Likewise.
2578 * config/rs6000/rs6000.h: Likewise.
2579 * config/sh/sh.h: Likewise.
2580 * config/tilegx/tilegx.h (enum reg_class): Likewise.
2581 * config/tilepro/tilepro.h: Likewise.
2582 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2583 * doc/tm.texi: Regenerate.
2584 * doc/tm.texi.in: Adjust.
2585 * rtlanal.c (nonzero_bits1): Likewise.
2586
2587 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2588
2589 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2590 with the preprocessor.
2591 (combine_instructions): Likewise.
2592 (try_combine): Likewise.
2593 (subst): Likewise.
2594 (distribute_notes): Likewise.
2595
2596 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2597
2598 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2599 defined.
2600 (simplify_set): Likewise.
2601 * cse.c (cse_insn): Likewise.
2602 * fold-const.c (fold_single_bit_test): Likewise.
2603 (fold_unary_loc): Likewise.
2604 * postreload.c (reload_cse_simplify_set): Likewise.
2605 (reload_cse_simplify_operands): Likewise.
2606
2607 2015-07-08 Jiong Wang <jiong.wang@arm.com>
2608
2609 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2610 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2611
2612 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2613
2614 PR target/66746
2615 * config/i386/x86intrin.h: Include <adxintrin.h> even if
2616 __iamcu__ is defined.
2617
2618 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2619
2620 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2621
2622 2015-07-08 Iain Sandoe <iain@codesourcery.com>
2623
2624 PR target/66523
2625 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2626 names from preservation.
2627
2628 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2629
2630 PR target/66806
2631 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2632 change for IAMCU.
2633 (function_arg_advance_32): Don't pass vectors in registers for
2634 IAMCU.
2635 (function_arg_32): Likewise.
2636 (ix86_return_in_memory): Don't return vectors in registers for
2637 IAMCU.
2638
2639 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
2640
2641 PR middle-end/66334
2642 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2643 hard regno live at the start of BB with incoming abnormal edges.
2644 * lra-lives.c (process_bb_lives): Ditto.
2645
2646 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2647
2648 PR libgomp/65099
2649 * config/nvptx/mkoffload.c (main): Create an offload image only in
2650 64-bit configurations.
2651
2652 2015-07-08 Martin Liska <mliska@suse.cz>
2653
2654 PR bootstrap/66744
2655 * tree-sra.c (create_access_1): Call ctor without brackets.
2656 (create_artificial_child_access): Likewise.
2657
2658 2015-07-08 Richard Biener <rguenther@suse.de>
2659
2660 PR tree-optimization/66793
2661 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2662 Properly split the block after stmts ending it.
2663
2664 2015-07-08 Richard Biener <rguenther@suse.de>
2665
2666 PR tree-optimization/66794
2667 * passes.c (execute_function_todo): Assert that post-dominators
2668 are not computed.
2669 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2670 Free post-dominators.
2671
2672 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2673
2674 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2675 with early exit.
2676
2677 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2678
2679 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2680 more than or equal 8 and less than 32 when optimizing for size.
2681
2682 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2683
2684 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2685 COSTS_N_INSNS (1) and increment it appropriately throughout the
2686 function.
2687
2688 2015-07-08 Richard Biener <rguenther@suse.de>
2689
2690 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2691
2692 2015-07-08 Alan Modra <amodra@gmail.com>
2693
2694 * target.def (rtx_costs): Remove "code" param, add "mode".
2695 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2696 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
2697 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2698 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
2699 call. Track mode when given in rtx.
2700 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
2701 (default_address_cost): Pass Pmode to rtx_cost.
2702 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2703 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2704 with NULL set.
2705 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
2706 (notreg_cost): Add mode param. Use it.
2707 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
2708 mode param and pass to set_src_cost. Update all calls.
2709 (hash_scan_set): Formatting.
2710 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2711 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2712 * hooks.h: Ditto.
2713 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2714 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2715 emit_store_flag): Update set_src_cost and rtx_cost calls.
2716 * auto-inc-dec.c (attempt_change): Likewise.
2717 * calls.c (precompute_register_parameters): Likewise.
2718 * combine.c (expand_compound_operation, make_extraction,
2719 force_to_mode, distribute_and_simplify_rtx): Likewise.
2720 * dojump.c (prefer_and_bit_test): Likewise.
2721 * dse.c (find_shift_sequence): Likewise.
2722 * expr.c (compress_float_constant): Likewise.
2723 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2724 * ifcvt.c (noce_try_sign_mask): Likewise.
2725 * loop-doloop.c (doloop_optimize): Likewise.
2726 * loop-invariant.c (create_new_invariant): Likewise.
2727 * lower-subreg.c (shift_cost, compute_costs): Likewise.
2728 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2729 lshift_cheap_p): Likewise.
2730 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2731 try_replace_in_use, reload_cse_move2add): Likewise.
2732 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2733 Likewise.
2734 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2735 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2736 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2737 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2738 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2739 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
2740 to rtx_cost calls.
2741 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2742 * config/arc/arc.c (arc_rtx_costs): Likewise.
2743 * config/arm/arm.c (arm_rtx_costs): Likewise.
2744 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2745 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2746 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2747 * config/cris/cris.c (cris_rtx_costs): Likewise.
2748 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2749 * config/frv/frv.c (frv_rtx_costs): Likewise.
2750 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2751 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2752 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2753 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2754 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2755 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2756 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2757 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2758 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2759 * config/mep/mep.c (mep_rtx_cost): Likewise.
2760 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2761 * config/mips/mips.c (mips_rtx_costs): Likewise.
2762 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2763 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2764 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2765 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2766 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2767 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2768 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2769 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2770 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2771 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2772 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2773 * config/s390/s390.c (s390_rtx_costs): Likewise.
2774 * config/sh/sh.c (sh_rtx_costs): Likewise.
2775 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2776 * config/spu/spu.c (spu_rtx_costs): Likewise.
2777 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2778 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2779 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2780 * config/v850/v850.c (v850_rtx_costs): Likewise.
2781 * config/vax/vax.c (vax_rtx_costs): Likewise.
2782 * config/visium/visium.c (visium_rtx_costs): Likewise.
2783 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2784 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2785 "code" param, and pass as outer_code to first rtx_cost call. Pass
2786 mode to rtx_cost calls.
2787 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2788 calls.
2789 (aarch64_rtx_costs_wrapper): Update.
2790 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2791 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2792 rtx_cost calls.
2793 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2794 and rtx_cost calls.
2795 (avr_operand_rtx_cost): Similarly.
2796 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2797 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2798 * config/mips/mips.c (mips_stack_address_p): Comment typo.
2799 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2800 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2801 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2802 rtx_cost.
2803 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2804 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2805 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2806 * doc/tm.texi: Regenerate.
2807
2808 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
2809
2810 * tree-core.h: Include symtab.h.
2811 * rtl.h: Include hard-reg-set.h but not flags.h.
2812 (HARD_CONST): Remove condition compilation involving HARD_CONST since
2813 hard-reg-set.h is always included.
2814 * regs.h: Don't include hard-reg-set.h or rtl.h.
2815 * cfg.h: Include dominance.h.
2816 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2817 * backend.h: New. Aggregate commonly used backend header files.
2818 * gimple-ssa.h: Don't include tree-hasher.h.
2819 * ssa.h: New. Aggregate commonly used SSA header files.
2820 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2821 * sel-sched-ir.h: Flatten includes.
2822 * lra-int.h: Flatten completely.
2823 * sel-sched-dump.h: Flatten includes.
2824 * ira-int.h: Flatten includes.
2825 * gimple-streamer.h: Remove all includes.
2826 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2827 * resource.h: Flatten hard-reg-set.h and df.h.
2828 * sched-int.h: Flatten insn-arrt.h and df.h.
2829 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2830 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2831 * genattrtab.c (write_header): Adjust generated includes.
2832 * genautomata.c (main): Likewise.
2833 * genconditions.c (write-header): Likewise.
2834 * genemit.c (main): Likewise.
2835 * gengtype.c (open_base_files): Likewise.
2836 * genopinit.c (main): Likewise.
2837 * genoutput.c (output_prologue): Likewise.
2838 * genpeep.c (main): Likewise.
2839 * genpreds.c (write_insn_preds_c): Likewise.
2840 * genrecog.c (write_header): Likewise.
2841 * alias.c: Adjust includes.
2842 * asan.c: Likewise.
2843 * attribs.c: Likewise.
2844 * auto-inc-dec.c: Likewise.
2845 * auto-profile.c: Likewise.
2846 * bb-reorder.c: Likewise.
2847 * bt-load.c: Likewise.
2848 * builtins.c: Likewise.
2849 * caller-save.c: Likewise.
2850 * calls.c: Likewise.
2851 * ccmp.c: Likewise.
2852 * cfg.c: Likewise.
2853 * cfganal.c: Likewise.
2854 * cfgbuild.c: Likewise.
2855 * cfgcleanup.c: Likewise.
2856 * cfgexpand.c: Likewise.
2857 * cfghooks.c: Likewise.
2858 * cfgloop.c: Likewise.
2859 * cfgloopanal.c: Likewise.
2860 * cfgloopmanip.c: Likewise.
2861 * cfgrtl.c: Likewise.
2862 * cgraph.c: Likewise.
2863 * cgraphbuild.c: Likewise.
2864 * cgraphclones.c: Likewise.
2865 * cgraphunit.c: Likewise.
2866 * cilk-common.c: Likewise.
2867 * combine-stack-adj.c: Likewise.
2868 * combine.c: Likewise.
2869 * compare-elim.c: Likewise.
2870 * convert.c: Likewise.
2871 * coverage.c: Likewise.
2872 * cppbuiltin.c: Likewise.
2873 * cprop.c: Likewise.
2874 * cse.c: Likewise.
2875 * cselib.c: Likewise.
2876 * data-streamer-in.c: Likewise.
2877 * data-streamer-out.c: Likewise.
2878 * data-streamer.c: Likewise.
2879 * dbxout.c: Likewise.
2880 * dce.c: Likewise.
2881 * ddg.c: Likewise.
2882 * debug.c: Likewise.
2883 * df-core.c: Likewise.
2884 * df-problems.c: Likewise.
2885 * df-scan.c: Likewise.
2886 * dfp.c: Likewise.
2887 * dojump.c: Likewise.
2888 * dominance.c: Likewise.
2889 * domwalk.c: Likewise.
2890 * double-int.c: Likewise.
2891 * dse.c: Likewise.
2892 * dumpfile.c: Likewise.
2893 * dwarf2asm.c: Likewise.
2894 * dwarf2cfi.c: Likewise.
2895 * dwarf2out.c: Likewise.
2896 * emit-rtl.c: Likewise.
2897 * et-forest.c: Likewise.
2898 * except.c: Likewise.
2899 * explow.c: Likewise.
2900 * expmed.c: Likewise.
2901 * expr.c: Likewise.
2902 * final.c: Likewise.
2903 * fixed-value.c: Likewise.
2904 * fold-const.c: Likewise.
2905 * function.c: Likewise.
2906 * fwprop.c: Likewise.
2907 * gcc-plugin.h: Likewise.
2908 * gcse-common.c: Likewise.
2909 * gcse.c: Likewise.
2910 * generic-match-head.c: Likewise.
2911 * ggc-page.c: Likewise.
2912 * gimple-builder.c: Likewise.
2913 * gimple-expr.c: Likewise.
2914 * gimple-fold.c: Likewise.
2915 * gimple-iterator.c: Likewise.
2916 * gimple-low.c: Likewise.
2917 * gimple-match-head.c: Likewise.
2918 * gimple-pretty-print.c: Likewise.
2919 * gimple-ssa-isolate-paths.c: Likewise.
2920 * gimple-ssa-strength-reduction.c: Likewise.
2921 * gimple-streamer-in.c: Likewise.
2922 * gimple-streamer-out.c: Likewise.
2923 * gimple-walk.c: Likewise.
2924 * gimple.c: Likewise.
2925 * gimplify-me.c: Likewise.
2926 * gimplify.c: Likewise.
2927 * godump.c: Likewise.
2928 * graph.c: Likewise.
2929 * graphite-blocking.c: Likewise.
2930 * graphite-dependences.c: Likewise.
2931 * graphite-interchange.c: Likewise.
2932 * graphite-isl-ast-to-gimple.c: Likewise.
2933 * graphite-optimize-isl.c: Likewise.
2934 * graphite-poly.c: Likewise.
2935 * graphite-scop-detection.c: Likewise.
2936 * graphite-sese-to-poly.c: Likewise.
2937 * graphite.c: Likewise.
2938 * haifa-sched.c: Likewise.
2939 * hw-doloop.c: Likewise.
2940 * ifcvt.c: Likewise.
2941 * init-regs.c: Likewise.
2942 * internal-fn.c: Likewise.
2943 * ipa-chkp.c: Likewise.
2944 * ipa-comdats.c: Likewise.
2945 * ipa-cp.c: Likewise.
2946 * ipa-devirt.c: Likewise.
2947 * ipa-icf-gimple.c: Likewise.
2948 * ipa-icf.c: Likewise.
2949 * ipa-inline-analysis.c: Likewise.
2950 * ipa-inline-transform.c: Likewise.
2951 * ipa-inline.c: Likewise.
2952 * ipa-polymorphic-call.c: Likewise.
2953 * ipa-profile.c: Likewise.
2954 * ipa-prop.c: Likewise.
2955 * ipa-pure-const.c: Likewise.
2956 * ipa-ref.c: Likewise.
2957 * ipa-reference.c: Likewise.
2958 * ipa-split.c: Likewise.
2959 * ipa-utils.c: Likewise.
2960 * ipa-visibility.c: Likewise.
2961 * ipa.c: Likewise.
2962 * ira-build.c: Likewise.
2963 * ira-color.c: Likewise.
2964 * ira-conflicts.c: Likewise.
2965 * ira-costs.c: Likewise.
2966 * ira-emit.c: Likewise.
2967 * ira-lives.c: Likewise.
2968 * ira.c: Likewise.
2969 * jump.c: Likewise.
2970 * langhooks.c: Likewise.
2971 * lcm.c: Likewise.
2972 * loop-doloop.c: Likewise.
2973 * loop-init.c: Likewise.
2974 * loop-invariant.c: Likewise.
2975 * loop-iv.c: Likewise.
2976 * loop-unroll.c: Likewise.
2977 * lower-subreg.c: Likewise.
2978 * lra-assigns.c: Likewise.
2979 * lra-coalesce.c: Likewise.
2980 * lra-constraints.c: Likewise.
2981 * lra-eliminations.c: Likewise.
2982 * lra-lives.c: Likewise.
2983 * lra-remat.c: Likewise.
2984 * lra-spills.c: Likewise.
2985 * lra.c: Likewise.
2986 * lto-cgraph.c: Likewise.
2987 * lto-compress.c: Likewise.
2988 * lto-opts.c: Likewise.
2989 * lto-section-in.c: Likewise.
2990 * lto-section-out.c: Likewise.
2991 * lto-streamer-in.c: Likewise.
2992 * lto-streamer-out.c: Likewise.
2993 * lto-streamer.c: Likewise.
2994 * mcf.c: Likewise.
2995 * mode-switching.c: Likewise.
2996 * modulo-sched.c: Likewise.
2997 * omega.c: Likewise.
2998 * omp-low.c: Likewise.
2999 * optabs.c: Likewise.
3000 * opts-global.c: Likewise.
3001 * passes.c: Likewise.
3002 * plugin.c: Likewise.
3003 * postreload-gcse.c: Likewise.
3004 * postreload.c: Likewise.
3005 * predict.c: Likewise.
3006 * print-rtl.c: Likewise.
3007 * print-tree.c: Likewise.
3008 * profile.c: Likewise.
3009 * real.c: Likewise.
3010 * realmpfr.c: Likewise.
3011 * recog.c: Likewise.
3012 * ree.c: Likewise.
3013 * reg-stack.c: Likewise.
3014 * regcprop.c: Likewise.
3015 * reginfo.c: Likewise.
3016 * regrename.c: Likewise.
3017 * regstat.c: Likewise.
3018 * reload.c: Likewise.
3019 * reload1.c: Likewise.
3020 * reorg.c: Likewise.
3021 * resource.c: Likewise.
3022 * rtl-chkp.c: Likewise.
3023 * rtlanal.c: Likewise.
3024 * rtlhooks.c: Likewise.
3025 * sanopt.c: Likewise.
3026 * sched-deps.c: Likewise.
3027 * sched-ebb.c: Likewise.
3028 * sched-rgn.c: Likewise.
3029 * sched-vis.c: Likewise.
3030 * sdbout.c: Likewise.
3031 * sel-sched-dump.c: Likewise.
3032 * sel-sched-ir.c: Likewise.
3033 * sel-sched.c: Likewise.
3034 * sese.c: Likewise.
3035 * shrink-wrap.c: Likewise.
3036 * simplify-rtx.c: Likewise.
3037 * stack-ptr-mod.c: Likewise.
3038 * stmt.c: Likewise.
3039 * stor-layout.c: Likewise.
3040 * store-motion.c: Likewise.
3041 * stringpool.c: Likewise.
3042 * symtab.c: Likewise.
3043 * target-globals.c: Likewise.
3044 * targhooks.c: Likewise.
3045 * toplev.c: Likewise.
3046 * tracer.c: Likewise.
3047 * trans-mem.c: Likewise.
3048 * tree-affine.c: Likewise.
3049 * tree-browser.c: Likewise.
3050 * tree-call-cdce.c: Likewise.
3051 * tree-cfg.c: Likewise.
3052 * tree-cfgcleanup.c: Likewise.
3053 * tree-chkp-opt.c: Likewise.
3054 * tree-chkp.c: Likewise.
3055 * tree-chrec.c: Likewise.
3056 * tree-complex.c: Likewise.
3057 * tree-data-ref.c: Likewise.
3058 * tree-dfa.c: Likewise.
3059 * tree-diagnostic.c: Likewise.
3060 * tree-dump.c: Likewise.
3061 * tree-eh.c: Likewise.
3062 * tree-emutls.c: Likewise.
3063 * tree-if-conv.c: Likewise.
3064 * tree-inline.c: Likewise.
3065 * tree-into-ssa.c: Likewise.
3066 * tree-iterator.c: Likewise.
3067 * tree-loop-distribution.c: Likewise.
3068 * tree-nested.c: Likewise.
3069 * tree-nrv.c: Likewise.
3070 * tree-object-size.c: Likewise.
3071 * tree-outof-ssa.c: Likewise.
3072 * tree-parloops.c: Likewise.
3073 * tree-phinodes.c: Likewise.
3074 * tree-predcom.c: Likewise.
3075 * tree-pretty-print.c: Likewise.
3076 * tree-profile.c: Likewise.
3077 * tree-scalar-evolution.c: Likewise.
3078 * tree-sra.c: Likewise.
3079 * tree-ssa-address.c: Likewise.
3080 * tree-ssa-alias.c: Likewise.
3081 * tree-ssa-ccp.c: Likewise.
3082 * tree-ssa-coalesce.c: Likewise.
3083 * tree-ssa-copy.c: Likewise.
3084 * tree-ssa-copyrename.c: Likewise.
3085 * tree-ssa-dce.c: Likewise.
3086 * tree-ssa-dom.c: Likewise.
3087 * tree-ssa-dse.c: Likewise.
3088 * tree-ssa-forwprop.c: Likewise.
3089 * tree-ssa-ifcombine.c: Likewise.
3090 * tree-ssa-live.c: Likewise.
3091 * tree-ssa-loop-ch.c: Likewise.
3092 * tree-ssa-loop-im.c: Likewise.
3093 * tree-ssa-loop-ivcanon.c: Likewise.
3094 * tree-ssa-loop-ivopts.c: Likewise.
3095 * tree-ssa-loop-manip.c: Likewise.
3096 * tree-ssa-loop-niter.c: Likewise.
3097 * tree-ssa-loop-prefetch.c: Likewise.
3098 * tree-ssa-loop-unswitch.c: Likewise.
3099 * tree-ssa-loop.c: Likewise.
3100 * tree-ssa-math-opts.c: Likewise.
3101 * tree-ssa-operands.c: Likewise.
3102 * tree-ssa-phiopt.c: Likewise.
3103 * tree-ssa-phiprop.c: Likewise.
3104 * tree-ssa-pre.c: Likewise.
3105 * tree-ssa-propagate.c: Likewise.
3106 * tree-ssa-reassoc.c: Likewise.
3107 * tree-ssa-sccvn.c: Likewise.
3108 * tree-ssa-scopedtables.c: Likewise.
3109 * tree-ssa-sink.c: Likewise.
3110 * tree-ssa-strlen.c: Likewise.
3111 * tree-ssa-structalias.c: Likewise.
3112 * tree-ssa-tail-merge.c: Likewise.
3113 * tree-ssa-ter.c: Likewise.
3114 * tree-ssa-threadedge.c: Likewise.
3115 * tree-ssa-threadupdate.c: Likewise.
3116 * tree-ssa-uncprop.c: Likewise.
3117 * tree-ssa-uninit.c: Likewise.
3118 * tree-ssa.c: Likewise.
3119 * tree-ssanames.c: Likewise.
3120 * tree-stdarg.c: Likewise.
3121 * tree-streamer-in.c: Likewise.
3122 * tree-streamer-out.c: Likewise.
3123 * tree-streamer.c: Likewise.
3124 * tree-switch-conversion.c: Likewise.
3125 * tree-tailcall.c: Likewise.
3126 * tree-vect-data-refs.c: Likewise.
3127 * tree-vect-generic.c: Likewise.
3128 * tree-vect-loop-manip.c: Likewise.
3129 * tree-vect-loop.c: Likewise.
3130 * tree-vect-patterns.c: Likewise.
3131 * tree-vect-slp.c: Likewise.
3132 * tree-vect-stmts.c: Likewise.
3133 * tree-vectorizer.c: Likewise.
3134 * tree-vrp.c: Likewise.
3135 * tree.c: Likewise.
3136 * tsan.c: Likewise.
3137 * ubsan.c: Likewise.
3138 * valtrack.c: Likewise.
3139 * value-prof.c: Likewise.
3140 * var-tracking.c: Likewise.
3141 * varasm.c: Likewise.
3142 * varpool.c: Likewise.
3143 * vmsdbgout.c: Likewise.
3144 * vtable-verify.c: Likewise.
3145 * web.c: Likewise.
3146 * wide-int.cc: Likewise.
3147 * xcoffout.c: Likewise.
3148 * config/aarch64/aarch64-builtins.c: Likewise.
3149 * config/aarch64/aarch64.c: Likewise.
3150 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3151 * config/alpha/alpha.c: Likewise.
3152 * config/arc/arc.c: Likewise.
3153 * config/arm/aarch-common.c: Likewise.
3154 * config/arm/arm-builtins.c: Likewise.
3155 * config/arm/arm-c.c: Likewise.
3156 * config/arm/arm.c: Likewise.
3157 * config/avr/avr-c.c: Likewise.
3158 * config/avr/avr-log.c: Likewise.
3159 * config/avr/avr.c: Likewise.
3160 * config/bfin/bfin.c: Likewise.
3161 * config/c6x/c6x.c: Likewise.
3162 * config/cr16/cr16.c: Likewise.
3163 * config/cris/cris.c: Likewise.
3164 * config/darwin-c.c: Likewise.
3165 * config/darwin.c: Likewise.
3166 * config/epiphany/epiphany.c: Likewise.
3167 * config/epiphany/mode-switch-use.c: Likewise.
3168 * config/epiphany/resolve-sw-modes.c: Likewise.
3169 * config/fr30/fr30.c: Likewise.
3170 * config/frv/frv.c: Likewise.
3171 * config/ft32/ft32.c: Likewise.
3172 * config/h8300/h8300.c: Likewise.
3173 * config/i386/i386-c.c: Likewise.
3174 * config/i386/i386.c: Likewise.
3175 * config/i386/msformat-c.c: Likewise.
3176 * config/i386/winnt-cxx.c: Likewise.
3177 * config/i386/winnt-stubs.c: Likewise.
3178 * config/i386/winnt.c: Likewise.
3179 * config/ia64/ia64-c.c: Likewise.
3180 * config/ia64/ia64.c: Likewise.
3181 * config/iq2000/iq2000.c: Likewise.
3182 * config/lm32/lm32.c: Likewise.
3183 * config/m32c/m32c-pragma.c: Likewise.
3184 * config/m32c/m32c.c: Likewise.
3185 * config/m32r/m32r.c: Likewise.
3186 * config/m68k/m68k.c: Likewise.
3187 * config/mcore/mcore.c: Likewise.
3188 * config/mep/mep-pragma.c: Likewise.
3189 * config/mep/mep.c: Likewise.
3190 * config/microblaze/microblaze-c.c: Likewise.
3191 * config/microblaze/microblaze.c: Likewise.
3192 * config/mips/mips.c: Likewise.
3193 * config/mmix/mmix.c: Likewise.
3194 * config/mn10300/mn10300.c: Likewise.
3195 * config/moxie/moxie.c: Likewise.
3196 * config/msp430/msp430-c.c: Likewise.
3197 * config/msp430/msp430.c: Likewise.
3198 * config/nds32/nds32-cost.c: Likewise.
3199 * config/nds32/nds32-fp-as-gp.c: Likewise.
3200 * config/nds32/nds32-intrinsic.c: Likewise.
3201 * config/nds32/nds32-isr.c: Likewise.
3202 * config/nds32/nds32-md-auxiliary.c: Likewise.
3203 * config/nds32/nds32-memory-manipulation.c: Likewise.
3204 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3205 * config/nds32/nds32-predicates.c: Likewise.
3206 * config/nds32/nds32.c: Likewise.
3207 * config/nios2/nios2.c: Likewise.
3208 * config/nvptx/nvptx.c: Likewise.
3209 * config/pa/pa.c: Likewise.
3210 * config/pdp11/pdp11.c: Likewise.
3211 * config/rl78/rl78-c.c: Likewise.
3212 * config/rl78/rl78.c: Likewise.
3213 * config/rs6000/rs6000-c.c: Likewise.
3214 * config/rs6000/rs6000.c: Likewise.
3215 * config/rx/rx.c: Likewise.
3216 * config/s390/s390-c.c: Likewise.
3217 * config/s390/s390.c: Likewise.
3218 * config/sh/sh-c.c: Likewise.
3219 * config/sh/sh-mem.cc: Likewise.
3220 * config/sh/sh.c: Likewise.
3221 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3222 * config/sh/sh_treg_combine.cc: Likewise.
3223 * config/sol2-c.c: Likewise.
3224 * config/sol2-cxx.c: Likewise.
3225 * config/sol2-stubs.c: Likewise.
3226 * config/sol2.c: Likewise.
3227 * config/sparc/sparc-c.c: Likewise.
3228 * config/sparc/sparc.c: Likewise.
3229 * config/spu/spu-c.c: Likewise.
3230 * config/spu/spu.c: Likewise.
3231 * config/stormy16/stormy16.c: Likewise.
3232 * config/tilegx/mul-tables.c: Likewise.
3233 * config/tilegx/tilegx-c.c: Likewise.
3234 * config/tilegx/tilegx.c: Likewise.
3235 * config/tilepro/mul-tables.c: Likewise.
3236 * config/tilepro/tilepro-c.c: Likewise.
3237 * config/tilepro/tilepro.c: Likewise.
3238 * config/v850/v850-c.c: Likewise.
3239 * config/v850/v850.c: Likewise.
3240 * config/vax/vax.c: Likewise.
3241 * config/visium/visium.c: Likewise.
3242 * config/vms/vms-c.c: Likewise.
3243 * config/vms/vms.c: Likewise.
3244 * config/vxworks.c: Likewise.
3245 * config/xtensa/xtensa.c: Likewise.
3246
3247 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
3248
3249 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3250 Remove operand constraints. Change operand 2 predicate to
3251 nonmemory operand. Limit const_int values to mode bitsize. Only
3252 allow const_int values less than 32 when optimizing for size.
3253 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3254 Remove operand constraints.
3255 (*bt<mode>): Use SImode for const_int values less than 32.
3256 (regmode): Remove mode attribute.
3257
3258 2015-07-07 Anatoly Sokolov <aesok@post.ru>
3259
3260 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3261 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3262 moxie_legitimate_address_p): New functions.
3263 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3264
3265 2015-07-07 Tom de Vries <tom@codesourcery.com>
3266
3267 PR tree-optimization/66642
3268 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3269 header comment. Rename split_edge variable to edge_at_split. Split
3270 exit edge to create new loop exit bb. Insert loop exit phis in new
3271 loop exit bb.
3272
3273 2015-07-07 Tom de Vries <tom@codesourcery.com>
3274
3275 * tree-cfg.c (get_virtual_phi): New function.
3276 * tree-cfg.h (get_virtual_phi): Declare.
3277 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3278 (rewrite_virtuals_into_loop_closed_ssa): New function.
3279 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3280 Declare.
3281 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3282 (transform_to_exit_first_loop_alt): Use
3283 rewrite_virtuals_into_loop_closed_ssa.
3284
3285 2015-07-07 Richard Biener <rguenther@suse.de>
3286
3287 * fold-const.c (fold_binary_loc): Move
3288 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3289 * match.pd: ... here.
3290 Add (X * C1) % C2 -> 0 simplification pattern derived from
3291 extract_muldiv_1.
3292
3293 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
3294
3295 PR target/66780
3296 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3297 change for target/65249.
3298
3299 2015-07-07 Paulo Matos <pmatos@broadcom.com>
3300
3301 * symtab.c (address_matters_1): Fix typo in comment above.
3302 (can_increase_alignment_p): Likewise.
3303
3304 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3305
3306 * function.c (free_after_compilation): Clear PROP_cfg in
3307 f->curr_properties.
3308
3309 2015-07-07 Richard Biener <rguenther@suse.de>
3310
3311 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3312 add which use to.
3313 (add_control_edge): Remove excessive vertical space in dumping.
3314 (process_ssa_edge_worklist): Simulate at most one statement and
3315 return whether we did. Do not simulate PHIs if they are in a
3316 BB not yet simulated.
3317 (ssa_propagate): Adjust to always drain the BB worklist whenever
3318 a BB is available there, likewise the VARYING edges list before
3319 the interesting edge list.
3320
3321 2015-07-07 Christian Bruel <christian.bruel@st.com>
3322
3323 PR target/52144
3324 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3325
3326 2015-07-07 Richard Biener <rguenther@suse.de>
3327
3328 PR middle-end/66739
3329 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3330 A - B.
3331
3332 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3333
3334 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
3335 modes for operands 0 and 3. Use SImode for operands 2 and 3.
3336 Copy operand 0 to a temporary if !ext_register_operand. Remove
3337 ancient extract_bit_field workaround.
3338 (insv<mode>_1): Rename from mov<mode>_insv_1.
3339 (*insvqi): Rename from *movqi_insv_2.
3340 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3341 for renamed insvsi_1.
3342 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3343
3344 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
3345
3346 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
3347 call to nvptx_reorg_subreg.
3348
3349 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
3350
3351 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3352 * graphite-dependencies.c, graphite-interchange.c,
3353 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3354 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3355 Likewise.
3356
3357 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
3358
3359 * match.pd: Remove element_mode inside HONOR_*.
3360 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3361 (~X | X -> -1, ~X ^ X -> -1): Merge.
3362 * tree.c (build_each_one_cst): New function.
3363 * tree.h (build_each_one_cst): Likewise.
3364
3365 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3366
3367 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3368 PROCESSOR_IAMCU.
3369
3370 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
3371
3372 * config.gcc <mips*-*-*>: Add fused-madd.opt.
3373 * config/mips/mips.opt (mfused-madd): Remove.
3374 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3375 * config/mips/mips.h (TARGET_MIPS8000): New.
3376 (ISA_HAS_FP_MADD4_MSUB4): Remove.
3377 (ISA_HAS_FP_MADDF_MSUBF): Remove.
3378 (ISA_HAS_FP_MADD3_MSUB3): Remove.
3379 (ISA_HAS_NMADD4_NMSUB4): Remove.
3380 (ISA_HAS_NMADD3_NMSUB3): Remove.
3381 (ISA_HAS_FUSED_MADD4): New.
3382 (ISA_HAS_UNFUSED_MADD4): New.
3383 (ISA_HAS_FUSED_MADDF): New.
3384 (ISA_HAS_FUSED_MADD3): New.
3385 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3386 (*fma<mode>4_madd3) New.
3387 (*fma<mode>4_madd4) New.
3388 (*fma<mode>4_maddf) New.
3389 (fms<mode>4) New.
3390 (*fms<mode>4_msub3) New.
3391 (*fms<mode>4_msub4) New.
3392 (fnma<mode>4) New.
3393 (*fnma<mode>4_nmadd3) New.
3394 (*fnma<mode>4_nmadd4) New.
3395 (fnms<mode>4) New.
3396 (*fnms<mode>4_nmsub3) New.
3397 (*fnms<mode>4_nmsub4) New.
3398 (*madd4<mode>) Modify to be unfused only.
3399 (*msub4<mode>) Modify to be unfused only.
3400 (*nmadd4<mode>) Modify to be unfused only.
3401 (*nmsub4<mode>) Modify to be unfused only.
3402 (*madd3<mode>) Remove.
3403 (*msub3<mode>) Remove.
3404 (*nmadd3<mode>) Remove.
3405 (*nmsub3<mode>) Remove.
3406 (*nmadd3<mode>_fastmath) Remove.
3407 (*nmsub3<mode>_fastmath) Remove.
3408 (*nmadd4<mode>_fastmath) Update condition.
3409 (*nmsub4<mode>_fastmath) Update condition.
3410
3411 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3412
3413 PR target/65956
3414 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3415 alignment attribute, exploring one level down for records and arrays.
3416
3417 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3418
3419 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
3420 modes for operands 0 and 1. Use SImode for operands 2 and 3.
3421 Copy operand 1 to a temporary if !ext_register_operand. Remove
3422 ancient extract_bit_field workaround.
3423 (*extv<mode>): Rename from *mov<mode>_extv_1.
3424 (*extvqi): Rename from *movqi_extv_1.
3425 (extzv<mode>): Rename from extzv. Use SWI248 modes for
3426 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
3427 to a temporary if !ext_register_operand. Remove ancient
3428 extract_bit_field workaround.
3429 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3430 (*extzvqi): Rename from *movqi_extzv_2.
3431 (*testqi_ext_3): Remove modes from const_int_operand predicated
3432 operands. Add "n" constraint.
3433 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3434 operand. Add "J" constraint.
3435 (*btsq, *btrq, *btcq peephole2s): Remove mode from
3436 const_0_to_63 predicated operand.
3437 (regmode): New insn attribute.
3438 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
3439 to nonmemory_operand. Use regmode insn attribute.
3440 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3441 (*jcc_bt<mode>_mask): Remove mode from operand 3.
3442 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3443 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3444 operands. Use "N" constraint instead of "n".
3445
3446 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3447
3448 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3449
3450 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3451
3452 PR target/66749
3453 * config/i386/i386.c (iamcu_cost): New.
3454 (m_IAMCU): Likewise.
3455 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3456 (processor_target_table): Add an entry for "iamcu".
3457 (processor_alias_table): Likewise.
3458 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3459 (ix86_adjust_cost): Likewise.
3460 (ia32_multipass_dfa_lookahead): Likewise.
3461 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3462 * config/i386/x86-tune.def: Updated for m_IAMCU.
3463
3464 2015-07-06 Richard Biener <rguenther@suse.de>
3465
3466 PR tree-optimization/66772
3467 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3468 values are available in the PHI node BB when there are
3469 still unexecutable edges.
3470
3471 2015-07-06 Richard Biener <rguenther@suse.de>
3472
3473 PR tree-optimization/66767
3474 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3475 Make sure to build the alignment test on a SSA name without
3476 final alignment info valid only if the alignment test
3477 evaluates to true.
3478
3479 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
3480
3481 PR target/66620
3482 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3483 loop start when inserting LSETUP.
3484
3485 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3486
3487 PR target/53383
3488 * config/i386/i386.c (ix86_option_override_internal): Allow
3489 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3490
3491 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3492
3493 * read-md.c (decimal_string): Rename to ...
3494 (md_decimal_string): ... this.
3495 (handle_enum): Reflect this.
3496
3497 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3498
3499 PR target/66731
3500 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3501
3502 2015-07-06 Richard Biener <rguenther@suse.de>
3503
3504 PR middle-end/66759
3505 * match.pd: Add missing constraint of y to REAL_CST in
3506 REAL_CST - x CMP y to y - CST CMP x simplification.
3507
3508 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
3509
3510 PR tree-optimization/66757
3511 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3512
3513 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
3514 Sandra Loosemore <sandra@codesourcery.com>
3515
3516 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3517 Delete extern declaration.
3518 (gprel_constant_p): Add extern declaration.
3519 * config/nios2/constraints.md ("S"): Use gprel_constant_p
3520 instead of nios2_symbol_ref_in_small_data_p.
3521 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3522 (nios2_symbol_ref_in_small_data_p): Make static.
3523 (gprel_constant_p): Make non-static.
3524
3525 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
3526
3527 * doc/fragments.texi (Target Fragment): Convert debian.org
3528 link to use https.
3529 * doc/install.texi (Configuration): Ditto.
3530
3531 2015-07-05 Jakub Jelinek <jakub@redhat.com>
3532
3533 PR tree-optimization/66718
3534 * tree-vect-stmts.c (vectorizable_call): Replace uses of
3535 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3536
3537 PR tree-optimization/66718
3538 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3539 vectorizable_load, vectorizable_condition): Move vectype,
3540 nunits, ncopies computation after checking what kind of statement
3541 stmt is.
3542
3543 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3544
3545 * target-insns.def (extv, extzv, insv): New targetm instruction
3546 patterns.
3547 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3548 interface.
3549 * recog.c (simplify_while_replacing): Likewise.
3550
3551 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3552
3553 * target-insns.def (doloop_begin, doloop_end): New targetm
3554 instruction patterns.
3555 * loop-init.c: Include target.h.
3556 (pass_loop2::gate): Use the new targetm patterns instead of
3557 HAVE_*/gen_* interface.
3558 (pass_rtl_doloop::gate): Likewise.
3559 (pass_rtl_doloop::execute): Remove preprocessor condition.
3560 * hw-doloop.c: Build unconditionally.
3561 * loop-doloop.c: Likewise.
3562 (doloop_optimize): Use the new targetm patterns instead of
3563 HAVE_*/gen_* interface.
3564 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3565 * modulo-sched.c (doloop_register_get): Likewise.
3566
3567 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3568
3569 * target-insns.def (clear_cache): New targetm instruction pattern.
3570 * builtins.c (expand_builtin___clear_cache): Use it instead of
3571 HAVE_*/gen_* interface.
3572
3573 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3574
3575 * target-insns.def (allocate_stack, check_stack, probe_stack)
3576 (probe_stack_address, split_stack_prologue, split_stack_space_check):
3577 New targetm instruction patterns.
3578 * explow.c (allocate_dynamic_stack_space): Use them instead of
3579 HAVE_*/gen_* interface.
3580 (emit_stack_probe): Likewise.
3581 (probe_stack_range): Likewise.
3582 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3583
3584 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3585
3586 * target-insns.def (stack_protect_set, stack_protect_test): New
3587 targetm instruction patterns.
3588 * cfgexpand.c (stack_protect_prologue): Use them instead of
3589 HAVE_*/gen_* interface.
3590 * function.c (stack_protect_epilogue): Likewise.
3591
3592 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3593
3594 * expr.h (gen_move_insn_uncast): Delete.
3595 * expr.c (gen_move_insn_uncast): Delete.
3596
3597 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3598
3599 * target-insns.def (restore_stack_block, restore_stack_function)
3600 (restore_stack_nonlocal, save_stack_block, save_stack_function)
3601 (save_stack_nonlocal): New targetm instruction patterns.
3602 * builtins.c (expand_builtin_apply): Use them instead of
3603 HAVE_*/gen_* interface.
3604 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3605
3606 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3607
3608 * target-insns.def (trap): New targetm instruction pattern.
3609 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3610 interface.
3611 * explow.c (allocate_dynamic_stack_space): Likewise.
3612 * ifcvt.c (find_if_header): Likewise.
3613
3614 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3615
3616 * target-insns.def (prefetch): New targetm instruction pattern.
3617 * tree-ssa-loop-prefetch.c: Include targeth.
3618 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3619 of HAVE_*/gen_* interface.
3620 * builtins.c (expand_builtin_prefetch): Likewise.
3621 * toplev.c (process_options): Likewise.
3622
3623 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3624
3625 * target-insns.def (untyped_call, untyped_return): New targetm
3626 instruction patterns.
3627 * builtins.c (expand_builtin_apply): Use them instead of
3628 HAVE_*/gen_* interface.
3629 (result_vector): Define unconditionally.
3630
3631 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3632
3633 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3634 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3635 (nonlocal_goto_receiver): New targetm instruction patterns.
3636 * builtins.c (expand_builtin_setjmp_setup): Use them instead
3637 of HAVE_*/gen_* interface.
3638 (expand_builtin_setjmp_receiver): Likewise.
3639 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3640 * except.c (expand_dw2_landing_pad_for_region): Likewise.
3641
3642 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3643
3644 * target.def: Add code_for_* hooks.
3645 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3646 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3647 * target-insns.def (casesi, tablejump): New targetm instruction
3648 patterns.
3649 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3650 (do_tablejump): Likewise.
3651 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3652 (expand_sjlj_dispatch_table): Likewise.
3653 * targhooks.c (default_case_values_threshold): Likewise.
3654
3655 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
3656
3657 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3658 Use rtx_insn * instead of rtx.
3659 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3660 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3661 (nios2_call_tls_get_addr): Likewise.
3662 (nios2_emit_expensive_div): Likewise.
3663 (nios2_emit_move_sequence): Change return type to bool.
3664 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3665 Change return type to bool.
3666
3667 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3668
3669 PR target/66747
3670 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3671
3672 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
3673
3674 PR target/66114
3675 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3676 of register_operand. Remove constraint.
3677
3678 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
3679
3680 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3681 the first argument.
3682
3683 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
3684
3685 * attribs.c (decl_attributes): Guard inform with the return value
3686 of the preceding warning.
3687
3688 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3689
3690 * doc/invoke.texi (moverride): Move to correct section.
3691
3692 2015-07-03 Richard Biener <rguenther@suse.de>
3693
3694 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3695 Copy from tree.c
3696 (dt_operand::gen_gimple_expr): After valueizing operands
3697 re-canonicalize operand order for commutative tree codes.
3698
3699 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
3700
3701 PR target/66746.
3702 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3703 is defined.
3704 (__crc32w): Likewise.
3705 (__crc32d): Likewise.
3706 (__rdpmc): Likewise.
3707 (__rdtscp): Likewise.
3708 (_rdpmc): Likewise.
3709 (_rdtscp): Likewise.
3710 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3711 is defined.
3712
3713 2015-07-03 Richard Biener <rguenther@suse.de>
3714
3715 * fold-const.c (fold_mathfn_compare): Remove.
3716 (fold_inf_compare): Likewise.
3717 (fold_comparison): Move floating point comparison simplifications...
3718 * match.pd: ... to patterns here. Introduce simple_comparisons
3719 operator list and use it for patterns formerly in fold_comparison.
3720
3721 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3722
3723 PR tree-optimization/66119
3724 * toplev.c (process_options): Don't set up default values for
3725 the sra_max_scalarization_size_{speed,size} parameters.
3726 * tree-sra (analyze_all_variable_accesses): If no values
3727 have been set for the sra_max_scalarization_size_{speed,size}
3728 parameters, call get_move_ratio to get target defaults.
3729
3730 2015-07-03 Richard Biener <rguenther@suse.de>
3731
3732 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3733 * match.pd: ... here.
3734
3735 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
3736
3737 PR target/37072
3738 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3739 is not actually the default on FreeBSD.
3740
3741 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3742
3743 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3744 definition.
3745 (CMPGE_8HI): Likewise.
3746 (CMPGE_4SI): Likewise.
3747 (CMPGE_2DI): Likewise.
3748 (CMPGE_U16QI): Likewise.
3749 (CMPGE_U8HI): Likewise.
3750 (CMPGE_U4SI): Likewise.
3751 (CMPGE_U2DI): Likewise.
3752 (CMPLE_16QI): Likewise.
3753 (CMPLE_8HI): Likewise.
3754 (CMPLE_4SI): Likewise.
3755 (CMPLE_2DI): Likewise.
3756 (CMPLE_U16QI): Likewise.
3757 (CMPLE_U8HI): Likewise.
3758 (CMPLE_U4SI): Likewise.
3759 (CMPLE_U2DI): Likewise.
3760 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3761 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3762 ALTIVEC_BUILTIN_VEC_CMPLE.
3763 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3764 floating-point vector modes.
3765 (vector_nlt<mode>): New define_expand.
3766 (vector_nltu<mode>): Likewise.
3767 (vector_ngt<mode>): Likewise.
3768 (vector_ngtu<mode>): Likewise.
3769
3770 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
3771
3772 PR rtl-optimization/66706
3773 * combine.c (make_compound_operation): If an AND of SUBREG of
3774 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3775
3776 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
3777
3778 * tree-pass.h (make_pass_ch_vect): New.
3779 * passes.def: Add pass_ch_vect just before pass_if_conversion.
3780
3781 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3782 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3783 make_pass_ch_vect): New.
3784 (pass_ch): Extend ch_base.
3785
3786 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3787 (ch_base::copy_headers): ...here.
3788
3789 2015-07-02 Richard Biener <rguenther@suse.de>
3790
3791 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3792 * fold-const.c (get_pointer_modulus_and_residue): Remove.
3793 (fold_binary_loc): Implement (T)ptr & CST in terms of
3794 get_pointer_alignment_1.
3795 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3796 Make sure to build the alignment test on a SSA name without
3797 final alignment info valid only after the prologue.
3798
3799 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
3800
3801 * config/cris/cris.md ("epilogue"): Remove condition.
3802 ("prologue"): Ditto.
3803
3804 2015-07-02 Richard Biener <rguenther@suse.de>
3805
3806 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3807 parameter to record a condition that is false.
3808 (record_conditions): When recording an extra NE_EXPR that is
3809 true also record a EQ_EXPR that is false.
3810
3811 2015-07-02 Bin Cheng <bin.cheng@arm.com>
3812
3813 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3814 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3815 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
3816 (set_iv, find_interesting_uses_address, add_candidate_1): New
3817 argument to alloc_iv.
3818 (find_interesting_uses_op, find_interesting_uses_cond): Don't
3819 duplicate struct iv.
3820 (free_loop_data): Don't free struct iv explicitly.
3821 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3822
3823 2015-07-01 DJ Delorie <dj@redhat.com>
3824
3825 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3826 (LIB_SPEC): Add.
3827 (SUPPORTS_DISCRIMINATOR): Define.
3828
3829 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3830
3831 PR bootstrap/66685
3832 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3833 there are no CALLs in the same pattern.
3834
3835 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3836
3837 PR rtl-optimization/61047
3838 * rtlanal.c (get_initial_register_offset): New function.
3839 (rtx_addr_can_trap_p_1): Check offsets of stack references.
3840
3841 2015-07-01 Richard Biener <rguenther@suse.de>
3842
3843 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3844 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3845 ~X CMP C -> X CMP' ~C to ...
3846 * match.pd: ... patterns here.
3847
3848 2015-07-01 Nick Clifton <nickc@redhat.com>
3849
3850 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3851 a 16-bit value into a 20-bit memory slot.
3852
3853 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3854
3855 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3856 "aarch64_tiny", "aarch64_small", "aarch64_large",
3857 "aarch64_little_endian", "aarch64_big_endian".
3858
3859 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3860
3861 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3862 Document "aarch64_small_fpic".
3863
3864 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3865
3866 * configure.ac: Add check for aarch64 assembler -fpic relocation
3867 modifier support.
3868 * configure: Regenerate.
3869 * config.in: Regenerate.
3870 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3871 to -fPIC if not support of -fpic relocation modifier in assembler.
3872
3873 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3874
3875 PR bootstrap/66685
3876 * rtl.c (classify_insn): Handle returns in PARALLELs.
3877
3878 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
3879
3880 PR middle-end/66633
3881 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3882 to true if the function is nested and if not optimizing.
3883 (convert_local_omp_clauses): Initialize need_frame to true if the
3884 function contains nested functions and if not optimizing.
3885
3886 2015-07-01 Richard Biener <rguenther@suse.de>
3887
3888 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3889 (X & Y) ^ Y -> ~X & Y transforms to ...
3890 * match.pd: ... here.
3891
3892 2015-07-01 Richard Biener <rguenther@suse.de>
3893
3894 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3895 of converts to avoid uninteresting noise from the conversion
3896 simplifying patterns.
3897
3898 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
3899
3900 * config/c6x/c6x.c (try_rename_operands): Do not depend on
3901 gcc_assert evaluating its argument for side-effect.
3902
3903 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
3904
3905 PR target/64833
3906 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3907 flag_pic is set.
3908
3909 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3910
3911 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3912 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3913 (hash_scc): Add this_ref_p and ref_p parameters and pass them
3914 to the inner DFS walk.
3915
3916 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3917
3918 * target-insns.def (jump): New targetm instruction pattern.
3919 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3920 instead of gen_jump.
3921 (fix_up_crossing_landing_pad): Likewise.
3922 (add_labels_and_missing_jumps): Likewise.
3923 (fix_crossing_conditional_branches): Likewise.
3924 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3925 (force_nonfallthru_and_redirect): Likewise.
3926 * cse.c (cse_insn): Likewise.
3927 * expmed.c (expand_divmod): Likewise.
3928 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3929 * haifa-sched.c (init_before_recovery): Likewise.
3930 (sched_create_recovery_edges): Likewise.
3931 * ifcvt.c (find_cond_trap): Likewise.
3932 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3933 (expand_float, expand_fix): Likewise.
3934 * stmt.c (emit_jump): Likewise.
3935
3936 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3937
3938 * defaults.h (HAVE_load_multiple, gen_load_multiple)
3939 (HAVE_store_multiple, gen_store_multiple): Delete.
3940 * target-insns.def (load_multiple, store_multiple): New targetm
3941 instruction patterns.
3942 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3943 of HAVE_*/gen_* interface.
3944
3945 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3946
3947 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3948 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3949 (gen_mem_signal_fence): Delete.
3950 * target-insns.def (mem_signal_fence, mem_thread_fence)
3951 (memory_barrier): New targetm instruction patterns.
3952 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3953 interface.
3954 (expand_mem_signal_fence): Likewise.
3955
3956 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3957
3958 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3959 * target-insns.def (epilogue, prologue, sibcall_prologue): New
3960 targetm instruction patterns.
3961 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3962 interface.
3963 * calls.c (expand_call): Likewise.
3964 * cfgrtl.c (cfg_layout_finalize): Likewise.
3965 * df-scan.c (df_get_entry_block_def_set): Likewise.
3966 (df_get_exit_block_use_set): Likewise.
3967 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3968 * final.c (final_start_function): Likewise.
3969 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3970 (reposition_prologue_and_epilogue_notes): Likewise.
3971 * reorg.c (find_end_label): Likewise.
3972 * toplev.c (process_options): Likewise.
3973
3974 2015-06-30 David Malcolm <dmalcolm@redhat.com>
3975
3976 * typed-splay-tree.h: New file.
3977
3978 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
3979
3980 PR debug/66691
3981 * lra-int.h (lra_substitute_pseudo): Add a parameter.
3982 (lra_substitute_pseudo_within_insn): Ditto.
3983 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
3984 of constant.
3985 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
3986 to lra_substitute_pseudo.
3987 * lra-lives.c (process_bb_lives): Add an argument to
3988 lra_substitute_pseudo_within_insn call.
3989 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3990 argument to lra_substitute_pseudo and
3991 lra_substitute_pseudo_within_insn calls.
3992 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3993
3994 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3995
3996 * configure: Regenerated.
3997
3998 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3999
4000 * config.gcc: Support i[34567]86-*-elfiamcu target.
4001 * config/i386/iamcu.h: New.
4002 * config/i386/i386.opt: Add -miamcu.
4003 * doc/invoke.texi: Document -miamcu.
4004 * common/config/i386/i386-common.c (ix86_handle_option): Turn
4005 off x87/MMX/SSE/AVX codegen for -miamcu.
4006 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4007 __iamcu/__iamcu__ for -miamcu.
4008 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
4009 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
4010 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
4011 * config/i386/i386.c (ix86_option_override_internal): Ignore and
4012 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
4013 MCU by default. Default long double to 64-bit for Intel MCU.
4014 Turn on -freg-struct-return for Intel MCU. Issue an error when
4015 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
4016 AVX is turned on.
4017 (function_arg_advance_32): Pass value whose size is no larger
4018 than 8 bytes in registers for Intel MCU.
4019 (function_arg_32): Likewise.
4020 (ix86_return_in_memory): Return value whose size is no larger
4021 than 8 bytes in registers for Intel MCU.
4022 (iamcu_alignment): New function.
4023 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
4024 true.
4025 (ix86_local_alignment): Don't increase alignment for Intel MCU.
4026 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
4027 true.
4028
4029 2015-06-30 Marek Polacek <polacek@redhat.com>
4030
4031 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
4032 both operands of the resulting expression.
4033
4034 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
4035 the final expression with the operand's type and then convert
4036 it to the type of the expression.
4037
4038 2015-06-30 Richard Biener <rguenther@suse.de>
4039
4040 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
4041 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
4042 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
4043 * match.pd: ... to patterns here.
4044
4045 2015-06-30 Richard Biener <rguenther@suse.de>
4046
4047 PR tree-optimization/66704
4048 * tree-vect-data-refs.c (vect_setup_realignment): Use
4049 make_ssa_name for non-SSA name source.
4050
4051 2015-06-30 Jakub Jelinek <jakub@redhat.com>
4052
4053 PR middle-end/66702
4054 * omp-low.c (simd_clone_adjust): Handle addressable linear
4055 or uniform parameters or non-gimple type uniform parameters.
4056
4057 2015-06-30 Richard Biener <rguenther@suse.de>
4058
4059 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
4060 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
4061 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
4062 * match.pd: ... here.
4063 Add a few cases of A - B -> A + (-B) when B "easily" negates.
4064 Move (x & y) | x -> x and friends before
4065 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
4066
4067 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
4068
4069 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
4070 -mfix-ut699 is not specified.
4071 (leon3_load): Rename into...
4072 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
4073 is specified.
4074
4075 2015-06-30 Marek Polacek <polacek@redhat.com>
4076
4077 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
4078 * match.pd: ... here.
4079
4080 2015-06-30 Richard Biener <rguenther@suse.de>
4081
4082 * target-insns.def (canonicalize_funcptr_for_compare): Add.
4083 * fold-const.c (build_range_check): Replace uses of
4084 HAVE_canonicalize_funcptr_for_compare.
4085 (fold_widened_comparison): Likewise.
4086 (fold_sign_changed_comparison): Likewise.
4087 * dojump.c: Include "target.h".
4088 (do_compare_and_jump): Replace uses of
4089 HAVE_canonicalize_funcptr_for_compare and
4090 gen_canonicalize_funcptr_for_compare.
4091 * expr.c (do_store_flag): Likewise.
4092
4093 2015-06-30 Tom de Vries <tom@codesourcery.com>
4094
4095 PR tree-optimization/66652
4096 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4097 max_loop_iterations to determine if nit + 1 overflows.
4098
4099 2015-06-30 Richard Biener <rguenther@suse.de>
4100
4101 * tree-vrp.c (register_edge_assert_for_2): Also register
4102 asserts for dominating conversion results.
4103
4104 2015-06-30 Bin Cheng <bin.cheng@arm.com>
4105
4106 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
4107 field in struct iv.
4108
4109 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
4110
4111 PR target/66509
4112 * configure.ac: Fix filds and fildq test for 64-bit.
4113 * configure: Regenerated.
4114
4115 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
4116
4117 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
4118 (nvptx_reorg): Here. Keep the non-subreg pieces.
4119
4120 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
4121
4122 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4123 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4124
4125 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
4126
4127 * config/i386/i386.md (*jcc_1): Use %! in asm template.
4128 Set attribute "length_nobnd" instead of "length".
4129 (*jcc_2): Ditto.
4130 (jump): Ditto.
4131 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4132
4133 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
4134
4135 * config/nios2/nios2.c (nios2_delegitimize_address): Make
4136 assert less restrictive.
4137
4138 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4139
4140 PR fortran/66605
4141 * cgraphunit.c (cgraph_node::finalize_function): Do not call
4142 do_warn_unused_parameter.
4143 * function.c (do_warn_unused_parameter): Move from here.
4144 * function.h (do_warn_unused_parameter): Do not declare.
4145
4146 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4147
4148 PR target/65697
4149 * gcc.target/arm/armv-sync-comp-swap.c: New.
4150 * gcc.target/arm/armv-sync-op-acquire.c: New.
4151 * gcc.target/arm/armv-sync-op-full.c: New.
4152 * gcc.target/arm/armv-sync-op-release.c: New.
4153
4154 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4155
4156 PR target/65697
4157 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4158 initial acquire barrier with final barrier.
4159
4160 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4161
4162 PR target/65697
4163 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4164 initial acquire barrier with final barrier.
4165
4166 2015-06-29 Richard Henderson <rth@redhat.com>
4167
4168 * config/i386/constraints.md (Bf): New constraint.
4169 * config/i386/i386-c.c (ix86_target_macros): Define
4170 __GCC_ASM_FLAG_OUTPUTS__.
4171 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4172 as flags outputs.
4173 * doc/extend.texi (FlagOutputOperands): Document them.
4174
4175 2015-06-29 Jiong Wang <jiong.wang@arm.com>
4176
4177 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4178 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4179 unspec name.
4180 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4181 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4182 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4183 (aarch64_symbol_context): Ditto.
4184 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4185 and use new pattern name.
4186 (aarch64_expand_mov_immediate): Ditto.
4187 (aarch64_print_operand): Ditto.
4188 (aarch64_classify_tls_symbol): Ditto.
4189
4190 2015-06-29 Marek Polacek <polacek@redhat.com>
4191 Marc Glisse <marc.glisse@inria.fr>
4192
4193 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4194 * match.pd: ... pattern here.
4195
4196 2015-06-29 Tom de Vries <tom@codesourcery.com>
4197
4198 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4199 function structure.
4200
4201 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4202
4203 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4204 feature description, split out the native option, add a link to
4205 the feature documentation, rearrange and slightly rewrite text.
4206 (Aarch64 options, -mcpu): Likewise.
4207 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
4208 +rdma implies Adv. SIMD.
4209
4210 2015-06-29 Marek Polacek <polacek@redhat.com>
4211
4212 PR c/66322
4213 * function.c (stack_protect_epilogue): Remove a cast to int.
4214 * doc/invoke.texi: Update -Wswitch-bool description.
4215
4216 2015-06-29 Richard Biener <rguenther@suse.de>
4217
4218 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4219 * fold-const.c (fold_binary_loc): Move &A - &B simplification
4220 via ptr_difference_const ...
4221 * match.pd: ... here.
4222 When matching (X ^ Y) == Y also match with swapped operands.
4223
4224 2015-06-29 Richard Biener <rguenther@suse.de>
4225
4226 * lto-streamer.h (LTO_major_version): Bump to 5.
4227
4228 2015-06-29 Richard Biener <rguenther@suse.de>
4229
4230 PR tree-optimization/66677
4231 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4232 STMT_VINFO_VEC_STMT clobbering less strict.
4233
4234 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4235
4236 PR middle-end/64130
4237 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4238 division, compute max and min when value ranges for dividend and
4239 divisor are available.
4240
4241 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
4242 Sandra Loosemore <sandra@codesourcery.com>
4243
4244 * regrename.h (regrename_do_replace): Change to return bool.
4245 * regrename.c (rename_chains): Check return value of
4246 regname_do_replace.
4247 (regrename_do_replace): Re-validate the modified insns and
4248 return bool status.
4249 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4250 Update to match rename_chains changes.
4251 * config/c6x/c6x.c (try_rename_operands): Assert that
4252 regrename_do_replace returns true.
4253
4254 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
4255
4256 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4257 operand 2 here. Use copy_addr_to_reg to copy non-index
4258 register operand 2 to a temporary.
4259 (<mode>_stx): Ditto for operand 1.
4260 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4261 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4262 (ix86_store_bounds): Ditto.
4263
4264 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
4265
4266 * print-tree.c (print_node) [TREE_VEC]: Print its length.
4267
4268 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
4269
4270 * gimple.c (gimple_call_set_fndecl): Remove.
4271 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4272 build1_loc directly instead of build_fold_addr_expr_loc.
4273
4274 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4275
4276 * hash-map.h (hash_map::traverse): Use the definition of the
4277 Key typedef rather than the typedef itself.
4278
4279 2015-06-26 Martin Jambor <mjambor@suse.cz>
4280
4281 PR debug/66301
4282 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4283 NULL instead of calling dump_enabled_p.
4284
4285 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4286
4287 * config/aarch64/aarch64.opt: (override): New.
4288 * doc/invoke.texi (override): Document.
4289 * config/aarch64/aarch64.c (aarch64_flag_desc): New
4290 (aarch64_fusible_pairs): Likewise.
4291 (aarch64_tuning_flags): Likewise.
4292 (aarch64_tuning_override_function): Likewise.
4293 (aarch64_tuning_override_functions): Likewise.
4294 (aarch64_parse_one_option_token): Likewise.
4295 (aarch64_parse_boolean_options): Likewise.
4296 (aarch64_parse_fuse_string): Likewise.
4297 (aarch64_parse_tune_string): Likewise.
4298 (aarch64_parse_one_override_token): Likewise.
4299 (aarch64_parse_override_string): Likewise.
4300 (aarch64_override_options): Parse the -override string if it
4301 is present.
4302
4303 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4304
4305 * config/aarch64/aarch64-protos.h (tune_params): Remove
4306 const from members.
4307 (aarch64_tune_params): Remove const, change to no longer be
4308 a pointer.
4309 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4310 change to no longer be a pointer, initialize to generic_tunings.
4311 (aarch64_min_divisions_for_recip_mul): Change dereference of
4312 aarch64_tune_params to member access.
4313 (aarch64_reassociation_width): Likewise.
4314 (aarch64_rtx_mult_cost): Likewise.
4315 (aarch64_address_cost): Likewise.
4316 (aarch64_branch_cost): Likewise.
4317 (aarch64_rtx_costs): Likewise.
4318 (aarch64_register_move_cost): Likewise.
4319 (aarch64_memory_move_cost): Likewise.
4320 (aarch64_sched_issue_rate): Likewise.
4321 (aarch64_builtin_vectorization_cost): Likewise.
4322 (aarch64_override_options): Take a copy of the selected tuning
4323 struct in to aarch64_tune_params, rather than just setting
4324 a pointer, change dereferences of aarch64_tune_params to member
4325 accesses.
4326 (aarch64_override_options_after_change): Change dereferences of
4327 aarch64_tune_params to member access.
4328 (aarch64_macro_fusion_p): Likewise.
4329 (aarch_macro_fusion_pair_p): Likewise.
4330 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4331
4332 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4333
4334 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4335 (aarch64_tune_flags): Likewise.
4336 (AARCH64_TUNE_FMA_STEERING): Likewise.
4337 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4338 to AARCH64_FL_USE_FMA_STEERING_PASS.
4339 (cortex-a57.cortex-a53): Likewise.
4340 (cortex-a72): Use cortexa72_tunings.
4341 (cortex-a72.cortex-a53): Likewise.
4342 (exynos-m1): Likewise.
4343 * config/aarch64/aarch64-protos.h (tune_params): Add
4344 a field: extra_tuning_flags.
4345 * config/aarch64/aarch64-tuning-flags.def: New.
4346 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4347 (aarch64_extra_tuning_flags): Likewise.
4348 (aarch64_tune_params): Declare here.
4349 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4350 (cortexa53_tunings): Likewise.
4351 (cortexa57_tunings): Likewise.
4352 (thunderx_tunings): Likewise.
4353 (xgene1_tunings): Likewise.
4354 (cortexa72_tunings): New.
4355 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4356 (gate): Check against aarch64_tune_params.
4357 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4358 aarch64-protos.h.
4359
4360 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4361
4362 * config/aarch64/aarch64-fusion-pairs.def: New.
4363 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4364 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4365 aarch64_fusion_pairs.
4366 (AARCH64_FUSE_MOV_MOVK): Likewise.
4367 (AARCH64_FUSE_ADRP_ADD): Likewise.
4368 (AARCH64_FUSE_MOVK_MOVK): Likewise.
4369 (AARCH64_FUSE_ADRP_LDR): Likewise.
4370 (AARCH64_FUSE_CMP_BRANCH): Likewise.
4371
4372 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4373
4374 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4375 SYMBOL_SMALL_GOT_28K.
4376 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4377 relocation modifiers.
4378 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4379 (ldr_got_small_28k_<mode>): New.
4380 (ldr_got_small_28k_sidi): New.
4381 * config/aarch64/iterators.md (got_modifier): New mode iterator.
4382 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4383 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4384 SYMBOL_SMALL_GOT_28K.
4385 (aarch64_rtx_costs): Add costs for new instruction sequences.
4386 (initialize_aarch64_code_model): Initialize new model.
4387 (aarch64_classify_symbol): Recognize new model and new symbol classification.
4388 (aarch64_asm_preferred_eh_data_format): Support new model.
4389 (aarch64_load_symref_appropriately): Generate new instruction
4390 sequences for -fpic.
4391 (TARGET_USE_PSEUDO_PIC_REG): New definition.
4392 (aarch64_use_pseudo_pic_reg): New function.
4393
4394 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4395
4396 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4397 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4398 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4399 (aarch64_expand_mov_immediate): Ditto.
4400 (aarch64_print_operand): Ditto.
4401 (aarch64_classify_symbol): Ditto.
4402
4403 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
4404
4405 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4406
4407 2015-06-26 Bin Cheng <bin.cheng@arm.com>
4408
4409 PR bootstrap/66638
4410 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4411 assertion failed. Remove assertion itself.
4412
4413 2015-06-26 Richard Biener <rguenther@suse.de>
4414
4415 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4416 and -A CMP CST -> A CMP -CST which is redundant with a pattern
4417 in match.pd.
4418 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4419 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4420 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4421 * match.pd: ... patterns here.
4422
4423 2015-06-26 Marek Polacek <polacek@redhat.com>
4424
4425 * match.pd ((x | y) & ~(x & y) -> x ^ y,
4426 (x | y) & (~x ^ y) -> x & y): New patterns.
4427
4428 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4429
4430 * rtl.h (emit): Add an optional boolean parameter to control
4431 whether barriers are emitted.
4432 * emit-rtl.c (emit): Likewise.
4433 * gensupport.c (get_emit_function): Return null rather than "emit".
4434 * genemit.c (gen_emit_seq): Handle the null return value.
4435 Don't emit barriers after the final instruction in the sequence.
4436 * gentarget-def.c (main): Don't emit barriers after the instruction.
4437
4438 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4439
4440 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4441 TARGET_UNIFIED_ASM.
4442
4443 2015-06-26 Richard Biener <rguenther@suse.de>
4444
4445 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4446
4447 2015-06-26 Richard Biener <rguenther@suse.de>
4448
4449 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4450 irrespective on whether the inner operation has a single use
4451 of both off are constant.
4452
4453 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
4454 Segher Boessenkool <segher@kernel.crashing.org>
4455
4456 PR target/66412
4457 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4458 before doing PUT_MODE or PUT_CODE on operands to avoid
4459 in-place RTX modification.
4460
4461 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4462
4463 * gentarget-def.c (def_target_insn): Cast return of strtol to
4464 unsigned int.
4465
4466 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4467
4468 * gimple.h (gimple_call_set_fn): Move inline function.
4469 * gimple.c (gimple_call_set_fn): Relocate here.
4470
4471 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
4472
4473 PR target/65979
4474 PR target/66611
4475 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4476 the replacement insn will work.
4477
4478 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4479
4480 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4481 by default.
4482
4483 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4484
4485 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4486 * cgraph.h: Include ipa-ref.h and plugin-api.h.
4487 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4488 (symtab_node::address_can_be_compared_p): Move function.
4489 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4490 definition here.
4491 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4492 * auto-profile.c: Likewise.
4493 * bb-reorder.c: Likewise.
4494 * builtins.c: Likewise.
4495 * calls.c: Likewise.
4496 * cfgexpand.c: Likewise.
4497 * cgraphbuild.c: Likewise.
4498 * cgraphclones.c: Likewise.
4499 * cgraphunit.c: Likewise.
4500 * combine.c: Likewise.
4501 * coverage.c: Likewise.
4502 * data-streamer-in.c: Likewise.
4503 * data-streamer-out.c: Likewise.
4504 * data-streamer.c: Likewise.
4505 * dbxout.c: Likewise.
4506 * dwarf2out.c: Likewise.
4507 * except.c: Likewise.
4508 * expr.c: Likewise.
4509 * final.c: Likewise.
4510 * fold-const.c: Likewise.
4511 * ggc-page.c: Likewise.
4512 * gimple-fold.c: Likewise.
4513 * gimple-iterator.c: Likewise.
4514 * gimple-pretty-print.c: Likewise.
4515 * gimple-streamer-in.c: Likewise.
4516 * gimple-streamer-out.c: Likewise.
4517 * gimple.c: Likewise.
4518 * gimplify.c: Likewise.
4519 * ipa-chkp.c: Likewise.
4520 * ipa-comdats.c: Likewise.
4521 * ipa-cp.c: Likewise.
4522 * ipa-devirt.c: Likewise.
4523 * ipa-icf-gimple.c: Likewise.
4524 * ipa-icf.c: Likewise.
4525 * ipa-inline-analysis.c: Likewise.
4526 * ipa-inline-transform.c: Likewise.
4527 * ipa-inline.c: Likewise.
4528 * ipa-polymorphic-call.c: Likewise.
4529 * ipa-profile.c: Likewise.
4530 * ipa-prop.c: Likewise.
4531 * ipa-pure-const.c: Likewise.
4532 * ipa-ref.c: Likewise.
4533 * ipa-reference.c: Likewise.
4534 * ipa-split.c: Likewise.
4535 * ipa-utils.c: Likewise.
4536 * ipa-visibility.c: Likewise.
4537 * ipa.c: Likewise.
4538 * langhooks.c: Likewise.
4539 * lto-cgraph.c: Likewise.
4540 * lto-compress.c: Likewise.
4541 * lto-opts.c: Likewise.
4542 * lto-section-in.c: Likewise.
4543 * lto-section-out.c: Likewise.
4544 * lto-streamer-in.c: Likewise.
4545 * lto-streamer-out.c: Likewise.
4546 * lto-streamer.c: Likewise.
4547 * omp-low.c: Likewise.
4548 * opts-global.c: Likewise.
4549 * passes.c: Likewise.
4550 * predict.c: Likewise.
4551 * print-tree.c: Likewise.
4552 * profile.c: Likewise.
4553 * ree.c: Likewise.
4554 * sanopt.c: Likewise.
4555 * stor-layout.c: Likewise.
4556 * symtab.c: Likewise.
4557 * toplev.c: Likewise.
4558 * trans-mem.c: Likewise.
4559 * tree-cfg.c: Likewise.
4560 * tree-chkp.c: Likewise.
4561 * tree-eh.c: Likewise.
4562 * tree-emutls.c: Likewise.
4563 * tree-inline.c: Likewise.
4564 * tree-nested.c: Likewise.
4565 * tree-parloops.c: Likewise.
4566 * tree-pretty-print.c: Likewise.
4567 * tree-profile.c: Likewise.
4568 * tree-sra.c: Likewise.
4569 * tree-ssa-alias.c: Likewise.
4570 * tree-ssa-live.c: Likewise.
4571 * tree-ssa-loop-ivcanon.c: Likewise.
4572 * tree-ssa-loop-ivopts.c: Likewise.
4573 * tree-ssa-pre.c: Likewise.
4574 * tree-ssa-sccvn.c: Likewise.
4575 * tree-ssa-strlen.c: Likewise.
4576 * tree-ssa-structalias.c: Likewise.
4577 * tree-streamer-in.c: Likewise.
4578 * tree-streamer-out.c: Likewise.
4579 * tree-streamer.c: Likewise.
4580 * tree-switch-conversion.c: Likewise.
4581 * tree-tailcall.c: Likewise.
4582 * tree-vect-data-refs.c: Likewise.
4583 * tree-vect-stmts.c: Likewise.
4584 * tree-vectorizer.c: Likewise.
4585 * tree.c: Likewise.
4586 * tsan.c: Likewise.
4587 * ubsan.c: Likewise.
4588 * value-prof.c: Likewise.
4589 * varasm.c: Likewise.
4590 * varpool.c: Likewise.
4591 * config/arm/arm.c: Likewise.
4592 * config/bfin/bfin.c: Likewise.
4593 * config/c6x/c6x.c: Likewise.
4594 * config/cris/cris.c: Likewise.
4595 * config/darwin-c.c: Likewise.
4596 * config/darwin.c: Likewise.
4597 * config/i386/i386.c: Likewise.
4598 * config/i386/winnt.c: Likewise.
4599 * config/microblaze/microblaze.c: Likewise.
4600 * config/mips/mips.c: Likewise.
4601 * config/rs6000/rs6000.c: Likewise.
4602 * config/rx/rx.c: Likewise.
4603 * config/s390/s390.c: Likewise.
4604 * config/tilegx/mul-tables.c: Likewise.
4605
4606 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4607
4608 * config/aarch64/aarch64.c, config/alpha/alpha.c,
4609 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4610 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4611 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4612 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4613 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4614 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4615 config/microblaze/microblaze.c, config/mips/mips.c,
4616 config/mmix/mmix.c, config/mn10300/mn10300.c,
4617 config/moxie/moxie.c, config/msp430/msp430.c,
4618 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4619 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4620 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4621 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4622 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4623 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4624 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4625 target-def.h include.
4626 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
4627
4628 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4629
4630 * Makefile.in (TARGET_DEF): Add target-insns.def.
4631 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4632 (build/gentarget-def.o): New rule.
4633 (genprogrtl): Add target-def.
4634 * target-insns.def, gentarget-def.c: New files.
4635 * target.def: Add targetm.have_* and targetm.gen_* hooks,
4636 based on the contents of target-insns.def.
4637 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4638 (HAVE_return, gen_return): Delete.
4639 * target-def.h: Include insn-target-def.h.
4640 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4641 instead of direct calls. Rely on them to do the appropriate assertions.
4642 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
4643 (convert_jumps_to_returns): Use targetm interface instead of
4644 direct calls.
4645 (thread_prologue_and_epilogue_insns): Likewise.
4646 * reorg.c (find_end_label, dbr_schedule): Likewise.
4647 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4648 * shrink-wrap.c (convert_to_simple_return): Likewise.
4649 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4650
4651 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4652
4653 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4654 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4655 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4656 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4657 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4658 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4659 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4660 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4661 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4662 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4663 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4664 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4665 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4666 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4667 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4668 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4669 includes to end.
4670
4671 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4672
4673 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4674 (unbounded_int_hashmap_traits::key_type): Likewise.
4675 * hash-map.h (hash_map): Get the key type from the traits.
4676 * hash-traits.h (default_hash_traits): By default, inherit from the
4677 template parameter.
4678 * alias.c (alias_set_traits): Delete.
4679 (alias_set_entry_d::children): Use alias_set_hash as the first
4680 template parameter.
4681 (record_alias_subset): Update accordingly.
4682 * except.c (tree_hash_traits): Delete.
4683 (type_to_runtime_map): Use tree_hash as the first template parameter.
4684 (init_eh): Update accordingly.
4685 * genmatch.c (capture_id_map_hasher): Delete.
4686 (cid_map_t): Use nofree_string_hash as first template parameter.
4687 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4688 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4689 Use symbol_compare_hash as the first template parameter in
4690 subdivide_hash_map.
4691 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4692 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4693 template parameter.
4694 * passes.c (pass_registry_hasher): Delete.
4695 (name_to_pass_map): Use nofree_string_hash as the first template
4696 parameter.
4697 (register_pass_name): Update accordingly.
4698 * sanopt.c (sanopt_tree_map_traits): Delete.
4699 (sanopt_tree_triplet_map_traits): Delete.
4700 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4701 template parameter.
4702 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4703 the first template parameter.
4704 * sese.c (rename_map_hasher): Delete.
4705 (rename_map_type): Use tree_ssa_name_hash as the first template
4706 parameter.
4707 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4708 (function_summary::m_map): Use map_hash as the first template
4709 parameter.
4710 (function_summary::release): Update accordingly.
4711 * tree-if-conv.c (phi_args_hash_traits): Delete.
4712 (predicate_scalar_phi): Use tree_operand_hash as the first template
4713 parameter to phi_arg_map.
4714 * tree-inline.h (dependence_hasher): Delete.
4715 (copy_body_data::dependence_map): Use dependence_hash as the first
4716 template parameter.
4717 * tree-inline.c (remap_dependence_clique): Update accordingly.
4718 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4719 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4720 parameter.
4721 (addr_stridxptr): Update accordingly.
4722 * value-prof.c (profile_id_traits): Delete.
4723 (cgraph_node_map): Use profile_id_hash as the first template
4724 parameter.
4725 (init_node_map): Update accordingly.
4726 * config/alpha/alpha.c (string_traits): Delete.
4727 (machine_function::links): Use nofree_string_hash as the first
4728 template parameter.
4729 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4730 * config/m32c/m32c.c (pragma_traits): Delete.
4731 (pragma_htab): Use nofree_string_hash as the first template parameter.
4732 (m32c_note_pragma_address): Update accordingly.
4733 * config/mep/mep.c (pragma_traits): Delete.
4734 (pragma_htab): Use nofree_string_hash as the first template parameter.
4735 (mep_note_pragma_flag): Update accordingly.
4736 * config/mips/mips.c (mips16_flip_traits): Delete.
4737 (mflip_mips16_htab): Use nofree_string_hash as the first template
4738 parameter.
4739 (mflip_mips16_use_mips16_p): Update accordingly.
4740 (local_alias_traits): Delete.
4741 (mips16_local_aliases): Use nofree_string_hash as the first template
4742 parameter.
4743 (mips16_local_alias): Update accordingly.
4744
4745 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4746
4747 * hash-map-traits.h (default_hashmap_traits): Delete.
4748
4749 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4750
4751 * hash-map-traits.h (unbounded_hashmap_traits): New class.
4752 (unbounded_int_hashmap_traits): Likewise.
4753 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4754
4755 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4756
4757 * ipa-icf.h (symbol_compare_hash): New class.
4758 (symbol_compare_hashmap_traits): Use it.
4759 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4760 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4761 (mem_alloc_description::reverse_mem_map_t): Remove redundant
4762 default_hashmap_traits.
4763 * sanopt.c (sanopt_tree_triplet_hash): New class.
4764 (sanopt_tree_triplet_map_traits): Use it.
4765
4766 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4767
4768 * gengtype-parse.c (require_template_declaration): Allow '+' in
4769 template parameters. Consolidate cases.
4770 * hash-traits.h (int_hash): New class.
4771 * alias.c (alias_set_hash): New structure.
4772 (alias_set_traits): Use it.
4773 * symbol-summary.h (function_summary::map_hash): New class.
4774 (function_summary::summary_hashmap_traits): Use it.
4775 * tree-inline.h (dependence_hash): New class.
4776 (dependence_hasher): Use it.
4777 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4778 * value-prof.c (profile_id_hash): New class.
4779 (profile_id_traits): Use it.
4780
4781 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4782
4783 * config/mips/mips.c (mips16_flip_traits): Use it.
4784 (local_alias_traits, mips16_local_aliases): Convert from a map of
4785 rtxes to a map of symbol names.
4786 (mips16_local_alias): Update accordingly.
4787
4788 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4789
4790 * hash-traits.h (string_hash, nofree_string_hash): New classes.
4791 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4792 * passes.c (pass_registry_hasher): Likewise.
4793 * config/alpha/alpha.c (string_traits): Likewise.
4794 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4795 * config/m32c/m32c.c (pragma_traits): Likewise.
4796 * config/mep/mep.c (pragma_traits): Likewise.
4797
4798 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4799
4800 * tree-hash-traits.h (tree_hash): New class.
4801 * except.c: Include tree-hash-traits.h.
4802 (tree_hash_traits): Use tree_hash.
4803
4804 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4805
4806 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4807 * sese.c: Include tree-hash-traits.h.
4808 (rename_map_hasher): Use tree_ssa_name_hasher.
4809
4810 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4811
4812 * tree-hash-traits.h (tree_decl_hash): New class.
4813 * tree-ssa-strlen.c: Include tree-hash-traits.h.
4814 (stridxlist_hash_traits): Use tree_decl_hash.
4815
4816 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4817
4818 * tree-hash-traits.h: New file.
4819 (tree_operand_hash): New class.
4820 * sanopt.c: Include tree-hash-traits.h.
4821 (sanopt_tree_map_traits): Use tree_operand_hash.
4822 * tree-if-conv.c: Include tree-hash-traits.h.
4823 (phi_args_hash_traits): Use tree_operand_hash.
4824 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4825 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4826
4827 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4828
4829 * hash-map-traits.h: Include hash-traits.h.
4830 (simple_hashmap_traits): New class.
4831 * mem-stats.h (hash_map): Change the default traits to
4832 simple_hashmap_traits<default_hash_traits<Key> >.
4833
4834 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4835
4836 * hash-table.h: Update comments.
4837
4838 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4839
4840 * hash-traits.h (default_hash_traits): New structure.
4841 * hash-set.h (default_hashset_traits): Delete.
4842 (hash_set): Use default_hash_traits<Key> instead of
4843 default_hashset_traits. Delete hash_entry type and use Key directly.
4844 * ipa-devirt.c (pair_traits): Delete.
4845 (default_hash_traits <type_pair>): Override.
4846 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4847 (odr_types_equivalent_p, add_type_duplicate): Likewise.
4848
4849 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4850
4851 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4852
4853 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4854
4855 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4856 (has_is_empty, is_empty_helper): Delete.
4857 (has_mark_deleted, mark_deleted_helper): Delete.
4858 (has_mark_empty, mark_empty_helper): Delete.
4859 (hash_table::is_deleted): Call the Descriptor unconditionally.
4860 (hash_table::is_empty): Likewise.
4861 (hash_table::mark_deleted): Likewise.
4862 (hash_table::mark_empty): Likewise.
4863
4864 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4865
4866 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
4867 redundant typedefs and members.
4868 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
4869 redundant typedefs.
4870 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4871 * ipa-devirt.c (odr_name_hasher): Likewise.
4872 (polymorphic_call_target_hasher): Likewise.
4873 * ira-costs.c (cost_classes_hasher): Likewise.
4874 * statistics.c (stats_counter_hasher): Likewise.
4875 * trans-mem.c (log_entry_hasher): Likewise.
4876 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4877 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4878 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4879 * var-tracking.c (variable_hasher): Likewise.
4880 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4881 Remove redundant typedefs and members.
4882
4883 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4884
4885 * hash-traits.h (ggc_cache_hasher): Rename to...
4886 (ggc_cache_remove): ...this and remove typedefs.
4887 (ggc_cache_ptr_hash): New class.
4888 * hash-table.h: Update commentary.
4889 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4890 rather than ggc_cache_hasher.
4891 (const_wide_int_hasher, reg_attr_hasher): Likewise.
4892 (const_double_hasher, const_fixed_hasher): Likewise.
4893 * function.c (insn_cache_hasher): Likewise.
4894 * trans-mem.c (tm_wrapper_hasher): Likewise.
4895 * tree.h (tree_decl_map_cache_hasher): Likewise.
4896 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4897 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4898 * ubsan.c (tree_type_map_cache_hasher): Likewise.
4899 * varasm.c (tm_clone_hasher): Likewise.
4900 * config/i386/i386.c (dllimport_hasher): Likewise.
4901 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4902 (tree_hasher): Likewise.
4903
4904 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4905
4906 * hash-traits.h (ggc_hasher): Rename to...
4907 (ggc_remover): ...this and remove typedefs.
4908 (ggc_cache_hasher): Update accordingly. Add typedefs.
4909 (ggc_ptr_hash): New class.
4910 * hash-table.h: Update comment.
4911 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4912 ggc_hasher.
4913 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4914 (tree_descriptor_hasher): Likewise.
4915 * cgraph.c (function_version_hasher): Likewise.
4916 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4917 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4918 (dw_loc_list_hasher, addr_hasher): Likewise.
4919 * function.h (used_type_hasher): Likewise.
4920 * function.c (temp_address_hasher): Likewise.
4921 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4922 * libfuncs.h (libfunc_hasher): Likewise.
4923 * lto-streamer.h (decl_state_hasher): Likewise.
4924 * optabs.c (libfunc_decl_hasher): Likewise.
4925 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4926 * varasm.c (section_hasher, object_block_hasher): Likewise.
4927 (const_rtx_desc_hasher): Likewise.
4928 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4929 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4930
4931 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4932
4933 * hash-traits.h (free_ptr_hash): New class.
4934 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4935 rather than typed_free_remove. Remove redudant typedefs.
4936 (external_ref_hasher): Likewise.
4937 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4938 (ehspec_hasher): Likewise.
4939 * ggc-common.c (saving_hasher): Likewise.
4940 * gimplify.c (gimplify_hasher): Likewise.
4941 * haifa-sched.c (delay_i2_hasher): Likewise.
4942 * loop-invariant.c (invariant_expr_hasher): Likewise.
4943 * loop-iv.c (biv_entry_hasher): Likewise.
4944 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4945 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4946 * tree-cfg.c (locus_discrim_hasher): Likewise.
4947 * tree-eh.c (finally_tree_hasher): Likewise.
4948 * tree-into-ssa.c (var_info_hasher): Likewise.
4949 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4950 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4951 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4952 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4953 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4954 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4955 (shared_bitmap_hasher): Likewise.
4956 * tree-ssa-threadupdate.c (redirection_data): Likewise.
4957 * tree-vectorizer.h (peel_info_hasher): Likewise.
4958 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4959 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4960
4961 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4962
4963 * hash-table.h: Update comments.
4964 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4965 (nofree_ptr_hash): New class.
4966 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4967 than typed_noop_remove. Remove redudant typedefs.
4968 * attribs.c (attribute_hasher): Likewise.
4969 * cfg.c (bb_copy_hasher): Likewise.
4970 * cselib.c (cselib_hasher): Likewise.
4971 * dse.c (invariant_group_base_hasher): Likewise.
4972 * dwarf2cfi.c (trace_info_hasher): Likewise.
4973 * dwarf2out.c (macinfo_entry_hasher): Likewise.
4974 (comdat_type_hasher, loc_list_hasher): Likewise.
4975 * gcse.c (pre_ldst_expr_hasher): Likewise.
4976 * genmatch.c (id_base): Likewise.
4977 * genrecog.c (test_pattern_hasher): Likewise.
4978 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4979 * haifa-sched.c (delay_i1_hasher): Likewise.
4980 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4981 * ipa-icf.h (congruence_class_group_hash): Likewise.
4982 * ipa-profile.c (histogram_hash): Likewise.
4983 * ira-color.c (allocno_hard_regs_hasher): Likewise.
4984 * lto-streamer.h (string_slot_hasher): Likewise.
4985 * lto-streamer.c (tree_entry_hasher): Likewise.
4986 * plugin.c (event_hasher): Likewise.
4987 * postreload-gcse.c (expr_hasher): Likewise.
4988 * store-motion.c (st_expr_hasher): Likewise.
4989 * tree-sra.c (uid_decl_hasher): Likewise.
4990 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4991 (ssa_name_var_hash): Likewise.
4992 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4993 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4994 * tree-ssa-pre.c (pre_expr_d): Likewise.
4995 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4996 * vtable-verify.h (registration_hasher): Likewise.
4997 * vtable-verify.c (vtbl_map_hasher): Likewise.
4998 * config/arm/arm.c (libcall_hasher): Likewise.
4999 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
5000 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
5001 * config/sol2.c (comdat_entry_hasher): Likewise.
5002 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
5003 (print_fold_checksum, fold_checksum_tree): Likewise.
5004 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
5005 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
5006 (fold_build_call_array_loc): Likewise.
5007 * tree-ssa-ccp.c (gimple_htab): Likewise.
5008 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
5009 rather than pointer_type.
5010
5011 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5012
5013 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
5014 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
5015
5016 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5017
5018 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
5019 (ggc_hasher::ggc_mx): Likewise.
5020 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
5021 that duplicate ggc_hasher ones.
5022
5023 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5024
5025 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
5026 (gt_cleare_cache): Check here for deleted and empty entries.
5027 Replace handle_cache_entry with a call to keep_cache_entry.
5028 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
5029 (ggc_cache_hasher::keep_cache_entry): New function.
5030 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
5031 (tm_wrapper_hasher::keep_cache_entry): New function.
5032 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
5033 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
5034 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
5035 (type_cache_hasher::keep_cache_entry): New function.
5036 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
5037 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
5038 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
5039 (tree_type_map_cache_hasher::keep_cache_entry): New function.
5040 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
5041 (tm_clone_hasher::keep_cache_entry): New function.
5042 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
5043 (dllimport_hasher::keep_cache_entry): New function.
5044
5045 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5046
5047 * hash-table.h: Include hash-traits.h.
5048 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
5049 (ggc_cache_hasher): Move to...
5050 * hash-traits.h: ...this new file.
5051
5052 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5053
5054 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
5055 struct cl_optimization.
5056 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
5057 * tree.c (make_node_stat): Allocate cl_optimization struct.
5058 (copy_node_stat): Allocate and copy cl_optimization struct.
5059
5060 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5061
5062 * function.h (struct incoming_args): Move struct.
5063 (pass_by_reference, reference_callee_copied): Remove prototypes.
5064 * emit-rtl.h (struct incoming_args): Relocate struct here.
5065 * calls.h (pass_by_reference, reference_callee_copied): Relocate
5066 prototypes here.
5067 * function.c (pass_by_reference, reference_callee_copied): Move.
5068 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
5069 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
5070 * ipa-chkp.c: Include calls.h.
5071
5072 2015-06-25 Andrew Macleod <amacleod@redhat.com>
5073
5074 * alias.h (alias_set_type): Move typedef.
5075 * coretypes.h (alias_set_type): Relocate typedef here.
5076 * rtl.h: Don't include alias.h.
5077
5078 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5079
5080 * cgraph.h (cgraph_rtl_info): Move to rtl.h
5081 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
5082 and instance.
5083 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
5084 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
5085 doesn't exist.
5086 * calls.c: Include hard-reg-set.h before rtl.h.
5087 * ira.c: Likewise.
5088
5089 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5090 Vladimir Makarov <vmakarov@redhat.com>
5091
5092 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
5093 Add assert.
5094
5095 2015-06-25 Richard Biener <rguenther@suse.de>
5096
5097 * fold-const.c (fold_binary_loc): Move simplification of
5098 (X <<>> C1) & C2 ...
5099 * match.pd: ... here.
5100
5101 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
5102
5103 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
5104
5105 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5106
5107 * match.pd: Add patterns for vec_conds between 1 and 0.
5108
5109 2015-06-25 Richard Biener <rguenther@suse.de>
5110
5111 * tree-vect-stmts.c (vectorizable_conversion): Do not set
5112 STMT_VINFO_VEC_STMT for SLP.
5113 (vectorizable_store): Likewise.
5114 (vectorizable_load): Likewise.
5115 (vect_transform_stmt): Catch SLP vectorization clobbering
5116 STMT_VINFO_VEC_STMT.
5117
5118 2015-06-25 Richard Biener <rguenther@suse.de>
5119
5120 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
5121 dumping.
5122 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5123 cleanup resulting dead code and parameters.
5124 (vect_transform_slp_perm_load): Adjust.
5125
5126 2015-06-25 Nick Clifton <nickc@redhat.com>
5127
5128 * config/bfin/bfin.c (bfin_expand_prologue): Set
5129 current_function_static_stack_size if flag_stack_usage_info is set.
5130 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5131 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5132 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5133 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5134
5135 2015-06-25 Tom de Vries <tom@codesourcery.com>
5136
5137 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5138 comment that the generated IV is unsigned.
5139
5140 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5141
5142 PR target/29693
5143 * config/arm/arm.c (arm_dbx_register_number): Return
5144 DWARF_FRAME_REGISTERS by default.
5145
5146 2015-06-25 Tom de Vries <tom@codesourcery.com>
5147
5148 * dominance.c (calculate_dominance_info): Fix verify_dominators call
5149 argument. Call verify_dominator when reusing dominator info.
5150
5151 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
5152
5153 PR target/66563
5154 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5155 an additional element of the unspec vector. Modify indices
5156 of operands.
5157 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5158 * config/sh/sh.c (prepare_move_operands): Pass incremented
5159 const_int to gen_GOTaddr2picreg.
5160 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5161
5162 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5163
5164 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5165 Condition on TARGET_FLOAT.
5166
5167 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5168
5169 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5170 and (no)crypto.
5171
5172 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5173
5174 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5175
5176 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5177 aarch64_err_no_fpadvsimd.
5178
5179 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5180 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5181 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5182 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5183 Turn error into assert, test TARGET_FLOAT.
5184 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5185 TARGET_FLOAT.
5186
5187 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
5188
5189 PR debug/66482
5190 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5191
5192 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5193
5194 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5195
5196 2015-06-24 Renlin Li <renlin.li@arm.com>
5197
5198 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5199 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5200
5201 2015-06-24 Richard Biener <rguenther@suse.de>
5202
5203 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5204 (main): Likewise.
5205 (lower_opt_convert): Support lowering of conditional view_convert.
5206 (parser::parse_operation): Likewise.
5207 (parser::parse_for): Likewise.
5208
5209 2015-06-24 Renlin Li <renlin.li@arm.com>
5210
5211 * varasm.c (emit_local): Use unsigned int for align variable.
5212
5213 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5214
5215 PR target/63408
5216 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5217 for negative numbers.
5218
5219 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5220
5221 PR rtl-optimization/66306
5222 * reload.c (find_reloads): Swap the match_dup info for
5223 commutative operands.
5224
5225 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5226
5227 * config/s390/vx-builtins.md
5228 ("vec_scatter_element<mode>_<non_vec_int>")
5229 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5230 attribute with bhfgq.
5231
5232 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5233
5234 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5235
5236 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5237
5238 * config/s390/s390-builtin-types.def: Add flag to indicate the
5239 options under which the function type is needed.
5240 * config/s390/s390-builtins.def: Add flag to indicate the options
5241 under which the builtin is enabled.
5242 * config/s390/s390-builtins.h: Add flags parameter to macro
5243 definitions.
5244 (bflags_for_builtin): New function.
5245 (flags_for_builtin): Renamed to ...
5246 (opflags_for_builtin): ... this.
5247 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5248 flags_for_builtin to bflags_for_builtin and
5249 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5250 * config/s390/s390.c: Add initialization of bflags_builtin and
5251 opflags_builtin arrays.
5252 Remove code for flags_builtin.
5253 (s390_init_builtins): Only create builtin function types if one of
5254 their flags is active.
5255 Only create builtins if all of their flags are active.
5256 (s390_expand_builtin): Rename flags_for_builtin to
5257 opflags_for_builtin.
5258
5259 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5260
5261 * config/s390/vecintrin.h: Remove internal builtins.
5262
5263 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5264
5265 * config/s390/s390.c (s390_secondary_reload): Fix check for
5266 GENERAL_REGS register class.
5267
5268 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5269
5270 * config/s390/s390.c (s390_support_vector_misalignment): Call
5271 default implementation for !TARGET_VX.
5272
5273 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5274
5275 * config/s390/s390.c (s390_legitimate_constant_p): Add
5276 TARGET_VX check.
5277
5278 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5279
5280 * config/s390/s390.c (s390_vector_abi): New variable definition.
5281 (s390_check_type_for_vector_abi): New function.
5282 (TARGET_ASM_FILE_END): New macro definition.
5283 (s390_asm_file_end): New function.
5284 (s390_function_arg): Call s390_check_type_for_vector_abi.
5285 (s390_gimplify_va_arg): Likewise.
5286 * configure: Regenerate.
5287 * configure.ac: Check for .gnu_attribute Binutils feature.
5288
5289 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
5290
5291 PR target/65803
5292 * config/bfin/bfin.c (hwloop_optimize): Initialize
5293 JUMP_LABEL for newly created jump.
5294
5295 2015-06-23 Tristan Gingold <gingold@adacore.com>
5296
5297 * collect-utils.c (collect_wait): Unlink the response file here
5298 instead of...
5299 (do_wait): ...here.
5300 (utils_cleanup): ...and here.
5301
5302 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5303
5304 * df-scan.c: Don't include target-def.h.
5305 * targhooks.c: Likewise.
5306 * config/arm/arm-c.c: Likewise.
5307 * config/i386/i386-c.c: Likewise.
5308 * config/nds32/nds32-cost.c: Likewise.
5309 * config/nds32/nds32-fp-as-gp.c: Likewise.
5310 * config/nds32/nds32-intrinsic.c: Likewise.
5311 * config/nds32/nds32-isr.c: Likewise.
5312 * config/nds32/nds32-md-auxiliary.c: Likewise.
5313 * config/nds32/nds32-memory-manipulation.c: Likewise.
5314 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5315 * config/nds32/nds32-predicates.c: Likewise.
5316
5317 2015-06-23 Richard Biener <rguenther@suse.de>
5318
5319 PR tree-optimization/66636
5320 * tree-vect-stmts.c (vectorizable_store): Properly compute the
5321 def type for further defs for strided stores.
5322
5323 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
5324
5325 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5326 conditional selects.
5327 (setcc_int<mode>, setcc_float<mode>): Reformat.
5328
5329 2015-06-23 Marek Polacek <polacek@redhat.com>
5330
5331 * match.pd ((x + y) - (x | y) -> x & y,
5332 (x + y) - (x & y) -> x | y): New patterns.
5333
5334 2015-06-23 Ludovic Courtès <ludo@gnu.org>
5335
5336 PR 65711
5337 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5338 '-dynamic-linker' within %{!shared: ...}.
5339
5340 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
5341
5342 PR target/66560
5343 * config/i386/predicates.md (addsub_vm_operator): New predicate.
5344 (addsub_vs_operator): Ditto.
5345 (addsub_vs_parallel): Ditto.
5346 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5347 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5348 Put minus RTX before plus and adjust vec_merge selector.
5349 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5350 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5351 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5352 (addsub vec_merge splitters): New combiner splitters.
5353 (addsub vec_select/vec_concat splitters): Ditto.
5354
5355 2015-06-23 Bin Cheng <bin.cheng@arm.com>
5356
5357 PR tree-optimization/66449
5358 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5359 POINTER_PLUS_EXPR for pointers.
5360
5361 2015-06-23 Alan Modra <amodra@gmail.com>
5362
5363 * rtlanal.c (commutative_operand_precedence): Correct comments.
5364 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5365 declaration. Return an int. Distinguish REG,REG return from
5366 others.
5367 (struct simplify_plus_minus_op_data): Make local to function.
5368 (simplify_plus_minus): Don't set canonicalized if merely sorting
5369 registers. Avoid packing ops if nothing changes. White space fixes.
5370
5371 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5372
5373 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5374 -fdump-ada-spec is passed but not if -fsyntax-only is.
5375
5376 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
5377
5378 PR bootstrap/63740
5379 * lra-lives.c (process_bb_lives): Check insn copying the same
5380 reload pseudo and don't create a copy for it.
5381
5382 2015-06-22 Tom de Vries <tom@codesourcery.com>
5383
5384 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5385 for cond_stmt.
5386
5387 2015-06-22 Tom de Vries <tom@codesourcery.com>
5388
5389 * builtins.def (DEF_GOMP_BUILTIN): Test
5390 'flag_tree_parallelize_loops > 1' instead of
5391 'flag_tree_parallelize_loops'. Test flag_cilkplus.
5392
5393 2015-06-22 Tom de Vries <tom@codesourcery.com>
5394
5395 * dominance.c (calculate_dominance_info): Verify dominators if
5396 early-out.
5397
5398 2015-06-22 Marek Polacek <polacek@redhat.com>
5399
5400 * match.pd ((x ^ y) ^ (x | y) -> x & y,
5401 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5402 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5403 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5404
5405 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
5406
5407 PR target/65871
5408 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5409 cost of embedded comparison.
5410
5411 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5412
5413 PR target/65914
5414 * config/rs6000/predicates.md (altivec_register_operand): Permit
5415 virtual stack registers.
5416 (vsx_register_operand): Likewise.
5417 (vfloat_operand): Likewise.
5418 (vint_operand): Likewise.
5419 (vlogical_operand): Likewise.
5420
5421 2015-06-22 Richard Biener <rguenther@suse.de>
5422
5423 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5424 and single_scalar_iteration_cost members.
5425 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5426 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5427 (vect_get_single_scalar_iteration_cost): Remove.
5428 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5429 Use LOOP_VINFO_SCALAR_ITERATION_COST.
5430 * tree-vect-loop.c (destroy_loop_vec_info): Free
5431 scalar_cost_vec.
5432 (vect_get_single_scalar_iteration_cost): Compute result into
5433 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5434 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
5435 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5436 (vect_estimate_min_profitable_iters): Use them.
5437
5438 2015-06-22 Christian Bruel <christian.bruel@st.com>
5439
5440 PR target/52144
5441 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5442 (TARGET_INSERT_ATTRIBUTES): Define.
5443 (thumb_flipper): New var.
5444 * config/arm/arm.opt (-mflip-thumb): New switch.
5445
5446 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5447 Martin Liska <mliska@suse.cz>
5448
5449 PR ipa/65908
5450 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5451 construction of arg_types.
5452 (sem_function::sem_function): Likewise.
5453 (sem_function::~sem_function): Remove destruction of arg_types.
5454 (sem_function::compatible_parm_types_p): New function.
5455 (sem_function::equals_wpa): Reorg matching of return values
5456 and parameter types.
5457 (sem_function::equals_private): Reorg mathcing of argument types.
5458 (sem_function::parse_tree_args): Remove.
5459 * ipa-icf.h (init_wpa): Do not call it.
5460 (parse_tree_args): Remove.
5461 (compatible_parm_types_p): Declare.
5462 (result_type): Remove.
5463 (arg_types): Remove.
5464
5465 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5466
5467 PR ipa/66351
5468 * ipa-polymorphic-call.c
5469 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5470 initializing alias oracle; fix formating; set base_alias_set if it
5471 is known.
5472
5473 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5474
5475 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5476 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5477 (find_inc): Likewise.
5478 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5479 swapping.
5480 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5481 * df-scan.c (df_swap_refs): Remove.
5482 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5483 * dominance.c (link_roots): Use std::swap instead of manually swapping.
5484 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5485 * fold-const.c (fold_relational_const): Likewise.
5486 * genattrtab.c (simplify_test_exp): Likewise.
5487 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5488 gimple_simplify): Likewise.
5489 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5490 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5491 * ipa-devirt.c (add_type_duplicate): Likewise.
5492 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5493 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5494 * lra.c (lra_create_copy): Likewise.
5495 * lto-streamer-out.c (DFS::DFS): Likewise.
5496 * modulo-sched.c (get_sched_window): Likewise.
5497 * omega.c (omega_pretty_print_problem): Likewise.
5498 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5499 * reload1.c (reloads_unique_chain_p): Likewise.
5500 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5501 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5502 use std::swap.
5503 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5504 manually swapping.
5505 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5506 predicate_mem_writes): Likewise.
5507 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5508 * tree-predcom.c (combine_chains): Likewise.
5509 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5510 refs_may_alias_p_1): Likewise.
5511 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5512 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5513 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5514 number_of_iterations_cond): Likewise.
5515 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5516 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5517 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5518 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5519 * tree-vrp.c (extract_range_from_binary_expr_1,
5520 extract_range_from_unary_expr_1): Likewise.
5521
5522 2015-06-20 Marek Polacek <polacek@redhat.com>
5523
5524 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5525
5526 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
5527
5528 PR target/66591
5529 * config/sh/sh.c (prepare_move_operands): Replace subreg
5530 index term with R0 for base and index addressing.
5531
5532 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
5533
5534 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5535 op1 is an fp zero.
5536 (movsf_aarch64): Change condition from register_operand to
5537 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
5538 load1. Change type for alternative 7 to store1.
5539 (movdf_aarch64): Likewise.
5540
5541 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
5542
5543 * config/vax/vax.md: Adjust sign/zero extend patterns to
5544 handle SUBREGs in operands[1].
5545
5546 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5547
5548 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5549 of manually swapping.
5550 (expand_vec_perm_interleave2): Likewise.
5551
5552 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
5553
5554 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5555 reuse bounds created for abnormal ssa names.
5556
5557 2015-06-19 Jakub Jelinek <jakub@redhat.com>
5558
5559 * config/nvptx/nvptx.md (allocate_stack): Rename to...
5560 (allocate_stack_<mode>): ... this, and add :P on both
5561 match_operand and unspec.
5562 (allocate_stack): New expander.
5563
5564 2015-06-19 Christian Bruel <christian.bruel@st.com>
5565
5566 PR target/66541
5567 PR target/52144
5568 * config/arm/arm.c (arm_set_current_function): Handle
5569 explicit default options.
5570
5571 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5572
5573 * config/i386/i386.md (*movsicc_noc_zext): New insn.
5574 (zero-extended cmove with mem peephole2): New pattern.
5575 (cmove with mem peephole2): Merge patterns.
5576
5577 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
5578
5579 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5580
5581 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
5582
5583 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5584 * config/mips/mips.md (*madd4<mode>): Ditto.
5585 (*nmadd3<mode>) Ditto.
5586 (*nmadd4<mode>_fastmath): Ditto.
5587 (*nmadd3<mode>_fastmath): Ditto.
5588 (*nmsub4<mode>): Ditto.
5589 (*nmsub3<mode>): Ditto.
5590 (*nmsub4<mode>_fastmath): Ditto.
5591 (*nmsub3<mode>_fastmath): Ditto.
5592
5593 2015-06-18 Michael Matz <matz@suse.de>
5594
5595 PR middle-end/66253
5596 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5597 grouped strided stores.
5598 (vectorizable_load): Don't use the DR from first_stmt in
5599 the non-SLP grouped strided case.
5600
5601 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5602
5603 PR target/66569
5604 * function.c (assign_bounds): Add arguments assign_regs,
5605 assign_special, assign_bt.
5606 (assign_parms): For vararg functions handle bounds in BT
5607 and special slots after incoming vararg bounds.
5608
5609 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5610
5611 PR middle-end/66568
5612 * cfgexpand.c (expand_return): Handle missing bounds.
5613 (expand_gimple_stmt_1): Likewise.
5614 * tree-chkp.c (chkp_expand_zero_bounds): New.
5615 * tree-chkp.h (chkp_expand_zero_bounds): New.
5616
5617 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5618
5619 PR middle-end/66567
5620 * ipa-chkp.c (chkp_maybe_create_clone): Require
5621 functions to be instrumentable.
5622 * tree-chkp.c (chkp_replace_function_pointer): Use
5623 chkp_instrumentable_p instead of attribute check.
5624
5625 2015-06-18 Richard Biener <rguenther@suse.de>
5626
5627 PR tree-optimization/66510
5628 * tree-vect-stmts.c (vectorizable_load): Properly compute the
5629 number of vector loads for SLP permuted loads.
5630 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5631 check the stride for loop vectorization.
5632 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5633 vectorization factor.
5634 (vect_analyze_group_access): If the group size is not a power
5635 of two require a epilogue loop.
5636 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5637 compute and optimizing and alias test pruning after final
5638 vectorization factor computation.
5639 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5640 vector alignment.
5641 (vect_transform_slp_perm_load): Properly compute the original
5642 number of vector load stmts.
5643
5644 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5645
5646 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5647 "unlikely character , in @var" warning.
5648
5649 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
5650
5651 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5652 (ix86_function_arg_advance): Ditto.
5653 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
5654
5655 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5656
5657 * function.h (struct rtl_data): Remove struct and accessor macros.
5658 * emit-rtl.h (struct rtl_data): Relocate to here.
5659 * Makefile.in (GTFILES): Add emit-rtl.h.
5660 * df-core.c: Include emit-rtl.h.
5661 * genattrtab.c: Likewise.
5662 * genconditions.c: Likewise.
5663 * genpreds.c: Likewise.
5664 * genrecog.c: Likewise.
5665 * regcprop.c: Likewise.
5666 * resource.c: Likewise.
5667 * sched-rgn.c: Likewise.
5668 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5669 * config/i386/winnt.c: Likewise.
5670
5671 2015-06-17 Jakub Jelinek <jakub@redhat.com>
5672
5673 PR middle-end/66429
5674 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5675 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
5676 and has_force_vectorize_loops flags from cfun into
5677 child_cfun.
5678 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5679 if simduid is non-NULL.
5680 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5681 * passes.def (pass_simduid_cleanup): Add new pass after loop
5682 passes.
5683 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5684 indirection from htab argument's type.
5685 (shrink_simd_arrays): New function.
5686 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
5687 Don't call adjust_simduid_builtins if there are no loops.
5688 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5689 (pass_simduid_cleanup::execute): New method.
5690 (make_pass_simduid_cleanup): New function.
5691
5692 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
5693
5694 * tree-core.h (tree_target_option): Make opts field a pointer to a
5695 cl_target_option instead of an instance of the struct.
5696 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5697 the structure.
5698 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5699 TARGET_OPTION_NODE.
5700 (copy_node_stat): Allocate and copy struct cl_target_option.
5701
5702 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5703
5704 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5705 Remove conditional exposure of prototypes.
5706 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5707 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
5708 definitions in tree.h with functions.
5709 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5710 anon_aggrname_p.
5711 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5712
5713 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
5714
5715 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5716 (*cmp<mode>_signed): ... this.
5717 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5718 (*cmp<mode>_unsigned): ... this. Remove %b.
5719
5720 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5721
5722 * coretypes.h: Include input.h and as-a.h.
5723 * rtl.h: Include input.h and as-a.h for generator files.
5724 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5725 * vec.c: Don't include diagnostic-core.h.
5726 * alias.c: Do not include input.h, line-map.h or is-a.h.
5727 * asan.c: Likewise.
5728 * attribs.c: Likewise.
5729 * auto-inc-dec.c: Likewise.
5730 * auto-profile.c: Likewise.
5731 * bb-reorder.c: Likewise.
5732 * bt-load.c: Likewise.
5733 * builtins.c: Likewise.
5734 * caller-save.c: Likewise.
5735 * calls.c: Likewise.
5736 * ccmp.c: Likewise.
5737 * cfg.c: Likewise.
5738 * cfganal.c: Likewise.
5739 * cfgbuild.c: Likewise.
5740 * cfgcleanup.c: Likewise.
5741 * cfgexpand.c: Likewise.
5742 * cfghooks.c: Likewise.
5743 * cfgloop.c: Likewise.
5744 * cfgloop.h: Likewise.
5745 * cfgloopanal.c: Likewise.
5746 * cfgloopmanip.c: Likewise.
5747 * cfgrtl.c: Likewise.
5748 * cgraph.c: Likewise.
5749 * cgraphbuild.c: Likewise.
5750 * cgraphclones.c: Likewise.
5751 * cgraphunit.c: Likewise.
5752 * cilk-common.c: Likewise.
5753 * combine-stack-adj.c: Likewise.
5754 * combine.c: Likewise.
5755 * compare-elim.c: Likewise.
5756 * convert.c: Likewise.
5757 * coverage.c: Likewise.
5758 * cppbuiltin.c: Likewise.
5759 * cprop.c: Likewise.
5760 * cse.c: Likewise.
5761 * cselib.c: Likewise.
5762 * data-streamer-in.c: Likewise.
5763 * data-streamer-out.c: Likewise.
5764 * data-streamer.c: Likewise.
5765 * dbxout.c: Likewise.
5766 * dce.c: Likewise.
5767 * ddg.c: Likewise.
5768 * debug.c: Likewise.
5769 * df-core.c: Likewise.
5770 * df-problems.c: Likewise.
5771 * df-scan.c: Likewise.
5772 * df.h: Likewise.
5773 * dfp.c: Likewise.
5774 * diagnostic-core.h: Likewise.
5775 * diagnostic.c: Likewise.
5776 * dojump.c: Likewise.
5777 * dominance.c: Likewise.
5778 * domwalk.c: Likewise.
5779 * double-int.c: Likewise.
5780 * dse.c: Likewise.
5781 * dumpfile.c: Likewise.
5782 * dumpfile.h: Likewise.
5783 * dwarf2asm.c: Likewise.
5784 * dwarf2cfi.c: Likewise.
5785 * dwarf2out.c: Likewise.
5786 * emit-rtl.c: Likewise.
5787 * et-forest.c: Likewise.
5788 * except.c: Likewise.
5789 * explow.c: Likewise.
5790 * expmed.c: Likewise.
5791 * expr.c: Likewise.
5792 * final.c: Likewise.
5793 * fixed-value.c: Likewise.
5794 * fold-const.c: Likewise.
5795 * function.c: Likewise.
5796 * fwprop.c: Likewise.
5797 * gcc-plugin.h: Likewise.
5798 * gcse.c: Likewise.
5799 * generic-match-head.c: Likewise.
5800 * ggc-page.c: Likewise.
5801 * gimple-builder.c: Likewise.
5802 * gimple-expr.c: Likewise.
5803 * gimple-fold.c: Likewise.
5804 * gimple-iterator.c: Likewise.
5805 * gimple-low.c: Likewise.
5806 * gimple-match-head.c: Likewise.
5807 * gimple-pretty-print.c: Likewise.
5808 * gimple-ssa-isolate-paths.c: Likewise.
5809 * gimple-ssa-strength-reduction.c: Likewise.
5810 * gimple-streamer-in.c: Likewise.
5811 * gimple-streamer-out.c: Likewise.
5812 * gimple-streamer.h: Likewise.
5813 * gimple-walk.c: Likewise.
5814 * gimple.c: Likewise.
5815 * gimplify-me.c: Likewise.
5816 * gimplify.c: Likewise.
5817 * godump.c: Likewise.
5818 * graph.c: Likewise.
5819 * graphite-blocking.c: Likewise.
5820 * graphite-dependences.c: Likewise.
5821 * graphite-interchange.c: Likewise.
5822 * graphite-isl-ast-to-gimple.c: Likewise.
5823 * graphite-optimize-isl.c: Likewise.
5824 * graphite-poly.c: Likewise.
5825 * graphite-scop-detection.c: Likewise.
5826 * graphite-sese-to-poly.c: Likewise.
5827 * graphite.c: Likewise.
5828 * haifa-sched.c: Likewise.
5829 * hw-doloop.c: Likewise.
5830 * ifcvt.c: Likewise.
5831 * init-regs.c: Likewise.
5832 * input.c: Likewise.
5833 * internal-fn.c: Likewise.
5834 * ipa-chkp.c: Likewise.
5835 * ipa-comdats.c: Likewise.
5836 * ipa-cp.c: Likewise.
5837 * ipa-devirt.c: Likewise.
5838 * ipa-icf-gimple.c: Likewise.
5839 * ipa-icf.c: Likewise.
5840 * ipa-inline-analysis.c: Likewise.
5841 * ipa-inline-transform.c: Likewise.
5842 * ipa-inline.c: Likewise.
5843 * ipa-polymorphic-call.c: Likewise.
5844 * ipa-profile.c: Likewise.
5845 * ipa-prop.c: Likewise.
5846 * ipa-pure-const.c: Likewise.
5847 * ipa-ref.c: Likewise.
5848 * ipa-reference.c: Likewise.
5849 * ipa-split.c: Likewise.
5850 * ipa-utils.c: Likewise.
5851 * ipa-visibility.c: Likewise.
5852 * ipa.c: Likewise.
5853 * ira-build.c: Likewise.
5854 * ira-color.c: Likewise.
5855 * ira-conflicts.c: Likewise.
5856 * ira-costs.c: Likewise.
5857 * ira-emit.c: Likewise.
5858 * ira-lives.c: Likewise.
5859 * ira.c: Likewise.
5860 * jump.c: Likewise.
5861 * langhooks.c: Likewise.
5862 * lcm.c: Likewise.
5863 * loop-doloop.c: Likewise.
5864 * loop-init.c: Likewise.
5865 * loop-invariant.c: Likewise.
5866 * loop-iv.c: Likewise.
5867 * loop-unroll.c: Likewise.
5868 * lower-subreg.c: Likewise.
5869 * lra-assigns.c: Likewise.
5870 * lra-coalesce.c: Likewise.
5871 * lra-constraints.c: Likewise.
5872 * lra-eliminations.c: Likewise.
5873 * lra-lives.c: Likewise.
5874 * lra-remat.c: Likewise.
5875 * lra-spills.c: Likewise.
5876 * lra.c: Likewise.
5877 * lto-cgraph.c: Likewise.
5878 * lto-compress.c: Likewise.
5879 * lto-opts.c: Likewise.
5880 * lto-section-in.c: Likewise.
5881 * lto-section-out.c: Likewise.
5882 * lto-streamer-in.c: Likewise.
5883 * lto-streamer-out.c: Likewise.
5884 * lto-streamer.c: Likewise.
5885 * mcf.c: Likewise.
5886 * mode-switching.c: Likewise.
5887 * modulo-sched.c: Likewise.
5888 * omega.c: Likewise.
5889 * omp-low.c: Likewise.
5890 * optabs.c: Likewise.
5891 * opts-global.c: Likewise.
5892 * opts.h: Likewise.
5893 * passes.c: Likewise.
5894 * plugin.c: Likewise.
5895 * postreload-gcse.c: Likewise.
5896 * postreload.c: Likewise.
5897 * predict.c: Likewise.
5898 * pretty-print.h: Likewise.
5899 * print-rtl.c: Likewise.
5900 * print-tree.c: Likewise.
5901 * profile.c: Likewise.
5902 * real.c: Likewise.
5903 * realmpfr.c: Likewise.
5904 * recog.c: Likewise.
5905 * ree.c: Likewise.
5906 * reg-stack.c: Likewise.
5907 * regcprop.c: Likewise.
5908 * reginfo.c: Likewise.
5909 * regrename.c: Likewise.
5910 * regstat.c: Likewise.
5911 * reload.c: Likewise.
5912 * reload1.c: Likewise.
5913 * reorg.c: Likewise.
5914 * resource.c: Likewise.
5915 * rtl-chkp.c: Likewise.
5916 * rtl-error.c: Likewise.
5917 * rtlanal.c: Likewise.
5918 * rtlhooks.c: Likewise.
5919 * sanopt.c: Likewise.
5920 * sched-deps.c: Likewise.
5921 * sched-ebb.c: Likewise.
5922 * sched-rgn.c: Likewise.
5923 * sched-vis.c: Likewise.
5924 * sdbout.c: Likewise.
5925 * sel-sched-dump.c: Likewise.
5926 * sel-sched-ir.c: Likewise.
5927 * sel-sched.c: Likewise.
5928 * sese.c: Likewise.
5929 * shrink-wrap.c: Likewise.
5930 * simplify-rtx.c: Likewise.
5931 * stack-ptr-mod.c: Likewise.
5932 * statistics.c: Likewise.
5933 * stmt.c: Likewise.
5934 * stor-layout.c: Likewise.
5935 * store-motion.c: Likewise.
5936 * streamer-hooks.c: Likewise.
5937 * stringpool.c: Likewise.
5938 * symtab.c: Likewise.
5939 * target-globals.c: Likewise.
5940 * targhooks.c: Likewise.
5941 * toplev.c: Likewise.
5942 * tracer.c: Likewise.
5943 * trans-mem.c: Likewise.
5944 * tree-affine.c: Likewise.
5945 * tree-browser.c: Likewise.
5946 * tree-call-cdce.c: Likewise.
5947 * tree-cfg.c: Likewise.
5948 * tree-cfgcleanup.c: Likewise.
5949 * tree-chkp-opt.c: Likewise.
5950 * tree-chkp.c: Likewise.
5951 * tree-chrec.c: Likewise.
5952 * tree-complex.c: Likewise.
5953 * tree-data-ref.c: Likewise.
5954 * tree-dfa.c: Likewise.
5955 * tree-diagnostic.c: Likewise.
5956 * tree-dump.c: Likewise.
5957 * tree-eh.c: Likewise.
5958 * tree-emutls.c: Likewise.
5959 * tree-if-conv.c: Likewise.
5960 * tree-inline.c: Likewise.
5961 * tree-into-ssa.c: Likewise.
5962 * tree-iterator.c: Likewise.
5963 * tree-loop-distribution.c: Likewise.
5964 * tree-nested.c: Likewise.
5965 * tree-nrv.c: Likewise.
5966 * tree-object-size.c: Likewise.
5967 * tree-outof-ssa.c: Likewise.
5968 * tree-parloops.c: Likewise.
5969 * tree-phinodes.c: Likewise.
5970 * tree-predcom.c: Likewise.
5971 * tree-pretty-print.c: Likewise.
5972 * tree-profile.c: Likewise.
5973 * tree-scalar-evolution.c: Likewise.
5974 * tree-sra.c: Likewise.
5975 * tree-ssa-address.c: Likewise.
5976 * tree-ssa-alias.c: Likewise.
5977 * tree-ssa-ccp.c: Likewise.
5978 * tree-ssa-coalesce.c: Likewise.
5979 * tree-ssa-copy.c: Likewise.
5980 * tree-ssa-copyrename.c: Likewise.
5981 * tree-ssa-dce.c: Likewise.
5982 * tree-ssa-dom.c: Likewise.
5983 * tree-ssa-dse.c: Likewise.
5984 * tree-ssa-forwprop.c: Likewise.
5985 * tree-ssa-ifcombine.c: Likewise.
5986 * tree-ssa-live.c: Likewise.
5987 * tree-ssa-loop-ch.c: Likewise.
5988 * tree-ssa-loop-im.c: Likewise.
5989 * tree-ssa-loop-ivcanon.c: Likewise.
5990 * tree-ssa-loop-ivopts.c: Likewise.
5991 * tree-ssa-loop-manip.c: Likewise.
5992 * tree-ssa-loop-niter.c: Likewise.
5993 * tree-ssa-loop-prefetch.c: Likewise.
5994 * tree-ssa-loop-unswitch.c: Likewise.
5995 * tree-ssa-loop.c: Likewise.
5996 * tree-ssa-math-opts.c: Likewise.
5997 * tree-ssa-operands.c: Likewise.
5998 * tree-ssa-phiopt.c: Likewise.
5999 * tree-ssa-phiprop.c: Likewise.
6000 * tree-ssa-pre.c: Likewise.
6001 * tree-ssa-propagate.c: Likewise.
6002 * tree-ssa-reassoc.c: Likewise.
6003 * tree-ssa-sccvn.c: Likewise.
6004 * tree-ssa-scopedtables.c: Likewise.
6005 * tree-ssa-sink.c: Likewise.
6006 * tree-ssa-strlen.c: Likewise.
6007 * tree-ssa-structalias.c: Likewise.
6008 * tree-ssa-tail-merge.c: Likewise.
6009 * tree-ssa-ter.c: Likewise.
6010 * tree-ssa-threadedge.c: Likewise.
6011 * tree-ssa-threadupdate.c: Likewise.
6012 * tree-ssa-uncprop.c: Likewise.
6013 * tree-ssa-uninit.c: Likewise.
6014 * tree-ssa.c: Likewise.
6015 * tree-ssanames.c: Likewise.
6016 * tree-stdarg.c: Likewise.
6017 * tree-streamer-in.c: Likewise.
6018 * tree-streamer-out.c: Likewise.
6019 * tree-streamer.c: Likewise.
6020 * tree-switch-conversion.c: Likewise.
6021 * tree-tailcall.c: Likewise.
6022 * tree-vect-data-refs.c: Likewise.
6023 * tree-vect-generic.c: Likewise.
6024 * tree-vect-loop-manip.c: Likewise.
6025 * tree-vect-loop.c: Likewise.
6026 * tree-vect-patterns.c: Likewise.
6027 * tree-vect-slp.c: Likewise.
6028 * tree-vect-stmts.c: Likewise.
6029 * tree-vectorizer.c: Likewise.
6030 * tree-vrp.c: Likewise.
6031 * tree.c: Likewise.
6032 * tsan.c: Likewise.
6033 * ubsan.c: Likewise.
6034 * valtrack.c: Likewise.
6035 * value-prof.c: Likewise.
6036 * var-tracking.c: Likewise.
6037 * varasm.c: Likewise.
6038 * varpool.c: Likewise.
6039 * vmsdbgout.c: Likewise.
6040 * vtable-verify.c: Likewise.
6041 * web.c: Likewise.
6042 * wide-int.cc: Likewise.
6043 * xcoffout.c: Likewise.
6044 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
6045 * common/common-targhooks.c: Likewise.
6046 * config/aarch64/aarch64-builtins.c: Likewise.
6047 * config/aarch64/aarch64.c: Likewise.
6048 * config/alpha/alpha.c: Likewise.
6049 * config/arc/arc.c: Likewise.
6050 * config/arm/aarch-common.c: Likewise.
6051 * config/arm/arm-builtins.c: Likewise.
6052 * config/arm/arm-c.c: Likewise.
6053 * config/arm/arm.c: Likewise.
6054 * config/avr/avr-c.c: Likewise.
6055 * config/avr/avr-log.c: Likewise.
6056 * config/avr/avr.c: Likewise.
6057 * config/bfin/bfin.c: Likewise.
6058 * config/c6x/c6x.c: Likewise.
6059 * config/cr16/cr16.c: Likewise.
6060 * config/cris/cris.c: Likewise.
6061 * config/darwin-c.c: Likewise.
6062 * config/darwin.c: Likewise.
6063 * config/default-c.c: Likewise.
6064 * config/epiphany/epiphany.c: Likewise.
6065 * config/epiphany/mode-switch-use.c: Likewise.
6066 * config/epiphany/resolve-sw-modes.c: Likewise.
6067 * config/fr30/fr30.c: Likewise.
6068 * config/frv/frv.c: Likewise.
6069 * config/ft32/ft32.c: Likewise.
6070 * config/glibc-c.c: Likewise.
6071 * config/h8300/h8300.c: Likewise.
6072 * config/i386/i386-c.c: Likewise.
6073 * config/i386/i386.c: Likewise.
6074 * config/i386/msformat-c.c: Likewise.
6075 * config/i386/winnt-cxx.c: Likewise.
6076 * config/i386/winnt-stubs.c: Likewise.
6077 * config/i386/winnt.c: Likewise.
6078 * config/ia64/ia64-c.c: Likewise.
6079 * config/ia64/ia64.c: Likewise.
6080 * config/iq2000/iq2000.c: Likewise.
6081 * config/lm32/lm32.c: Likewise.
6082 * config/m32c/m32c-pragma.c: Likewise.
6083 * config/m32c/m32c.c: Likewise.
6084 * config/m32r/m32r.c: Likewise.
6085 * config/m68k/m68k.c: Likewise.
6086 * config/mcore/mcore.c: Likewise.
6087 * config/mep/mep-pragma.c: Likewise.
6088 * config/mep/mep.c: Likewise.
6089 * config/microblaze/microblaze-c.c: Likewise.
6090 * config/microblaze/microblaze.c: Likewise.
6091 * config/mips/mips.c: Likewise.
6092 * config/mmix/mmix.c: Likewise.
6093 * config/mn10300/mn10300.c: Likewise.
6094 * config/moxie/moxie.c: Likewise.
6095 * config/msp430/msp430-c.c: Likewise.
6096 * config/msp430/msp430.c: Likewise.
6097 * config/nds32/nds32-cost.c: Likewise.
6098 * config/nds32/nds32-fp-as-gp.c: Likewise.
6099 * config/nds32/nds32-intrinsic.c: Likewise.
6100 * config/nds32/nds32-isr.c: Likewise.
6101 * config/nds32/nds32-md-auxiliary.c: Likewise.
6102 * config/nds32/nds32-memory-manipulation.c: Likewise.
6103 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6104 * config/nds32/nds32-predicates.c: Likewise.
6105 * config/nds32/nds32.c: Likewise.
6106 * config/nios2/nios2.c: Likewise.
6107 * config/nvptx/nvptx.c: Likewise.
6108 * config/pa/pa.c: Likewise.
6109 * config/pdp11/pdp11.c: Likewise.
6110 * config/rl78/rl78-c.c: Likewise.
6111 * config/rl78/rl78.c: Likewise.
6112 * config/rs6000/rs6000-c.c: Likewise.
6113 * config/rs6000/rs6000.c: Likewise.
6114 * config/rx/rx.c: Likewise.
6115 * config/s390/s390-c.c: Likewise.
6116 * config/s390/s390.c: Likewise.
6117 * config/sh/sh-c.c: Likewise.
6118 * config/sh/sh-mem.cc: Likewise.
6119 * config/sh/sh.c: Likewise.
6120 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6121 * config/sh/sh_treg_combine.cc: Likewise.
6122 * config/sol2-c.c: Likewise.
6123 * config/sol2-cxx.c: Likewise.
6124 * config/sol2-stubs.c: Likewise.
6125 * config/sol2.c: Likewise.
6126 * config/sparc/sparc-c.c: Likewise.
6127 * config/sparc/sparc.c: Likewise.
6128 * config/spu/spu-c.c: Likewise.
6129 * config/spu/spu.c: Likewise.
6130 * config/stormy16/stormy16.c: Likewise.
6131 * config/tilegx/mul-tables.c: Likewise.
6132 * config/tilegx/tilegx-c.c: Likewise.
6133 * config/tilegx/tilegx.c: Likewise.
6134 * config/tilepro/mul-tables.c: Likewise.
6135 * config/tilepro/tilepro-c.c: Likewise.
6136 * config/tilepro/tilepro.c: Likewise.
6137 * config/v850/v850-c.c: Likewise.
6138 * config/v850/v850.c: Likewise.
6139 * config/vax/vax.c: Likewise.
6140 * config/visium/visium.c: Likewise.
6141 * config/vms/vms-c.c: Likewise.
6142 * config/vms/vms.c: Likewise.
6143 * config/vxworks.c: Likewise.
6144 * config/winnt-c.c: Likewise.
6145 * config/xtensa/xtensa.c: Likewise.
6146
6147 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
6148
6149 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6150 function.
6151 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6152
6153 2015-06-17 Richard Biener <rguenther@suse.de>
6154
6155 PR tree-optimization/66251
6156 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6157 stmts for SLP strided stores.
6158
6159 Revert
6160 2015-05-22 Richard Biener <rguenther@suse.de>
6161
6162 PR tree-optimization/66251
6163 * tree-vect-stmts.c (vectorizable_conversion): Properly
6164 set STMT_VINFO_VEC_STMT even for the SLP case.
6165
6166 2015-05-26 Michael Matz <matz@suse.de>
6167
6168 PR middle-end/66251
6169 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6170 STMT_VINFO_VEC_STMT, also with SLP.
6171
6172 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
6173
6174 PR target/56766
6175 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6176 (*avx_addsubv4df3_1s): Ditto.
6177 (*sse3_addsubv2df3_1): Ditto.
6178 (*sse3_addsubv2df3_1s): Ditto.
6179 (*avx_addsubv8sf3_1): Ditto.
6180 (*avx_addsubv8sf3_1s): Ditto.
6181 (*sse3_addsubv4sf3_1): Ditto.
6182 (*sse3_addsubv4sf3_1s): Ditto.
6183
6184 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
6185
6186 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6187 (SYSROOT_SUFFIX_SPEC): Update.
6188 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6189 (STARTFILE_PREFIX_SPEC): Update.
6190 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6191 (MULTILIB_REQUIRED): New.
6192 (MULTILIB_OSDIRNAMES): New.
6193 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6194 (MULTILIB_REQUIRED): New.
6195 (MULTILIB_OSDIRNAMES): New.
6196
6197 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
6198
6199 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6200 * config/aarch64/aarch64-options-extensions.def: Update "fP",
6201 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
6202 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6203 (AARCH64_FL_PAN): New.
6204 (AARCH64_FL_LOR): New.
6205 (AARCH64_FL_RDMA): New.
6206 (AARCH64_FL_FOR_ARCH8_1): New.
6207 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6208 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6209
6210 2015-06-16 Martin Liska <mliska@suse.cz>
6211
6212 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6213 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6214 guard.
6215
6216 2015-06-16 Richard Biener <rguenther@suse.de>
6217
6218 * tree-vect-stmts.c (vectorizable_store): Adjust.
6219 (vectorizable_load): Likewise.
6220 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6221 Simplify.
6222 (vect_create_data_ref_ptr): Likewise.
6223 (bump_vector_ptr): Adjust.
6224
6225 2015-06-16 Richard Biener <rguenther@suse.de>
6226
6227 * tree-vect-stmts.c (vectorizable_load): Properly start loads
6228 with the first element if this is grouped loads.
6229
6230 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
6231
6232 * config/arm/arm-protos.h (struct tune_params): Rename
6233 log_op_non_sc to log_op_non_short_circuit, and rename enum
6234 values to expand SC to SHORT_CIRCUIT.
6235 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6236 to LOG_OP_NON_SHORT_CIRCUIT.
6237 (arm_fastmul_tune):Likewise
6238 (arm_strongarm_tune): Likewise.
6239 (arm_xscale_tune): Likewise.
6240 (arm_9e_tune): Likewise.
6241 (arm_marvell_pj4_tune): Likewise.
6242 (arm_v6t2_tune): Likewise.
6243 (arm_cortex_tune): Likewise.
6244 (arm_cortex_a8_tune): Likewise.
6245 (arm_cortex_a7_tune): Likewise.
6246 (arm_cortex_a15_tune): Likewise.
6247 (arm_cortex_a53_tune): Likewise.
6248 (arm_cortex_a57_tune): Likewise.
6249 (arm_xgene1_tune): Likewise.
6250 (arm_cortex_a5_tune): Likewise.
6251 (arm_cortex_a9_tune): Likewise.
6252 (arm_cortex_a12_tune): Likewise.
6253 (arm_v7m_tune): Likewise.
6254 (arm_cortex_m7_tune): Likewise.
6255 (arm_v6m_tune): Likewise.
6256 (arm_fa726te_tune): Likewise.
6257
6258 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
6259
6260 * altivec.md: Delete UNSPEC_VMLADDUHM.
6261 (mulv4si3_p8): New pattern.
6262 (mulv4si3): Use it for POWER8.
6263 (mulv8hi3): Use vmladduhm with zero addend.
6264 (altivec_vmladduhm): Descriptive RTL.
6265
6266 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
6267
6268 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6269 to use neon_move instead of mov_imm.
6270 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6271 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6272
6273 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6274 aarch64_float_const_zero_rtx_p check before TFmode check.
6275 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6276 an fp zero.
6277 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
6278 code and attributes to match. Change condition from register_operand
6279 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
6280 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
6281 to store2.
6282
6283 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
6284
6285 PR debug/66535
6286 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6287 there is no parent.
6288
6289 2015-06-14 Shiva Chen <shiva0217@gmail.com>
6290
6291 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6292 HOST_WIDE_INT parameter.
6293
6294 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
6295
6296 PR ipa/66181
6297 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6298 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6299 TYPE_NO_FORCE_BLK.
6300 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6301
6302 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
6303
6304 * rtl.h (classify_insn): Declare.
6305 * emit-rtl.c (classify_insn): Move to...
6306 * rtl.c: ...here and add generator support.
6307 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6308 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6309 * genemit.c (gen_emit_seq): New function.
6310 (gen_expand, gen_split): Use it.
6311
6312 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
6313
6314 * tree.c (make_vector_stat): Fix comment to state that the
6315 function returns a VECTOR_CST.
6316
6317 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
6318
6319 * gensupport.h (add_implicit_parallel): Declare.
6320 * genrecog.c (add_implicit_parallel): Move to...
6321 * gensupport.c (add_implicit_parallel): ...here.
6322 (process_one_cond_exec): Use it.
6323 * genemit.c (gen_insn): Likewise.
6324
6325 2015-06-13 Iain Sandoe <iain@codesourcery.com>
6326
6327 PR bootstrap/66448
6328 * passes.c (rest_of_decl_compilation): Do not register globals for
6329 early debug if they are declared in built-ins.
6330
6331 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
6332
6333 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6334
6335 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6336
6337 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6338 manually swapping.
6339 (noce_try_cmove_arith): Likewise.
6340 (noce_get_alt_condition): Likewise.
6341
6342 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6343
6344 * common/config/i386/i386-common.c
6345 (OPTION_MASK_ISA_MWAITX_SET): New.
6346 (ix86_handle_option): Handle mwaitx.
6347 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6348 (x86_64-*-*): Likewise.
6349 * config/i386/mwaitxintrin.h: New header.
6350 * config/i386/cpuid.h (bit_MWAITX): Define.
6351 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6352 MWAITX support.
6353 * config/i386/i386.opt (mwaitx): New.
6354 * config/i386/i386-builtin-types.def
6355 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6356 * config/i386/i386-c.c: Define __MWAITX__ if needed.
6357 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6358 (PTA_MWAITX): New.
6359 (ix86_option_override_internal): Handle new option.
6360 (processor_alias_table): Added PTA_MWAITX.
6361 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6362 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6363 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6364 IX86_BUILTIN_MONITORX built-ins.
6365 * config/i386/i386.h (TARGET_MWAITX): New.
6366 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6367 UNSPEC_MONITORX.
6368 (mwaitx): New pattern.
6369 (monitorx_<mode>): New pattern.
6370 * config/i386/x86intrin.h: Include mwaitxintrin.h.
6371 * doc/extend.texi: Document monitorx and mwaitx builtins.
6372 * doc/invoke.texi: Document -mmwaitx option.
6373
6374 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
6375
6376 * emit-rtl.c (need_atomic_barrier_p): Mask model with
6377 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
6378
6379 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6380
6381 * dbxout.c (xcoff_debug_hooks): Provide a function for
6382 register_main_translation_unit hook.
6383
6384 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6385
6386 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6387 variants cases from switch.
6388 (rs6000_post_atomic_barrier): Same.
6389 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6390 (rs6000_expand_atomic_exchange): Same.
6391 (rs6000_expand_atomic_op): Same.
6392 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6393 SYNC variants cases from switch.
6394 (atomic_load): Same.
6395 (atomic_store): Same.
6396
6397 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
6398
6399 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6400 CONST_INT for goto.
6401
6402 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
6403
6404 PR bootstrap/66448
6405 * dwarf2out.c (check_die): Check for common duplicate attributes.
6406 (add_location_or_const_value_attribute): Do not add duplicate
6407 attributes.
6408 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6409 time around.
6410 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6411 (gen_type_die_with_usage): Call check_die.
6412 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6413
6414 2015-06-11 Jason Merrill <jason@redhat.com>
6415
6416 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6417 dies.
6418
6419 2015-06-11 Marek Polacek <polacek@redhat.com>
6420
6421 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6422
6423 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
6424
6425 PR bootstrap/66252
6426 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6427 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6428 (*addx_extend_sp32): Fix pasto.
6429 (*subx_extend): Rename into...
6430 (*subx_extend_sp32): ...this.
6431 (*adddi3_extend_sp32): Add earlyclobber.
6432 (*subdi3_insn_sp32): Likewise.
6433 (*subdi3_extend_sp32): Likewise.
6434 (*and_not_di_sp32): Likewise.
6435 (*or_not_di_sp32): Likewise.
6436 (*xor_not_di_sp32): Likewise.
6437 (*negdi2_sp32): Likewise.
6438 (*one_cmpldi2_sp32): Likewise.
6439
6440 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
6441
6442 * debug.h (struct gcc_debug_hooks): Add a
6443 register_main_translation_unit hook.
6444 * debug.c (do_nothing_debug_hooks): Provide a function for this
6445 new hook.
6446 * dbxout.c (dbx_debug_hooks): Likewise.
6447 * sdbout.c (sdb_debug_hooks): Likewise.
6448 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6449 * dwarf2out.c (main_translation_unit): New global variable.
6450 (dwarf2out_register_main_translation_unit): New function
6451 implementing the new hook.
6452 (dwarf2_debug_hooks): Assign
6453 dwarf2out_register_main_translation_unit to this new hook.
6454 (dwarf2out_init): Associate any main translation unit to
6455 comp_unit_die ().
6456
6457 2015-06-11 Marek Polacek <polacek@redhat.com>
6458
6459 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6460
6461 2015-06-11 Marek Polacek <polacek@redhat.com>
6462
6463 * match.pd: Use single_use throughout.
6464
6465 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6466
6467 * config/arm/arm.c (arm_option_params_internal): When optimising
6468 for speed set max_insns_skipped when arm_restrict_it.
6469
6470 2015-06-11 Christian Bruel <christian.bruel@st.com>
6471
6472 PR target/52144
6473 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6474 macros in ...
6475 (arm_cpu_builtins): New function.
6476 (arm_pragma_target_parse): Call arm_cpu_builtins.
6477 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6478 (arm_register_target_pragmas): Likewise.
6479 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6480 Call arm_register_target_pragmas.
6481 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6482 (arm_pragma_target_parse): Likewise.
6483
6484 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
6485
6486 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6487 of the second operand.
6488
6489 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
6490
6491 PR target/66473
6492 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6493 to prepare mask operand for AVX512 modes.
6494
6495 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6496
6497 PR target/66474
6498 * doc/md.texi (Machine Constraints): Document that on the PowerPC
6499 if you use a constraint that targets a VSX register, you must use
6500 %x<n> in the template.
6501
6502 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
6503
6504 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6505 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6506 (define_insn "trap"): New definition.
6507
6508 2015-06-10 Richard Biener <rguenther@suse.de>
6509
6510 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6511 out from ...
6512 (vect_supported_load_permutation_p): ... here. Handle
6513 supportable permutations in reductions.
6514 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6515 for vectorizing strided group loads.
6516
6517 2015-06-10 Jakub Jelinek <jakub@redhat.com>
6518
6519 PR target/66470
6520 * config/i386/i386.c (ix86_split_long_move): For collisions
6521 involving direct tls segment refs, move the UNSPEC_TP possibly
6522 wrapped in ZERO_EXTEND out of the address for lea, to each of
6523 the memory loads.
6524
6525 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6526
6527 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6528 dmb sy. Adjust tabs.
6529
6530 2015-06-10 Tom de Vries <tom@codesourcery.com>
6531
6532 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6533
6534 2015-06-10 Martin Liska <mliska@suse.cz>
6535
6536 PR bootstrap/66471
6537 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6538 all enum values in mem_alloc_origin.
6539 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6540 name.
6541 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6542 * bitmap.c (bitmap_register): Likewise.
6543 (dump_bitmap_statistics): Likewise.
6544 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6545 (ggc_record_overhead): Likewise.
6546 * hash-map.h: Likewise.
6547 * hash-set.h: Likewise.
6548 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6549 * hash-table.h: Likewise.
6550 * vec.c (vec_prefix::register_overhead): Likewise.
6551 (vec_prefix::release_overhead): Likewise.
6552 (dump_vec_loc_statistics): Likewise.
6553
6554 2015-06-09 Christian Bruel <christian.bruel@st.com>
6555
6556 PR target/52144
6557 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6558 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6559 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6560 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6561 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6562 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6563 (arm_valid_target_attribute_p): Likewise.
6564 (arm_set_current_function, arm_can_inline_p): Likewise.
6565 (arm_valid_target_attribute_rec): Likewise.
6566 (arm_previous_fndecl): New variable.
6567 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6568 (TARGET_CAN_INLINE_P): Define.
6569 (arm_asm_trampoline_template): Emit mode.
6570 (arm_file_start): Don't set unified syntax.
6571 (arm_declare_function_name): Set unified syntax and mode.
6572 (arm_option_override): Init target_option_default_node.
6573 and target_option_current_node.
6574 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6575 (*call_symbol): Likewise.
6576 * doc/extend.texi: Document ARM/Thumb target attribute.
6577 * doc/invoke.texi: Likewise.
6578
6579 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6580
6581 Revert:
6582 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6583 PR rtl-optimization/64164
6584 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6585 * tree-ssa-copyrename.c: Removed.
6586 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6587 -ftree-coalesce-vars.
6588 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6589 * common.opt (ftree-copyrename): Ignore.
6590 (ftree-coalesce-inlined-vars): Likewise.
6591 * doc/invoke.texi: Remove the ignored options above.
6592 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6593 * tree-ssa-coalesce.h: ... here.
6594 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6595 headers required by it.
6596 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6597 across variables when flag_tree_coalesce_vars. Check register
6598 use and promoted modes to allow coalescing. Moved to
6599 tree-ssa-coalesce.c.
6600 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6601 with its member functions to tree-ssa-coalesce.c.
6602 (var_map_base_init): Likewise. Renamed to
6603 compute_samebase_partition_bases.
6604 (partition_view_normal): Drop want_bases parameter.
6605 (partition_view_bitmap): Likewise.
6606 * tree-ssa-live.h: Adjust declarations.
6607 * tree-ssa-coalesce.c: Include explow.h.
6608 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6609 default defs at the entry point.
6610 (dump_part_var_map): New.
6611 (compute_optimized_partition_bases): New, called by...
6612 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6613 of compute_samebase_partition_bases. Adjust.
6614 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6615 * cfgexpand.c (leader_merge): New.
6616 (get_rtl_for_parm_ssa_default_def): New.
6617 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6618 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6619 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6620 redundant MEM attr setting.
6621 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6622 from...
6623 (expand_one_stack_var): ... this. New wrapper to check and
6624 skip already expanded SSA partitions.
6625 (record_alignment_for_reg_var): New, factored out of...
6626 (expand_one_var): ... this.
6627 (expand_one_ssa_partition): New.
6628 (adjust_one_expanded_partition_var): New.
6629 (expand_one_register_var): Check and skip already expanded SSA
6630 partitions.
6631 (expand_used_vars): Don't create DECLs for anonymous SSA
6632 names. Expand all SSA partitions, then adjust all SSA names.
6633 (pass::execute): Replace the loops that set
6634 SA.partition_to_pseudo from partition leaders and cleared
6635 DECL_RTL for multi-location variables, and that which used to
6636 rename vars and set attrs, with one that clears DECL_RTL and
6637 checks that PARMs and RESULTs default_defs match DECL_RTL.
6638 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6639 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6640 * explow.c (promote_ssa_mode): New.
6641 * explow.h (promote_ssa_mode): Declare.
6642 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6643 * function.c: Include cfgexpand.h.
6644 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6645 (use_register_for_parm_decl): Wrapper for the above to
6646 special-case the result_ptr.
6647 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6648 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6649 multiple locations.
6650 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6651 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6652 (assign_parm_setup_block): Prefer SSA-assigned location.
6653 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6654 if stack_parm is NULL.
6655 (assign_parm_setup_stack): Prefer SSA-assigned location.
6656 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6657 rtl before testing for pointer bounds. Special-case result_ptr.
6658 (expand_function_start): Maybe reset DECL_RTL of result.
6659 Prefer SSA-assigned location for result and static chain.
6660 Factor out DECL_RESULT and SET_DECL_RTL.
6661 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6662 anonymous SSA names. Use promote_ssa_mode.
6663 (get_temp_reg): Likewise.
6664 (remove_ssa_form): Adjust.
6665 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6666 and get its reg_usage for reg invalidation.
6667 (compute_bb_dataflow): Pass it insn.
6668 (emit_notes_in_bb): Likewise.
6669 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6670 fail assert on conversion between unsigned types.
6671
6672 2015-06-09 Tom de Vries <tom@codesourcery.com>
6673
6674 PR tree-optimization/65460
6675 * omp-low.c (expand_omp_target): Set parallelized_function on
6676 cgraph_node for child_fn.
6677
6678 2015-06-09 Tom de Vries <tom@codesourcery.com>
6679
6680 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6681 parallelized_function before add_new_function.
6682
6683 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
6684
6685 * gcc-plugin.h: Move decls to plugin.h and include it.
6686 * plugin.h: Relocate decls from gcc-plugin.h
6687 * ggc-page.c: Include required header files.
6688 * passes.c: Likewise.
6689 * cgraphunit.c: Likewise.
6690
6691 2015-06-09 Tom de Vries <tom@codesourcery.com>
6692
6693 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6694
6695 2015-06-09 Jason Merrill <jason@redhat.com>
6696
6697 PR bootstrap/66448
6698 * toplev.c (check_global_declaration): Don't warn about a clone.
6699
6700 2015-06-09 Marek Polacek <polacek@redhat.com>
6701
6702 PR tree-optimization/66299
6703 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6704 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6705 patterns.
6706
6707 2015-06-09 Richard Biener <rguenther@suse.de>
6708
6709 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6710 (vect_analyze_slp_instance): Instead do not falsely drop
6711 load permutations.
6712
6713 2015-06-09 Richard Biener <rguenther@suse.de>
6714
6715 PR middle-end/66423
6716 * match.pd: Handle A % (unsigned)(1 << B).
6717
6718 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
6719
6720 * varasm.c (output_object_block_htab): Remove.
6721 (output_object_block_compare): New.
6722 (output_object_blocks): Sort named object_blocks before outputting
6723 them.
6724
6725 2015-06-09 Richard Biener <rguenther@suse.de>
6726
6727 PR tree-optimization/66419
6728 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6729 consider GROUP_GAP when detecting a perfect subchain.
6730
6731 2015-06-09 Nick Clifton <nickc@redhat.com>
6732
6733 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6734 place read only data in the .frodata section.
6735
6736 2015-06-09 Shiva Chen <shiva0217@gmail.com>
6737
6738 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6739 (atomic_store<mode>): Likewise.
6740
6741 2015-06-09 Richard Biener <rguenther@suse.de>
6742
6743 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6744
6745 2015-06-09 Richard Biener <rguenther@suse.de>
6746
6747 PR middle-end/66413
6748 * tree-inline.c (insert_init_debug_bind): Unshare value.
6749
6750 2015-06-09 Richard Biener <rguenther@suse.de>
6751
6752 PR tree-optimization/66396
6753 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6754 Rename virtual operands.
6755
6756 2015-06-09 Tom de Vries <tom@codesourcery.com>
6757
6758 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6759 always return false.
6760
6761 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6762
6763 PR rtl-optimization/64164
6764 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6765 * tree-ssa-copyrename.c: Removed.
6766 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6767 -ftree-coalesce-vars.
6768 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6769 * common.opt (ftree-copyrename): Ignore.
6770 (ftree-coalesce-inlined-vars): Likewise.
6771 * doc/invoke.texi: Remove the ignored options above.
6772 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6773 * tree-ssa-coalesce.h: ... here.
6774 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6775 headers required by it.
6776 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6777 across variables when flag_tree_coalesce_vars. Check register
6778 use and promoted modes to allow coalescing. Moved to
6779 tree-ssa-coalesce.c.
6780 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6781 with its member functions to tree-ssa-coalesce.c.
6782 (var_map_base_init): Likewise. Renamed to
6783 compute_samebase_partition_bases.
6784 (partition_view_normal): Drop want_bases parameter.
6785 (partition_view_bitmap): Likewise.
6786 * tree-ssa-live.h: Adjust declarations.
6787 * tree-ssa-coalesce.c: Include explow.h.
6788 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6789 default defs at the entry point.
6790 (dump_part_var_map): New.
6791 (compute_optimized_partition_bases): New, called by...
6792 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6793 of compute_samebase_partition_bases. Adjust.
6794 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6795 * cfgexpand.c (leader_merge): New.
6796 (get_rtl_for_parm_ssa_default_def): New.
6797 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6798 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6799 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6800 redundant MEM attr setting.
6801 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6802 from...
6803 (expand_one_stack_var): ... this. New wrapper to check and
6804 skip already expanded SSA partitions.
6805 (record_alignment_for_reg_var): New, factored out of...
6806 (expand_one_var): ... this.
6807 (expand_one_ssa_partition): New.
6808 (adjust_one_expanded_partition_var): New.
6809 (expand_one_register_var): Check and skip already expanded SSA
6810 partitions.
6811 (expand_used_vars): Don't create DECLs for anonymous SSA
6812 names. Expand all SSA partitions, then adjust all SSA names.
6813 (pass::execute): Replace the loops that set
6814 SA.partition_to_pseudo from partition leaders and cleared
6815 DECL_RTL for multi-location variables, and that which used to
6816 rename vars and set attrs, with one that clears DECL_RTL and
6817 checks that PARMs and RESULTs default_defs match DECL_RTL.
6818 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6819 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6820 * explow.c (promote_ssa_mode): New.
6821 * explow.h (promote_ssa_mode): Declare.
6822 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6823 * function.c: Include cfgexpand.h.
6824 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6825 (use_register_for_parm_decl): Wrapper for the above to
6826 special-case the result_ptr.
6827 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6828 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6829 multiple locations.
6830 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6831 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6832 (assign_parm_setup_block): Prefer SSA-assigned location.
6833 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6834 if stack_parm is NULL.
6835 (assign_parm_setup_stack): Prefer SSA-assigned location.
6836 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6837 rtl before testing for pointer bounds. Special-case result_ptr.
6838 (expand_function_start): Maybe reset DECL_RTL of result.
6839 Prefer SSA-assigned location for result and static chain.
6840 Factor out DECL_RESULT and SET_DECL_RTL.
6841 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6842 anonymous SSA names. Use promote_ssa_mode.
6843 (get_temp_reg): Likewise.
6844 (remove_ssa_form): Adjust.
6845 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6846 and get its reg_usage for reg invalidation.
6847 (compute_bb_dataflow): Pass it insn.
6848 (emit_notes_in_bb): Likewise.
6849 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6850 fail assert on conversion between unsigned types.
6851
6852 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6853
6854 PR debug/58315
6855 * tree-inline.c (reset_debug_binding): New.
6856 (reset_debug_bindings): Likewise.
6857 (expand_call_inline): Call it.
6858
6859 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6860
6861 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6862 TYPE_STRING_FLAG.
6863
6864 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6865
6866 * lto-streamer-out.c (lto_output_location): Stream
6867 reserved locations correctly.
6868 * lto-streamer-in.c (lto_output_location): Likewise.
6869
6870 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
6871
6872 * coretypes.h: Include hash-table.h and hash-set.h for host files.
6873 * ggc.h: Don't include statistics.h>
6874 * hash-map.h: Remove all includes.
6875 * hash-set.h: Likewise.
6876 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6877 the include list. Remove <new>.
6878 * inchash.h: Remove all includes.
6879 * mem-stats.h: Likewise.
6880 * vec.h: No special processing for generators or ggc.
6881 * alias.c : Adjust include files.
6882 * alloc-pool.c : Likewise.
6883 * alloc-pool.h : Likewise.
6884 * asan.c : Likewise.
6885 * attribs.c : Likewise.
6886 * auto-inc-dec.c : Likewise.
6887 * auto-profile.c : Likewise.
6888 * bb-reorder.c : Likewise.
6889 * bitmap.c : Likewise.
6890 * bitmap.h : Likewise.
6891 * bt-load.c : Likewise.
6892 * builtins.c : Likewise.
6893 * caller-save.c : Likewise.
6894 * calls.c : Likewise.
6895 * ccmp.c : Likewise.
6896 * cfg.c : Likewise.
6897 * cfganal.c : Likewise.
6898 * cfgbuild.c : Likewise.
6899 * cfgcleanup.c : Likewise.
6900 * cfgexpand.c : Likewise.
6901 * cfghooks.c : Likewise.
6902 * cfgloop.c : Likewise.
6903 * cfgloop.h : Likewise.
6904 * cfgloopanal.c : Likewise.
6905 * cfgloopmanip.c : Likewise.
6906 * cfgrtl.c : Likewise.
6907 * cgraph.c : Likewise.
6908 * cgraphbuild.c : Likewise.
6909 * cgraphclones.c : Likewise.
6910 * cgraphunit.c : Likewise.
6911 * cilk-common.c : Likewise.
6912 * combine-stack-adj.c : Likewise.
6913 * combine.c : Likewise.
6914 * compare-elim.c : Likewise.
6915 * context.c : Likewise.
6916 * convert.c : Likewise.
6917 * coverage.c : Likewise.
6918 * cppbuiltin.c : Likewise.
6919 * cprop.c : Likewise.
6920 * cse.c : Likewise.
6921 * cselib.c : Likewise.
6922 * data-streamer-in.c : Likewise.
6923 * data-streamer-out.c : Likewise.
6924 * data-streamer.c : Likewise.
6925 * data-streamer.h : Likewise.
6926 * dbxout.c : Likewise.
6927 * dce.c : Likewise.
6928 * ddg.c : Likewise.
6929 * debug.c : Likewise.
6930 * df-core.c : Likewise.
6931 * df-problems.c : Likewise.
6932 * df-scan.c : Likewise.
6933 * df.h : Likewise.
6934 * dfp.c : Likewise.
6935 * dojump.c : Likewise.
6936 * dominance.c : Likewise.
6937 * domwalk.c : Likewise.
6938 * double-int.c : Likewise.
6939 * dse.c : Likewise.
6940 * dumpfile.c : Likewise.
6941 * dwarf2asm.c : Likewise.
6942 * dwarf2cfi.c : Likewise.
6943 * dwarf2out.c : Likewise.
6944 * emit-rtl.c : Likewise.
6945 * et-forest.c : Likewise.
6946 * except.c : Likewise.
6947 * except.h : Likewise.
6948 * explow.c : Likewise.
6949 * expmed.c : Likewise.
6950 * expr.c : Likewise.
6951 * final.c : Likewise.
6952 * fixed-value.c : Likewise.
6953 * fold-const.c : Likewise.
6954 * function.c : Likewise.
6955 * fwprop.c : Likewise.
6956 * gcc-plugin.h : Likewise.
6957 * gcc.c : Likewise.
6958 * gcse-common.c : Likewise.
6959 * gcse.c : Likewise.
6960 * genattrtab.c : Likewise.
6961 * genautomata.c : Likewise.
6962 * genconditions.c : Likewise.
6963 * genemit.c : Likewise.
6964 * generic-match-head.c : Likewise.
6965 * genextract.c : Likewise.
6966 * gengtype-state.c : Likewise.
6967 * gengtype.c : Likewise.
6968 * genhooks.c : Likewise.
6969 * genmatch.c : Likewise.
6970 * genmodes.c : Likewise.
6971 * genrecog.c : Likewise.
6972 * gensupport.c : Likewise.
6973 * ggc-common.c : Likewise.
6974 * ggc-internal.h : Likewise.
6975 * ggc-none.c : Likewise.
6976 * ggc-page.c : Likewise.
6977 * gimple-builder.c : Likewise.
6978 * gimple-expr.c : Likewise.
6979 * gimple-fold.c : Likewise.
6980 * gimple-iterator.c : Likewise.
6981 * gimple-low.c : Likewise.
6982 * gimple-match-head.c : Likewise.
6983 * gimple-pretty-print.c : Likewise.
6984 * gimple-ssa-isolate-paths.c : Likewise.
6985 * gimple-ssa-strength-reduction.c : Likewise.
6986 * gimple-ssa.h : Likewise.
6987 * gimple-streamer-in.c : Likewise.
6988 * gimple-streamer-out.c : Likewise.
6989 * gimple-streamer.h : Likewise.
6990 * gimple-walk.c : Likewise.
6991 * gimple.c : Likewise.
6992 * gimplify-me.c : Likewise.
6993 * gimplify.c : Likewise.
6994 * godump.c : Likewise.
6995 * graph.c : Likewise.
6996 * graphds.c : Likewise.
6997 * graphite-blocking.c : Likewise.
6998 * graphite-dependences.c : Likewise.
6999 * graphite-interchange.c : Likewise.
7000 * graphite-isl-ast-to-gimple.c : Likewise.
7001 * graphite-optimize-isl.c : Likewise.
7002 * graphite-poly.c : Likewise.
7003 * graphite-scop-detection.c : Likewise.
7004 * graphite-sese-to-poly.c : Likewise.
7005 * graphite.c : Likewise.
7006 * haifa-sched.c : Likewise.
7007 * hard-reg-set.h : Likewise.
7008 * hw-doloop.c : Likewise.
7009 * ifcvt.c : Likewise.
7010 * inchash.c : Likewise.
7011 * incpath.c : Likewise.
7012 * init-regs.c : Likewise.
7013 * input.c : Likewise.
7014 * internal-fn.c : Likewise.
7015 * ipa-chkp.c : Likewise.
7016 * ipa-comdats.c : Likewise.
7017 * ipa-cp.c : Likewise.
7018 * ipa-devirt.c : Likewise.
7019 * ipa-icf-gimple.c : Likewise.
7020 * ipa-icf.c : Likewise.
7021 * ipa-inline-analysis.c : Likewise.
7022 * ipa-inline-transform.c : Likewise.
7023 * ipa-inline.c : Likewise.
7024 * ipa-polymorphic-call.c : Likewise.
7025 * ipa-profile.c : Likewise.
7026 * ipa-prop.c : Likewise.
7027 * ipa-pure-const.c : Likewise.
7028 * ipa-ref.c : Likewise.
7029 * ipa-reference.c : Likewise.
7030 * ipa-split.c : Likewise.
7031 * ipa-utils.c : Likewise.
7032 * ipa-visibility.c : Likewise.
7033 * ipa.c : Likewise.
7034 * ira-build.c : Likewise.
7035 * ira-color.c : Likewise.
7036 * ira-conflicts.c : Likewise.
7037 * ira-costs.c : Likewise.
7038 * ira-emit.c : Likewise.
7039 * ira-lives.c : Likewise.
7040 * ira.c : Likewise.
7041 * jump.c : Likewise.
7042 * langhooks.c : Likewise.
7043 * lcm.c : Likewise.
7044 * libfuncs.h : Likewise.
7045 * lists.c : Likewise.
7046 * loop-doloop.c : Likewise.
7047 * loop-init.c : Likewise.
7048 * loop-invariant.c : Likewise.
7049 * loop-iv.c : Likewise.
7050 * loop-unroll.c : Likewise.
7051 * lower-subreg.c : Likewise.
7052 * lra-assigns.c : Likewise.
7053 * lra-coalesce.c : Likewise.
7054 * lra-constraints.c : Likewise.
7055 * lra-eliminations.c : Likewise.
7056 * lra-lives.c : Likewise.
7057 * lra-remat.c : Likewise.
7058 * lra-spills.c : Likewise.
7059 * lra.c : Likewise.
7060 * lto-cgraph.c : Likewise.
7061 * lto-compress.c : Likewise.
7062 * lto-opts.c : Likewise.
7063 * lto-section-in.c : Likewise.
7064 * lto-section-out.c : Likewise.
7065 * lto-streamer-in.c : Likewise.
7066 * lto-streamer-out.c : Likewise.
7067 * lto-streamer.c : Likewise.
7068 * lto-streamer.h : Likewise.
7069 * mcf.c : Likewise.
7070 * mode-switching.c : Likewise.
7071 * modulo-sched.c : Likewise.
7072 * omega.c : Likewise.
7073 * omp-low.c : Likewise.
7074 * optabs.c : Likewise.
7075 * opts-global.c : Likewise.
7076 * opts.h : Likewise.
7077 * passes.c : Likewise.
7078 * plugin.c : Likewise.
7079 * postreload-gcse.c : Likewise.
7080 * postreload.c : Likewise.
7081 * predict.c : Likewise.
7082 * print-rtl.c : Likewise.
7083 * print-tree.c : Likewise.
7084 * profile.c : Likewise.
7085 * read-md.c : Likewise.
7086 * read-md.h : Likewise.
7087 * read-rtl.c : Likewise.
7088 * real.c : Likewise.
7089 * realmpfr.c : Likewise.
7090 * recog.c : Likewise.
7091 * ree.c : Likewise.
7092 * reg-stack.c : Likewise.
7093 * regcprop.c : Likewise.
7094 * reginfo.c : Likewise.
7095 * regrename.c : Likewise.
7096 * regstat.c : Likewise.
7097 * reload.c : Likewise.
7098 * reload1.c : Likewise.
7099 * reorg.c : Likewise.
7100 * resource.c : Likewise.
7101 * rtl-chkp.c : Likewise.
7102 * rtl.c : Likewise.
7103 * rtl.h : Likewise.
7104 * rtlanal.c : Likewise.
7105 * rtlhash.c : Likewise.
7106 * rtlhash.h : Likewise.
7107 * rtlhooks.c : Likewise.
7108 * sanopt.c : Likewise.
7109 * sched-deps.c : Likewise.
7110 * sched-ebb.c : Likewise.
7111 * sched-rgn.c : Likewise.
7112 * sched-vis.c : Likewise.
7113 * sdbout.c : Likewise.
7114 * sel-sched-dump.c : Likewise.
7115 * sel-sched-ir.c : Likewise.
7116 * sel-sched-ir.h : Likewise.
7117 * sel-sched.c : Likewise.
7118 * sese.c : Likewise.
7119 * shrink-wrap.c : Likewise.
7120 * shrink-wrap.h : Likewise.
7121 * simplify-rtx.c : Likewise.
7122 * stack-ptr-mod.c : Likewise.
7123 * statistics.c : Likewise.
7124 * stmt.c : Likewise.
7125 * stor-layout.c : Likewise.
7126 * store-motion.c : Likewise.
7127 * stringpool.c : Likewise.
7128 * symtab.c : Likewise.
7129 * target-globals.c : Likewise.
7130 * targhooks.c : Likewise.
7131 * tlink.c : Likewise.
7132 * toplev.c : Likewise.
7133 * tracer.c : Likewise.
7134 * trans-mem.c : Likewise.
7135 * tree-affine.c : Likewise.
7136 * tree-affine.h : Likewise.
7137 * tree-browser.c : Likewise.
7138 * tree-call-cdce.c : Likewise.
7139 * tree-cfg.c : Likewise.
7140 * tree-cfgcleanup.c : Likewise.
7141 * tree-chkp-opt.c : Likewise.
7142 * tree-chkp.c : Likewise.
7143 * tree-chrec.c : Likewise.
7144 * tree-complex.c : Likewise.
7145 * tree-data-ref.c : Likewise.
7146 * tree-dfa.c : Likewise.
7147 * tree-diagnostic.c : Likewise.
7148 * tree-dump.c : Likewise.
7149 * tree-eh.c : Likewise.
7150 * tree-eh.h : Likewise.
7151 * tree-emutls.c : Likewise.
7152 * tree-hasher.h : Likewise.
7153 * tree-if-conv.c : Likewise.
7154 * tree-inline.c : Likewise.
7155 * tree-inline.h : Likewise.
7156 * tree-into-ssa.c : Likewise.
7157 * tree-iterator.c : Likewise.
7158 * tree-loop-distribution.c : Likewise.
7159 * tree-nested.c : Likewise.
7160 * tree-nrv.c : Likewise.
7161 * tree-object-size.c : Likewise.
7162 * tree-outof-ssa.c : Likewise.
7163 * tree-parloops.c : Likewise.
7164 * tree-phinodes.c : Likewise.
7165 * tree-predcom.c : Likewise.
7166 * tree-pretty-print.c : Likewise.
7167 * tree-profile.c : Likewise.
7168 * tree-scalar-evolution.c : Likewise.
7169 * tree-sra.c : Likewise.
7170 * tree-ssa-address.c : Likewise.
7171 * tree-ssa-alias.c : Likewise.
7172 * tree-ssa-ccp.c : Likewise.
7173 * tree-ssa-coalesce.c : Likewise.
7174 * tree-ssa-copy.c : Likewise.
7175 * tree-ssa-copyrename.c : Likewise.
7176 * tree-ssa-dce.c : Likewise.
7177 * tree-ssa-dom.c : Likewise.
7178 * tree-ssa-dse.c : Likewise.
7179 * tree-ssa-forwprop.c : Likewise.
7180 * tree-ssa-ifcombine.c : Likewise.
7181 * tree-ssa-live.c : Likewise.
7182 * tree-ssa-loop-ch.c : Likewise.
7183 * tree-ssa-loop-im.c : Likewise.
7184 * tree-ssa-loop-ivcanon.c : Likewise.
7185 * tree-ssa-loop-ivopts.c : Likewise.
7186 * tree-ssa-loop-manip.c : Likewise.
7187 * tree-ssa-loop-niter.c : Likewise.
7188 * tree-ssa-loop-prefetch.c : Likewise.
7189 * tree-ssa-loop-unswitch.c : Likewise.
7190 * tree-ssa-loop.c : Likewise.
7191 * tree-ssa-math-opts.c : Likewise.
7192 * tree-ssa-operands.c : Likewise.
7193 * tree-ssa-phiopt.c : Likewise.
7194 * tree-ssa-phiprop.c : Likewise.
7195 * tree-ssa-pre.c : Likewise.
7196 * tree-ssa-propagate.c : Likewise.
7197 * tree-ssa-reassoc.c : Likewise.
7198 * tree-ssa-sccvn.c : Likewise.
7199 * tree-ssa-scopedtables.c : Likewise.
7200 * tree-ssa-sink.c : Likewise.
7201 * tree-ssa-strlen.c : Likewise.
7202 * tree-ssa-structalias.c : Likewise.
7203 * tree-ssa-tail-merge.c : Likewise.
7204 * tree-ssa-ter.c : Likewise.
7205 * tree-ssa-threadedge.c : Likewise.
7206 * tree-ssa-threadupdate.c : Likewise.
7207 * tree-ssa-uncprop.c : Likewise.
7208 * tree-ssa-uninit.c : Likewise.
7209 * tree-ssa.c : Likewise.
7210 * tree-ssanames.c : Likewise.
7211 * tree-stdarg.c : Likewise.
7212 * tree-streamer-in.c : Likewise.
7213 * tree-streamer-out.c : Likewise.
7214 * tree-streamer.c : Likewise.
7215 * tree-streamer.h : Likewise.
7216 * tree-switch-conversion.c : Likewise.
7217 * tree-tailcall.c : Likewise.
7218 * tree-vect-data-refs.c : Likewise.
7219 * tree-vect-generic.c : Likewise.
7220 * tree-vect-loop-manip.c : Likewise.
7221 * tree-vect-loop.c : Likewise.
7222 * tree-vect-patterns.c : Likewise.
7223 * tree-vect-slp.c : Likewise.
7224 * tree-vect-stmts.c : Likewise.
7225 * tree-vectorizer.c : Likewise.
7226 * tree-vectorizer.h : Likewise.
7227 * tree-vrp.c : Likewise.
7228 * tree.c : Likewise.
7229 * tsan.c : Likewise.
7230 * ubsan.c : Likewise.
7231 * valtrack.c : Likewise.
7232 * valtrack.h : Likewise.
7233 * value-prof.c : Likewise.
7234 * var-tracking.c : Likewise.
7235 * varasm.c : Likewise.
7236 * varpool.c : Likewise.
7237 * vec.c: Likewise.
7238 * vmsdbgout.c : Likewise.
7239 * vtable-verify.c : Likewise.
7240 * vtable-verify.h : Likewise.
7241 * web.c : Likewise.
7242 * wide-int.cc : Likewise.
7243 * xcoffout.c : Likewise.
7244 * config/aarch64/aarch64-builtins.c : Likewise.
7245 * config/aarch64/aarch64.c : Likewise.
7246 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7247 * config/alpha/alpha.c : Likewise.
7248 * config/arc/arc.c : Likewise.
7249 * config/arm/aarch-common.c : Likewise.
7250 * config/arm/arm-builtins.c : Likewise.
7251 * config/arm/arm-c.c : Likewise.
7252 * config/arm/arm.c : Likewise.
7253 * config/avr/avr-c.c : Likewise.
7254 * config/avr/avr-log.c : Likewise.
7255 * config/avr/avr.c : Likewise.
7256 * config/bfin/bfin.c : Likewise.
7257 * config/c6x/c6x.c : Likewise.
7258 * config/cr16/cr16.c : Likewise.
7259 * config/cris/cris.c : Likewise.
7260 * config/darwin-c.c : Likewise.
7261 * config/darwin.c : Likewise.
7262 * config/default-c.c : Likewise.
7263 * config/epiphany/epiphany.c : Likewise.
7264 * config/epiphany/mode-switch-use.c : Likewise.
7265 * config/epiphany/resolve-sw-modes.c : Likewise.
7266 * config/fr30/fr30.c : Likewise.
7267 * config/frv/frv.c : Likewise.
7268 * config/ft32/ft32.c : Likewise.
7269 * config/glibc-c.c : Likewise.
7270 * config/h8300/h8300.c : Likewise.
7271 * config/i386/i386-c.c : Likewise.
7272 * config/i386/i386.c : Likewise.
7273 * config/i386/msformat-c.c : Likewise.
7274 * config/i386/winnt-cxx.c : Likewise.
7275 * config/i386/winnt-stubs.c : Likewise.
7276 * config/i386/winnt.c : Likewise.
7277 * config/ia64/ia64-c.c : Likewise.
7278 * config/ia64/ia64.c : Likewise.
7279 * config/iq2000/iq2000.c : Likewise.
7280 * config/lm32/lm32.c : Likewise.
7281 * config/m32c/m32c-pragma.c : Likewise.
7282 * config/m32c/m32c.c : Likewise.
7283 * config/m32r/m32r.c : Likewise.
7284 * config/m68k/m68k.c : Likewise.
7285 * config/mcore/mcore.c : Likewise.
7286 * config/mep/mep-pragma.c : Likewise.
7287 * config/mep/mep.c : Likewise.
7288 * config/microblaze/microblaze-c.c : Likewise.
7289 * config/microblaze/microblaze.c : Likewise.
7290 * config/mips/mips.c : Likewise.
7291 * config/mmix/mmix.c : Likewise.
7292 * config/mn10300/mn10300.c : Likewise.
7293 * config/moxie/moxie.c : Likewise.
7294 * config/msp430/msp430-c.c : Likewise.
7295 * config/msp430/msp430.c : Likewise.
7296 * config/nds32/nds32-cost.c : Likewise.
7297 * config/nds32/nds32-fp-as-gp.c : Likewise.
7298 * config/nds32/nds32-intrinsic.c : Likewise.
7299 * config/nds32/nds32-isr.c : Likewise.
7300 * config/nds32/nds32-md-auxiliary.c : Likewise.
7301 * config/nds32/nds32-memory-manipulation.c : Likewise.
7302 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7303 * config/nds32/nds32-predicates.c : Likewise.
7304 * config/nds32/nds32.c : Likewise.
7305 * config/nios2/nios2.c : Likewise.
7306 * config/nvptx/nvptx.c : Likewise.
7307 * config/pa/pa.c : Likewise.
7308 * config/pdp11/pdp11.c : Likewise.
7309 * config/rl78/rl78-c.c : Likewise.
7310 * config/rl78/rl78.c : Likewise.
7311 * config/rs6000/rs6000-c.c : Likewise.
7312 * config/rs6000/rs6000.c : Likewise.
7313 * config/rx/rx.c : Likewise.
7314 * config/s390/s390-c.c : Likewise.
7315 * config/s390/s390.c : Likewise.
7316 * config/sh/sh-c.c : Likewise.
7317 * config/sh/sh-mem.cc : Likewise.
7318 * config/sh/sh.c : Likewise.
7319 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7320 * config/sh/sh_treg_combine.cc : Likewise.
7321 * config/sol2-c.c : Likewise.
7322 * config/sol2-cxx.c : Likewise.
7323 * config/sol2-stubs.c : Likewise.
7324 * config/sol2.c : Likewise.
7325 * config/sparc/sparc-c.c : Likewise.
7326 * config/sparc/sparc.c : Likewise.
7327 * config/spu/spu-c.c : Likewise.
7328 * config/spu/spu.c : Likewise.
7329 * config/stormy16/stormy16.c : Likewise.
7330 * config/tilegx/mul-tables.c : Likewise.
7331 * config/tilegx/tilegx-c.c : Likewise.
7332 * config/tilegx/tilegx.c : Likewise.
7333 * config/tilepro/mul-tables.c : Likewise.
7334 * config/tilepro/tilepro-c.c : Likewise.
7335 * config/tilepro/tilepro.c : Likewise.
7336 * config/v850/v850-c.c : Likewise.
7337 * config/v850/v850.c : Likewise.
7338 * config/vax/vax.c : Likewise.
7339 * config/visium/visium.c : Likewise.
7340 * config/vms/vms-c.c : Likewise.
7341 * config/vms/vms.c : Likewise.
7342 * config/vxworks.c : Likewise.
7343 * config/winnt-c.c : Likewise.
7344 * config/xtensa/xtensa.c : Likewise.
7345
7346 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7347
7348 PR lto/65378
7349 * ipa-utils.h (warn_types_mismatch): Update prototype.
7350 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7351 parameters.
7352 (type_mismatch_p): New function.
7353 (warn_types_mismatch): Reorg to work better on non-C++ types.
7354 (odr_types_equivalent_p): Add loc1/loc2 parameters.
7355 (add_type_duplicate): Update.
7356
7357 2015-06-08 Tom de Vries <tom@codesourcery.com>
7358
7359 PR rtl-optimization/66444
7360 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7361 call_used_regs.
7362
7363 2015-06-08 Richard Biener <rguenther@suse.de>
7364
7365 PR tree-optimization/66422
7366 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7367 block after inserted gcc_unreachable.
7368
7369 2015-06-08 Nick Clifton <nickc@redhat.com>
7370
7371 * config/rx/rx.c (rx_function_value): Do not promote vector types.
7372 (rx_promote_function_mode): Likewise.
7373 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7374
7375 2015-06-08 Jakub Jelinek <jakub@redhat.com>
7376
7377 * genattrtab.c (insn_alternatives): Change type from int *
7378 to uint64_t *.
7379 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7380 (get_attr_value): Change type of num_alt to uint64_t.
7381 (compute_alternative_mask): Change return type from
7382 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7383 (make_alternative_compare, mk_attr_alt): Change argument type
7384 from int to uint64_t.
7385 (simplify_test_exp): Change type of i from int to uint64_t.
7386 Shift ((uint64_t) 1) instead of 1 up.
7387 (main): Adjust oballocvec first argument from int to uint64_t.
7388 Shift ((uint64_t) 1) instead of 1 up.
7389
7390 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7391
7392 PR other/65366
7393 * gdbhooks.py: Import sys.
7394 (intptr): New function. Replace int(...) by intptr(...).
7395
7396 2015-06-08 Richard Biener <rguenther@suse.de>
7397
7398 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7399 adjustment for gaps at the end of a SLP load group properly.
7400 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7401 all permutations we can generate.
7402 (vect_transform_slp_perm_load): Use the correct group-size.
7403
7404 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
7405
7406 * genmatch.c (expr::gen_transform): For conditions, guess the type
7407 from the second operand.
7408
7409 2015-06-08 Tom de Vries <tom@codesourcery.com>
7410
7411 PR tree-optimization/66442
7412 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7413 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7414 if the loop latch is not a singleton. Use
7415 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7416
7417 2015-06-08 Marek Polacek <polacek@redhat.com>
7418
7419 PR sanitizer/66452
7420 * toplev.c (check_global_declaration): Don't warn about artificial
7421 decls.
7422
7423 2015-06-08 Tom de Vries <tom@codesourcery.com>
7424
7425 PR tree-optimization/66436
7426 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7427 dump file.
7428 * gimplify.c: Add tree-dump.h include.
7429 (gimplify_function_tree): Dump function to gimple dump file.
7430 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7431 dump file.
7432
7433 2015-06-08 Tom de Vries <tom@codesourcery.com>
7434
7435 PR tree-optimization/66435
7436 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7437 function.
7438
7439 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
7440
7441 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7442 of ptr_type_node to not be ptr_to_node.
7443 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7444 TREE_TYPE of pointers.
7445 * gimple-expr.c (useless_type_conversion): Reorder the check for
7446 function pointers and TYPE_CANONICAL.
7447
7448 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
7449
7450 PR bootstrap/66319
7451 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7452 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7453 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7454 later.
7455 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7456 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7457 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7458 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7459 and non iso if unix2003.
7460
7461 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
7462
7463 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7464
7465 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
7466
7467 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7468 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7469 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7470 except.c, final.c, function.c, gcse-common.c, genemit.c,
7471 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7472 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7473 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7474 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7475 more derived ones.
7476
7477 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
7478
7479 * combine.c (combine_split_insns): Remove cast.
7480 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7481 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7482 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7483 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7484 * genemit.c (gen_split): Change return type of generated functions to
7485 rtx_insn.
7486 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7487 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7488 gen_peephole2_* functions.
7489 (print_subroutine, main): Likewise.
7490 * recog.c (peephole2_optimize): Remove cast.
7491 (peep2_next_insn): Promote return type to rtx_insn.
7492 * recog.h (peep2_next_insn): Fix prototype.
7493 * rtl.h (try_split, split_insns): Likewise.
7494
7495 2015-06-06 DJ Delorie <dj@redhat.com>
7496
7497 * config/msp430/msp430.c (msp430_asm_integer): Support addition
7498 and subtraction too.
7499
7500 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
7501
7502 PR target/66410
7503 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7504 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7505 instead of Snd. Disparage Sid/z alternative with '^'.
7506
7507 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7508
7509 * dwarf2out.c: Remove deferred_locations*.
7510 (dwarf2_debug_hooks): Add early_finish hook.
7511 Remove global_decl hook.
7512 Add early_global_decl and late_global_decl hook.
7513 New global early_dwarf.
7514 New structure set_early_dwarf.
7515 (output_die): Indicate whether a DIE was generated early
7516 when generating assembly with -dA.
7517 (struct limbo_die_struct): Document created_for field.
7518 Remove file_table_last_lookup.
7519 (remove_AT): Return TRUE if successful.
7520 (remove_child_TAG): Clear die_parent.
7521 (reparent_child): New function abstracted from...
7522 (splice_child_die): ...here.
7523 (new_die): ICE if a DIE ends up in limbo too late.
7524 (check_die): New.
7525 (defer_location): Remove.
7526 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7527 (fill_variable_array_bounds): New.
7528 (decl_start_label): Call fill_variable_array_bounds.
7529 (gen_formal_parameter_die): Rewrite to reuse previously generated
7530 DIEs.
7531 (gen_subprogram_die): Same.
7532 (gen_variable_die): Same.
7533 (gen_const_die): Same.
7534 (gen_label_die): Same.
7535 (gen_lexical_block_die): Same.
7536 (decl_will_get_specification_p): New.
7537 (local_function_static): New.
7538 (gen_struct_or_union_type_die): Fill in variable-length fields.
7539 (gen_typedef_die): Fill in variable-length typedefs.
7540 (gen_tagged_type_die): Gracefully return on error_mark_node.
7541 Handle re-entrancy.
7542 (gen_type_die_with_usage): Handle variable-length types.
7543 Remove duplicate code for ARRAY_TYPE case.
7544 (process_scope_var): Only process imported modules during early
7545 dwarf.
7546 (dwarf2out_early_global_decl): New.
7547 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7548 (dwarf2out_type_decl): Set early_dwarf while calling
7549 dwarf2out_decl.
7550 (dwarf2out_decl): Verify that we did not recreate a previously
7551 generated DIE.
7552 Do not return on DECL_EXTERNALs in VAR_DECLs.
7553 Abstract some code to local_function_static.
7554 (lookup_filename): Remove use of file_table_last_lookup.
7555 Gracefully exit on missing file_name.
7556 (dwarf2out_finish): Verify limbo list.
7557 Remove deferred_locations_list use.
7558 Move deferred_asm_name and limbo flushing to...
7559 (dwarf2out_early_finish): ...here. New.
7560 (dwarf2out_c_finalize): Remove set of deferred_location_list,
7561 deferred_asm_name, and file_table_last_lookup.
7562 * cgraph.h (referred_to_p): Add default argument.
7563 * cgraphunit.c (referred_to_p): Add and handle include_self
7564 argument.
7565 (analyze_functions): Add first_time argument.
7566 Call check_global_declaration for all symbols.
7567 Call late_global_decl for nodes for moribund nodes.
7568 (finalize_compilation_unit): Add new argument to
7569 analyze_functions.
7570 Call early_global_decl for functions.
7571 Call early_finish debug hook.
7572 * dbxout.c (dbxout_early_global_decl): New.
7573 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
7574 (dbx_debug_hooks): Add new hooks.
7575 (xcoff_debug_hooks): Same.
7576 * debug.c (do_nothing_debug_hooks): Add early_finish field.
7577 Add early and late debug hooks.
7578 Remove global_decl hook.
7579 * debug.h (struct gcc_debug_hooks): Add early_finish,
7580 early_global_decl, and late_global_decl fields.
7581 Remove global_decl field.
7582 Document gcc_debug_hooks.
7583 * gengtype.c (output_typename): Remove.
7584 * godump.c (go_early_global_decl): New.
7585 (go_late_global_decl): New.
7586 (go_global_decl): Remove.
7587 (dump_go_spec_init): Remove global_decl. Add
7588 {early,late}_global_decl.
7589 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7590 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7591 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7592 (write_global_declarations): Remove.
7593 (global_decl_processing): New.
7594 * langhooks.h (struct lang_hooks_for_decls): Remove
7595 final_write_globals field.
7596 Add post_compilation_parsing_cleanups field.
7597 * passes.c (rest_of_decl_compilation): Call early_global_decl.
7598 * sdbout.c: Add early and late_global_decl hooks. Remove
7599 sdbout_global_decl hook.
7600 Add early_finish field for sdb_debug_hooks.
7601 (sdbout_global_decl): Remove.
7602 (sdbout_early_global_decl): New.
7603 (sdbout_late_global_decl): New.
7604 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7605 * toplev.c (check_global_declaration): Rename from
7606 check_global_declaration_1.
7607 Adapt to use symtab infrastructure.
7608 (check_global_declarations): Remove.
7609 (emit_debug_global_declarations): Remove.
7610 (compile_file): Remove call to final_write_globals langhook.
7611 Run the actual compilation process.
7612 Perform any post compilation parser cleanups.
7613 Generate late debug info.
7614 * toplev.h (check_global_declaration): New.
7615 (check_global_declaration_1): Remove.
7616 (check_global_declarations): Remove.
7617 (write_global_declarations): Remove.
7618 (emit_debug_global_declarations): Remove.
7619 (global_decl_processing): New.
7620 * tree-core.h (struct tree_block): Add DIE field.
7621 * tree.h (BLOCK_DIE): New.
7622 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7623 throughout.
7624 (vmsdbgout_early_global_decl): New.
7625 (vmsdbgout_late_global_decl): New.
7626 Add early_finish debug hook field to vmsdbg_debug_hooks.
7627 Remove vmsdbgout_decl to vmsdbgout_function_decl.
7628 Add early and late_global_decl debug hooks.
7629
7630 2015-06-05 Julian Brown <julian@codesourcery.com>
7631 Sandra Loosemore <sandra@codesourcery.com>
7632
7633 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7634 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7635 to print-sysroot-suffix.sh script.
7636
7637 2015-06-05 Tom de Vries <tom@codesourcery.com>
7638
7639 merge from gomp4 branch:
7640 2015-05-28 Tom de Vries <tom@codesourcery.com>
7641
7642 PR tree-optimization/65443
7643 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7644 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7645 (try_transform_to_exit_first_loop_alt): New function.
7646 (transform_to_exit_first_loop): Use
7647 try_transform_to_exit_first_loop_alt.
7648
7649 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
7650
7651 * builtins.c (expand_builtin_atomic_compare_exchange): Call
7652 emit_cmp_and_jump_insns with the mode of target.
7653
7654 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7655
7656 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7657
7658 2015-06-04 DJ Delorie <dj@redhat.com>
7659
7660 * config/msp430/msp430.md (movsi_s): New. Special case for
7661 storing a 20-bit symbol into a 32-bit register.
7662 * config/msp430/msp430.c (msp430_subreg): Add support for it.
7663 * config/msp430/predicates.md (msp430_symbol_operand): New.
7664
7665 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7666
7667 * c-family/c-common.c (noplt): New attribute.
7668 (handle_noplt_attribute): New handler.
7669 * calls.c (prepare_call_address): Check for noplt
7670 attribute.
7671 * config/i386/i386.c (ix86_expand_call): Check
7672 for noplt attribute.
7673 (ix86_nopic_noplt_attribute_p): New function.
7674 (ix86_output_call_insn): Output indirect call for non-pic
7675 no plt calls.
7676 * doc/extend.texi (noplt): Document new attribute.
7677 * doc/invoke.texi: Document new attribute.
7678
7679 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7680
7681 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7682 real.h, and fixed-value.h when included in host source files.
7683 * double-int.h: Remove redundant #includes listed above.
7684 * fixed-value.h: Likewise.
7685 * real.h: Likewise.
7686 * wide-int.h: Likewise.
7687 * inchash.h: Likewise.
7688 * rtl.h: Add some include files When included from a generator file.
7689 * target.h: Remove wide-int.h and insn-modes.h from the include list.
7690 * internal-fn.h: Don't include coretypes.h.
7691 * alias.c: Adjust includes for restructured coretypes.h.
7692 * asan.c: Likewise.
7693 * attribs.c: Likewise.
7694 * auto-inc-dec.c: Likewise.
7695 * auto-profile.c: Likewise.
7696 * bb-reorder.c: Likewise.
7697 * bt-load.c: Likewise.
7698 * builtins.c: Likewise.
7699 * caller-save.c: Likewise.
7700 * calls.c: Likewise.
7701 * ccmp.c: Likewise.
7702 * cfg.c: Likewise.
7703 * cfganal.c: Likewise.
7704 * cfgbuild.c: Likewise.
7705 * cfgcleanup.c: Likewise.
7706 * cfgexpand.c: Likewise.
7707 * cfghooks.c: Likewise.
7708 * cfgloop.c: Likewise.
7709 * cfgloop.h: Likewise.
7710 * cfgloopanal.c: Likewise.
7711 * cfgloopmanip.c: Likewise.
7712 * cfgrtl.c: Likewise.
7713 * cgraph.c: Likewise.
7714 * cgraphbuild.c: Likewise.
7715 * cgraphclones.c: Likewise.
7716 * cgraphunit.c: Likewise.
7717 * cilk-common.c: Likewise.
7718 * combine-stack-adj.c: Likewise.
7719 * combine.c: Likewise.
7720 * compare-elim.c: Likewise.
7721 * convert.c: Likewise.
7722 * coverage.c: Likewise.
7723 * cppbuiltin.c: Likewise.
7724 * cprop.c: Likewise.
7725 * cse.c: Likewise.
7726 * cselib.c: Likewise.
7727 * data-streamer-in.c: Likewise.
7728 * data-streamer-out.c: Likewise.
7729 * data-streamer.c: Likewise.
7730 * dbxout.c: Likewise.
7731 * dce.c: Likewise.
7732 * ddg.c: Likewise.
7733 * debug.c: Likewise.
7734 * df-core.c: Likewise.
7735 * df-problems.c: Likewise.
7736 * df-scan.c: Likewise.
7737 * df.h: Likewise.
7738 * dfp.c: Likewise.
7739 * dojump.c: Likewise.
7740 * dominance.c: Likewise.
7741 * domwalk.c: Likewise.
7742 * double-int.c: Likewise.
7743 * dse.c: Likewise.
7744 * dumpfile.c: Likewise.
7745 * dwarf2asm.c: Likewise.
7746 * dwarf2cfi.c: Likewise.
7747 * dwarf2out.c: Likewise.
7748 * dwarf2out.h: Likewise.
7749 * emit-rtl.c: Likewise.
7750 * et-forest.c: Likewise.
7751 * except.c: Likewise.
7752 * explow.c: Likewise.
7753 * expmed.c: Likewise.
7754 * expr.c: Likewise.
7755 * final.c: Likewise.
7756 * fixed-value.c: Likewise.
7757 * fold-const.c: Likewise.
7758 * function.c: Likewise.
7759 * fwprop.c: Likewise.
7760 * gcc-plugin.h: Likewise.
7761 * gcse.c: Likewise.
7762 * generic-match-head.c: Likewise.
7763 * ggc-page.c: Likewise.
7764 * gimple-builder.c: Likewise.
7765 * gimple-expr.c: Likewise.
7766 * gimple-fold.c: Likewise.
7767 * gimple-iterator.c: Likewise.
7768 * gimple-low.c: Likewise.
7769 * gimple-match-head.c: Likewise.
7770 * gimple-pretty-print.c: Likewise.
7771 * gimple-ssa-isolate-paths.c: Likewise.
7772 * gimple-ssa-strength-reduction.c: Likewise.
7773 * gimple-streamer-in.c: Likewise.
7774 * gimple-streamer-out.c: Likewise.
7775 * gimple-streamer.h: Likewise.
7776 * gimple-walk.c: Likewise.
7777 * gimple.c: Likewise.
7778 * gimplify-me.c: Likewise.
7779 * gimplify.c: Likewise.
7780 * godump.c: Likewise.
7781 * graph.c: Likewise.
7782 * graphite-blocking.c: Likewise.
7783 * graphite-dependences.c: Likewise.
7784 * graphite-interchange.c: Likewise.
7785 * graphite-isl-ast-to-gimple.c: Likewise.
7786 * graphite-optimize-isl.c: Likewise.
7787 * graphite-poly.c: Likewise.
7788 * graphite-scop-detection.c: Likewise.
7789 * graphite-sese-to-poly.c: Likewise.
7790 * graphite.c: Likewise.
7791 * haifa-sched.c: Likewise.
7792 * hooks.h: Likewise.
7793 * hw-doloop.c: Likewise.
7794 * ifcvt.c: Likewise.
7795 * incpath.c: Likewise.
7796 * init-regs.c: Likewise.
7797 * internal-fn.c: Likewise.
7798 * ipa-chkp.c: Likewise.
7799 * ipa-comdats.c: Likewise.
7800 * ipa-cp.c: Likewise.
7801 * ipa-devirt.c: Likewise.
7802 * ipa-icf-gimple.c: Likewise.
7803 * ipa-icf.c: Likewise.
7804 * ipa-inline-analysis.c: Likewise.
7805 * ipa-inline-transform.c: Likewise.
7806 * ipa-inline.c: Likewise.
7807 * ipa-polymorphic-call.c: Likewise.
7808 * ipa-profile.c: Likewise.
7809 * ipa-prop.c: Likewise.
7810 * ipa-pure-const.c: Likewise.
7811 * ipa-ref.c: Likewise.
7812 * ipa-reference.c: Likewise.
7813 * ipa-split.c: Likewise.
7814 * ipa-utils.c: Likewise.
7815 * ipa-visibility.c: Likewise.
7816 * ipa.c: Likewise.
7817 * ira-build.c: Likewise.
7818 * ira-color.c: Likewise.
7819 * ira-conflicts.c: Likewise.
7820 * ira-costs.c: Likewise.
7821 * ira-emit.c: Likewise.
7822 * ira-lives.c: Likewise.
7823 * ira.c: Likewise.
7824 * jump.c: Likewise.
7825 * langhooks.c: Likewise.
7826 * lcm.c: Likewise.
7827 * loop-doloop.c: Likewise.
7828 * loop-init.c: Likewise.
7829 * loop-invariant.c: Likewise.
7830 * loop-iv.c: Likewise.
7831 * loop-unroll.c: Likewise.
7832 * lower-subreg.c: Likewise.
7833 * lra-assigns.c: Likewise.
7834 * lra-coalesce.c: Likewise.
7835 * lra-constraints.c: Likewise.
7836 * lra-eliminations.c: Likewise.
7837 * lra-lives.c: Likewise.
7838 * lra-remat.c: Likewise.
7839 * lra-spills.c: Likewise.
7840 * lra.c: Likewise.
7841 * lto-cgraph.c: Likewise.
7842 * lto-compress.c: Likewise.
7843 * lto-opts.c: Likewise.
7844 * lto-section-in.c: Likewise.
7845 * lto-section-out.c: Likewise.
7846 * lto-streamer-in.c: Likewise.
7847 * lto-streamer-out.c: Likewise.
7848 * lto-streamer.c: Likewise.
7849 * mcf.c: Likewise.
7850 * mode-switching.c: Likewise.
7851 * modulo-sched.c: Likewise.
7852 * omega.c: Likewise.
7853 * omp-low.c: Likewise.
7854 * optabs.c: Likewise.
7855 * opts-global.c: Likewise.
7856 * passes.c: Likewise.
7857 * plugin.c: Likewise.
7858 * postreload-gcse.c: Likewise.
7859 * postreload.c: Likewise.
7860 * predict.c: Likewise.
7861 * print-rtl.c: Likewise.
7862 * print-tree.c: Likewise.
7863 * profile.c: Likewise.
7864 * real.c: Likewise.
7865 * realmpfr.c: Likewise.
7866 * realmpfr.h: Likewise.
7867 * recog.c: Likewise.
7868 * ree.c: Likewise.
7869 * reg-stack.c: Likewise.
7870 * regcprop.c: Likewise.
7871 * reginfo.c: Likewise.
7872 * regrename.c: Likewise.
7873 * regs.h: Likewise.
7874 * regstat.c: Likewise.
7875 * reload.c: Likewise.
7876 * reload1.c: Likewise.
7877 * reorg.c: Likewise.
7878 * resource.c: Likewise.
7879 * rtl-chkp.c: Likewise.
7880 * rtlanal.c: Likewise.
7881 * rtlhooks.c: Likewise.
7882 * sanopt.c: Likewise.
7883 * sched-deps.c: Likewise.
7884 * sched-ebb.c: Likewise.
7885 * sched-rgn.c: Likewise.
7886 * sched-vis.c: Likewise.
7887 * sdbout.c: Likewise.
7888 * sel-sched-dump.c: Likewise.
7889 * sel-sched-ir.c: Likewise.
7890 * sel-sched.c: Likewise.
7891 * sese.c: Likewise.
7892 * shrink-wrap.c: Likewise.
7893 * shrink-wrap.h: Likewise.
7894 * simplify-rtx.c: Likewise.
7895 * stack-ptr-mod.c: Likewise.
7896 * statistics.c: Likewise.
7897 * stmt.c: Likewise.
7898 * stor-layout.c: Likewise.
7899 * store-motion.c: Likewise.
7900 * stringpool.c: Likewise.
7901 * symtab.c: Likewise.
7902 * target-globals.c: Likewise.
7903 * targhooks.c: Likewise.
7904 * toplev.c: Likewise.
7905 * tracer.c: Likewise.
7906 * trans-mem.c: Likewise.
7907 * tree-affine.c: Likewise.
7908 * tree-affine.h: Likewise.
7909 * tree-browser.c: Likewise.
7910 * tree-call-cdce.c: Likewise.
7911 * tree-cfg.c: Likewise.
7912 * tree-cfgcleanup.c: Likewise.
7913 * tree-chkp-opt.c: Likewise.
7914 * tree-chkp.c: Likewise.
7915 * tree-chrec.c: Likewise.
7916 * tree-complex.c: Likewise.
7917 * tree-data-ref.c: Likewise.
7918 * tree-dfa.c: Likewise.
7919 * tree-diagnostic.c: Likewise.
7920 * tree-dump.c: Likewise.
7921 * tree-eh.c: Likewise.
7922 * tree-emutls.c: Likewise.
7923 * tree-if-conv.c: Likewise.
7924 * tree-inline.c: Likewise.
7925 * tree-into-ssa.c: Likewise.
7926 * tree-iterator.c: Likewise.
7927 * tree-loop-distribution.c: Likewise.
7928 * tree-nested.c: Likewise.
7929 * tree-nrv.c: Likewise.
7930 * tree-object-size.c: Likewise.
7931 * tree-outof-ssa.c: Likewise.
7932 * tree-parloops.c: Likewise.
7933 * tree-phinodes.c: Likewise.
7934 * tree-predcom.c: Likewise.
7935 * tree-pretty-print.c: Likewise.
7936 * tree-pretty-print.h: Likewise.
7937 * tree-profile.c: Likewise.
7938 * tree-scalar-evolution.c: Likewise.
7939 * tree-sra.c: Likewise.
7940 * tree-ssa-address.c: Likewise.
7941 * tree-ssa-alias.c: Likewise.
7942 * tree-ssa-ccp.c: Likewise.
7943 * tree-ssa-coalesce.c: Likewise.
7944 * tree-ssa-copy.c: Likewise.
7945 * tree-ssa-copyrename.c: Likewise.
7946 * tree-ssa-dce.c: Likewise.
7947 * tree-ssa-dom.c: Likewise.
7948 * tree-ssa-dse.c: Likewise.
7949 * tree-ssa-forwprop.c: Likewise.
7950 * tree-ssa-ifcombine.c: Likewise.
7951 * tree-ssa-live.c: Likewise.
7952 * tree-ssa-loop-ch.c: Likewise.
7953 * tree-ssa-loop-im.c: Likewise.
7954 * tree-ssa-loop-ivcanon.c: Likewise.
7955 * tree-ssa-loop-ivopts.c: Likewise.
7956 * tree-ssa-loop-manip.c: Likewise.
7957 * tree-ssa-loop-niter.c: Likewise.
7958 * tree-ssa-loop-prefetch.c: Likewise.
7959 * tree-ssa-loop-unswitch.c: Likewise.
7960 * tree-ssa-loop.c: Likewise.
7961 * tree-ssa-loop.h: Likewise.
7962 * tree-ssa-math-opts.c: Likewise.
7963 * tree-ssa-operands.c: Likewise.
7964 * tree-ssa-phiopt.c: Likewise.
7965 * tree-ssa-phiprop.c: Likewise.
7966 * tree-ssa-pre.c: Likewise.
7967 * tree-ssa-propagate.c: Likewise.
7968 * tree-ssa-reassoc.c: Likewise.
7969 * tree-ssa-sccvn.c: Likewise.
7970 * tree-ssa-scopedtables.c: Likewise.
7971 * tree-ssa-sink.c: Likewise.
7972 * tree-ssa-strlen.c: Likewise.
7973 * tree-ssa-structalias.c: Likewise.
7974 * tree-ssa-tail-merge.c: Likewise.
7975 * tree-ssa-ter.c: Likewise.
7976 * tree-ssa-threadedge.c: Likewise.
7977 * tree-ssa-threadupdate.c: Likewise.
7978 * tree-ssa-uncprop.c: Likewise.
7979 * tree-ssa-uninit.c: Likewise.
7980 * tree-ssa.c: Likewise.
7981 * tree-ssanames.c: Likewise.
7982 * tree-stdarg.c: Likewise.
7983 * tree-streamer-in.c: Likewise.
7984 * tree-streamer-out.c: Likewise.
7985 * tree-streamer.c: Likewise.
7986 * tree-switch-conversion.c: Likewise.
7987 * tree-tailcall.c: Likewise.
7988 * tree-vect-data-refs.c: Likewise.
7989 * tree-vect-generic.c: Likewise.
7990 * tree-vect-loop-manip.c: Likewise.
7991 * tree-vect-loop.c: Likewise.
7992 * tree-vect-patterns.c: Likewise.
7993 * tree-vect-slp.c: Likewise.
7994 * tree-vect-stmts.c: Likewise.
7995 * tree-vectorizer.c: Likewise.
7996 * tree-vrp.c: Likewise.
7997 * tree.c: Likewise.
7998 * tsan.c: Likewise.
7999 * ubsan.c: Likewise.
8000 * valtrack.c: Likewise.
8001 * value-prof.c: Likewise.
8002 * var-tracking.c: Likewise.
8003 * varasm.c: Likewise.
8004 * varpool.c: Likewise.
8005 * vmsdbgout.c: Likewise.
8006 * vtable-verify.c: Likewise.
8007 * web.c: Likewise.
8008 * wide-int-print.cc: Likewise.
8009 * wide-int-print.h: Likewise.
8010 * wide-int.cc: Likewise.
8011 * xcoffout.c: Likewise.
8012 * config/aarch64/aarch64-builtins.c: Likewise.
8013 * config/aarch64/aarch64.c: Likewise.
8014 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8015 * config/alpha/alpha.c: Likewise.
8016 * config/arc/arc.c: Likewise.
8017 * config/arm/aarch-common.c: Likewise.
8018 * config/arm/arm-builtins.c: Likewise.
8019 * config/arm/arm-c.c: Likewise.
8020 * config/arm/arm.c: Likewise.
8021 * config/avr/avr-c.c: Likewise.
8022 * config/avr/avr-log.c: Likewise.
8023 * config/avr/avr.c: Likewise.
8024 * config/bfin/bfin.c: Likewise.
8025 * config/c6x/c6x.c: Likewise.
8026 * config/cr16/cr16.c: Likewise.
8027 * config/cris/cris.c: Likewise.
8028 * config/darwin-c.c: Likewise.
8029 * config/darwin.c: Likewise.
8030 * config/default-c.c: Likewise.
8031 * config/epiphany/epiphany.c: Likewise.
8032 * config/epiphany/mode-switch-use.c: Likewise.
8033 * config/epiphany/resolve-sw-modes.c: Likewise.
8034 * config/fr30/fr30.c: Likewise.
8035 * config/frv/frv.c: Likewise.
8036 * config/ft32/ft32.c: Likewise.
8037 * config/glibc-c.c: Likewise.
8038 * config/h8300/h8300.c: Likewise.
8039 * config/i386/i386-c.c: Likewise.
8040 * config/i386/i386.c: Likewise.
8041 * config/i386/msformat-c.c: Likewise.
8042 * config/i386/winnt-cxx.c: Likewise.
8043 * config/i386/winnt-stubs.c: Likewise.
8044 * config/i386/winnt.c: Likewise.
8045 * config/ia64/ia64-c.c: Likewise.
8046 * config/ia64/ia64.c: Likewise.
8047 * config/iq2000/iq2000.c: Likewise.
8048 * config/lm32/lm32.c: Likewise.
8049 * config/m32c/m32c-pragma.c: Likewise.
8050 * config/m32c/m32c.c: Likewise.
8051 * config/m32r/m32r.c: Likewise.
8052 * config/m68k/m68k.c: Likewise.
8053 * config/mcore/mcore.c: Likewise.
8054 * config/mep/mep-pragma.c: Likewise.
8055 * config/mep/mep.c: Likewise.
8056 * config/microblaze/microblaze-c.c: Likewise.
8057 * config/microblaze/microblaze.c: Likewise.
8058 * config/mips/mips.c: Likewise.
8059 * config/mmix/mmix.c: Likewise.
8060 * config/mn10300/mn10300.c: Likewise.
8061 * config/moxie/moxie.c: Likewise.
8062 * config/msp430/msp430-c.c: Likewise.
8063 * config/msp430/msp430.c: Likewise.
8064 * config/nds32/nds32-cost.c: Likewise.
8065 * config/nds32/nds32-fp-as-gp.c: Likewise.
8066 * config/nds32/nds32-intrinsic.c: Likewise.
8067 * config/nds32/nds32-isr.c: Likewise.
8068 * config/nds32/nds32-md-auxiliary.c: Likewise.
8069 * config/nds32/nds32-memory-manipulation.c: Likewise.
8070 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8071 * config/nds32/nds32-predicates.c: Likewise.
8072 * config/nds32/nds32.c: Likewise.
8073 * config/nios2/nios2.c: Likewise.
8074 * config/nvptx/nvptx.c: Likewise.
8075 * config/pa/pa.c: Likewise.
8076 * config/pdp11/pdp11.c: Likewise.
8077 * config/rl78/rl78-c.c: Likewise.
8078 * config/rl78/rl78.c: Likewise.
8079 * config/rs6000/rs6000-c.c: Likewise.
8080 * config/rs6000/rs6000.c: Likewise.
8081 * config/rx/rx.c: Likewise.
8082 * config/s390/s390-c.c: Likewise.
8083 * config/s390/s390.c: Likewise.
8084 * config/sh/sh-c.c: Likewise.
8085 * config/sh/sh-mem.cc: Likewise.
8086 * config/sh/sh.c: Likewise.
8087 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8088 * config/sh/sh_treg_combine.cc: Likewise.
8089 * config/sol2-c.c: Likewise.
8090 * config/sol2-cxx.c: Likewise.
8091 * config/sol2-stubs.c: Likewise.
8092 * config/sol2.c: Likewise.
8093 * config/sparc/sparc-c.c: Likewise.
8094 * config/sparc/sparc.c: Likewise.
8095 * config/spu/spu-c.c: Likewise.
8096 * config/spu/spu.c: Likewise.
8097 * config/stormy16/stormy16.c: Likewise.
8098 * config/tilegx/mul-tables.c: Likewise.
8099 * config/tilegx/tilegx-c.c: Likewise.
8100 * config/tilegx/tilegx.c: Likewise.
8101 * config/tilepro/mul-tables.c: Likewise.
8102 * config/tilepro/tilepro-c.c: Likewise.
8103 * config/tilepro/tilepro.c: Likewise.
8104 * config/v850/v850-c.c: Likewise.
8105 * config/v850/v850.c: Likewise.
8106 * config/vax/vax.c: Likewise.
8107 * config/visium/visium.c: Likewise.
8108 * config/vms/vms-c.c: Likewise.
8109 * config/vms/vms.c: Likewise.
8110 * config/vxworks.c: Likewise.
8111 * config/winnt-c.c: Likewise.
8112 * config/xtensa/xtensa.c: Likewise.
8113 * common/config/bfin/bfin-common.c: Likewise.
8114
8115 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
8116
8117 * tree.h (tree_code_for_canonical_type_merging): New function.
8118 * tree.c (gimple_canonical_types_compatible_p): Use
8119 tree_code_for_canonical_type_merging..
8120
8121 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8122
8123 PR c++/66192
8124 PR target/66200
8125 * doc/tm.texi: Regenerate.
8126 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8127 * target.def (TARGET_RELAXED_ORDERING): Likewise.
8128 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8129 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8130 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8131 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8132 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8133 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8134 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8135
8136 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8137
8138 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8139 register fma steering pass.
8140 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8141 AARCH64_TUNE_FMA_STEERING.
8142
8143 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
8144
8145 * tree.c (verify_type_variant): Verify that type and variant is
8146 compatible.
8147 (gimple_canonical_types_compatible_p): Look for main variants.
8148
8149 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8150
8151 * config.gcc (powerpc*-*-*): Add support for a new configure
8152 option --with-advance-toolchain=<xxx> which overrides using the
8153 default header files, libraries and dynamic linker.
8154
8155 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8156 specs to support the configure --with-advance-toolchain=<xxx>
8157 option.
8158 (INCLUDE_EXTRA_SPEC): Likewise.
8159 (LINK_OS_EXTRA_SPEC32): Likewise.
8160 (LINK_OK_EXTRA_SPEC64): Likewise.
8161 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8162 (DYNAMIC_LINKER_PREFIX): Likewise.
8163 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8164 toolchain support.
8165 (GLIBC_DYNAMIC_LINKER32): Likewise.
8166 (GLIBC_DYNAMIC_LINKER64): Likewise.
8167 (LINK_OS_LINUX_SPEC32): Likewise.
8168 (LINK_OS_LINUX_SPEC64): Likewise.
8169
8170 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8171 configuration option.
8172
8173 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
8174
8175 PR target/66275
8176 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8177 to determine current function ABI.
8178 (ix86_function_value_regno_p): Ditto.
8179
8180 2015-06-03 Martin Liska <mliska@suse.cz>
8181
8182 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8183 * bitmap.h (struct bitmap_usage): Likewise.
8184 * ggc-common.c (struct ggc_usage): Likewise.
8185 * mem-stats.h (struct mem_location): Likewise.
8186 (struct mem_usage): Likewise.
8187 * vec.c (struct vec_usage): Likewise.
8188
8189 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
8190
8191 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8192 -Bsymbolic.
8193
8194 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
8195
8196 * doc/plugins.texi (enum plugin_event): New event.
8197 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8198 and PLUGIN_FINISH_FUNCTION.
8199 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8200 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8201
8202 2015-06-03 Richard Biener <rguenther@suse.de>
8203
8204 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8205 compute GROUP_GAP for the first element.
8206 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8207 on in-group gaps.
8208
8209 2015-06-03 Nick Clifton <nickc@redhat.com>
8210
8211 * config/rl78/rl78-real.md: Add peepholes to avoid a register
8212 copy when calling a function.
8213 * config/rl78/rl78.c (need_to_save): Do not push the frame
8214 pointer in an interrupt handler prologue if it is never used.
8215
8216 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8217
8218 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8219
8220 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8221
8222 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8223 reference when cloning alias node.
8224
8225 2015-06-03 Martin Liska <mliska@suse.cz>
8226
8227 * alloc-pool.h (struct pool_usage): Correct space padding.
8228 * ggc-page.c (ggc_print_statistics): Align columns in a report.
8229 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8230 * tree.c (dump_tree_statistics): Align columns in a report.
8231
8232 2015-06-03 Martin Liska <mliska@suse.cz>
8233
8234 * alloc-pool.c (allocate_pool_descriptor): Remove.
8235 (struct pool_output_info): Likewise.
8236 (print_alloc_pool_statistics): Likewise.
8237 (dump_alloc_pool_statistics): Likewise.
8238 * alloc-pool.h (struct pool_usage): New struct.
8239 (pool_allocator::initialize): Change usage of memory statistics
8240 to a new interface.
8241 (pool_allocator::release): Likewise.
8242 (pool_allocator::allocate): Likewise.
8243 (pool_allocator::remove): Likewise.
8244 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8245 for a pool allocator.
8246 * mem-stats.h (struct mem_location): Add new ctor.
8247 (struct mem_usage): Add counter for number of
8248 instances.
8249 (mem_alloc_description::register_descriptor): New overload of
8250 * mem-stats.h (mem_location::to_string): New function.
8251 * bitmap.h (struct bitmap_usage): Use this new function.
8252 * ggc-common.c (struct ggc_usage): Likewise.
8253 the function.
8254
8255 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8256
8257 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8258 of GCC_INSN_FLAGS_H block.
8259
8260 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8261
8262 * explow.c (plus_constant): Update check after force_const_mem call
8263 to see if the value returned is not a NULL_RTX.
8264
8265 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8266
8267 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8268 remove instumentation thunks calling reachable functions.
8269 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8270 * lto/lto-partition.c (privatize_symbol_name_1): New.
8271 (privatize_symbol_name): Privatize both decl and orig_decl
8272 names for instrumented functions.
8273 * cgraph.c (cgraph_node::verify_node): Add transparent
8274 alias chain check for instrumented node.
8275
8276 2015-06-03 Marek Polacek <polacek@redhat.com>
8277
8278 PR c/64223
8279 PR c/29358
8280 * tree.c (attribute_value_equal): Handle attribute format.
8281 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8282
8283 2015-06-03 Richard Biener <rguenther@suse.de>
8284
8285 PR tree-optimization/63916
8286 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8287 Forward-propagate non-invariant addresses by splicing their
8288 reference ops if the result isn't going to be used by PRE.
8289 (vn_reference_lookup_3): Remove pointless assert.
8290
8291 2015-06-03 Richard Biener <rguenther@suse.de>
8292
8293 PR tree-optimization/66375
8294 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8295 add to the evolution before following SSA edges.
8296
8297 2015-06-03 Bin Cheng <bin.cheng@arm.com>
8298
8299 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8300 (dump_use, dump_cand, find_induction_variables): Pass new argument
8301 to dump_iv.
8302 (record_use): Preserve the ssa name information in IV.
8303
8304 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8305
8306 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8307 NO_MODE_TEST.
8308 (add_mode_tests): Don't add mode tests if the predicate only
8309 accepts scalar constant integers. Otherwise, allow the mode
8310 of "op" to be VOIDmode if the predicate does accept such integers.
8311
8312 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
8313
8314 PR target/66258
8315 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8316 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8317 (aarch64_secondary_reload): Likewise
8318 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8319 to !TARGET_FLOAT.
8320 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8321 Likewise.
8322
8323 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
8324 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8325
8326 PR target/65768
8327 * cprop.c (try_replace_reg): Check cost of constants before propagating.
8328
8329 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8330
8331 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8332 provide access to the IBM extended double floating point mode if
8333 long double is IEEE 128-bit floating point.
8334 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8335 point if long double is the IBM extended double type.
8336
8337 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8338 enable adding IEEE 128-bit floating point support.
8339 (-mfloat128-software): Likewise.
8340 (-mfloat128-sw): Likewise.
8341
8342 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8343 128-bit floating point types to occupy any register if
8344 -mlong-double-64. Do not allow use of IFmode/KFmode unless
8345 -mfloat128-software is enabled.
8346 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8347 support.
8348 (rs6000_option_override_internal): Add -mfloat128-* support.
8349 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8350
8351 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8352 and float128 type nodes.
8353 (ieee128_float_type_node): Likewise.
8354 (ibm128_float_type_node): Likewise.
8355
8356 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8357
8358 PR target/66136
8359 * config/aarch64/geniterators.sh: Rewrite in awk.
8360
8361 2015-06-02 Martin Liska <mliska@suse.cz>
8362
8363 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8364 values to avoid -Wmaybe-uninitialized errors.
8365
8366 2015-06-02 Richard Biener <rguenther@suse.de>
8367
8368 PR debug/65549
8369 * dwarf2out.c (lookup_context_die): New function.
8370 (resolve_addr): Avoid forcing a full DIE for the
8371 target of a DW_TAG_GNU_call_site during late compilation.
8372 Instead create a stub DIE without a type if we have a
8373 context DIE present.
8374
8375 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
8376
8377 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8378
8379 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8380
8381 PR tree-optimization/48052
8382 * cfgloop.h (struct control_iv): New.
8383 (struct loop): New field control_ivs.
8384 * tree-ssa-loop-niter.c : Include "stor-layout.h".
8385 (number_of_iterations_lt): Set no_overflow information.
8386 (number_of_iterations_exit): Init control iv in niter struct.
8387 (record_control_iv): New.
8388 (estimate_numbers_of_iterations_loop): Call record_control_iv.
8389 (loop_exits_before_overflow): New. Interface factored out of
8390 scev_probably_wraps_p.
8391 (scev_probably_wraps_p): Factor loop niter related code into
8392 loop_exits_before_overflow.
8393 (free_numbers_of_iterations_estimates_loop): Free control ivs.
8394 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8395
8396 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
8397
8398 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8399 the target doesn't belong to the current function.
8400
8401 2015-06-02 Marek Polacek <polacek@redhat.com>
8402
8403 PR middle-end/66345
8404 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8405 get_maxval_strlen does not produce an INTEGER_CST.
8406
8407 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
8408
8409 * config/arc/constraints.md: Use lower-case names in match_code.
8410 * config/mmix/constraints.md: Likewise.
8411
8412 2015-06-02 Richard Biener <rguenther@suse.de>
8413
8414 PR tree-optimization/65961
8415 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8416 check and clarify dump message.
8417 (vect_build_slp_tree): If all children are built up from scalars
8418 build up the parent from scalars instead.
8419 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8420
8421 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8422
8423 PR other/65366
8424 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
8425 instead of print ... .
8426
8427 2015-06-02 Alan Modra <amodra@gmail.com>
8428
8429 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8430 2014-08-11 change.
8431
8432 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8433
8434 PR tree-optimization/52563
8435 PR tree-optimization/62173
8436 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
8437 (alloc_iv, set_iv): New parameter.
8438 (determine_biv_step): Delete.
8439 (find_bivs): Inline original determine_biv_step. Pass new
8440 argument to set_iv.
8441 (idx_find_step): Use no_overflow information for conversion.
8442 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8443 resolve_mixers handle folded_casts.
8444 (instantiate_scev_name): Change bool parameter to bool pointer.
8445 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8446 (instantiate_array_ref, instantiate_scev_not): Ditto.
8447 (instantiate_scev_3, instantiate_scev_2): Ditto.
8448 (instantiate_scev_1, instantiate_scev_r): Ditto.
8449 (instantiate_scev_convert, ): Change parameter. Pass argument
8450 to chrec_convert_aggressive.
8451 (instantiate_scev): Change argument.
8452 (resolve_mixers): New parameter and set it.
8453 (scev_const_prop): New argument.
8454 * tree-scalar-evolution.h (resolve_mixers): New parameter.
8455 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8456 of chrec_conert_1.
8457 (chrec_convert): New parameter. Move definition below.
8458 (chrec_convert_aggressive): New parameter and set it. Call
8459 convert_affine_scev.
8460 * tree-chrec.h (chrec_convert): New parameter.
8461 (chrec_convert_aggressive): Ditto.
8462
8463 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8464
8465 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8466 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8467 the LHS of a no-return call if its type has variable size.
8468 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8469 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8470
8471 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
8472
8473 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8474 * config.in: Regenerate.
8475
8476 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8477
8478 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8479 consecutive accesses within outer-loop with force_vectorize
8480 for references with zero step in inner-loop.
8481
8482 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8483
8484 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8485 rather than from gcc/build directory.
8486
8487 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8488
8489 PR target/65697
8490 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8491 for __sync memory models, emit initial loads and final barriers as
8492 appropriate.
8493
8494 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8495
8496 PR target/65697
8497 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8498 (aarch64_split_atomic_op): Check for __sync memory models, emit
8499 appropriate initial loads and final barriers.
8500
8501 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8502
8503 * Makefile.in: Fix gcov dependencies that should
8504 not point to a build folder.
8505
8506 2015-06-01 Richard Biener <rguenther@suse.de>
8507
8508 Revert
8509 2015-05-29 Richard Biener <rguenther@suse.de>
8510
8511 PR tree-optimization/66314
8512 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8513 parameter that says which loop the new block belongs to.
8514 (ssa_create_duplicates): Blocks duplicated for the threaded
8515 path belong to the loop of the thread destination.
8516
8517 2015-06-01 Martin Liska <mliska@suse.cz>
8518
8519 * sched-deps.c: Include pool-alloc.h before
8520 cselib.h header file is included.
8521
8522 2015-06-01 Richard Biener <rguenther@suse.de>
8523
8524 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8525 functions.
8526
8527 2015-06-01 Martin Liska <mliska@suse.cz>
8528
8529 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8530 a function local variable.
8531
8532 2015-06-01 Martin Liska <mliska@suse.cz>
8533
8534 * alloc-pool.c (create_alloc_pool): Remove.
8535 (empty_alloc_pool): Likewise.
8536 (free_alloc_pool): Likewise.
8537 (free_alloc_pool_if_empty): Likewise.
8538 (pool_alloc): Likewise.
8539 (pool_free): Likewise.
8540 * alloc-pool.h: Remove old declarations.
8541
8542 2015-06-01 Martin Liska <mliska@suse.cz>
8543
8544 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8545 (ira_create_object): Likewise.
8546 (ira_create_allocno): Likewise.
8547 (ira_create_live_range): Likewise.
8548 (copy_live_range): Likewise.
8549 (ira_finish_live_range): Likewise.
8550 (ira_free_allocno_costs): Likewise.
8551 (finish_allocno): Likewise.
8552 (finish_allocnos): Likewise.
8553 (initiate_prefs): Likewise.
8554 (ira_create_pref): Likewise.
8555 (finish_pref): Likewise.
8556 (finish_prefs): Likewise.
8557 (initiate_copies): Likewise.
8558 (ira_create_copy): Likewise.
8559 (finish_copy): Likewise.
8560 (finish_copies): Likewise.
8561 (finish_prefs): Likewise.
8562
8563 2015-06-01 Martin Liska <mliska@suse.cz>
8564
8565 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8566 (allocate_and_init_ipcp_value): Likewise.
8567 (ipcp_lattice::add_value): Likewise.
8568 (merge_agg_lats_step): Likewise.
8569 (ipcp_driver): Likewise.
8570 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8571 (ipa_free_all_structures_after_iinln): Likewise.
8572 * ipa-prop.h: Likewise.
8573
8574 2015-06-01 Martin Liska <mliska@suse.cz>
8575
8576 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8577 pool allocator.
8578 (set_hint_predicate): Likewise.
8579 (inline_summary_alloc): Likewise.
8580 (reset_inline_edge_summary): Likewise.
8581 (reset_inline_summary): Likewise.
8582 (set_cond_stmt_execution_predicate): Likewise.
8583 (set_switch_stmt_execution_predicate): Likewise.
8584 (compute_bb_predicates): Likewise.
8585 (estimate_function_body_sizes): Likewise.
8586 (inline_free_summary): Likewise.
8587
8588 2015-06-01 Martin Liska <mliska@suse.cz>
8589
8590 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8591 (ipa_edge_duplication_hook): Likewise.
8592 (ipa_free_all_structures_after_ipa_cp): Likewise.
8593 (ipa_free_all_structures_after_iinln): Likewise.
8594
8595 2015-06-01 Martin Liska <mliska@suse.cz>
8596
8597 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8598 (ipa_profile_generate_summary): Likewise.
8599 (ipa_profile_read_summary): Likewise.
8600 (ipa_profile): Likewise.
8601
8602 2015-06-01 Martin Liska <mliska@suse.cz>
8603
8604 * tree-ssa-structalias.c (new_var_info): Use new type-based
8605 pool allocator.
8606 (new_constraint): Likewise.
8607 (init_alias_vars): Likewise.
8608 (delete_points_to_sets): Likewise.
8609
8610 2015-06-01 Martin Liska <mliska@suse.cz>
8611
8612 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8613 (free_strinfo): Likewise.
8614 (pass_strlen::execute): Likewise.
8615
8616 2015-06-01 Martin Liska <mliska@suse.cz>
8617
8618 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8619 pool allocator.
8620 (vn_reference_insert_pieces): Likewise.
8621 (vn_phi_insert): Likewise.
8622 (visit_reference_op_call): Likewise.
8623 (copy_phi): Likewise.
8624 (copy_reference): Likewise.
8625 (process_scc): Likewise.
8626 (allocate_vn_table): Likewise.
8627 (free_vn_table): Likewise.
8628
8629 2015-06-01 Martin Liska <mliska@suse.cz>
8630
8631 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8632 pool allocator.
8633 (add_repeat_to_ops_vec): Likewise.
8634 (get_ops): Likewise.
8635 (maybe_optimize_range_tests): Likewise.
8636 (init_reassoc): Likewise.
8637 (fini_reassoc): Likewise.
8638
8639 2015-06-01 Martin Liska <mliska@suse.cz>
8640
8641 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8642 pool allocator.
8643 (bitmap_set_new): Likewise.
8644 (get_or_alloc_expr_for_constant): Likewise.
8645 (get_or_alloc_expr_for): Likewise.
8646 (phi_translate_1): Likewise.
8647 (compute_avail): Likewise.
8648 (init_pre): Likewise.
8649 (fini_pre): Likewise.
8650
8651 2015-06-01 Martin Liska <mliska@suse.cz>
8652
8653 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8654 (delete_dep_node): Likewise.
8655 (create_deps_list): Likewise.
8656 (free_deps_list): Likewise.
8657 (sched_deps_init): Likewise.
8658 (sched_deps_finish): Likewise.
8659
8660 2015-06-01 Martin Liska <mliska@suse.cz>
8661
8662 * regcprop.c (free_debug_insn_changes): Use new type-based
8663 pool allocator.
8664 (replace_oldest_value_reg): Likewise.
8665 (pass_cprop_hardreg::execute): Likewise.
8666
8667 2015-06-01 Martin Liska <mliska@suse.cz>
8668
8669 * ira-build.c (initiate_cost_vectors): Use new type-based
8670 pool allocator.
8671 (ira_allocate_cost_vector): Likewise.
8672 (ira_free_cost_vector): Likewise.
8673 (finish_cost_vectors): Likewise.
8674
8675 2015-06-01 Martin Liska <mliska@suse.cz>
8676
8677 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8678 pool allocator.
8679 (free_sched_pools): Likewise.
8680 * sel-sched-ir.h (_list_alloc): Likewise.
8681 (_list_remove): Likewise.
8682
8683 2015-06-01 Martin Liska <mliska@suse.cz>
8684
8685 * stmt.c (add_case_node): Use new type-based pool allocator.
8686 (expand_case): Likewise.
8687 (expand_sjlj_dispatch_table): Likewise.
8688
8689 2015-06-01 Martin Liska <mliska@suse.cz>
8690
8691 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8692 (free_bb): Likewise.
8693 (pass_cse_reciprocals::execute): Likewise.
8694
8695 2015-06-01 Martin Liska <mliska@suse.cz>
8696
8697 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8698 (sra_deinitialize) Likewise.
8699 (create_access_1) Likewise.
8700 (build_accesses_from_assign) Likewise.
8701 (create_artificial_child_access) Likewise.
8702
8703 2015-06-01 Martin Liska <mliska@suse.cz>
8704
8705 * dse.c (get_group_info):Use new type-based pool allocator.
8706 (dse_step0) Likewise.
8707 (free_store_info) Likewise.
8708 (delete_dead_store_insn) Likewise.
8709 (free_read_records) Likewise.
8710 (record_store) Likewise.
8711 (replace_read) Likewise.
8712 (check_mem_read_rtx) Likewise.
8713 (scan_insn) Likewise.
8714 (dse_step1) Likewise.
8715 (dse_step7) Likewise.
8716
8717 2015-06-01 Martin Liska <mliska@suse.cz>
8718
8719 * df-scan.c (struct df_scan_problem_data):Use new type-based
8720 pool allocator.
8721 (df_scan_free_internal) Likewise.
8722 (df_scan_alloc) Likewise.
8723 (df_grow_reg_info) Likewise.
8724 (df_free_ref) Likewise.
8725 (df_insn_create_insn_record) Likewise.
8726 (df_mw_hardreg_chain_delete) Likewise.
8727 (df_insn_info_delete) Likewise.
8728 (df_free_collection_rec) Likewise.
8729 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8730 (df_sort_and_compress_mws) Likewise.
8731 (df_ref_create_structure) Likewise.
8732 (df_ref_record) Likewise.
8733
8734 2015-06-01 Martin Liska <mliska@suse.cz>
8735
8736 * df-problems.c (df_chain_create):Use new type-based pool allocator.
8737 (df_chain_unlink_1) Likewise.
8738 (df_chain_unlink) Likewise.
8739 (df_chain_remove_problem) Likewise.
8740 (df_chain_alloc) Likewise.
8741 (df_chain_free) Likewise.
8742 * df.h (struct dataflow) Likewise.
8743
8744 2015-06-01 Martin Liska <mliska@suse.cz>
8745
8746 * cselib.c (new_elt_list):Use new type-based pool allocator.
8747 (new_elt_loc_list) Likewise.
8748 (unchain_one_elt_list) Likewise.
8749 (unchain_one_elt_loc_list) Likewise.
8750 (unchain_one_value) Likewise.
8751 (new_cselib_val) Likewise.
8752 (cselib_init) Likewise.
8753 (cselib_finish) Likewise.
8754
8755 2015-06-01 Martin Liska <mliska@suse.cz>
8756
8757 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8758 (sh_reorg) Likewise.
8759
8760 2015-06-01 Martin Liska <mliska@suse.cz>
8761
8762 * cfg.c (initialize_original_copy_tables):Use new type-based
8763 pool allocator.
8764 (free_original_copy_tables) Likewise.
8765 (copy_original_table_clear) Likewise.
8766 (copy_original_table_set) Likewise.
8767
8768 2015-06-01 Martin Liska <mliska@suse.cz>
8769
8770 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8771 pool allocator.
8772 (asan_mem_ref_new) Likewise.
8773 (free_mem_ref_resources) Likewise.
8774
8775 2015-06-01 Martin Liska <mliska@suse.cz>
8776
8777 * var-tracking.c (variable_htab_free):Use new type-based
8778 pool allocator.
8779 (attrs_list_clear) Likewise.
8780 (attrs_list_insert) Likewise.
8781 (attrs_list_copy) Likewise.
8782 (shared_hash_unshare) Likewise.
8783 (shared_hash_destroy) Likewise.
8784 (unshare_variable) Likewise.
8785 (var_reg_delete_and_set) Likewise.
8786 (var_reg_delete) Likewise.
8787 (var_regno_delete) Likewise.
8788 (drop_overlapping_mem_locs) Likewise.
8789 (variable_union) Likewise.
8790 (insert_into_intersection) Likewise.
8791 (canonicalize_values_star) Likewise.
8792 (variable_merge_over_cur) Likewise.
8793 (dataflow_set_merge) Likewise.
8794 (remove_duplicate_values) Likewise.
8795 (variable_post_merge_new_vals) Likewise.
8796 (dataflow_set_preserve_mem_locs) Likewise.
8797 (dataflow_set_remove_mem_locs) Likewise.
8798 (variable_from_dropped) Likewise.
8799 (variable_was_changed) Likewise.
8800 (set_slot_part) Likewise.
8801 (clobber_slot_part) Likewise.
8802 (delete_slot_part) Likewise.
8803 (loc_exp_insert_dep) Likewise.
8804 (notify_dependents_of_changed_value) Likewise.
8805 (emit_notes_for_differences_1) Likewise.
8806 (vt_emit_notes) Likewise.
8807 (vt_initialize) Likewise.
8808 (vt_finalize) Likewise.
8809
8810 2015-06-01 Martin Liska <mliska@suse.cz>
8811
8812 * ira-color.c (init_update_cost_records):Use new type-based
8813 pool allocator.
8814 (get_update_cost_record) Likewise.
8815 (free_update_cost_record_list) Likewise.
8816 (finish_update_cost_records) Likewise.
8817 (initiate_cost_update) Likewise.
8818
8819 2015-06-01 Martin Liska <mliska@suse.cz>
8820
8821 * lra.c (init_insn_regs): Use new type-based pool allocator.
8822 (new_insn_reg) Likewise.
8823 (free_insn_reg) Likewise.
8824 (free_insn_regs) Likewise.
8825 (finish_insn_regs) Likewise.
8826 (init_insn_recog_data) Likewise.
8827 (init_reg_info) Likewise.
8828 (finish_reg_info) Likewise.
8829 (lra_free_copies) Likewise.
8830 (lra_create_copy) Likewise.
8831 (invalidate_insn_data_regno_info) Likewise.
8832
8833 2015-06-01 Martin Liska <mliska@suse.cz>
8834
8835 * lra-lives.c (free_live_range): Use new type-based pool allocator.
8836 (free_live_range_list) Likewise.
8837 (create_live_range) Likewise.
8838 (copy_live_range) Likewise.
8839 (lra_merge_live_ranges) Likewise.
8840 (remove_some_program_points_and_update_live_ranges) Likewise.
8841 (lra_live_ranges_init) Likewise.
8842 (lra_live_ranges_finish) Likewise.
8843
8844 2015-06-01 Martin Liska <mliska@suse.cz>
8845
8846 * et-forest.c (et_new_occ): Use new type-based pool allocator.
8847 (et_new_tree): Likewise.
8848 (et_free_tree): Likewise.
8849 (et_free_tree_force): Likewise.
8850 (et_free_pools): Likewise.
8851 (et_split): Likewise.
8852
8853 2015-06-01 Martin Liska <mliska@suse.cz>
8854
8855 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8856 to header file.
8857 * alloc-pool.h (pool_allocator::pool_allocator): New function.
8858 (pool_allocator::release): Likewise.
8859 (inline pool_allocator::release_if_empty): Likewise.
8860 (inline pool_allocator::~pool_allocator): Likewise.
8861 (pool_allocator::allocate): Likewise.
8862 (pool_allocator::remove): Likewise.
8863
8864 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8865
8866 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8867 in comment.
8868
8869 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8870
8871 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8872 to fusible_ops.
8873 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8874 (arm_macro_fusion_p): Likewise.
8875 (arm_macro_fusion_pair_p): Likewise.
8876
8877 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8878
8879 * config/aarch64/aarch64-protos.h (tune_params): Rename
8880 fuseable_ops to fusible_ops.
8881 * config/aarch64/aarch64.c (generic_tunings): Rename
8882 fuseable_ops to fusible_ops.
8883 (cortexa53_tunings): Likewise.
8884 (cortexa57_tunings): Likewise.
8885 (thunderx_tunings): Likewise.
8886 (xgene1_tunings): Likewise.
8887 (aarch64_macro_fusion_p): Likewise.
8888 (aarch64_macro_fusion_pair_p): Likewise.
8889
8890 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
8891
8892 * config/s390/driver-native.c: New file.
8893 * config/s390/x-native: New file.
8894 * config.host: Add new files for s390.
8895 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8896 and -march=native
8897 * config.gcc: Likewise.
8898 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8899 * config/s390/s390-opts.h (enum processor_type): Ditto.
8900 * config/s390/s390.c (s390_option_override): Catch unhandled
8901 PROCESSOR_NATIVE
8902
8903 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
8904
8905 PR target/65527
8906 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8907 redirection for instrumented calls.
8908 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8909 (append_compiler_options): Append -fcheck-pointer-bounds.
8910 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8911 (chkp_redirect_edge): New.
8912 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8913 (chkp_redirect_edge): New.
8914
8915 2015-06-01 Richard Biener <rguenther@suse.de>
8916
8917 PR tree-optimization/66280
8918 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8919 def-use walking.
8920
8921 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8922
8923 * config/aarch64/aarch64.md
8924 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8925 logic_shift_imm.
8926
8927 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8928
8929 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8930 Remove obsolete kludge.
8931
8932 2015-06-01 Richard Biener <rguenther@suse.de>
8933
8934 * tree-ssa-reassoc.c (get_rank): Simplify.
8935
8936 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
8937
8938 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8939 * configure: Regenerated.
8940
8941 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
8942
8943 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8944 issue (add space between string literal and macro).
8945 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8946
8947 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
8948
8949 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8950 implict or explicit -fPIE or -fpie.
8951
8952 2015-05-30 Mike Frysinger <vapier@gentoo.org>
8953
8954 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8955
8956 2015-05-28 DJ Delorie <dj@redhat.com>
8957
8958 * expmed.c (extract_bit_field_1): Avoid clobbering a
8959 yet-to-be-used base/index register.
8960
8961 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
8962
8963 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8964 (alias_stats): Add num_universal.
8965 (alias_set_subset_of): Special case pointers; be ready for NULL
8966 children.
8967 (alias_sets_conflict_p): Special case pointers; be ready for NULL
8968 children.
8969 (init_alias_set_entry): Break out from ...
8970 (record_alias_subset): ... here; propagate new fields;
8971 allocate children only when really needed.
8972 (get_alias_set): Do less generous pointer globbing.
8973 (dump_alias_stats_in_alias_c): Update statistics.
8974
8975 2015-05-30 Alan Modra <amodra@gmail.com>
8976
8977 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8978 correct block for use of r12.
8979 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8980
8981 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8982
8983 PR target/66215
8984 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8985 with -mhotpatch=.
8986
8987 2015-05-29 Jakub Jelinek <jakub@redhat.com>
8988
8989 PR tree-optimization/66142
8990 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8991 virtual phis that feed themselves.
8992
8993 2015-05-29 Richard Biener <rguenther@suse.de>
8994
8995 PR tree-optimization/66314
8996 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8997 parameter that says which loop the new block belongs to.
8998 (ssa_create_duplicates): Blocks duplicated for the threaded
8999 path belong to the loop of the thread destination.
9000
9001 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9002
9003 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
9004 to cleanup-saved-temps.
9005 * doc/sourcebuild.texi (Clean up generated test files): Expand
9006 introduction.
9007 (dg-keep-saved-temps): Document new proc.
9008 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
9009 cleanup-saved-temps): Remove.
9010
9011 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
9012
9013 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
9014 gcc_AC_CHECK_DECLS.
9015 * configure: Regenerate.
9016
9017 2015-05-28 Mike Frysinger <vapier@gentoo.org>
9018
9019 * config/nios2/linux.h (CPP_SPEC): Define.
9020
9021 2015-05-28 Mike Frysinger <vapier@gentoo.org>
9022
9023 * config/microblaze/linux.h (CPP_SPEC): Define.
9024
9025 2015-05-28 Mike Frysinger <vapier@gentoo.org>
9026
9027 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
9028 -pthread is specified.
9029
9030 2015-05-28 Richard Biener <rguenther@suse.de>
9031
9032 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
9033 (vect_fixup_scalar_cycles_with_patterns): Likewise.
9034 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
9035 after pattern recog.
9036 (vect_create_epilog_for_reduction): Properly handle reductions
9037 with patterns.
9038 (vectorizable_reduction): Likewise.
9039 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
9040 reduction chains.
9041 (vect_get_constant_vectors): Create the correct number of
9042 initial values for reductions.
9043 (vect_schedule_slp_instance): Handle reduction chains that are
9044 type changing properly.
9045 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
9046
9047 2015-05-28 Richard Biener <rguenther@suse.de>
9048
9049 PR tree-optimization/66142
9050 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
9051 values better in memcpy destination handling. Handle non-aliasing
9052 we discover here.
9053
9054 2015-05-28 Lawrence Velázquez <vq@larryv.me>
9055
9056 PR target/63810
9057 * config/darwin-c.c (version_components): New global enum.
9058 (parse_version, version_as_legacy_macro)
9059 (version_as_modern_macro, macosx_version_as_macro): New functions.
9060 (version_as_macro): Remove.
9061 (darwin_cpp_builtins): Use new function.
9062
9063 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
9064
9065 * builtins.c (expand_builtin_acc_on_device): Mark parameters
9066 with ATTRIBUTE_UNUSED.
9067
9068 2015-05-28 Julian Brown <julian@codesourcery.com>
9069
9070 PR libgomp/65742
9071
9072 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
9073 sequence for !ACCEL_COMPILER.
9074
9075 2015-05-28 Nick Clifton <nickc@redhat.com>
9076
9077 * config/rx/rx.c (push_regs): New function. Extracts code from...
9078 (rx_expand_prologue): ... here. Use push_regs to push even small
9079 spans of registers.
9080 (pop_regs): New function.
9081 (rx_expand_epilogue): Use pop_regs to pop even small spans of
9082 registers.
9083
9084 2015-05-28 Richard Biener <rguenther@suse.de>
9085
9086 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
9087 member.
9088 (SLP_INSTANCE_BODY_COST_VEC): Remove.
9089 (vect_update_slp_costs_according_to_vf): Likewise.
9090 (vect_slp_analyze_operations): Update prototype.
9091 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
9092 vect_update_slp_costs_according_to_vf, adjust.
9093 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
9094 (vect_analyze_slp_cost_1): Likewise.
9095 (vect_analyze_slp_cost): Likewise. Properly deal with
9096 widening reduction ops. Commit body costs.
9097 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
9098 cost for loops from here.
9099 (vect_slp_analyze_operations): But do it from here when
9100 the vectorization factor is known and stmts are analyzed.
9101 (vect_bb_vectorization_profitable_p): Simplify.
9102 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
9103 (vect_update_slp_costs_according_to_vf): Remove.
9104
9105 2015-05-27 Magnus Granberg <zorry@gentoo.org>
9106 H.J. Lu <hongjiu.lu@intel.com>
9107
9108 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
9109 (BUILD_CFLAGS): Likewise.
9110 (BUILD_CXXFLAGS): Likewise.
9111 (LINKER): Add @NO_PIE_FLAG@.
9112 (BUILD_LDFLAGS): Likewise.
9113 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
9114 --enable-default-pie.
9115 * common.opt (fPIE): Initialize to -1.
9116 (fpie): Likewise.
9117 (no-pie): New option.
9118 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
9119 * configure.ac: Add --enable-default-pie.
9120 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
9121 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
9122 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
9123 * gcc.c (NO_PIE_SPEC): New.
9124 (PIE_SPEC): Likewise.
9125 (NO_FPIE1_SPEC): Likewise.
9126 (FPIE1_SPEC): Likewise.
9127 (NO_FPIE2_SPEC): Likewise.
9128 (FPIE2_SPEC): Likewise.
9129 (NO_FPIE2_SPEC): Likewise.
9130 (FPIE_SPEC): Likewise.
9131 (NO_FPIE_SPEC): Likewise.
9132 (NO_FPIC1_SPEC): Likewise.
9133 (FPIC1_SPEC): Likewise.
9134 (NO_FPIC2_SPEC): Likewise.
9135 (FPIC2_SPEC): Likewise.
9136 (NO_FPIC2_SPEC): Likewise.
9137 (FPIC_SPEC): Likewise.
9138 (NO_FPIC_SPEC): Likewise.
9139 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9140 (FPIE1_OR_FPIC1_SPEC): Likewise.
9141 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9142 (FPIE2_OR_FPIC2_SPEC): Likewise.
9143 (NO_FPIE_AND_FPIC_SPEC): Likewise.
9144 (FPIE_OR_FPIC_SPEC): Likewise.
9145 (LD_PIE_SPEC): Likewise.
9146 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
9147 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9148 * config/darwin.h (PIE_SPEC): Renamed to ...
9149 (DARWIN_PIE_SPEC): This.
9150 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9151 * config/darwin9.h (PIE_SPEC): Renamed to ...
9152 (DARWIN_PIE_SPEC): This.
9153 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9154 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9155 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9156 FPIE2_OR_FPIC2_SPEC.
9157 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9158 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9159 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9160 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9161 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9162 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9163 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9164 * config/m32r/m32r.h (ASM_SPEC): Likewise.
9165 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9166 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9167 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9168 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9169 * config/sparc/linux.h (ASM_SPEC): Likewise.
9170 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9171 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9172 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9173 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9174 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9175 * config/sparc/sparc.h (ASM_SPEC): Likewise.
9176 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9177 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9178 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9179 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9180 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9181 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9182 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9183 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9184 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9185 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9186 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9187 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9188 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9189 * config/vax/linux.h (ASM_SPEC): Likewise.
9190 * doc/install.texi: Document --enable-default-pie.
9191 * doc/invoke.texi: Document -no-pie.
9192 * config.in: Regenerated.
9193 * configure: Likewise.
9194
9195 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9196
9197 PR rtl-optimization/66168
9198 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9199 can_move_invariant_reg.
9200
9201 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
9202
9203 PR target/66148
9204 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9205 REG_EQUAL note when doing insert.
9206
9207 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9208 instead of "%d" for 'o' operand.
9209
9210 2015-05-27 Nathan Sidwell <nathan@acm.org>
9211
9212 PR c++/66270
9213 * tree.c (build_pointer_type_for_mode): Canonical type does not
9214 inherit can_alias_all.
9215 (build_reference_type_for_mode): Likewise.
9216
9217 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
9218
9219 * expr.h (array_at_struct_end_p): Move to...
9220 (array_ref_element_size): Likewise.
9221 (component_ref_field_offset): Likewise.
9222 * tree.h (array_ref_element_size): ...here.
9223 (array_at_struct_end_p): Likewise.
9224 (component_ref_field_offset): Likewise.
9225 * expr.c (array_ref_element_size): Move to...
9226 (array_ref_low_bound): Likewise.
9227 (array_at_struct_end_p): Likewise.
9228 (array_ref_up_bound): Likewise.
9229 (component_ref_field_offset): Likewise.
9230 * tree.c (array_ref_element_size): ...here.
9231 (array_ref_low_bound): Likewise.
9232 (array_ref_up_bound): Likewise.
9233 (array_at_struct_end_p): Likewise.
9234 (component_ref_field_offset): Likewise.
9235
9236 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9237 Szabolcs Nagy <szabolcs.nagy@arm.com>
9238
9239 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9240
9241 2015-05-27 Jason Merrill <jason@redhat.com>
9242
9243 PR bootstrap/66304
9244 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9245 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9246 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9247
9248 2015-05-22 Aditya Kumar <hiraditya@msn.com>
9249
9250 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9251 is true.
9252
9253 * statistics.c (statistics_fini_pass): Print pass name.
9254
9255 2015-05-27 Richard Biener <rguenther@suse.de>
9256
9257 PR tree-optimization/66272
9258 Revert parts of
9259 2014-08-15 Richard Biener <rguenther@suse.de>
9260
9261 PR tree-optimization/62031
9262 * tree-data-ref.c (dr_analyze_indices): Do not set
9263 DR_UNCONSTRAINED_BASE.
9264 (dr_may_alias_p): All indirect accesses have to go the
9265 formerly DR_UNCONSTRAINED_BASE path.
9266 * tree-data-ref.h (struct indices): Remove
9267 unconstrained_base member.
9268 (DR_UNCONSTRAINED_BASE): Remove.
9269
9270 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
9271
9272 * dwarf2out.c: Remove block_map.
9273 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9274 (gen_lexical_block_die): Same.
9275 (dwarf2out_function_decl): Remove block_map use.
9276 (dwarf2out_c_finalize): Same.
9277 * tree-core.h (struct tree_block): Add die field.
9278 * tree.h (BLOCK_DIE): New.
9279
9280 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9281
9282 PR target/65358
9283 * expr.c (memory_load_overlap): New function.
9284 (emit_push_insn): When pushing partial args to the stack would
9285 clobber the register part load the overlapping part into a pseudo
9286 and put it into the hard reg after pushing. Change return type
9287 to bool. Add bool argument.
9288 * expr.h (emit_push_insn): Change return type to bool.
9289 Add bool argument.
9290 * calls.c (expand_call): Cancel sibcall optimization when encountering
9291 partial argument on targets with ARGS_GROW_DOWNWARD and
9292 !STACK_GROWS_DOWNWARD.
9293 (emit_library_call_value_1): Update callsite of emit_push_insn.
9294 (store_one_arg): Likewise.
9295
9296 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9297
9298 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9299
9300 2015-05-27 Martin Liska <mliska@suse.cz>
9301
9302 * Makefile.in: Add additional dependencies related to memory report
9303 enhancement.
9304 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9305 * bitmap.c (struct bitmap_descriptor_d): Remove.
9306 (struct loc): Likewise.
9307 (struct bitmap_desc_hasher): Likewise.
9308 (bitmap_desc_hasher::hash): Likewise.
9309 (bitmap_desc_hasher::equal): Likewise.
9310 (get_bitmap_descriptor): Likewise.
9311 (bitmap_register): User new memory descriptor API.
9312 (register_overhead): Likewise.
9313 (bitmap_find_bit): Register nsearches and search_iter statistics.
9314 (struct bitmap_output_info): Remove.
9315 (print_statistics): Likewise.
9316 (dump_bitmap_statistics): Use new memory descriptor.
9317 * bitmap.h (struct bitmap_usage): New class.
9318 * genmatch.c: Extend header file inclusion.
9319 * genpreds.c: Likewise.
9320 * ggc-common.c (struct ggc_usage): New class.
9321 (struct ggc_loc_desc_hasher): Remove.
9322 (ggc_loc_desc_hasher::hash): Likewise.
9323 (ggc_loc_desc_hasher::equal): Likewise.
9324 (struct ggc_ptr_hash_entry): Likewise.
9325 (struct ptr_hash_hasher): Likewise.
9326 (ptr_hash_hasher::hash): Likewise.
9327 (ptr_hash_hasher::equal): Likewise.
9328 (make_loc_descriptor): Likewise.
9329 (ggc_prune_ptr): Likewise.
9330 (dump_ggc_loc_statistics): Use new memory descriptor.
9331 (ggc_record_overhead): Likewise.
9332 (ggc_free_overhead): Likewise.
9333 (final_cmp_statistic): Remove.
9334 (cmp_statistic): Likewise.
9335 (ggc_add_statistics): Liekwise.
9336 (ggc_prune_overhead_list): Likewise.
9337 * hash-map-traits.h: New file.
9338 * hash-map.h (struct default_hashmap_traits): Move the traits to a
9339 separate header file.
9340 * hash-set.h: Pass memory statistics info to ctor.
9341 * hash-table.c (void dump_hash_table_loc_statistics): New function.
9342 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9343 (hash_table::~hash_table): Register memory release operation.
9344 (hash_table::alloc_entries): Handle memory allocation operation.
9345 (hash_table::expand): Likewise.
9346 * inchash.c (iterative_hash_hashval_t): Move implementation to header
9347 file.
9348 (iterative_hash_host_wide_int): Likewise.
9349 * inchash.h (class hash): Likewise.
9350 * mem-stats-traits.h: New file.
9351 * mem-stats.h: New file.
9352 (mem_location): Add new class.
9353 (mem_usage): Likewise.
9354 (mem_alloc_description): Likewise.
9355 * sese.c: Add new header file inclusision.
9356 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9357 and hash_set.
9358 * tree-sra.c: Add new header file inclusision.
9359 * vec.c (struct vec_descriptor): Remove.
9360 (hash_descriptor): Likewise.
9361 (struct vec_usage): Likewise.
9362 (struct ptr_hash_entry): Likewise.
9363 (hash_ptr): Likewise.
9364 (eq_ptr): Likewise.
9365 (vec_prefix::register_overhead): Use new memory descriptor API.
9366 (vec_prefix::release_overhead): Likewise.
9367 (add_statistics): Remove.
9368 (dump_vec_loc_statistics): Use new memory descriptor API.
9369 * vec.h (struct vec_prefix): Likewise.
9370 (va_heap::reserve): Likewise.
9371 (va_heap::release): Likewise.
9372 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9373
9374 2015-05-27 Richard Biener <rguenther@suse.de>
9375
9376 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9377 earlier and remove ??? comment.
9378 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9379 and got called from loop analysis bail out. Always pass the SLP
9380 node to the vectorizable_* functions.
9381 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9382 the premature SLP check here.
9383 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9384 detected SLP stmts.
9385 (vect_detect_hybrid_slp_1): Likewise.
9386
9387 2015-05-26 Jeff Law <law@redhat.com>
9388
9389 * combine.c (find_split_point): Verify that the shift count is a
9390 constant when choosing (plus (ashift ...)) as a split point.
9391
9392 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9393 No functional changes.
9394
9395 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
9396
9397 * ipa-polymorphic-call.c
9398 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9399 case when call target is already known.
9400
9401 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
9402
9403 PR target/65979
9404 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9405 take into account the case that operands[1] and operands[2]
9406 are the same register.
9407
9408 2015-05-26 Michael Matz <matz@suse.de>
9409
9410 PR middle-end/66251
9411
9412 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9413 stores.
9414 (vect_create_vectorized_demotion_stmts): Always set
9415 STMT_VINFO_VEC_STMT, also with SLP.
9416 (vectorizable_store): Handle strided group stores.
9417
9418 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9419
9420 PR target/66049
9421 * config/aarch64/aarch64.md
9422 (*adds_shift_imm_<mode>): New pattern.
9423 (*subs_shift_imm_<mode>): Likewise.
9424 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9425 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9426 (*add_uxt<mode>_shift2): Likewise.
9427 (*add_uxtsi_shift2_uxtw): Likewise.
9428 (*sub_uxt<mode>_shift2): Likewise.
9429 (*sub_uxtsi_shift2_uxtw): Likewise.
9430
9431 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
9432
9433 * config/rs6000/constraints.md (Y, U): Use match_test.
9434
9435 2015-05-26 Christian Bruel <christian.bruel@st.com>
9436
9437 PR target/52144
9438 * config/arm/arm.c (arm_option_check_internal)
9439 (arm_option_params_internal): Check opts->target_flags to set macros.
9440 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9441 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9442 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9443 (builtin_define): Replaced with def_or_undef_macro.
9444 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9445 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9446 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9447 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9448 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9449 (TARGET_ARM_FEATURE_LDREX_P)
9450 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9451 * config/arm/arm-c.c (def_or_undef_macro): New function.
9452 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9453
9454 2015-05-26 Christian Bruel <christian.bruel@st.com>
9455
9456 * c-common.h (builtin_define_with_int_value)
9457 (builtin_define_type_sizeof): Declare.
9458 * c-cppbuiltin.c (builtin_define_with_int_value)
9459 (builtin_define_type_sizeof): Externalize.
9460 (builtin_define_std): Cleanup declaration.
9461 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9462 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9463 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9464 (builtin_define, builtin_assert): New macros.
9465
9466 2015-05-26 Richard Biener <rguenther@suse.de>
9467
9468 PR tree-optimization/66142
9469 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9470 MEM_REFs for the same base address.
9471
9472 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9473
9474 PR ipa/66181
9475 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9476
9477 2015-05-26 Jason Merrill <jason@redhat.com>
9478
9479 * configure.ac: Set CXXFLAGS for ISL test.
9480 * configure: Regenerate.
9481
9482 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
9483 strstr and basename.
9484 * configure: Regenerate.
9485
9486 2015-05-26 Richard Biener <rguenther@suse.de>
9487
9488 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9489 X % C -> X & (C - 1) for C being a power-of two to ...
9490 * match.pd: ... patterns.
9491
9492 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
9493
9494 * match.pd (swapped_tcc_comparison): New operator list.
9495 (-A CMP -B): New simplification.
9496 * fold-const.c (fold_comparison): Remove corresponding code.
9497
9498 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9499
9500 * caller-save.c (init_caller_save): Base temporary register numbers
9501 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9502 * cfgloopanal.c (init_set_costs): Likewise.
9503 * dojump.c (prefer_and_bit_test): Likewise.
9504 * expr.c (init_expr_target): Likewise.
9505 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9506 * lower-subreg.c (init_lower_subreg): Likewise.
9507 * postreload.c (reload_cse_regs_1): Likewise.
9508
9509 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9510
9511 * gensupport.h (compute_test_codes): Declare.
9512 * gensupport.c (compute_predicate_codes): Rename to...
9513 (compute_test_codes): ...this. Generalize error message.
9514 (process_define_predicate): Update accordingly.
9515 * genpreds.c (compute_maybe_allows): Delete.
9516 (add_constraint): Use compute_test_codes to determine whether
9517 something can accept a SUBREG, REG or MEM.
9518
9519 2015-05-26 Torvald Riegel <triegel@redhat.com>
9520
9521 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9522 'memory model' to align with C++11; fix description of memory orders;
9523 fix a few typos.
9524
9525 2015-05-26 Richard Biener <rguenther@suse.de>
9526
9527 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9528 (vect_analyze_loop_operations): ... here. Remove slp parameter,
9529 detect whether we apply SLP. Remove call to
9530 vect_update_slp_costs_according_to_vf.
9531 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9532 vect_update_slp_costs_according_to_vf from here. Dispatch
9533 to vect_slp_analyze_operations to analyze SLP stmts.
9534 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9535 unused bb_vec_info parameter, adjust assert.
9536 (vect_slp_analyze_operations): Pass in the slp instance tree
9537 instead of bb_vec_info.
9538 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9539 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9540
9541 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9542
9543 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9544 Q_REGS. Expand comment.
9545 (REG_CLASS_NAMES): Ditto.
9546 (REG_CLASS_CONTENTS): Ditto.
9547
9548 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
9549
9550 PR target/66274
9551 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9552 when LEGACY_INT_REGNO_P is processed.
9553
9554 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9555
9556 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9557
9558 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9559
9560 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9561 register if not marked dead/unused, before return.
9562
9563 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9564
9565 PR lto/66180
9566 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9567 is set; check for assembler name at LTO time.
9568 (type_in_anonymous_namespace): Remove hacks, check that all
9569 anonymous types are called "<anon>"
9570 (odr_type_p): Simplify; add check for "<anon>"
9571 (odr_subtypes_equivalent): Add odr_type_p check.
9572 * tree.c (need_assembler_name_p): Even anonymous namespace needs
9573 assembler name.
9574
9575 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9576
9577 * ipa-utils.h (method_class_type): Remove.
9578 * cgraphunit.c (walk_polymorphic_call_targets): Use
9579 TYPE_METHOD_BASETYPE.
9580 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9581 on main variants only.
9582 (method_class_type): Remove.
9583 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9584 (build_type_inheritance_graph): Likewise.
9585 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9586 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9587 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9588
9589 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9590
9591 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9592 is_typedef_decl, typedef_variant_p): Constify.
9593 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9594 is_typedef_decl, typedef_variant_p): Constify.
9595
9596 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9597
9598 * defaults.h (gen_tablejump): New function.
9599 (HAVE_tablejump): Add default value.
9600 * expr.c: Adjust.
9601 * stmt.c: Likewise.
9602
9603 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9604
9605 * defaults.h (gen_store_multiple): New function.
9606 (HAVE_store_multiple): Add default value.
9607 * expr.c (move_block_from_reg): Adjust.
9608
9609 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9610
9611 * defaults.h (gen_load_multiple): New function.
9612 (HAVE_load_multiple): Add default value.
9613 * expr.c (move_block_to_reg): Adjust.
9614
9615 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9616
9617 * defaults.h (gen_mem_signal_fence): New function.
9618 (HAVE_mem_signal_fence): Add default value.
9619 * optabs.c: Adjust.
9620
9621 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9622
9623 * defaults.h (gen_memory_barrier): New function.
9624 (HAVE_memory_barrier): Add default value.
9625 * optabs.c: Adjust.
9626
9627 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9628
9629 * defaults.h (gen_mem_thread_fence): New function.
9630 (HAVE_mem_thread_fence): Add default definition.
9631 * optabs.c: Adjust.
9632
9633 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9634
9635 * combine.c (find_split_point): Check the value of HAVE_lo_sum
9636 instead of if it is defined.
9637 (combine_simplify_rtx): Likewise.
9638 * lra-constraints.c (process_address_1): Likewise.
9639 * config/darwin.c: Adjust.
9640 * genconfig.c (main): Always define HAVE_lo_sum.
9641
9642 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9643
9644 * genmatch.c (parser::parse_operation): Reject expanding
9645 operator-list inside 'for'.
9646
9647 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9648
9649 * genmatch.c (parser::parse_for): Reject iterator if used as
9650 operator-list.
9651
9652 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9653
9654 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9655 after end of id-list.
9656
9657 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9658
9659 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9660 we do not try to compute canonical type for type that does not need
9661 alias set.
9662 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9663 FUNCITON_TYPE.
9664 * tree.h (type_with_alias_set_p): New.
9665
9666 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9667
9668 * tree.c (gimple_canonical_types_compatible_p): Do not compare
9669 function attributes.
9670 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9671
9672 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
9673
9674 * Makefile.in (check_gcc_parallelize): Delete.
9675 (lang_checks_parallelized): Update comment.
9676
9677 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
9678
9679 PR rtl-optimization/66237
9680 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9681 location of an "as_a" cast.
9682
9683 2015-05-22 Jeff Law <law@redhat.com>
9684
9685 * config/pa/pa.md (non-canonical shift-add insns): Remove.
9686 (peepholes with non-canonical RTL sources): Remove.
9687 (peepholes for indexed stores of FP regs in integer modes): Match and
9688 generate canonical RTL.
9689
9690 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9691
9692 PR tree-optimization/63387
9693 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9694 ((x ord x) & (y ord y) -> (x ord y),
9695 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9696 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9697 vectors like scalars.
9698
9699 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9700
9701 * convert.c (convert_to_integer, convert_to_vector): Include the
9702 types in the error message.
9703
9704 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9705
9706 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9707 simplifications.
9708
9709 2015-05-22 Jeff Law <law@redhat.com>
9710
9711 * config/pa/pa.md (integer_indexed_store splitters): Use
9712 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
9713 insns -- adjusting the constant 2nd operand accordingly.
9714
9715 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9716 (plus (ashift X log2) Y) if it is a split point.
9717
9718 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9719 out of hppa_legitimize_address to handle both forms of a multiply
9720 by 2, 4 or 8.
9721 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9722 Always generate the ASHIFT variant as the result is not directly
9723 used in a MEM. Update comments and refactor slightly to improve
9724 readability.
9725
9726 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9727
9728 PR target/65491
9729 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9730 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
9731 (aarch64_composite_type_p): Return false if given type and mode are
9732 for a short vector.
9733
9734 2015-05-22 Richard Biener <rguenther@suse.de>
9735
9736 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9737 member.
9738 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9739 patterns when determining whether SLP is pure.
9740 (vect_is_slp_reduction): Remove check for pattern stmts.
9741 (vect_is_simple_reduction_1): Remove dead code.
9742 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9743 (vect_get_and_check_slp_defs): Pass in the stmt number.
9744 Allow the first def in a reduction to be not a pattern stmt when
9745 the rest of the stmts def are patterns.
9746 (vect_build_slp_tree_1): Allow tcc_expression codes like
9747 SAD_EXPR and DOT_PROD_EXPR.
9748 (vect_build_slp_tree): Adjust.
9749 (vect_analyze_slp): Refactor and move BB vect error message ...
9750 (vect_slp_analyze_bb_1): ... here.
9751
9752 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
9753
9754 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9755 for CSWTCH temporary.
9756
9757 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9758
9759 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9760 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
9761 unknown unspecs.
9762
9763 2015-05-22 Richard Biener <rguenther@suse.de>
9764
9765 PR tree-optimization/66251
9766 * tree-vect-stmts.c (vectorizable_conversion): Properly
9767 set STMT_VINFO_VEC_STMT even for the SLP case.
9768
9769 2015-05-22 Marek Polacek <polacek@redhat.com>
9770
9771 * doc/extend.texi: Use @pxref instead of @xref.
9772
9773 2015-05-22 hiraditya <hiraditya@msn.com>
9774
9775 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9776 redundant if.
9777
9778 2015-05-22 Richard Biener <rguenther@suse.de>
9779
9780 PR tree-optimization/65701
9781 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9782 Move peeling cost models into one place. Peel for alignment
9783 for single loads only if an aligned load is cheaper than
9784 an unaligned load.
9785
9786 2015-05-22 Marek Polacek <polacek@redhat.com>
9787
9788 PR c/47043
9789 * doc/extend.texi (Enumerator Attributes): New section.
9790 Document syntax of enumerator attributes.
9791
9792 2015-05-22 Richard Biener <rguenther@suse.de>
9793
9794 * tree-vect-loop.c (get_reduction_op): New function.
9795 (vect_model_reduction_cost): Use it, add reduc_index parameter.
9796 Make ready for BB reductions.
9797 (vect_create_epilog_for_reduction): Use get_reduction_op.
9798 (vectorizable_reduction): Init reduc_index to a valid value.
9799 Adjust vect_model_reduction_cost call.
9800 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9801 operand for reduction defaults. Add SAD_EXPR support.
9802 Assert we have a neutral op for SLP reductions.
9803 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9804 walking pattern stmt ops only recurse to SSA names.
9805
9806 2015-05-22 Richard Biener <rguenther@suse.de>
9807
9808 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9809 assert with guard, remove check on detected reduction.
9810 (vect_recog_sad_pattern): Likewise.
9811 (vect_recog_widen_sum_pattern): Likewise.
9812
9813 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9814
9815 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9816 __always_inline__ attribute.
9817 (vaesdq_u8): Likewise.
9818 (vaesmcq_u8): Likewise.
9819 (vaesimcq_u8): Likewise.
9820 (vsha1cq_u32): Likewise.
9821 (vsha1mq_u32): Likewise.
9822 (vsha1pq_u32): Likewise.
9823 (vsha1h_u32): Likewise.
9824 (vsha1su0q_u32): Likewise.
9825 (vsha1su1q_u32): Likewise.
9826 (vsha256hq_u32): Likewise.
9827 (vsha256h2q_u32): Likewise.
9828 (vsha256su0q_u32): Likewise.
9829 (vsha256su1q_u32): Likewise.
9830 (vmull_p64): Likewise.
9831 (vmull_high_p64): Likewise.
9832
9833 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9834
9835 * final.c (final_scan_insn): Don't check HAVE_peephole with the
9836 preprocessor.
9837 * output.h: Likewise.
9838 * genconfig.c (main): Alwways define HAVE_peephole.
9839 * genpeep.c: Don't emit checks of HAVE_peephole.
9840
9841 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9842
9843 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9844 check HAVE_conditional_move with the preprocessor.
9845
9846 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9847
9848 * genconfig.c (main): Always define HAVE_conditional_move.
9849 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9850 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9851 is defined.
9852
9853 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9854
9855 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9856 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9857 and FRAME_POINTER_REGNUM with the preprocessor.
9858
9859 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9860
9861 * defaults.h: Add default for STACK_PUSH_CODE.
9862 * expr.c: Don't redefine STACK_PUSH_CODE.
9863 * recog.c: Likewise.
9864
9865 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9866
9867 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9868 sched-deps.c: Use if instead of preprocessor checks with
9869 STACK_GROWS_DOWNWARD.
9870
9871 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9872
9873 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9874 is defined.
9875 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9876 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9877 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9878 * doc/tm.texi: Regenerate.
9879
9880 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
9881
9882 PR target/66232
9883 * config/i386/constraints.md (Bg): New constraint for GOT memory
9884 operand.
9885 * config/i386/i386.md (*call_got_x32): New pattern.
9886 (*call_value_got_x32): Likewise.
9887 * config/i386/predicates.md (GOT_memory_operand): New predicate.
9888
9889 2015-05-21 Jakub Jelinek <jakub@redhat.com>
9890
9891 PR tree-optimization/66233
9892 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9893 Simplify.
9894
9895 2015-05-21 Jeff Law <law@redhat.com>
9896
9897 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9898 than MULT for shadd sequences.
9899
9900 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
9901
9902 * alias.c (alias_stats): New static var.
9903 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9904 (dump_alias_stats_in_alias_c): New function.
9905 * alias.h (dump_alias_stats_in_alias_c): Declare.
9906 * tree-ssa-alias.c (dump_alias_stats): Call it.
9907
9908 2015-05-08 Michael Matz <matz@suse.de>
9909
9910 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9911 to strided_p.
9912 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9913 (STMT_VINFO_STRIDED_P): ... this.
9914 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9915 (vect_verify_datarefs_alignment): Likewise.
9916 (vect_enhance_data_refs_alignment): Likewise.
9917 (vect_analyze_data_ref_access): Likewise.
9918 (vect_analyze_data_refs): Accept strided stores.
9919 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9920 (vect_model_load_cost): Adjust for macro rename.
9921 (vectorizable_mask_load_store): Likewise.
9922 (vectorizable_load): Likewise.
9923 (vectorizable_store): Open code strided stores.
9924
9925 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9926
9927 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9928 Document sqrt_insn.
9929
9930 2015-05-21 Richard Biener <rguenther@suse.de>
9931
9932 PR c++/66211
9933 * match.pd: Guard pattern optimzing (int)(float)int
9934 conversions to apply only on GIMPLE.
9935
9936 2015-05-21 Jeff Law <law@redhat.com>
9937
9938 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9939 multiply-accumulate/shift-add insn generation.
9940
9941 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
9942
9943 PR target/54236
9944 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9945 operands[1] are the same.
9946
9947 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9948
9949 PR middle-end/66221
9950 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9951 build_distinct_type_copy to copy bounds.
9952
9953 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
9954
9955 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9956 Change to unsigned int.
9957
9958 2015-05-20 Jeff Law <law@redhat.com>
9959
9960 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9961 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9962 (pa_shadd_constant_p): Allow constants for shadd insns rather
9963 than valid scaling constants for memory addresses.
9964 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9965 * config/pa/predicates.md (mem_shadd_operand): New predicate.
9966 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9967 (shift-add insns using ASHIFT): New patterns.
9968
9969 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
9970
9971 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9972 feasible.
9973 (fix_up_fall_thru_edges): Likewise.
9974 (fix_crossing_conditional_branches): Likewise. Promote jump targets
9975 from to rtx_insn to rtx_code_label where feasible.
9976 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9977 gen_move_insn (returned type changed to rtx_insn).
9978 * builtins.c (expand_errno_check): Fix arguments of
9979 do_compare_rtx_and_jump (now expects rtx_code_label).
9980 (expand_builtin_acc_on_device): Likewise.
9981 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9982 invert_jump (now exprects rtx_jump_insn).
9983 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9984 (construct_init_block): Use rtx_code_label.
9985 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9986 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9987 calling redirect_jump.
9988 (patch_jump_insn): Likewise.
9989 (redirect_branch_edge): Likewise.
9990 (force_nonfallthru_and_redirect): Likewise.
9991 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9992 when suitable.
9993 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9994 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9995 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9996 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9997 to store the value retured by gen_label_rtx.
9998 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9999 rtx_jump_insn.
10000 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
10001 (split_branches): Fix calls of redirect_jump.
10002 * dojump.c (jumpifnot): Promote argument type from rtx to
10003 rtx_code_label.
10004 (jumpifnot_1): Likewise.
10005 (jumpif): Likewise.
10006 (jumpif_1): Likewise.
10007 (do_jump_1): Likewise.
10008 (do_jump): Likewise. Use rtx_code_label when feasible.
10009 (do_jump_by_parts_greater_rtx): Likewise.
10010 (do_jump_by_parts_zero_rtx): Likewise.
10011 (do_jump_by_parts_equality_rtx): Likewise.
10012 (do_compare_rtx_and_jump): Likewise.
10013 * dojump.h: Update function prototypes.
10014 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
10015 returns rtx_insn).
10016 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
10017 rtx_jump_insn.
10018 (emit_label_before): Likewise.
10019 (emit_jump_insn_after_noloc): Likewise.
10020 (emit_jump_insn_after_setloc): Likewise.
10021 (emit_jump_insn_after): Likewise
10022 (emit_jump_insn_before_setloc): Likewise.
10023 (emit_jump_insn_before): Likewise.
10024 (emit_label_before): Promote return type to rtx_code_label.
10025 (emit_label): Likewise.
10026 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
10027 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
10028 gen_move_insn.
10029 (emit_stack_restore): Likewise.
10030 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
10031 (do_cmp_and_jump): Likewise.
10032 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
10033 from rtx to rtx_code_label.
10034 (gen_move_insn_uncast): New function.
10035 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
10036 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
10037 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
10038 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
10039 invert_jump_1 and redirect_jump_1.
10040 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
10041 do_compare_rtx_and_jump.
10042 (expand_addsub_overflow): Likewise.
10043 (expand_neg_overflow): Likewise.
10044 (expand_mul_overflow): Likewise.
10045 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
10046 return value of gen_move_insn.
10047 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
10048 * loop-doloop.c (add_test): Use rtx_code_label.
10049 (doloop_modify): Likewise.
10050 (doloop_optimize): Likewise.
10051 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
10052 * lra-constraints.c (emit_spill_move): Remove cast of value returned
10053 by gen_move_insn.
10054 (inherit_reload_reg): Add cast when calling dump_insn_slim.
10055 (split_reg): Likewise.
10056 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
10057 gen_move_insn.
10058 * optabs.c (expand_binop_directly): Remove casts of values returned by
10059 maybe_gen_insn.
10060 (expand_unop_direct): Likewise.
10061 (expand_abs): Likewise.
10062 (maybe_emit_unop_insn): Likewise.
10063 (maybe_gen_insn): Promote return type to rtx_insn.
10064 * optabs.h: Update prototype of maybe_gen_insn.
10065 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
10066 redundant cast.
10067 * recog.c (struct peep2_insn_data): Promote type of insn field to
10068 rtx_insn.
10069 (peep2_reinit_state): Use NULL instead of NULL_RTX.
10070 (peep2_attempt): Remove casts of insn in peep2_insn_data.
10071 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
10072 * recog.h (struct insn_gen_fn): Promote return types of function
10073 pointers and operator ().from rtx to rtx_insn.
10074 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
10075 (fill_eager_delay_slots): Likewise.
10076 (relax_delay_slots): Likewise.
10077 (make_return_insns): Likewise.
10078 (dbr_schedule): Likewise.
10079 (optimize_skips): Likewise.
10080 (reorg_redirect_jump): Likewise.
10081 (fill_slots_from_thread): Likewise.
10082 * reorg.h: Update prototypes.
10083 * resource.c (find_dead_or_set_registers): Use dyn_cast to
10084 rtx_jump_insn instead of check. Use it's jump_target method.
10085 * rtl.h (rtx_jump_insn::jump_label): Define new method.
10086 (rtx_jump_insn::jump_target): Define new method.
10087 (rtx_jump_insn::set_jump_target): Define new method.
10088 * rtlanal.c (tablejump_p): Promote type of one local variable.
10089 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
10090 (sched_analyze_insn): Likewise.
10091 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
10092 (print_insn): Likewise.
10093 * stmt.c (label_rtx): Promote return type to rtx_insn.
10094 (force_label_rtx): Likewise.
10095 (jump_target_rtx): Define new function.
10096 (expand_label): Use it, get rid of one cast.
10097 (expand_naked_return): Promote rtx to rtx_code_label.
10098 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
10099 (expand_case): Use rtx_code_label instread of rtx where feasible.
10100 (expand_sjlj_dispatch_table): Likewise.
10101 (emit_case_nodes): Likewise.
10102 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
10103 * store-motion.c (insert_store): Make use of new return type of
10104 gen_move_insn and remove a cast.
10105 (replace_store_insn): Likewise.
10106
10107 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
10108
10109 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
10110 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10111
10112 2015-05-20 Jeff Law <law@redhat.com>
10113
10114 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
10115 dispose of the jump thread path when the jump threading
10116 opportunity is cancelled.
10117
10118 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10119
10120 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
10121 when printing the caret character.
10122
10123 2015-05-20 Marek Polacek <polacek@redhat.com>
10124
10125 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10126
10127 2015-05-20 Marek Polacek <polacek@redhat.com>
10128
10129 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10130 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10131 * gimple-fold.c (canonicalize_bool): Likewise.
10132 (same_bool_result_p): Likewise.
10133 * tree-if-conv.c (parse_predicate): Likewise.
10134
10135 2015-05-20 Marek Polacek <polacek@redhat.com>
10136
10137 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10138 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10139
10140 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10141
10142 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10143 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10144 values.
10145
10146 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
10147
10148 * config/mips/mips.h (micromips_globals): Declare.
10149
10150 2015-05-20 David Malcolm <dmalcolm@redhat.com>
10151
10152 * timevar.def (TV_INITIALIZE_RTL): New.
10153 * toplev.c (initialize_rtl): Use an auto_timevar to account this
10154 function's time to TV_INITIALIZE_RTL.
10155
10156 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
10157
10158 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10159 gimple_build_nop calls.
10160 (chkp_find_bounds_for_elem): Likewise.
10161 (chkp_get_zero_bounds): Likewise.
10162 (chkp_get_none_bounds): Likewise.
10163 (chkp_get_bounds_by_definition): Likewise.
10164 (chkp_generate_extern_var_bounds): Likewise.
10165 (chkp_get_bounds_for_decl_addr): Likewise.
10166 (chkp_get_bounds_for_string_cst): Likewise.
10167
10168 2015-05-20 Bin Cheng <bin.cheng@arm.com>
10169
10170 PR tree-optimization/65447
10171 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10172 (dump_use, dump_uses): Support to dump sub use.
10173 (record_use): New parameters to support sub use. Remove call to
10174 dump_use.
10175 (record_sub_use, record_group_use): New functions.
10176 (compute_max_addr_offset, split_all_small_groups): New functions.
10177 (group_address_uses, rewrite_use_address): New functions.
10178 (strip_offset): New declaration.
10179 (find_interesting_uses_address): Call record_group_use.
10180 (add_candidate): New assertion.
10181 (infinite_cost_p): Move definition forward.
10182 (add_costs): Check INFTY cost and return immediately.
10183 (get_computation_cost_at): Clear setup cost and dependent bitmap
10184 for sub uses.
10185 (determine_use_iv_cost_address): Compute cost for sub uses.
10186 (rewrite_use_address_1): Rename from old rewrite_use_address.
10187 (free_loop_data): Free sub uses.
10188 (tree_ssa_iv_optimize_loop): Call group_address_uses.
10189
10190 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10191 Jim Wilson <jim.wilson@linaro.org>
10192
10193 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10194 new fields loadv and storev.
10195 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10196 Initialize loadv and storev.
10197 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10198 (cortexa53_extra_costs): Likewise.
10199 (cortexa57_extra_costs): Likewise.
10200 (xgene1_extra_costs): Likewise.
10201 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10202 rtx_costs.
10203
10204 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10205
10206 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10207 storev.
10208 (cortexa8_extra_costs): Likewise.
10209 (cortexa5_extra_costs): Likewise.
10210 (cortexa7_extra_costs): Likewise.
10211 (cortexa12_extra_costs): Likewise.
10212 (cortexa15_extra_costs): Likewise.
10213 (v7m_extra_costs): Likewise.
10214
10215 2015-05-20 Jeff Law <law@redhat.com>
10216
10217 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10218 instead of open-coded version. Also delete the jump thread created
10219 within this function.
10220
10221 2015-05-20 Alan Modra <amodra@gmail.com>
10222
10223 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10224 stack adjusting insn. Formatting.
10225 (rs6000_emit_prologue): Track stack adjusting insn, and use of
10226 r12. If possible, emit first -fsplit-stack arg pointer insn
10227 before stack adjust. Don't use r12 to save cr if split-stack.
10228
10229 2015-05-20 Alan Modra <amodra@gmail.com>
10230
10231 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10232 Define.
10233 (rs6000_supports_split_stack): New function.
10234 * gcc/config/rs6000/rs6000.c (machine_function): Add
10235 split_stack_arg_pointer.
10236 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10237 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10238 rather than virtual_incoming_args_rtx.
10239 (rs6000_va_start): Likewise.
10240 (split_stack_arg_pointer_used_p): New function.
10241 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10242 (morestack_ref): New var.
10243 (gen_add3_const, rs6000_expand_split_stack_prologue,
10244 rs6000_internal_arg_pointer, rs6000_live_on_entry,
10245 rs6000_split_stack_space_check): New functions.
10246 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10247 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10248 (UNSPECV_SPLIT_STACK_RETURN): Define.
10249 (split_stack_prologue, load_split_stack_limit,
10250 load_split_stack_limit_di, load_split_stack_limit_si,
10251 split_stack_return, split_stack_space_check): New expands and insns.
10252 * gcc/config/rs6000/rs6000-protos.h
10253 (rs6000_expand_split_stack_prologue): Declare.
10254 (rs6000_split_stack_space_check): Declare.
10255
10256 2015-05-20 Alan Modra <amodra@gmail.com>
10257
10258 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10259 (direct_return): Test vrsave_size rather than vrsave_mask.
10260 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
10261 (rs6000_emit_epilogue): Likewise.
10262
10263 2015-05-20 Alan Modra <amodra@gmail.com>
10264
10265 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10266 when not saving registers.
10267 (debug_stack_info): Adjust to omit printing unused offsets,
10268 as before.
10269 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10270 expression.
10271
10272 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10273
10274 PR c++/65835
10275 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10276 value_type to const char *.
10277
10278 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
10279
10280 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10281 to build a biarch toolchain again.
10282
10283 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10284
10285 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10286 or implicit declarations.
10287 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10288 into it.
10289 (get_odr_type): Check type has linkage before adding bases.
10290 (register_odr_type): Check that type has linkage before adding it.
10291 (type_known_to_have_no_deriavations_p): Rename to ..
10292 (type_known_to_have_no_derivations_p): This one.
10293 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10294 (type_known_to_have_no_derivations_p): This one.
10295 * ipa-polymorphic-call.c
10296 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10297 type has linkage.
10298
10299 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10300
10301 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10302 (layout_type): Use RECORD_OR_UNION_TYPE_P.
10303
10304 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10305
10306 * config/s390/s390.c (s390_vector_bool_type_p): New function.
10307 (s390_invalid_binary_op): New function.
10308 (TARGET_INVALID_BINARY_OP): Define macro.
10309
10310 2015-05-19 David Sherwood <david.sherwood@arm.com>
10311
10312 * loop-invariant.c (create_new_invariant): Don't calculate address cost
10313 if mode is not a scalar integer.
10314 (get_inv_cost): Increase computational cost for unused invariants.
10315
10316 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10317
10318 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
10319 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
10320 * config/s390/s390-builtin-types.def: New file.
10321 * config/s390/s390-builtins.def: New file.
10322 * config/s390/s390-builtins.h: New file.
10323 * config/s390/s390-c.c: New file.
10324 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10325 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10326 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10327 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10328 prototypes.
10329 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10330 Include.
10331 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10332 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10333 variable definitions.
10334 (s390_const_operand_ok): New function.
10335 (s390_expand_builtin): Rewrite.
10336 (s390_init_builtins): New function.
10337 (s390_handle_vectorbool_attribute): New function.
10338 (s390_attribute_table): Add s390_vector_bool attribute.
10339 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10340 (s390_branch_condition_mask): Generate masks for new modes.
10341 (s390_expand_vec_compare_cc): New function.
10342 (s390_mangle_type): Add mangling for vector bool types.
10343 (enum s390_builtin): Remove.
10344 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10345 efpc builtins.
10346 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10347 s390_cpu_cpp_builtins.
10348 (REGISTER_TARGET_PRAGMAS): New macro.
10349 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10350 (insn_cmp mode attribute): Add new CC modes.
10351 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10352 (lcbb): New pattern definition.
10353 * config/s390/s390intrin.h: Include vecintrin.h.
10354 * config/s390/t-s390: New file.
10355 * config/s390/vecintrin.h: New file.
10356 * config/s390/vector.md: Include vx-builtins.md.
10357 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10358 support.
10359
10360 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10361
10362 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10363 CCVFHE.
10364 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10365 (s390_select_ccmode): Likewise.
10366 (s390_canonicalize_comparison): Swap operands if necessary.
10367 (s390_expand_vec_compare_scalar): Expand DFmode compare using
10368 single element vector instructions.
10369 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10370 (s390_branch_condition_mask): Generate CC masks for the new modes.
10371 * config/s390/s390.md (v0, vf, vd): New mode attributes.
10372 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10373 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10374 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10375 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10376 (*extend<DSF:mode><BFP:mode>2): New insn definition.
10377 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10378 (extend<DSF:mode><BFP:mode>2): Turn into expander.
10379 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10380 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10381 (sqrt<mode>2): Add vector instruction.
10382
10383 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10384
10385 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10386 constraints.
10387 * config/s390/predicates.md (const0_operand, constm1_operand)
10388 (constable_operand): Accept vector operands.
10389 * config/s390/s390-modes.def: Add supported vector modes.
10390 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10391 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10392 (s390_bytemask_vector_p, s390_expand_vec_strlen)
10393 (s390_expand_vec_compare, s390_expand_vcond)
10394 (s390_expand_vec_init): Add prototypes.
10395 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10396 (s390_vector_mode_supported_p): New function.
10397 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10398 (s390_contiguous_bitmask_vector_p): New function.
10399 (s390_bytemask_vector_p): New function.
10400 (s390_split_ok_p): Vector regs don't work either.
10401 (regclass_map): Add VEC_REGS.
10402 (s390_legitimate_constant_p): Handle vector constants.
10403 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10404 (legitimate_reload_vector_constant_p): New function.
10405 (s390_preferred_reload_class): Handle CONST_VECTOR.
10406 (s390_reload_symref_address): Likewise.
10407 (s390_secondary_reload): Vector memory instructions only support
10408 short displacements. Rename reload*_nonoffmem* to reload*_la*.
10409 (s390_emit_ccraw_jump): New function.
10410 (s390_expand_vec_strlen): New function.
10411 (s390_expand_vec_compare): New function.
10412 (s390_expand_vcond): New function.
10413 (s390_expand_vec_init): New function.
10414 (s390_dwarf_frame_reg_mode): New function.
10415 (print_operand): Handle addresses with 'O' and 'R' constraints.
10416 (NR_C_MODES, constant_modes): Add vector modes.
10417 (s390_output_pool_entry): Handle vector constants.
10418 (s390_hard_regno_mode_ok): Handle vector registers.
10419 (s390_class_max_nregs): Likewise.
10420 (s390_cannot_change_mode_class): New function.
10421 (s390_invalid_arg_for_unprototyped_fn): New function.
10422 (s390_function_arg_vector): New function.
10423 (s390_function_arg_float): Remove size variable.
10424 (s390_pass_by_reference): Handle vector arguments.
10425 (s390_function_arg_advance): Likewise.
10426 (s390_function_arg): Likewise.
10427 (s390_return_in_memory): Vector values are returned in a VR if
10428 possible.
10429 (s390_function_and_libcall_value): Handle vector arguments.
10430 (s390_gimplify_va_arg): Likewise.
10431 (s390_call_saved_register_used): Consider the arguments named.
10432 (s390_conditional_register_usage): Disable v16-v31 for non-vec
10433 targets.
10434 (s390_preferred_simd_mode): New function.
10435 (s390_support_vector_misalignment): New function.
10436 (s390_vector_alignment): New function.
10437 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10438 (TARGET_VECTOR_MODE_SUPPORTED_P)
10439 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10440 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10441 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10442 (TARGET_VECTOR_ALIGNMENT): Define target macro.
10443 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10444 (FIRST_PSEUDO_REGISTER): Increase value.
10445 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10446 (VECTOR_REG_P): Define macros.
10447 (FIXED_REGISTERS, CALL_USED_REGISTERS)
10448 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10449 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10450 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10451 Add vector registers.
10452 (CANNOT_CHANGE_MODE_CLASS): Call C function.
10453 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10454 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10455 memory.
10456 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10457 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10458 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10459 (VR*_REGNUM): New constants.
10460 (ALL): New mode iterator.
10461 (INTALL): Remove mode iterator.
10462 Include vector.md.
10463 (movti): Implement TImode moves for VRs.
10464 Disable TImode splitter for VR targets.
10465 Implement splitting TImode GPR<->VR moves.
10466 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10467 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10468 reload<mode>_la_in, reload<mode>_la_out.
10469 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10470 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10471 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10472 (mov<mode> SF SD): Prefer lder, lde for loading.
10473 Add lrl and strl instructions.
10474 Add vector instructions.
10475 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10476 Call s390_expand_vec_strlen on z13.
10477 (*cc_to_int): Change predicate to nonimmediate_operand.
10478 (addti3): Rename to *addti3. New expander.
10479 (subti3): Rename to *subti3. New expander.
10480 * config/s390/vector.md: New file.
10481
10482 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10483
10484 * common/config/s390/s390-common.c (processor_flags_table): Add
10485 z13.
10486 * config.gcc: Add z13.
10487 * config/s390/s390-opts.h (enum processor_type): Add
10488 PROCESSOR_2964_Z13.
10489 * config/s390/s390.c (s390_adjust_priority): Check for
10490 PROCESSOR_2964_Z13.
10491 (s390_reorg): Likewise.
10492 (s390_sched_reorder): Likewise.
10493 (s390_sched_variable_issue): Likewise.
10494 (s390_loop_unroll_adjust): Likewise.
10495 (s390_option_override): Likewise. Default to -mvx when available.
10496 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10497 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10498 (TARGET_VX_ABI): Define macros.
10499 macros.
10500 (TARGET_DEFAULT): Add MASK_OPT_VX.
10501 * config/s390/s390.md ("cpu" attribute): Add z13.
10502 ("cpu_facility" attribute): Add vec.
10503 * config/s390/s390.opt (processor_type): Add z13.
10504 (mvx): New options.
10505 * doc/invoke.texi: Add z13 option for -march.
10506
10507 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10508
10509 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10510 mode check to make sure that only scalar integer values are
10511 accepted.
10512
10513 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10514
10515 * tree.c (verify_type_variant): Fix #undef.
10516 (gimple_canonical_types_compatible_p): Move here from lto.c
10517 (verify_type): Verify TYPE_CANONICAL compatibility.
10518 * tree.h (gimple_canonical_types_compatible_p): Declare.
10519
10520 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10521
10522 PR middle-end/66199
10523 * tree.h (OMP_TEAMS_COMBINED): Define.
10524 * gimplify.c (enum gimplify_omp_var_data): Add
10525 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10526 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10527 (omp_notice_variable): Accept both ORT_TEAMS
10528 and ORT_COMBINED_TEAMS. Don't recurse if
10529 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10530 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10531 GOVD_FIRSTPRIVATE.
10532 (omp_no_lastprivate): New function.
10533 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10534 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10535 notice_outer and set appropriate bits, otherwise make
10536 sure default(none) combined constructs won't complain.
10537 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10538 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10539 omp_no_lastprivate either remove the clause or turn it
10540 into OMP_CLAUSE_PRIVATE.
10541 (gimplify_omp_for): Fix up handling of implicit
10542 lastprivate or linear iterators.
10543 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10544 ORT_COMBINED_TEAMS.
10545 * omp-low.c (lower_omp_for_lastprivate): For combined
10546 for simd use fd.loop.n2 from the for rather than simd.
10547
10548 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10549
10550 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10551 instead of gen_rtx_raw_REG.
10552 (cris_expand_epilogue): Likewise.
10553 * config/microblaze/microblaze.c (microblaze_classify_address):
10554 Likewise.
10555 * config/sparc/sparc.md: Likewise.
10556
10557 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
10558
10559 * config/alpha/alpha.c (alpha_legitimize_reload_address)
10560 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10561 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10562 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10563 Use CASE_CONST_SCALAR_INT.
10564 (print_operand) <case 'M'>: Use mode_width_operand to check the
10565 value of the constant.
10566 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10567 * config/alpha/predicates.md (input_operand): Use general_operand
10568 instead of match_code as operand check.
10569 (symbolic_operand): Use match_code with subexpression digits.
10570 * config/alpha/constraints.md (Q): Ditto.
10571
10572 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10573
10574 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10575
10576 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10577
10578 * config/s390/s390.c (s390_secondary_reload): Fix check for
10579 load/store relative.
10580
10581 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10582
10583 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
10584 alternative_mask to uint64_t.
10585
10586 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10587
10588 PR tree-optimization/66187
10589 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10590 Pass TYPE_SIGN to tree_int_cst_min_precision. If
10591 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10592
10593 2015-05-19 David Malcolm <dmalcolm@redhat.com>
10594
10595 * diagnostic.c (diagnostic_report_current_module): Strengthen
10596 local "new_map" from const line_map * to
10597 const line_map_ordinary *.
10598 * genmatch.c (error_cb): Likewise for local "map".
10599 (output_line_directive): Likewise for local "map".
10600 * input.c (expand_location_1): Likewise for local "map".
10601 Pass NULL rather than &map to
10602 linemap_unwind_to_first_non_reserved_loc, since the value is never
10603 read from there, and the value written back not read from here.
10604 (is_location_from_builtin_token): Strengthen local "map" from
10605 const line_map * to const line_map_ordinary *.
10606 (dump_location_info): Strengthen locals "map" from
10607 line_map *, one to const line_map_ordinary *, the other
10608 to const line_map_macro *.
10609 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10610 const line_map * to const line_map_macro *.
10611 (maybe_unwind_expanded_macro_loc): Add a call to
10612 linemap_check_macro when writing to the "map" field of the
10613 loc_map_pair.
10614 Introduce local const line_map_ordinary * "ord_map", using it in
10615 place of "map" in the part of the function where we know we have
10616 an ordinary map. Strengthen local "m" from const line_map * to
10617 const line_map_ordinary *.
10618
10619 2015-05-19 Nick Clifton <nickc@redhat.com>
10620
10621 PR target/66156
10622 * config/msp430/msp430.md (zero_extendhisi2): Add support for
10623 separate source and destination registers.
10624
10625 2015-05-19 Richard Biener <rguenther@suse.de>
10626
10627 PR tree-optimization/66165
10628 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10629 for no load permutation.
10630
10631 PR tree-optimization/66185
10632 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10633 when building the SLP node from scalars.
10634
10635 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10636 Tristan Gingold <gingold@adacore.com>
10637
10638 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10639 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10640 (expand_stack_restore): Call record_new_stack_level.
10641 (expand_stack_save): Do not call do_pending_stack_adjust.
10642 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10643 * calls.c (expand_call): Call record_new_stack_level for alloca.
10644 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10645 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10646 (update_sjlj_context): New global function.
10647 * except.h (update_sjlj_context): Declare.
10648 * explow.c (record_new_stack_level): New global function.
10649 (allocate_dynamic_stack_space): Call record_new_stack_level.
10650 * explow.h (record_new_stack_level): Declare.
10651 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10652 * cfgrtl.c (duplicate_insn_chain): Likewise.
10653
10654 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10655
10656 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10657 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10658 STACK_GROWS_DOWNWARD as normal if.
10659 (expand_call): Likewise.
10660
10661 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
10662
10663 PR target/54236
10664 * config/sh/sh.md (*round_int_even): New insn_and_split and
10665 accompanying new unnamed split.
10666
10667 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10668
10669 * bitmap.c (bitmap_set_range): Handle count==1 specially.
10670 (bitmap_clear_range): Likewise.
10671 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10672 bitmap_set_range unconditionally.
10673 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10674 * df-scan.c (df_mark_reg): Likewise.
10675 * haifa-sched.c (setup_ref_regs): Likewise.
10676 * sched-rgn.c (update_live_1): Likewise.
10677
10678 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10679
10680 * regs.h (END_HARD_REGNO): Delete.
10681 (END_REGNO): Move to...
10682 * rtl.h: ...here.
10683 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10684 * caller-save.c (mark_set_regs): Likewise.
10685 * combine.c (move_deaths, distribute_notes): Likewise.
10686 * cse.c (invalidate, invalidate_for_call): Likewise.
10687 * df-scan.c (df_ref_record): Likewise.
10688 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10689 (record_last_reg_set_info): Likewise.
10690 * reg-stack.c (convert_regs_exit): Likewise.
10691 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10692 * resource.c (update_live_status): Likewise.
10693 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10694
10695 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10696
10697 * rtl.h (reg_info): Add an nregs field.
10698 (REG_NREGS): Use it.
10699 (SET_REGNO_RAW): Delete.
10700 (set_regno_raw): New function.
10701 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10702 (END_REGNO): Redefine in terms of REG_NREGS.
10703 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10704 SET_REGNO_RAW.
10705 * emit-rtl.c (set_mode_and_regno): Likewise.
10706 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10707 instead of SET_REGNO_RAW.
10708
10709 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10710
10711 * rtl.h (PUT_MODE_RAW): New macro.
10712 (PUT_REG_NOTE_KIND): Use it.
10713 (set_mode_and_regno): Declare.
10714 (gen_raw_REG): Change regno to "unsigned int".
10715 (gen_rtx_REG): Change "unsigned" to "unsigned int".
10716 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10717 use set_mode_and_regno to change the mode of registers.
10718 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10719 * emit-rtl.c (set_mode_and_regno): New function.
10720 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
10721 * caller-save.c (reg_save_code): Use set_mode_and_regno.
10722 * expr.c (init_expr_target): Likewise.
10723 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10724 * postreload.c (reload_cse_simplify_operands): Likewise.
10725
10726 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10727
10728 * caller-save.c (init_caller_save): Use word_mode and
10729 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10730 * expr.c (init_expr_target): Likewise.
10731 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10732 * postreload.c (reload_cse_regs_1): Likewise.
10733
10734 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10735
10736 * rtl.def (REG): Change format to "r".
10737 * rtl.h (rtunion): Remove rt_reg.
10738 (reg_info): New structure.
10739 (rtx_def): Add reg field to main union.
10740 (X0REGATTR): Delete.
10741 (REG_CHECK): New macro.
10742 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10743 * rtl.c (rtx_format): Document "r".
10744 (rtx_code_size): Handle REG specially.
10745 * gengenrtl.c (special_format): Return true for formats
10746 that include 'r'.
10747 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10748 Deal with REG_ATTRS after the field loop.
10749 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10750 * expmed.c (init_expmed): Call gen_raw_REG instead of
10751 gen_rtx_raw_REG.
10752 * expr.c (init_expr_target): Likewise.
10753 * regcprop.c (maybe_mode_change): Likewise.
10754 * varasm.c (make_decl_rtl): Likewise.
10755 * final.c (leaf_renumber_regs_insn): Return early after
10756 handling REGs.
10757 * genemit.c (gen_exp): Handle 'r' fields.
10758 * genpeep.c (match_rtx): Likewise.
10759 * gensupport.c (subst_pattern_match): Likewise.
10760 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10761 (alter_constraints, subst_dup): Likewise.
10762 * read-rtl.c (read_rtx_code): Likewise.
10763 * print-rtl.c (print_rtx): Likewise.
10764 * genrecog.c (find_operand, find_matching_operand): Likewise.
10765 (validate_pattern, match_pattern_2): Likewise.
10766 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10767 (rtx_test::regno_field): New function.
10768 (operator ==, safe_to_hoist_p, transition_parameter_type)
10769 (parameter_type_string, print_parameter_value)
10770 (print_nonbool_test, print_test): Handle new enum values.
10771 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10772 * lra-constraints.c (operands_match_p): Likewise.
10773
10774 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10775
10776 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10777 Change type of new_regno to unsigned int.
10778 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10779 new_regno to unsigned int.
10780 (df_ref_change_reg_with_loc): Remove old_regno parameter.
10781 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
10782 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10783 (SET_REGNO_RAW): Add space after ",".
10784
10785 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10786
10787 * rtl.h (REG_NREGS): New macro
10788 * alias.c (record_set): Use it.
10789 * cfgcleanup.c (mark_effect): Likewise.
10790 * combine.c (likely_spilled_retval_1): Likewise.
10791 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10792 (move_deaths, distribute_notes): Likewise.
10793 * cselib.c (cselib_record_set): Likewise.
10794 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10795 * df-scan.c (df_mark_reg): Likewise.
10796 * dse.c (look_for_hardregs): Likewise.
10797 * dwarf2out.c (reg_loc_descriptor): Likewise.
10798 (multiple_reg_loc_descriptor): Likewise.
10799 * expr.c (write_complex_part, read_complex_part): Likewise.
10800 (emit_move_complex): Likewise.
10801 * haifa-sched.c (setup_ref_regs): Likewise.
10802 * ira-lives.c (mark_hard_reg_live): Likewise.
10803 * lra.c (lra_set_insn_recog_data): Likewise.
10804 * mode-switching.c (create_pre_exit): Likewise.
10805 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10806 (reload_combine_recognize_pattern): Likewise.
10807 (reload_combine_note_use, move2add_record_mode): Likewise.
10808 (reload_cse_move2add): Likewise.
10809 * reg-stack.c (subst_stack_regs_pat): Likewise.
10810 * regcprop.c (kill_value, copy_value): Likewise.
10811 (copyprop_hardreg_forward_1): Likewise.
10812 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10813 (build_def_use): Likewise.
10814 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10815 (deps_analyze_insn): Likewise.
10816 * sched-rgn.c (check_live_1, update_live_1): Likewise.
10817 * sel-sched.c (count_occurrences_equiv): Likewise.
10818 * valtrack.c (dead_debug_insert_temp): Likewise.
10819
10820 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10821
10822 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10823 * dse.c (note_add_store): Likewise.
10824 * ira-lives.c (mark_hard_reg_dead): Likewise.
10825 * loop-invariant.c (mark_reg_store): Likewise.
10826 (mark_reg_death): Likewise.
10827 * postreload.c (reload_combine): Likewise.
10828 (reload_combine_note_store): Likewise.
10829 (reload_combine_note_use): Likewise.
10830 * recog.c (peep2_reg_dead_p): Likewise.
10831
10832 2015-05-19 Alan Modra <amodra@gmail.com>
10833
10834 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10835 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10836 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10837 unused predicates.
10838 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10839 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
10840 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10841 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10842
10843 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
10844
10845 * config/mips/mips.md (JOIN_MODE): New mode iterator.
10846 (join2_load_Store<JOIN_MODE:mode>): New pattern.
10847 (join2_loadhi): Likewise.
10848 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10849 load-load and store-stores.
10850 * config/mips/mips.opt (mload-store-pairs): New option.
10851 (TARGET_LOAD_STORE_PAIRS): New macro.
10852 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10853 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10854 * config/mips/mips.c (mips_load_store_bonding_p): New function.
10855
10856 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
10857
10858 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10859 explicit swaps.
10860 * dojump.c (do_compare_rtx_and_jump): Likewise.
10861 * expmed.c (emit_store_flag_1): Likewise.
10862 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10863 * final.c (sprint_ul): Use std::reverse for reversing a string.
10864 * fold-const.c (extract_muldiv_1): Use std::swap.
10865 * genmodes.c (emit_mode_int_n): Likewise.
10866 * ifcvt.c (dead_or_predicable): Likewise.
10867 * ira-build.c (ira_merge_live_ranges): Likewise.
10868 (swap_allocno_copy_ends_if_necessary): Likewise.
10869 * ira.c (ira_setup_alts): Likewise.
10870 * loop-iv.c (iv_analyze_expr): Likewise.
10871 (implies_p): Likewise.
10872 (canon_condition): Likewise.
10873 * lra-constraints.c (swap_operands): Likewise.
10874 * lra-lives.c (lra_merge_live_ranges): Likewise.
10875 * omega.c (swap): Remove.
10876 (bswap): Remove.
10877 (omega_unprotect_1): Use std::swap.
10878 (omega_solve_geq): Likewise.
10879 * optabs.c (expand_binop_directly): Likewise.
10880 (expand_binop): Likewise.
10881 (emit_conditional_move): Likewise.
10882 (emit_conditional_add): Likewise.
10883 * postreload.c (reload_cse_simplify_operands): Likewise.
10884 * reg-stack.c (emit_swap_insn): Likewise.
10885 (swap_to_top): Likewise.
10886 (compare_for_stack_reg): Likewise.
10887 (subst_asm_stack_regs): Likewise.
10888 * reload.c (find_reloads): Likewise.
10889 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10890 * sel-sched.c (invoke_reorder_hooks): Likewise.
10891 (create_block_for_bookkeeping): Likewise.
10892 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10893 (lambda_matrix_right_hermite): Use std::swap.
10894 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10895 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10896 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10897 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10898 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10899 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10900 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10901 * tree-vrp.c (compare_ranges): Likewise.
10902 * var-tracking.c (add_with_sets): Likewise.
10903 (vt_find_locations): Likewise.
10904
10905 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
10906
10907 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10908 pie executables.
10909 (FBSD_ENDFILE_SPEC): Likewise.
10910 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10911 config/freebsd-spec.h.
10912 (ENDFILE_SPEC): Likewise.
10913
10914 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
10915 Richard Henderson <rth@redhat.com>
10916
10917 PR target/57032
10918 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10919 Check for a memory location that is not a reference (using an AND)
10920 to an unaligned location here.
10921 * config/alpha/predicates.md (normal_memory_operand): Remove.
10922
10923 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
10924
10925 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10926 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10927
10928 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
10929
10930 * config/mips/mips.c (micromips_globals): New variable.
10931 (mips_set_compression_mode): Save and reinitialize target-dependent
10932 state for microMIPS.
10933
10934 2015-05-18 Martin Liska <mliska@suse.cz>
10935
10936 * dbgcnt.def: Add new counter.
10937 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10938
10939 2015-05-18 Martin Liska <mliska@suse.cz>
10940
10941 * dbgcnt.def: Sort counters.
10942 * opts.c (common_handle_option): Do not compile if
10943 -fdbg-cnt-list is enabled.
10944
10945 2015-05-18 Tom de Vries <tom@codesourcery.com>
10946
10947 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10948 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
10949 address operator to va_list operand.
10950 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10951 unconditionally.
10952 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10953 operand.
10954 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10955 * config/s390/s390.c (s390_gimplify_va_arg): Same.
10956 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10957
10958 2015-05-18 Tom de Vries <tom@codesourcery.com>
10959
10960 * tree-ssa-tail-merge.c: Fix whitespace.
10961
10962 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
10963
10964 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10965 cortex-a17, and cortex-a17.cortex-a7.
10966
10967 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
10968
10969 PR target/54236
10970 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10971
10972 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
10973
10974 PR target/66174
10975 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10976 QImode inner modes for TARGET_AVX512BW. Force mask operand
10977 to a register for AVX512F modes.
10978
10979 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10980
10981 * toplev.c (emit_debug_global_declarations): Do not output debug info
10982 when doing slim LTO objects.
10983
10984 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10985
10986 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10987 odr_types_equivalent_p): Declare.
10988 (odr_type_p): Use gcc_checking_assert.
10989 (type_in_anonymous_namespace_p) Declare.
10990 (type_with_linkage_p): Declare.
10991 * common.opt (Wlto-type-mismatch): New warning.
10992 * ipa-devirt.c (compound_type_base): New function.
10993 (odr_or_derived_type_p): New function.
10994 (odr_types_equivalent_p): New function.
10995 (add_type_duplicate): Simplify.
10996 (type_with_linkage_p): Add hack to prevent false positives on C types
10997 (type_in_anonymous_namespace_p): Likewise.
10998 * tree.c (need_assembler_name_p): Use type_with_linkage.
10999 * tree.h (type_in_anonymous_namespace_p): Remove.
11000 * doc/invoke.texi (-Wlto-type-mismatch): Document
11001
11002 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
11003
11004 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
11005 (verify_type): Verify STRING_FLAG.
11006
11007 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
11008
11009 PR fortran/44054
11010 * tree-pretty-print.c (percent_K_format): Replace locus pointer
11011 with accessor function.
11012 * tree-diagnostic.c (diagnostic_report_current_function): Use
11013 diagnostic_location function.
11014 (maybe_unwind_expanded_macro_loc): Likewise.
11015 (virt_loc_aware_diagnostic_finalizer): Likewise.
11016 (default_tree_printer): Replace locus pointer with accessor function.
11017 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
11018 (diagnostic_set_info_translated): Initialize second location.
11019 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
11020 (diagnostic_show_locus): Handle two locations. Call
11021 diagnostic_print_caret_line.
11022 (diagnostic_print_caret_line): New.
11023 (default_diagnostic_starter): Use diagnostic_location function.
11024 (diagnostic_report_diagnostic): Use diagnostic_location function.
11025 (verbatim): Do not set text.locus.
11026 * diagnostic.h (struct diagnostic_info): Remove location field.
11027 (struct diagnostic_context): Make caret_chars an array of two.
11028 (diagnostic_location): New inline.
11029 (diagnostic_expand_location): Handle two locations.
11030 (diagnostic_same_line): New inline.
11031 (diagnostic_print_caret_line): Declare.
11032 (CARET_LINE_MARGIN): New constant.
11033 * pretty-print.c (pp_printf): Do not set text.locus.
11034 (pp_verbatim): Do not set text.locus.
11035 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
11036 (struct text_info): Replace locus pointer with locations
11037 array. Add accessor functions.
11038
11039 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
11040 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11041
11042 PR target/65768
11043 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
11044 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
11045 large constants in register instead of splitting them.
11046
11047 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
11048
11049 PR target/66140
11050 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
11051 replacements in memory addresses.
11052 (get_unaligned_address): Ditto.
11053
11054 2015-05-16 James Bowman <james.bowman@ftdichip.com>
11055
11056 * config/ft32/*: New files for FT32 port.
11057 * doc/install.texi: Add FT32 information.
11058 * doc/invoke.texi: Add FT32 information.
11059 * doc/md.texi: Add FT32 information.
11060 * doc/contrib.texi: Self added.
11061
11062 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
11063
11064 PR tree-optimization/64454
11065 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
11066 (-1 - A -> ~A): Remove unnecessary condition.
11067
11068 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11069
11070 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
11071 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
11072 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
11073
11074 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
11075
11076 * ipa-chkp.h (chkp_wrap_function): New.
11077 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
11078 (chkp_wrap_function_name): New.
11079 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
11080 to get wrapper name.
11081 * lto-cgraph.c: Include ipa-chkp.h.
11082 (input_cgraph_1): Avoid alias chain for wrappers.
11083
11084 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
11085
11086 PR middle-end/66134
11087 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
11088 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
11089
11090 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11091
11092 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
11093 (AARCH64_FL_SLOWMUL): Delete.
11094 (AARCH64_FL_CRC): Redefine to 1<<3.
11095 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
11096
11097 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11098
11099 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
11100 casting.
11101
11102 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11103
11104 * config/alpha/alpha.md (extendqidi2): Use general_operand
11105 instead of some_operand for operand[1] predicate.
11106 (extendhidi2): Ditto.
11107 (cbranchdi4): Use general_operand instead of some_operand
11108 for operand[1] and operands[2] predicates.
11109 (cstoredi4): Ditto.
11110 * config/alpha/predicates.md (some_operand): Remove unused predicate.
11111 (some_ni_operand): Ditto.
11112
11113 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11114
11115 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
11116 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
11117 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
11118 low part of the constant using alpha_emit_set_const_1.
11119 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
11120
11121 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
11122
11123 * varasm.c (output_constant_pool_1): Pass down alignment from
11124 constant pool entry's descriptor to output_constant_pool_2.
11125 (output_object_block): Add comment prior to call to
11126 output_constant_pool_1.
11127
11128 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
11129
11130 PR rtl-optimization/65862
11131 * target.def (ira_change_pseudo_allocno_class): New hook.
11132 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11133 value of the hook.
11134 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11135 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11136 hook.
11137 * ira-costs.c (find_costs_and_classes): Call the hook and change
11138 classes when it is necessary.
11139 * doc/tm.texi: Update.
11140
11141 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
11142
11143 * config/i386/i386.md (sibcall_memory): Check that register with
11144 callee address is not also used as one of the arguments, instead
11145 of checking that it is not live after the sibcall.
11146 (sibcall_pop_memory): Ditto.
11147 (sibcall_value_memory): Ditto.
11148 (sibcall_value_pop_memory): Ditto.
11149
11150 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
11151
11152 * generic-match-head.c (types_match): Handle non-types.
11153 * gimple-match-head.c (types_match): Likewise.
11154 * match.pd: Remove unnecessary TREE_TYPE for types_match.
11155
11156 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
11157
11158 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11159 (csneg3<mode>_insn): Enable expansion of pattern.
11160
11161 2015-05-14 Nick Clifton <nickc@redhat.com>
11162
11163 * config/rl78/rl78.c (rl78_select_section): Select the correct
11164 default section based upon the category of the decl.
11165
11166 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11167
11168 PR rtl-optimization/30967
11169 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11170 destination mode for the cost of scc patterns.
11171
11172 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11173
11174 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11175 using SWIM248 mode iterator.
11176 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11177 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
11178 for operand[2] constraint.
11179 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11180
11181 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11182
11183 PR middle-end/66133
11184 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11185 make sure it is never noreturn, even when the task body does not
11186 return.
11187 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11188 right before GIMPLE_OMP_RETURN.
11189 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11190 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
11191 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11192
11193 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11194
11195 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11196 * tree-ssa-math-opts.c: Include params.h
11197 (pow_synth_sqrt_info): New struct.
11198 (representable_as_half_series_p): New function.
11199 (get_fn_chain): Likewise.
11200 (print_nested_fn): Likewise.
11201 (dump_fractional_sqrt_sequence): Likewise.
11202 (dump_integer_part): Likewise.
11203 (expand_pow_as_sqrts): Likewise.
11204 (gimple_expand_builtin_pow): Use above to attempt to expand
11205 pow as series of square roots. Removed now unused variables.
11206
11207 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11208
11209 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11210 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11211 Remove *p0 and *p1 arguments. Rewrite function.
11212 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11213 (alpha_split_const_mov): Update calls to alpha_extract_integer and
11214 alpha_emit_set_long_const.
11215 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11216 (alpha_output_mi_thunk_osf): Ditto.
11217 * config/alpha/alpha.md (movti): Do not check operands[1]
11218 for CONST_DOUBLE.
11219
11220 2015-05-13 Richard Biener <rguenther@suse.de>
11221
11222 PR tree-optimization/66129
11223 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11224 commutative.
11225 (vect_schedule_slp_instance): Fix typo.
11226
11227 2015-05-13 David Malcolm <dmalcolm@redhat.com>
11228
11229 * common.opt (fdump-internal-locations): New option.
11230 * input.c: Include diagnostic-core.h.
11231 (get_end_location): New function.
11232 (write_digit): New function.
11233 (write_digit_row): New function.
11234 (dump_location_range): New function.
11235 (dump_labelled_location_range): New function.
11236 (dump_location_info): New function.
11237 * input.h (dump_location_info): New prototype.
11238 * toplev.c (compile_file): Handle flag_dump_locations.
11239
11240 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
11241
11242 * gimple-expr.h (is_gimple_constant): Reorder.
11243 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11244
11245 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11246
11247 * combine.c (simplify_set): When generating a CC set, if the
11248 source already is in the correct mode, do not wrap it in a
11249 compare. Simplify the rest of that code.
11250
11251 2015-05-13 Richard Biener <rguenther@suse.de>
11252
11253 PR tree-optimization/66123
11254 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11255 a taken edge.
11256
11257 2015-05-13 Richard Biener <rguenther@suse.de>
11258
11259 PR middle-end/66110
11260 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11261 specially.
11262 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11263
11264 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11265
11266 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11267 * aclocal.m4: Regenerated with automake-1.11.6.
11268
11269 2015-05-13 Tom de Vries <tom@codesourcery.com>
11270
11271 PR tree-optimization/66010
11272 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11273 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11274 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
11275 and rval based on do_deref.
11276
11277 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11278
11279 PR target/65103
11280 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11281 link time constants into adress expressions and therefore set
11282 their cost to 0.
11283
11284 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11285
11286 PR target/66112
11287 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11288 Use SWI248 iterator instead of SWI.
11289 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
11290 Use eq_attr "alternative" "0" instead of match_test in
11291 length_immediate attribute computation.
11292 (*mulvhi4, *mulvhi4_1): New define_insns.
11293
11294 PR target/66112
11295 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11296 SIGNED to get precision of non-negative value.
11297
11298 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11299
11300 PR target/66048
11301 * function.c (diddle_return_value_1): Process bounds first.
11302 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11303 register.
11304
11305 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11306
11307 PR rtl-optimization/64616
11308 * loop-invariant.c (can_move_invariant_reg): New.
11309 (move_invariant_reg): Call above new function to decide whether
11310 instruction can just be moved, skipping creation of temporary
11311 register.
11312
11313 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11314
11315 PR target/pr66047.c
11316 * i386.c (ix86_function_sseregparm): Only return -1 if local function
11317 with implied regparm is called from -mno-sse function.
11318 (init_cumulative_args): Output error if ix86_function_sseregparm
11319 return -1 and SSE register would be needed.
11320 (function_arg_advance_32): Likewise.
11321 (function_arg_32): Likewise.
11322 * i386.h (ix86_args): Add decl field.
11323
11324 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11325
11326 PR ipa/65873
11327 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11328 inlines across optimization boundary.
11329
11330 2015-05-12 Jason Merrill <jason@redhat.com>
11331
11332 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11333 string literal and macro name.
11334
11335 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
11336
11337 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11338 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11339 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11340
11341 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11342
11343 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11344 (-Wmisleading-indentation): New option.
11345 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11346
11347 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
11348
11349 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11350 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11351 (alpha_extract_integer): Ditto.
11352 (alpha_legitimate_constant_p): Ditto.
11353 (alpha_split_tmode_pair): Ditto.
11354 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11355 (alpha_expand_mov): Ditto.
11356 (print_operand): Remove handling of 'H' modifier.
11357 <case 'm'>: Remove CONST_DOUBLE handling.
11358 (summarize_insn): Handle CONST_WIDE_INT.
11359 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11360 (anddi3): Ditto.
11361 (movti): Handle CONST_WIDE_INT.
11362 * config/alpha/constraints.md ('H'): Remove constraint definition.
11363 ('G'): Do not match MODE_FLOAT class.
11364 * config/alpha/predicates.md (const0_operand): Also match
11365 const_wide_int.
11366 (non_add_const_operand): Ditto.
11367 (non_zero_const_operand): Ditto.
11368 (some_operand): Ditto.
11369 (input_operand): Ditto. Handle CONST_WIDE_INT.
11370 (and_operand): Do not match const_double.
11371 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11372
11373 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
11374
11375 PR target/65697
11376 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11377 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11378 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11379 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11380 is_mm_seq_cst, is_mm_sync): New accessor functions.
11381 * builtins.c (expand_builtin_sync_operation,
11382 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11383 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11384 (get_memmodel, expand_builtin_atomic_compare_exchange,
11385 expand_builtin_atomic_load, expand_builtin_atomic_store,
11386 expand_builtin_atomic_clear): Use new accessor routines.
11387 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11388 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11389 (maybe_emit_sync_lock_test_and_set): Use new accessors and
11390 MEMMODEL_SYNC_ACQUIRE.
11391 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11392 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11393 expand_atomic_store): Use new accessors.
11394 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11395 * tsan.c (instrument_builtin_call): Update check for memory model beyond
11396 final enum to use MEMMODEL_LAST.
11397 * c-family/c-common.c: Use new accessor for memmodel_base.
11398 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11399 accessors.
11400 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11401 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11402 mem_thread_fence, *dmb): Likewise.
11403 * config/alpha/alpha.c (alpha_split_compare_and_swap,
11404 alpha_split_compare_and_swap_12): Likewise.
11405 * config/arm/arm.c (arm_expand_compare_and_swap,
11406 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11407 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11408 atomic_loaddi): Likewise.
11409 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11410 Likewise.
11411 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11412 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11413 use new accessors.
11414 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11415 atomic_store<mode>, atomic_compare_and_swap<mode>,
11416 atomic_exchange<mode>): Use new accessors.
11417 * config/mips/mips.c (mips_process_sync_loop): Likewise.
11418 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11419 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11420 rs6000_post_atomic_barrier): Add new cases.
11421 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11422 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11423 (atomic_load<mode>): Add new cases and use new accessors.
11424 (store_quadpti): Add new cases.
11425 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11426 accessors.
11427 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11428 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11429 model, not 8.
11430
11431 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11432
11433 * ipa-devirt.c (type_with_linkage_p): New function.
11434 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11435 type has linkage.
11436 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11437 (can_be_name_hashed_p): Simplify.
11438 (hash_odr_name): Check that type has linkage before checking if it is
11439 anonymous.
11440 (types_same_for_odr): Likewise.
11441 (odr_name_hasher::equal): Likewise.
11442 (odr_subtypes_equivalent_p): Likewise.
11443 (warn_types_mismatch): Likewise.
11444 (get_odr_type): Likewise.
11445 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11446 * ipa-utils.h (odr_type_p): Move offline.
11447 * tree.c (need_assembler_name_p): Fix handling of types
11448 without linkages.
11449 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11450
11451 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11452
11453 * timevar.c (timevar_enable): Delete in favor of...
11454 (g_timer): New global.
11455 (struct timevar_def): Move to timevar.h inside class timer.
11456 (struct timevar_stack_def): Likewise.
11457 (timevars): Delete global in favor of field "m_timevars" within
11458 class timer in timevar.h
11459 (stack): Likewise, in favor of field "m_stack".
11460 (unused_stack_instances): Likewise, in favor of field
11461 "m_unused_stack_instances".
11462 (start_time): Likewise, in favor of field "m_start_time".
11463 (get_time): Eliminate check for timevar_enable.
11464 (timer::timer): New function, built from part of timevar_init.
11465 (timevar_init): Rewrite idempotency test from using
11466 "timevar_enable" bool to using dynamic allocation of "g_timer".
11467 Move rest of implementation into timer's constructor.
11468 (timevar_push_1): Rename to...
11469 (timer::push): ...this, adding "m_" prefixes to variables that
11470 are now fields of timer.
11471 (timevar_pop_1): Likewise, rename to...
11472 (timer::pop): ...this, and add "m_" prefixes.
11473 (timevar_start): Replace test for "timevar_enable" with one for
11474 "g_timer", and move bulk of implementation to...
11475 (timer::start): ...here, adding "m_" prefixes.
11476 (timevar_stop): Likewise, from here...
11477 (timer::stop): ...to here.
11478 (timevar_cond_start): Likewise, from here...
11479 (timer::cond_start): ...to here.
11480 (timevar_cond_stop): Likewise, from here...
11481 (timer::cond_stop): ...to here.
11482 (validate_phases): Rename to...
11483 (timer::validate_phases): ...this, and add "m_" prefixes. Make
11484 locals "total" and "tv" const.
11485 (timevar_print): Rename to...
11486 (timer::print): ...this, and add "m_" prefixes. Make locals
11487 "total" and "tv" const. Eliminate test for timevar_enable.
11488 * timevar.h (timevar_enable): Eliminate.
11489 (g_timer): New declaration.
11490 (timevar_push_1): Eliminate.
11491 (timevar_pop_1): Eliminate.
11492 (timevar_print): Eliminate.
11493 (class timer): New class.
11494 (timevar_push): Rewrite to use g_timer.
11495 (timevar_pop): Likewise.
11496 * toplev.c (toplev::~toplev): Likewise.
11497
11498 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
11499
11500 * arm-protos.h (arm_sched_autopref): Delete.
11501 (tune_params): Re-organize, use enums for flag values.
11502 (FUSE_OPS): New macro.
11503 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11504 (ARM_PREFETCH_BENEFICIAL): Likewise.
11505 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11506 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11507 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11508 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11509 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11510 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
11511 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11512 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11513 format.
11514 (arm_option_override, thumb2_reorg, arm_print_tune_info)
11515 (aarch_macro_fusion_pair_p): Update uses of current_tune.
11516 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11517
11518 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
11519
11520 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11521 "break".
11522
11523 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
11524 Sandra Loosemore <sandra@codesourcery.com>
11525
11526 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11527 value.
11528 (REG_CLASS_NAMES): Add "IJMP_REGS".
11529 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11530 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11531 use new "c" register constraint.
11532 * config/nios2/constraint.md (c): New register constraint
11533 corresponding to IJMP_REGS.
11534
11535 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11536
11537 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11538 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11539 define_splits): Delete, revamp, transmogrify into ...
11540 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11541 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11542 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11543 New.
11544
11545 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11546
11547 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11548 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11549
11550 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11551
11552 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11553 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11554 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11555 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11556 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11557 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11558 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11559 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11560 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11561 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11562 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11563 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11564 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11565 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11566 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11567 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11568 and 30 corresponding splitters): Delete.
11569
11570 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11571
11572 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11573 zero_extract.
11574
11575 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11576
11577 * combine.c (recog_for_combine_1): New function, factored out
11578 from recog_for_combine.
11579 (change_zero_ext): New function.
11580 (recog_for_combine): If recog fails, try again with the pattern
11581 modified by change_zero_ext; if that still fails, restore the
11582 pattern.
11583
11584 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11585
11586 * combine.c (get_undo_marker): New function.
11587 (undo_to_marker): New function, largely factored out from ...
11588 (undo_all): ... this. Adjust.
11589
11590 2015-05-12 Richard Biener <rguenther@suse.de>
11591
11592 PR tree-optimization/66101
11593 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11594 fixup if we turn a loop exit edge to a fallthru edge.
11595
11596 2015-05-12 Richard Biener <rguenther@suse.de>
11597
11598 PR tree-optimization/37021
11599 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11600 (SLP_TREE_TWO_OPERATORS): New define.
11601 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11602 SLP_TREE_TWO_OPERATORS.
11603 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11604 SLP node.
11605 (vect_build_slp_tree): Adjust.
11606 (vect_analyze_slp_cost_1): Likewise.
11607 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11608 emitting two vector stmts and mixing the results.
11609
11610 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11611
11612 * call.c (print_z_candidates): Remove dead code.
11613
11614 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11615
11616 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11617 and zEC12_simple_fp.
11618 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11619 to 1.
11620
11621 2015-05-12 Tom de Vries <tom@codesourcery.com>
11622
11623 PR tree-optimization/66010
11624 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11625 ifn_va_arg.
11626 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11627 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
11628 va_lists are passed, and remove corresponding handling.
11629 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
11630 do_deref argument to ifn_va_arg.
11631 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11632 ifn_va_arg.
11633
11634 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11635
11636 PR target/65955
11637 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11638 REG before taking its REGNO.
11639
11640 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11641
11642 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11643 rsp->sign_bit_copies and rsp->nonzero_bits into ...
11644 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
11645 present to get more accurate information about the number of sign bit
11646 copies and non zero bits.
11647
11648 2015-05-12 Richard Biener <rguenther@suse.de>
11649
11650 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11651 do not allow unrolling.
11652
11653 2015-05-11 Richard Henderson <rth@redhat.com>
11654
11655 * config/i386/i386-modes.def (CCP): New.
11656 * config/i386/i386.c (put_condition_code): Handle it.
11657 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11658
11659 2015-05-11 Richard Henderson <rth@redhat.com>
11660
11661 * target.def (md_asm_clobbers): Replace with...
11662 (md_asm_adjust): this.
11663 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11664 (TARGET_MD_ASM_ADJUST): New.
11665 * tm.texi: Rebuild.
11666 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11667 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11668 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11669
11670 * cfgexpand.c (check_operand_nalternatives): Accept vector of
11671 constraints instead of lists of outputs and inputs.
11672 (expand_asm_stmt): Save and restore input_location around the
11673 body of the function. Move asm data into vectors instead of
11674 building tree lists. Generate cleanup sequences as needed,
11675 rather than waiting til the end. Use new md_asm_adjust hook.
11676
11677 * config/vxworks.c: Include vec.h before target.h.
11678 * gimple.c: Likewise.
11679 * incpath.c: Likewise.
11680 * mode-switching.c: Likewise.
11681
11682 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11683 (cris_md_asm_adjust): this.
11684 (TARGET_MD_ASM_CLOBBERS): Remove.
11685 (TARGET_MD_ASM_ADJUST): New.
11686 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11687 (ix86_md_asm_adjust): this.
11688 (TARGET_MD_ASM_CLOBBERS): Remove.
11689 (TARGET_MD_ASM_ADJUST): New.
11690 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11691 (mn10300_md_asm_adjust): this.
11692 (TARGET_MD_ASM_CLOBBERS): Remove.
11693 (TARGET_MD_ASM_ADJUST): New.
11694 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11695 (rs6000_md_asm_adjust): this.
11696 (TARGET_MD_ASM_CLOBBERS): Remove.
11697 (TARGET_MD_ASM_ADJUST): New.
11698 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11699 (visium_md_asm_adjust): this.
11700 (TARGET_MD_ASM_CLOBBERS): Remove.
11701 (TARGET_MD_ASM_ADJUST): New.
11702
11703 2015-05-11 Richard Henderson <rth@redhat.com>
11704
11705 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11706 if noutputs is zero.
11707 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11708
11709 * cfgexpand.c (expand_asm_operands): Merge into...
11710 (expand_asm_stmt): ... here.
11711
11712 * cfgexpand.c (expand_asm_operands): Don't call
11713 resolve_asm_operand_names.
11714 * stmt.c (resolve_asm_operand_names): Clarify block comment.
11715
11716 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
11717
11718 * dwarf2out.c (gen_member_die): Sanity check that we access
11719 TYPE_MAIN_VARIANT for TYPE_METHODS.
11720 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11721 checking TYPE_METHODS.
11722 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11723 if non-null.
11724 (build_distinct_type_copy): Clear TYPE_METHODS.
11725 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11726 (verify_type): Allow TYPE_METHODS to be error_mark_node.
11727 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11728
11729 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
11730
11731 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11732 (emit_pattern_before_setloc): Likewise.
11733
11734 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11735
11736 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11737 for define_peephole2s.
11738 (get_peephole2_pattern): New function.
11739 (main): Use it. Call validate_pattern.
11740
11741 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11742
11743 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11744 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11745 (Last callee saved reg is different for AVR_TINY architecture)
11746
11747 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11748
11749 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11750 when looking for memory references.
11751
11752 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11753
11754 PR target/65753
11755 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11756 via function pointers.
11757
11758 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11759
11760 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11761 indirect call by forcing address into a pseudo with -fno-plt.
11762 * common.opt (flag_plt): New option.
11763 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11764 ([-fno-plt]): Document.
11765
11766 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
11767
11768 PR bootstrap/66105
11769 * config/rs6000/option-defaults.h: Add space between string literal
11770 and macro name.
11771
11772 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11773
11774 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11775 accross ARM targets.
11776
11777 2015-05-11 Christian Bruel <christian.bruel@st.com>
11778
11779 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11780 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11781
11782 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11783
11784 PR rtl-optimization/66076
11785 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11786 Don't grow the heap array if it is already big enough from a
11787 previous iteration.
11788
11789 2015-05-11 Christian Bruel <christian.bruel@st.com>
11790
11791 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11792 (is_called_in_ARM_mode): Remove.
11793 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11794 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11795 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11796 arm_declare_function_name.
11797
11798 2015-05-11 Christian Bruel <christian.bruel@st.com>
11799
11800 * config/arm/arm.c (arm_option_override): Reoganized and split into :
11801 (arm_option_params_internal); New function.
11802 (arm_option_check_internal): New function.
11803 (arm_option_override_internal): New function.
11804 (thumb_code, thumb1_code): Remove.
11805 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11806 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11807 (thumb_code, thumb1_code): Remove.
11808 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11809
11810 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11811
11812 * config/alpha/alpha.c (alpha_emit_set_const_1)
11813 (alpha_emit_set_long_const, alpha_extract_integer)
11814 (alpha_legitimate_constant_p, alpha_split_const_mov)
11815 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11816 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11817 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11818 HOST_WIDE_INT_1U.
11819 * config/alpha/predicates.md (mode_mask_operand): Do not match
11820 const_double RTX.
11821 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11822 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11823 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11824 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11825 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11826
11827 2015-05-11 Jakub Jelinek <jakub@redhat.com>
11828
11829 PR target/65780
11830 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11831 default_binds_local_p_2.
11832 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11833 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11834
11835 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11836
11837 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11838
11839 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11840
11841 Patch by Richard Biener
11842 * coverage.c (coverage_obj_init): Delay building of type variant
11843 until the type is finished.
11844
11845 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11846
11847 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11848 mismatch between C and C++ type; compoare correctly ARG_TYPES
11849 for non-prototypes and output correctly parameter index for METHOD_TYPE.
11850 (odr_types_equivalent_p): Fix wording of warning about attributes;
11851 it is OK to match prototype and non-prototype.
11852
11853 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11854
11855 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11856 TYPE_ARG_TYPES list.
11857 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11858 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11859
11860 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11861
11862 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11863 * tree.h (is_lang_specific): Constify.
11864
11865 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
11866
11867 PR tree-optimization/64454
11868 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11869 Rewrite.
11870
11871 2015-05-08 Jason Merrill <jason@redhat.com>
11872
11873 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11874 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11875 config/darwin.h, config/darwin9.h, config/elfos.h,
11876 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11877 config/microblaze/microblaze.h, config/mips/mips.h,
11878 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11879 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11880 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11881 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11882 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11883 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11884 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11885 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11886 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11887 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11888 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11889 between string literal and macro name.
11890
11891 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11892
11893 * jump.c: Change argument types to rtx_insn *.
11894 * rtl.h: Adjust.
11895
11896 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11897
11898 * lra-constraints.c: Change argument type to rtx_insn *.
11899
11900 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11901
11902 * df-problems.c: Change argument type to rtx_insn *.
11903
11904 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11905
11906 * combine.c: Change argument type to rtx_insn *.
11907
11908 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11909
11910 * rtl.h: Adjust.
11911 * rtlanal.c: Change argument type to rtx_insn *.
11912
11913 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11914
11915 * sched-deps.c: Change argument types to rtx_insn *.
11916 * sched-int.h: Adjust.
11917
11918 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11919
11920 * dwarf2cfi.c: Change argument type to rtx_insn *.
11921
11922 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11923
11924 * ira.c (decrease_live_ranges_number): Changetype of local
11925 variable to rtx_insn *.
11926 * recog.c: Change argument types to rtx_insn *.
11927 * recog.h: Adjust.
11928
11929 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11930
11931 * reorg.c: Change argument types to rtx_insn *.
11932
11933 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11934
11935 * ira-color.c: Change argument types to rtx_insn *.
11936 * lra-eliminations.c: Likewise.
11937 * ira.h: Adjust.
11938
11939 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11940
11941 * gcse.c: Change argument types to rtx_insn *.
11942
11943 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11944
11945 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11946
11947 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11948
11949 * emit-rtl.c (emit_debug_insn_before): Change argument type to
11950 rtx_insn *.
11951 * rtl.h: Adjust.
11952
11953 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11954
11955 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11956 * rtl.h: Adjust.
11957
11958 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11959
11960 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11961 * rtl.h: Adjust.
11962
11963 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11964
11965 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11966 * rtl.h: Adjust.
11967
11968 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11969
11970 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11971 * rtl.h: Adjust.
11972
11973 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11974
11975 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11976 to rtx_insn *.
11977 * rtl.h: Adjust.
11978
11979 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11980
11981 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11982 to rtx_insn *.
11983 * rtl.h: Likewise.
11984
11985 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11986
11987 * except.c (can_nonlocal_goto): Change type of argument to
11988 rtx_insn *.
11989 * rtl.h: Adjust.
11990
11991 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11992
11993 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11994 * rtl.h: Adjust.
11995
11996 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11997
11998 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11999 * cfgrtl.c (can_delete_label_p): Adjust.
12000 * rtl.h: likewise.
12001
12002 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12003
12004 * reorg.c (stop_search_p): Change argument to rtx_insn *.
12005
12006 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12007
12008 * except.c (make_reg_eh_region_note): Change argument to
12009 rtx_insn *.
12010 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
12011 * except.h: Adjust.
12012
12013 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12014
12015 * mode-switching.c (commit_mode_sets): Change type of local
12016 variable from rtx to rtx_insn *.
12017
12018 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
12019
12020 * doc/install.texi (--enable-languages): Add missing jit and lto info.
12021 Add ^ to grep command.
12022 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
12023 arg to last gimple_simplify declaration. Add missing gimple_build
12024 declaration for built-in function case with four tree args.
12025
12026 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
12027 Szabolcs Nagy <szabolcs.nagy@arm.com>
12028
12029 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
12030 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
12031 (GNU_USER_DYNAMIC_LINKERN32): Update.
12032
12033 2015-05-08 Richard Biener <rguenther@suse.de>
12034
12035 PR tree-optimization/66036
12036 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
12037 Handle strided group loads.
12038 (vect_verify_datarefs_alignment): Likewise.
12039 (vect_enhance_data_refs_alignment): Likewise.
12040 (vect_analyze_group_access): Likewise.
12041 (vect_analyze_data_ref_access): Likewise.
12042 (vect_analyze_data_ref_accesses): Likewise.
12043 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
12044 (vectorizable_load): Likewise.
12045
12046 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
12047
12048 * config/rs6000/rs6000.md: Require operand inequality in one
12049 of the peepholes.
12050
12051 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
12052 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12053
12054 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
12055 from (set ...).
12056 * config/rx/rx.md (movdi, movdf): Likewise.
12057 Likewise for define_peephole2s.
12058
12059 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12060
12061 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
12062 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
12063 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
12064 vtst_u64): Rewrite using gcc vector extensions.
12065
12066 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12067
12068 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
12069 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
12070
12071 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12072
12073 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
12074
12075 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
12076
12077 * config/glibc-stdint.h (OPTION_MUSL): Define.
12078 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
12079 Change the definition based on OPTION_MUSL for 64 bit targets.
12080 * config/linux.h (OPTION_MUSL): Redefine.
12081 * config/alpha/linux.h (OPTION_MUSL): Redefine.
12082 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
12083 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
12084
12085 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
12086 Szabolcs Nagy <szabolcs.nagy@arm.com>
12087
12088 * config.gcc (LIBC_MUSL): New tm_defines macro.
12089 * config/linux.h (OPTION_MUSL): Define.
12090 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
12091 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
12092 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12093 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12094 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12095 * config/linux.opt (mmusl): New option.
12096 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
12097 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12098 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12099 * configure: Regenerate.
12100
12101 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
12102 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12103
12104 PR target/48904
12105 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
12106 * config/i386/knetbsd-gnu64.h: New file.
12107
12108 2015-05-08 Marek Polacek <polacek@redhat.com>
12109
12110 PR c/64918
12111 * doc/invoke.texi: Document -Woverride-init-side-effects.
12112
12113 2015-05-07 Marek Polacek <polacek@redhat.com>
12114
12115 PR c/65179
12116 * doc/invoke.texi: Document -Wshift-negative-value.
12117
12118 2015-05-06 Aditya Kumar <hiraditya@msn.com>
12119
12120 * gcov-tool.c (do_merge): Refactore to remove int ret.
12121 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12122 !type == FUNC to type != FUNC.
12123 * reload.h (struct target_reload): Changee to type of
12124 x_spill_indirect_levels from bool to unsigned char.
12125
12126 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
12127
12128 * rtl.h (always_void_p): New function.
12129 * gengenrtl.c (always_void_p): Likewise.
12130 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12131 with code foo are always VOIDmode.
12132 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12133 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12134 compare-elim.c, config/aarch64/aarch64.c,
12135 config/aarch64/aarch64.md, config/alpha/alpha.c,
12136 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12137 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12138 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12139 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12140 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12141 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12142 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12143 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12144 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12145 config/ia64/vect.md, config/iq2000/iq2000.c,
12146 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12147 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12148 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12149 config/mep/mep.c, config/microblaze/microblaze.c,
12150 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12151 config/mn10300/mn10300.c, config/msp430/msp430.c,
12152 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12153 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12154 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12155 config/rs6000/altivec.md, config/rs6000/rs6000.c,
12156 config/rs6000/rs6000.md, config/rs6000/vector.md,
12157 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12158 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12159 config/sh/sh.md, config/sh/sh_treg_combine.cc,
12160 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12161 config/spu/spu.md, config/stormy16/stormy16.c,
12162 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12163 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12164 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12165 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12166 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12167 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12168 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12169 var-tracking.c: Update calls accordingly.
12170
12171 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12172
12173 PR middle-end/192
12174 PR middle-end/54303
12175 * varasm.c (function_mergeable_rodata_prefix): New function.
12176 (mergeable_string_section): Use it.
12177 (mergeable_constant_section): Use it.
12178
12179 2015-05-07 Jeff Law <law@redhat.com>
12180
12181 PR target/39726
12182 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12183 simplifier to narrow arithmetic.
12184 * generic-match-head.c: (types_match, single_use): New functions.
12185 * gimple-match-head.c: (types_match, single_use): New functions.
12186
12187 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12188
12189 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12190 rtx type.
12191
12192 2015-05-07 Richard Biener <rguenther@suse.de>
12193
12194 PR tree-optimization/66002
12195 * passes.def: Schedule another pass_merge_phi after ifcombine, right
12196 before phiopt.
12197
12198 2015-05-07 Marek Polacek <polacek@redhat.com>
12199 Martin Uecker <uecker@eecs.berkeley.edu>
12200
12201 * doc/invoke.texi: Document -fsanitize=bounds-strict.
12202 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12203 into SANITIZE_NONDEFAULT.
12204 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12205
12206 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
12207
12208 PR target/66015
12209 * config/alpha/alpha.c (alpha_override_options_after_change): New.
12210 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12211 (alpha_override_options): Move align_loops, align_jumps and
12212 align_functions handling into alpha_override_options_after_change.
12213
12214 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
12215 Chris Jones <chrisj@nvidia.com>
12216 Joshua Conner <jconner@nvidia.com>
12217
12218 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12219 linking of crtfastmath.o.
12220 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12221
12222 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12223
12224 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12225 (cstore<mode>4_unsigned_imm): New expander.
12226 (cstore<mode>4): Remove empty constraint strings. Use the new
12227 expanders.
12228
12229 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
12230
12231 PR target/64208
12232 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12233 alternatives.
12234
12235 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12236
12237 * config/aarch64/geniterators.sh: Use standard BRE in sed.
12238
12239 2015-05-06 Alan Modra <amodra@gmail.com>
12240
12241 PR target/66033
12242 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12243 (UNSPEC_NOP): Define.
12244 (reload_vsx_from_gpr<mode>): Add missing DONE.
12245 (reload_gpr_from_vsx<mode>): Likewise.
12246 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12247 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12248
12249 2015-05-06 Christian Bruel <christian.bruel@st.com>
12250
12251 PR target/66015
12252 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12253 align_jumps, align_functions into aarch64_override_options_after_change.
12254
12255 2015-05-06 Richard Biener <rguenther@suse.de>
12256
12257 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12258 vect_transform_slp_perm_load to check if we support a permutation
12259 for basic-block vectorization.
12260
12261 2015-05-06 Nick Clifton <nickc@redhat.com>
12262
12263 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12264 used, even if it is not being used as a frame pointer.
12265
12266 2015-05-05 Jason Merrill <jason@redhat.com>
12267
12268 * dwarf2out.c (gen_member_die): Don't emit anything for an
12269 anonymous class constructor.
12270
12271 2015-05-05 David Malcolm <dmalcolm@redhat.com>
12272
12273 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12274 that it reflects the block structure.
12275 (afdo_propagate_edge): Likewise.
12276 (afdo_calculate_branch_prob): Likewise.
12277 (afdo_annotate_cfg): Likewise.
12278 * cfgcleanup.c (equal_different_set_p): Likewise.
12279 (try_crossjump_to_edge): Likewise.
12280 * cgraph.c (cgraph_node::verify_node): Likewise.
12281 * cgraphunit.c (expand_all_functions): Likewise.
12282 * config/i386/i386.c (ix86_expand_copysign): Likewise.
12283 (exact_dependency_1): Likewise.
12284 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12285 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12286 * gensupport.c (process_define_subst): Likewise.
12287 * lto-wrapper.c (merge_and_complain): Likewise.
12288 * tree-if-conv.c (if_convertible_bb_p): Likewise.
12289 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12290 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12291 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12292 * tree-vect-loop.c (vectorizable_reduction): Likewise.
12293 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12294 * tree-vect-stmts.c (vectorizable_shift): Likewise.
12295 * tree-vrp.c (vrp_finalize): Likewise.
12296 * tree.c (variably_modified_type_p): Likewise.
12297
12298 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
12299
12300 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12301 on darwin12 and later.
12302 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12303 file to pass -rdynamic on darwin12 and later.
12304 * config/darwin.opt (rdynamic): Add.
12305
12306 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12307
12308 * doc/extend.texi (C Extensions): Update menu for moved Variable
12309 Attributes and Type Attributes sections.
12310
12311 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12312
12313 PR target/65990
12314 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12315 if rep_8byte stringop strategy was specified for 32-bit target.
12316
12317 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
12318
12319 PR target/65915
12320 * config/i386/i386.md (vector convert to float spltiter): Check for
12321 xmm16+, when splitting scalar float conversion.
12322 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12323
12324 2015-05-05 Nick Clifton <nickc@redhat.com>
12325
12326 * config/msp430/msp430-opts.h (enum msp430_regions): New.
12327 * config/msp430/msp430.c (msp430_override_options): Complain if
12328 -mcode-region or -mdata-region is used on a non MSP430X.
12329 (msp430_section_attr): New function. Checks lower, upper and
12330 either attributes.
12331 (msp430_attribute_table): Add lower, upper and either.
12332 (gen_prefix): New function. Generates a prefix for a section
12333 name.
12334 (msp430_select_section): New function - handles the choice of
12335 section for an object. Takes into account memory region
12336 attributes and options.
12337 (msp430_function_section): Use gen_prefix.
12338 (TARGET_SECTION_TYPE_FLAGS): Define.
12339 (msp430_section_type_flags): New function.
12340 (TARGET_ASM_UNIQUE_SECTION): Define.
12341 (msp430_unique_section): New function.
12342 (msp430_output_aligned_decl_common): New function.
12343 (msp430_do_not_relax_short_jumps): New function.
12344 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12345 Define.
12346 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12347 * config/msp430/msp430-protos.h
12348 (msp430_do_not_relax_short_jumps): New prototype.
12349 (msp430_output_aligned_decl_common): New prototype.
12350 * config/msp430/msp430.md (length): New attribute.
12351 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12352 then use a long code sequence for short jumps.
12353 * config/msp430/msp430.opt (mcode-region): New.
12354 (mdata-region): New.
12355 * doc/invoke.texi: Document new options.
12356 * doc/extend.texi: Document new attributes.
12357
12358 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12359
12360 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12361 (tune_params): Add field branch_costs.
12362 (aarch64_branch_cost): Declare.
12363 * gcc/config/aarch64.c (generic_branch_cost): New.
12364 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12365 (cortexa53_tunings): Likewise.
12366 (cortexa57_tunings): Likewise.
12367 (thunderx_tunings): Likewise.
12368 (xgene1_tunings): Likewise.
12369 (aarch64_branch_cost): Define.
12370 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12371
12372 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12373
12374 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12375 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12376 * config/i386/i386.md: Ditto.
12377 * config/i386/winnt.c: Ditto.
12378
12379 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12380
12381 * doc/extend.texi (__atomic Builtins): Move implementation details
12382 to the end of the description, rewrite opening paragraphs, state
12383 difference with __sync builtins, state C11/C++11 assumptions,
12384 weaken itemized descriptions, add explanation of memory model
12385 behaviour, expand description of compare-exchange, simplify text.
12386
12387 2015-05-05 Renlin Li <renlin.li@arm.com>
12388
12389 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12390
12391 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
12392
12393 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12394 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12395 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12396 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12397 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12398 * configure: Regenerate.
12399 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12400 * doc/install.texi (aarch64*-*-*): Document new
12401 --enable-fix-cortex-a53-843419 option.
12402 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12403 and -mno-fix-cortex-a53-843419 options.
12404
12405 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12406
12407 PR target/65871
12408 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12409
12410 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
12411
12412 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12413 fix overactive TYPE_MIN_VALUE check and add FIXME for type
12414 compatibility problems.
12415
12416 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12417
12418 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12419 constraints.
12420 (cbranchsi4_reg): New.
12421 * config/microblaze/microblaze.c
12422 (microblaze_expand_conditional_branch_reg): New.
12423 * config/microblaze/microblaze-protos.h
12424 (microblaze_expand_conditional_branch_reg): New prototype.
12425
12426 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12427
12428 * config/microblaze/microblaze.md (peephole2): New.
12429
12430 2015-05-04 Jeff Law <law@redhat.com>
12431
12432 Revert:
12433 2015-05-04 Jeff Law <law@redhat.com>
12434
12435 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12436 simplifier to narrow arithmetic.
12437 * generic-match-head.c: (types_match, single_use): New functions.
12438 * gimple-match-head.c: (types_match, single_use): New functions.
12439
12440 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12441
12442 PR target/65987
12443 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12444 (split_branches): Likewise.
12445
12446 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
12447
12448 * common.opt (fdelete-null-pointer-checks): Init to -1.
12449 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12450 override flag_delete_null_pointer_checks default.
12451 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12452 behavior re address zero. Better document target-specific behavior.
12453 (-fisolate-errneous-paths-dereference): Mention relationship to
12454 -fdelete-null-pointer-checks.
12455
12456 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12457
12458 PR tree-optimization/65984
12459 * ubsan.c: Include tree-cfg.h.
12460 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12461 stmt_could_throw_p test, rename can_throw variable to ends_bb.
12462
12463 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12464
12465 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12466 to CONST_DOUBLE_P predicate.
12467 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12468 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12469 allow only operands that satisfy standard_sse_constant_p predicate.
12470 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12471 to CONST_DOUBLE_P predicate.
12472
12473 2015-05-04 Jeff Law <law@redhat.com>
12474
12475 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12476 simplifier to narrow arithmetic.
12477 * generic-match-head.c: (types_match, single_use): New functions.
12478 * gimple-match-head.c: (types_match, single_use): New functions.
12479
12480 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
12481
12482 * config/arm/arm.c: Restore bootstrap.
12483
12484 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12485
12486 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12487 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12488 as CONST_WIDE_INT, not CONST_DOUBLE.
12489 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12490 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12491 (ix86_find_base_term): Do not check for CONST_DOUBLE.
12492 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12493 (ix86_build_signbit_mask): Rewrite using wide ints.
12494 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12495 (ix86_rtx_costs): Handle CONST_WIDE_INT.
12496 (find_constant): Ditto.
12497 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12498 using gen_int_mode.
12499 * config/i386/predicates.md (x86_64_immediate_operand)
12500 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12501 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12502 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12503 (const0_operand): Also match const_wide_int.
12504 (constm1_operand): Ditto.
12505 (const1_operand): Ditto.
12506
12507 2015-05-04 Richard Biener <rguenther@suse.de>
12508
12509 PR tree-optimization/65965
12510 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12511 store groups at gaps.
12512
12513 2015-05-04 Richard Biener <rguenther@suse.de>
12514
12515 PR tree-optimization/65935
12516 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12517 then make sure to apply that swapping to the IL.
12518
12519 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12520
12521 * Makefile.in (PATCHLEVEL_c): New variable.
12522 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12523 expand the same way as if DEVPHASE_c was non-empty.
12524
12525 2015-05-04 Kai Tietz <ktietz@redhat.com>
12526
12527 PR target/65559
12528 * lto-wrapper.c (run_gcc): Open filename
12529 in binary-mode.
12530
12531 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
12532
12533 * doc/extend.texi (Variable Attributes, Type Attributes): Move
12534 sections up in file, to immediately after the Function Attributes
12535 section.
12536
12537 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
12538
12539 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12540
12541 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12542
12543 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12544 (insert_partition_copy_on_edge): Adjust.
12545 (insert_rtx_to_part_on_edge): Likewise.
12546 (insert_part_to_rtx_on_edge): Likewise.
12547
12548 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12549
12550 * function.c (set_return_jump_label): Change type of argument to
12551 rtx_insn *.
12552 * function.h (set_return_jump_label): Adjust.
12553
12554 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12555
12556 * reload.h (struct reg_equivs_t): Change type of init to
12557 rtx_insn *.
12558 * ira.c (fix_reg_equiv_init): Adjust.
12559 * reload1.c (eliminate_regs_1): Likewise.
12560 (init_eliminable_invariants): Likewise.
12561
12562 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12563
12564 * cselib.c (fp_setter_insn): Take a rtx_insn *.
12565 * cselib.h (fp_setter_insn): Adjust.
12566
12567 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12568
12569 * recog.c (struct validate_replace_src_data): Change type of
12570 insn field to rtx_insn *.
12571 (validate_replace_src_group): Change type of argument to rtx_insn *.
12572 * recog.h (validate_replace_src_group): Adjust.
12573
12574 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12575
12576 * haifa-sched.c: Change the type of some variables to rtx_insn *.
12577 * sched-deps.c: Likewise.
12578 * sched-int.h: Likewise.
12579 * sched-rgn.c: Likewise.
12580 * sel-sched.c: Likewise.
12581
12582 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12583
12584 to rtx_insn *.
12585 * config/i386/i386.c: Change the type of some arguments to
12586 rtx_insn *.
12587 * config/arm/arm.c: Likewise.
12588
12589 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12590
12591 * lra-constraints.c: Change type of some arguments to rtx_insn *.
12592
12593 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12594
12595 * regcprop.c (kill_autoinc_value): Change type of argument to
12596 rtx_insn *.
12597
12598 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12599
12600 * genrecog.c (print_subroutine): Adjust.
12601 * recog.c (get_bool_attr_mask_uncached): Likewise.
12602 * recog.h (struct recog_data_d): Change the type of insn to
12603 rtx_insn *.
12604
12605 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12606
12607 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12608
12609 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12610
12611 * df-problems.c (df_set_note): Change type of argument to
12612 rtx_insn *.
12613
12614 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12615
12616 * builtins.c (expand_builtin_trap): Change type of local
12617 variable to rtx_insn *.
12618 (add_sched_insns_for_speculation): Likewise.
12619 (ix86_emit_save_regs): Likewise.
12620 (get_scratch_register_on_entry): Likewise.
12621 (ix86_emit_restore_reg_using_pop): Likewise.
12622 (ix86_emit_leave): Likewise.
12623 (ix86_emit_restore_regs_using_mov): Likewise.
12624 (ix86_expand_epilogue): Likewise.
12625 Likewise.
12626 (rl78_alloc_physical_registers_umul): Likewise.
12627 * cselib.c (discard_useless_locs): Likewise.
12628 (cselib_invalidate_regno): Likewise.
12629 (cselib_invalidate_mem): Likewise.
12630 * function.c (expand_function_start): Likewise.
12631 (emit_use_return_register_into_block): Likewise.
12632 * gcse.c: Likewise.
12633 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12634 * ifcvt.c (noce_get_alt_condition): Likewise.
12635 * loop-doloop.c (doloop_condition_get): Likewise.
12636 * lra-constraints.c (inherit_in_ebb): Likewise.
12637 * modulo-sched.c (sms_schedule_by_order): Likewise.
12638 * recog.c (next_insn_tests_no_inequality): Likewise.
12639 * reorg.c (emit_delay_sequence): Likewise.
12640 (update_reg_dead_notes): Likewise.
12641 (fix_reg_dead_note): Likewise.
12642 (fill_slots_from_thread): Likewise.
12643 (delete_computation): Likewise.
12644
12645 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
12646
12647 * doc/extend.texi (Variable Attributes): Add menu and proper
12648 @nodes to subsections. Move Microsoft Windows attributes to
12649 their own subsection.
12650 (Type Attributes): Reorganize introduction to remove duplicate
12651 list of attributes. Add menu and proper @nodes to subsections.
12652 Alphabetize the main table of common attributes.
12653
12654 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
12655
12656 * match.pd: New simplification patterns.
12657 (x + (x & 1)) -> ((x + 1) & ~1)
12658 (x & ~(x & y)) -> ((x & ~y))
12659 (x | ~(x | y)) -> ((x | ~y))
12660
12661 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12662
12663 * target.def (attribute_table): Mention that struct attribute_spec
12664 is defined in tree-core.h rather than tree.h
12665 * doc/tm.texi: Regenerate.
12666
12667 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
12668
12669 * genrecog.c (test): Rename to rtx_test. Update rest of file
12670 accordingly.
12671
12672 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
12673
12674 PR translation/65959
12675 * params.h (DEFPARAM): Rename msgid to nocmsgid.
12676
12677 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12678
12679 * gcc/config/aarch64/aarch64-protos.h (tune_params):
12680 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12681 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12682 Return value depending on target.
12683 (generic_tunings): Initialize new target settings.
12684 (cortexa53_tunings): Likewise.
12685 (cortexa57_tunings): Likewise.
12686 (thunderx_tunings): Likewise.
12687 (xgene1_tunings): Likewise.
12688
12689 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12690
12691 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12692 Make Cortex-A53 shift costs more accurate.
12693
12694 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12695
12696 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12697 UNSIGNED_FLOAT.
12698
12699 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12700
12701 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12702 Calculate cost of op0 and op1 in PLUS and MINUS cases.
12703
12704 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12705
12706 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12707 Add cost of op0 in the compare-with-fpzero case.
12708
12709 2015-04-30 David Malcolm <dmalcolm@redhat.com>
12710
12711 * builtins.c (fold_builtin_1): Remove spurious second
12712 semicolon.
12713 * cgraph.h (symtab_node::get_availability): Likewise.
12714 * opts.c (common_handle_option): Remove spurious second semicolon.
12715 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12716 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12717
12718 2015-04-30 Caroline Tice <cmtice@google.com>
12719
12720 PR gcov-profile/65929
12721 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12722 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12723 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12724 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12725 * doc/tm.texi: Regenerate.
12726 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
12727 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12728 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
12729 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12730
12731 2015-04-30 Marek Polacek <polacek@redhat.com>
12732
12733 * varasm.c (handle_cache_entry): Fix logic.
12734
12735 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12736
12737 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12738 (*extrsi5_insn_uxtw_alt): Likewise.
12739 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12740 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12741 operations.
12742
12743 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12744
12745 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12746 fabd in ABS case.
12747
12748 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12749
12750 * config/aarch64/aarch64.md
12751 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12752 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12753 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12754 appropriately. Handle alternative EON form.
12755
12756 2015-04-30 Renlin Li <renlin.li@arm.com>
12757
12758 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12759 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12760
12761 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12762
12763 PR ipa/65873
12764 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12765 -fstrict-aliasing boundaries.
12766
12767 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12768
12769 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12770 and [SU]MNEGL patterns.
12771
12772 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12773
12774 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12775 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12776 combined arithmetic-shift ops. Properly handle all shift and extend
12777 operations that can occur in combination with PLUS/MINUS.
12778 Rename maybe_fma to compound_p.
12779 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12780 arithmetic and shift operations.
12781
12782 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12783
12784 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12785 rather than arith_shift cost when costing ADD/MINUS of an
12786 extended value.
12787
12788 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12789
12790 PR lto/65948
12791 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12792 to itself.
12793
12794 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
12795
12796 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12797 are for the same position.
12798
12799 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
12800
12801 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
12802 vectorize_loops.
12803 (vectorize_loops): Use it.
12804
12805 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12806
12807 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12808 for aggregate types.
12809 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12810 type to be non_ODR.
12811 * tree.c (need_assembler_name_p): Compute mangled name for
12812 non-fundamental types and integer types.
12813
12814 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
12815
12816 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12817 manual swaps.
12818 * expr.c (expand_expr_real_2): Likewise.
12819
12820 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12821
12822 * tree.c (build_common_builtin_nodes): Do not build
12823 __builtin_alloca_with_align as equivalent of library alloca.
12824
12825 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12826
12827 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12828 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12829 bugus variants.
12830 * tree.c: Include print-tree.h and ipa-utils.h
12831 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12832 (free_lang_data_in_cgraph): Call verify_type.
12833 (verify_type_variant): New function.
12834 (verify_type): New function.
12835 * tree.h (verify_type): Declare.
12836
12837 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
12838
12839 * config/mips/mips-cpus.def: (mips4): Change default processor
12840 from PROCESSOR_R8000 to PROCESSOR_R10000.
12841
12842 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
12843
12844 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12845 la/jalr instead of jal.
12846
12847 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
12848
12849 PR target/65871
12850 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12851 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12852 (setcc+movzbl peephole2): Check also clobbered reg.
12853 (setcc+andl peephole2): Ditto.
12854
12855 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12856
12857 PR libgomp/65099
12858 * config/nvptx/mkoffload.c (target_ilp32): New variable.
12859 (main): Set it depending on "-foffload-abi=[...]".
12860 (compile_native, main): Use it to pass "-m32" or "-m64" to the
12861 compiler.
12862
12863 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12864
12865 PR target/65770
12866 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12867 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12868 Flip lane index back at assembly time for bigendian.
12869
12870 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12871
12872 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12873 * gimplify.c (gimplify_omp_workshare): Use it.
12874
12875 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12876
12877 * Makefile.in (build/genrecog.o): Depend on inchash.h.
12878 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12879 build/inchash.o
12880 * genrecog.c: Rewrite most of the code except for the third page.
12881
12882 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12883
12884 * inchash.h, inchash.c: Include bconfig.h for build objects.
12885 * Makefile.in (build/inchash.o): New rule.
12886
12887 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
12888
12889 PR target/65924
12890 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12891 number in type attribute expression.
12892
12893 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12894
12895 * loop-iv.c (canon_condition): Generalize to all types of integer
12896 constant.
12897
12898 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
12899
12900 * gimple-walk.c: Prune duplicate or unneeded includes.
12901 (walk_gimple_asm): Only call parse_input_constraint or
12902 parse_output_constraint if their findings are used.
12903 Honour parse_input_constraint and parse_output_constraint
12904 result.
12905
12906 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12907
12908 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12909
12910 2015-04-29 Tom de Vries <tom@codesourcery.com>
12911
12912 PR tree-optimization/65893
12913 * passes.def (pass_all_optimizations): Move pass_stdarg to after
12914 pass_dce.
12915
12916 2015-04-29 Richard Biener <rguenther@suse.de>
12917
12918 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12919 compute GROUP_SIZE for basic-block SLP.
12920 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12921 take into account gaps.
12922 (vect_get_mask_element): Properly reject references to previous
12923 vectors.
12924 (vect_transform_slp_perm_load): Likewise.
12925
12926 2015-04-29 Christian Bruel <christian.bruel@st.com>
12927
12928 PR target/64835
12929 * config/i386/i386.c (ix86_default_align): New function.
12930 (ix86_override_options_after_change): Call ix86_default_align.
12931 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12932 (ix86_override_options_after_change): New function.
12933
12934 2015-04-28 Jeff Law <law@redhat.com>
12935
12936 * tree-ssa-dom.c (record_equality); Fix comment typos.
12937
12938 2015-04-28 Tom de Vries <tom@codesourcery.com>
12939
12940 PR tree-optimization/65887
12941 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12942
12943 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
12944
12945 * doc/extend.texi (Declaring Attributes of Functions): Split into
12946 subsections by target. Alphabetize the table of common attributes.
12947 Rewrite some of the introductory text to reflect the new structure.
12948 Update some cross-references to point to the new subsections.
12949 (Attribute Syntax): Put paragraph about "__" naming here. Remove
12950 duplicate copies in the discussion of function, label, and type
12951 attributes.
12952
12953 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
12954
12955 PR bootstrap/65910
12956 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12957
12958 2015-04-28 Jason Merrill <jason@redhat.com>
12959
12960 PR c++/65734
12961 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12962 (finalize_type_size): Respect TYPE_USER_ALIGN.
12963 (layout_type) [ARRAY_TYPE]: Likewise.
12964
12965 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
12966
12967 * config/arm/arm.md (*arm_movt): Fix type attribute.
12968 (*cmpsi_shiftsi): Likewise.
12969 (*cmpsi_shiftsi_swp): Likewise.
12970 (*movsicc_insn): Likewise.
12971 (*cond_move): Likewise.
12972 (*if_plus_move): Likewise.
12973 (*if_move_plus): Likewise.
12974 (*if_arith_move): Likewise.
12975 (*if_move_arith): Likewise.
12976 (*if_shift_move): Likewise.
12977 (*if_move_shift): Likewise.
12978 (*arm_movtas_ze): Likewise.
12979 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12980 redundancy and type attribute.
12981 (*thumb2_movsi_insn): Fix type attribute.
12982 (*thumb2_addsi_short): Likewise.
12983 (thumb2_addsi3_compare0): Likewise.
12984 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12985 attributes accordingly.
12986
12987 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12988
12989 PR other/65911
12990 * function.c (pad_to_arg_alignment): Add parentheses.
12991
12992 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
12993
12994 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12995 libgcc/config/frv/elf-lib.h.
12996
12997 2015-04-28 Tom de Vries <tom@codesourcery.com>
12998
12999 * tree-call-cdce.c: Fix example in header comment.
13000
13001 2015-04-28 Richard Biener <rguenther@suse.de>
13002
13003 PR tree-optimization/62283
13004 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
13005 fails fatally and we are vectorizing a basic-block simply
13006 cause the child to be constructed piecewise.
13007 (vect_analyze_slp_cost_1): Adjust.
13008 (vect_detect_hybrid_slp_stmts): Likewise.
13009 (vect_bb_slp_scalar_cost): Likewise.
13010 (vect_get_constant_vectors): For piecewise constructed
13011 constants place them after the last def.
13012 (vect_get_slp_defs): Adjust.
13013 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
13014 externals for basic-block vectorization.
13015
13016 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
13017
13018 PR target/63503
13019 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
13020 aarch64-*-*.
13021 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
13022 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
13023 (AARCH64_TUNE_FMA_STEERING): Likewise.
13024 * config/aarch64/aarch64-cores.def: Set
13025 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
13026 FMUL/FMADD instructions.
13027 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
13028 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
13029 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
13030 * config/aarch64/cortex-a57-fma-steering.h: New file.
13031 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13032
13033 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
13034
13035 * gensupport.c (std_preds): Add missing codes to address_operand entry.
13036
13037 2015-04-28 Richard Biener <rguenther@suse.de>
13038
13039 PR tree-optimization/65851
13040 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
13041 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
13042 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
13043 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
13044 (ccp_visit_phi_node): Adjust.
13045 (evaluate_stmt): For simplifications to SSA names return its
13046 lattice value if that isn't VARYING. Return immediately when
13047 simplified to a constant.
13048 (visit_assignment): Adjust.
13049 (ccp_visit_stmt): Likewise.
13050
13051 2015-04-28 Tom de Vries <tom@codesourcery.com>
13052
13053 PR tree-optimization/65818
13054 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
13055 evaluated.
13056
13057 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13058
13059 * calls.c (save_fixed_argument_area): Don't check
13060 ARGS_GROW_DOWNWARD with the preprocessor.
13061 (restore_fixed_argument_area): Likewise.
13062 (mem_overlaps_already_clobbered_arg_p): Likewise.
13063 (check_sibcall_argument_overlap): Likewise.
13064 (expand_call): Likewise.
13065 (emit_library_call_value_1): Likewise.
13066 (store_one_arg): Likewise.
13067 * function.c (assign_parms): Likewise.
13068 (locate_and_pad_parm): Likewise.
13069 (pad_to_arg_alignment): Likewise.
13070 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13071
13072 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13073
13074 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
13075 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
13076 * calls.c (save_fixed_argument_area): Don't chekc if
13077 ARGS_GROW_DOWNWARD is defined.
13078 (restore_fixed_argument_area): Likewise.
13079 (mem_overlaps_already_clobbered_arg_p): Likewise.
13080 (check_sibcall_argument_overlap): Likewise.
13081 (expand_call): Likewise.
13082 (emit_library_call_value_1): Likewise.
13083 (store_one_arg): Likewise.
13084 * function.c (assign_parms): Likewise.
13085 (locate_and_pad_parm): Likewise.
13086 (pad_to_arg_alignment): Likewise.
13087 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13088
13089 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13090
13091 * defaults.h (gen_epilogue): New function.
13092 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
13093 defined.
13094 * cfgrtl.c (cfg_layout_finalize): Likewise.
13095 * df-scan.c: Likewise.
13096 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13097 (reposition_prologue_and_epilogue_notes): Likewise.
13098 * reorg.c (find_end_label): Likewise.
13099 * toplev.c: Likewise.
13100
13101 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13102
13103 * bb-reorder.c (HAVE_return): Don't check if its undefined.
13104 * defaults.h (gen_simple_return): New function.
13105 (gen_simple_return): Likewise.
13106 (HAVE_return): Add default definition to false.
13107 (HAVE_simple_return): Likewise.
13108 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
13109 HAVE_return and HAVE_simple_return are defined.
13110 * function.c (gen_return_pattern): Likewise.
13111 (convert_jumps_to_returns): Likewise.
13112 (thread_prologue_and_epilogue_insns): Likewise.
13113 * reorg.c (find_end_label): Likewise.
13114 (dbr_schedule): Likewise.
13115 * shrink-wrap.c: Likewise.
13116 * shrink-wrap.h: Likewise.
13117
13118 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13119
13120 * defaults.h (EPILOGUE_USES): Add default definition of false.
13121 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13122 * resource.c (init_resource_info): Likewise.
13123
13124 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13125
13126 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13127 to false.
13128 * dwarf2out.c (field_byte_offset): REmove check if
13129 PCC_BITFIELD_TYPE_MATTERS is defined.
13130 * stor-layout.c (layout_decl): Likewise.
13131 (update_alignment_for_field): Likewise.
13132 (place_field): Likewise.
13133
13134 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13135
13136 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13137 true.
13138 * regrename.c (check_new_reg_p): Remove check if
13139 HARD_REGNO_RENAME_OK is defined.
13140 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13141
13142 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13143
13144 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13145 * cse.c (fold_rtx): Likewise.
13146 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13147 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13148 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13149 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13150 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13151 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13152 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13153 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13154 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13155 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13156 * Likewise.
13157 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13158 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13159 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13160 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13161 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13162 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13163 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13164 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13165 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13166 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13167 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13168 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13169 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13170 * doc/tm.texi: Regenerate.
13171 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13172 either true or false.
13173
13174 2015-04-27 Jeff Law <law@redhat.com>
13175
13176 PR tree-optimization/65217
13177 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13178 of them has a single use, make sure it is the LHS of the implied
13179 copy.
13180
13181 2015-04-28 Alan Modra <amodra@gmail.com>
13182
13183 PR target/65810
13184 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13185 (offsettable_ok_by_alignment): Use minimum of decl and toc
13186 pointer alignment. Replace dead code with assertion.
13187 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
13188 case if size exceeds toc pointer alignment.
13189 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13190 (rs6000_emit_move): Likewise.
13191 * configure.ac: Add linker toc pointer alignment check.
13192 * configure: Regenerate.
13193 * config.in: Regenerate.
13194
13195 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
13196
13197 * config.gcc: Add h8300-*-linux.
13198 * config/h8300/linux.h: New.
13199 * config/h8300/t-linux: New.
13200 * config/h8300/h8300.c (h8300_option_override): Normal mode
13201 is not supported for h8300-*-linux.
13202 (h8300_file_start): Target priority change.
13203 (get_shift_alg): Likewise.
13204 (h8300_shift_need_scratch_p): Likewise.
13205 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13206 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13207
13208 2015-04-27 Caroline Tice <cmtice@google.com>
13209
13210 * final.c (final_scan_insn): Output cold_function_name as function
13211 type.
13212 * varasm.c (cold_function_name): Make global.
13213 (assemble_start_function): Re-set cold_function_name.
13214 (assemble_end_function): Output cold partition size.
13215 * varasm.h (cold_function_name): Declare global.
13216
13217 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
13218
13219 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13220 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13221 constraint.
13222 (*movxi_internal_avx512f): Ditto.
13223 (define_split): Check for xmm16+, when splitting scalar float_extend.
13224 (*extendsfdf2_mixed): Use "v" constraint.
13225 (define_split): Check for xmm16+, when splitting scalar float_truncate.
13226 (*truncdfsf_fast_sse): Use "v" constraint.
13227 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13228 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13229 (define_peephole2): Check for xmm16+, when converting scalar
13230 float_truncate.
13231 (define_peephole2): Check for xmm16+, when converting scalar
13232 float_extend.
13233 (*fop_<mode>_comm_mixed): Use "v" constraint.
13234 (*fop_<mode>_comm_sse): Ditto.
13235 (*fop_<mode>_1_mixed): Ditto.
13236 (*sqrt<mode>2_sse): Ditto.
13237 (*ieee_s<ieee_maxmin><mode>3): Ditto.
13238
13239 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13240
13241 * combine.c (simplify_if_then_else): Use std::swap instead
13242 of manually swapping.
13243 (known_cond): Likewise.
13244 (simplify_comparison): Likewise.
13245
13246 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
13247
13248 PR target/64579
13249 * config/rs6000/htm.md: Remove all define_expands.
13250 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13251 UNSPECV_HTM_TABORTWCI): Remove.
13252 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13253 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13254 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13255 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13256 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13257 tabortwci_internal): Remove define_insns.
13258 (tabort<wd>c, tabort<wd>ci): New define_insns.
13259 (tabort): Use gpc_reg_operand.
13260 (tcheck): Remove operand.
13261 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13262 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13263 expected value.
13264 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13265 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
13266 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13267 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13268 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13269 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13270 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13271 (tcheck): Remove builtin argument.
13272 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13273 not TARGET_64BIT.
13274 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
13275 tabortdc and tabortdci builtins when not in 64-bit mode.
13276 Modify code to handle the loss of the HTM define_expands.
13277 Emit code to copy the CR register to TARGET.
13278 (htm_init_builtins): Modify code to handle the loss of the HTM
13279 define_expands.
13280 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13281 (RS6000_BTC_64BIT): Likewise.
13282 (RS6000_BTC_CR): New macro.
13283 * doc/extend.texi: Update documentation for htm builtins.
13284
13285 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13286
13287 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13288 of manually swapping.
13289 (simplify_associative_operation): Likewise.
13290 (simplify_binary_operation): Likewise.
13291 (simplify_plus_minus): Likewise.
13292 (simplify_relational_operation): Likewise.
13293 (simplify_ternary_operation): Likewise.
13294
13295 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13296
13297 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13298 (xs_hi_nonmemory_operand): Remove error.
13299 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13300 general_operand rather than xs_hi_general_operand.
13301
13302 2015-04-27 Richard Biener <rguenther@suse.de>
13303
13304 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13305 (record_equivalences_from_stmt): Valueize rhs.
13306 (record_equality): Canonicalize x and y order via
13307 tree_swap_operands_p. Do not swap operands for same loop depth.
13308
13309 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
13310
13311 PR target/65296
13312 PR target/65895
13313 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13314 Add hint how to use own spec file.
13315
13316 2015-04-27 Jakub Jelinek <jakub@redhat.com>
13317
13318 PR tree-optimization/65875
13319 * tree-vrp.c (update_value_range): If in is_new case setting
13320 old_vr to VR_VARYING, also set new_vr to it. Remove
13321 old_vr->type == VR_VARYING test.
13322 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13323 SSA_PROP_INTERESTING if update_value_range returned true,
13324 but new range is VR_VARYING.
13325
13326 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13327
13328 * combine.c (sign_extend_short_imm): New.
13329 (set_nonzero_bits_and_sign_copies): Use above new function for sign
13330 extension of src short immediate.
13331 (reg_nonzero_bits_for_combine): Likewise for tem.
13332
13333 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13334
13335 * stor-layout.c (self_referential_component_ref_p): New predicate.
13336 (copy_self_referential_tree_r): Use it.
13337 (self_referential_size): Punt for simple operations directly involving
13338 self-referential component references.
13339 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13340
13341 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13342
13343 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13344
13345 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13346
13347 * vec.h (vec): Make splice arguments const. Update definitions
13348 accordingly.
13349
13350 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
13351
13352 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13353 alternatives.
13354
13355 2015-04-26 Tom de Vries <tom@codesourcery.com>
13356
13357 PR tree-optimization/65826
13358 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13359
13360 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
13361
13362 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13363 (*madd3<mode>): Ditto.
13364 (*msub4<mode>): Ditto.
13365 (*msub3<mode>): Ditto.
13366 (*nmadd4<mode>): Ditto.
13367 (*nmadd3<mode>): Ditto.
13368 (*nmadd4<mode>_fastmath): Ditto.
13369 (*nmadd3<mode>_fastmath): Ditto.
13370 (*nmsub4<mode>): Ditto.
13371 (*nmsub3<mode>): Ditto.
13372 (*nmsub4<mode>_fastmath): Ditto.
13373 (*nmsub3<mode>_fastmath): Ditto.
13374
13375 2015-04-24 Jason Merrill <jason@redhat.com>
13376
13377 PR c++/50800
13378 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13379 down when building TYPE_CANONICAL.
13380 (build_pointer_type_for_mode): Likewise.
13381
13382 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
13383
13384 * genrecog.c (validate_pattern): Check matching constraint refers
13385 to a lower numbered operand.
13386
13387 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13388
13389 PR target/65849
13390 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13391 save to independent variables use the Save attribute. This will
13392 allow these options to be modified with the #pragma/attribute
13393 target support.
13394 (-mallow-movmisalign): Likewise.
13395 (-mallow-df-permute): Likewise.
13396 (-msched-groups): Likewise.
13397 (-malways-hint): Likewise.
13398 (-malign-branch-targets): Likewise.
13399 (-mvectorize-builtins): Likewise.
13400 (-msave-toc-indirect): Likewise.
13401
13402 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13403 can be set via the #pragma/attribute target support.
13404 (rs6000_opt_vars): Likewise.
13405 (rs6000_inner_target_options): If VSX was set, also set
13406 -mno-avoid-indexed-addresses.
13407
13408 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13409
13410 * config/arm/iterators.md (shiftable_ops): Rename to...
13411 (SHIFTABLE_OPS): ... This. Update use in comments.
13412 (ior_xor): Rename to...
13413 (IOR_XOR): ... This.
13414 (vqh_ops): Rename to...
13415 (VQH_OPS): ... This.
13416 (vqhs_ops): Rename to...
13417 (VQHS_OPS): ... This.
13418 (rshifts): Rename to...
13419 (RSHIFTS): ... This.
13420 (returns): Rename to...
13421 (RETURNS): ... This.
13422 * config/arm/arm.md: Update uses of the above.
13423 * config/arm/neon.md: Likewise.
13424
13425 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13426
13427 * config.host (case ${host}): Add aarch64*-*-linux case.
13428 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13429 fields to all the cores.
13430 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13431 Add MCPU_MTUNE_NATIVE_SPECS.
13432 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13433 field to all extensions.
13434 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13435 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13436 Adjust definition of AARCH64_OPT_EXTENSION.
13437 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13438 (MCPU_MTUNE_NATIVE_SPECS): Define.
13439 * config/aarch64/driver-aarch64.c: New file.
13440 * config/aarch64/x-arch64: New file.
13441 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13442 -mtune and -march.
13443
13444 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13445 Wei Mi <wmi@google.com>
13446
13447 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13448 * config/i386/i386.c (extract_base_offset_in_addr): New function.
13449 (ix86_operands_ok_for_move_multiple): Ditto.
13450 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13451 (movlpd/movhpd to movupd peephole2): Ditto.
13452
13453 2015-04-24 Marek Polacek <polacek@redhat.com>
13454
13455 PR c/61534
13456 * input.h (from_macro_expansion_at): Define.
13457
13458 PR c/63357
13459 * doc/invoke.texi: Update description of -Wlogical-op.
13460
13461 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13462
13463 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13464 ternary operator in fprintf and harmonize spacing.
13465
13466 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13467
13468 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13469 Mark operand1 commutative.
13470
13471 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13472
13473 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13474 input operands in memory.
13475 (*vec_concatv2si_sse4_1): Ditto.
13476 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13477 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13478 register_operand.
13479 (vec_extract_hi_v32hi): Ditto.
13480 (vec_extract_hi_v64hi): Ditto.
13481 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13482
13483 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13484 Steven Bosscher <steven@gcc.gnu.org>
13485
13486 PR rtl-optimization/34503
13487 * cprop.c (cprop_reg_p): New.
13488 (hash_scan_set): Use above function to check if register can be
13489 propagated.
13490 (find_avail_set): Return up to two sets, one whose source is a
13491 register and one whose source is a constant. Sets are returned in an
13492 array passed as parameter rather than as a return value.
13493 (cprop_insn): Use a do while loop rather than a goto. Try each of the
13494 sets returned by find_avail_set, starting with the one whose source is
13495 a constant. Use cprop_reg_p to check if register can be propagated.
13496 (do_local_cprop): Use cprop_reg_p to check if register can be
13497 propagated.
13498 (implicit_set_cond_p): Likewise.
13499
13500 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13501
13502 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13503 (sem_function::equals): IGNORED_NODES parameter is now unused;
13504 update call of equals_private.
13505 (sem_function::equals_private): Do not call equals_wpa; skip
13506 gimple body matching if there is no body.
13507 (sem_function::init): Add logic to hash tthunk info.
13508 (sem_function::parse): Also parse thunks.
13509 * ipa-icf.h (equals_private): Update declaration.
13510
13511 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13512
13513 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13514 asterisk from name so this can be generated directly.
13515 (*altivec_stvx_<mode>_internal): Likewise.
13516 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13517 that this is never called during or after reload/lra.
13518 (rs6000_frame_related): Remove split_reg
13519 argument and logic that references it.
13520 (emit_frame_save): Remove last parameter from call to
13521 rs6000_frame_related.
13522 (rs6000_emit_prologue): Remove last parameter from eight calls to
13523 rs6000_frame_related. Force generation of stvx instruction for
13524 Altivec register saves. Remove split_reg handling, which is no
13525 longer needed.
13526 (rs6000_emit_epilogue): Force generation of lvx instruction for
13527 Altivec register restores.
13528
13529 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13530
13531 * config/rs6000/rs6000.opt (mcrypto): Change option description to
13532 match category changes in ISA 2.07B.
13533
13534 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13535
13536 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13537 iterators.
13538 (cmp_op, cmp_type): New code attributes.
13539 (NEON_VCMP, NEON_VACMP): New int iterators.
13540 (cmp_op_unsp): New int attribute.
13541 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13542 (neon_vceq<mode>): Delete.
13543 (neon_vc<cmp_op><mode>_insn): New pattern.
13544 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13545 (neon_vcgeu<mode>): Delete.
13546 (neon_vcle<mode>): Likewise.
13547 (neon_vclt<mode>: Likewise.
13548 (neon_vcage<mode>): Likewise.
13549 (neon_vcagt<mode>): Likewise.
13550 (neon_vca<cmp_op><mode>): New define_expand.
13551 (neon_vca<cmp_op><mode>_insn): New pattern.
13552 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13553
13554 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13555
13556 * tree.h (attribute_value_equal): Declare.
13557 * tree.c (attribute_value_equal): Export.
13558
13559 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13560
13561 * ipa-icf.c (sem_item::compare_attributes): New function.
13562 (sem_item::compare_referenced_symbol_properties): Compare variable
13563 attributes.
13564 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13565 (sem_function::param_used_p): New function.
13566 (sem_function::equals_wpa): Fix attribute comparsion; match
13567 parameter type codes; do not compare paremter flags when
13568 they are not used; compare edge flags; compare indirect calls.
13569 (sem_item::update_hash_by_addr_refs): Hash reference type.
13570 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13571 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13572 reference use type.
13573 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13574 * ipa-icf.h (compare_attributes, param_used_p): Declare.
13575
13576 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13577
13578 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13579 cleanup.
13580 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13581 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13582 (sem_item::compare_referenced_symbol_properties): New.
13583 (sem_item::hash_referenced_symbol_properties): New.
13584 (sem_item::compare_cgraph_references): Rename to ...
13585 (sem_item::compare_symbol_references): ... this one; use
13586 compare_referenced_symbol_properties.
13587 (sem_function::equals_wpa): Do not compare
13588 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13589 DECL_IS_OPERATOR_NEW; compare pointer sizes.
13590 (sem_item::update_hash_by_addr_refs): Call
13591 hash_referenced_symbol_properties.
13592 (sem_item::update_hash_by_local_refs): Cleanup.
13593 (sem_function::merge): Do not mix up symbol properties.
13594 (sem_variable::equals_wpa): Use compare_symbol_references.
13595 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13596 (sem_item::hash_referenced_symbol_properties): New.
13597 (sem_item::compare_symbol_references): New.
13598 (sem_item::compare_cgraph_references): Remove.
13599
13600 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
13601
13602 PR target/26702
13603 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13604 Emit size of local.
13605
13606 2015-04-23 Nick Clifton <nickc@redhat.com>
13607
13608 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13609 ATTRIBUTE_UNUSED to x parameter.
13610 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13611
13612 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13613
13614 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13615 TARGET_CRYPTO to TARGET_P8_VECTOR>
13616 (crypto_vpermxor_<mode>): Likewise.
13617 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13618 (BU_CRYPTO_3A): Likewise.
13619 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13620 (BU_CRYPTO_OVERLOAD_3A): New #define.
13621 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13622 (VPMSUMH): Likewise.
13623 (VPMSUMW): Likewise.
13624 (VPMSUMD): Likewise.
13625 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13626 (VPERMXOR_V4SI): Likewise.
13627 (VPERMXOR_V8HI): Likewise.
13628 (VPERMXOR_V16QI): Likewise.
13629 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13630 BU_CRYPTO_OVERLOAD_2A.
13631 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13632 BU_CRYPTO_OVERLOAD_3A.
13633 * config/rs6000/rs6000.opt (mcrypto): Change description of
13634 option.
13635
13636 2015-04-23 Richard Biener <rguenther@suse.de>
13637
13638 * passes.def: Remove copy propagation passes run directly after CCP.
13639 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13640 SSA names.
13641 (ccp_visit_phi_node): Rework to handle first executable edge
13642 specially.
13643
13644 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
13645
13646 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13647 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13648 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13649 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13650 (thumb_legimitimize_reload_address): Remove.
13651 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13652 Remove.
13653 (thumb_legimitimize_reload_address): Remove.
13654
13655 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13656
13657 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13658
13659 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13660
13661 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13662 MAX_LDM_STM_OPS.
13663 (store_multiple): Likewise.
13664
13665 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13666
13667 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13668 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13669 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13670 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13671 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13672 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13673 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13674 Specify issue_rate value.
13675 (arm_issue_rate): Look up issue rate from tuning structs. Remove
13676 large switch statement.
13677 (arm_marvell_pj4_tune): New struct.
13678 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13679 struct.
13680
13681 2015-04-23 Richard Biener <rguenther@suse.de>
13682
13683 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13684 (vect_find_last_store_in_slp_instance): Rename to ...
13685 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13686 (vect_analyze_slp_cost_1): Use vector_load for constant defs
13687 and vec_construct for external defs when estimating prologue cost.
13688 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13689 Compute costs here only when vectorizing loops.
13690 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13691 have been determined.
13692 (vect_schedule_slp_instance): Simplify vectorized code placement
13693 and prepare for in-BB external defs.
13694 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13695 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13696 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13697 guard.
13698 (vect_model_load_cost): Likewise.
13699 (vectorizable_store): Instead add it here.
13700 (vectorizable_load): Likewise.
13701 (vect_is_simple_use): Dump def type textually.
13702
13703 2015-04-23 Richard Biener <rguenther@suse.de>
13704
13705 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13706 * cfgloop.c (verify_loop_structure): Verify the root loop node.
13707 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13708 instead of get_eh_region_from_lp_number.
13709 * loop-init.c (fix_loop_structure): If we removed a loop, reset
13710 the SCEV cache.
13711
13712 2015-04-23 Anton Blanchard <anton@samba.org>
13713
13714 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13715 need for -mprofile-kernel to save LR to stack.
13716
13717 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13718
13719 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13720 adjustments.
13721 (insn_is_swappable_p): Return 1 for a convert from double to
13722 single precision when all of its uses are splats of BE element
13723 zero.
13724
13725 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13726
13727 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13728
13729 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13730
13731 PR target/65456
13732 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
13733 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13734 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13735 option.
13736 (rs6000_builtin_mask_for_load): Return 0 for targets with
13737 efficient unaligned VSX accesses so that the vectorizer will use
13738 direct unaligned loads.
13739 (rs6000_builtin_support_vector_misalignment): Always return true
13740 for targets with efficient unaligned VSX accesses.
13741 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13742 stores on targets with efficient unaligned VSX accesses is almost
13743 always the same as the cost of an aligned load or store, so model
13744 it that way.
13745 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13746 unaligned vectors if we have efficient unaligned VSX accesses.
13747 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13748 undocumented option.
13749
13750 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13751
13752 Revert:
13753 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13754
13755 * config.gcc (LIBC_MUSL): New tm_defines macro.
13756 * config/linux.h (OPTION_MUSL): Define.
13757 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13758 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13759 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13760
13761 * config/linux.opt (mmusl): New option.
13762 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13763 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13764
13765 * configure: Regenerate.
13766
13767 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13768
13769 * config.gcc (LIBC_MUSL): New tm_defines macro.
13770 * config/linux.h (OPTION_MUSL): Define.
13771 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13772 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13773 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13774
13775 * config/linux.opt (mmusl): New option.
13776 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13777 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13778
13779 * configure: Regenerate.
13780
13781 2015-04-22 Yury Gribov <y.gribov@samsung.com>
13782
13783 * doc/invoke.texi (-fsanitize-sections): Update description.
13784 * asan.c (set_sanitized_sections): Parse incoming arg.
13785 (section_sanitized_p): Support wildcards.
13786
13787 2015-04-22 Tom de Vries <tom@codesourcery.com>
13788
13789 PR tree-optimization/65823
13790 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13791 equality between ap_copy and ap.
13792
13793 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13794
13795 PR target/47098
13796 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13797
13798 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13799
13800 PR target/47122
13801 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13802
13803 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13804
13805 PR target/55144
13806 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13807 remove already contained t-files.
13808
13809 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13810
13811 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13812 Remove unneeded forward declarations.
13813 (suitable_for_tail_call_opt_p): Commentary typo fix.
13814
13815 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13816
13817 * varasm.c (emit_bss): Remove redundant guard.
13818
13819 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13820
13821 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13822
13823 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13824
13825 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13826
13827 2015-04-22 Hale Wang <hale.wang@arm.com>
13828 Terry Guo <terry.guo@arm.com>
13829
13830 PR rtl-optimization/64818
13831 * combine.c (can_combine_p): Don't combine user-specified
13832 register if it is in an asm input.
13833
13834 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
13835
13836 PR ipa/65076
13837 * passes.def (early_optimizations): Add pass_dse.
13838
13839 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13840
13841 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13842 * reorg.c (redundant_insn): Remove ifdef
13843 INSN_REFERENCES_ARE_DELAYED.
13844 * resource.c (mark_referenced_resources): Likewise.
13845
13846 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13847
13848 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13849 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13850 * resource.c (mark_set_resources): Likewise.
13851
13852 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13853
13854 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13855 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13856 (flow_find_head_matching_sequence): Likewise.
13857 (try_head_merge_bb): Likewise.
13858 * combine.c (can_combine_p): Likewise.
13859 (try_combine): Likewise.
13860 (distribute_notes): Likewise.
13861 * df-problems.c (can_move_insns_across): Likewise.
13862 * final.c (final): Likewise.
13863 * gcse.c (insert_insn_end_basic_block): Likewise.
13864 * ira.c (find_moveable_pseudos): Likewise.
13865 * reorg.c (try_merge_delay_insns): Likewise.
13866 (fill_simple_delay_slots): Likewise.
13867 (fill_slots_from_thread): Likewise.
13868 * sched-deps.c (sched_analyze_2): Likewise.
13869
13870 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13871
13872 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13873 PIC_OFFSET_TABLE_REGNUM.
13874
13875 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13876
13877 * alias.c (init_alias_target): Remove ifdef
13878 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13879 * df-scan.c (df_insn_refs_collect): Likewise.
13880 (df_get_regular_block_artificial_uses): Likewise.
13881 (df_get_eh_block_artificial_uses): Likewise.
13882 (df_get_entry_block_def_set): Likewise.
13883 (df_get_exit_block_use_set): Likewise.
13884 * emit-rtl.c (gen_rtx_REG): Likewise.
13885 * ira.c (ira_setup_eliminable_regset): Likewise.
13886 * reginfo.c (init_reg_sets_1): Likewise.
13887 * regrename.c (rename_chains): Likewise.
13888 * reload1.c (reload): Likewise.
13889 (eliminate_regs_in_insn): Likewise.
13890 * resource.c (mark_referenced_resources): Likewise.
13891 (init_resource_info): Likewise.
13892
13893 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13894
13895 * defaults.h (MASK_RETURN_ADDR): New definition.
13896 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13897 MASK_RETURN_ADDR.
13898
13899 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13900
13901 * defaults.h (RETURN_ADDR_OFFSET): New definition.
13902 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13903 RETURN_ADDR_OFFSET.
13904 (expand_builtin_frob_return_addr): Likewise.
13905
13906 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13907
13908 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13909 (try_redirect_by_replacing_jump): Likewise.
13910 (rtl_tidy_fallthru_edge): Likewise.
13911 * combine.c (insn_a_feeds_b): Likewise.
13912 (find_split_point): Likewise.
13913 (simplify_set): Likewise.
13914 * cprop.c (cprop_jump): Likewise.
13915 * cse.c (cse_extended_basic_block): Likewise.
13916 * df-problems.c (can_move_insns_across): Likewise.
13917 * function.c (emit_use_return_register_into_block): Likewise.
13918 * haifa-sched.c (sched_init): Likewise.
13919 * ira.c (find_moveable_pseudos): Likewise.
13920 * loop-invariant.c (find_invariant_insn): Likewise.
13921 * lra-constraints.c (curr_insn_transform): Likewise.
13922 * postreload.c (reload_combine_recognize_const_pattern):
13923 * Likewise.
13924 * reload.c (find_reloads): Likewise.
13925 * reorg.c (delete_scheduled_jump): Likewise.
13926 (steal_delay_list_from_target): Likewise.
13927 (steal_delay_list_from_fallthrough): Likewise.
13928 (redundant_insn): Likewise.
13929 (fill_simple_delay_slots): Likewise.
13930 (fill_slots_from_thread): Likewise.
13931 (delete_computation): Likewise.
13932 * sched-rgn.c (add_branch_dependences): Likewise.
13933
13934 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13935
13936 * genconfig.c (main): Always define HAVE_cc0.
13937 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13938 HAVE_cc0.
13939 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13940 (flow_find_head_matching_sequence): Likewise.
13941 (try_head_merge_bb): Likewise.
13942 * cfgrtl.c (rtl_merge_blocks): Likewise.
13943 (try_redirect_by_replacing_jump): Likewise.
13944 (rtl_tidy_fallthru_edge): Likewise.
13945 * combine.c (do_SUBST_MODE): Likewise.
13946 (insn_a_feeds_b): Likewise.
13947 (combine_instructions): Likewise.
13948 (can_combine_p): Likewise.
13949 (try_combine): Likewise.
13950 (find_split_point): Likewise.
13951 (subst): Likewise.
13952 (simplify_set): Likewise.
13953 (distribute_notes): Likewise.
13954 * cprop.c (cprop_jump): Likewise.
13955 * cse.c (cse_extended_basic_block): Likewise.
13956 * df-problems.c (can_move_insns_across): Likewise.
13957 * final.c (final): Likewise.
13958 (final_scan_insn): Likewise.
13959 * function.c (emit_use_return_register_into_block): Likewise.
13960 * gcse.c (insert_insn_end_basic_block): Likewise.
13961 * haifa-sched.c (sched_init): Likewise.
13962 * ira.c (find_moveable_pseudos): Likewise.
13963 * loop-invariant.c (find_invariant_insn): Likewise.
13964 * lra-constraints.c (curr_insn_transform): Likewise.
13965 * optabs.c (prepare_cmp_insn): Likewise.
13966 * postreload.c (reload_combine_recognize_const_pattern):
13967 * Likewise.
13968 * reload.c (find_reloads): Likewise.
13969 (find_reloads_address_1): Likewise.
13970 * reorg.c (delete_scheduled_jump): Likewise.
13971 (steal_delay_list_from_target): Likewise.
13972 (steal_delay_list_from_fallthrough): Likewise.
13973 (try_merge_delay_insns): Likewise.
13974 (redundant_insn): Likewise.
13975 (fill_simple_delay_slots): Likewise.
13976 (fill_slots_from_thread): Likewise.
13977 (delete_computation): Likewise.
13978 (relax_delay_slots): Likewise.
13979 * sched-deps.c (sched_analyze_2): Likewise.
13980 * sched-rgn.c (add_branch_dependences): Likewise.
13981
13982 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13983
13984 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13985 that is trivially ded on non cc0 targets.
13986 (simplify_set): Likewise.
13987 (mark_used_regs_combine): Likewise.
13988 * cse.c (new_basic_block): Likewise.
13989 (fold_rtx): Likewise.
13990 (cse_insn): Likewise.
13991 (cse_extended_basic_block): Likewise.
13992 (set_live_p): Likewise.
13993 * rtlanal.c (canonicalize_condition): Likewise.
13994 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13995
13996 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13997
13998 * conditions.h: Define macros even if HAVE_cc0 is undefined.
13999 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
14000 * final.c: Likewise.
14001 * jump.c: Likewise.
14002 * recog.c: Likewise.
14003 * recog.h: Declare functions even when HAVE_cc0 is undefined.
14004 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
14005
14006 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14007
14008 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
14009 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
14010 * builtins.c (expand_builtin): Remove check if
14011 EH_RETURN_DATA_REGNO is defined.
14012 * df-scan.c (df_bb_refs_collect): Likewise.
14013 (df_get_exit_block_use_set): Likewise.
14014 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
14015 * ira-lives.c (process_bb_node_lives): Likewise.
14016 * lra-lives.c (process_bb_lives): Likewise.
14017
14018 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
14019
14020 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
14021 FIRST_PSEUDO_REG): New.
14022 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
14023 (ARG_POINTER_REGNUM): Define to ARGP_REG.
14024 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
14025 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
14026 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
14027 (FIRST_INT_REG): New.
14028 (LAST_INT_REG): New.
14029 (FIRST_*_REG): Define using *_REG.
14030 (LAST_*_REG): Ditto.
14031 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
14032 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
14033 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
14034
14035 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14036
14037 * expmed.c: (synth_mult): Only assume overlapping
14038 shift with previous steps in alg_sub_t_m2 case.
14039
14040 2015-04-21 Richard Biener <rguenther@suse.de>
14041
14042 PR tree-optimization/65650
14043 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
14044 transitions involving copies.
14045 (set_lattice_value): Adjust for copy lattice state.
14046 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
14047 if that doesn't dominate the merge point.
14048 (bit_value_unop): Adjust what we treat as varying mask.
14049 (bit_value_binop): Likewise.
14050 (bit_value_assume_aligned): Likewise.
14051 (evaluate_stmt): When we simplified to a SSA name record a copy
14052 instead of dropping to varying.
14053 (visit_assignment): Simplify.
14054
14055 * gimple-match.h (gimple_simplify): Add another callback.
14056 * gimple-fold.c (fold_stmt_1): Adjust caller.
14057 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
14058 for the 2nd callback.
14059 * gimple-match-head.c (gimple_simplify): Add a callback that is
14060 used to valueize the stmt operands and use it that way.
14061
14062 2015-04-21 Richard Biener <rguenther@suse.de>
14063
14064 PR tree-optimization/65788
14065 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
14066
14067 2015-04-21 Richard Biener <rguenther@suse.de>
14068
14069 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
14070 vec_construct cost by vec_stmt_cost.
14071
14072 2015-04-21 Richard Biener <rguenther@suse.de>
14073
14074 * cfghooks.h (create_basic_block): Replace with two overloads
14075 for RTL and GIMPLE.
14076 (split_block): Likewise.
14077 * cfghooks.c (split_block): Rename to ...
14078 (split_block_1): ... this.
14079 (split_block): Add two type-safe overloads for RTL and GIMPLE.
14080 (split_block_after_labels): Call split_block_1.
14081 (create_basic_block): Rename to ...
14082 (create_basic_block_1): ... this.
14083 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
14084 (create_empty_bb): Call create_basic_block_1.
14085 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
14086 split_block_after_labels.
14087 * omp-low.c (expand_parallel_call): Likewise.
14088 (expand_omp_target): Likewise.
14089 (simd_clone_adjust): Likewise.
14090 * tree-chkp.c (chkp_get_entry_block): Likewise.
14091 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
14092 create_basic_block overload.
14093 (cgraph_node::expand_thunk): Likewise.
14094 * tree-cfg.c (make_blocks): Likewise.
14095 (handle_abnormal_edges): Likewise.
14096 * tree-inline.c (copy_bb): Likewise.
14097
14098 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14099
14100 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
14101 New pattern.
14102 (*xor_one_cmplsidi3_ze): Likewise.
14103
14104 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
14105
14106 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
14107 use df_remove_problem rather than manually removing problems, leaving
14108 holes in df->problems_in_order[].
14109
14110 2015-04-21 Tom de Vries <tom@codesourcery.com>
14111
14112 PR tree-optimization/65802
14113 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
14114
14115 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14116
14117 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
14118 Increase to 128.
14119 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
14120 at '.'. Assert that there's enough space for everything.
14121
14122 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
14123
14124 PR tree-optimization/64950
14125 Revert:
14126 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
14127
14128 PR target/41089
14129 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14130 as volatile.
14131
14132 2015-04-20 Shiva Chen <shiva0217@gmail.com>
14133
14134 PR rtl-optimization/64916
14135 * cfgcleanup.c (values_equal_p): New function.
14136 (can_replace_by): Use it.
14137
14138 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
14139
14140 PR c++/65801
14141 * doc/invoke.texi ([-Wnarrowing]): Update.
14142
14143 2015-04-20 Jeff Law <law@redhat.com>
14144
14145 PR tree-optimization/65658
14146 * tree-ssa-threadupdate.c (redirection_block_p): Remove
14147 redundant test for GIMPLE_ASSIGN in last change.
14148
14149 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
14150
14151 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14152 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14153 (legitimize_tls_address): Ditto.
14154 (ix86_expand_move): Ditto.
14155 (ix86_expand_binary_operator): Remove reload_in_progress checks.
14156 (ix86_expand_unary_operator): Ditto.
14157 * config/i386/predicates.md (index_register_operand): Ditto.
14158
14159 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
14160
14161 * reorg.c (try_merge_delay_insns): Improve correctness checking
14162 for targets with multiple delay slots.
14163
14164 2015-04-20 Jeff Law <law@redhat.com>
14165
14166 PR tree-optimization/65658
14167 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14168 statements too.
14169
14170 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14171
14172 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14173 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14174 Delete.
14175
14176 2015-04-20 Jakub Jelinek <jakub@redhat.com>
14177
14178 PR debug/65807
14179 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14180
14181 2015-04-20 Richard Biener <rguenther@suse.de>
14182
14183 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14184 * gimple-fold.c (gimple_build_valueize): New function.
14185 (gimple_build): Always use gimple_build_valueize as valueize hook.
14186
14187 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14188
14189 PR target/64134
14190 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14191 and overwrite variable parts if <= 1/2 the elements are variable.
14192
14193 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
14194
14195 PR rtl-optimization/65805
14196 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14197 Don't use difference of offset and previous offset if
14198 update_sp_offset is non-zero.
14199 (eliminate_regs_in_insn): Ditto.
14200 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14201 lra_eliminate_regs_1 call.
14202 * lra-constraints.c (get_equiv_with_elimination): Ditto.
14203
14204 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
14205
14206 * hash-table.h: Remove version of hash_table that stored value_type *.
14207 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14208 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14209 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14210 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14211 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14212 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14213 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14214 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14215 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14216 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14217 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14218 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14219 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14220 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14221 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14222 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14223
14224 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14225 Jakub Jelinek <jakub@redhat.com>
14226
14227 PR target/65787
14228 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14229 subsequent SH_NONE operand does not overwrite an existing *special
14230 value.
14231 (adjust_extract): Handle case where a vec_extract operation is
14232 wrapped in a PARALLEL.
14233
14234 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14235
14236 PR target/65780
14237 * config/i386/i386.c (ix86_binds_local_p): Define only if
14238 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14239
14240 2015-04-17 Jeff Law <law@redhat.com>
14241
14242 PR tree-optimization/47679
14243 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14244 * tree-ssa-scopedtables.c: New file.
14245 * tree-ssa-scopedtables.h: New file.
14246 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14247 (const_and_copies): Change name/type.
14248 (record_const_or_copy): Move into tree-ssa-scopedtables.c
14249 (record_const_or_copy_1): Similarly.
14250 (restore_vars_to_original_value): Similarly.
14251 (pass_dominator::execute): Create and destroy const_and_copies table.
14252 (thread_across_edge): Update passing of const_and_copies.
14253 (record_temporary_equivalence): Use method calls rather than
14254 manipulating const_and_copies directly.
14255 (record_equality, cprop_into_successor_phis): Similarly.
14256 (dom_opt_dom_walker::before_dom_children): Similarly.
14257 (dom_opt_dom_walker::after_dom_children): Similarly.
14258 (eliminate_redundant_computations): Similarly.
14259 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14260 (record_temporary_equivalence): Likewise.
14261 (invalidate_equivalences): Likewise.
14262 (record_temporary_equivalences_from_phis): Update due to type
14263 change of const_and_copies. Use method calls rather than
14264 manipulating the stack directly.
14265 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14266 (thread_through_normal_block, thread_across_edge): Likewise.
14267 (thread_across_edge): Likewise.
14268 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14269 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
14270 of equiv_stack.
14271 (identify_jump_threads): Update due to type change of equiv_stack.
14272 (finalize_jump_threads): Delete the equiv_stack when complete.
14273
14274 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
14275
14276 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14277 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14278 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14279
14280 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
14281
14282 PR target/65535
14283 * config.gcc: Exit with a comment when we do not have a major version
14284 number for the FreeBSD target.
14285
14286 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14287
14288 PR target/65689
14289 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14290 maybe_allows_mem bitfields.
14291 (maybe_allows_none_start, maybe_allows_none_end,
14292 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14293 maybe_allows_mem_end): New variables.
14294 (compute_maybe_allows): New function.
14295 (add_constraint): Use it to initialize maybe_allows_reg and
14296 maybe_allows_mem fields.
14297 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14298 is_address constraints such that those that allow neither mem nor
14299 reg come first, then those that only allow reg but not mem, then
14300 those that only allow mem but not reg, then the rest.
14301 (write_allows_reg_mem_function): New function.
14302 (write_tm_preds_h): Call it.
14303 * stmt.c (parse_output_constraint, parse_input_constraint): Use
14304 the generated insn_extra_constraint_allows_reg_mem function
14305 instead of always setting *allows_reg = true; *allows_mem = true;
14306 for unknown extra constraints.
14307
14308 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14309
14310 PR target/65780
14311 * output.h (default_binds_local_p_3): New.
14312 * varasm.c (default_binds_local_p_3): Make it public. Take an
14313 argument to indicate if common symbol may be local. If common
14314 symbol may be local, treat non-external variable as defined
14315 locally.
14316 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14317 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14318 * config/i386/i386.c (ix86_binds_local_p): New.
14319 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14320 ix86_binds_local_p.
14321
14322 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14323
14324 PR debug/65771
14325 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14326 trying mem_loc_descriptor on XEXP (rtl, 0).
14327
14328 2015-04-17 Martin Liska <mliska@suse.cz>
14329
14330 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14331 Release symbol_compare_collection.
14332 * ipa-reference.c: Add TODO that a vector should be released.
14333
14334 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14335
14336 PR target/65296
14337 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14338 to new AVR-LibC file layout (bug #44574).
14339 (*avrlibc_devicelib): Same.
14340 * config/avr/avr-mcus.def: Adjust comments.
14341 * config/avr/avr.opt (nodevicelib): Adjust help.
14342
14343 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
14344
14345 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14346
14347 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
14348
14349 PR c++/64527
14350 * gimplify.c (gimplify_init_constructor): Always emit a
14351 side-effecting constructor.
14352
14353 2015-04-17 Tom de Vries <tom@codesourcery.com>
14354
14355 PR tree-optimization/64950
14356 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14357 in cfun->curr_properties.
14358 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14359 if we generate an IFN_VA_ARG.
14360 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14361 function if PROP_gimple_lva is not set in src function.
14362
14363 2015-04-17 Tom de Vries <tom@codesourcery.com>
14364 Michael Matz <matz@suse.de>
14365
14366 PR tree-optimization/64950
14367 * gimple-iterator.c (update_modified_stmts): Remove static.
14368 * gimple-iterator.h (update_modified_stmts): Declare.
14369 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14370 (gimplify_va_arg_internal): New function.
14371 (gimplify_va_arg_expr): Use IFN_VA_ARG.
14372 * gimplify.h (gimplify_va_arg_internal): Declare.
14373 * internal-fn.c (expand_VA_ARG): New unreachable function.
14374 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14375 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14376 (expand_ifn_va_arg): New function.
14377 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14378 (pass_stdarg::execute): Call expand_ifn_va_arg.
14379 (pass_data_lower_vaarg): New pass_data.
14380 (pass_lower_vaarg): New gimple_opt_pass.
14381 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14382 (make_pass_lower_vaarg): New function.
14383 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14384 properties_required field.
14385 * passes.def (all_passes): Add pass_lower_vaarg.
14386 * tree-pass.h (PROP_gimple_lva): Add define.
14387 (make_pass_lower_vaarg): Declare.
14388
14389 2015-04-17 Tom de Vries <tom@codesourcery.com>
14390
14391 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14392 * calls.c (call_expr_flags): Same.
14393
14394 2015-04-17 Tom de Vries <tom@codesourcery.com>
14395
14396 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14397 (pass_stdarg::execute): ... here.
14398
14399 2015-04-17 Tom de Vries <tom@codesourcery.com>
14400 Michael Matz <matz@suse.de>
14401
14402 * tree-cfg.c (make_blocks_1): Factor out of ...
14403 (make_blocks): ... here.
14404 (make_edges_bb): Factor out of ...
14405 (make_edges): ... here.
14406 (gimple_find_sub_bbs): New function.
14407 * tree-cfg.h (gimple_find_sub_bbs): Declare.
14408
14409 2015-04-17 Tom de Vries <tom@codesourcery.com>
14410
14411 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14412
14413 2015-04-17 Yury Gribov <y.gribov@samsung.com>
14414
14415 * asan.c (set_sanitized_sections): New function.
14416 (section_sanitized_p): Ditto.
14417 (asan_protect_global): Optionally sanitize user-defined
14418 sections.
14419 * asan.h (set_sanitized_sections): Declare new function.
14420 * common.opt (fsanitize-sections): New option.
14421 * doc/invoke.texi (-fsanitize-sections): Document new option.
14422 * opts-global.c (handle_common_deferred_options): Handle new
14423 option.
14424
14425 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14426
14427 PR debug/65771
14428 * dwarf2out.c (loc_list_from_tree): Return NULL
14429 for DEBUG_EXPR_DECL.
14430
14431 2015-04-17 Christian Bruel <christian.bruel@st.com>
14432
14433 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14434 same attributes.
14435
14436 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14437
14438 * ira-color.c (setup_left_conflict_sizes_p): Do not process
14439 node itself when computing left conflict subnode size.
14440
14441 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14442
14443 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14444 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14445 *fop_<mode>_1_sse using enabled attribute. Use
14446 register_mixssei387nonimm_operand operand 1 predicate. Change
14447 alternative 3 constraints from "x" to "v".
14448
14449 2015-04-16 Richard Biener <rguenther@suse.de>
14450
14451 PR tree-optimization/65774
14452 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14453 bit-value tracking on.
14454
14455 2015-04-16 Richard Biener <rguenther@suse.de>
14456
14457 PR tree-optimization/64277
14458 * tree-vrp.c (check_array_ref): Fix anti-range handling,
14459 simplify upper bound handling.
14460 (search_for_addr_array): Simplify.
14461 (check_array_bounds): Handle ADDR_EXPRs here.
14462 (check_all_array_refs): Simplify.
14463
14464 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14465
14466 * config/i386/i386.c (print_reg): Rewrite function.
14467
14468 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14469
14470 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14471 Invert the condition.
14472
14473 2015-04-16 Renlin Li <renlin.li@arm.com>
14474
14475 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14476 simplifications for UNSIGNED_FLOAT.
14477
14478 2015-04-16 Nick Clifton <nickc@redhat.com>
14479
14480 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14481 MUL_UNINIT.
14482 (enum rl78_cpu_type): New.
14483 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14484 (umulhi3_shift_virt): Remove m constraint from operand 1.
14485 (umulqihi3_virt): Likewise.
14486 * config/rl78/rl78.c (rl78_option_override): Add code to process
14487 -mcpu and -mmul options.
14488 (rl78_alloc_physical_registers): Add code to handle divhi and
14489 divsi valloc attributes.
14490 (set_origin): Likewise.
14491 * config/rl78/rl78.h (RL78_MUL_G14): Define.
14492 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14493 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14494 __RL78_Gxx__.
14495 (ASM_SPEC): Pass -mcpu on to assembler.
14496 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14497 (mulqi3_rl78): Likewise.
14498 (mulhi3_g13): Likewise.
14499 (mulhi3): Generate the G13 or G14 versions of the insn directly.
14500 (mulsi3): Likewise.
14501 (mulhi3_g14): Add clobbers of AX and BC.
14502 (mulsi3_g14): Likewise.
14503 (mulsi3_g13): Likewise.
14504 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14505 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14506 * config/rl78/rl78.opt (mmul): Initialise value to
14507 RL78_MUL_UNINIT.
14508 (mcpu): New option.
14509 (m13, m14, mrl78): New option aliases.
14510 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14511 (MULTILIB_DIRNAMES): Add g13 and g14.
14512 * doc/invoke.texi: Document -mcpu and -mmul options.
14513
14514 2015-04-16 Richard Biener <rguenther@suse.de>
14515
14516 * tree-ssa-ccp.c (likely_value): See if we have operands that
14517 are marked as never simulate again and return CONSTANT in this
14518 case.
14519 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14520 not have any operands that will be simulated again as
14521 not being simulated again.
14522
14523 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
14524
14525 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14526 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14527 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14528 attribute.
14529 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14530 enabled attribute.
14531 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14532 *float<SWI48:mode><MODEF:mode>2_sse.
14533 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14534 enabled attribute.
14535 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14536 enabled attribute.
14537
14538 2015-04-15 Tom de Vries <tom@codesourcery.com>
14539
14540 PR other/65487
14541 * function.c (push_dummy_function): New function.
14542 (init_dummy_function_start): Use push_dummy_function.
14543 (pop_dummy_function): New function. Factored out of ...
14544 (expand_dummy_function_end): ... here.
14545 * function.h (push_dummy_function, pop_dummy_function): Declare.
14546 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14547 pop_dummy_function.
14548 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14549
14550 2015-04-15 Jeff Law <law@redhat.com>
14551
14552 PR tree-optimization/47679
14553 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14554 need for forward declaration in upcoming changes.
14555 (record_conditions, record_edge_info): Likewise.
14556
14557 PR rtl-optimization/42522
14558 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14559 SIGN_EXTRACT as a whole object rather than simplifying
14560 its operand.
14561
14562 2015-04-15 Jakub Jelinek <jakub@redhat.com>
14563
14564 PR ipa/65765
14565 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14566 and GIMPLE_PREDICT use break instead of return true. For
14567 GIMPLE_EH_DISPATCH, compare dispatch region.
14568
14569 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
14570
14571 * doc/extend.texi (__sync Builtins): Simplify some text. Update
14572 details about the implementation. Make clear preference for
14573 __atomic builtins. Reduce possibility of future change.
14574
14575 2015-04-15 Nick Clifton <nickc@redhat.com>
14576
14577 * config/rx/rx.opt (mallow-string-insns): New option.
14578 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14579 builtin if string instructions are denied.
14580 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14581 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14582 appropriate.
14583 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14584 * config/rx/rx.md (movstr): Enable pattern only if string
14585 instructions are allowed.
14586 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14587 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14588 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14589 (MULTILIB_DIRNAMES): Add no-strings.
14590 * doc/invoke.texi: Document -mno-allow-string-insns.
14591
14592 2015-04-15 Alan Modra <amodra@gmail.com>
14593
14594 PR target/65408
14595 PR target/58744
14596 PR middle-end/36043
14597 * calls.c (load_register_parameters): Don't load past end of
14598 mem unless suitably aligned.
14599
14600 2015-04-15 Nick Clifton <nickc@redhat.com>
14601
14602 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14603 decrement instruction as being frame related.
14604 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14605 based addresses.
14606 If zero extending a function address enclose the operation in
14607 %code(...).
14608 (rl78_preferred_reload_class): New function.
14609 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14610 * config/rl78/rl78.md: Remove useless constraints in expanders.
14611 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14612 (mulhi3_rl78): Likewise.
14613 (mulhi3_g13): Likewise.
14614 (mulsi3_rl78): Likewise.
14615 (es_addr): Move to before the multiply patterns.
14616
14617 2015-04-15 Alan Modra <amodra@gmail.com>
14618
14619 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14620 and sequence_stack. Add seq.
14621 (seq_stack): Delete.
14622 * function.c (prepare_function_start): Don't access x_last_insn.
14623 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14624 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14625 * emit_rtl.c (start_sequence, push_topmost_sequence,
14626 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14627 sequence accessors.
14628 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14629 remove_insn): Likewise. Simplify.
14630 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14631 and pop_topmost_sequence.
14632 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
14633 debug insns.
14634 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14635
14636 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
14637
14638 PR target/65729
14639 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14640 the assertiion.
14641
14642 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14643
14644 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14645 (LEGACY_INT_REGNO_P): Ditto.
14646 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14647 (ANY_MASK_REG_P): Remove.
14648 (BND_REG_P): Rename from ANY_BND_REG_P.
14649 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14650 legacy integer registers. Do not handle MMX_REG_P in a special way.
14651 Merge 64byte and 32byte SSE handling.
14652
14653 2015-04-14 Nick Clifton <nickc@redhat.com>
14654
14655 * expr.c (expand_assignment): Force an address offset computation
14656 into a register before changing its mode.
14657 (expand_expr_real_1): Likewise.
14658
14659 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
14660
14661 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14662 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14663 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14664 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14665 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14666 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14667 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14668 and __aarch64_vget_lane_any.
14669
14670 2015-04-14 Jakub Jelinek <jakub@redhat.com>
14671
14672 PR rtl-optimization/65761
14673 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14674 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14675
14676 2015-04-14 Richard Biener <rguenther@suse.de>
14677
14678 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14679 (graphite_can_represent_scev): Use POINTER_TYPE_P.
14680
14681 2015-04-14 Richard Biener <rguenther@suse.de>
14682
14683 PR tree-optimization/65758
14684 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14685 against -1.
14686 (ccp_lattice_meet): Likewise.
14687 (bit_value_unop): Likewise.
14688 (bit_value_binop): Likewise.
14689 (bit_value_assume_aligned): Likewise.
14690
14691 2015-04-14 Christian Bruel <christian.bruel@st.com>
14692
14693 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14694 function.
14695
14696 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
14697
14698 PR tree-optimization/63387
14699 * match.pd ((x unord x) | (y unord y) -> (x unord y),
14700 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14701
14702 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14703
14704 * config/i386/predicates.md (any_QIreg_operand): Rename from
14705 q_regs_operand. Do not process subregs.
14706 (QIreg_operand): Use QI_REGNO_P predicate.
14707 (ext_QIreg_operand): Ditto.
14708 (ext_register_operand): Ditto.
14709 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14710 (AND splitters): Ditto.
14711 (AND with -65536 splitter): Add SWI48 mode for operand 0.
14712 (AND with -256 splitter): Use any_QIreg_operand predicate and
14713 SWI248 mode for operand 0.
14714 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14715 mode for operand 0.
14716 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14717
14718 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
14719
14720 * doc/plugins.texi: Rewrite first introductory paragraph.
14721
14722 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14723
14724 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14725 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14726
14727 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14728
14729 * ipa-profie.c (ipa_profile): Check number of parameters
14730 and possible polymorphic call targets before
14731 devirtualizing.
14732
14733 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
14734
14735 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14736 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14737
14738 2015-04-13 Richard Biener <rguenther@suse.de>
14739
14740 PR tree-optimization/65204
14741 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14742 takens for bit-CCP.
14743
14744 2015-04-13 Richard Biener <rguenther@suse.de>
14745
14746 PR target/65660
14747 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14748 and cond_not_taken_branch_cost to 4 and 2.
14749 (bdver2_cost): Likewise.
14750 (bdver3_cost): Likewise.
14751 (bdver4_cost): Likewise.
14752
14753 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14754
14755 * hash-table.h (hash_table constructor): Add mem stats.
14756 (alloc_entries): Likewise.
14757
14758 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14759
14760 * ipa-cp.c (ipcp_driver): Relase prev_edge.
14761 * passes.c (execute_one_pass): Only add transform if pass has one.
14762
14763 2015-04-12 Joseph Myers <joseph@codesourcery.com>
14764
14765 * config/i386/i386.c (ix86_option_override_internal): Don't set
14766 -fprefetch-loop-arrays if optimizing for size.
14767
14768 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14769 Gerald Pfeifer <gerald@pfeifer.com>
14770
14771 * doc/contrib.texi (Contributors): Add Martin Jambor and
14772 Michael Matz.
14773
14774 2015-04-12 Jakub Jelinek <jakub@redhat.com>
14775
14776 * BASE-VER: Set to 6.0.0.
14777
14778 PR tree-optimization/65747
14779 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14780 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14781
14782 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14783
14784 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14785 sentence. Improve grammar.
14786
14787 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14788
14789 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14790
14791 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14792
14793 PR ipa/65743
14794 * ipa-inline-transform.c (speculation_removed): Remove static var.
14795 (check_speculations): New function.
14796 (clone_inlined_nodes): Do not check spculations.
14797 (inline_call): Call check_speculations.
14798 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14799 consider non-invariants.
14800
14801 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14802 Martin Liska <mliska@suse.cz>
14803
14804 PR ipa/65722
14805 * ipa-icf.c (sem_item::compare_cgraph_references): function and
14806 variable can not match.
14807 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14808 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14809
14810 2015-04-11 Jakub Jelinek <jakub@redhat.com>
14811
14812 PR tree-optimization/65735
14813 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14814 Remove visited_phis argument, add visited_bbs, avoid recursing into the
14815 same bb rather than just into the same phi node.
14816 (thread_through_normal_block): Adjust caller.
14817
14818 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14819
14820 * doc/contrib.texi (Contributors): Add Ira Rosen.
14821
14822 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
14823
14824 * gcov.c (find_source): Fix miswording in error message.
14825 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14826 (ix86_expand_sse_comi_round): Fix typo in error message.
14827
14828 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14829
14830 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14831
14832 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
14833
14834 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14835
14836 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14837
14838 PR target/65710
14839 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14840 Print bad_spills_num and insn_pseudos_num.
14841
14842 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14843
14844 PR target/65694
14845 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14846 when creating +1 values for SImode.
14847
14848 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14849
14850 PR target/65729
14851 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14852 assert.
14853
14854 2015-04-10 Jakub Jelinek <jakub@redhat.com>
14855 Iain Sandoe <iain@codesourcery.com>
14856
14857 PR target/65351
14858 * configure: Regenerate.
14859
14860 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14861
14862 PR target/65671
14863 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14864
14865 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
14866
14867 * doc/contrib.texi (Contributors): Add John Marino.
14868
14869 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14870
14871 PR tree-optimization/65709
14872 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14873 TREE_TYPE (TREE_TYPE (t)).
14874
14875 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
14876
14877 PR target/65710
14878 * lra-int.h (lra_bad_spill_regno_start): New.
14879 * lra.c (lra_bad_spill_regno_start): New.
14880 (lra): Set up lra_bad_spill_regno_start. Set up
14881 lra_constraint_new_regno_start unconditionally.
14882 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14883 spill preferences.
14884
14885 2015-04-09 Marek Polacek <polacek@redhat.com>
14886 Jakub Jelinek <jakub@redhat.com>
14887
14888 PR middle-end/65554
14889 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14890 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14891 of STRIP_NOPS.
14892
14893 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
14894
14895 PR rtl-optimization/65693
14896 * combine.c (is_parallel_of_n_reg_sets): Move outside of
14897 #ifndef HAVE_cc0.
14898
14899 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
14900
14901 PR target/65296
14902 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14903 device specs file if "device-specs%s" didn't resolve to a path.
14904
14905 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14906
14907 PR target/65676
14908 * config/i386/i386.c (fixup_modeless_constant): New.
14909 (ix86_expand_args_builtin): Fixup modeless constant operand.
14910 (ix86_expand_round_builtin): Ditto.
14911 (ix86_expand_special_args_builtin): Ditto.
14912 (ix86_expand_builtin): Ditto.
14913
14914 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14915
14916 PR target/65693
14917 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14918 any pow2 integer in between 2 and 0x80000000U inclusive.
14919
14920 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
14921
14922 PR rtl-optimization/65693
14923 * combine.c (is_parallel_of_n_reg_sets): Change first argument
14924 from an rtx_insn * to an rtx.
14925 (try_combine): Adjust both callers. Use it once more.
14926
14927 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14928
14929 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14930 (chkp_make_static_const_bounds): Search existing
14931 symbol by assembler name. Use make_decl_one_only.
14932 (chkp_get_zero_bounds_var): Remove node search which
14933 is now performed in chkp_make_static_const_bounds.
14934 (chkp_get_none_bounds_var): Likewise.
14935
14936 2015-04-08 Michael Witten <mfwitten@gmail.com>
14937
14938 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14939 to an example.
14940
14941 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14942
14943 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14944
14945 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14946
14947 * doc/extend.texi (__sync Builtins): Fix grammar.
14948
14949 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14950
14951 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14952
14953 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14954
14955 * varasm.c (emit_local): Move definition of align.
14956
14957 2015-04-08 Julian Brown <julian@codesourcery.com>
14958
14959 * config/nvptx/mkoffload.c (process): Support variable mapping.
14960
14961 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
14962
14963 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14964 alpha_links **.
14965 (alpha_write_one_linkage): Correct typo.
14966
14967 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14968
14969 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14970
14971 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14972
14973 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14974
14975 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14976
14977 * tree-chkp.h (chkp_insert_retbnd_call): New.
14978 * tree-chkp.c (chkp_insert_retbnd_call): New.
14979 * ipa-split.c (insert_bndret_call_after): Remove.
14980 (split_function): Use chkp_insert_retbnd_call.
14981 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14982 bounds for instrumented functions.
14983
14984 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
14985
14986 PR ipa/65540
14987 * calls.c (initialize_argument_information): When producing tail
14988 call also turn SSA_NAMES passed by references to original PARM_DECLs
14989
14990 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
14991
14992 PR target/65648
14993 * lra-remat.c (do_remat): Process input and non-input insn
14994 registers separately.
14995
14996 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14997
14998 PR debug/65678
14999 * valtrack.c (debug_lowpart_subreg): New function.
15000 (dead_debug_insert_temp): Use it.
15001
15002 PR middle-end/65680
15003 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
15004 into signed HOST_WIDE_INT the same as negative bit_offset.
15005
15006 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
15007
15008 * ipa-comdats.c (ipa_comdats): Visit all thunks
15009 to set proper comdat group.
15010
15011 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15012
15013 PR target/65489
15014 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
15015 on constants for NEON VSTRUCT modes.
15016
15017 2015-04-07 Jakub Jelinek <jakub@redhat.com>
15018 Iain Sandoe <iain@codesourcery.com>
15019
15020 PR target/65351
15021 * configure: Regenerate.
15022
15023 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
15024
15025 PR target/65614
15026 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
15027 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
15028 that LFD is used to load double constants instead of LFS. Add
15029 defaults for all costs structures. Add comments for missing
15030 initialization fields.
15031 (size32_cost): Likewise.
15032 (size64_cost): Likewise.
15033 (rs64a_cost): Likewise.
15034 (mpccore_cost): Likewise.
15035 (ppc403_cost): Likewise.
15036 (ppc405_cost): Likewise.
15037 (ppc440_cost): Likewise.
15038 (ppc476_cost): Likewise.
15039 (ppc601_cost): Likewise.
15040 (ppc603_cost): Likewise.
15041 (ppc604_cost): Likewise.
15042 (ppc604e_cost): Likewise.
15043 (ppc620_cost): Likewise.
15044 (ppc630_cost): Likewise.
15045 (ppccell_cost): Likewise.
15046 (ppc750_cost): Likewise.
15047 (ppc7450_cost): Likewise.
15048 (ppc8540_cost): Likewise.
15049 (ppce300c2c3_cost): Likewise.
15050 (ppce500mc_cost): Likewise.
15051 (ppce500mc64_cost): Likewise.
15052 (ppce5500_cost): Likewise.
15053 (ppce6500_cost): Likewise.
15054 (titan_cost): Likewise.
15055 (power4_cost): Likewise.
15056 (power6_cost): Likewise.
15057 (power7_cost): Likewise.
15058 (power8_cost): Likewise.
15059 (ppca2_cost): Likewise.
15060 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
15061
15062 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
15063 instead of XXLOR to copy SFmode to clear out dirty bits created
15064 when SFmode denormals are generated.
15065 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
15066 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
15067
15068 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
15069
15070 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
15071 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
15072 * config/aarch64/aarch64-tune.md: Regenerate.
15073
15074 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
15075
15076 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
15077 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
15078 * config/arm/arm-cores.def (exynos-m1): New core.
15079 * config/arm/arm-tune.md: Regenerate.
15080 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
15081 * config/arm/bpabi.h: Likewise.
15082
15083 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15084
15085 * ipa-cp (set_single_call_flag): Remove too
15086 restrictive assert.
15087
15088 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15089
15090 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
15091 GOMP_offload_unregister from the destructor.
15092
15093 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15094
15095 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
15096 flags for instrumentation thunk.
15097 (chkp_produce_thunks): Likewise.
15098
15099 2015-04-05 Martin Liska <mliska@suse.cz>
15100
15101 PR ipa/65665
15102 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
15103 has computed data structure.
15104 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15105
15106 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
15107
15108 * invoke.texi (inline-unit-growth): Increase growth to 20%
15109 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
15110
15111 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
15112
15113 PR target/65647
15114 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
15115 value checking.
15116 (lra_rematerialization_iter): New.
15117 * lra.c (lra): Initialize lra_rematerialization_iter.
15118 Stop updating lra_constraint_new_regno_start after switching of
15119 inheritance and rematerialization.
15120 * lra-remat.c (lra_rematerialization_iter): New.
15121 (lra_remat): Add printing pass iteration. Do rematerialization
15122 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15123
15124 2015-04-04 Richard Biener <rguenther@suse.de>
15125
15126 PR tree-optimization/64909
15127 PR tree-optimization/65660
15128 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15129 to take a cost vector for scalar iteration cost.
15130 (vect_get_single_scalar_iteration_cost): Likewise.
15131 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15132 Compute the scalar iteration cost into a cost vector.
15133 (vect_get_known_peeling_cost): Use the scalar cost vector to
15134 account for the cost of the peeled iterations.
15135 (vect_estimate_min_profitable_iters): Likewise.
15136 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15137 Likewise.
15138
15139 2015-04-04 Alan Modra <amodra@gmail.com>
15140
15141 PR target/65576
15142 PR target/65240
15143 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15144 0.0 constant unless TARGET_VSX.
15145 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15146 alternative.
15147
15148 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15149
15150 PR ipa/65654
15151 * ipa-inline-transform.c (inline_call): Skip sanity check to work
15152 around the ICE
15153
15154 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15155
15156 PR ipa/65655
15157 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15158 speculative indirect edges to avoid ordering issue.
15159
15160 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15161
15162 PR ipa/65076
15163 * ipa-inline.c (edge_badness): Add combined size to the denominator.
15164
15165 2015-04-03 Jakub Jelinek <jakub@redhat.com>
15166
15167 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15168 TYPE_ARTIFICIAL on the .omp_data* types.
15169
15170 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15171
15172 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15173 instrumentation thunks.
15174
15175 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15176
15177 * config/i386/i386.c (ix86_expand_call): Avoid nested
15178 PARALLEL in returned call value.
15179
15180 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15181
15182 * lto-cgraph.c (input_cgraph_1): Always link instrumented
15183 assembler name with original one.
15184
15185 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15186
15187 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15188
15189 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15190
15191 Revert parts of r216820.
15192 * config/i386/i386.md (movqi_internal): Correct type calculation
15193 for alternatives 3 and 5.
15194
15195 2015-04-02 Jakub Jelinek <jakub@redhat.com>
15196
15197 PR preprocessor/61977
15198 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15199 predefine __vector/__bool/__pixel macros nor context sensitive
15200 macros for CLK_ASM.
15201 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15202
15203 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
15204
15205 * config/pa/pa.c (pa_output_move_double): Directly handle register
15206 indexed memory operand. Simplify handling of scaled register indexed
15207 memory operands.
15208
15209 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15210
15211 PR driver/65444
15212 * config/i386/linux-common.h (MPX_SPEC): New.
15213 (CHKP_SPEC): Add MPX_SPEC.
15214 * doc/invoke.texi (-fcheck-pointer-boudns): Document
15215 possible issues with '-z bndplt' support in linker.
15216
15217 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15218
15219 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15220 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15221 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15222 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15223 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15224
15225 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
15226
15227 * config/i386/sync.md (UNSPEC_MOVA): Remove.
15228 (atomic_load<mode>): Change operand 0 predicate to
15229 nonimmediate_operand and fix up the destination when needed.
15230 Use UNSPEC_LDA.
15231 (atomic_loaddi_fpu): Use UNSPEC_LDA.
15232 (atomic_store<mode>): Change operand 1 predicate to
15233 nonimmendate_operand and move the source to register when needed.
15234 Use UNSPEC_STA.
15235 (atomic_store<mode>_1): Use UNSPEC_STA.
15236 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15237 Fix moves from memory operand. Use UNSPEC_STA.
15238
15239 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15240
15241 * expmed.c (strict_volatile_bitfield_p): Check that the access will
15242 not cross a MODESIZE boundary.
15243 (store_bit_field, extract_bit_field): Added assertions in the
15244 strict volatile bitfields code path.
15245
15246 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
15247
15248 PR target/65624
15249 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15250 Increase args array size by one to avoid buffer overflow.
15251
15252 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15253
15254 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15255 split_part.
15256 * ipa-inline.c (edge_badness): Add wrapper penalty.
15257 (sum_callers): Move up.
15258 (inline_small_functions): Set single_caller.
15259 * ipa-inline.h (inline_summary): Add single_caller.
15260 * ipa-split.c (split_function): Set split_part.
15261 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15262 * cgraph.h (cgraph_node): Add split_part.
15263
15264 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
15265
15266 PR target/58945
15267 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15268 Do not split operands 0 and operands 2 to halfmode.
15269 (atomic_compare_and_swap<mode>): Update for
15270 atomic_compare_and_swap<dwi>_doubleword changes.
15271
15272 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15273
15274 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15275 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15276 no caching is done.
15277
15278 2015-03-31 Martin Liska <mliska@suse.cz>
15279
15280 PR ipa/65557
15281 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15282 has already filled up function summary.
15283 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15284
15285 2015-03-31 Richard Biener <rguenther@suse.de>
15286
15287 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15288 of types.
15289
15290 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
15291
15292 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15293 nested functions.
15294 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15295 (s390_asm_output_function_label): Adapt to new signature of
15296 s390_function_num_hotpatch_hw
15297 Optimise the code generating assembler output.
15298 Add comments to assembler file.
15299
15300 2015-03-31 Richard Biener <rguenther@suse.de>
15301
15302 PR middle-end/65626
15303 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15304 of the noreturn call so it is last and cleanup_control_flow_bb
15305 can do the CFG part.
15306
15307 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
15308
15309 PR target/65531
15310 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15311 same_comdat_group for external symbols.
15312 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15313 infinite same_comdat_group traversal loop.
15314
15315 2015-03-31 Jakub Jelinek <jakub@redhat.com>
15316
15317 PR plugins/61176
15318 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15319 automatically to $headers.
15320
15321 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15322
15323 PR ipa/65610
15324 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15325 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15326 function.
15327 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15328 Use it.
15329 * ipa-prop.c (param_type_may_change_p): Likewise.
15330 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15331 (remove_unused_scope_block_p): Add in_ctor_dtor_block
15332 argument. Before inlining, preserve
15333 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15334 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
15335 recursive calls.
15336 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15337
15338 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15339
15340 PR ipa/65076
15341 * ipa-inline.c (edge_badness): Base denominator on callee's
15342 grwoth squared.
15343
15344 2015-03-27 Martin Jambor <mjambor@suse.cz>
15345
15346 PR ipa/65478
15347 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15348 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15349 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15350 node_calling_single_call.
15351 * ipa-cp.c (count_callers): New function.
15352 (set_single_call_flag): Likewise.
15353 (initialize_node_lattices): Count callers and set single_flag_call if
15354 necessary.
15355 (incorporate_penalties): New function.
15356 (good_cloning_opportunity_p): Use it, dump new flags.
15357 (propagate_constants_topo): Set node_within_scc flag if appropriate.
15358 * doc/invoke.texi (ipa-cp-recursion-penalty,
15359 ipa-cp-single-call-pentalty): Document.
15360
15361 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15362
15363 PR ipa/65588
15364 * symtab.c (symtab_node::get_partitioning_class): Register vars
15365 are duplicated.
15366 * varpool.c (symbol_table::output_variables) Do not assemble unefined
15367 decls for non-symbols.
15368
15369 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
15370
15371 PR target/65248
15372 * output.h (default_binds_local_p_2): New.
15373 * varasm.c (default_binds_local_p_2): Renamed to ...
15374 (default_binds_local_p_3): This. Don't return true on protected
15375 data symbol if protected data may be external.
15376 (default_binds_local_p): Use default_binds_local_p_3.
15377 (default_binds_local_p_1): Likewise.
15378 (default_binds_local_p_2): New.
15379 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15380 default_binds_local_p_2 if TARGET_MACHO is undefined.
15381
15382 2015-03-27 Jakub Jelinek <jakub@redhat.com>
15383
15384 PR target/65593
15385 * config/i386/i386.c (legitimize_pic_address): If base
15386 is SYMBOL_REF or LABEL_REF using %rip addressing, force
15387 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15388
15389 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15390
15391 PR target/65531
15392 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15393 comdat groups.
15394
15395 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15396
15397 PR ipa/65600
15398 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15399 of optimized out indirect call.
15400 (redirect_to_unreachable): Always build symbol table node for
15401 BUILT_IN_UNREACHABLE
15402
15403 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
15404
15405 PR target/65407
15406 * ira-costs.c (record_reg_classes): Process all constraint string
15407 containing 0-9.
15408
15409 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
15410
15411 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15412 memory_operand.
15413
15414 PR target/65052
15415 * config/c6x/constraints.md (S3): New constraint.
15416 * config/c6x/c6x.md (real_jump): Use it.
15417
15418 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15419
15420 PR middle-end/65595
15421 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15422 do redirection if the call is not optimized out.
15423
15424 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
15425
15426 PR target/65495
15427 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15428 (fchkp-check-incomplete-type): Add LTO.
15429 (fchkp-zero-input-bounds-for-main): Likewise.
15430 (fchkp-first-field-has-own-bounds): Likewise.
15431 (fchkp-narrow-bounds): Likewise.
15432 (fchkp-narrow-to-innermost-array): Likewise.
15433 (fchkp-use-static-bounds): Likewise.
15434 (fchkp-use-static-const-bounds): Likewise.
15435 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15436
15437 2015-03-27 Marek Polacek <polacek@redhat.com>
15438
15439 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15440
15441 2015-03-27 Marek Polacek <polacek@redhat.com>
15442
15443 PR sanitizer/65583
15444 * ubsan.c (ubsan_create_edge): New function.
15445 (instrument_bool_enum_load): Call it.
15446 (instrument_nonnull_arg): Likewise.
15447 (instrument_nonnull_return): Likewise.
15448 (instrument_object_size): Likewise.
15449
15450 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15451
15452 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15453 auto_vec.
15454
15455 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15456
15457 PR lto/65536
15458 * lto-streamer.h (class lto_location_cache): New.
15459 (struct data_in): Add location_cache.
15460 (lto_input_location): Update prototype.
15461 (stream_input_location_now): New.
15462 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15463 pointer to location.
15464 (stream_input_location): Update.
15465 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15466 (warn_odr): Apply location cache before warning.
15467 (lto_input_location): Update prototype.
15468 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15469 Use stream_input_location_now.
15470 * lto-streamer-in.c (lto_location_cache::current_cache): New static
15471 variable.
15472 (lto_location_cache::cmp_loc): New function.
15473 (lto_location_cache::apply_location_cache): New function.
15474 (lto_location_cache::accept_location_cache): New function.
15475 (lto_location_cache::revert_location_cache): New function.
15476 (lto_location_cache::input_location): New function.
15477 (lto_input_location): Do location caching.
15478 (stream_input_location_now): New function.
15479 (input_eh_region, input_struct_function_base): Use
15480 stream_input_location_now.
15481 (lto_data_in_create): use new.
15482 (lto_data_in_delete): Use delete.
15483 * tree-streamer-in.c (unpack_ts_block_value_fields,
15484 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15485 lto_input_ts_exp_tree_pointers): Update for cached location api.
15486
15487 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15488
15489 PR ipa/65076
15490 * passes.def: Add pass_nothrow.
15491 * ipa-pure-const.c: (pass_data_nothrow): New.
15492 (pass_nothrow): New.
15493 (pass_nothrow::execute): New.
15494 (make_pass_nothrow): New.
15495 * tree-pass.h (make_pass_nothrow): Declare.
15496
15497 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15498
15499 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15500 edge to change by speculation resolution or redirection.
15501 (edge_set_predicate): Likewise.
15502 (inline_summary_t::duplicate): Likewise.
15503 (remap_edge_summaries): Likewise.
15504
15505 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15506
15507 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15508 New macros.
15509 (can_inline_edge_p): Relax option matching for always inline functions.
15510
15511 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
15512
15513 PR target/65561
15514 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15515 Check operand 4 and operand 0 for equality.
15516 (avx512f_vextract<shuffletype>32x4_1_maskm):
15517 Check operand 6 and operand 0 for equality.
15518 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15519 for equality.
15520 (vec_extract_hi_<mode>_maskm): Ditto.
15521
15522 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15523
15524 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15525 dead calls back to live.
15526 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15527 cross check to ...
15528 (cgraph_node::verify_node): ... here; verify only callee edges,
15529 not caller.
15530 * cif-code.def (CILK_SPAWN): New code.
15531
15532 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15533
15534 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15535 (edge_set_predicate): Use it to mark unreachable edges.
15536 (inline_summary_t::duplicate): Remove unnecesary code.
15537 (remap_edge_summaries): Likewise.
15538 (dump_inline_summary): Report contains_cilk_spawn.
15539 (compute_inline_parameters): Compute contains_cilk_spawn.
15540 (inline_read_section, inline_write_summary): Stream
15541 contains_cilk_spawn.
15542 * ipa-inline.c (can_inline_edge_p): Do not touch
15543 DECL_STRUCT_FUNCTION that may not be available;
15544 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15545 remove check for callee_fun->can_throw_non_call_exceptions and
15546 replace it by optimization attribute check; check for flag_exceptions.
15547 * ipa-inline-transform.c (inline_call): Maintain
15548 DECL_FUNCTION_PERSONALITY
15549 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15550
15551 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15552
15553 PR tree-optimization/65551
15554 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15555 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15556
15557 2015-03-26 Richard Biener <rguenther@suse.de>
15558
15559 PR middle-end/65555
15560 * tree-cfg.c (verify_gimple_call): Do not require a call to
15561 have no LHS if it wasn't recognized as control altering yet.
15562
15563 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15564
15565 PR tree-optimization/64715
15566 * passes.def: Add another instance of pass_object_sizes before ccp1.
15567 * tree-object-size.c (pass_object_sizes::execute): In
15568 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15569 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15570 __bos result and the computed constant. Remove redundant
15571 checks, obsoleted by gimple_call_builtin_p test.
15572
15573 * var-tracking.c (variable_tracking_main_1): Don't track
15574 variables for targetm.no_register_allocation targets.
15575
15576 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
15577
15578 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15579 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15580
15581 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15582
15583 PR target/65569
15584 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15585 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
15586 0.0 is correctly setup.
15587 (extenddftf2_internal): Likewise.
15588
15589 2015-03-25 Sebastian Pop <s.pop@samsung.com>
15590
15591 PR tree-optimization/65177
15592 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15593 (bb_in_bbs): New.
15594 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
15595 edges not adjacent on the path to the original code.
15596
15597 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
15598
15599 PR bootstrap/65537
15600 * doc/install.texi (Building a native compiler): Document new
15601 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
15602 configuration assumes that the host supports the linker plugin.
15603
15604 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
15605
15606 PR target/65508
15607 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15608 chain for generated call.
15609
15610 2015-03-25 Richard Biener <rguenther@suse.de>
15611
15612 * passes.c (pass_manager::execute_early_local_passes): Guard
15613 execution of pass_chkp_instrumentation_passes with
15614 flag_check_pointer_bounds.
15615 (pass_chkp_instrumentation_passes::gate): Likewise.
15616
15617 2015-03-25 Martin Liska <mliska@suse.cz>
15618
15619 PR tree-optimization/65538
15620 * symbol-summary.h (function_summary::~function_summary):
15621 Relese memory for allocated summaries.
15622 (function_summary::release): New function.
15623
15624 2015-03-25 Jakub Jelinek <jakub@redhat.com>
15625
15626 PR lto/65515
15627 * lto-streamer-out.c (DFS::worklist): New struct.
15628 (DFS::worklist_vec): New data member.
15629 (DFS::next_dfs_num): Remove.
15630 (DFS::DFS): Rewritten using worklist instead of recursion,
15631 using most of code from DFS::DFS_write_tree.
15632 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15633 pass it to DFS_write_tree calls.
15634 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15635 quick initial checks push it into worklist_vec and return.
15636
15637 2015-03-25 Richard Biener <rguenther@suse.de>
15638
15639 PR middle-end/65519
15640 * genmatch.c (expr::gen_transform): Re-write to avoid
15641 using gimple_build.
15642
15643 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15644
15645 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15646
15647 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15648
15649 * config/arm/arm.opt (print_tune_info): New option.
15650 * config/arm/arm.c (arm_print_tune_info): New function.
15651 (arm_file_start): Call arm_print_tune_info.
15652 * config/arm/arm-protos.h (struct tune_params): Add comment.
15653 * doc/invoke.texi (@item -mprint-tune-info): New item.
15654 (-mtune): mention it in ARM Option Summary.
15655
15656 2015-03-25 DJ Delorie <dj@redhat.com>
15657
15658 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15659 correct clause.
15660
15661 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
15662 Martin Liska <mliska@suse.cz>
15663
15664 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15665 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15666 (sem_item::add_type): New function.
15667 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15668 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15669 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15670 (sem_function::equals_wpa): Fix typo.
15671 * ipa-icf.h (sem_item::add_type): New function.
15672 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15673 order.
15674
15675 2015-03-24 Jakub Jelinek <jakub@redhat.com>
15676
15677 PR tree-optimization/65533
15678 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15679 with swapped operands, call vect_free_slp_tree on
15680 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15681 vector.
15682
15683 2015-03-24 Richard Biener <rguenther@suse.de>
15684
15685 PR middle-end/65517
15686 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15687 for fixup if necessary.
15688
15689 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
15690
15691 * doc/extend.texi (Function Attributes): Add @cindex entries
15692 for all attributes and regularize their format. Delete text
15693 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
15694 information about "eightbit_data", "tiny_data", and "model"
15695 variable attributes to the Variable Attributes section. Fix
15696 some obvious typos and copy-editing issues.
15697 (Variable Attributes, Type Attributes): Likewise add/fix
15698 @cindex entries for all attributes.
15699
15700 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15701
15702 PR target/65523
15703 * tree-chkp.c (chkp_build_returned_bound): Ignore
15704 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15705
15706 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
15707
15708 PR target/65505
15709 * config/sh/predicates.md (simple_mem_operand,
15710 displacement_mem_operand): Add test for reg.
15711 (short_displacement_mem_operand): Test for displacement_mem_operand
15712 before invoking sh_disp_addr_displacement.
15713 * config/sh/constraints.md (Sdd, Sra): Simplify.
15714 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15715 Remove redundant displacement_mem_operand tests.
15716
15717 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
15718
15719 PR target/65296
15720 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15721 the same -mmcu=MCU more than once.
15722
15723 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15724
15725 PR bootstrap/65522
15726 * ipa-devirt.c: Remove duplicate demangle.h include.
15727
15728 PR target/65504
15729 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15730 on the pseudo.
15731 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15732 REG_POINTER on *destptr after adjusting it for prologue size.
15733
15734 PR ipa/65521
15735 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15736 ultimate_alias_target ()->order ints instead of
15737 ultimate_alias_target () pointers.
15738
15739 2015-03-23 Richard Biener <rguenther@suse.de>
15740
15741 PR tree-optimization/65518
15742 * tree-vect-stmts.c (vectorizable_load): Reject single-element
15743 interleaving cases we generate absymal code for.
15744
15745 2015-03-23 Richard Biener <rguenther@suse.de>
15746
15747 PR tree-optimization/65494
15748 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15749 matches here.
15750 (vect_analyze_slp_instance): But do that here, always and once.
15751
15752 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15753
15754 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15755 adding T or multiplying by T+1 and subracting T.
15756
15757 2015-03-22 Jeff Law <law@redhat.com>
15758
15759 PR rtl-optimization/64317
15760 * Makefile.in (OBJS): Add gcse-common.c
15761 * gcse.c: Include gcse-common.h
15762 (struct modify_pair_s): Move structure definition to gcse-common.h
15763 (compute_transp): Move function to gcse-common.c.
15764 (canon_list_insert): Similarly.
15765 (record_last_mem_set_info): Break out some code and put it into
15766 gcse-common.c. Call into the new common code.
15767 (compute_local_properties): Pass additional arguments to compute_transp.
15768 * postreload-gcse.c: Include gcse-common.h and df.h
15769 (modify_mem_list_set, blocks_with_calls): New variables.
15770 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15771 (get_bb_avail_insn): Pass in the expression index too.
15772 (alloc_mem): Allocate memory for the new bitmaps and lists.
15773 (free_mem): Free memory for the new bitmaps and lists.
15774 (insert_expr_in_table): Record a bitmap index for each entry we
15775 add to the table.
15776 (record_last_mem_set_info): Call into common code in gcse-common.c.
15777 (get_bb_avail_insn): If no available insn was found in the requested
15778 BB. If BB has a single predecessor, see if the expression is
15779 transparent in BB and available in that single predecessor.
15780 (compute_expr_transp): New wrapper for compute_transp.
15781 (eliminate_partially_redundant_load): Pass expression's bitmap_index
15782 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
15783 (gcse_after_reload_main): If there are elements in the hash table,
15784 then compute transparency for all the elements in the hash table.
15785 * gcse-common.h: New file.
15786 * gcse-common.c: New file.
15787
15788 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
15789
15790 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15791 as an adjective.
15792 (System Headers): Likewise.
15793 (Ifdef): Likewise.
15794 (Traditional macros): Likewise.
15795 (Invocation): Likewise.
15796 (Option Index): Likewise.
15797 * doc/cppopts.texi (-M): Likewise.
15798 (-finput-charset): Likewise.
15799 (--help): Likewise.
15800 * doc.invoke.texi (AVR Options): Likewise.
15801 (V850 Options): Likewise.
15802
15803 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
15804
15805 PR ipa/65475
15806 * ipa-devirt.c: Include demangle.h
15807 (odr_type_d): Add field rtti_broken.
15808 (odr_subtypes_equivalent_p): Do not require name to match.
15809 (compare_virtual_tables): Fix typo; if type already has ODR violation,
15810 bypass the tests; be ready for function referneces in vtables that are
15811 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15812 (warn_odr): Give up for nameless types.
15813 (warn_types_mismatch): Report mismatch in mangled names;
15814 report mismatch in anonymous namespaces; look into component types to
15815 give useful error; report when mismatch is dragged in from other ODR
15816 type.
15817 (odr_types_equivalent_p): Match types for being polymorphic; avoid
15818 duplicated diagnostics.
15819 (add_type_duplicate): Reorder checks so more informative ones come
15820 first; fix typo; do not output "the extra base is defined here" when
15821 we did not warn.
15822 (BINFO_N_BASE_BINFOS): Relax sanity check.
15823
15824 2015-03-22 Martin Liska <mliska@suse.cz>
15825 Jakub Jelinek <jakub@redhat.com>
15826
15827 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15828 masks that can potentially include a builtin.
15829 (ix86_add_new_builtins): Introduce fast filter for isa values
15830 that cannot trigger builtin inclusion.
15831
15832 2015-03-22 Martin Liska <mliska@suse.cz>
15833
15834 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15835 (sem_item::update_hash_by_local_refs): Likewise.
15836 (sem_variable::get_hash): Empty line is fixed.
15837 (sem_item_optimizer::execute): Include adding of hash references.
15838 (sem_item_optimizer::update_hash_by_addr_refs): New function.
15839 (sem_item_optimizer::build_hash_based_classes): Use local hash.
15840 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15841 (sem_item::update_hash_by_local_refs): Likewise.
15842
15843 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15844
15845 PR ipa/65502
15846 * ipa-comdats.c (enqueue_references): Walk through thunks.
15847 (ipa_comdats): Likewise.
15848 (set_comdat_group_1): New function.
15849
15850 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15851
15852 PR ipa/65475
15853 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15854 non-polymorphic
15855
15856 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
15857 Gerald Pfeifer <gerald@pfeifer.com>
15858
15859 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15860
15861 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15862 Sandra Loosemore <sandra@codesourcery.com>
15863
15864 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15865 function parameter declaration.
15866 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15867 Update arguments to nios2_adjust_call_address().
15868 (sibcall_internal): Rename from *sibcall.
15869 (sibcall_value_internal): Rename from *sibcall_value.
15870 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15871 (nios2_large_got_address): Add target temp reg parameter.
15872 (nios2_got_address): Adjust call to nios2_large_got_address, add
15873 force_reg around it.
15874 (nios2_load_pic_address): Add target temp reg parameter, replace call
15875 to nios2_got_address with corresponding code.
15876 (nios2_legitimize_constant_address): Update call to
15877 nios2_load_pic_address.
15878 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15879 to use temp reg for PIC loading purposes.
15880 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15881 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15882 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15883
15884 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15885
15886 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15887 usage of "the @option{...}".
15888 (-Wopenmp-simd): Likewise.
15889 (-fsanitize-recover): Likewise.
15890 (-fsanitize-undefined-trap-on-error): Likewise.
15891 (-flto): Likewise.
15892 (tracer-dynamic-coverage-feedback): Likewise.
15893 (reorder-block-duplicate-feedback): Likewise.
15894 (loop-unroll-jam-size): Likewise.
15895 (-B): Likewise.
15896 (-I-): Likewise.
15897 (-mabs=legacy): Likewise.
15898 (-mupper-regs-df): Likewise.
15899 (-mupper-regs-sf): Likewise.
15900 (-mpointers-to-nested-functions): Likewise.
15901
15902 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15903
15904 * doc/extend.texi (Cilk Plus Builtins): Add markup.
15905
15906 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15907
15908 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15909 additional index entries and cross-references.
15910 (-fchkp-check-incomplete-type): Likewise.
15911 (-fchkp-first-field-has-own-bounds): Likewise.
15912 (-fchkp-narrow-to-innermost-array): Likewise.
15913 (-fchkp-use-fast-string-functions): Likewise.
15914 (-fchkp-use-nochk-string-functions): Likewise.
15915 (-fchkp-use-static-const-bounds): Likewise.
15916 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15917 (-fchkp-instrument-marked-only): Likewise.
15918 (-fchkp-use-wrappers): Likewise.
15919 (-static-libmpx): Likewise.
15920 (-static-libmpxwrappers): Likewise.
15921 * doc/extend.texi (bnd_legacy): Likewise.
15922 (bnd_instrument): Likewise.
15923 (bnd_variable_size): Likewise.
15924 (Pointer Bounds Checker builtins): Likewise.
15925
15926 2015-03-21 Tom de Vries <tom@codesourcery.com>
15927
15928 PR tree-optimization/65458
15929 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15930 * cgraph.h (cgraph_node): Add parallelized_function field.
15931 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15932 (input_overwrite_node): Read parallelized_function field.
15933 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15934 parallelized_function on cgraph_node for child_fn.
15935 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15936 Remove include of gt-tree-parloops.h.
15937 (parallelized_functions): Remove static variable.
15938 (parallelized_function_p): Rewrite using parallelized_function field of
15939 cgraph_node.
15940 (create_loop_fn): Remove adding to parallelized_functions.
15941 * Makefile.in (GTFILES): Remove tree-parloops.c
15942
15943 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
15944
15945 PR rtl-optimization/64366
15946 * lra.c (lra_update_insn_regno_info): Consider regs in
15947 CALL_INSN_FUNCTION_USAGE memory.
15948
15949 2015-03-20 Richard Biener <rguenther@suse.de>
15950
15951 PR middle-end/64715
15952 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15953 for type comparison and gcc_checking_assert.
15954 (chrec_fold_plus_poly_poly): Likewise.
15955 (chrec_fold_multiply_poly_poly): Likewise.
15956 (chrec_convert_1): Likewise.
15957 * gimplify.c (gimplify_expr): Remove premature folding of
15958 &X + CST to &MEM[&X, CST].
15959
15960 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15961
15962 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15963 already is final.
15964 (ipa_inline): Recompute inline_failed codes.
15965 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15966 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15967 CIF_FINAL_ERROR.
15968
15969 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
15970
15971 PR rtl-optimization/60851
15972 * recog.c (constrain_operands): Accept a pseudo register before reload
15973 for LRA enabled targets.
15974
15975 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15976
15977 PR target/65240
15978 * config/rs6000/predicates.md (easy_fp_constant): Remove special
15979 -ffast-math handling that kept non-0 constants live in the RTL
15980 until reload. Remove logic testing the number of instructions it
15981 took to create a constant in a GPR that was never used, due to a
15982 test for soft-float earlier.
15983 (memory_fp_constant): Delete, no longer used.
15984
15985 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15986 alternatives for loading non-0 constants into GPRs for hard
15987 floating point that is no longer needed due to changes in
15988 easy_fp_constant. Add support for loading 0.0 into GPRs.
15989 (mov<mode>_hardfloat32): Likewise.
15990 (mov<mode>_hardfloat64): Likewise.
15991 (mov<mode>_64bit_dm): Likewise.
15992 (movtd_64bit_nodm): Likewise.
15993 (pre-reload move FP constant define_split): Delete define_split,
15994 since it is no longer used.
15995 (extenddftf2_internal): Remove GHF constraints that are not valid
15996 for extenddftf2.
15997
15998 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
15999
16000 PR rtl-optimization/63491
16001 * lra-constraints.c (check_and_process_move): Use src instead of
16002 sreg. Remove some dead code.
16003
16004 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
16005
16006 PR ipa/65380
16007 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
16008 (sem_variable::merge): Likewise.
16009
16010 2015-03-19 Martin Liska <mliska@suse.cz>
16011
16012 PR ipa/65465
16013 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
16014 all fields of cgraph_thunk_info.
16015
16016 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
16017
16018 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
16019 clone instrumented thunks.
16020
16021 2015-03-19 Richard Biener <rguenther@suse.de>
16022
16023 Revert
16024 2015-03-10 Richard Biener <rguenther@suse.de>
16025
16026 PR middle-end/63155
16027 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16028 * tree-ssa-coalesce.c: Include timevar.h.
16029 (attempt_coalesce): Handle graph being NULL.
16030 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16031 Split out abnormal coalescing to ...
16032 (perform_abnormal_coalescing): ... this function.
16033 (coalesce_ssa_name): Perform abnormal coalescing without computing
16034 live/conflict.
16035 (verify_ssa_coalescing_worker): New function.
16036 (verify_ssa_coalescing): Likewise.
16037
16038 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
16039 Jakub Jelinek <jakub@redhat.com>
16040
16041 PR sanitizer/65400
16042 * tsan.c (instrument_gimple): Clear tail call flag on
16043 calls.
16044
16045 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16046
16047 PR sanitizer/65400
16048 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
16049 call in the return bb.
16050 (find_split_points): Add RETURN_BB argument, don't call
16051 find_return_bb.
16052 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
16053 if true append TSAN_FUNC_EXIT internal call after the call to
16054 the split off function.
16055 (execute_split_functions): Call find_return_bb here.
16056 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
16057 Adjust find_split_points and split_function calls.
16058
16059 2015-03-18 DJ Delorie <dj@redhat.com>
16060
16061 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
16062 (iorqi3_virt): Likewise.
16063
16064 2015-03-18 Tom de Vries <tom@codesourcery.com>
16065
16066 * tree-parloops.c (parallelize_loops): Make static.
16067 * tree-parloops.h (parallelize_loops): Remove extern declaration.
16068
16069 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
16070
16071 PR middle-end/64491
16072 Revert:
16073 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
16074
16075 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
16076 condition would be removed due to undefined behaviour.
16077
16078 2015-03-18 Martin Liska <mliska@suse.cz>
16079
16080 PR ipa/65432
16081 * cgraph.c (cgraph_node::get_create): Remove unnecessary
16082 xstrdup_for_dump wrapper.
16083 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
16084 sem_item::name.
16085 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
16086 with xstrdup_for_dump.
16087 (sem_variable::equals): Likewise.
16088 (sem_item_optimizer::read_section): Use symtab_node::name instead of
16089 sem_item::name.
16090 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
16091 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
16092 symtab_node::asm_name with xstrdup_for_dump.
16093 (congruence_class::dump): Use symtab_node::name instead of
16094 sem_item::name.
16095 * ipa-icf.h (symtab_node::name): Remove.
16096 (symtab_node::asm_name): Likewise.
16097
16098 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16099
16100 PR tree-optimization/65450
16101 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
16102 function.
16103 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
16104 it instead of duplicate_ssa_name_ptr_info.
16105
16106 PR target/65222
16107 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
16108
16109 2015-03-18 Richard Biener <rguenther@suse.de>
16110
16111 * tree-data-ref.h (struct access_matrix): Remove.
16112 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16113 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16114 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
16115 (am_vector_index_for_loop): Likewise.
16116 (struct data_reference): Remove access_matrix member.
16117 (DR_ACCESS_MATRIX): Remove.
16118 (lambda_vector_new): Add comment.
16119 (lambda_matrix_new): Use XOBNEWVEC.
16120
16121 2015-03-18 Richard Biener <rguenther@suse.de>
16122
16123 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16124 (pass_ch::execute): Cleanup the CFG only if we did sth.
16125 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16126
16127 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16128
16129 * expmed.c (synth_mult): Use std::swap instead of manually
16130 swapping algorithms.
16131
16132 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16133
16134 PR target/65078
16135 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16136
16137 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
16138
16139 PR target/65296
16140 * config/avr/avr.opt (-nodevicelib): New option.
16141 * doc/invoke.texi (AVR Options): Document it.
16142 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16143 libgcc.a, libc.a, libm.a.
16144 * config/avr/specs.h: Same.
16145 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16146 which don't (directly) depend on the device. Print more help.
16147 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16148 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16149 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16150 case of an error.
16151 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16152 for specs file name.
16153 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16154 * config/avr/avr-mcus.def: Adjust initializers and comments.
16155
16156 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
16157
16158 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16159 DECL_ONE_ONLY to check if decl is one only.
16160 * ipa-split.c (consider_split): Limit splitt of one only functions.
16161
16162 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16163
16164 PR tree-optimization/65427
16165 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16166 functions.
16167 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16168
16169 2015-03-16 Marek Polacek <polacek@redhat.com>
16170
16171 * cgraph.h (add_new_static_var): Remove declaration.
16172 * varpool.c (add_new_static_var): Remove function.
16173
16174 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16175
16176 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16177 instead of vec<tree> * with vec_alloc and release for args.
16178 Adjust all users.
16179
16180 PR middle-end/65431
16181 * omp-low.c (delete_omp_context): Only splay_tree_delete
16182 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16183 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
16184
16185 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
16186
16187 PR sanitizer/64820
16188 * cfgexpand.c (align_base): New function.
16189 (alloc_stack_frame_space): Call it.
16190 (expand_stack_vars): Align prev_frame to be sure
16191 data->asan_vec elements aligned properly.
16192
16193 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
16194
16195 PR middle-end/65409
16196 * expr.c (store_field): Do not do a direct block copy if the source is
16197 a PARALLEL with BLKmode.
16198
16199 2015-03-16 Tom de Vries <tom@codesourcery.com>
16200
16201 PR middle-end/65414
16202 Revert:
16203 2015-03-12 Tom de Vries <tom@codesourcery.com>
16204
16205 PR rtl-optimization/64895
16206 * lra-lives.c (check_pseudos_live_through_calls): Use
16207 actual_call_used_reg_set instead of call_used_reg_set, if available.
16208
16209 2015-03-16 Alan Modra <amodra@gmail.com>
16210
16211 PR target/63150
16212 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16213 Modify Z->r bswapdi splitter to use dest in place of scratch.
16214 In r->Z and Z->r bswapdi splitter rename word_high, word_low
16215 to word1, word2 and rearrange logic to suit.
16216 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16217 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
16218 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16219 Add one '?' on r->r. Modify Z->r splitter to avoid need for
16220 early clobber.
16221
16222 2015-03-14 Jakub Jelinek <jakub@redhat.com>
16223
16224 PR tree-optimization/65369
16225 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16226 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16227 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16228
16229 PR tree-optimization/65418
16230 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16231 are casts in the first PLUS_EXPR operand, ensure tbias and
16232 *totallowp are in the inner type.
16233
16234 PR rtl-optimization/65401
16235 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16236 argument. If true, adjust_address_nv of x with big-endian
16237 correction for the mode widening to GET_MODE (y).
16238 (make_field_assignment): Don't do MEM mode widening here.
16239 Use MEM_P instead of GET_CODE == MEM.
16240
16241 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16242
16243 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16244 the external decls.
16245
16246 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16247
16248 PR target/64600
16249 * config/arm/arm.c (arm_gen_constant, AND case): Use
16250 ARM_SIGN_EXTEND when constructing AND mask.
16251
16252 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16253
16254 * graph.c (print_graph_cfg): Make function names visible and append
16255 parenthesis to it. Also make groups of basic blocks belonging to the
16256 same function visible.
16257
16258 2015-03-12 Richard Biener <rguenther@suse.de>
16259
16260 PR middle-end/44563
16261 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16262 to avoid quadratic behavior with inline expansion splitting blocks.
16263 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16264 with the successor if the predecessor will be merged with it.
16265 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16266 entry block with its successor.
16267
16268 2015-03-13 Richard Biener <rguenther@suse.de>
16269
16270 PR middle-end/44563
16271 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16272 (cleanup_tree_cfg_1): Do not call it.
16273 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16274 (fixup_noreturn_call): Mark the stmt as control altering.
16275 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16276 here.
16277 (pass_data_fixup_cfg): Produce a dump file.
16278 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16279 (need_noreturn_fixup): New global.
16280 (pass_dominator::execute): Fixup queued noreturn calls.
16281 (optimize_stmt): Queue calls that became noreturn for fixup.
16282 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16283 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16284 (el_to_fixup): New global.
16285 (eliminate_dom_walker::before_dom_childre): Queue calls that
16286 became noreturn for fixup.
16287 (eliminate): Fixup queued noreturn calls.
16288 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16289 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16290 (substitute_and_fold_dom_walker::before_dom_children): Queue
16291 alls that became noreturn for fixup.
16292 (substitute_and_fold): Fixup queued noreturn calls.
16293
16294 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
16295
16296 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16297 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16298 are building; for methods check ODR type of class they belong to if
16299 they may lead to a polymorphic call.
16300 (sem_function::compare_polymorphic_p): Be bit smarter about testing
16301 when function may lead to a polymorphic call.
16302 (sem_function::compare_type_list): Remove.
16303 (sem_variable::equals): Update use of compatible_types_p.
16304 (sem_variable::parse_tree_refs): Remove.
16305 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16306 cdtor.
16307 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16308 matching here.
16309 (func_checker::compatible_polymorphic_types_p): Break out from ...
16310 (unc_checker::compatible_types_p): ... here.
16311 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16312 Declare.
16313 (unc_checker::compatible_types_p): Update.
16314 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16315 Remove.
16316
16317 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16318
16319 PR rtl-optimization/65235
16320 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16321 When first element of vec_concat is const_int, calculate its size
16322 using second element.
16323
16324 2015-03-12 Richard Biener <rguenther@suse.de>
16325
16326 PR middle-end/65270
16327 * fold-const.c (operand_equal_p): Fix ordering of resetting
16328 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16329
16330 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
16331
16332 * config/s390/s390.c (s390_reorg): Move code to output nops after label
16333 to s390_reorg ().
16334 (s390_asm_output_function_label): Likewise.
16335 * config/s390/s390.c (s390_asm_output_function_label):
16336 Fix function label alignment with -mhtopatch.
16337 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16338 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16339 ("nop_2_byte"): New define_insn.
16340 ("nop_4_byte"): Likewise.
16341 ("nop_6_byte"): Likewise.
16342 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16343 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16344
16345 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16346
16347 PR target/65103
16348 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16349 register.
16350
16351 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16352
16353 PR target/65044
16354 * toplev.c (process_options): Restrict Pointer Bounds Checker
16355 usage with Address Sanitizer.
16356
16357 2015-03-12 Richard Biener <rguenther@suse.de>
16358
16359 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16360 to split on.
16361 * omp-low.c (expand_omp_taskreg): Split block before removing
16362 the stmt.
16363 (expand_omp_target): Likewise.
16364 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16365 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16366 stmt to split_block.
16367
16368 2015-03-12 Tom de Vries <tom@codesourcery.com>
16369
16370 PR rtl-optimization/64895
16371 * lra-lives.c (check_pseudos_live_through_calls): Use
16372 actual_call_used_reg_set instead of call_used_reg_set, if available.
16373
16374 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16375
16376 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16377 (cgraph_node::remove): Likewise.
16378 (cgraph_node::get_untransformed_body): Likewise.
16379 * varpool.c (varpool_node::remove): Likewise.
16380 (varpool_node::get_constructor): Add sanity check.
16381
16382 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
16383
16384 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16385 old GCC versions.
16386 (-fabi-compat-version): Likewise.
16387 (-ffriend-injection): Likewise.
16388 (-Wdeclaration-after-statement): Likewise.
16389 (-fomit-frame-pointer): Likewise.
16390 (-ftree-coalesce-inlined-vars): Likewise.
16391 (-fvisibility=): Likewise.
16392 * doc/extend.texi (Typeof): Likewise.
16393 (Zero Length): Likewise.
16394 (Escaped Newlines): Likewise.
16395 (Compound Literals): Likewise.
16396 (Function Attributes): Likewise.
16397 (Label Attributes): Likewise.
16398 (Type Attributes): Likewise.
16399 (Function Names): Likewise.
16400 (Other Builtins): Likewise.
16401 (Function Specific Option Pragmas): Likewise.
16402 (C++ Interface): Likewise.
16403
16404 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
16405
16406 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16407
16408 2015-03-11 Marek Polacek <polacek@redhat.com>
16409
16410 PR tree-optimization/65388
16411 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16412
16413 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16414
16415 PR target/65296
16416 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16417 * configure: Regenerate.
16418 * config.in: Regenerate.
16419 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16420 [-mn-flash]: Document it.
16421 [__AVR_ARCH__]: Document avrtiny.
16422
16423 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16424 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16425 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16426
16427 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16428
16429 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16430
16431 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16432
16433 PR target/65242
16434 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16435 allow reloads of PLUS in floating point/VSX registers.
16436
16437 2015-03-11 Junmo Park <junmoz.park@samsung.com>
16438
16439 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16440 crypto_sha256_fast.
16441 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16442
16443 2015-03-11 Richard Biener <rguenther@suse.de>
16444
16445 PR tree-optimization/65310
16446 * tree-sra.c (build_ref_for_offset): Also preserve larger
16447 alignment.
16448
16449 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
16450
16451 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16452
16453 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16454
16455 PR target/65368
16456 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16457 new define_expand.
16458 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16459
16460 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16461
16462 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16463 (sem_function::equals_wpa): ... here.
16464
16465 2015-03-10 Marek Polacek <polacek@redhat.com>
16466 Jakub Jelinek <jakub@redhat.com>
16467
16468 PR sanitizer/65367
16469 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16470 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
16471 separately.
16472
16473 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16474
16475 PR target/65286
16476 * config/rs6000/t-linux: For powerpc64* target set
16477 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16478
16479 2015-03-10 Richard Biener <rguenther@suse.de>
16480
16481 PR middle-end/44563
16482 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16483 for redirect_all_calls.
16484
16485 2015-03-10 Marek Polacek <polacek@redhat.com>
16486
16487 * gdbinit.in (pcfun): Define and document.
16488
16489 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
16490
16491 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16492 of libgomp-plugin.h.
16493 (find_target_compiler): Support a case when the path to gcc is
16494 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16495 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16496 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16497 libgomp-plugin.h.
16498 (main): Use GCC_INSTALL_NAME as target_driver_name.
16499 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16500 define.
16501 (mkoffload.o): Remove obsolete include path and defines.
16502 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16503
16504 2015-03-10 Richard Biener <rguenther@suse.de>
16505
16506 PR middle-end/63155
16507 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16508 * tree-ssa-coalesce.c: Include timevar.h.
16509 (attempt_coalesce): Handle graph being NULL.
16510 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16511 Split out abnormal coalescing to ...
16512 (perform_abnormal_coalescing): ... this function.
16513 (coalesce_ssa_name): Perform abnormal coalescing without computing
16514 live/conflict.
16515 (verify_ssa_coalescing_worker): New function.
16516 (verify_ssa_coalescing): Likewise.
16517
16518 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16519
16520 PR target/65296
16521 * config.gcc (extra_options) [avr]: Remove.
16522 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16523 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16524 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16525
16526 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16527 (-mmcu=): Add Var and MissingArgError properties.
16528 (-march=): Remove.
16529 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16530 * config/avr/t-multilib: Regenerate.
16531 * config/avr/specs.h: New file.
16532 * config/avr/driver-avr.c: New file.
16533 * config/avr/genopt.sh: Remove file.
16534 * config/avr/avr-tables.opt: Remove file.
16535 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16536 * config/avr/avr-c.c: Same.
16537 * avr-arch.h: Same.
16538 (avr_current_device): Remove proto.
16539 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16540 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16541 (EXTRA_SPEC_FUNCTIONS): Define.
16542 (avr_devicespecs_file): New specs function proto.
16543 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16544 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16545 (avr_current_device): Remove definition and usage.
16546 (avr_set_core_architecture): New static function.
16547 (avr_option_override): Use it.
16548 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16549 (mcu_name): New static array.
16550 (comparator, avr_archs_str, avr_mcus_str): New static functions.
16551 (avr_inform_devices, avr_inform_core_architectures): New functions.
16552 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16553 (avrlibc.h) [WITH_AVRLIBC]: Include.
16554 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16555 (print_mcu): Rewrite from scratch.
16556 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16557 Forward to avr-specific specs defined in device-specs file.
16558 * config/avr/t-avr (driver-avr.o): New rule.
16559 (avr-devices.o): Depend on avr-arch.h.
16560 (avr-mcus): No more depend on avr-tables.opt.
16561 (avr-tables.opt): Remove rule.
16562 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16563
16564 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16565
16566 * c-family/c.opt (fchkp-use-wrappers): New.
16567 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16568 (chkp_wrap_function): New.
16569 (chkp_build_instrumented_fndecl): Support wrapped
16570 functions.
16571 * doc/invoke.texi (-fcheck-pointer-bounds): New.
16572 (-fchkp-check-incomplete-type): New.
16573 (-fchkp-first-field-has-own-bounds): New.
16574 (-fchkp-narrow-bounds): New.
16575 (-fchkp-narrow-to-innermost-array): New.
16576 (-fchkp-optimize): New.
16577 (-fchkp-use-fast-string-functions): New.
16578 (-fchkp-use-nochk-string-functions): New.
16579 (-fchkp-use-static-bounds): New.
16580 (-fchkp-use-static-const-bounds): New.
16581 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16582 (-fchkp-check-read): New.
16583 (-fchkp-check-write): New.
16584 (-fchkp-store-bounds): New.
16585 (-fchkp-instrument-calls): New.
16586 (-fchkp-instrument-marked-only): New.
16587 (-fchkp-use-wrappers): New.
16588 (-static-libmpx): New.
16589 (-static-libmpxwrappers): New.
16590
16591 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16592
16593 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16594 (CHKP_SPEC): Add wrappers library.
16595 * c-family/c.opt (static-libmpxwrappers): New.
16596
16597 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16598
16599 * config/i386/linux-common.h (LIBMPX_LIBS): New.
16600 (LIBMPX_SPEC): New.
16601 (CHKP_SPEC): New.
16602 * gcc.c (CHKP_SPEC): New.
16603 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16604 * c-family/c.opt (static-libmpx): New.
16605
16606 2015-03-10 Richard Biener <rguenther@suse.de>
16607
16608 PR middle-end/44563
16609 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16610 for compare_type.
16611 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16612 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16613 (cgraph_add_edge_to_call_site_hash): Likewise.
16614 (cgraph_node::get_edge): Likewise.
16615 (cgraph_edge::set_call_stmt): Likewise.
16616 (cgraph_edge::remove_caller): Likewise.
16617
16618 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
16619
16620 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16621 (callee_saved_gpr_regs_size): ... this.
16622 (callee_saved_regs_first_regno): Rename to ...
16623 (callee_saved_first_gpr_regno): ... this.
16624 (callee_saved_regs_last_regno) Rename to ...
16625 (callee_saved_last_gpr_regno): ... this.
16626 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16627 variables.
16628 (nds32_initial_elimination_offset): Likewise.
16629 (nds32_expand_prologue): Likewise.
16630 (nds32_expand_epilogue): Likewise.
16631 (nds32_expand_prologue_v3push): Likewise.
16632 (nds32_expand_epilogue_v3pop): Likewise.
16633 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16634 Adjust renamed variables.
16635 (nds32_output_stack_pop): Likewise.
16636
16637 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
16638
16639 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16640 code in comment.
16641
16642 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16643
16644 PR rtl-optimization/65321
16645 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16646 than shift mode.
16647 * var-tracking.c (use_narrower_mode): Likewise.
16648
16649 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16650
16651 PR tree-optimization/65355
16652 * varasm.c (notice_global_symbol): Do not produce RTL.
16653 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16654 anchor.
16655 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16656 check for section anchors.
16657
16658 2015-03-10 Alan Modra <amodra@gmail.com>
16659
16660 PR target/65286
16661 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16662 to be single-arch by default. Set cpu_is_64bit for powerpc64
16663 given --with-cpu=native.
16664 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16665 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16666 and powerpc64le.
16667 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16668 rs6000_isa_flags rather than TARGET_64BIT.
16669
16670 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
16671 Kaz Kojima <kkojima@gcc.gnu.org>
16672
16673 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16674
16675 2015-03-09 Jakub Jelinek <jakub@redhat.com>
16676
16677 PR lto/65361
16678 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16679 on a TREE_BINFO, instead use BINFO_TYPE.
16680
16681 2015-03-09 Richard Biener <rguenther@suse.de>
16682
16683 PR middle-end/65270
16684 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16685 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16686 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
16687 of that. When comparing dereferences compare alignment.
16688 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16689
16690 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16691
16692 * ipa-inline-analysis.c (check_callers): Check
16693 node->can_remove_if_no_direct_calls_and_refs_p.
16694 (growth_likely_positive): Reorganize to call
16695 can_remove_if_no_direct_calls_p later.
16696 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16697 will_be_removed_from_program_if_no_direct_calls_p): Add
16698 will_inline parameter.
16699 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16700 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16701 Handle inliner case correctly.
16702
16703 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16704
16705 PR tree-optimization/63743
16706 * cfgexpand.c (reorder_operands): Also reorder if only second operand
16707 had its definition forwarded by TER.
16708
16709 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16710
16711 PR lto/65316
16712 * ipa-utils.h (types_odr_comparable): Add strict argument.
16713 * ipa-devirt.c: Fix whitespace;
16714 (odr_hasher): Remove.
16715 (odr_name_hasher, odr_vtable_hasher): New hashers.
16716 (can_be_name_hashed_p): New predicate.
16717 (hash_type_name): remove.
16718 (hash_odr_name): New.
16719 (odr_name_hasher::hash): new.
16720 (can_be_vtable_hashed_p): New.
16721 (hash_odr_vtable): New.
16722 (odr_vtable_hasher::hash): New.
16723 (types_same_for_odr): Add strict parameter.
16724 (types_odr_comparable): Likewise.
16725 (odr_name_hasher::equal): New.
16726 (odr_vtable_hasher::equal): New.
16727 (odr_name_hasher::remove): New.
16728 (odr_hash_type): Change to hash_table<odr_name_hasher>.
16729 (odr_vtable_hash_type): New.
16730 (odr_vtable_hash): New.
16731 (odr_subtypes_equivalent_p): Do strict comparsion.
16732 (add_type_duplicate): Merge type names; cleanup; avoid type
16733 duplicates.
16734 (register_odr_type): Initialize vtable hash.
16735 (build_type_inheritance_graph): Likewise
16736 (get_odr_type): Reorg to use two hashes.
16737 (dump_possible_polymorphic_call_targets): Move sanity check after debug
16738 output.
16739 (ipa_devirt): Dump type_inheritance_graph.
16740 (types_same_for_odr): Add strict mode.
16741
16742 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16743
16744 PR ipa/65334
16745 * cgraph.h (symtab_node): Add definition_alignment,
16746 can_increase_alignment_p and increase_alignment.
16747 * symtab.c (symtab_node::can_increase_alignment_p,
16748 increase_alignment_1, symtab_node::increase_alignment,
16749 symtab_node::definition_alignment): New.
16750 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16751 can_increase_alignment_p.
16752 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16753 * tree-vect-stmts.c (ensure_base_align): Likewise.
16754 * varasm.c (function_section_1): Use definition_alignment.
16755 (assemble_start_function): Likewise.
16756 (emit_local): likewise.
16757 (build_constant_desc): Likewsie.
16758 (output_constant_def_contents): Likewise.
16759 (place_block_symbol): Likewise.
16760 (output_object_block): Likewise.
16761
16762 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16763
16764 PR ipa/65316
16765 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16766 when outputting debug.
16767
16768 2015-03-07 Marek Polacek <polacek@redhat.com>
16769 Martin Uecker <uecker@eecs.berkeley.edu>
16770
16771 PR sanitizer/65280
16772 * doc/invoke.texi: Update description of -fsanitize=bounds.
16773
16774 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
16775
16776 * tree-ssa-phiopt.c (neg_replacement): Remove.
16777 (tree_ssa_phiopt_worker): Remove negate optimization.
16778
16779 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16780
16781 PR ipa/65302
16782 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16783
16784 2015-03-06 Richard Biener <rguenther@suse.de>
16785
16786 PR middle-end/64928
16787 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16788 and liveout_obstack members.
16789 (calculate_live_on_exit): Remove.
16790 (calculate_live_ranges): Change declaration.
16791 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16792 (new_tree_live_info): Adjust.
16793 (calculate_live_ranges): Delete livein when not wanted.
16794 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16795 Deal with partly deleted live info.
16796 (loe_visit_block): Remove temporary bitmap by using
16797 bitmap_ior_and_compl_into.
16798 (live_worklist): Adjust accordingly.
16799 (calculate_live_on_exit): Make static.
16800 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16801 we do not need livein.
16802
16803 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
16804
16805 * real.c (real_from_string): Fix typo in assertion.
16806
16807 2015-03-06 Alex Velenko <alex.velenko@arm.com>
16808
16809 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16810 the patch.
16811
16812 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16813
16814 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16815
16816 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
16817
16818 PR target/64342
16819 * lra-assigns.c (find_hard_regno_for): Rename to
16820 find_hard_regno_for_1. Add a new parameter.
16821 (find_hard_regno_for): New function using find_hard_regno_for_1.
16822
16823 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16824
16825 PR rtl-optimization/65067
16826 * expmed.c (store_bit_field, extract_bit_field): Reworked the
16827 strict volatile bitfield handling.
16828
16829 2015-03-05 Martin Liska <mliska@suse.cz>
16830
16831 PR ipa/65318
16832 * ipa-icf.c (sem_variable::equals): Compare variables types.
16833
16834 2015-03-05 Richard Henderson <rth@redhat.com>
16835
16836 PR target/65121
16837 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16838 correctly check weak symbol binding.
16839
16840 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
16841
16842 PR middle-end/65315
16843 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16844 needed alignment.
16845
16846 2015-03-05 Martin Liska <mliska@suse.cz>
16847
16848 * ipa-inline.c (inline_small_functions): Set default value to
16849 prevent warning during bootstrap.
16850 * tree.h: Add pragma guard that ignores false positives during
16851 bootstrap.
16852
16853 2015-03-05 Richard Biener <rguenther@suse.de>
16854
16855 PR tree-optimization/65310
16856 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16857 Properly preserve alignment of the base of the access.
16858
16859 2015-03-05 Richard Biener <rguenther@suse.de>
16860
16861 PR ipa/65270
16862 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16863 Compare dependence info.
16864
16865 2015-03-05 Richard Biener <rguenther@suse.de>
16866
16867 PR middle-end/65233
16868 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16869 tree-into-ssa.h.
16870 (walk_ssa_copies): Revert last chage. Instead do not walk
16871 SSA names registered for SSA update.
16872
16873 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16874
16875 PR ipa/65270
16876 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16877 vtable references for their containing type.
16878 (sem_function::equals_wpa): Compare TYPE_RESTRICT
16879 and type attributes.
16880
16881 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
16882
16883 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16884 before negating it.
16885 * stor-layout.c (finalize_record_size): Revert latest change.
16886
16887 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
16888
16889 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16890
16891 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16892
16893 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16894 for correct comdat handling.
16895 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16896 Likewise.
16897 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16898 (used_from_object_file_p_worker): Remove.
16899 (cgraph_node::only_called_directly_or_alised): Add
16900 used_from_object_file_p.
16901 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16902 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16903 can_remove_if_no_direct_calls_and_refs_p.
16904
16905 2015-03-04 Nick Clifton <nickc@redhat.com>
16906
16907 * config/rl78/rl78.h (enum reg_class): Remove real registers from
16908 General register class.
16909 * config/rl78/rl78-real.md: Replace general register constraints
16910 with real+virtual register constraints.
16911
16912 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16913
16914 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16915 from checking for -mhtm option.
16916
16917 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16918
16919 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16920 (struct ipa_sra_check_caller_data): Add has_thunk field.
16921 (ipa_sra_check_caller): Check for thunk.
16922 (ipa_sra_preliminary_function_checks): Give up on function with
16923 thunks.
16924 (ipa_early_sra): Use call_for_symbol_and_aliases.
16925
16926 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
16927
16928 PR target/65249
16929 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16930 called for __stack_chk_guard symbol.
16931
16932 2015-03-03 DJ Delorie <dj@redhat.com>
16933
16934 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16935 inc/dec.
16936 (*addhi3_real): Likewise.
16937 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16938 pattern to match incrementing memory.
16939 * config/rl78/predicates.md (rl78_1_2_operand): New.
16940 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16941 it's the same and only mem.
16942 (rl78_alloc_physical_registers_op2): If there's effectively only
16943 one MEM, transcode it into HL.
16944 (rl78_far_p): Reject addresses that aren't legitimate.
16945
16946 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16947
16948 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16949 negating it.
16950
16951 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16952
16953 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16954
16955 Implement call0 ABI for xtensa
16956 * config/xtensa/constraints.md ("a" constraint): Include stack
16957 pointer in case of call0 ABI.
16958 ("q" constraint): Make empty in case of call0 ABI.
16959 ("D" constraint): Include stack pointer in case of call0 ABI.
16960 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16961 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16962 prototypes.
16963 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16964 variable.
16965 (xtensa_regno_to_class): Make it a local variable in the
16966 function xtensa_regno_to_class.
16967 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16968 macro, function prototype and implementation.
16969 (reg_nonleaf_alloc_order): Make it a local variable in the
16970 function order_regs_for_local_alloc.
16971 (xtensa_conditional_register_usage): New function.
16972 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16973 (xtensa_valid_move): Allow direct moves to stack pointer
16974 register in call0 ABI.
16975 (xtensa_setup_frame_addresses): Only spill register windows in
16976 windowed ABI.
16977 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16978 call0 ABI respectively.
16979 (xtensa_function_arg_1): Only mark a7 register for copying in
16980 windowed ABI.
16981 (xtensa_call_save_reg): New function.
16982 (compute_frame_size): Add space for callee saved register
16983 storage to the frame size in call0 ABI.
16984 (xtensa_expand_prologue): Generate code to set up stack frame
16985 and save callee-saved registers in call0 ABI.
16986 (xtensa_expand_epilogue): New function.
16987 (xtensa_set_return_address): New function.
16988 (xtensa_return_addr): Calculate return address in call0 ABI.
16989 (xtensa_builtin_saveregs): Only mark a7 register for copying and
16990 emit copying code in windowed ABI.
16991 (order_regs_for_local_alloc): Add preferred register allocation
16992 order for non-leaf function in call0 ABI.
16993 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16994 (xtensa_asm_trampoline_template): Add trampoline generation for
16995 call0 ABI.
16996 (xtensa_trampoline_init): Add trampoline initialization for
16997 call0 ABI.
16998 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16999 functions.
17000 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
17001 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
17002 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
17003 ABI call-used registers.
17004 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
17005 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
17006 call0 ABI.
17007 (REG_CLASS_CONTENTS): Include all registers into the preferred
17008 reload registers set, adjust the set in the
17009 xtensa_conditional_register_usage.
17010 (xtensa_regno_to_class): Drop variable declaration.
17011 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
17012 function.
17013 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
17014 respectively.
17015 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
17016 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
17017 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
17018 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
17019 location in call0 ABI.
17020 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
17021 stack adjustment size when handling exception.
17022 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
17023 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
17024 definitions.
17025 ("return" pattern): Generate ret.n/ret in call0 ABI.
17026 ("epilogue" pattern): Expand epilogue.
17027 ("nonlocal_goto" pattern): Use default in call0 ABI.
17028 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
17029 emit eh_set_a0_* depending on ABI.
17030 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
17031 ("eh_set_a0_call0", "blockage"): New patterns.
17032
17033 2015-03-03 Martin Liska <mliska@suse.cz>
17034
17035 PR ipa/65287
17036 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
17037
17038 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17039
17040 PR 65138/target
17041 * config/rs6000/rs6000-tables.opt: Regenerate table.
17042
17043 2015-03-03 Renlin Li <renlin.li@arm.com>
17044
17045 * doc/md.texi (@item ^): Change ? into ^.
17046
17047 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
17048
17049 * doc/tm.texi: Regenerated.
17050
17051 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
17052
17053 * builtins.c (expand_builtin_return_addr): Add
17054 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
17055 surrounding #ifdef.
17056 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
17057 definition to 1.
17058 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
17059 Likewise.
17060 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
17061 undefined.
17062 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
17063 paragraph.
17064
17065 2015-03-03 Martin Jambor <mjambor@suse.cz>
17066 Eric Botcazou <ebotcazou@adacore.com>
17067
17068 * tree-sra.c (ipa_sra_check_caller_data): New type.
17069 (has_caller_p): Removed.
17070 (ipa_sra_check_caller): New function.
17071 (ipa_sra_preliminary_function_checks): Use it.
17072
17073 2015-03-03 Martin Liska <mliska@suse.cz>
17074
17075 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
17076 instead of if branch.
17077
17078 2015-03-03 Martin Liska <mliska@suse.cz>
17079
17080 PR ipa/65282
17081 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
17082
17083 2015-03-23 Jeff Law <law@redhat.com>
17084
17085 PR tree-optimization/65241
17086 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
17087 hash table if INSERT is true.
17088
17089 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17090
17091 PR target/65296
17092 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
17093
17094 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17095
17096 PR target/64331
17097 * config/avr/avr.c (context.h, tree-pass.h): Include them.
17098 (avr_pass_data_recompute_notes): New static variable.
17099 (avr_pass_recompute_notes): New class.
17100 (avr_register_passes): New static function.
17101 (avr_option_override): Call it.
17102
17103 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17104
17105 Fix various problems with specs file generation.
17106
17107 PR target/65296
17108 * config.gcc (extra_gcc_objs) [avr]: Remove.
17109 * config/avr/driver-avr.c: Remove file.
17110 * config/avr/t-avr (driver-avr.o): Remove rule.
17111 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
17112 INCLUDES to build. Depend on TM_H.
17113 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
17114 build warnings. Fix non-matching types and non-existing %-codes.
17115 (tm.h): Include.
17116 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
17117 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
17118 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
17119 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
17120 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
17121 (LIBGCC_SPEC): Remove definitions.
17122
17123 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
17124
17125 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17126 to create a register in testing mode.
17127
17128 2015-03-03 Martin Liska <mliska@suse.cz>
17129 Jan Hubicka <hubicka@ucw.cz>
17130
17131 PR ipa/65263
17132 * cgraph.c (cgraph_node::has_thunk_p): New function.
17133 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17134 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17135 (sem_function::merge): Assert is changed.
17136
17137 2015-03-03 Martin Liska <mliska@suse.cz>
17138 Martin Jambor <mjambor@suse.cz>
17139
17140 PR ipa/65087
17141 * ipa-icf.c (sem_item_optimizer::execute): Change function
17142 return value to boolean.
17143 (sem_item_optimizer::merge_classes): Likewise.
17144 (ipa_icf_driver): Return TODO_remove_functions in case there's
17145 a merge operation processed.
17146 * ipa-icf.h: Change function return value to boolean.
17147
17148 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17149
17150 PR 65138/target
17151 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17152 processor type for 64-bit little endian PowerPC.
17153
17154 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17155 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
17156 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
17157 printing built-in mask so it does not pass NULL pointers.
17158
17159 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17160 -mcpu=powerpc64le.
17161
17162 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
17163
17164 PR target/58158
17165 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17166 !ISA_HAS_FP_CONDMOVE.
17167
17168 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
17169
17170 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17171 reload_completed.
17172
17173 2015-03-02 Ulrich Drepper <drepper@gmail.com>
17174
17175 * doc/invoke.texi (Options for Code Generation Conventions):
17176 Fix URL of DSO paper.
17177
17178 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17179
17180 PR ipa/65130
17181 * ipa-inline.c (check_callers): Looks for recursion.
17182 (inline_to_all_callers): Give up on uninlinable or recursive edges.
17183 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17184 summary of inline clones.
17185 (do_estimate_growth_1): Fix recursion check.
17186
17187 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17188
17189 PR ipa/64988
17190 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17191 comdat groups.
17192
17193 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17194 Aldy Hernandez <aldyh@redhat.com>
17195
17196 PR lto/65276
17197 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17198 when checking TYPE_BINFO.
17199
17200 2015-03-02 Richard Biener <rguenther@suse.de>
17201
17202 PR ipa/65270
17203 * ipa-icf-gimple.c: Include builtins.h.
17204 (func_checker::compare_memory_operand): Compare base alignment.
17205
17206 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17207
17208 PR target/65184
17209 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17210 are never passed by reference.
17211
17212 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17213
17214 PR target/65183
17215 * tree-chkp.c (chkp_check_lower): Don't check against
17216 zero bounds for already instrumented functions.
17217 (chkp_check_upper): Likewise.
17218 (chkp_fini): Clean pass local data to avoid wrong reusage.
17219
17220 2015-02-28 Martin Liska <mliska@suse.cz>
17221 Jan Hubicka <hubicka@ucw.cz>
17222
17223 * ipa-icf.c (sem_variable::equals): Improve debug output;
17224 get variable constructor.
17225 (sem_variable::parse): Do not filter out too early; give up on
17226 volatile and register vars.
17227 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17228 variables.
17229 * ipa-icf.h (sem_variable::init): Do not set ctor.
17230 (sem_variable::ctor): Remove.
17231
17232 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
17233
17234 PR middle-end/65233
17235 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17236
17237 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17238
17239 * ipa-icf.c: Include stor-layout.h
17240 (sem_function::compare_cgraph_references): Rename to ...
17241 (sem_item::compare_cgraph_references): ... this one.
17242 (sem_variable::equals_wpa): New function
17243 (sem_variable::equals): Do not check stuff already verified by
17244 equals_wpa.
17245 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17246 * ipa-icf.h (sem_item): Add compare_cgraph_references.
17247 (sem_function): Remove compare_cgraph_references.
17248 (sem_variable): Turns equals_wpa into non-inline.
17249
17250 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17251
17252 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17253 (sem_item::add_expr): New function.
17254 (sem_function::hash_stmt): Handle operands of most statements.
17255 (sem_variable::get_hash): Hash the actual constructor.
17256 * ipa-icf.h (sem_item): Add add_expr.
17257 (sem_function): Update prototype of hash_stmt
17258
17259 2015-02-28 Martin Liska <mliska@suse.cz>
17260 Jan Hubicka <hubicka@ucw.cz>
17261
17262 PR ipa/65245
17263 * ipa-icf-gimple.c (func_checker::compare_function_decl):
17264 Remove.
17265 (func_checker::compare_variable_decl): Skip symtab vars.
17266 (func_checker::compare_cst_or_decl): Update.
17267 * ipa-icf.c (sem_function::parse): Do not consider aliases.
17268 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17269 use correct symtab predicates.
17270 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17271 (sem_variable::parse): Update comment.
17272 (sem_item_optimizer::build_graph): Consider ultimate aliases
17273 for references.
17274
17275 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17276
17277 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17278 of OBJ_TYPE_REF.
17279
17280 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17281
17282 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17283 (sem_variable::merge) Likewise.
17284
17285 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17286
17287 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17288 target; also match flag_ipa_devirt.
17289
17290 2015-03-01 Martin Liska <mliska@suse.cz>
17291 Jan Hubicka <hubicka@ucw.cz>
17292
17293 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17294 Validate variable alignment.
17295 * ipa-icf.c (sem_function::equals_private): Be more precise
17296 about non-common function attributes.
17297 (sem_variable::equals): Likewise.
17298
17299 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17300
17301 PR ipa/65237
17302 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17303 across COMDAT group boundary.
17304
17305 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17306
17307 PR ipa/65232
17308 * ipa-icf.c (clear_decl_rtl): New function.
17309 (sem_function::merge): Clear RTL before forming alias.
17310 (sem_variable::merge): Clear RTL before forming alias.
17311
17312 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17313
17314 PR ipa/65236
17315 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17316
17317 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
17318
17319 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17320 to neon_to_gp<q>.
17321
17322 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17323
17324 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17325 a typo in the description.
17326
17327 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17328
17329 PR target/64317
17330 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17331 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17332 * lra-constraints.c: Include "params.h".
17333 (EBB_PROBABILITY_CUTOFF): Use
17334 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17335 (lra_inheritance): Use '<' instead of '<=' for
17336 EBB_PROBABILITY_CUTOFF.
17337 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17338 Document change.
17339
17340 2015-02-27 Martin Liska <mliska@suse.cz>
17341
17342 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17343 vector length condition.
17344
17345 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
17346
17347 * doc/extend.texi (x86 transactional memory intrinsics):
17348 Reorganize discussion of _xbegin. Clarify that the return
17349 value is a bit mask. Expand example and move to end of section.
17350
17351 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17352 Aldy Hernandez <aldyh@redhat.com>
17353
17354 PR rtl-optimization/65220
17355 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17356
17357 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17358
17359 PR target/65032
17360 * lra-remat.c (update_scratch_ops): New.
17361 (do_remat): Call it.
17362 * lra.c (lra_register_new_scratch_op): New. Take code from ...
17363 (remove_scratches): ... here.
17364 * lra-int.h (lra_register_new_scratch_op): New prototype.
17365
17366 2015-02-27 Marek Polacek <polacek@redhat.com>
17367
17368 PR c/65040
17369 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17370 -Wformat-signedness anymore.
17371
17372 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17373
17374 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17375 function.
17376 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17377
17378 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17379
17380 * config/s390/s390.c (enum s390_builtin):
17381 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17382 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17383 (s390_init_builtins): Generate new builtin functions.
17384 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17385 (s390_sfpc, s390_efpc): New pattern definitions.
17386
17387 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17388
17389 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17390 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17391 (s390_builtin_decls): New array.
17392 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17393 (s390_builtin_decl): New function.
17394 (TARGET_BUILTIN_DECL): Define macro.
17395
17396 2015-02-27 Richard Biener <rguenther@suse.de>
17397
17398 PR middle-end/63175
17399 * builtins.c (get_object_alignment_2): Make sure to re-apply
17400 the ANDed mask after recursing to its operand gets us a new
17401 misalignment bit position.
17402
17403 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
17404 Martin Liska <mliska@suse.cz>
17405
17406 PR bootstrap/65150
17407 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17408 Use address_matters_p.
17409 (redirect_all_callers, set_addressable): New functions.
17410 (sem_function::merge): Reorganize and fix merging issues.
17411 (sem_variable::merge): Likewise.
17412 (sem_variable::compare_sections): Remove.
17413 * common.opt (fmerge-all-constants, fmerge-constants): Remove
17414 Optimization flag.
17415 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17416 redirect them.
17417 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17418 decl is used.
17419 (address_matters_1): New function.
17420 (symtab_node::address_matters_p): New function.
17421 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17422 check for merged flag.
17423 * cgraph.h (address_matters_p): Declare.
17424 (symtab_node::address_taken_from_non_vtable_p): Remove.
17425 (symtab_node::address_can_be_compared_p): New method.
17426 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17427 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17428 Remove.
17429 (comdat_can_be_unshared_p_1) Use address_matters_p.
17430 (update_vtable_references): Fix formating.
17431 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17432 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17433 * cgraphclones.c: Preserve merged and icf_merged flags.
17434
17435 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
17436
17437 * doc/extend.texi (Function Attributes): Fix spelling and typos.
17438 (Label Attributes): Likewise.
17439 (Cilk Plus Builtins): Likewise.
17440 (ARC SIMD Built-in Functions): Likewise.
17441 (ARM C Language Extensions (ACLE)): Likewise.
17442 (PowerPC Built-in Functions): Likewise.
17443 (PowerPC Hardware Transactional Memory Built-in Functions):
17444 Likewise.
17445
17446 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17447
17448 PR tree-optimization/65216
17449 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17450 new stmt and new SSA_NAME for lhs whenever the arguments have
17451 changed and weren't just swapped. Fix comment typo.
17452
17453 PR tree-optimization/65215
17454 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17455 for PDP endian targets.
17456 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17457 Fix up formatting issues.
17458 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
17459 size is smaller than the original, adjust MEM_REF offset by the
17460 difference of sizes. Use is_gimple_mem_ref_addr instead of
17461 is_gimple_min_invariant test to avoid adding address temporaries.
17462
17463 2015-02-26 Martin Liska <mliska@suse.cz>
17464 Jan Hubicka <hubicka@ucw.cz>
17465
17466 PR ipa/64693
17467 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17468 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17469 (sem_item_optimizer::process_cong_reduction): Include division by
17470 sensitive references.
17471 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17472 * ipa-ref.c (ipa_ref::address_matters_p): New function.
17473 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17474
17475 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
17476
17477 PR target/65192
17478 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17479 Remove.
17480 * config/avr/avr.c: Same.
17481 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17482 Refuse any constant address not in 0..0xbf.
17483 * config/avr/avr.md (*mov<mode>, *movsf): Remove
17484 tiny_valid_direct_memory_access_range from insn conditions.
17485 (mov<mode>): Don't special-case expansion of avrtiny addresses.
17486
17487 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17488
17489 PR target/61142
17490 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17491 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17492 * config/sh/predicates.md (const_logical_operand): New predicate.
17493 * config/sh/sh.md: Add new peephole2 patterns.
17494
17495 2015-02-26 Marek Polacek <polacek@redhat.com>
17496
17497 PR ipa/65008
17498 * ipa-inline.c (early_inliner): Recompute inline parameters.
17499
17500 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17501
17502 PR target/65171
17503 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17504 instructions with TImode operands are included in the analysis.
17505
17506 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17507
17508 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17509 of an EDGE_FSM_THREAD.
17510
17511 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
17512
17513 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17514
17515 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
17516
17517 PR debug/46102
17518 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17519
17520 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17521
17522 PR tree-optimization/65048
17523 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17524 (thread_through_all_blocks): Call valid_jump_thread_path.
17525 Remove invalid FSM jump-thread paths.
17526
17527 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17528
17529 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17530 (ipa_write_optimization_summaries): Likewise.
17531 * tree-streamer.h: Include data-streamer.h.
17532 (streamer_mode_table): Declare extern variable.
17533 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17534 * lto-streamer-out.c (lto_output_init_mode_table,
17535 lto_write_mode_table): New functions.
17536 (produce_asm_for_decls): Call lto_write_mode_table when streaming
17537 offloading LTO.
17538 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17539 (lto_create_simple_input_block): Add mode_table argument to the
17540 lto_input_block constructors.
17541 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17542 Likewise.
17543 * data-streamer-in.c (string_for_index): Likewise.
17544 * ipa-inline-analysis.c (inline_read_section): Likewise.
17545 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17546 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17547 * lto-streamer-in.c (lto_read_body_or_constructor,
17548 lto_input_toplevel_asms): Likewise.
17549 (lto_input_mode_table): New function.
17550 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17551 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17552 Use bp_pack_machine_mode.
17553 * real.h (struct real_format): Add name field.
17554 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17555 (class lto_input_block): Add mode_table member.
17556 (lto_input_block::lto_input_block): Add mode_table_ argument,
17557 initialize mode_table.
17558 (struct lto_file_decl_data): Add mode_table field.
17559 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17560 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17561 unpack_ts_decl_common_value_fields,
17562 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17563 * tree-streamer.c (streamer_mode_table): New variable.
17564 * real.c (ieee_single_format, mips_single_format,
17565 motorola_single_format, spu_single_format, ieee_double_format,
17566 mips_double_format, motorola_double_format,
17567 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17568 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17569 ibm_extended_format, mips_extended_format, ieee_quad_format,
17570 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17571 decimal_single_format, decimal_double_format, decimal_quad_format,
17572 ieee_half_format, arm_half_format, real_internal_format): Add name
17573 field.
17574 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17575
17576 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
17577
17578 PR target/65161
17579 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17580 reordering for selective scheduling.
17581
17582 2015-02-26 Terry Guo <terry.guo@arm.com>
17583
17584 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17585 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17586 (arm_arch_no_volatile_ce): Declare new global variable.
17587 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17588 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17589 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17590 (TARGET_NO_VOLATILE_CE): New macro.
17591 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17592 volatile memory access in IT block
17593
17594 2015-02-25 Kai Tietz <ktietz@redhat.com>
17595
17596 PR tree-optimization/61917
17597 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17598 that reduc_def_stmt is null.
17599
17600 2015-02-25 Martin Liska <mliska@suse.cz>
17601
17602 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17603 hard register variables.
17604
17605 2015-02-25 Kai Tietz <ktietz@redhat.com>
17606
17607 PR target/64212
17608 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17609 (symtab::noninterposable_alias): Likewise.
17610
17611 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
17612
17613 PR target/65167
17614 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17615 bounds registers.
17616 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17617
17618 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
17619
17620 PR target/64997
17621 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17622 as split condition; force split via '#' in output pattern.
17623
17624 2015-02-25 Richard Biener <rguenther@suse.de>
17625 Kai Tietz <ktietz@redhat.com>
17626
17627 PR tree-optimization/61917
17628 * tree-vect-loop.c (vectorizable_reduction): Allow
17629 vect_internal_def without reduction to exit graceful.
17630
17631 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17632
17633 PR target/65196
17634 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17635 only with NONDEBUG_INSN_P.
17636
17637 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17638
17639 Use variadic macros with avr-log.c.
17640
17641 * config/avr/avr-protos.h (avr_vdump): New prototype.
17642 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17643 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17644 * config/avr/avr-log.c: Adjust comments.
17645 (avr_vdump): New function.
17646 (avr_vadump): Pass caller as 2nd argument instead of format string.
17647 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17648 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17649
17650 2015-02-25 Jakub Jelinek <jakub@redhat.com>
17651
17652 PR lto/64374
17653 * target.def (target_option_stream_in): New target hook.
17654 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17655 targetm.target_option.post_stream_in if non-NULL.
17656 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17657 * doc/tm.texi: Updated.
17658 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17659 function.
17660 (TARGET_OPTION_POST_STREAM_IN): Redefine.
17661
17662 2015-02-24 Jeff Law <law@redhat.com>
17663
17664 PR target/65117
17665 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17666 of operand 0 and operand 2.
17667 (zero_cost_loop_end, loop_end): Similarly.
17668
17669 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
17670
17671 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17672 CXX_MEM_STAT_INFO.
17673
17674 2015-02-24 DJ Delorie <dj@redhat.com>
17675
17676 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17677 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17678 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17679 instead of hardcoding SImode.
17680
17681 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
17682
17683 * omp-low.c (create_omp_child_function): Tag entrypoint
17684 functions with a special attribute.
17685
17686 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17687
17688 PR target/65058
17689 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17690
17691 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
17692
17693 PR rtl-optimization/65123
17694 * lra-remat.c (operand_to_remat): Check hard regs in insn
17695 definition too.
17696
17697 2015-02-24 Nick Clifton <nickc@redhat.com>
17698
17699 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17700 to the assembler.
17701
17702 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
17703
17704 PR libgomp/64625
17705 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17706 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17707 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17708 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17709 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17710 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17711 (BUILT_IN_GOACC_PARALLEL): Specify as
17712 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17713 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17714 * builtin-types.def
17715 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17716 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17717 Remove function types.
17718 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17719 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17720 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17721 New function types.
17722
17723 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
17724
17725 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17726
17727 2015-02-24 Jakub Jelinek <jakub@redhat.com>
17728
17729 PR tree-optimization/65170
17730 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17731 if val[1] < 0, clear also val[2] and return 3.
17732
17733 2015-02-24 Alan Modra <amodra@gmail.com>
17734
17735 PR target/65172
17736 * config/rs6000/rs6000.c (get_memref_parts): Only return true
17737 when *base is a reg. Handle nested plus addresses. Simplify
17738 pre_modify test.
17739
17740 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
17741
17742 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17743 use natural alignment when optimizing for size.
17744
17745 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
17746
17747 PR target/65153
17748 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17749 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17750 * config/sh/sh.c (replace_n_hard_rtx): Remove.
17751
17752 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
17753
17754 PR fortran/63427
17755 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17756 too big for a wide_int. Implement missing wrapping operation.
17757
17758 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
17759
17760 PR target/65163
17761 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17762 instead of const_int 4294901760.
17763
17764 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
17765
17766 * config/avr/t-avr: Fix typo in comment.
17767
17768 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
17769
17770 * doc/rtl.texi (fma): Clarify documentation.
17771
17772 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
17773
17774 PR debug/58123
17775 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17776 over input_location.
17777
17778 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17779
17780 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17781 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17782 restrict alignments to absolute_biggest_alignment.
17783 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17784 Define.
17785 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17786 * doc/tm.texi: Regenerate.
17787 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17788
17789 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
17790
17791 PR target/64172
17792 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17793
17794 2015-02-20 Richard Biener <rguenther@suse.de>
17795
17796 PR tree-optimization/65136
17797 * tree-ssa-propagate.c: Include cfgloop.h.
17798 (replace_phi_args_in): Avoid replacing loop latch edge PHI
17799 arguments with constants.
17800
17801 2015-02-20 Jakub Jelinek <jakub@redhat.com>
17802 Martin Liska <mliska@suse.cz>
17803
17804 PR target/63892
17805 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17806 don't try to create_thunk if stdarg_p. If
17807 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17808 redirect_callers if possible.
17809 (sem_item_optimizer::execute): Call unregister_hooks here...
17810 (ipa_icf_driver): ... instead of here.
17811
17812 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17813
17814 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17815 Mark operand 0 as earlyclobber in 2nd alternative.
17816 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17817 Write negated shift amount into QI lowpart operand 0 and use it
17818 in the shift step.
17819 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17820
17821 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17822
17823 * cgraph.h (clone_function_name_1): Declare.
17824 * cgraphclones.c (clone_function_name_1): New function.
17825 (clone_function_name): Use it.
17826 * lto-partition.c: Include "stringpool.h".
17827 (must_not_rename, maybe_rewrite_identifier)
17828 (validize_symbol_for_target): New static functions.
17829 (privatize_symbol_name): Use must_not_rename.
17830 (promote_symbol): Call validize_symbol_for_target.
17831 (lto_promote_cross_file_statics): Likewise.
17832 (lto_promote_statics_nonwpa): Likewise.
17833
17834 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
17835
17836 PR target/64452
17837 * config/avr/avr.md (pushhi_insn): New insn.
17838 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17839
17840 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17841 Jakub Jelinek <jakub@redhat.com>
17842
17843 * tree-streamer.c (preload_common_nodes): Don't preload
17844 TI_VA_LIST* for offloading.
17845 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17846 in_lto_p.
17847
17848 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
17849
17850 * config/pa/pa.c (pa_emit_move_sequence): Always force
17851 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
17852 note on insn.
17853
17854 * config/pa/pa.c (pa_reloc_rw_mask): New function.
17855 (TARGET_ASM_RELOC_RW_MASK): Define.
17856 (pa_cannot_force_const_mem): Revert previous change.
17857
17858 2015-02-19 Martin Jambor <mjmabor@suse.cz>
17859 Jan Hubicka <hubicka@ucw.cz>
17860
17861 PR ipa/65028
17862 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17863 across jump functions.
17864
17865 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
17866
17867 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17868
17869 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
17870
17871 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17872
17873 2015-02-19 Richard Henderson <rth@redhat.com>
17874
17875 PR middle-end/65074
17876 * varasm.c (default_binds_local_p_2): Don't test node->definition;
17877 test DECL_EXTERNAL independent of symtab_node.
17878
17879 2015-02-19 Jakub Jelinek <jakub@redhat.com>
17880
17881 PR lto/65012
17882 * varpool.c (varpool_node::get_constructor): Return early
17883 if this->lto_file_data is NULL.
17884
17885 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17886
17887 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17888 (rank_for_schedule_debug): Update.
17889 (ready_sort): Make static. Move sorting logic to ...
17890 (ready_sort_debug, ready_sort_real): New static functions.
17891 (schedule_block): Sort both debug insns and real insns in preparation
17892 for ready list trimming. Improve debug output.
17893 * sched-int.h (ready_sort): Remove global declaration.
17894
17895 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
17896
17897 * ipa-icf.c (sem_function::equals_private): Adjust.
17898 (sem_function::bb_dict_test): Take a vec<int> * instead of
17899 auto_vec<int>.
17900 * ipa-icf.h (bb_dict_test): Likewise.
17901
17902 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17903
17904 PR gcov-profile/64634
17905 * tree-eh.c (frob_into_branch_around): Fix up typos
17906 in function comment.
17907 (lower_catch): Put eh_seq resulting from EH lowering of
17908 the cleanup sequence after the cleanup rather than before it.
17909
17910 2015-02-18 Tom de Vries <tom@codesourcery.com>
17911
17912 * common.opt (fstdarg-opt): New option.
17913 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17914 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17915 (@item -fstdarg-opt): New item.
17916
17917 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
17918
17919 PR target/65064
17920 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17921 for common symbols.
17922
17923 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17924
17925 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17926 insn-modes.h.
17927 (ALL_HOST_OBJS): Add mkoffload.o.
17928 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17929
17930 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
17931
17932 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17933 (compare_virtual_tables): Be smarter about skipping typeinfos;
17934 do sane output on virtual table table mismatch.
17935 (warn_odr): Be ready for forward declarations of enums;
17936 output sane info on base mismatch and virtual table mismatch.
17937 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17938 when only one type is polymorphic.
17939 (get_odr_type): Fix hashtable corruption.
17940 (dump_odr_type): Dump mangled names.
17941
17942 2015-02-18 Richard Biener <rguenther@suse.de>
17943
17944 PR tree-optimization/65063
17945 * tree-predcom.c (determine_unroll_factor): Return 1 if we
17946 have replaced looparound PHIs.
17947
17948 2015-02-18 Martin Liska <mliska@suse.cz>
17949
17950 * lto-streamer.c (lto_streamer_init): Encapsulate
17951 streamer_check_handled_ts_structures with checking macro.
17952
17953 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17954
17955 PR ipa/65087
17956 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17957 section if !implicit_section.
17958 (cgraph_node::create_version_clone_with_body): Likewise.
17959 * trans-mem.c (ipa_tm_create_version): Likewise.
17960
17961 2015-02-18 Richard Biener <rguenther@suse.de>
17962
17963 PR tree-optimization/62217
17964 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17965 into BIVs.
17966
17967 2015-02-18 Marek Polacek <polacek@redhat.com>
17968
17969 PR sanitizer/65081
17970 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17971 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17972 is in range [-16K, -1]. Don't issue run-time error if
17973 (ptr > ptr + offset).
17974
17975 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
17976
17977 * doc/install.texi (nvptx-*-none): New section.
17978 * doc/invoke.texi (Nvidia PTX Options): Likewise.
17979 * config/nvptx/nvptx.opt: Update.
17980
17981 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17982 (access_check): New functions, copied from
17983 config/i386/intelmic-mkoffload.c.
17984 (main): For non-installed testing, look in all COMPILER_PATHs for
17985 GCC_INSTALL_NAME.
17986
17987 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17988
17989 2015-02-18 Andrew Pinski <apinski@cavium.com>
17990 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17991
17992 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17993 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17994
17995 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17996
17997 * ipa-visibility.c (function_and_variable_visibility): Only
17998 check locality if node is not already local.
17999 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
18000 call_for_symbol_and_aliases instead of
18001 call_for_symbol_thunks_and_aliases.
18002 (ipa_inline): Likewise.
18003 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18004 first walk aliases.
18005 * ipa.c (symbol_table::remove_unreachable_nodes): Use
18006 call_for_symbol_and_aliases.
18007 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18008 (ipa_propagate_frequency_1): Use it; use opt_for_fn
18009 (ipa_propagate_frequency): Update.
18010 (ipa_profile): Add opt_for_fn gueards.
18011
18012 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
18013
18014 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
18015 * doc/invoke.texi (SH options): Document it.
18016 * config/sh/sh.c (sh_insn_length_adjustment): Check
18017 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
18018
18019 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
18020
18021 * common.opt (fipa-cp-alignment): New.
18022 * ipa-cp.c (ipcp_store_alignment_results): Check
18023 flag_ipa_cp_alignment.
18024 * opts.c (default_options_table): Enable -fipa-cp-alignment for
18025 -O2.
18026 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
18027 * doc/invoke.texi: Document -fipa-cp-alignment.
18028
18029 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
18030
18031 PR target/64793
18032 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
18033 to nil. Adjust comments.
18034
18035 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
18036
18037 * ipa-visibility.c (function_and_variable_visibility): Only
18038 check locality if node is not already local.
18039 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
18040 call_for_symbol_and_aliases instead of
18041 call_for_symbol_thunks_and_aliases.
18042 (ipa_inline): Likewise.
18043 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18044 first walk aliases.
18045 * ipa.c (symbol_table::remove_unreachable_nodes): Use
18046 call_for_symbol_and_aliases.
18047 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18048 (ipa_propagate_frequency_1): Use it; use opt_for_fn
18049 (ipa_propagate_frequency): Update.
18050 (ipa_profile): Add opt_for_fn guards.
18051
18052 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
18053
18054 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
18055 skipping of "strange" tokens.
18056
18057 2015-02-17 Jeff Law <law@redhat.com>
18058
18059 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
18060 obsolete comment.
18061
18062 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
18063
18064 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
18065 as forcing a HARD_DEP between instructions, thereby
18066 disallowing rewriting to break dependencies.
18067
18068 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18069
18070 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
18071 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
18072 variables in boundary that have no inlitalizer encoded and are
18073 not aliases.
18074 * varasm.c (default_binds_local_p_2): External definitions do not
18075 count as definitions here.
18076
18077 2015-02-16 Jeff Law <law@redhat.com>
18078
18079 PR tree-optimization/64823
18080 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
18081 statements.
18082 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18083 threading through blocks with PHIs, but no statements.
18084 (thread_through_normal_block): Distinguish between blocks where
18085 we did not process all the statements and blocks with no statements.
18086
18087 2015-02-16 Jakub Jelinek <jakub@redhat.com>
18088 James Greenhalgh <james.greenhalgh@arm.com>
18089
18090 PR ipa/64963
18091 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
18092 section if not linkonce. Fix up formatting.
18093 (cgraph_node::create_version_clone_with_body): Copy section.
18094 * trans-mem.c (ipa_tm_create_version): Likewise.
18095
18096 2015-02-16 Richard Biener <rguenther@suse.de>
18097
18098 PR tree-optimization/65077
18099 * tree-ssa-structalias.c (get_constraint_for_1): Handle
18100 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
18101 (find_func_aliases): Allow float values to carry pointers again.
18102
18103 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
18104
18105 * doc/install.texi (Specific): Reorder targets list to put
18106 aarch64 in alphabetical order. Add a link to aarch64*-*-*
18107 from the top menu.
18108
18109 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18110 David Edelsohn <dje.gcc@gmail.com>
18111
18112 PR target/65058
18113 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
18114 mapping class to external variable or function reference.
18115 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
18116 mapping class.
18117
18118 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
18119
18120 PR target/53348
18121 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18122 ASM_WEAKEN_DECL if defined.
18123
18124 2015-02-16 Richard Biener <rguenther@suse.de>
18125
18126 PR lto/65015
18127 * varasm.c (default_file_start): For LTO produced units
18128 emit <artificial> as file directive.
18129
18130 2015-02-16 Richard Biener <rguenther@suse.de>
18131
18132 PR tree-optimization/63593
18133 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18134 stmts and releasing SSA names until...
18135 (execute_pred_commoning): ... after processing all chains.
18136
18137 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18138
18139 PR ipa/65059
18140 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18141 external functions.
18142
18143 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
18144
18145 * doc/bugreport.texi: Adjust section titles throughout the file
18146 to use "Title Case".
18147 * doc/extend.texi: Likewise.
18148 * doc/gcov.texi: Likewise.
18149 * doc/implement-c.texi: Likewise.
18150 * doc/implement-cxx.texi: Likewise.
18151 * doc/invoke.texi: Likewise.
18152 * doc/objc.texi: Likewise.
18153 * doc/standards.texi: Likewise.
18154 * doc/trouble.texi: Likewise.
18155
18156 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
18157
18158 * cgraph.h (symtab_node::has_aliases_p): Simplify.
18159 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18160 * tree.c (lookup_binfo_at_offset): Make static.
18161 (get_binfo_at_offset): Do not shadow offset; add explanatory
18162 comment.
18163
18164 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
18165
18166 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18167 for all floading point loads and stores except those using a register
18168 index address.
18169 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18170 to a register.
18171
18172 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18173
18174 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18175 (do_estimate_growth_1): Record if any uninlinable edge was seen.
18176 (estimate_growth): Handle uninlinable edges correctly.
18177 (check_callers): New.
18178 (growth_likely_positive): Handle aliases correctly.
18179
18180 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18181
18182 * ipa-chkp.c: Use iterate_direct_aliases.
18183 * symtab.c (resolution_used_from_other_file_p): Move inline.
18184 (symtab_node::create_reference): Fix formating.
18185 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18186 (symtab_node::iterate_reference): Move inline.
18187 (symtab_node::iterate_referring): Move inline.
18188 (symtab_node::iterate_direct_aliases): Move inline.
18189 (symtab_node::used_from_object_file_p_worker): Inline into ...
18190 (symtab_node::used_from_object_file_p): ... this one; move inline.
18191 (symtab_node::call_for_symbol_and_aliases): Move inline;
18192 use iterate_direct_aliases.
18193 (symtab_node::call_for_symbol_and_aliases_1): New method.
18194 (cgraph_node::call_for_symbol_and_aliases): Move inline;
18195 use iterate_direct_aliases.
18196 (cgraph_node::call_for_symbol_and_aliases_1): New method.
18197 (varpool_node::call_for_node_and_aliases): Rename to ...
18198 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18199 use iterate_direct_aliases.
18200 (varpool_node::call_for_symbol_and_aliases_1): New method.
18201 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18202 (ipa_discover_readonly_nonaddressable_var): Update.
18203 * ipa-devirt.c: Fix formating.
18204 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18205 Move inline.
18206 (cgraph_node::call_for_symbol_and_aliases): Move inline.
18207 (cgraph_node::call_for_symbol_and_aliases_1): New function..
18208 * cgraph.h (used_from_object_file_p_worker): Remove.
18209 (resolution_used_from_other_file_p): Move inline.
18210 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18211 (symtab_node::iterate_reference): Move inline.
18212 (symtab_node::iterate_referring): Move inline.
18213 (symtab_node::iterate_direct_aliases): Move inline.
18214 (symtab_node::used_from_object_file_p_worker): Inline into ...
18215 (symtab_node::used_from_object_file_p): Move inline.
18216 * tree-emutls.c (ipa_lower_emutls): Update.
18217 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18218 (varpool_node::call_for_node_and_aliases): Remove.
18219
18220 2015-02-14 Jakub Jelinek <jakub@redhat.com>
18221
18222 PR tree-optimization/62209
18223 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18224 op == range->exp, insert seq and gimplified code after labels
18225 instead of after the phi.
18226
18227 2015-02-13 Jeff Law <law@redhat.com>
18228
18229 PR bootstrap/65060
18230 Revert my change for tree-optimization/64823.
18231
18232 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18233
18234 PR tree-optimization/65053
18235 * tree-ssa-phiopt.c (value_replacement): When moving assign before
18236 cond, either reset VR on lhs or set it to phi result VR.
18237
18238 2015-02-13 Jeff Law <law@redhat.com>
18239
18240 PR tree-optimization/64823
18241 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18242 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18243 threading through blocks with PHIs, but no statements.
18244 (thread_through_normal_block): Distinguish between blocks where
18245 we did not process all the statements and blocks with no statements.
18246
18247 PR rtl-optimization/47477
18248 * match.pd (convert (plus/minus (convert @0) (convert @1): New
18249 simplifier to narrow arithmetic.
18250
18251 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
18252
18253 PR ipa/65028
18254 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18255 polymorphic call info when type is not known to be preserved.
18256
18257 2015-02-13 Maritn Jambor <mjambor@suse.cz>
18258
18259 PR ipa/65028
18260 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18261 (inline_call): Use it.
18262
18263 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
18264
18265 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18266 GOMP_DEVICE_NVIDIA_PTX.
18267
18268 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18269
18270 PR ipa/65034
18271 * stmt.c (emit_case_nodes): Use void_type_node instead of
18272 NULL_TREE as LABEL_DECL type.
18273
18274 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
18275
18276 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18277 constraints.
18278 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18279 symbolic references to data to be forced to constant memory on the
18280 SOM target.
18281
18282 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
18283
18284 PR tree-optimization/65002
18285 * tree-cfg.c (pass_data_fixup_cfg): Don't update
18286 SSA on start.
18287 * tree-sra.c (some_callers_have_no_vuse_p): New.
18288 (ipa_early_sra): Reject functions whose callers
18289 assume function is read only.
18290
18291 2015-02-13 Richard Biener <rguenther@suse.de>
18292
18293 PR lto/65015
18294 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18295 for LTO produced CUs.
18296
18297 2015-02-13 Bin Cheng <bin.cheng@arm.com>
18298
18299 PR tree-optimization/64705
18300 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18301 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18302 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18303 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18304 expand_simple_operations.
18305
18306 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
18307 Richard Henderson <rth@redhat.com>
18308
18309 PR rtl/32219
18310 * cgraphunit.c (cgraph_node::finalize_function): Set definition
18311 before notice_global_symbol.
18312 (varpool_node::finalize_decl): Likewise.
18313 * varasm.c (default_binds_local_p_2): Rename from
18314 default_binds_local_p_1, add weak_dominate argument. Use direct
18315 returns instead of assigning to local variable. Unify varpool and
18316 cgraph paths via symtab_node. Reject undef weak variables before
18317 testing visibility. Reorder tests for simplicity.
18318 (default_binds_local_p): Use default_binds_local_p_2.
18319 (default_binds_local_p_1): Likewise.
18320 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18321 via symtab_node.
18322 (default_elf_asm_output_external): Emit visibility when specified.
18323
18324 2015-02-13 Alan Modra <amodra@gmail.com>
18325
18326 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18327 code setting up r11 for out-of-line fp restore.
18328
18329 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
18330
18331 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18332 (muser-mode): Likewise.
18333
18334 2015-02-13 Alan Modra <amodra@gmail.com>
18335
18336 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18337 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18338
18339 2015-02-12 David Howells <dhowells@redhat.com>
18340
18341 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18342 warning.
18343 * tree-ssa-uninit.c (dump_predicates): Likewise.
18344 * opts.c (print_filtered_help): Likewise.
18345
18346 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18347
18348 * dwarf2out.c (output_die): Use "%s", name instead of name to
18349 avoid -Wformat-security warning.
18350
18351 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18352 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18353 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18354 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18355
18356 2015-02-12 Jason Merrill <jason@redhat.com>
18357
18358 * common.opt (-flifetime-dse): New.
18359
18360 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18361
18362 PR sanitizer/65019
18363 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18364
18365 PR tree-optimization/65014
18366 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18367 use original second operand of arg0 or arg1 instead of
18368 that adjusted by STRIP_NOPS.
18369
18370 2015-02-11 Jeff Law <law@redhat.com>
18371
18372 PR target/63347
18373 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18374 that needs to be queued, just queue it for a single cycle.
18375
18376 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
18377
18378 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18379 bodies of thunks; comment on why.
18380 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18381 symbols are extern.
18382
18383 2015-02-11 Richard Henderson <rth@redhat.com>
18384
18385 PR sanitize/65000
18386 * tree-eh.c (mark_reachable_handlers): Mark source and destination
18387 regions of __builtin_eh_copy_values.
18388
18389 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18390
18391 PR middle-end/65003
18392 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18393 ultimate alias is MEM with SYMBOL_REF satisfying
18394 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
18395 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18396
18397 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
18398
18399 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18400 "diagnostic-core.h".
18401 (main): Initialize progname, and call diagnostic_initialize.
18402
18403 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18404 instead of __OPENMP_TARGET__.
18405
18406 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18407 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18408 hard-coding PTX_ID.
18409
18410 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
18411
18412 * doc/sourcebuild.texi (pie_enabled): Document.
18413
18414 2015-02-11 Martin Liska <mliska@suse.cz>
18415
18416 PR ipa/64813
18417 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18418 a return value for call to a function that is noreturn.
18419
18420 2015-02-11 Richard Biener <rguenther@suse.de>
18421
18422 PR lto/65015
18423 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18424 and -fresolution.
18425
18426 2015-02-11 Andrew Pinski <apinski@cavium.com>
18427
18428 PR target/64893
18429 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18430 Change the first argument type to size_type_node and add another
18431 size_type_node.
18432 (aarch64_simd_expand_builtin): Handle the new argument to
18433 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18434 print an out when the first two arguments are not
18435 nonzero integer constants.
18436 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18437 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18438
18439 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18440
18441 PR target/61925
18442 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18443 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18444 (ix86_set_current_function): Rewritten.
18445 (ix86_add_new_builtins): Temporarily clear current_target_pragma
18446 when creating builtin fndecls.
18447
18448 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18449
18450 PR ipa/65005
18451 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18452 function.
18453 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18454 have no comdat group.
18455 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18456 (lto_output_varpool_node): Always output alias info.
18457 (output_refs): Output refs of boundary aliases, too.
18458 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18459 (output_symtab): Output call eges in thunks in boundary.
18460 (get_alias_symbol): Remove.
18461 (input_node, input_varpool_node): Do not special case weakrefs.
18462 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18463 alias and thunks targets in the boundary; do not take removed symbols
18464 from their comdat groups.
18465 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18466 (cgraph_node::global_info): Remove.
18467 (cgraph_node::rtl_info): Look through aliases and thunks.
18468 * cgrpah.h (global_info): Remove.
18469 (non_local_p): Remove.
18470
18471 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18472 Sandra Loosemore <sandra@codesourcery.com>
18473
18474 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18475 to inline asm. List dialects in proper order.
18476
18477 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18478 Sandra Loosemore <sandra@codesourcery.com>
18479
18480 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18481
18482 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18483
18484 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18485 modified) reference to Solaris.
18486
18487 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
18488
18489 * doc/extend.texi (Extended Asm): Fix typos.
18490
18491 2015-02-10 Jakub Jelinek <jakub@redhat.com>
18492
18493 PR sanitizer/65004
18494 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18495
18496 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
18497
18498 PR target/64661
18499 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18500 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18501 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18502 * config/sh/constraints.md (Ara, Add): New constraints.
18503 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18504 predicates.
18505 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18506 atomic_mem_operand_0. Don't use force_reg on the memory address.
18507 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18508 Sra constraint. Convert to insn_and_split. Add workaround for
18509 PR 64974.
18510 (atomic_compare_and_swap<mode>_hard): Copy to
18511 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
18512 Use atomic_mem_operand_0 predicate.
18513 (atomic_compare_and_swap<mode>_soft_gusa,
18514 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18515 AraAdd constraints.
18516 (atomic_compare_and_swap<mode>_soft_tcb,
18517 atomic_compare_and_swap<mode>_soft_imask,
18518 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18519 atomic_mem_operand_0 predicate and SraSdd constraints.
18520 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18521 constraint.
18522 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18523 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
18524 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18525 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
18526 force_reg on the memory address.
18527 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18528 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18529 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18530 atomic_mem_operand_1 predicate and Sra constraint.
18531 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18532 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18533 Use atomic_mem_operand_1 predicate.
18534 (atomic_<fetchop_name><mode>_hard): Copy to
18535 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18536 Use atomic_mem_operand_1 predicate.
18537 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18538 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18539 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
18540 insn_and_split. Use atomic_mem_operand_1 predicate.
18541 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18542 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
18543 Use atomic_mem_operand_1 predicate.
18544 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18545 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18546 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18547 in generated insn with original mem operand before emitting the insn.
18548 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18549 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18550 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18551 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18552 Use atomic_mem_operand_1 predicate and AraAdd constraints.
18553 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18554 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18555 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18556 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18557 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18558 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18559 atomic_not_fetch<mode>_soft_tcb,
18560 atomic_<fetchop_name>_fetch<mode>_soft_imask,
18561 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18562 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18563 Use atomic_mem_operand_1 predicate and SraSdd constraints.
18564
18565 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
18566
18567 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18568 and 3 earlyclobber operands.
18569
18570 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18571
18572 * common.opt (fstack-reuse): Mark as optimization.
18573
18574 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18575
18576 PR ipa/64982
18577 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18578
18579 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
18580
18581 PR tree-optimization/64326
18582 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18583
18584 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
18585
18586 PR gcov-profile/61889
18587 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18588
18589 2015-02-10 Richard Biener <rguenther@suse.de>
18590
18591 PR tree-optimization/64995
18592 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18593 value we use is final.
18594 (visit_reference_op_store): Always valueize op.
18595 (visit_use): Properly valueize vuses.
18596
18597 2015-02-10 Richard Biener <rguenther@suse.de>
18598
18599 PR tree-optimization/64909
18600 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18601 pass a scalar-stmt count estimate to the cost model.
18602 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18603
18604 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
18605
18606 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18607 enabled by default together with var-tracking.
18608
18609 2015-02-10 Nick Clifton <nickc@redhat.com>
18610
18611 * config/rl78/rl78.c: Remove DIV attribute code accidentally
18612 included in previous rl78 commit.
18613
18614 2015-02-10 Richard Biener <rguenther@suse.de>
18615
18616 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18617 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18618 return the bitpack.
18619
18620 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18621
18622 PR gcov-profile/61889
18623 * config.in: regenerate.
18624 * configure.in: Likewise.
18625 * configure.ac: Check for ftw.h.
18626 * gcov-tool.c: Check for ftw.h before using nftw.
18627
18628 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18629
18630 PR lto/64076
18631 * ipa-visibility.c (update_visibility_by_resolution_info): Only
18632 assert when not in lto mode.
18633
18634 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18635
18636 * ira-color.c (setup_left_conflict_sizes_p): Simplify
18637 initialization/assignment of conflict_size.
18638
18639 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
18640
18641 PR ipa/64978
18642 * ipa-cp.c (gather_caller_stats): Skip thunks.
18643 (propagate_constants_topo): Skip aliases.
18644
18645 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18646
18647 PR target/64761
18648 * config/sh/sh.c (sh_option_override): Don't change
18649 -freorder-blocks-and-partition to -freorder-blocks even when
18650 unwinding is enabled.
18651 (sh_can_follow_jump): Return false if the followee jump is
18652 a crossing jump when -freorder-blocks-and-partition is specified.
18653 * config/sh/sh.md (*jump_compact_crossing): New insn.
18654
18655 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
18656 Kaz Kojima <kkojima@gcc.gnu.org>
18657
18658 PR target/64761
18659 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18660 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18661 (sh_can_redirect_branch): Rename to ...
18662 (sh_can_follow_jump): ... this. Constify argument types.
18663 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18664 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18665 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18666 * doc/tm.texi: Regenerate.
18667
18668 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18669
18670 PR sanitizer/64981
18671 * builtins.c (expand_builtin): Call targetm.expand_builtin
18672 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18673
18674 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18675
18676 PR ipa/61548
18677 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18678
18679 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18680
18681 PR ipa/63566
18682 * ipa-icf.c (set_local): New function.
18683 (sem_function::merge): Use it.
18684
18685 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18686
18687 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18688 (add_type_duplicate): Fix comparison of BINFOs.
18689
18690 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18691
18692 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18693 on getting VOID pointer.
18694
18695 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18696
18697 PR target/64979
18698 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18699 va_list escapes.
18700
18701 2015-02-09 Richard Biener <rguenther@suse.de>
18702
18703 * genmatch.c (replace_id): Copy expr_type.
18704
18705 2015-02-09 Richard Biener <rguenther@suse.de>
18706
18707 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18708 (streamer_write_tree_bitfields): Declare.
18709 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18710 properly unpack padding.
18711 (unpack_value_fields): Inline ...
18712 (streamer_read_tree_bitfields): ... here.
18713 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18714 and properly add padding bits.
18715 (streamer_pack_tree_bitfields): Fold into ...
18716 (streamer_write_tree_bitfields): ... this new function,
18717 exposing the bitpack object.
18718 * lto-streamer-out.c (lto_write_tree_1): Call
18719 streamer_write_tree_bitfields.
18720
18721 2015-02-09 Richard Biener <rguenther@suse.de>
18722
18723 PR tree-optimization/54000
18724 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18725 (struct ivopts_data): Add loop_loc member.
18726 (tree_ssa_iv_optimize_loop): Dump loop location.
18727 (create_new_ivs): Likewise, also dump number of IVs generated.
18728
18729 2015-02-09 Martin Liska <mliska@suse.cz>
18730
18731 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18732 just if not yet registered.
18733 (ipa_icf_generate_summary): Register callgraph hooks.
18734
18735 2015-02-08 Andrew Pinski <apinski@cavium.com>
18736
18737 * config/aarch64/aarch64.c (gty_dummy): Delete.
18738
18739 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18740
18741 PR ipa/63566
18742 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18743 (cgraph_node::local_p): Remove thunk related FIXME.
18744
18745 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18746
18747 PR ipa/63566
18748 * i386.c (ix86_function_regparm): Look through aliases to see if callee
18749 is local and optimized.
18750 (ix86_function_sseregparm): Likewise; also use target's SSE math
18751 settings; error out instead of silently generating wrong code
18752 on mismatches.
18753 (init_cumulative_args): Look through aliases.
18754
18755 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18756
18757 PR ipa/63566
18758 * ipa-split.c (execute_split_functions): Split if function has aliases.
18759
18760 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18761
18762 PR ipa/63566
18763 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18764 aliases before trying to expand it.
18765 (cgraph_node::expand_thunk): Fix formating.
18766
18767 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
18768
18769 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18770 (Using Assembly Language with C): Expand introduction.
18771 (Basic Asm): Copy-edit. Add more information about uses of
18772 basic asm.
18773 (Extended Asm): Copy-edit. Document new escape syntax and
18774 %l[label] syntax.
18775 (Global Reg Vars): Copy-edit.
18776 (Local Reg Vars): Likewise.
18777
18778 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
18779
18780 PR debug/2714
18781 PR bootstrap/64256
18782 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18783 (DBX_CONTIN_CHAR): Define.
18784
18785 2015-02-06 Sebastian Pop <s.pop@samsung.com>
18786 Brian Rzycki <b.rzycki@samsung.com>
18787
18788 PR tree-optimization/64878
18789 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18790 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18791 Stop recursion at loop phi nodes after having visited a loop phi node.
18792
18793 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18794
18795 * toplev.c (process_options): Change flag_ipa_ra before creating
18796 optimization_{default,current}_node.
18797
18798 PR ipa/64896
18799 * cgraphunit.c (cgraph_node::expand_thunk): If
18800 restype is not is_gimple_reg_type nor the thunk_fndecl
18801 returns aggregate_value_p, set restmp to a temporary variable
18802 instead of resdecl.
18803
18804 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
18805
18806 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18807
18808 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18809
18810 PR target/64205
18811 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18812 add a general secondary reload handler for SDmode, unless we have
18813 both read/write support for SDmode.
18814
18815 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18816
18817 PR middle-end/64937
18818 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18819 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18820 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18821 1 before, push it to abstract_vec.
18822 (dwarf2out_abstract_function): Adjust caller. Don't call
18823 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18824 DECL_ABSTRACT_P flags for all abstract_vec elts.
18825
18826 2015-02-06 Renlin Li <renlin.li@arm.com>
18827
18828 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18829 complex gimple.
18830 * tree-ssa.c (execute_update_addresses_taken): Likewise.
18831
18832 2015-02-06 Jeff Law <law@redhat.com>
18833
18834 PR target/64889
18835 * config/h8300/h8300.c (push): New argument "in_prologue".
18836 Pass "in_prologue" along to "F".
18837 (h8300_push_pop): Corresponding changes.
18838 (h8300_expand_prologue): Likewise.
18839 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
18840
18841 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18842
18843 PR rtl-optimization/64957
18844 PR debug/64817
18845 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18846 IOR rather than for AND.
18847
18848 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
18849
18850 PR target/62631
18851 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18852 of shift-add and (add + shift) operations. Rename local variable.
18853
18854 2015-02-05 Jeff Law <law@redhat.com>
18855
18856 PR target/17306
18857 * config/h8300/constraints.md (U): Correctly dectect
18858 "eightbit_data" memory addresses.
18859 * config/h8300/h8300.c (eightbit_constant_address_p): Also
18860 handle (const (plus (symbol_ref (x)))) where x is declared
18861 as an 8-bit data memory address.
18862 * config/h8300/h8300.md (call, call_value): Correctly detect
18863 "funcvec" functions.
18864
18865 PR target/43264
18866 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18867 24 to 28 bits for the H8/300.
18868
18869 2015-02-06 Alan Modra <amodra@gmail.com>
18870
18871 PR target/64876
18872 * config/rs6000/rs6000.c (chain_already_loaded): New function.
18873 (rs6000_call_aix): Use it.
18874
18875 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
18876
18877 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18878 check.
18879
18880 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
18881
18882 * config/h8300/constraints.md ("U" constraint): Use strict
18883 variant of REG_OK_FOR_BASE_P after reload has started.
18884
18885 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
18886
18887 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18888 define to zero if !TARGET_NEON.
18889 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18890
18891 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18892 Trevor Saunders <tsaunders@mozilla.com>
18893
18894 PR ipa/61548
18895 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18896
18897 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18898
18899 PR ipa/61548
18900 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18901 when removing varpool nodes.
18902
18903 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18904
18905 PR ipa/61548
18906 * varpool.c (varpool_node::remove): Fix order of variables.
18907
18908 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18909
18910 PR ipa/64686
18911 * ipa-inline.c (inline_small_functions): Fix ordering issue between
18912 speculation resolution and key updates.
18913
18914 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18915
18916 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18917 about not letting any speculative edges unupdated.
18918
18919 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18920
18921 PR gcov/64123
18922 * gcov-io.c (gcov_var): Export.
18923
18924 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18925
18926 PR middle-end/64922
18927 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18928 edges that become speculative.
18929
18930 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18931
18932 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18933 or DW_LANG_Fortran08.
18934 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18935 DW_LANG_Fortran08.
18936 (gen_compile_unit_die): Handle "GNU Fortran2003" and
18937 "GNU Fortran2008" language strings.
18938 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18939 * langhooks.h (lang_GNU_Fortran): New prototype.
18940 * langhooks.c (lang_GNU_Fortran): New function.
18941 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18942 lang_GNU_Fortran.
18943
18944 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18945
18946 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18947 (RTX_OK_FOR_OLO10_P): Likewise.
18948
18949 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18950
18951 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18952
18953 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18954
18955 PR middle-end/64922
18956 * gimple.c: Include gimple-ssa.h.
18957 (maybe_remove_unused_call_args): New function.
18958 * gimple.h (maybe_remove_unused_call_args): Declare.
18959 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18960 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18961 * gimple-fold.c (gimple_fold_call): Likewise.
18962
18963 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
18964
18965 PR rtl-optimization/64905
18966 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18967 pointer alignment if it isn't needed.
18968
18969 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18970
18971 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18972 cortex-a72.cortex-a53.
18973 * config/aarch64/aarch64-tune.md: Regenerate.
18974 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18975
18976 2015-02-04 Nick Clifton <nickc@redhat.com>
18977
18978 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18979 inside a MEM.
18980
18981 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18982
18983 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18984 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18985 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18986 of DEF_BUILTIN.
18987 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18988 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18989 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18990 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18991 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18992 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18993 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18994 * tree-core.h (enum built_in_function): In between
18995 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18996 for builtins that use DEF_BUILTIN_CHKP macro.
18997
18998 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
18999
19000 PR debug/64817
19001 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
19002 operands for tcc_comparison exprs. Fix typos.
19003
19004 PR debug/64817
19005 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
19006 of two XORs that have an intervening AND or IOR.
19007
19008 PR debug/64817
19009 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
19010 simplification of XOR of AND to not allocate new rtx before
19011 committing to a simplification.
19012
19013 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19014
19015 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
19016 manual swaps in all peepholes.
19017
19018 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19019
19020 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
19021 of manual swapping implementation.
19022 (aarch64_expand_vec_perm_const_1): Likewise.
19023
19024 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
19025
19026 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
19027 (generic_addrcost_table): Remove NAMED_PARAM.
19028 (cortexa57_addrcost_table): Likewise.
19029 (xgene1_addrcost_table): Likewise.
19030 (generic_regmove_table): Likewise.
19031 (cortexa53_regmove_table): Likewise.
19032 (xgene1_regmove_table): Likewise.
19033 (generic_vector_table): Likewise.
19034 (cortexa57_vector_table): Likewise.
19035 (xgene1_vector_table): Likewise.
19036 (generic_tunings): Likewise.
19037 (cortexa53_tunings): Likewise.
19038 (cortexa57_tunings): Likewise.
19039 (xgene1_tunings): Likewise.
19040
19041 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
19042
19043 * config/arm/arm-cores.def: Add cortex-a72 and
19044 cortex-a72.cortex-a53.
19045 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
19046 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
19047 * config/arm/arm-tune.md: Regenerate.
19048 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
19049 "cortex-a72.cortex-a53".
19050 * doc/invoke.texi (ARM Options/-mtune): Likewise.
19051
19052 2015-02-04 Nick Clifton <nickc@redhat.com>
19053
19054 PR target/64408
19055 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
19056 of accepted codes.
19057 (nonimmediate_di_operand): Likewise.
19058
19059 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
19060 prefixes of known F5 using MSP430 MCUs.
19061
19062 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19063
19064 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
19065 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
19066 instead of __builtin_sqrt.
19067
19068 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
19069
19070 * varasm.c (do_assemble_alias): Follow transparent alias
19071 chain for target.
19072 (default_assemble_visibility): Follow transparent alias
19073 chain for decl name.
19074
19075 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19076
19077 PR middle-end/62103
19078 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
19079 to compute size of referenced value in the constant case.
19080
19081 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19082
19083 PR rtl-optimization/64756
19084 * cse.c (invalidate_dest): New function.
19085 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
19086 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
19087 invalidate and do not record it.
19088
19089 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
19090
19091 PR target/64660
19092 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
19093 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
19094 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
19095 atomic_nand<mode>_soft_tcb): New insns.
19096 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
19097 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
19098 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
19099 Split into atomic_not_fetchsi_hard if operands[0] is unused.
19100 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
19101 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19102 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
19103 atomic_not<mode>_hard if operands[0] is unused.
19104 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
19105 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
19106 if operands[0] is unused.
19107 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
19108 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
19109 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
19110 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19111 unused.
19112 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
19113 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19114 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
19115 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
19116 if operands[0] is unused.
19117 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
19118 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
19119 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
19120 atomic_nand_fetchsi_hard if operands[0] is unused.
19121 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
19122 atomic_nand<mode>_hard if operands[0] is unused.
19123 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
19124 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19125 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
19126 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19127 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
19128 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19129 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19130 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19131 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
19132 atomic_not<mode>_hard if operands[0] is unused.
19133 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19134 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19135 unused.
19136 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19137 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19138 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
19139 atomic_nand<mode>_hard if operands[0] is unused.
19140 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19141 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19142
19143 2015-02-03 David Malcolm <dmalcolm@redhat.com>
19144
19145 PR jit/64810
19146 * Makefile.in (GCC_OBJS): Add gcc-main.o.
19147 * gcc-main.c: New file, containing "main" taken from gcc.c.
19148 * gcc.c (do_self_spec): Free decoded_options.
19149 (class driver): Move declaration to gcc.h.
19150 (main): Move declaration and implementation to new file
19151 gcc-main.c.
19152 (driver_get_configure_time_options): New function.
19153 * gcc.h (class driver): Move this declaration here, from
19154 gcc.c.
19155 (driver_get_configure_time_options): New declaration.
19156
19157 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
19158
19159 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19160 cross-module inlining.
19161 * cgraph.h (cgraph_node): Add flag merged.
19162 * ipa-icf.c (sem_function::merge): Maintain it.
19163
19164 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
19165
19166 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19167 instead of OBJECT_P.
19168
19169 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
19170
19171 PR target/62631
19172 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19173 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19174 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19175 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19176
19177 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19178
19179 PR other/63504
19180 * combine.c (reg_n_sets_max): New variable.
19181 (can_change_dest_mode, reg_nonzero_bits_for_combine,
19182 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19183 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19184 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19185 (rest_of_handle_combine): Initialize reg_n_sets_max.
19186
19187 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
19188
19189 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19190 if some always_inline was inlined, apply changes before inlining
19191 heuristically.
19192
19193 2015-02-02 David Malcolm <dmalcolm@redhat.com>
19194
19195 PR jit/64810
19196 * config/arm/arm.c (arm_option_override): Set
19197 arm_selected_arch/cpu/tune to NULL on entry.
19198
19199 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
19200 Andrew Pinski <pinskia@gcc.gnu.org>
19201 Jakub Jelinek <jakub@gcc.gnu.org>
19202
19203 PR target/64231
19204 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19205 integer typing for small model. Use IN_RANGE.
19206
19207 2015-02-02 Richard Biener <rguenther@suse.de>
19208
19209 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19210 * tree-vrp.c (vrp_valueize_1): Likewise.
19211
19212 2015-02-02 Alan Modra <amodra@gmail.com>
19213
19214 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19215 than mem for toc_restore.
19216 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19217 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19218 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19219
19220 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
19221
19222 PR target/64047
19223 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19224 explicit default options.
19225
19226 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
19227
19228 PR ipa/64872
19229 * ipa-utils.c (ipa_merge_profiles): Add release argument.
19230 * ipa-icf.c (sem_function::merge): Do not release body when merging.
19231 * ipa-utils.h (ipa_merge_profiles): Update prototype.
19232
19233 2015-02-01 Jakub Jelinek <jakub@redhat.com>
19234
19235 PR debug/64817
19236 * cfgexpand.c (deep_ter_debug_map): New variable.
19237 (avoid_deep_ter_for_debug): New function.
19238 (expand_debug_expr): If TERed SSA_NAME is in
19239 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19240 instead of trying to expand SSA_NAME's def stmt.
19241 (expand_debug_locations): When expanding debug bind
19242 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19243 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19244 value.
19245 (pass_expand::execute): Call avoid_deep_ter_for_debug on
19246 all debug bind stmts. Delete deep_ter_debug_map after
19247 expand_debug_location if non-NULL and clear it.
19248
19249 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
19250
19251 PR target/64851
19252 * config/sh/sync.md (atomic_fetch_notsi_hard,
19253 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19254 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19255 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19256 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19257 atomic_not_fetch<mode>_soft_imask): New insns.
19258
19259 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19260
19261 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19262 (rank_for_schedule_debug): Split from ...
19263 (rank_for_schedule): ... this.
19264 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19265 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19266
19267 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19268
19269 * doc/md.texi (Machine Constraints): Alphabetize table by target.
19270 * doc/extend.texi (x86 Variable Attributes): Move section to
19271 correct alphabetization after renaming.
19272 (x86 Type Attributes): Likewise.
19273 (Target Builtins): Re-alphabetize menu.
19274 (x86 Built-in Functions): Move section to correct alphabetization
19275 after renaming.
19276 (x86 transactional memory intrinsics): Likewise.
19277 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19278 and x86 Windows Options in table and menu.
19279 (x86 Options): Move section to correct alphabetization after
19280 renaming.
19281 (x86 Windows Options): Likewise.
19282
19283 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19284
19285 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19286 preferred names of the architecture and its 32- and 64-bit
19287 variants.
19288 * doc/invoke.texi: Likewise.
19289 * doc/md.texi: Likewise.
19290
19291 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19292
19293 PR target/64882
19294 * config/i386/predicates.md (address_no_seg_operand): Reject
19295 non-CONST_INT_P operands in invalid mode.
19296
19297 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19298
19299 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19300 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
19301 * config/i386/predicates.md (address_no_seg_operand): Call
19302 address_operand with VOIDmode.
19303 (vsib_address_operand): Ditto.
19304 (address_mpx_no_base_operand): Ditto.
19305 (address_mpx_no_index_operand): Ditto.
19306
19307 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19308
19309 PR target/64688
19310 * lra-constraints.c (original_subreg_reg_mode): New.
19311 (simplify_operand_subreg): Try to simplify subreg of const. Use
19312 original_subreg_reg_mode for it.
19313 (swap_operands): Update original_subreg_reg_mode.
19314 (curr_insn_transform): Set up original_subreg_reg_mode.
19315
19316 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19317
19318 PR target/64617
19319 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19320 function.
19321 (process_alt_operands): Use it.
19322 (curr_insn_transform): Check the optional reload pseudo class is
19323 ok for the mode.
19324
19325 2015-01-30 Joseph Myers <joseph@codesourcery.com>
19326
19327 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19328 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19329 prototype.
19330 * toplev.h (init_asm_output): Update comment on use of
19331 UNKNOWN_LOCATION with fatal_error.
19332 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19333 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19334 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19335 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19336 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19337 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19338 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19339 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19340 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19341 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19342 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19343 fatal_error changed to pass input_location as first argument.
19344
19345 2015-01-30 Martin Liska <mliska@suse.cz>
19346
19347 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19348 in #pragma GCC diagnostic guards.
19349
19350 2015-01-30 Richard Biener <rguenther@suse.de>
19351
19352 PR tree-optimization/64829
19353 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19354 not add a widening conversion pattern but hand off extra
19355 widenings to callers.
19356 (vect_recog_widen_mult_pattern): Handle extra widening produced
19357 by vect_handle_widen_op_by_const.
19358 (vect_recog_widen_shift_pattern): Likewise.
19359 (vect_pattern_recog_1): Remove excess vertical space in dumping.
19360 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19361 (vect_init_vector_1): Likewise.
19362 (vect_get_vec_def_for_operand): Likewise.
19363 (vect_finish_stmt_generation): Likewise.
19364 (vectorizable_load): Likewise.
19365 (vect_analyze_stmt): Likewise.
19366 (vect_is_simple_use): Likewise.
19367
19368 2015-01-29 Jeff Law <law@redhat.com>
19369
19370 * combine.c (try_combine): Fix typo in comment.
19371
19372 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
19373
19374 PR target/64580
19375 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19376 (rs6000_stack_info): Add assert.
19377 (rs6000_output_savres_externs): New function, split off from...
19378 (rs6000_output_function_prologue): ... here. Do not call it for
19379 thunks.
19380
19381 2015-01-29 Jeff Law <law@redhat.com>
19382
19383 PR target/15184
19384 * combine.c (try_combine): If I0 is a memory load and I3 a store
19385 to a related address, increase the "goodness" of doing a 4-insn
19386 combination with I0-I3.
19387 (make_field_assignment): Handle SUBREGs in the ior+and case.
19388
19389 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19390
19391 PR tree-optimization/64746
19392 * tree-if-conv.c (mask_exists): New function.
19393 (predicate_mem_writes): Save created mask with given size for further
19394 use.
19395 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19396 (ifcvt_repair_bool_pattern): Collect all statements that are root
19397 of bool pattern and use iterative algorithm to remove multiple uses
19398 of predicates, display number of required iterations.
19399
19400 2015-01-29 Richard Biener <rguenther@suse.de>
19401
19402 PR tree-optimization/64853
19403 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19404 stmt will get simulated again.
19405 * tree-ssa-ccp.c (valueize_op_1): Likewise.
19406
19407 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19408
19409 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19410 return_in_pc. Remove redundant assignments.
19411 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19412 (arm_expand_epilogue): Don't compare boolean with true in if condition.
19413
19414 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
19415
19416 * config/i386/i386.c (ix86_mode_after): Make static.
19417
19418 2015-01-29 Richard Biener <rguenther@suse.de>
19419
19420 PR tree-optimization/64844
19421 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19422 dump cost model analysis.
19423 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19424 Do not register adjusted load/store costs here.
19425
19426 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19427 Uros Bizjak <ubizjak@gmail.com>
19428
19429 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19430 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19431 using x86_use_pseudo_pic_reg.
19432 * config/i386/i386.c (ix86_conditional_register_usage): Remove
19433 support for fixed PIC register.
19434 (ix86_use_pseudo_pic_reg): Not static any more.
19435
19436 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19437
19438 PR middle-end/64805
19439 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19440 to avoid error in cgraph node verification.
19441
19442 2015-01-29 Marek Polacek <polacek@redhat.com>
19443
19444 * doc/standards.texi: Reflect that the default for C is gnu11.
19445
19446 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
19447
19448 PR target/64761
19449 * reorg.c (switch_text_sections_between_p): New function.
19450 (relax_delay_slots): Call it when testing if the jump insn
19451 is removable. Use targetm.can_follow_jump when testing if
19452 the conditional branch can follow an unconditional jump.
19453
19454 2015-01-27 Caroline Tice <cmtice@google.com>
19455
19456 Committing VTV Cywin/Ming patch for Patrick Wollgast
19457 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19458 if -fvtable-verify=preinit/std is used.
19459 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19460 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19461 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19462 if -fvtable-verify=preinit/std is used.
19463 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19464 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19465 if -fvtable-verify=preinit/std is used.
19466 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19467 * config/i386/mingw32.h (LIB_SPEC): Likewise.
19468 * varasm.c (assemble_variable): Add code to properly set the comdat
19469 section and name for the .vtable_map_vars section in case the
19470 target is PE or COFF.
19471
19472 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19473
19474 PR ipa/64801
19475 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19476 make sane BB profile.
19477 (cgraph_node::expand_thunk): Make sane BB profile.
19478 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19479 * cgraph.h (init_lowered_empty_function): Update prototype.
19480 * config/i386/i386.c (make_resolver_func): Update call.
19481 * predict.c (gate): Disable branch prediction pass if
19482 profile is already there.
19483
19484 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19485
19486 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19487 * opth-gen.awk: Likewise.
19488 * common.opt: Mark flag_fp_contract_mode as Optimization.
19489
19490 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
19491
19492 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19493 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19494
19495 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
19496
19497 PR target/64659
19498 * config/sh/predicates.md (atomic_arith_operand,
19499 atomic_logical_operand): Remove.
19500 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19501 (atomic_arith_operand_0): New predicate.
19502 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19503 Use atomic_arith_operand_0 for input values.
19504 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19505 atomic_compare_and_swap<mode>_soft_gusa,
19506 atomic_compare_and_swap<mode>_soft_tcb,
19507 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19508 arith_reg_operand instead of register_operand.
19509 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
19510 atomic_arith_operand_0 for newval input.
19511 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19512 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19513 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19514 arith_reg_operand instead of register_operand.
19515 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19516 fetchop_predicate_1, fetchop_constraint_1_llcs,
19517 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19518 fetchop_constraint_1_imask): New code iterator attributes.
19519 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19520 register_operand. Use fetchop_predicate_1.
19521 (atomic_fetch_<fetchop_name>si_hard,
19522 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19523 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19524 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19525 and arith_reg_operand instead of register_operand. Use
19526 fetchop_predicate_1, fetchop_constraint_1_gusa.
19527 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19528 and arith_reg_operand instead of register_operand. Use
19529 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
19530 to allow R0 usage.
19531 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19532 and arith_reg_operand instead of register_operand. Use
19533 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
19534 to allow R0 usage.
19535 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19536 register_operand. Use atomic_logical_operand_1.
19537 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19538 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19539 arith_reg_operand instead of register_operand.
19540 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19541 Use arith_reg_dest and arith_reg_operand instead of register_operand.
19542 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
19543 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19544 register_operand. Use fetchop_predicate_1.
19545 (atomic_<fetchop_name>_fetchsi_hard,
19546 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19547 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19548 fetchop_constraint_1_llcs.
19549 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19550 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19551 fetchop_constraint_1_gusa.
19552 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19553 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19554 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
19555 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19556 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19557 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
19558 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19559 register_operand. Use atomic_logical_operand_1.
19560 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19561 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19562 arith_reg_operand instead of register_operand.
19563 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19564 arith_reg_operand instead of register_operand. Use logical_operand
19565 and K08. Adjust asm sequence to allow R0 usage.
19566 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19567 arith_reg_operand instead of register_operand. Use logical_operand
19568 and K08.
19569
19570 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19571
19572 PR other/63504
19573 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19574 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19575 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19576 only get_full_len HOST_WIDE_INTs from get_val () array rather than
19577 all bits in *val_wide.
19578
19579 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
19580
19581 * varpool.c (tls_model_names): Fix names.
19582 (varpool_node::dump): Dump tls- prefix for tls models.
19583
19584 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
19585 Bernd Schmidt <bernds@codesourcery.com>
19586 Nathan Sidwell <nathan@codesourcery.com>
19587
19588 * config/nvptx/mkoffload.c: New file.
19589 * config/nvptx/t-nvptx: Add build rules for it.
19590 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19591 (extra_programs): Add mkoffload.
19592 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19593 function.
19594 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19595
19596 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
19597
19598 PR middle-end/64809
19599 * cfgexpand.c (reorder_operands): Skip debug gimples.
19600
19601 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
19602
19603 PR tree-optimization/64277
19604 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19605 range info when possible to refine estimation.
19606
19607 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19608
19609 PR tree-optimization/64718
19610 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19611 be a 16bit unsigned integer when n->range is 16.
19612 (bswap_replace): Convert src to that type if necessary for all bswap
19613 sizes. Fix rotation right notation in nearby comment. Use bswap_type
19614 set in pass_optimize_bswap::execute ().
19615
19616 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
19617
19618 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19619 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19620 integer and floating point variants.
19621 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19622
19623 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
19624
19625 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19626 for all vector modes.
19627
19628 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19629
19630 PR bootstrap/64612
19631 * doc/sourcebuild.texi (comdat_group): Document.
19632
19633 2015-01-28 Terry Guo <terry.guo@arm.com>
19634
19635 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19636
19637 2015-01-27 David Malcolm <dmalcolm@redhat.com>
19638
19639 * toplev.c (print_version): Add param "show_global_state", and
19640 only print GGC and plugin information if it is true.
19641 (init_asm_output): Pass in "true" for the new param when calling
19642 print_version.
19643 (process_options): Likewise.
19644 (toplev::main): Likewise.
19645 * toplev.h (print_version): Add new param to decl.
19646
19647 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19648
19649 PR ipa/60871
19650 PR ipa/64139
19651 * tree.c (lookup_binfo_at_offset): New function.
19652 (get_binfo_at_offset): Use it.
19653
19654 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19655
19656 PR ipa/64282
19657 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19658 on vtable being vtable.
19659
19660 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19661
19662 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19663 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19664 -mhotpatch= option.
19665 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19666 -mno-hotpatch options. Change syntax of -mhotpatch= option.
19667 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19668 Renamed.
19669 (s390_hotpatch_trampoline_halfwords_max): Renamed.
19670 (s390_hotpatch_hw_max): New name.
19671 (s390_hotpatch_trampoline_halfwords): Renamed.
19672 (s390_hotpatch_hw_before_label): New name.
19673 (get_hotpatch_attribute): Removed.
19674 (s390_hotpatch_hw_after_label): New name.
19675 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19676 attribute.
19677 (s390_attribute_table): Ditto.
19678 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19679 (s390_function_num_hotpatch_hw): New name.
19680 Remove special handling of inline functions and hotpatching.
19681 Return number of nops before and after the function label.
19682 (s390_can_inline_p): Removed.
19683 (s390_asm_output_function_label): Emit a configurable number of nops
19684 after the function label.
19685 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19686 (TARGET_CAN_INLINE_P) Removed.
19687 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19688
19689 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19690 Jiong Wang <jiong.wang@arm.com>
19691
19692 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19693 of scratch reg.
19694 (cb<optab><mode>1): Likewise.
19695 * config/aarch64/iterators.md (bcond): New define_code_attr.
19696
19697 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19698
19699 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19700 memory accesses.
19701
19702 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19703
19704 * config/s390/s390.c (s390_register_move_cost): Increase costs for
19705 FPR->GPR moves.
19706
19707 2015-01-27 Richard Biener <rguenther@suse.de>
19708
19709 * tree-vrp.c (update_value_range): Intersect the range with
19710 old recorded SSA name range information.
19711
19712 2015-01-27 Nick Clifton <nickc@redhat.com>
19713
19714 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19715 BC, DE and HL registers directly, not via AX.
19716 When decrementing the stack pointer by a large amount, transfer SP
19717 into AX and perform the subtraction there.
19718 (rl78_expand_epilogue): Perform the inverse of the above
19719 enhancements.
19720
19721 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19722
19723 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19724
19725 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19726 Yury Gribov <y.gribov@samsung.com>
19727
19728 PR ubsan/64741
19729 * ubsan.c (ubsan_source_location): Refactor code.
19730 (ubsan_type_descriptor): Update type size. Refactor code.
19731
19732 2015-01-27 Richard Biener <rguenther@suse.de>
19733
19734 PR tree-optimization/56273
19735 PR tree-optimization/59124
19736 PR tree-optimization/64277
19737 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19738 from the first VRP pass.
19739
19740 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19741
19742 PR ipa/64776
19743 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19744 handle the first argument in the same loop as all the other arguments.
19745
19746 PR rtl-optimization/61058
19747 * jump.c (cleanup_barriers): Update basic block boundaries
19748 if BLOCK_FOR_INSN is non-NULL on PREV.
19749
19750 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
19751
19752 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19753 bounds narrowing, already instrumented calls and calls to
19754 not instrumentable functions.
19755
19756 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19757
19758 PR tree-optimization/64807
19759 * wide-int.cc (wi::divmod_internal): Clear
19760 b_dividend[dividend_blocks_needed].
19761
19762 2015-01-26 DJ Delorie <dj@redhat.com>
19763
19764 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19765 volatile memory references.
19766
19767 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
19768
19769 PR target/49263
19770 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19771 remove_insn.
19772 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19773 shifts if it already fits into K08.
19774
19775 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19776
19777 PR ipa/64730
19778 * ipa-inline.c (inline_small_functions): Print "unknown" even
19779 if edge->call_stmt is non-NULL, but has builtins or unknown
19780 location.
19781
19782 PR middle-end/64421
19783 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19784 with asterisk, skip the first character.
19785
19786 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19787
19788 PR target/64806
19789 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19790 order change.
19791
19792 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
19793
19794 PR target/64795
19795 * config/i386/i386.md (*movdi_internal): Also check operand 0
19796 to determine TYPE_LEA operand.
19797 (*movsi_internal): Ditto.
19798
19799 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19800
19801 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19802 OPTION_MASK_QUAD_MEMORY_ATOMIC.
19803
19804 2015-01-26 Renlin Li <renlin.li@arm.com>
19805
19806 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19807 the comment.
19808 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19809 for higher part.
19810
19811 2015-01-26 Richard Biener <rguenther@suse.de>
19812
19813 PR middle-end/64764
19814 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19815 combining two BIT_AND_EXPR predicates.
19816
19817 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19818
19819 PR bootstrap/64754
19820 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19821
19822 2015-01-26 Terry Guo <terry.guo@arm.com>
19823
19824 * config/arm/arm.c (arm_file_start): Update the assignment of
19825 Tag_ABI_HardFP_use.
19826
19827 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
19828
19829 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19830 pipeline model.
19831 config/arm/arm.md: Include the new Cortex-A57 model.
19832 (generic_sched): Don't use generic_sched when tuning for
19833 Cortex-A57.
19834
19835 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
19836 Uros Bizjak <ubizjak@gmail.com>
19837
19838 * config/i386/i386.c (get_builtin_code_for_version): Add
19839 support for BMI and BMI2 multiversion functions.
19840
19841 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19842
19843 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19844 (extract_bit_field): Likewise.
19845 (extract_low_bits): Likewise.
19846 (expand_mult): Likewise.
19847 (expand_mult_highpart_adjust): Likewise.
19848
19849 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
19850
19851 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19852 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19853 * config/i386/i386.c (processor_model): Add
19854 M_INTEL_COREI7_BROADWELL.
19855 (arch_names_table): Add "broadwell".
19856
19857 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
19858
19859 PR target/49263
19860 PR target/53987
19861 PR target/64345
19862 PR target/59533
19863 PR target/52933
19864 PR target/54236
19865 PR target/51244
19866 * config/sh/sh-protos.h
19867 (sh_extending_set_of_reg::can_use_as_unextended_reg,
19868 sh_extending_set_of_reg::use_as_unextended_reg,
19869 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19870 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19871 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19872 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19873 (sh_treg_insns): New class.
19874 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19875 (scope_counter): New class.
19876 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19877 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19878 sh_extending_set_of_reg::can_use_as_unextended_reg,
19879 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19880 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19881 sh_split_treg_set_expr): New functions.
19882 (addsubcosts): Handle treg_set_expr.
19883 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19884 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19885 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19886 (sh_insn_operands_modified_between_p): Make non-static.
19887 * config/sh/predicates.md (zero_extend_movu_operand): Allow
19888 simple_mem_operand in addition to displacement_mem_operand.
19889 (zero_extend_operand): Don't allow zero_extend_movu_operand.
19890 (treg_set_expr, treg_set_expr_not_const01,
19891 arith_reg_or_treg_set_expr): New predicates.
19892 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19893 arith_or_int_operand instead of logical_operand. Convert to
19894 insn_and_split. Try to optimize constant operand in splitter.
19895 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
19896 (*tstqi_t_zero): Delete.
19897 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19898 (tstsi_t_and_not): Delete.
19899 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19900 Convert to insn_and_split.
19901 (unnamed split, tstsi_t_zero_extract_xor,
19902 tstsi_t_zero_extract_subreg_xor_little,
19903 tstsi_t_zero_extract_subreg_xor_big): Delete.
19904 (*tstsi_t_shift_mask): New insn_and_split.
19905 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19906 to recombine with surrounding insns when splitting.
19907 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19908 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19909 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19910 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19911 (*cbranch_div0s: Delete.
19912 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19913 Try to recombine with surrounding insns when splitting. Add operand
19914 order variants.
19915 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19916 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19917 *addc_r_r_msb, *addc_2r_msb): Delete.
19918 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
19919 order variant.
19920 (*addc_negreg_t): New insn_and_split.
19921 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19922 Try to recombine with surrounding insns when splitting.
19923 Add operand order variants.
19924 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19925 insn_and_split patterns.
19926 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
19927 surrounding insns when splitting.
19928 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19929 (*rotcl): Likewise. Add zero_extract variant.
19930 (*ashrsi2_31): New insn_and_split.
19931 (*negc): Convert to insn_and_split. Use treg_set_expr.
19932 (*zero_extend<mode>si2_disp_mem): Update comment.
19933 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19934 condition.
19935 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
19936 with surrounding insns when splitting.
19937 (any_treg_expr_to_reg): New insn_and_split.
19938 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19939 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19940 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19941 *zero_extract_2): New single bit zero extract patterns.
19942 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19943 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19944 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19945 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19946 set destination.
19947 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19948 register_operand for set source.
19949
19950 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
19951
19952 * i386.opt (prefetch_sse): New targetsave.
19953 * i386.c (ix86_function_specific_save): Save prefetch_sse.
19954 (ix86_function_specific_restore): Restore prefetch_sse and initialize
19955 ix86_cost/ix86_tune_cost.
19956
19957 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19958
19959 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19960 Support the JIT by using 0 as the language type.
19961
19962 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
19963
19964 PR target/64317
19965 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
19966 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19967 (mark_regno_live, process_bb_lives): Pass new parameter value to
19968 make_hard_regno_born.
19969
19970 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19971
19972 PR rtl-optimization/63637
19973 PR rtl-optimization/60663
19974 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19975 if elt->cost is MAX_COST for ASM_OPERANDS.
19976 (find_sets_in_insn): Fix up comment typo.
19977 (cse_insn): Don't set src_volatile for all non-volatile
19978 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19979 or with "memory" clobber. Set elt->cost to MAX_COST
19980 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
19981 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19982
19983 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19984
19985 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19986 alternative 1.
19987
19988 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19989
19990 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19991 libgcc/config/i386/elf-lib.h.
19992
19993 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19994
19995 PR driver/64737
19996 * gcc.c (print_configuration): Don't print a blank line at the end
19997 here...
19998 (run_attempt): ... but here unstead.
19999
20000 PR middle-end/64734
20001 * omp-low.c (scan_sharing_clauses): Don't ignore
20002 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
20003 on target data/update constructs.
20004
20005 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
20006
20007 PR target/50928
20008 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
20009 (DEBUG_RELOAD): Removed define.
20010 (m32c_limit_reload_class): Enable traces with if DEBUG0.
20011 (m32c_function_arg): Added a type cast.
20012 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
20013 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
20014 * config/m32c/bitops.md (andqi3_16): Likewise.
20015 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
20016 (push_a01_l): Likewise.
20017
20018 2015-01-23 David Malcolm <dmalcolm@redhat.com>
20019
20020 PR jit/64721
20021 * main.c (main): Construct toplev instances with init_signals=true.
20022 * toplev.c (general_init): Add param "init_signals", and use it to
20023 conditionalize the calls to signal and host_hooks.extra_signals.
20024 (toplev::toplev): Add param "init_signals".
20025 (toplev::main): When invoking general_init, pass m_init_signals
20026 to control whether signal-handlers are installed.
20027 * toplev.h (toplev::toplev): Add param "init_signals".
20028 (toplev::m_init_signals): New field.
20029
20030 2015-01-23 David Malcolm <dmalcolm@redhat.com>
20031
20032 PR jit/64722
20033 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
20034 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
20035 latter may be affected by the former (e.g. on i686).
20036
20037 2015-01-23 Martin Liska <mliska@suse.cz>
20038
20039 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
20040 false positive during profiledbootstrap.
20041
20042 2015-01-23 Tom de Vries <tom@codesourcery.com>
20043
20044 PR libgomp/64672
20045 * lto-opts.c (lto_write_options): Output non-explicit conservative
20046 -fno-openacc.
20047 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
20048 (append_compiler_options): Pass -fopenacc through.
20049
20050 2015-01-23 Tom de Vries <tom@codesourcery.com>
20051
20052 PR libgomp/64707
20053 * lto-opts.c (lto_write_options): Output non-explicit conservative
20054 -fno-openmp.
20055 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
20056 (append_compiler_options): Pass -fopenmp through.
20057
20058 2015-01-23 Jakub Jelinek <jakub@redhat.com>
20059
20060 PR debug/64511
20061 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
20062 GTY markup.
20063
20064 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
20065 * diagnostic.def (DK_ICE_NOBT): New kind.
20066 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
20067 like DK_ICE, but never print backtrace.
20068 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
20069 (internal_error_no_backtrace): New function.
20070 * gcc.c (execute): Use internal_error_no_backtrace instead of
20071 internal_error.
20072
20073 2015-01-22 Jeff Law <law@redhat.com>
20074
20075 PR target/52076
20076 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
20077 improve code density for small immediate to memory case.
20078 (insv): Better handle bitfield assignments when the field is
20079 being set to all ones.
20080 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
20081 operand predicate.
20082
20083 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20084 Jakub Jelinek <jakub@redhat.com>
20085
20086 PR middle-end/64729
20087 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
20088 for !TARGET_LIBC_PROVIDES_SSP version and
20089 -fstack-protector-{all,strong,explicit} otherwise.
20090 * config/freebsd.h (LINK_SSP_SPEC): Handle
20091 -fstack-protector-{strong,explicit}.
20092
20093 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
20094 H.J. Lu <hongjiu.lu@intel.com>
20095
20096 PR ipa/64694
20097 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
20098 heap.
20099
20100 2015-01-22 Wei Mi <wmi@google.com>
20101
20102 PR rtl-optimization/64557
20103 * dse.c (record_store): Call get_addr for mem_addr.
20104 (check_mem_read_rtx): Likewise.
20105
20106 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
20107
20108 * fold-const.c (const_binop): Add early return for non-tcc_binary.
20109
20110 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
20111
20112 * toplev.c (init_local_tick): Process the failure when read
20113 fails for random_seed.
20114
20115 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
20116 'pretty_name' to avoid memory overflow.
20117
20118 2015-01-22 Richard Biener <rguenther@suse.de>
20119
20120 PR middle-end/64728
20121 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20122 abnormal coalescing on undefined SSA names.
20123
20124 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
20125
20126 PR target/64688
20127 PR target/64477
20128 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20129 for alternative 3.
20130 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20131
20132 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
20133
20134 PR middle-end/63325
20135 * fold-const.c (fold_checksum_tree): Don't include value of
20136 expr->decl_with_vis.symtab_node in the checksum.
20137
20138 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20139
20140 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20141
20142 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
20143
20144 PR driver/64690
20145 * gcc.c (insert_comments): New function.
20146 (try_generate_repro): Call it.
20147 (append_text): Removed.
20148
20149 2015-01-22 Richard Biener <rguenther@suse.de>
20150
20151 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20152 with IL incompatible options. Properly honor user optimize
20153 attributes.
20154
20155 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
20156
20157 PR rtl-optimization/64682
20158 * combine.c (distribute_notes): When moving a death note for
20159 a register that is set in the new I2, make sure to put it
20160 before that new I2.
20161
20162 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
20163
20164 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20165 not TARGET_DEFAULT.
20166
20167 2015-01-21 Jakub Jelinek <jakub@redhat.com>
20168
20169 PR debug/64511
20170 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20171 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20172 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20173
20174 PR sanitizer/64706
20175 * doc/invoke.texi (-fsanitize=vptr): Document.
20176
20177 PR rtl-optimization/62078
20178 * dse.c: Include cfgcleanup.h.
20179 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20180 anything call purge_all_dead_edges and cleanup_cfg at the end
20181 of the pass.
20182
20183 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
20184
20185 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20186 edges.
20187
20188 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20189
20190 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20191 decl attribute.
20192
20193 2015-01-21 David Sherwood <david.sherwood@arm.com>
20194 Tejas Belagod <Tejas.Belagod@arm.com>
20195
20196 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20197 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20198 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20199 Removed.
20200
20201 2015-01-21 David Sherwood <david.sherwood@arm.com>
20202 Tejas Belagod <Tejas.Belagod@arm.com>
20203
20204 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20205 (aarch64_reverse_mask): New decls.
20206 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20207 (insn_count): New mode_attr.
20208 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20209 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20210 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20211 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20212 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20213 (aarch64_simd_st4): New patterns.
20214 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20215 (aarch64_reverse_mask): New functions.
20216
20217 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
20218
20219 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20220 Declare.
20221 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20222 addressing modes for BE.
20223 (aarch64_print_operand): Add 'R' specifier.
20224 (aarch64_simd_disambiguate_copy): Delete.
20225 (aarch64_simd_emit_reg_reg_move): New function.
20226 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20227 in define_splits for structural moves.
20228 (mov<mode>): Use less restrictive predicates.
20229 (*aarch64_mov<mode>): Simplify and only allow for LE.
20230 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20231
20232 2015-01-21 Alan Hayward <alan.hayward@arm.com>
20233
20234 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20235
20236 2015-01-21 Richard Henderson <rth@redhat.com>
20237
20238 PR target/64669
20239 * ccmp.c (used_in_cond_stmt_p): Remove.
20240 (expand_ccmp_expr): Don't use it.
20241
20242 2015-01-21 Nick Clifton <nickc@redhat.com>
20243
20244 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20245 PARALLELs.
20246
20247 2015-01-21 Richard Biener <rguenther@suse.de>
20248
20249 PR middle-end/64313
20250 * tree-core.h (builtin_info, builtin_info_type): Turn from
20251 an object with two arrays into an array of an object with
20252 decl and two flags, implicit_p and declared_p.
20253 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20254 set_builtin_decl, set_builtin_decl_implicit_p,
20255 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20256 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20257 * builtins.c (builtin_info): Adjust.
20258 * gimplify.c (gimplify_addr_expr): References to builtins
20259 that have been declared by the user makes them eligible for
20260 use by the compiler. Call set_builtin_decl_implicit_p on them.
20261
20262 2015-01-20 Jeff Law <law@redhat.com>
20263
20264 PR target/59946
20265 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20266 allow pc-relative addresses in operand predicates or constraints.
20267
20268 2015-01-21 Bin Cheng <bin.cheng@arm.com>
20269
20270 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20271 neon on aarch32 processors for stringops.
20272
20273 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20274
20275 PR ipa/63576
20276 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20277
20278 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20279
20280 PR lto/45375
20281 * ipa-inline.c: Include lto-streamer.h
20282 (report_inline_failed_reason): Output source file differences and
20283 flags on optimization/target node mismatch.
20284 (can_inline_edge_p): Consider caller to be the outer inline function;
20285 be less restrictive about matching opimize and optimize_size attributes.
20286 (inline_account_function_p): Break out from ...
20287 (inline_small_functions): ... here.
20288 * ipa-inline-transform.c (clone_inlined_nodes): Use
20289 inline_account_function_p.
20290 (inline_call): Use optimize attribution; use inline_account_function_p.
20291 (inline_transform): Use opt_for_fn.
20292 * ipa-inline.h (inline_account_function_p): Declare.
20293
20294 2015-01-20 Jakub Jelinek <jakub@redhat.com>
20295
20296 PR debug/64663
20297 * dwarf2out.c (decl_piece_node): Don't put bitsize into
20298 mode if bitsize <= 0.
20299 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20300 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20301 sizes and positions.
20302
20303 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
20304
20305 * config/nios2/nios2.c (nios2_asm_file_end): Implement
20306 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20307 needed.
20308 (TARGET_ASM_FILE_END): Define.
20309
20310 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20311
20312 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20313 (struct tune_params): Use the enum.
20314 * arm.c (arm_*_tune): Update.
20315 (arm_option_override): Update.
20316
20317 2015-01-20 Richard Biener <rguenther@suse.de>
20318
20319 PR ipa/64684
20320 * ipa-reference.c (add_static_var): Inline ...
20321 (analyze_function): ... here after splitting out from ...
20322 (is_proper_for_analysis): ... this.
20323
20324 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
20325
20326 PR target/64149
20327 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20328 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20329 replace the conditional with it's true branch.
20330 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20331 (arm_lra_p): Remove.
20332
20333 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
20334
20335 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20336
20337 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20338
20339 * config/tilegx/mul-tables.c: Move symtab.h include after
20340 coretypes.h include.
20341 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20342 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20343 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20344 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20345 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20346
20347 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
20348
20349 PR bootstrap/64676
20350 Revert:
20351 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20352
20353 PR rtl-optimization/64081
20354 * loop-iv.c (def_pred_latch_p): New function.
20355 (latch_dominating_def): Allow specific cases with non-single
20356 definitions.
20357 (iv_get_reaching_def): Likewise.
20358 (check_complex_exit_p): New function.
20359 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20360 with exits not executing on any iteration.
20361
20362 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20363
20364 PR lto/45375
20365 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20366 to set branch cost.
20367
20368 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20369
20370 PR lto/45375
20371 * i386.c (gate): Check flag_expensive_optimizations and
20372 optimize_size.
20373 (ix86_option_override_internal): Drop optimize_size condition
20374 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20375 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20376 MASK_PREFER_AVX128.
20377 (ix86_avx256_split_vector_move_misalign,
20378 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20379 * sse.md (all uses of TARGET_PREFER_AVX128): Add
20380 optimize_insn_for_speed_p check.
20381
20382 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20383
20384 * config/mips/mips.h (FP_ASM_SPEC): New define.
20385 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20386 instead.
20387
20388 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
20389
20390 PR target/53988
20391 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20392 nullptr for insn when reaching the first insn.
20393 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20394 (sh_insn_operands_modified_between_p): Add nullptr check.
20395 (sh_find_extending_set_of_reg): Fix log message. Don't accept
20396 sign extending mem load if the insn contains any UNSPEC or
20397 UNSPEC_VOLATILE.
20398
20399 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20400
20401 * params.def (inline-unit-growth): Drop to 15%.
20402 * invoke.texi (inline-unit-growth): Document change.
20403
20404 2015-01-19 Martin Liska <mliska@suse.cz>
20405
20406 PR ipa/64668
20407 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20408 function for second argument of OBJ_TYPE_REF.
20409
20410 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20411
20412 PR ipa/64218
20413 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20414 whether function is an alias.
20415
20416 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20417
20418 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20419 cases.
20420
20421 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
20422
20423 PR rtl-optimization/64671
20424 * lra-remat.c (operand_to_remat): Don't consider jump and call
20425 insns.
20426
20427 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
20428
20429 PR target/59828
20430 * config/rs6000/default64.h: Include rs6000-cpus.def.
20431 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20432 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20433 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20434 and POWER8.
20435 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20436 POWER8.
20437 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20438 pseudo-op to specify assembler dialect.
20439
20440 2015-01-19 Martin Liska <mliska@suse.cz>
20441
20442 PR ipa/64664
20443 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20444 Handle safe potentially removed nodes during filtering.
20445
20446 2015-01-19 Martin Liska <mliska@suse.cz>
20447
20448 * doc/extend.texi (no_icf): Add new attribute description.
20449 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20450 where the pass attempts to merge a function with no_icf attribute.
20451
20452 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20453
20454 PR target/64532
20455 * doc/md.texi (ARM Options): Document register constraints.
20456
20457 2015-01-19 Jiong Wang <jiong.wang@arm.com>
20458 Andrew Pinski <apinski@cavium.com>
20459
20460 PR target/64304
20461 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20462 (ashl<mode>3): Don't expand if operands[2] is not constant.
20463
20464 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20465
20466 PR target/64448
20467 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20468 Match xor-and-xor RTL pattern.
20469
20470 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20471
20472 PR rtl-optimization/64081
20473 * loop-iv.c (def_pred_latch_p): New function.
20474 (latch_dominating_def): Allow specific cases with non-single
20475 definitions.
20476 (iv_get_reaching_def): Likewise.
20477 (check_complex_exit_p): New function.
20478 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20479 with exits not executing on any iteration.
20480
20481 2015-01-19 Jakub Jelinek <jakub@redhat.com>
20482
20483 * common.opt (fgraphite): Fix a typo.
20484
20485 2015-01-19 Felix Yang <felix.yang@huawei.com>
20486
20487 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20488 pattern.
20489 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20490 uminp, smax_nanp, smin_nanp): New builtins.
20491 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20492 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20493 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20494 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20495 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20496 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20497 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20498 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20499 vpminnms_f32): Rewrite using builtin functions.
20500
20501 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
20502
20503 PR libgomp/64625
20504 * omp-low.c (offload_symbol_decl): Remove variable.
20505 (get_offload_symbol_decl): Remove function.
20506 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20507 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20508 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20509 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20510 BUILT_IN_GOACC_UPDATE don't pass it at all.
20511
20512 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20513
20514 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20515 callers.
20516
20517 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20518
20519 * ipa-chkp.c (chkp_produce_thunks): Add early param
20520 to split thunks production into two passes. Keep
20521 'always_inline' function bodies after the first pass.
20522 (pass_data_ipa_chkp_early_produce_thunks): New.
20523 (pass_ipa_chkp_early_produce_thunks): New.
20524 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20525 chkp_produce_thunks signature.
20526 (make_pass_ipa_chkp_early_produce_thunks): New.
20527 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20528 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20529 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20530
20531 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20532
20533 * cgraph.c (cgraph_node::dump): Dump profile flags.
20534
20535 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
20536
20537 PR target/64652
20538 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20539 reg appear first in the parallel.
20540
20541 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20542
20543 * ipa-reference.c (set_reference_optimization_summary,
20544 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20545 disabled.
20546 (ignore_module_statics): New static var.
20547 (propagate_bits): If ipa-reference is disabled, do not look into local
20548 properties.
20549 (analyze_function): Disable analysis when ipa_reference is disabled.
20550 (generate_summary): Do not dump when reference is disabled;
20551 collect vars accessed from functions with ipa-reference disabled.
20552 (get_read_write_all_from_node): When ipa-reference is disabled, use the
20553 node flags.
20554 (gate): Enable for LTO.
20555 (ignore_edge_p): New function.
20556 (propagate): Skip functions w/o ipa-reference analysis.
20557 * optc-save-gen.awk: Handle optimize_debug correctly.
20558 * opth-gen.awk: Likewise.
20559 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20560 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20561 fira-share-save-slots, fira-share-spill-slots,
20562 fmodulo-sched-allow-regmoves, fpartial-inlining,
20563 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20564 ftracer, ftree-parallelize-loops, fassociative-math,
20565 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20566 Optimization
20567 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20568 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20569 Optimization.
20570 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20571 Fix for IPA.
20572
20573 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20574
20575 PR ipa/64378
20576 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20577 flag correctly.
20578 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20579
20580 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
20581
20582 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20583 Remove duplicate option listings.
20584
20585 2015-01-18 Felix Yang <felix.yang@huawei.com>
20586
20587 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20588 (autofdo_source_profile::get_callsite_total_count,
20589 function_instance::get_function_instance_by_decl,
20590 string_table::get_index, string_table::get_index_by_decl,
20591 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20592 Fix comment typos. Reformatting and minor code rearrangement.
20593
20594 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20595
20596 * config/rs6000/rs6000.md (probe_stack): Delete.
20597 (probe_stack_address): New.
20598
20599 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20600
20601 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20602 to test for 32-bit ABIs, not !TARGET_POWERPC64.
20603
20604 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20605
20606 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20607 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
20608 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
20609 snafu.
20610 (rs6000_libcall_value): Use the new function.
20611
20612 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
20613
20614 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20615
20616 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
20617
20618 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20619 implement a more precise life analysis for it during backward scan.
20620
20621 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
20622
20623 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20624
20625 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
20626
20627 PR rtl-optimization/52773
20628 * calls.c (emit_library_call_value): When pushing arguments use
20629 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20630 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
20631 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20632
20633 2015-01-17 Jeff Law <law@redhat.com>
20634
20635 PR rtl-optimization/32790
20636 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20637 not ZERO_EXTEND in SET_DESTs.
20638
20639 2015-01-17 Alan Modra <amodra@gmail.com>
20640
20641 * cprop.c (do_local_cprop): Revert last change.
20642
20643 2015-01-16 DJ Delorie <dj@redhat.com>
20644 Nick Clifton <nickc@redhat.com>
20645
20646 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20647 (addhi3_real): Likewise. Fix [HL+0] syntax.
20648 (subqi3_real): Likewise.
20649 (subhi3_real): Likewise.
20650 (cbranchqi4_real): Likewise. Allow saddr,#imm.
20651 (cbranchhi4_real): Likewise.
20652 (cbranchhi4_real_inverted): Likewise.
20653 (cbranchsi4_real_lt): Likewise.
20654 (cbranchsi4_real_ge): Likewise.
20655 (cbranchsi4_real_ge): Likewise.
20656 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20657 (sub<mode>3_virt): Likewise.
20658 (cbranchqi4_virt): Likewise.
20659 (cbranchhi4_virt): Likewise.
20660 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20661 always use '[reg+imm]' even when imm is zero.
20662 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20663 (rl78_general_operand): New.
20664 (rl78_nonimmediate_operand): New.
20665 (rl78_nonfar_operand): Use them.
20666 (rl78_nonfar_nonimm_operand): Likewise.
20667 (rl78_stack_based_mem): Fix.
20668 * config/rl78/constraints.md (Ibqi): New.
20669 (IBqi): New.
20670 (Wsa): New.
20671 (Wsf): New.
20672 (Cs1): Fix.
20673 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20674 (iorqi3): Likewise.
20675 (xorqi3): Likewise.
20676 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20677
20678 * config/rl78/constrains (Qs8): New constraint.
20679 * config/rl78/rl78.c (rl78_flags_already_set): New function.
20680 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20681 * config/rl78/rl78-real.md (update_Z): New attribute.
20682 Update patterns to set it.
20683 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20684 shorter compare and branch sequence can be used.
20685 (cbranchhi4_real): Likewise.
20686 (cbranchhi4_real_inverted): Likewise.
20687
20688 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20689 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20690 address space.
20691 * config/rl78/rl78.c (rl78_get_name_encoding): New.
20692 (rl78_option_override): Allow -mes0 only if C.
20693 (characterize_address): Support subregs of symbol_refs.
20694 (rl78_addr_space_address_mode): Move. Add __near.
20695 (rl78_far_p): Likewise.
20696 (rl78_addr_space_pointer_mode): Likewise.
20697 (rl78_as_legitimate_address): Likewise.
20698 (rl78_addr_space_subset_p): Likewise.
20699 (rl78_addr_space_convert): Likewise.
20700 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20701 symbols with -mes0.
20702 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
20703 addressing.
20704 (rl78_alloc_physical_registers_op1): Change logic to prefer
20705 symbol[BC] addressing.
20706 (frodata_section): New.
20707 (rl78_asm_init_sections): Initialize it.
20708 (rl78_select_section): Put __far readonly symbols in .frodata.
20709 (rl78_make_type_far): New.
20710 (rl78_insert_attributes): Force all readonly symbols to be
20711 __far when -mes0.
20712 (rl78_asm_out_integer): New.
20713 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20714 * config/rl78/rl78.opt (-mes0): New.
20715
20716 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20717 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20718 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20719 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20720 (rl78_saddr_p): New.
20721 (rl78_output_aligned_common): New.
20722 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20723 (rl78_handle_saddr_attribute): New.
20724 (rl78_handle_naked_attribute): New.
20725 (rl78_attribute_table): Add saddr.
20726 (rl78_print_operand_1): Don't print '!' on saddr operands.
20727 (rl78_print_operand_1): Strip encodings.
20728 (rl78_sfr_p): New.
20729 (rl78_strip_name_encoding): New.
20730 (rl78_attrlist_to_encoding): New.
20731 (rl78_encode_section_info): New.
20732 (rl78_asm_init_sections): New.
20733 (rl78_select_section): New.
20734 (rl78_output_labelref): New.
20735 (rl78_output_aligned_common): New.
20736 (rl78_asm_out_integer): New.
20737 (rl78_asm_ctor_dtor): New.
20738 (rl78_asm_constructor): New.
20739 (rl78_asm_destructor): New.
20740
20741 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20742 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20743 (transcode_memory_rtx): Update.
20744 (rl78_expand_epilogue): Use A_REG instead of 0.
20745
20746 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20747
20748 * config/arm/arm-protos.h (struct tune_params): New field
20749 sched_autopref_queue_depth.
20750 * config/arm/arm.c (sched-int.h): Include header.
20751 (arm_first_cycle_multipass_dfa_lookahead_guard,)
20752 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20753 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20754 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20755 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20756 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20757 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20758 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20759 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
20760 * config/arm/t-arm (arm.o): Update.
20761 * haifa-sched.c (update_insn_after_change): Update.
20762 (rank_for_schedule): Use auto-prefetcher model, if requested.
20763 (autopref_multipass_init): New static function.
20764 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20765 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20766 variable for debug dumps.
20767 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20768 (autopref_multipass_dfa_lookahead_guard): New global function that
20769 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20770 (init_h_i_d): Update.
20771 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20772 * sched-int.h (enum autopref_multipass_data_status): New const enum.
20773 (autopref_multipass_data_): Structure for auto-prefetcher data.
20774 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20775 (struct _haifa_insn_data:autopref_multipass_data): New field.
20776 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20777 (autopref_multipass_dfa_lookahead_guard): Declare.
20778
20779 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20780
20781 * rtlanal.c (get_base_term): Handle SCRATCH.
20782
20783 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20784
20785 * config/aarch64/aarch64.c
20786 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20787 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20788 * config/arm/arm.c
20789 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20790 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20791
20792 2015-01-17 Alan Modra <amodra@gmail.com>
20793
20794 * cprop.c (do_local_cprop): Disallow replacement of fixed
20795 hard registers.
20796
20797 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20798
20799 PR target/62066
20800 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20801 early return 0.
20802
20803 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20804
20805 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20806 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20807
20808 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20809
20810 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20811 * config/arm/thumb1.md: ... Here.
20812
20813 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20814
20815 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20816 TImode for TARGET_32BIT.
20817
20818 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20819
20820 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20821 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20822 as ...
20823 (rs6000_abi_word_mode): New function.
20824
20825 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20826
20827 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20828 instead of UNITS_PER_WORD to describe the size of stack slots.
20829
20830 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20831
20832 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20833 as rs6000_promote_function_mode. Move comment to there.
20834 (rs6000_promote_function_mode): New function.
20835
20836 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20837
20838 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20839 -mpowerpc64 is active.
20840
20841 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20842
20843 PR middle-end/64353
20844 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20845 virtuals on start.
20846
20847 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20848
20849 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20850 introduced in revision 219724.
20851
20852 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20853 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20854
20855 PR target/64263
20856 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20857 destination is not a GP reg.
20858 (*movdi_aarch64): Likewise.
20859
20860 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
20861
20862 PR target/64623
20863 * config/rs6000/default64.h: Revert ISA change.
20864
20865 2015-01-16 Richard Biener <rguenther@suse.de>
20866
20867 PR middle-end/64614
20868 * tree-ssa-uninit.c: Include tree-cfg.h.
20869 (MAX_SWITCH_CASES): New define.
20870 (convert_control_dep_chain_into_preds): Handle switch statements.
20871 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20872 (normalize_one_pred_1): Do not split bit-manipulations.
20873 Record (x & CST).
20874
20875 2015-01-16 Richard Biener <rguenther@suse.de>
20876
20877 PR tree-optimization/64568
20878 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20879 complex load rewriting for TARGET_MEM_REFs.
20880
20881 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
20882
20883 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20884
20885 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
20886
20887 PR target/64149
20888 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20889 variable.
20890 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20891 (aarch64_lra_p): Remove.
20892
20893 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20894
20895 PR target/64363
20896 * ipa-chkp.h (chkp_instrumentable_p): New.
20897 * ipa-chkp.c: Include tree-inline.h.
20898 (chkp_instrumentable_p): New.
20899 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20900 Fix processing of not instrumentable functions.
20901 (chkp_versioning): Use chkp_instrumentable_p. Warn about
20902 not instrumentable functions.
20903 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20904 chkp_instrumentable_p.
20905 * tree-inline.h (copy_forbidden): New.
20906 * tree-inline.c (copy_forbidden): Not static anymore.
20907
20908 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20909
20910 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20911 ptr1, ptr2 unused.
20912
20913 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20914
20915 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20916 type OP_OUT to OP_INOUT.
20917
20918 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20919
20920 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20921 (high x) y) to y if x and y have the same base.
20922
20923 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20924
20925 * config/arm/cortex-a57.md: New.
20926 * config/aarch64/aarch64.md: Include it.
20927 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20928 * config/aarch64/aarch64-tune.md: Regenerate.
20929
20930 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
20931
20932 PR target/64015
20933 * ccmp.c (expand_ccmp_next): New function.
20934 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20935 and compare insn sequence.
20936 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20937 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20938 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20939 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20940 (*ccmp_ior): Changed to ccmp_ior<mode>.
20941 (cmp<mode>): New pattern.
20942 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20943 parameters.
20944 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20945
20946 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
20947
20948 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20949 _mm256_bsrli_epi128): New.
20950 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20951
20952 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20953
20954 * expmed.c (store_bit_field_using_insv): Improve warning message.
20955 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20956
20957 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20958
20959 PR rtl-optimization/64011
20960 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20961 there is partial overflow.
20962
20963 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20964
20965 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20966 prototype.
20967 (nds32_expand_epilogue_v3pop): Likewise.
20968 * config/nds32/nds32.md (sibcall): Define this for sibling call
20969 optimization.
20970 (sibcall_register): Likewise.
20971 (sibcall_immediate): Likewise.
20972 (sibcall_value): Likewise.
20973 (sibcall_value_register): Likewise.
20974 (sibcall_value_immediate): Likewise.
20975 (sibcall_epilogue): Likewise.
20976 (epilogue): Pass false to indicate this is not a sibcall epilogue.
20977 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20978 (nds32_expand_epilogue_v3pop): Likewise.
20979
20980 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20981
20982 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20983 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20984 (return_internal): New.
20985 (return): Define this named pattern.
20986 (simple_return): Define this named pattern.
20987 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20988 pattern instead of unspec_volatile_func_return.
20989 (nds32_expand_epilogue_v3pop): Likewise.
20990 (nds32_can_use_return_insn): New function.
20991
20992 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20993
20994 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20995 * config/nds32/nds32.md (pop25return): New.
20996 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20997 pop25return pattern.
20998
20999 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21000
21001 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
21002 -mforbid-fp-as-gp, and -mex9 options.
21003
21004 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
21005
21006 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
21007 remove -mgp-direct option.
21008
21009 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21010
21011 * doc/invoke.texi (--param early-inlining-insns): Update default value.
21012 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
21013
21014 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21015
21016 * ipa-inline.c (inline_small_functions): Work around hints
21017 cache issue.
21018
21019 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
21020
21021 PR target/59710
21022 * doc/invoke.texi (Option Summary): Document new Nios II
21023 -mgpopt= syntax.
21024 (Nios II Options): Likewise.
21025 * config/nios2/nios2.opt: Add -mgpopt= option support.
21026 Modify existing -mgpopt and -mno-gpopt options to be aliases.
21027 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
21028 * config/nios2/nios2.c (nios2_option_override): Adjust
21029 -mgpopt defaulting.
21030 (nios2_in_small_data_p): Return true for explicit small data
21031 sections even with -G0.
21032 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
21033 option choices.
21034
21035 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21036
21037 PR ipa/64612
21038 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
21039 of comdat locals.
21040 (inline_call): Fix removal of aliases.
21041
21042 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21043
21044 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
21045 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
21046 * opts.c (common_handle_option): Add -fsanitize=vptr.
21047 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
21048 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
21049 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
21050 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
21051 (ubsan_expand_vptr_ifn): New prototype.
21052 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
21053 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
21054 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
21055 expand_LOOP_VECTORIZED): Make argument nameless, remove
21056 ATTRIBUTE_UNUSED.
21057 (expand_UBSAN_VPTR): New function.
21058 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
21059 in fn spec.
21060 (UBSAN_VPTR): New internal function.
21061 * sanopt.c (tree_map_traits): Renamed to ...
21062 (sanopt_tree_map_traits): ... this.
21063 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
21064 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
21065 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
21066 (maybe_optimize_ubsan_vptr_ifn): New function.
21067 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
21068 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
21069 -fsanitize=vptr.
21070 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
21071 internal calls like pure functions for aliasing, even when they
21072 have other side-effects that prevent making them ECF_PURE.
21073 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
21074 (ubsan_expand_vptr_ifn): New function.
21075
21076 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
21077
21078 PR rtl-optimization/64110
21079 * stmt.c (parse_output_constraint): Process '^' and '$'.
21080 (parse_input_constraint): Ditto.
21081 * lra-constraints.c (process_alt_operands): Process the new
21082 constraints.
21083 * ira-costs.c (record_reg_classes): Process the new constraint
21084 '^'.
21085 * genoutput.c (indep_constraints): Add '^' and '$'.
21086 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
21087 * doc/md.texi: Add description of the new constraints.
21088
21089 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
21090 Bernd Schmidt <bernds@codesourcery.com>
21091 Cesar Philippidis <cesar@codesourcery.com>
21092 James Norris <jnorris@codesourcery.com>
21093 Tom de Vries <tom@codesourcery.com>
21094 Ilmir Usmanov <i.usmanov@samsung.com>
21095 Dmitry Bocharnikov <dmitry.b@samsung.com>
21096 Evgeny Gavrin <e.gavrin@samsung.com>
21097 Jakub Jelinek <jakub@redhat.com>
21098
21099 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
21100 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21101 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21102 New function types.
21103 * builtins.c: Include "gomp-constants.h".
21104 (expand_builtin_acc_on_device): New function.
21105 (expand_builtin, is_inexpensive_builtin): Handle
21106 BUILT_IN_ACC_ON_DEVICE.
21107 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
21108 New macros.
21109 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
21110 flag_openmp.
21111 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
21112 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
21113 i386/intelmic-offload.h.
21114 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
21115 to libgomp and its dependencies.
21116 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
21117 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21118 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21119 * config/ia64/hpux.h (LIB_SPEC): Likewise.
21120 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21121 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21122 * doc/generic.texi: Update for OpenACC changes.
21123 * doc/gimple.texi: Likewise.
21124 * doc/invoke.texi: Likewise.
21125 * doc/sourcebuild.texi: Likewise.
21126 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21127 GF_OMP_FOR_KIND_OACC_LOOP.
21128 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21129 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21130 GF_OMP_TARGET_KIND_OACC_UPDATE,
21131 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21132 Dump more data.
21133 * gimple.c: Update comments for OpenACC changes.
21134 * gimple.def: Likewise.
21135 * gimple.h: Likewise.
21136 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21137 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21138 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21139 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21140 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21141 appropriate place.
21142 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21143 * gimplify.c: Include "gomp-constants.h".
21144 Update comments for OpenACC changes.
21145 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21146 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21147 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21148 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21149 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21150 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21151 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21152 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21153 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21154 OMP_CLAUSE_SEQ.
21155 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21156 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21157 OMP_CLAUSE_SET_MAP_KIND.
21158 (gimplify_oacc_cache): New function.
21159 (gimplify_omp_for): Handle OACC_LOOP.
21160 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21161 OACC_DATA.
21162 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21163 OACC_EXIT_DATA, OACC_UPDATE.
21164 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21165 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21166 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21167 (gimplify_body): Consider flag_openacc next to flag_openmp.
21168 * lto-streamer-out.c: Include "gomp-constants.h".
21169 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21170 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21171 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21172 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21173 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21174 (BUILT_IN_ACC_ON_DEVICE): New builtins.
21175 * omp-low.c: Include "gomp-constants.h".
21176 Update comments for OpenACC changes.
21177 (struct omp_context): Add reduction_map, gwv_below, gwv_this
21178 members.
21179 (extract_omp_for_data, use_pointer_for_field, install_var_field)
21180 (new_omp_context, delete_omp_context, scan_sharing_clauses)
21181 (create_omp_child_function, scan_omp_for, scan_omp_target)
21182 (check_omp_nesting_restrictions, lower_reduction_clauses)
21183 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21184 Update for OpenACC changes.
21185 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21186 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21187 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21188 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21189 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21190 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
21191 OMP_CLAUSE_MAP_*.
21192 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21193 Handle GF_OMP_FOR_KIND_OACC_LOOP.
21194 (expand_omp_target, lower_omp_target): Handle
21195 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21196 GF_OMP_TARGET_KIND_OACC_UPDATE,
21197 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21198 GF_OMP_TARGET_KIND_OACC_DATA.
21199 (pass_expand_omp::execute, execute_lower_omp)
21200 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21201 flag_openmp.
21202 (offload_symbol_decl): New variable.
21203 (oacc_get_reduction_array_id, oacc_max_threads)
21204 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21205 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21206 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21207 (oacc_gimple_assign, oacc_initialize_reduction_data)
21208 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21209 functions.
21210 (is_targetreg_ctx): Remove function.
21211 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21212 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21213 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21214 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21215 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21216 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21217 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21218 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21219 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21220 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21221 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21222 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21223 * tree-core.h: Update comments for OpenACC changes.
21224 (enum omp_clause_map_kind): Remove.
21225 (struct tree_omp_clause): Change type of map_kind member from enum
21226 omp_clause_map_kind to unsigned char.
21227 * tree-inline.c: Update comments for OpenACC changes.
21228 * tree-nested.c: Likewise. Include "gomp-constants.h".
21229 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21230 (convert_tramp_reference_stmt, convert_gimple_call): Update for
21231 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21232 OMP_CLAUSE_SET_MAP_KIND.
21233 * tree-pretty-print.c: Include "gomp-constants.h".
21234 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21235 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21236 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21237 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21238 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21239 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
21240 instead of OMP_CLAUSE_MAP_*.
21241 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21242 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21243 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21244 * tree-streamer-in.c: Include "gomp-constants.h".
21245 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21246 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
21247 * tree-streamer-out.c: Include "gomp-constants.h".
21248 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21249 OMP_CLAUSE_MAP_*.
21250 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21251 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21252 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21253 * tree.c (omp_clause_num_ops): Update accordingly.
21254 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21255 Likewise.
21256 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21257 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21258 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21259 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21260 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21261 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21262 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21263 (OMP_CLAUSE_SET_MAP_KIND): New macro.
21264 * varpool.c (varpool_node::get_create): Consider flag_openacc next
21265 to flag_openmp.
21266 * config/i386/intelmic-offload.h: New file.
21267 * config/nvptx/offload.h: Likewise.
21268
21269 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21270
21271 * explow.h: Remove duplicate contents.
21272 * dojump.h: Likewise.
21273
21274 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
21275
21276 * arm.c (arm_xgene_tune): Add default initializer for instruction
21277 fusion.
21278
21279 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21280
21281 PR ipa/64068
21282 PR ipa/64559
21283 * ipa.c (symbol_table::remove_unreachable_nodes):
21284 Do not put abstract origins into boundary.
21285
21286 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
21287
21288 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21289 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21290
21291 2015-01-15 Steve Ellcey <sellcey@mips.com>
21292
21293 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21294 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21295 builtins.def, and chkp-builtins.def.
21296
21297 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
21298
21299 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21300 ISA 2.7 (POWER8).
21301
21302 2015-01-15 Richard Biener <rguenther@suse.de>
21303
21304 PR tree-optimization/61743
21305 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21306 information on PHIs for some simple cases.
21307
21308 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21309
21310 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21311 Include xgene1.md.
21312 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21313 * config/arm/arm-cores.def (xgene1): New entry.
21314 * config/arm/arm-tables.opt: Regenerate.
21315 * config/arm/arm-tune.md: Regenerate.
21316 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21317
21318 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21319
21320 * tree-if-conv.c: Include hash-map.h.
21321 (aggressive_if_conv): New variable.
21322 (fold_build_cond_expr): Add simplification of non-zero condition.
21323 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21324 destination block is not always executed.
21325 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21326 than two predecessors if AGGRESSIVE_IF_CONV is true.
21327 (if_convertible_stmt_p): Fix commentary.
21328 (all_preds_critical_p): New function.
21329 (has_pred_critical_p): New function.
21330 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21331 BB can have more than two predecessors and all incoming edges can be
21332 critical.
21333 (predicate_bbs): Skip predication for loop exit block, use build2_loc
21334 to compute predicate for true edge.
21335 (find_phi_replacement_condition): Delete this function.
21336 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21337 Allow interchange PHI arguments if EXTENDED is false.
21338 Change check that block containing reduction statement candidate
21339 is predecessor of phi-block since phi may have more than two arguments.
21340 (phi_args_hash_traits): New helper structure.
21341 (struct phi_args_hash_traits): New type.
21342 (phi_args_hash_traits::hash): New function.
21343 (phi_args_hash_traits::equal_keys): New function.
21344 (gen_phi_arg_condition): New function.
21345 (predicate_scalar_phi): Add handling of phi nodes with more than two
21346 arguments, delete COND and TRUE_BB arguments, insert body of
21347 find_phi_replacement_condition to predicate ordinary phi nodes.
21348 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21349 delete call of find_phi_replacement_condition and invoke
21350 predicate_scalar_phi with two arguments.
21351 (insert_gimplified_predicates): Add assert that non-predicated block
21352 don't have statements to insert.
21353 (ifcvt_split_critical_edges): New function.
21354 (ifcvt_split_def_stmt): Likewise.
21355 (ifcvt_walk_pattern_tree): Likewise.
21356 (stmt_is_root_of_bool_pattern): Likewise.
21357 (ifcvt_repair_bool_pattern): Likewise.
21358 (ifcvt_local_dce): Likewise.
21359 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21360 is copy of inner or outer loop force_vectorize field, invoke
21361 ifcvt_split_critical_edges, ifcvt_local_dce and
21362 ifcvt_repair_bool_pattern for aggressive if-conversion.
21363
21364 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
21365
21366 * config/aarch64/aarch64.md: Include xgene1.md.
21367 * config/aarch64/xgene1.md: New file.
21368
21369 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21370
21371 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21372 xgene1 (APM XGene-1) core definition.
21373 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21374 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21375 * doc/invoke.texi: Document -mcpu=xgene1.
21376
21377 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21378
21379 * dojump.h: New header file.
21380 * explow.h: Likewise.
21381 * expr.h: Remove includes.
21382 Move expmed.c prototypes to expmed.h.
21383 Move dojump.c prototypes to dojump.h.
21384 Move alias.c prototypes to alias.h.
21385 Move explow.c prototypes to explow.h.
21386 Move calls.c prototypes to calls.h.
21387 Move emit-rtl.c prototypes to emit-rtl.h.
21388 Move varasm.c prototypes to varasm.h.
21389 Move stmt.c prototypes to stmt.h.
21390 (saved_pending_stack_adjust): Move to dojump.h.
21391 (adjust_address): Move to explow.h.
21392 (adjust_address_nv): Move to emit-rtl.h.
21393 (adjust_bitfield_address): Likewise.
21394 (adjust_bitfield_address_size): Likewise.
21395 (adjust_bitfield_address_nv): Likewise.
21396 (adjust_automodify_address_nv): Likewise.
21397 * explow.c (expr_size): Move to expr.c.
21398 (int_expr_size): Likewise.
21399 (tree_expr_size): Likewise.
21400 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21401 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21402 * genemit.c (main): Generate includes statistics.h, real.h,
21403 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21404 stmt.h.
21405 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21406 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21407 explow.h, emit-rtl.h, stmt.h.
21408 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21409 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21410 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21411 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21412 emit-rtl.h, varasm.h, stmt.h.
21413 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21414 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21415 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21416 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21417 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21418 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21419 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21420 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21421 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21422 tm.h tree.h varasm.h vec.h wide-int.h.
21423 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21424 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21425 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21426 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21427 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21428 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21429 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21430 * loop-iv.c: Likewise.
21431 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21432 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21433 statistics.h stmt.h tree.h varasm.h wide-int.h.
21434 * lra-constraints.c: Likewise.
21435 * lra-eliminations.c: Likewise.
21436 * lra-lives.c: Likewise.
21437 * lra-remat.c: Likewise.
21438 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21439 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21440 statistics.h stmt.h tree.h varasm.h wide-int.h.
21441 * hw-doloop.c: Likewise.
21442 * ira-color.c: Likewise.
21443 * ira-emit.c: Likewise.
21444 * loop-doloop.c: Likewise.
21445 * loop-invariant.c: Likewise.
21446 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21447 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21448 statistics.h stmt.h tree.h varasm.h wide-int.h.
21449 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21450 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21451 statistics.h stmt.h tree.h varasm.h wide-int.h.
21452 * combine-stack-adj.c: Likewise.
21453 * cse.c: Likewise.
21454 * ddg.c: Likewise.
21455 * ifcvt.c: Likewise.
21456 * ira-costs.c: Likewise.
21457 * jump.c: Likewise.
21458 * lra-coalesce.c: Likewise.
21459 * lra-spills.c: Likewise.
21460 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21461 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21462 stmt.h varasm.h wide-int.h.
21463 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21464 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21465 varasm.h.
21466 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21467 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21468 statistics.h stmt.h varasm.h wide-int.h.
21469 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21470 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21471 varasm.h wide-int.h.
21472 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21473 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21474 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21475 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21476 statistics.h stmt.h.
21477 * config/tilepro/tilepro.c: Likewise.
21478 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21479 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21480 * config/pdp11/pdp11.c: Likewise.
21481 * config/xtensa/xtensa.c: Likewise.
21482 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21483 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21484 varasm.h.
21485 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21486 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21487 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21488 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21489 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21490 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21491 * rtl-chkp.c: Likewise.
21492 * tree-chkp-opt.c: Likewise.
21493 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21494 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21495 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21496 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21497 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21498 statistics.h stmt.h.
21499 * tree-vect-data-refs.c: Likewise.
21500 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21501 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21502 rtl.h statistics.h stmt.h varasm.h.
21503 * internal-fn.c: Likewise.
21504 * ipa-icf-gimple.c: Likewise.
21505 * lto-section-out.c: Likewise.
21506 * tree-data-ref.c: Likewise.
21507 * tree-nested.c: Likewise.
21508 * tree-outof-ssa.c: Likewise.
21509 * tree-predcom.c: Likewise.
21510 * tree-pretty-print.c: Likewise.
21511 * tree-scalar-evolution.c: Likewise.
21512 * tree-ssa-strlen.c: Likewise.
21513 * tree-vect-loop.c: Likewise.
21514 * tree-vect-patterns.c: Likewise.
21515 * tree-vect-slp.c: Likewise.
21516 * tree-vect-stmts.c: Likewise.
21517 * tsan.c: Likewise.
21518 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21519 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21520 stmt.h.
21521 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21522 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21523 statistics.h stmt.h varasm.h.
21524 * loop-unroll.c: Likewise.
21525 * ubsan.c: Likewise.
21526 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21527 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21528 stmt.h varasm.h.
21529 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21530 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21531 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21532 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21533 statistics.h stmt.h.
21534 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21535 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21536 statistics.h stmt.h varasm.h.
21537 * gimple-match-head.c: Likewise.
21538 * lto-cgraph.c: Likewise.
21539 * lto-section-in.c: Likewise.
21540 * lto-streamer-in.c: Likewise.
21541 * lto-streamer-out.c: Likewise.
21542 * tree-affine.c: Likewise.
21543 * tree-cfg.c: Likewise.
21544 * tree-cfgcleanup.c: Likewise.
21545 * tree-if-conv.c: Likewise.
21546 * tree-into-ssa.c: Likewise.
21547 * tree-ssa-alias.c: Likewise.
21548 * tree-ssa-copyrename.c: Likewise.
21549 * tree-ssa-dse.c: Likewise.
21550 * tree-ssa-forwprop.c: Likewise.
21551 * tree-ssa-live.c: Likewise.
21552 * tree-ssa-math-opts.c: Likewise.
21553 * tree-ssa-pre.c: Likewise.
21554 * tree-ssa-sccvn.c: Likewise.
21555 * tree-tailcall.c: Likewise.
21556 * tree-vect-generic.c: Likewise.
21557 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21558 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21559 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21560 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21561 * varasm.c: Likewise.
21562 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21563 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21564 varasm.h.
21565 * init-regs.c: Likewise.
21566 * ira.c: Likewise.
21567 * omp-low.c: Likewise.
21568 * stack-ptr-mod.c: Likewise.
21569 * tree-ssa-reassoc.c: Likewise.
21570 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21571 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21572 varasm.h.
21573 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21574 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21575 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21576 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21577 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21578 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21579 * tree-ssa-phiopt.c: Likewise.
21580 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21581 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21582 * config/fr30/fr30.c: Likewise.
21583 * config/frv/frv.c: Likewise.
21584 * expr.c: Likewise.
21585 * final.c: Likewise.
21586 * optabs.c: Likewise.
21587 * passes.c: Likewise.
21588 * simplify-rtx.c: Likewise.
21589 * stmt.c: Likewise.
21590 * toplev.c: Likewise.
21591 * var-tracking.c: Likewise.
21592 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21593 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21594 * lower-subreg.c: Likewise.
21595 * postreload-gcse.c: Likewise.
21596 * ree.c: Likewise.
21597 * reginfo.c: Likewise.
21598 * store-motion.c: Likewise.
21599 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21600 fixed-value.h hashtab.h real.h stmt.h varasm.h.
21601 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21602 fixed-value.h hashtab.h statistics.h stmt.h.
21603 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21604 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21605 * except.c: Likewise.
21606 * explow.c: Likewise.
21607 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21608 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21609 varasm.h.
21610 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21611 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21612 * tree-ssa-structalias.c: Likewise.
21613 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21614 fixed-value.h insn-config.h real.h statistics.h.
21615 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21616 fixed-value.h insn-config.h real.h statistics.h stmt.h.
21617 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21618 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21619 * cfgbuild.c: Likewise.
21620 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21621 fixed-value.h real.h rtl.h statistics.h stmt.h.
21622 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21623 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21624 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21625 fixed-value.h real.h statistics.h stmt.h.
21626 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21627 fixed-value.h real.h statistics.h stmt.h varasm.h.
21628 * cprop.c: Likewise.
21629 * modulo-sched.c: Likewise.
21630 * postreload.c: Likewise.
21631 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21632 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21633 statistics.h stmt.h varasm.h.
21634 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21635 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21636 rtl.h statistics.h stmt.h varasm.h.
21637 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21638 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21639 varasm.h.
21640 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21641 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21642 varasm.h.
21643 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21644 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21645 varasm.h.
21646 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21647 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21648 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21649 function.h real.h statistics.h stmt.h varasm.h.
21650 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21651 insn-config.h real.h statistics.h stmt.h.
21652 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21653 statistics.h stmt.h.
21654 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21655 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21656 statistics.h stmt.h varasm.h.
21657 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21658 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21659 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21660 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21661 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21662 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21663 statistics.h stmt.h varasm.h.
21664 * ipa-polymorphic-call.c: Likewise.
21665 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21666 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21667 statistics.h stmt.h.
21668 * config/c6x/c6x.c: Likewise.
21669 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21670 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21671 statistics.h stmt.h varasm.h.
21672 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21673 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21674 stmt.h varasm.h.
21675 * ipa-split.c: Likewise.
21676 * tree-eh.c: Likewise.
21677 * tree-ssa-dce.c: Likewise.
21678 * tree-ssa-loop-niter.c: Likewise.
21679 * tree-vrp.c: Likewise.
21680 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21681 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21682 stmt.h.
21683 * config/nds32/nds32-fp-as-gp.c: Likewise.
21684 * config/nds32/nds32-intrinsic.c: Likewise.
21685 * config/nds32/nds32-isr.c: Likewise.
21686 * config/nds32/nds32-md-auxiliary.c: Likewise.
21687 * config/nds32/nds32-memory-manipulation.c: Likewise.
21688 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21689 * config/nds32/nds32-predicates.c: Likewise.
21690 * config/nds32/nds32.c: Likewise.
21691 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21692 fixed-value.h hashtab.h real.h statistics.h.
21693 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21694 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21695 * config/arm/arm.c: Likewise.
21696 * config/avr/avr.c: Likewise.
21697 * config/bfin/bfin.c: Likewise.
21698 * config/h8300/h8300.c: Likewise.
21699 * config/i386/i386.c: Likewise.
21700 * config/ia64/ia64.c: Likewise.
21701 * config/iq2000/iq2000.c: Likewise.
21702 * config/m32c/m32c.c: Likewise.
21703 * config/m32r/m32r.c: Likewise.
21704 * config/m68k/m68k.c: Likewise.
21705 * config/mcore/mcore.c: Likewise.
21706 * config/mep/mep.c: Likewise.
21707 * config/mips/mips.c: Likewise.
21708 * config/mn10300/mn10300.c: Likewise.
21709 * config/moxie/moxie.c: Likewise.
21710 * config/pa/pa.c: Likewise.
21711 * config/rl78/rl78.c: Likewise.
21712 * config/rx/rx.c: Likewise.
21713 * config/s390/s390.c: Likewise.
21714 * config/sh/sh.c: Likewise.
21715 * config/sparc/sparc.c: Likewise.
21716 * config/spu/spu.c: Likewise.
21717 * config/stormy16/stormy16.c: Likewise.
21718 * config/v850/v850.c: Likewise.
21719 * config/vax/vax.c: Likewise.
21720 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21721 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21722 * config/msp430/msp430.c: Likewise.
21723 * predict.c: Likewise.
21724 * value-prof.c: Likewise.
21725 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21726 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21727 * config/microblaze/microblaze.c: Likewise.
21728 * config/nios2/nios2.c: Likewise.
21729 * config/rs6000/rs6000.c: Likewise.
21730 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21731 insn-config.h real.h rtl.h statistics.h stmt.h.
21732 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21733 insn-config.h real.h statistics.h stmt.h.
21734 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21735 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21736 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21737 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21738 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21739 fixed-value.h real.h statistics.h stmt.h.
21740 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21741 fixed-value.h statistics.h stmt.h.
21742 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21743 stmt.h.
21744
21745 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21746
21747 * gengtype.c (create_user_defined_type): Workaround
21748 -Wmaybe-uninitialized false positives.
21749 * cse.c (fold_rtx): Likewise.
21750 * loop-invariant.c (gain_for_invariant): Likewise.
21751
21752 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
21753
21754 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21755 set the memory attributes in all cases but clear MEM_EXPR if need be.
21756
21757 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21758
21759 PR tree-optimization/64434
21760 * cfgexpand.c (reorder_operands): New function.
21761 (expand_gimple_basic_block): Insert call of reorder_operands if
21762 optimized is true.
21763
21764 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
21765
21766 * config/mips/micromips.md (*swp): Remove explicit parallel.
21767 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21768 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21769 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21770 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21771 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21772 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21773 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21774 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21775 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21776 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21777 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21778 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21779 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21780 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21781 (mips_wrdsp): Likewise.
21782 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21783 parallel.
21784 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21785 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21786 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21787 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21788 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21789 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21790 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21791 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21792 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21793
21794 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21795
21796 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21797 (mips_print_operand): Support 'y' to print exact log2 in decimal
21798 of a const_int.
21799 * config/mips/mips.h (ISA_HAS_LSA): New define.
21800 (ISA_HAS_DLSA): Likewise.
21801 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21802 * config/mips/predicates.md (const_immlsa_operand): New predicate.
21803
21804 2015-01-15 Martin Liska <mliska@suse.cz>
21805
21806 PR target/64377
21807 * optc-save-gen.awk: Add support for array types.
21808
21809 2015-01-15 Richard Biener <rguenther@suse.de>
21810
21811 PR middle-end/64365
21812 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21813 for MEM_REF access functions with the same base can never partially
21814 overlap.
21815
21816 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
21817
21818 * common.opt: New option -fstack-protector-explicit.
21819 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21820 (stack_protect_decl_phase): Handle stack_protect attribute for
21821 explicit stack protection requests.
21822 (expand_used_vars): Similarly.
21823 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21824 * doc/extend.texi: Add documentation for "stack_protect" attribute.
21825 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21826
21827 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
21828
21829 PR target/53988
21830 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21831 reg-reg copies.
21832 (sh_extending_set_of_reg): New struct.
21833 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21834 sh_remove_reg_dead_or_unused_notes): New Declarations.
21835 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21836 sh_find_extending_set_of_reg, sh_split_tst_subregs,
21837 sh_extending_set_of_reg::use_as_extended_reg): New functions.
21838 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21839 convert to insn_and_split and use new function sh_split_tst_subregs.
21840
21841 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
21842
21843 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21844 option.
21845 (Optimization Options): Move -fuse-ld documentation to...
21846 (Link Options): ...here.
21847
21848 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21849
21850 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21851 offsets.
21852 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21853 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21854 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21855 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21856 instead of ZR for the memory operand of LL/SC.
21857 (compare_and_swap_12, sync_add<mode>): Likewise.
21858 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21859 (sync_new_<optab>_12, sync_nand_12): Likewise.
21860 (sync_old_nand_12, sync_new_nand_12): Likewise.
21861 (sync_sub<mode>, sync_old_add<mode>): Likewise.
21862 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21863 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21864 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21865 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21866 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21867 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21868 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21869 * doc/md.texi (ZC): Update description.
21870
21871 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21872
21873 * builtins.c (expand_builtin_atomic_exchange): Remove error when
21874 memory model is CONSUME.
21875 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21876 expand_builtin_atomic_store): Change invalid memory model errors to
21877 warnings.
21878 (expand_builtin_atomic_clear): Change invalid model errors to warnings
21879 and issue warning for CONSUME.
21880
21881 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
21882
21883 * lto-cgraph: Update function comments for
21884 lto_symtab_encoder_encode_*.
21885
21886 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21887
21888 * Makefile.in (site.exp): Do not set ENABLE_LTO.
21889
21890 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21891
21892 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21893 * lto-cgraph.c (select_what_to_stream): Remove argument, use
21894 lto_stream_offload_p instead.
21895 * lto-streamer.h (select_what_to_stream): Remove argument.
21896 * passes.c (ipa_write_summaries): Likewise.
21897 * tree-pass.h (ipa_write_summaries): Likewise.
21898
21899 2015-01-14 Richard Biener <rguenther@suse.de>
21900
21901 PR tree-optimization/59354
21902 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21903 groups larger than the slp group size as having gaps.
21904
21905 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21906
21907 PR middle-end/59448
21908 * builtins.c (get_memmodel): Promote consume to acquire always.
21909
21910 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21911
21912 PR target/64386
21913 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21914 V32HImode.
21915
21916 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21917
21918 PR target/64393
21919 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21920 Enable AVX512BW.
21921 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21922 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21923 AVX512VBMI, as it implies AVX512BW.
21924
21925 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21926
21927 PR target/64387
21928 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21929 (vec_unpacks_hi_v16sf): Ditto.
21930
21931 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21932
21933 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21934 is not available.
21935
21936 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21937
21938 * doc/invoke.texi (mapcs): Mention deprecation.
21939 (mapcs-frame): Likewise.
21940
21941 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
21942
21943 PR target/64453
21944 * config/arm/arm.c (callee_saved_reg_p): Define.
21945 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21946 register is callee saved instead of !call_used_regs[reg].
21947 (thumb1_compute_save_reg_mask): Likewise.
21948
21949 2015-01-14 Hale Wang <hale.wang@arm.com>
21950
21951 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21952 Cortex-M7.
21953
21954 2015-01-14 Richard Biener <rguenther@suse.de>
21955
21956 PR lto/64415
21957 * tree-inline.c (insert_debug_decl_map): Check destination
21958 function MAY_HAVE_DEBUG_STMTS.
21959 (insert_init_debug_bind): Likewise.
21960 (insert_init_stmt): Remove redundant check.
21961 (remap_gimple_stmt): Drop debug stmts if the destination
21962 function has var-tracking assignments disabled.
21963
21964 2015-01-14 Martin Liska <mliska@suse.cz>
21965
21966 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21967 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21968
21969 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21970
21971 PR target/64460
21972 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21973 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21974
21975 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21976
21977 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21978 level from an ARCH; do not inject the default.
21979 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21980 MIPS_ISA_LEVEL_SPEC.
21981 (MIPS_ISA_NAN2008_SPEC): Update comment.
21982 (BASE_DRIVER_SELF_SPECS): Likewise.
21983 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21984 MIPS_DEFAULT_ISA_LEVEL_SPEC.
21985 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21986 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21987 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21988
21989 2015-01-14 Richard Biener <rguenther@suse.de>
21990
21991 PR tree-optimization/64493
21992 PR tree-optimization/64495
21993 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21994 assign the proper vectorized PHI to the inner loop exit PHIs.
21995
21996 2015-01-14 Joey Ye <joey.ye@arm.com>
21997
21998 * config/arm/arm.c (arm_compute_save_reg_mask):
21999 Do not save lr in case of tail call.
22000 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
22001
22002 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
22003
22004 * tree-vrp.c (check_array_ref): Emit more warnings
22005 for warn_array_bounds >= 2.
22006 * common.opt: New option -Warray-bounds=.
22007 * doc/invoke.texi: Document -Warray-bounds=.
22008
22009 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
22010
22011 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
22012 (mforbid-fp-as-gp): Remove.
22013 (mex9): Remove.
22014 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
22015 (nds32_symbol_load_store_p): Remove.
22016 (nds32_fp_as_gp_check_available): Clean up implementation.
22017 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
22018 cases.
22019 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
22020 fp-as-gp and ex9 cases.
22021
22022 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22023
22024 * tree-profile.c (init_ic_make_global_vars): Drop workaround
22025 for bintuils bug 14342.
22026 (init_ic_make_global_vars): Likewise.
22027 (gimple_init_edge_profiler): Likewise.
22028 (gimple_gen_ic_func_profiler): Likewise.
22029
22030 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
22031
22032 * ipa-inline.c (inline_small_functions): Swap the operands in
22033 enum.
22034
22035 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22036
22037 PR ipa/64481
22038 * ipa-inline-analysis.c (node_growth_cache): Remove.
22039 (initialize_growth_caches): Do not initialize it.
22040 (free_growth_caches): Do not free it.
22041 (do_estimate_growth): Rename to ...
22042 (estimate_growth): ... this one; drop growth cache code.
22043 (growth_likely_positive): Always go the heuristics way.
22044 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
22045 (reset_edge_caches): Do not reset node growth.
22046 (heap_edge_removal_hook): Do not maintain cache.
22047 (inline_small_functions): Likewise; strenghten sanity check.
22048 (ipa_inline): Do not maintain caches.
22049 * ipa-inline.h (node_growth_cache): Remove.
22050 (do_estimate_growth): Remove to ...
22051 (estimate_growth): this one; remove inline version.
22052 (reset_node_growth_cache): Remove.
22053
22054 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22055
22056 PR ipa/64565
22057 * ipa-inline.c (inline_small_functions): Update callee keys after
22058 resolving speculation
22059 (inline_small_functions): Always check monotonicity of the queue.
22060
22061 2015-01-13 Marek Polacek <polacek@redhat.com>
22062
22063 PR middle-end/64391
22064 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
22065
22066 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22067
22068 PR rtl-optimization/64286
22069 * ree.c (combine_reaching_defs): Move part of comment earlier,
22070 remove !SCALAR_INT_MODE_P check.
22071 (add_removable_extension): Don't add vector mode
22072 extensions if all uses of the source register aren't the same
22073 vector extensions.
22074
22075 2015-01-13 Renlin Li <renlin.li@arm.com>
22076
22077 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
22078 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
22079
22080 2015-01-13 Martin Liska <mliska@suse.cz>
22081
22082 * ipa-icf.c (sem_function::equals_private): Call new functions
22083 cl_target_option_print_diff and cl_optimization_print_diff.
22084 * optc-save-gen.awk (cl_target_option_print_diff): New function.
22085 (cl_optimization_print_diff): Likewise.
22086 * opth-gen.awk: Likewise.
22087
22088 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
22089
22090 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
22091 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
22092 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
22093 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
22094 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
22095 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
22096
22097 2015-01-13 Andrew Pinski <apinski@cavium.com>
22098
22099 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
22100 instead of src mode.
22101
22102 2015-01-13 Richard Biener <rguenther@suse.de>
22103
22104 PR lto/64373
22105 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
22106 DECL_CONTEXT.
22107
22108 2015-01-13 Andrew Pinski <apinski@cavium.com>
22109
22110 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
22111 volatile mems.
22112 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
22113
22114 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22115
22116 PR middle-end/63974
22117 * cfgexpand.c (expand_computed_goto): Don't call
22118 convert_memory_address here.
22119
22120 2015-01-13 Richard Biener <rguenther@suse.de>
22121
22122 PR tree-optimization/64406
22123 * tree-loop-distibution.c (pass_loop_distribution::execute):
22124 Reset the SCEV hashtable if we distributed anything.
22125
22126 2015-01-13 Richard Biener <rguenther@suse.de>
22127
22128 PR tree-optimization/64404
22129 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22130 SLP types for CSEd loads.
22131
22132 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22133
22134 PR tree-optimization/64436
22135 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22136 merge of two symbolic numbers for a bitwise OR to ...
22137 (perform_symbolic_merge): This. Also fix computation of the range and
22138 end of the symbolic number corresponding to the result of a bitwise OR.
22139
22140 2015-01-13 Richard Biener <rguenther@suse.de>
22141
22142 PR tree-optimization/64568
22143 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22144 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22145
22146 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22147
22148 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22149 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22150
22151 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22152
22153 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22154 target-specific symbol_ref flag.
22155 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22156 resides in rodata section.
22157 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22158 (nds32_encode_section_info): New function.
22159
22160 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22161
22162 * config/nds32/nds32.md (call): Use pseudo instruction bal which
22163 clobbers TA_REGNUM if large code model is specified.
22164 (call_register): Likewise.
22165 (call_immediate): Likewise.
22166 (call_value): Likewise.
22167 (call_value_register): Likewise.
22168 (call_value_immediate): Likewise.
22169
22170 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22171
22172 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22173 (TARGET_CMODEL_MEDIUM): New macro.
22174 (TARGET_CMODEL_LARGE): New macro.
22175 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22176 code model setting in assembly code.
22177
22178 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22179
22180 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22181 Remove MASK_GP_DIRECT flag.
22182 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22183 one of the multilib default options.
22184 * config/nds32/nds32.opt (mgp-direct): Remove.
22185 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22186 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
22187
22188 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22189
22190 * config/nds32/nds32.opt (mcmodel): Add new option.
22191 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22192 to describe code model.
22193
22194 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
22195
22196 PR target/64479
22197 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22198
22199 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
22200
22201 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22202 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22203 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22204 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22205 __builtin_sh_set_fpscr.
22206
22207 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22208
22209 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22210 after a funtion name just to indicate it is a function.
22211 ([-fsanitize-undefined-trap-on-error]): Likewise.
22212 ([-fdbg-cnt=]): Likewise.
22213 ([-mmemcpy]): Likewise.
22214 ([-mflush-func]): Likewise.
22215 ([-msynci]): Likewise.
22216
22217 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22218
22219 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22220 example.
22221
22222 2015-01-12 Jakub Jelinek <jakub@redhat.com>
22223
22224 PR tree-optimization/64563
22225 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22226 instead of != VR_VARYING.
22227
22228 PR target/64513
22229 * config/i386/i386.c (ix86_expand_prologue): Add
22230 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22231
22232 PR tree-optimization/64454
22233 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22234 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22235 for signed or [0, op1 - 1] for unsigned modulo.
22236 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22237 even if op1 does not satisfy integer_pow2p.
22238
22239 PR other/64370
22240 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22241
22242 2015-01-12 Jeff Law <law@redhat.com>
22243
22244 PR target/64461
22245 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22246 (trunchiqi2, truncsihi2): Similarly.
22247
22248 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22249 rather than calling F.
22250
22251 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
22252
22253 * tsan.c (instrument_expr): Use force_gimple_operand.
22254 Use may_be_nonaddressable_p instead of is_gimple_addressable.
22255
22256 2015-01-12 Richard Biener <rguenther@suse.de>
22257
22258 PR tree-optimization/64530
22259 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22260 back dr1.
22261
22262 2015-01-12 Richard Biener <rguenther@suse.de>
22263
22264 PR middle-end/64357
22265 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22266 latches properly.
22267
22268 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22269
22270 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22271 Cortex-A17 tuning parameters.
22272 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22273
22274 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22275
22276 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22277 * config/arm/arm.c (arm_macro_fusion_p): New function.
22278 (arm_macro_fusion_pair_p): Likewise.
22279 (TARGET_SCHED_MACRO_FUSION_P): Define.
22280 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22281 (ARM_FUSE_NOTHING): Likewise.
22282 (ARM_FUSE_MOVW_MOVT): Likewise.
22283 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22284 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22285 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22286 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22287 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22288 arm_cortex_a5_tune): Specify fuseable_ops value.
22289
22290 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
22291
22292 PR bootstrap/64561
22293 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22294 test for PIE with copy reloc.
22295 * configure: Regenerated.
22296
22297 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22298
22299 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22300 in gen_rtx_REG.
22301 (arm_tls_descseq_addr): Likewise.
22302 (arm_gen_movmemqi): Likewise.
22303 (arm_expand_epilogue_apcs_frame): Likewise.
22304 (arm_expand_epilogue): Likewise.
22305 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
22306 in gen_rtx_REG.
22307
22308 2015-01-12 Martin Liska <mliska@suse.cz>
22309
22310 PR ipa/64550
22311 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22312 volatility for correct operands.
22313
22314 2015-01-12 Martin Liska <mliska@suse.cz>
22315
22316 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22317 indication that a function is not leaf.
22318 (sem_function::compare_polymorphic_p): Likewise.
22319
22320 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22321
22322 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22323 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22324 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22325 fold-const.h, tree-check.h.
22326
22327 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22328
22329 PR ipa/63967
22330 PR ipa/64425
22331 * ipa-inline.c (compute_uninlined_call_time,
22332 compute_inlined_call_time): Use counts for extra precision when
22333 needed possible.
22334 (big_speedup_p): Fix formating.
22335 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22336 (relative_time_benefit): Remove.
22337 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22338 merge guessed and read profile paths.
22339 (inline_small_functions): Count only !optimize_size functions into
22340 initial size; be more lax about sanity check when profile is used;
22341 be sure to update inlined function profile when profile is read.
22342
22343 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22344
22345 PR ipa/63470
22346 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22347 cost when edge becomes direct.
22348 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22349 is resolved or when introducing new speculation.
22350
22351 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
22352
22353 PR ipa/64551
22354 PR ipa/64552
22355 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22356 '||' to fix typo issue.
22357
22358 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22359 accept and return NULL.
22360
22361 2015-01-12 Martin Liska <mliska@suse.cz>
22362
22363 * cgraph.c (cgraph_edge::remove_callee): Move function to header
22364 file for being inlined.
22365 (cgraph_set_edge_callee): Delete.
22366 (cgraph_edge::redirect_callee): Move function to header file
22367 for being inlined.
22368 (cgraph_edge::make_direct): Use new function.
22369 (cgraph_edge::dump_edge_flags): New function created from
22370 static dump_edge_flags function.
22371 (cgraph_node::dump): Use new function.
22372 (cgraph_edge::verify_count_and_frequency): New function created
22373 from verify_edge_count_and_frequency.
22374 (cgraph_edge::verify_corresponds_to_fndecl): New function created
22375 from verify_edge_corresponds_to_fndecl.
22376 (verify_edge_corresponds_to_fndecl): Delete.
22377 (cgraph_node::verify_node): Use new function.
22378 * cgraph.h (cgraph_edge::set_callee): New function.
22379 (cgraph_edge::dump_edge_flags): Likewise.
22380 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22381
22382 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
22383
22384 * ipa-utils.c (estimate_function_body_sizes): Do not
22385 free node params when called late with early=true.
22386
22387 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
22388
22389 * doc/md.texi (Instruction Patterns): Rewrite text for
22390 clarity.
22391 (Example): Likewise.
22392
22393 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
22394
22395 * doc/invoke.texi (Option Summary): Break long lines.
22396 [(-fdiagnostics-color)]: Put long literal in @smallexample
22397 instead of inline.
22398 [(-fsanitize-recover)]: Likewise.
22399 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22400 [(-ffast-math)]: Likewise.
22401 [(--param max-inline-insns-recursive)]: Likewise.
22402 [(--param max-inline-recursive-depth)]: Likewise.
22403 [(-mno-text-section-literals)]: Likewise.
22404
22405 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
22406
22407 * doc/install.texi: Update for libgomp being renamed from "GNU
22408 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22409 Runtime Library".
22410 * doc/sourcebuild.texi: Likewise.
22411
22412 2015-01-10 Anthony Green <green@moxielogic.com>
22413
22414 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22415 mul.x availability for moxiebox configuration.
22416
22417 2015-01-09 Anthony Green <green@moxielogic.com>
22418
22419 * config/moxie/moxie.md: Tabify assembly output.
22420
22421 2015-01-09 Anthony Green <green@moxielogic.com>
22422
22423 * config/moxie/moxie.md (CC_REG): Correct register definition.
22424
22425 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
22426
22427 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22428 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
22429 of log files.
22430
22431 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22432
22433 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22434
22435 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
22436 Jakub Jelinek <jakub@redhat.com>
22437
22438 PR middle-end/64412
22439 * lto-streamer.h (lto_stream_offload_p): New declaration.
22440 * lto-streamer.c (lto_stream_offload_p): New variable.
22441 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22442 at the same time as section_name_prefix.
22443 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22444 if lto_stream_offload_p.
22445 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22446 stream TREE_TARGET_OPTION if lto_stream_offload_p.
22447 (write_ts_function_decl_tree_pointers): Don't
22448 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22449 * tree-streamer-in.c (unpack_value_fields): Don't stream
22450 TREE_TARGET_OPTION in if ACCEL_COMPILER.
22451 (lto_input_ts_function_decl_tree_pointers): Don't stream
22452 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22453 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22454 instead of section_name_prefix string comparisons.
22455
22456 2015-01-09 Jakub Jelinek <jakub@redhat.com>
22457
22458 PR rtl-optimization/64536
22459 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22460 tablejumps.
22461
22462 2015-01-09 Michael Collison <michael.collison@linaro.org>
22463
22464 PR tree-optimization/64322
22465 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22466 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22467
22468 2015-01-09 Tom de Vries <tom@codesourcery.com>
22469
22470 PR rtl-optimization/64539
22471 * regcprop.c (kill_clobbered_values): Factor out of ...
22472 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
22473 instead of note_stores with kill_clobbered_value.
22474
22475 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22476
22477 * ginclude/unwind-arm-common.h: Revert previous commit.
22478
22479 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22480
22481 * config.gcc (arm*-*-freebsd*): New configuration.
22482 * config/arm/freebsd.h: New file.
22483 * config.host: Add extra components for arm*-*-freebsd*.
22484 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22485 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22486
22487 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22488
22489 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22490 for -mcpu=e6500.
22491 * config/rs6000/t-rtems: Add e6500 multilibs.
22492
22493 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22494
22495 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22496 MPC8540.
22497
22498 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22499
22500 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22501 MULTILIB_EXCEPTIONS.
22502
22503 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22504
22505 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22506 MULTILIB_EXCEPTIONS.
22507
22508 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22509
22510 * config/arm/t-rtems-eabi: Rename to...
22511 * config/arm/t-rtems: ...this.
22512 * config/arm/rtems-eabi.h: Rename to...
22513 * config/arm/rtems.h: ...this.
22514 * config.gcc (arm*-*-rtems*): Reflect changes above.
22515
22516 2015-01-09 Richard Biener <rguenther@suse.de>
22517
22518 PR tree-optimization/64410
22519 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22520 on the LHS.
22521 (execute_update_addresses_taken): Deal with that.
22522 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22523 loads/stores for complex variables.
22524
22525 2015-01-09 Martin Liska <mliska@suse.cz>
22526
22527 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22528 name comparison.
22529 (func_checker::compare_memory_operand): New function.
22530 (func_checker::compare_operand): Split case to newly
22531 added functions.
22532 (func_checker::compare_cst_or_decl): New function.
22533 (func_checker::compare_gimple_call): Identify
22534 memory operands.
22535 (func_checker::compare_gimple_assign): Likewise.
22536 * ipa-icf-gimple.h: New function.
22537
22538 2015-01-09 Martin Liska <mliska@suse.cz>
22539
22540 PR ipa/64503
22541 * sreal.c (sreal::dump): Change unsigned format to signed for
22542 m_exp value.
22543 (sreal::to_double): Replace exp2 with scalbln.
22544
22545 2015-01-09 Martin Liska <mliska@suse.cz>
22546
22547 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22548 * ipa-icf.c (sem_function::equals_private): Add support for target and
22549 (sem_item_optimizer::merge_classes): Remove redundant function
22550 optimization flags comparison.
22551 * tree.h (target_opts_for_fn): New function.
22552
22553 2015-01-09 Tom de Vries <tom@codesourcery.com>
22554
22555 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22556
22557 2015-01-09 Kito Cheng <kito@0xlab.org>
22558
22559 PR rtl-optimization/64348
22560 * lra-constraints.c (split_reg): Fix caller-save store/restore
22561 instruction generation.
22562
22563 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
22564
22565 PR gcov-profile/61790
22566 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22567 long long. Fallback to int64_t if host doesn't have long long and
22568 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
22569
22570 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22571
22572 PR tree-optimization/63989
22573 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22574 from 1000 to 10000.
22575 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22576 (get_stridx): If we don't have a record for certain SSA_NAME,
22577 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22578 constant offset, call get_stridx_plus_constant.
22579 (get_stridx_plus_constant): New function.
22580 (zero_length_string): Don't use get_stridx here.
22581
22582 PR target/55023
22583 PR middle-end/64388
22584 * dse.c (struct insn_info): Mention frame_read set also
22585 before reload for tail calls on some targets.
22586 (scan_insn): Revert 2014-12-22 change. Set frame_read
22587 also before reload for tail calls if
22588 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
22589 instead of add_non_frame_wild_read for non-const/memset
22590 tail calls after reload.
22591
22592 2015-01-08 Jason Merrill <jason@redhat.com>
22593
22594 * ubsan.c (do_ubsan_in_current_function): New.
22595 (pass_ubsan::gate): Use it.
22596 * ubsan.h: Declare it.
22597 * convert.c (convert_to_integer): Use it.
22598
22599 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22600
22601 PR target/64338
22602 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22603 compare_code when it is unconditionally overwritten afterwards.
22604 Use ix86_reverse_condition instead of reverse_condition. Don't
22605 change code if *reverse_condition* returned UNKNOWN and don't
22606 swap ct/cf and negate diff in that case.
22607
22608 2015-01-08 Mike Stump <mikestump@comcast.net>
22609
22610 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22611 (pass_tsan_O0::gate): Likewise.
22612 * extend.texi (Function Attributes): Add no_sanitize_thread
22613 documentation.
22614
22615 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
22616
22617 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22618 for registering builtins.
22619 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22620 add -fopenmp to the argv_obstack used when invoking
22621 compile_for_target.
22622
22623 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22624 add "-m32" or "-m64" to argv_obstack.
22625 (generate_host_descr_file): Likewise, when invoking host_compiler.
22626 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22627 ld.
22628
22629 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22630
22631 * config/sh/sh-mem.cc: Use constant as second operand when emitting
22632 tstsi_t insns.
22633
22634 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22635
22636 PR target/55212
22637 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22638 constant load if constant operand fits into I08.
22639
22640 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22641
22642 PR sanitizer/64336
22643 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22644 and TREE_THIS_VOLATILE for MEM_REFs.
22645 (build5_stat): Fix up initialization of TREE_READONLY and
22646 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22647
22648 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22649
22650 PR target/64533
22651 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22652 of r for the second alternative of the destination operand.
22653
22654 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
22655
22656 PR target/36557
22657 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22658
22659 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22660
22661 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22662 keywords.
22663 ([-fivar-visibility], [-fvisibility]): Likewise.
22664
22665 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22666
22667 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22668 the file where @code, @command, etc is more appropriate.
22669
22670 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
22671
22672 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22673 of -mrecip= documentation.
22674
22675 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22676
22677 PR target/64505
22678 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22679 correct reload handler if -m32 -mpowerpc64 is used.
22680
22681 2015-01-06 Tom de Vries <tom@codesourcery.com>
22682
22683 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22684
22685 2015-01-08 Christian Bruel <christian.bruel@st.com>
22686
22687 PR target/64507
22688 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22689
22690 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22691
22692 PR tree-optimization/63259
22693 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22694 if optab exists for 16bit byteswap.
22695
22696 2015-01-06 Jakub Jelinek <jakub@redhat.com>
22697
22698 * opts.c (common_handle_option): Add support for
22699 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22700 * doc/invoke.texi: Document -fno-sanitize=all,
22701 -f{,no-}sanitize-recover=all. Document that
22702 -fsanitize=float-cast-overflow is not enabled
22703 by -fsanitize=undefined. Fix up documentation
22704 of -f{,no-}sanitize-recover.
22705
22706 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
22707
22708 * config.gcc: Add Visium support.
22709 * configure.ac: Likewise.
22710 * configure: Regenerate.
22711 * doc/extend.texi (interrupt attribute): Add Visium.
22712 * doc/invoke.texi: Document Visium options.
22713 * doc/install.texi: Document Visium target.
22714 * doc/md.texi: Document Visium constraints.
22715 * common/config/visium: New directory.
22716 * config/visium: Likewise.
22717
22718 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22719
22720 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22721 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22722
22723 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22724
22725 * combine.c (combine_validate_cost): Do not count the cost of a
22726 split I2 twice. Do not display it twice in the dump, either.
22727
22728 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22729
22730 Revert parts of r219199.
22731 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22732 <inttypes.h>.
22733 ([-Wtraditional]): Restore markup on <limits.h>.
22734
22735 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
22736
22737 PR c++/31397
22738 * doc/invoke.texi: Document -Wsuggest-override.
22739
22740 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
22741
22742 PR rtl-optimization/64287
22743 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22744 (process_options): Disable flag_ipa_ra if profiling.
22745
22746 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
22747
22748 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22749
22750 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
22751
22752 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22753 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22754 put under #if TARGET_LOOPS guard.
22755
22756 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
22757
22758 * config/i386/i386.c (output_387_binary_op): Use std::swap.
22759
22760 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
22761
22762 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22763 * rtl.h (refers_to_regno_p): Add overload.
22764 * cse.c: Use it.
22765 * bt-load.c: Likewise.
22766 * combine.c: Likewise.
22767 * df-scan.c: Likewise.
22768 * sched-deps.c: Likewise.
22769 * config/s390/s390.c: Likewise.
22770 * config/m32r/m32r.c: Likewise.
22771 * config/rs6000/spe.md: Likewise.
22772 * config/rs6000/rs6000.c: Likewise.
22773 * config/pa/pa.c: Likewise.
22774 * config/stormy16/stormy16.c: Likewise.
22775 * config/cris/cris.c: Likewise.
22776 * config/arc/arc.md: Likewise.
22777 * config/arc/arc.c: Likewise.
22778 * config/sh/sh.md: Likewise.
22779 * config/sh/sh.c: Likewise.
22780 * config/frv/frv.c: Likewise.
22781
22782 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22783
22784 PR sanitizer/64265
22785 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22786 call as cleanup of the whole body.
22787 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22788 * tsan.c (replace_func_exit): New function.
22789 (instrument_func_exit): Moved earlier.
22790 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22791 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22792 been found.
22793 (tsan_pass): Don't call instrument_func_exit.
22794 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22795 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22796 inlining.
22797
22798 PR sanitizer/64344
22799 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22800 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22801 it to libubsan handler instead of EXPR. Fold comparisons earlier,
22802 if the result is integer_zerop, return NULL_TREE.
22803 * convert.c (convert_to_integer): Pass expr as ARG.
22804
22805 PR tree-optimization/64465
22806 * tree-inline.c (redirect_all_calls): During inlining
22807 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22808 changed the stmt to a non-throwing call.
22809
22810 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22811
22812 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22813 etc markup throughout the file.
22814
22815 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22816
22817 Enable experimental TSAN support for Ada.
22818 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22819
22820 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22821
22822 PR tree-optimization/64494
22823 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22824 clear SSA_NAME_ANTI_RANGE_P flag.
22825
22826 2015-01-05 Marek Polacek <polacek@redhat.com>
22827
22828 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22829
22830 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22831
22832 Update copyright years.
22833
22834 * gcc.c (process_command): Update copyright notice dates.
22835 * gcov-dump.c: Ditto.
22836 * gcov.c: Ditto.
22837 * doc/cpp.texi: Bump @copying's copyright year.
22838 * doc/cppinternals.texi: Ditto.
22839 * doc/gcc.texi: Ditto.
22840 * doc/gccint.texi: Ditto.
22841 * doc/gcov.texi: Ditto.
22842 * doc/install.texi: Ditto.
22843 * doc/invoke.texi: Ditto.
22844
22845 * auto-profile.c, auto-profile.h: Fix up Copyright line.
22846
22847 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
22848
22849 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22850 verb tense, etc.
22851 ([-fvtable-verify], [-fvtv-debug]): Likewise.
22852 ([-Wabi]): Likewise.
22853 ([-fmessage-length]): Likewise.
22854 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22855 ([-Wno-discarded-qualifiers]): Likewise.
22856 ([-Wnodiscarded-array-qualifiers]): Likewise.
22857 ([-Wno-virtual-move-assign]): Likewise.
22858 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22859 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22860 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22861 ([-fsanitize-undefined-trap-on-error]): Likewise.
22862 ([-floop-interchange]): Likewise.
22863 ([-ftree-coalesce-inlined-vars]): Likewise.
22864 ([-fvect-cost-model]): Likewise.
22865 ([-flto]): Likewise.
22866 ([--param]): Likewise.
22867 (Spec Files): Likewise.
22868 ([-mstrict-align]): Likewise.
22869 ([-mfix-cortex-a53-835769]): Likewise.
22870 ([-march], [-mtune]): Likewise.
22871 ([-mpic-register]): Likewise.
22872 ([-munaligned-access]): Likewise.
22873 ([-msp8]): Likewise.
22874 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22875 (AVR Built-in Macros): Likewise.
22876 ([-mpreferred-stack-boundary]): Likewise.
22877 ([-mtune-crtl]): Likewise.
22878 ([-mashf]): Likewise.
22879 ([-mmcu=]): Likewise.
22880 ([-minrt]): Likewise.
22881 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22882 ([-mupper-regs]): Likewise.
22883 ([-matomic-model]): Likewise.
22884 ([-mdiv]): Likewise.
22885 ([-mzdcbranch]): Likewise.
22886 ([-mdisable-callt]): Likewise.
22887 ([-msoft-float]): Likewise.
22888 ([-m8byte-align]): Likewise.
22889 ([-fstack-reuse]): Likewise.
22890
22891 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22892
22893 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22894 Fix markup, light copy-editing.
22895 ([-fauto-profile]): Rewrite to fix formatting and content
22896 problems.
22897
22898 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22899
22900 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22901 Copy-edit description.
22902 ([-fisolate-erroneous-paths-attribute]): Likewise.
22903 * common.opt (fisolate-erroneous-paths-dereference):
22904 Copy-edit description.
22905 (fisolate-erroneous-paths-attribute): Likewise.
22906
22907 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22908
22909 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22910 tidy grammar.
22911
22912 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22913
22914 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22915 ([-fvtv-debug]): Likewise.
22916 ([-Wc++-compat]): Likewise.
22917 ([-Wc++11-compat]): Likewise.
22918 ([-Wc++14-compat]): Likewise.
22919 ([-Wno-sized-deallocation]): Likewise.
22920 ([-femit-class-debug-always]): Likewise.
22921 ([-femit-struct-debug-detailed]): Likewise.
22922 ([-fno-keep-inline-dllexport]): Likewise.
22923 ([-fira-algorithm]): Likewise.
22924 ([-fira-region]): Likewise.
22925 ([-flra-remat]): Likewise.
22926 ([-fipa-ra]): Likewise.
22927 ([-fhoist-adjacent-loads]): Likewise.
22928 ([-fisolate-erroneous-paths-dereference]): Likewise.
22929 ([-fisolate-erroneous-paths-attribute]): Likewise.
22930 ([-ftree-switch-conversion]): Likewise.
22931 ([-ftree-tail-merge]): Likewise.
22932 ([-ftree-loop-if-convert]): Likewise.
22933 ([-ftree-loop-if-convert-stores]): Likewise.
22934 ([-ftree-loop-distribution]): Likewise.
22935 ([-ftree-loop-distribute-patterns]): Likewise.
22936 ([-flto-compression-level]): Likewise.
22937 ([-flto-report]): Likewise.
22938 ([-flto-report-wpa]): Likewise.
22939 ([-fuse-linker-plugin]): Likewise.
22940 ([-mfix-cortex-a53-835769]): Likewise.
22941 ([-mno-fix-cortex-a53-835769]): Likewise.
22942 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22943 explicit listing; add a note to the discussion indicating they
22944 exist. Reorder table to group similar options. Add missing
22945 @opindex entries. Add @need commands throughout the table to
22946 allow it to be split across multiple pages.
22947 ([-m8bit-idiv]): Fix @opindex.
22948 ([-mavx256-split-unaligned-load]): Likewise.
22949 ([-mavx256-split-unaligned-store]): Likewise.
22950 ([-mstack-protector-guard]): Likewise.
22951 ([-mcpu=]): Likewise.
22952 ([-mcpu]): Likewise.
22953 ([-mpointer-size=]): Likewise.
22954
22955 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
22956
22957 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22958 instead of `m' constraint. Likewise for unnamed movb comparison
22959 patterns using reg_before_reload_operand predicate.
22960 * config/pa/predicates.md (reg_before_reload_operand): Tighten
22961 predicate to reject register index and LO_SUM DLT memory forms
22962 after reload.
22963
22964 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22965
22966 * doc/invoke.texi (Option Summary): Fix spelling of
22967 -fdevirtualize-at-ltrans.
22968 ([-fdevirtualize]): Fix markup.
22969 ([-fdevirtualize-speculatively]): Fix typo.
22970 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
22971 implementor-speaky.
22972 * common.opt (fdevirtualize-at-ltrans): Likewise.
22973 * ipa-devirt.c: Fix typos in comments throughout the file.
22974 (ipa_devirt): Fix typos in format strings for dump output.
22975
22976 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22977
22978 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22979 discussion of defaults, light copy-editing.
22980
22981 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22982
22983 * tsan.c (instrument_expr): corrected previous checkin.
22984
22985 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22986
22987 Instrument bit field and unaligned accesses for TSAN.
22988 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22989 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22990 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22991 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22992 unaligned memory regions.
22993
22994 2015-01-01 Anthony Green <green@moxielogic.com>
22995
22996 * config/moxie/predicates.md (moxie_general_movsrc_operand):
22997 Restrict move source register offsets to 16 bits.
22998 \f
22999 Copyright (C) 2015 Free Software Foundation, Inc.
23000
23001 Copying and distribution of this file, with or without modification,
23002 are permitted in any medium without royalty provided the copyright
23003 notice and this notice are preserved.