1 2015-07-24 Tom de Vries <tom@codesourcery.com>
3 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
4 exit-first loop transform.
6 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
9 * tree-cfg.c (struct replace_decls_d): New struct.
10 (replace_block_vars_by_duplicates_1): New function.
11 (replace_block_vars_by_duplicates): Use it to replace the decls
12 in the value exprs by duplicates.
14 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
17 -shared, -symbolic, -rdynamic.
19 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
22 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
23 -dynamic-linker within %{!static %{!shared, and -rdynamic within
26 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
29 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
30 edge summary is available.
32 2015-07-24 Richard Biener <rguenther@suse.de>
34 * genmatch.c (struct dt_node): Add statistic fields.
35 (dt_node::analyze): New method.
36 (decision_tree::gen_gimple): Call analyze on the root node
37 and print statistics to stderr.
38 (decision_tree::gen_generic): Likewise.
40 2015-07-24 Richard Biener <rguenther@suse.de>
42 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
43 against the highest or lowest possible integer ...
44 * match.pd: ... as patterns here.
46 2015-07-24 Richard Biener <rguenther@suse.de>
48 * genmatch.c (struct capture_info): Add same_as field.
49 (capture_info::capture_info): Initialize same_as.
50 (capture_info::walk_match): Compute same_as.
51 (capture_info::walk_result): Compute stuff for the leader.
52 (capture_info::walk_c_expr): Likewise.
53 (dt_simplify::gen_1): Only look at leaders when deciding
54 to force no side-effects or emit side-effects of omitted operands.
56 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
58 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
59 reg note to the GPR -> FPR save instructions.
61 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
63 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
65 (s390_expand_insv): Don't generate risbg pattern for constant zero
67 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
68 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
71 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
73 * config/s390/s390.c (s390_reorg): Clean up handling of processors
76 (s390_issue_rate): Likewise.
77 (s390_sched_reorder): Likewise.
78 (s390_sched_variable_issue): Likewise.
79 (s390_loop_unroll_adjust): Likewise.
80 (s390_option_override): Likewise.
82 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
84 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
85 processor capabilities with -march=native.
86 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
87 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
88 (S390_TARGET_BITS_STRING): Macro to simplify specs.
90 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
92 * config/s390/s390.c (s390_issue_rate): Handle
94 (s390_option_override): Likewise.
95 (s390_adjust_priority): Likewise.
97 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
99 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
100 when cross compiling.
102 2015-07-24 Richard Biener <rguenther@suse.de>
104 * fold-const.c (maybe_canonicalize_comparison_1): Move
105 A code CST canonicalization ...
106 * match.pd: ... to a pattern here.
108 2015-07-24 Jiong Wang <jiong.wang@arm.com>
111 2015-07-22 Jiong Wang <jiong.wang@arm.com>
113 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
114 (HONOR_REG_ALLOC_ORDER): Define.
116 2015-07-24 Richard Biener <rguenther@suse.de>
118 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
119 * fold-const.c (fold_comparison): Move parameter does not
120 alias &local simplification ...
121 * match.pd: ... as a pattern here.
123 2015-07-24 Richard Biener <rguenther@suse.de>
125 * gimple-fold.c (replace_stmt_with_simplification): Special-case
126 valueizing call operands.
127 * gimple-match-head.c (maybe_push_res_to_seq): Take
128 number of call arguments from ops array.
129 (do_valueize): New function.
130 (gimple_simplify): Return true if valueization changed
131 any operand even if the result didn't simplify further.
133 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
136 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
138 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
141 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
143 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
145 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
148 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
150 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
153 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
155 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
156 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
158 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
159 ms_va_list_type_node initialization.
161 2015-07-23 Jeff Law <law@redhat.com>
164 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
165 unable to find X NE 0 in the tables, return X as the simplified
167 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
168 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
170 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
171 after removing the control flow statement and unnecessary edges.
173 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
175 * tree-pass.h (get_current_pass_name): Removed.
177 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
179 PR rtl-optimization/64164
180 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
181 * tree-ssa-copyrename.c: Removed.
182 * opts.c (default_options_table): Drop -ftree-copyrename. Add
183 -ftree-coalesce-vars.
184 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
185 * common.opt (ftree-copyrename): Ignore.
186 (ftree-coalesce-inlined-vars): Likewise.
187 * doc/invoke.texi: Remove the ignored options above.
188 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
189 * tree-ssa-coalesce.h: ... here.
190 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
191 headers required by it.
192 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
193 across variables when flag_tree_coalesce_vars. Check register
194 use and promoted modes to allow coalescing. Moved to
196 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
197 with its member functions to tree-ssa-coalesce.c.
198 (var_map_base_init): Likewise. Renamed to
199 compute_samebase_partition_bases.
200 (partition_view_normal): Drop want_bases parameter.
201 (partition_view_bitmap): Likewise.
202 * tree-ssa-live.h: Adjust declarations.
203 * tree-ssa-coalesce.c: Include explow.h.
204 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
205 default defs at the entry point.
206 (dump_part_var_map): New.
207 (compute_optimized_partition_bases): New, called by...
208 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
209 of compute_samebase_partition_bases. Adjust.
210 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
211 * cfgexpand.c (leader_merge): New.
212 (get_rtl_for_parm_ssa_default_def): New.
213 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
214 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
215 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
216 redundant MEM attr setting.
217 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
219 (expand_one_stack_var): ... this. New wrapper to check and
220 skip already expanded SSA partitions.
221 (record_alignment_for_reg_var): New, factored out of...
222 (expand_one_var): ... this.
223 (expand_one_ssa_partition): New.
224 (adjust_one_expanded_partition_var): New.
225 (expand_one_register_var): Check and skip already expanded SSA
227 (expand_used_vars): Don't create DECLs for anonymous SSA
228 names. Expand all SSA partitions, then adjust all SSA names.
229 (pass::execute): Replace the loops that set
230 SA.partition_to_pseudo from partition leaders and cleared
231 DECL_RTL for multi-location variables, and that which used to
232 rename vars and set attrs, with one that clears DECL_RTL and
233 checks that PARMs and RESULTs default_defs match DECL_RTL.
234 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
235 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
236 * explow.c (promote_ssa_mode): New.
237 * explow.h (promote_ssa_mode): Declare.
238 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
239 * function.c: Include cfgexpand.h.
240 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
241 (use_register_for_parm_decl): Wrapper for the above to
242 special-case the result_ptr.
243 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
244 (split_complex_args): Take assign_parm_data_all argument.
245 Pass it to rtl_for_parm. Set up rtl and context for split
247 (assign_parms_augmented_arg_list): Adjust.
248 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
249 multiple locations. Recognize split complex args.
250 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
251 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
252 (assign_parm_setup_block): Prefer SSA-assigned location.
253 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
254 if stack_parm is NULL.
255 (assign_parm_setup_stack): Prefer SSA-assigned location.
256 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
257 rtl before testing for pointer bounds. Special-case result_ptr.
258 (expand_function_start): Maybe reset DECL_RTL of result.
259 Prefer SSA-assigned location for result and static chain.
260 Factor out DECL_RESULT and SET_DECL_RTL.
261 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
262 anonymous SSA names. Use promote_ssa_mode.
263 (get_temp_reg): Likewise.
264 (remove_ssa_form): Adjust.
265 * stor-layout.c (layout_decl): Don't set mem attributes of
267 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
268 and get its reg_usage for reg invalidation.
269 (compute_bb_dataflow): Pass it insn.
270 (emit_notes_in_bb): Likewise.
272 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
275 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
277 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
278 (rs6000_emit_2insn_and): Handle dot forms.
279 * config/rs6000/rs6000.md (and<mode>3): Adjust.
280 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
281 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
283 2015-07-23 Richard Biener <rguenther@suse.de>
285 * generic-match-head.c: Include cgraph.h.
286 * gimple-match-head.c: Likewise.
287 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
289 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
290 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
293 2015-07-23 Richard Biener <rguenther@suse.de>
295 * gimple-fold.c (fold_gimple_cond): Do not require folding
296 results to pass valid_gimple_rhs_p.
297 * tree-cfg.h (fold_cond_expr_cond): Remove.
298 * tree-cfg.c (fold_cond_expr_cond): Likewise.
299 (make_edges): Do not call it.
300 * tree-inline.c (tree_function_versioning): Likewise.
302 2015-07-23 Tom de Vries <tom@codesourcery.com>
304 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
305 vect_force_simple_reduction.
306 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
307 (vect_is_simple_reduction_1): Add and handle
308 need_wrapping_integral_overflow parameter.
309 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
310 need_wrapping_integral_overflow parameter.
311 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
312 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
315 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
317 PR tree-optimization/66926,66951
318 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
319 INNER_LOOP and fix up condition for renaming virtual operands.
321 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
323 * combine.c (try_combine): Use std::swap instead of manually
326 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
328 * config/mips/i6400.md: New file.
329 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
330 (mips64r6): Likewise.
332 * config/mips/mips-tables.opt: Regenerate.
333 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
334 (mips_issue_rate): Add support for i6400.
335 (mips_multipass_dfa_lookahead): Likewise.
336 * config/mips/mips.h (TUNE_I6400): Define.
337 * config/mips/mips.md: Include i6400.md.
338 (processor): Add i6400.
339 * doc/invoke.texi (-march=@var{arch}): Add i6400.
341 2015-07-23 Richard Biener <rguenther@suse.de>
344 * match.pd: Guard widen and sign-change comparison simplification
347 2015-07-23 Richard Biener <rguenther@suse.de>
349 PR tree-optimization/66945
350 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
351 ::before_dom_children): Force the propagators idea of
352 non-executable edges to materialize, not what the folder
355 2015-07-23 Richard Biener <rguenther@suse.de>
357 * gimple.h (gimple_cond_make_false): Use 0 != 0.
358 (gimple_cond_make_true): Use 1 != 0.
360 2015-07-22 DJ Delorie <dj@redhat.com>
362 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
365 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
368 (movhi): Take advantage of zero-extend to load small constants.
370 (and<mode>3): Likewise.
371 (zero_extendqihi2): Likewise.
372 (zero_extendqisi2): New.
373 * config/msp430/constraints.md (N,O): New.
374 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
376 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
379 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
380 to enum feature_priority and feature_list.
381 (fold_builtin_cpu): Add F_AES to enum processor_features
384 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
387 * config/i386/linux-common.h (MPX_SPEC): Use linker option
388 for 64bit target only.
390 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
392 * config/nvptx/nvptx.c: Expand some comments.
394 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
396 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
397 (cortex_a53_advsimd): ...This.
399 2015-07-22 Richard Biener <rguenther@suse.de>
401 * genmatch.c (expr::gen_transform): Clarify error message
402 and display location.
404 2015-07-22 Richard Biener <rguenther@suse.de>
406 * genmatch.c (struct operand): Add location member.
407 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
409 (struct simplify): Remove match_location and result_location
413 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
415 * config/mips/m5100.md: New file.
416 * config/mips/mips-cpus.def (m5100, m5101): Define.
417 * config/mips/mips-tables.opt: Regenerate.
418 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
419 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
420 -march=m5101 to -mips32r5.
421 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
422 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
424 * config/mips/mips.md: Include m5100.md.
425 (processor): Add m5100.
426 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
428 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
430 * config/mips/mips-cpus.def (interaptiv): Define.
431 * config/mips/mips-tables.opt: Regenerate.
432 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
434 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
435 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
437 2015-07-22 Jiong Wang <jiong.wang@arm.com>
440 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
441 (HONOR_REG_ALLOC_ORDER): Define.
443 2015-07-22 Richard Biener <rguenther@suse.de>
445 PR tree-optimization/66952
446 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
447 blocks we end up executing unconditionally reset all SSA
448 info such as range and alignment.
449 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
450 * tree-ssanames.c (reset_flow_sensitive_info): New function.
452 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
454 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
457 2015-07-22 Richard Biener <rguenther@suse.de>
459 * genmatch.c (parser::parse_result): Properly handle
460 match with result operands and conditions.
462 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
465 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
466 Add qualifier_struct_load_store_lane_index.
467 (aarch64_types_loadstruct_lane_qualifiers): Use
468 qualifier_struct_load_store_lane_index for lane index argument for
470 (aarch64_types_storestruct_lane_qualifiers): Ditto.
471 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
472 (aarch64_simd_expand_args): Add new argument describing mode of
473 builtin. Check lane bounds for arguments with
474 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
475 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
476 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
477 (aarch64_simd_expand_builtin): Handle arguments with
478 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
479 aarch64_simd_expand_args.
480 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
481 vst[234]_lane with BUILTIN_VALLDIF.
482 * config/aarch64/aarch64-simd.md:
483 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
484 endianness reversal on lane index.
485 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
486 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
487 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
488 (vec_store_lanesci_lane<mode>): Ditto.
489 (vec_store_lanesxi_lane<mode>): Ditto.
490 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
491 reversal of lane index.
492 (aarch64_ld3_lane<mode>): Ditto.
493 (aarch64_ld4_lane<mode>): Ditto.
494 (aarch64_st2_lane<mode>): Ditto.
495 (aarch64_st3_lane<mode>): Ditto.
496 (aarch64_st4_lane<mode>): Ditto.
497 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
498 to qmode. Add new mode parameter. Update uses.
499 (__LD3_LANE_FUNC): Ditto.
500 (__LD4_LANE_FUNC): Ditto.
501 (__ST2_LANE_FUNC): Ditto.
502 (__ST3_LANE_FUNC): Ditto.
503 (__ST4_LANE_FUNC): Ditto.
505 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
507 * doc/invoke.texi (Language Independent Options): Rename node to
508 Diagnostic Message Formatting Options.
510 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
513 * lra-remat.c (operand_to_remat): Prevent using insns with input
514 subregs processed separately by IRA.
516 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
518 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
520 (single_imm_use): Check for iterator node.
521 (num_imm_uses): Likewise.
522 * tree-ssa-operands.c (has_zero_uses_1): Delete.
523 (single_imm_use_1): Check for iterator node.
525 2015-07-21 Mike Frysinger <vapier@gentoo.org>
526 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
528 * configure.ac: Add check for new options in isl-0.15.
529 * config.in, configure: Rebuilt.
530 * graphite-blocking.c: Include <isl/constraint.h>
531 * graphite-interchange.c, graphite-poly.c: Likewise.
532 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
533 * graphite.c: Likewise.
534 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
536 * graphite-dependences.c: Include <isl/constraint.h>.
537 (max_number_of_out_dimensions): Returns isl_stat.
538 (extend_schedule_1): Likewise
539 (extend_schedule): Corresponding changes.
540 * graphite-optimize-isl.c: Include <isl/constraint.h> and
542 (getSingleMap): Change return type of isl_stat.
543 (optimize_isl): Conditionally use
544 isl_options_set_schedule_serialize_sccs.
545 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
546 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
548 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
551 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
552 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
554 2015-07-21 Richard Biener <rguenther@suse.de>
556 PR tree-optimization/66948
557 * genmatch.c (capture_info::walk_match): Also recurse to
558 captures. Properly compute expr state from captures of
560 * match.pd: Add single-use guards to
561 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
563 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
565 * config/nvptx/mkoffload.c (process): Add static destructor call.
567 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
570 * match.pd (A - B -> A + (-B)): Don't allow folding
571 when type if a fixed-point type.
573 2015-07-20 DJ Delorie <dj@redhat.com>
575 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
576 (iorqi3_real): Likewise for set1.
578 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
580 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
583 2015-07-20 Aditya Kumar <hiraditya@msn.com>
585 * graphite-isl-ast-to-gimple.c:
586 Refactor so that each function can access 'region'. This will help
587 maintain a parameter rename_map within a region.
589 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
591 * config/rs6000/rs6000.md (*lt0_disi): New.
593 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
596 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
597 "available letters" comment.
598 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
599 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
600 and_2rld_operand): Delete.
601 (and_operand): Adjust.
602 (rotate_mask_operator): New.
603 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
604 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
605 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
607 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
608 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
609 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
610 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
611 rs6000_emit_2insn_and): New.
612 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
613 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
614 includes_rldic_lshift_p, includes_rldicr_lshift_p,
615 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
616 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
617 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
618 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
619 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
620 rs6000_emit_2insn_and): New.
621 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
622 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
624 <NOT>: Don't fall through to next case.
625 <AND>: Handle the various rotate-and-mask cases directly.
626 <IOR>: Always cost as one insn.
627 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
628 (and<mode>3): Adjust expander for the new patterns.
629 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
630 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
631 (*and<mode>3_imm_dot_shifted): New.
632 (*and<mode>3_mask): Delete, rewrite as ...
633 (and<mode>3_mask): ... New.
634 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
635 (andsi3_internal0_nomc): Delete.
636 (*andsi3_internal6): Delete.
637 (*and<mode>3_2insn): New.
638 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
639 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
640 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
641 *insvdi_internal3): Delete.
642 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
643 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
644 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
645 *ior<mode>_mask): New.
646 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
647 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
648 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
649 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
651 (ashr<mode>3): Delete expander.
652 (*ashr<mode>3): Rename to ...
653 (ashr<mode>3): ... This.
654 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
655 (*rotldi3_internal4, *rotldi3_internal5 and split,
656 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
657 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
658 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
659 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
660 (splitter for loading a mask): Adjust.
661 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
663 2015-07-20 Marek Polacek <polacek@redhat.com>
665 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
666 output_add_clobbers, output_added_clobbers_hard_reg_p,
667 gen_rtx_scratch): Remove declarations.
669 2015-07-20 Marek Polacek <polacek@redhat.com>
672 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
674 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
676 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
677 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
679 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
681 * combine.c (combine_simplify_rtx): Move simplification step
682 before various transformations/substitutions.
684 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
686 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
687 (struct int_traits): Likewise.
689 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
691 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
692 function to vmsdbgout_function_decl.
694 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
697 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
698 from misaligned positions.
699 (ix86_expand_pinsr): Reject insertions to misaligned positions.
701 2015-07-18 Sebastian Pop <s.pop@samsung.com>
705 * Makefile.in: Removed omega.o.
706 * common.opt: Document flag fcheck-data-deps as deprecated.
707 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
708 its associated params: omega-max-vars, omega-max-geqs,
709 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
710 omega-max-keys, omega-eliminate-redundant-constraints.
711 * doc/loop.texi: Remove all the section on Omega.
712 * graphite-blocking.c: Include missing params.h: it used to be
713 included through tree-data-ref.h and omega.h.
714 * graphite-isl-ast-to-gimple.c: Same.
715 * graphite-optimize-isl.c: Same.
716 * graphite-sese-to-poly.c: Same.
720 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
721 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
722 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
723 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
724 * passes.def: Remove pass_check_data_deps.
725 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
726 (dump_conflict_function): Same.
727 (dump_subscript): Same.
728 (print_direction_vector): Same.
729 (print_dir_vectors): Same.
730 (print_lambda_vector): Same.
731 (print_dist_vectors): Same.
732 (dump_data_dependence_relation): Same.
733 (dump_data_dependence_relations): Same.
734 (dump_dist_dir_vectors): Same.
736 (init_omega_eq_with_af): Removed.
737 (omega_extract_distance_vectors): Removed.
738 (omega_setup_subscript): Removed.
739 (init_omega_for_ddr_1): Removed.
740 (init_omega_for_ddr): Removed.
741 (ddr_consistent_p): Removed.
742 (compute_affine_dependence): Do not use omega to check data
744 (compute_data_dependences_for_bb): Removed.
745 (analyze_all_data_dependences): Removed.
746 (tree_check_data_deps): Removed.
747 * tree-data-ref.h: Do not include omega.h.
748 (compute_data_dependences_for_bb): Removed.
749 (tree_check_data_deps): Removed.
750 * tree-ssa-loop.c (pass_check_data_deps): Removed.
751 (make_pass_check_data_deps): Removed.
752 * tree-ssa-phiopt.c: Include params.h.
753 * tree-vect-data-refs.c: Same.
754 * tree-vect-slp.c: Same.
756 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
758 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
759 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
760 (mem->fpreg splitters): Ditto.
761 (general_operand->nonimmediate_operand splitter): Use explicit modes.
762 Disable DFmode for TARGET_64BIT.
764 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
767 * config/i386/i386.c (ix86_expand_prologue): Replicate static
770 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
772 * config/nvptx/mkoffload.c (process): Constify host data.
773 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
775 (generate_host_descr_file): Likewise.
777 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
778 Sebastian Pop <s.pop@samsung.com>
781 * graphite-dependences.c (add_pdr_constraints): Renamed
782 pdr->extent to pdr->subscript_sizes.
783 * graphite-interchange.c (build_linearized_memory_access): Add
784 back all gcc_assert's that the "isl_int to isl_val conversion"
785 patch has removed. Refactored.
786 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
787 * graphite-poly.c (new_poly_dr): Same.
788 (free_poly_dr): Same.
789 * graphite-poly.h (struct poly_dr): Same.
790 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
791 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
792 * graphite-scop-detection.h: Fix space.
793 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
794 back all gcc_assert's removed by a previous patch.
795 (wrap): Remove the_isl_ctx global variable that the same patch has
797 (build_loop_iteration_domains): Same.
798 (add_param_constraints): Same.
799 (pdr_add_data_dimensions): Same. Refactored.
800 (build_poly_dr): Renamed extent to subscript_sizes.
802 2015-07-17 Marek Polacek <polacek@redhat.com>
804 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
805 * match.pd: ... here.
807 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
809 * config/nvptx/mkoffload.c (process): Constify target data.
810 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
811 Constify target data.
812 (generate_target_offloadend_file): Likewise.
814 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
816 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
817 to allow renaming of PHI arguments on edges incoming from outer
818 loop header, add corresponding check before start PHI iterator.
819 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
820 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
821 with true force_vectorize. Set-up dominator for outer loop too.
822 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
823 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
824 was marked with force_vectorize and has restricted cfg.
825 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
827 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
828 do peeling for outer loops.
830 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
831 Matthias Klose <doko@ubuntu.com>
833 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
834 build-sysroot, sysroot from the `Miscenalleous configure options' to
835 the `Directories' section and strip trailing `/' from with_sysroot.
836 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
837 * configure: Regenerated.
839 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
842 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
843 (TARGET_HARD_DF_REGS): Ditto.
844 (TARGET_HARD_XF_REGS): Ditto.
845 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
846 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
847 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
848 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
849 (*movsf_internal): Add alternatives 16 and 17. Enable
850 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
852 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
854 PR rtl-optimization/66891
855 * calls.c (expand_call): Wrap precompute_register_parameters with
856 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
858 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
860 * config/nvptx/mkoffload.c (process): Constify mapping variables.
861 Define target data struct and initialize it.
863 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
865 PR rtl-optimization/66626
866 * ira.h (emit-rtl.h): Include.
867 (non_spilled_static_chain_regno_p): New.
868 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
869 unless it is non spilled static chain pseudo.
870 (assign_hard_rego): Spill memory profitable allocno unless it is
871 non spilled static chain pseudo.
872 (allocno_spill_priority_compare): Put non spilled static chain
873 pseudo at the end of sorted array.
874 (improve_allocation): Do nothing if we have static chain and
876 (allocno__priority_compare_func): Put non spilled static chain
877 pseudo at the beginning of sorted array.
878 (move_spill_restore): Ignore non spilled static chain pseudo.
879 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
880 to non spilled static chain pseudo.
881 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
882 pseudo at the beginning of sorted array.
883 (spill_for): Spill non spilled static chain pseudo last.
884 * lra-constraints.c (lra_constraints): Remove static chain pseudo
885 check for equivalence.
887 2015-07-16 Martin Liska <mliska@suse.cz>
890 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
891 dst_ctx if it does not exist.
893 2015-07-16 Martin Liska <mliska@suse.cz>
895 * hash-set.h (remove): New function.
896 (iterator): New iteration class for hash_set.
898 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
900 * genattrtab.c (make_canonical): Add a file_location parameter.
901 Use fatal_at rather than fatal.
902 (get_attr_value): Likewise. Update call to make_canonical.
903 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
904 (make_internal_attr): Update calls accordingly.
906 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
908 * read-md.h (message_with_line, error_with_line): Delete.
909 * read-md.c (message_with_line, error_with_line): Delete.
910 * gensupport.h: Include read-md.h.
911 (md_rtx_info): New structure.
912 (read_md_rtx): Use it. Return a bool success value.
913 * gensupport.c (read_md_rtx): Likewise.
914 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
915 (main): Update after interface changes.
916 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
917 (main): Update after interface changes.
918 * genattrtab.c (insn_code_number): Delete.
919 (optimize_attrs): Add a max_insn_code parameter and use it instead
921 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
922 Use *_at rather than *_with_line functions.
923 (gen_insn): Likewise.
924 (gen_delay): Likewise.
925 (gen_insn_reserv): Likewise.
926 (gen_bypass): Take an md_rtx_info rather than an rtx.
927 (main): Update after interface changes. Use a local max_insn_code
928 variable instead of insn_code_number.
929 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
930 an rtx. Use fatal_at rather than fatal.
931 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
932 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
933 (gen_absence_set, gen_final_absence_set, gen_automaton)
934 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
935 (main): Update after interface changes.
936 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
938 (main): Update after interface changes.
939 * genconditions.c (main): Use new read_md_rtx interface.
940 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
941 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
942 (main): Update after interface changes.
943 * genemit.c (insn_code_number, insn_index_number): Delete.
944 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
945 Use fatal_at rather than fatal.
946 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
948 (gen_split): Likewise.
949 (main): Update after interface changes.
950 * genextract.c (line_no): Delete.
951 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
952 Update call to walk_rtx.
953 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
954 rather than message_with_line.
955 (walk_rtx): Add an md_rtx_info argument. Update call to
957 (main): Update after interface changes.
958 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
959 and lineno. Use error_at rather than separate message_with_line
960 calls and have_error assignments.
961 (main): Update after interface changes.
962 * genmddump.c (main): Use new read_md_rtx interface.
963 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
964 (main): Update after interface changes.
965 * genoutput.c (next_code_number): Delete.
966 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
967 (gen_peephole, gen_expand, gen_split): Likewise.
968 (note_constraint): Likewise. Use *_at rather than *_with_line
970 (main): Update after interface changes.
971 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
973 (main): Update after interface changes.
974 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
975 than an rtx and lineno.
976 (process_define_constraint): Likewise.
977 (process_define_register_constraint): Likewise.
978 (main): Update after interface changes.
979 * genrecog.c (next_insn_code, pattern_lineno): Delete.
980 (validate_pattern): Replace top-level rtx with an md_rtx_info.
981 Use *_at rather than *_with_line functions.
982 (match_pattern_2): Likewise.
983 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
984 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
985 Use *_at rather than *_with_line functions.
986 * gentarget-def.c (add_insn): New function.
987 (main): Use it. Use new read_md_rtx interface.
989 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
991 * gensupport.h (compute_test_codes): Take a file_location rather
993 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
994 rather than *_with_line functions.
995 (process_define_predicate): Update call to compute_test_codes.
996 * genpreds.c (validate_exp): Take a file_location rather than a
997 line number. Use *_at functions rather than *_with_line functions.
998 (process_define_predicate): Update call to validate_exp.
999 (constraint_data): Replace lineno field with a file_location.
1000 (add_constraint): Take a file_location rather than a line number.
1001 Use *_at functions rather than *_with_line functions. Fix error
1002 message for address constraints. Update after changes to
1003 validate_exp, constraint_data and compute_test_codes.
1004 (process_define_constraint): Update accordingly.
1005 (process_define_register_constraint): Likewise.
1007 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1009 * genoutput.c (data): Use a file_location to record the source
1012 (idata, idata_end): Remove initialization.
1013 (constraint_data): Replace lineno with a file_location.
1014 (output_insn_data): Update after changes to data.
1015 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
1016 (scan_operands): Likewise, using *_at rather than *_with_line
1018 (process_template): Likewise.
1019 (validate_insn_alternatives): Likewise.
1020 (validate_insn_operands): Likewise.
1021 (validate_optab_operands): Likewise.
1022 (init_insn_for_nothing): Initialize idata and idata_end.
1023 (note_constraint): Update after changes to constraint_data,
1024 using at rather than with_line functions.
1025 (mdep_constraint_len): Take a file_location rather than a
1026 line number. Use at rather than with_line functions.
1028 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1030 * read-md.h (fatal_at): Declare.
1031 * read-md.c (fatal_at): New function.
1032 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
1033 to record the source position.
1034 (check_attr_test): Take a file_location instead of a line number.
1035 Use fatal_at instead of fatal.
1036 (check_attr_value): Update after above changes, using "at"
1037 rather than "with_line" reporting functions.
1038 (convert_set_attr_alternative): Likewise.
1039 (gen_attr): Likewise.
1040 (check_defs): Likewise. Don't assign to read_md_filename.
1041 (gen_insn): Update initialization after above changes.
1042 (gen_delay): Likewise.
1043 (write_insn_cases): Print the filename for a define_peephole.
1044 (gen_insn_reserv): Take a line number as argument and update
1045 the call to check_attr_test.
1046 (main): Pass a line number to gen_insn_reserv.
1048 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1050 * read-md.h (file_location): New structure.
1051 (directive_handler_t): Take a file_location rather than a line number.
1052 (message_at, error_at): Declare.
1053 (read_skip_construct): Delete.
1054 * read-md.c (message_with_line_1): Replace with...
1055 (message_at_1): ...this new function.
1056 (message_at, error_at): New functions.
1057 (message_with_line, error_with_line): Update to use message_at_1.
1058 (handle_enum): Take a file_location rather than a line number
1059 and use error_at for error reporting.
1060 (handle_include): Likewise.
1061 (read_skip_construct): Likewise. Make static.
1062 (handle_file): Update after above changes. Pass a file_location
1063 rather than a line number to handle_directive.
1064 * gensupport.c (queue_elem): Replace separate filename and lineno
1065 with a file_location.
1066 (queue_pattern): Replace filename and lineno arguments with a
1067 file_location. Update after change to queue_elem.
1068 (process_define_predicate): Replace lineno argument with a
1069 file_location and use error_at for error reporting. Update
1070 after above changes.
1071 (process_rtx): Likewise.
1072 (subst_pattern_match): Likewise.
1073 (get_alternatives_number): Likewise.
1074 (alter_predicate_for_insn): Likewise.
1075 (rtx_handle_directive): Likewise.
1076 (is_predicable): Update after above changes, using error_at rather
1077 than error_with_line.
1078 (has_subst_attribute): Likewise.
1079 (identify_predicable_attribute): Likewise.
1080 (alter_attrs_for_subst_insn): Likewise.
1081 (process_one_cond_exec): Likewise.
1082 (process_substs_on_one_elem): Likewise.
1083 (process_define_subst): Likewise.
1084 (check_define_attr_duplicates): Likewise.
1085 (read_md_rtx): Update after change to queue_elem.
1087 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1089 * genoutput.c (next_index_number): Delete.
1090 (data): Remove index_number.
1091 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
1092 (main): Remove manipulation of next_index_number.
1094 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
1096 * genattrtab.c (check_attr_value): Remove handling of null attrs.
1097 (make_canonical): Likewise.
1099 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
1101 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
1102 instead of adjust_address_nv.
1103 (restore_stack_nonlocal): Likewise.
1104 (nonlocal_goto): Likewise.
1106 2015-07-16 Tom de Vries <tom@codesourcery.com>
1108 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
1109 not have a corresponding loop header phi.
1111 2015-07-16 Tom de Vries <tom@codesourcery.com>
1113 * tree-parloops.c (create_loads_for_reductions): Handle case that
1114 reduction is unused.
1116 2015-07-16 Richard Biener <rguenther@suse.de>
1118 PR tree-optimization/66894
1119 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
1120 about deriving NE_EXPR from truncated values.
1122 2015-07-16 Martin Liska <mliska@suse.cz>
1125 (object_allocator): Add new class.
1126 (pool_allocator::initialize): Use the underlying class.
1127 (pool_allocator::allocate): Likewise.
1128 (pool_allocator::remove): Likewise.
1129 (operator new): A new generic allocator.
1130 * asan.c (struct asan_mem_ref): Remove unused members.
1131 (asan_mem_ref_new): Replace new operator with
1132 object_allocator::allocate.
1133 (free_mem_ref_resources): Change deallocation.
1134 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
1135 with object_allocator.
1136 * config/sh/sh.c (add_constant): Replace new operator with
1137 object_allocator::allocate.
1138 (sh_reorg): Change call to a release method.
1139 * cselib.c (struct elt_list): Remove unused members.
1140 (new_elt_list): Replace new operator with
1141 object_allocator::allocate.
1142 (new_elt_loc_list): Likewise.
1143 (new_cselib_val): Likewise.
1144 (unchain_one_elt_list): Change delete operator with remove method.
1145 (unchain_one_elt_loc_list): Likewise.
1146 (unchain_one_value): Likewise.
1147 (cselib_finish): Release newly added static allocators.
1148 * cselib.h (struct cselib_val): Remove unused members.
1149 (struct elt_loc_list): Likewise.
1150 * df-problems.c (df_chain_alloc): Replace pool_allocator with
1152 * df-scan.c (struct df_scan_problem_data): Likewise.
1153 (df_scan_alloc): Likewise.
1154 * df.h (struct dataflow): Likewise.
1155 * dse.c (struct read_info_type): Likewise.
1156 (struct insn_info_type): Likewise.
1157 (struct dse_bb_info_type): Likewise.
1158 (struct group_info): Likewise.
1159 (struct deferred_change): Likewise.
1160 (get_group_info): Likewise.
1161 (delete_dead_store_insn): Likewise.
1162 (free_read_records): Likewise.
1163 (replace_read): Likewise.
1164 (check_mem_read_rtx): Likewise.
1165 (scan_insn): Likewise.
1166 (dse_step1): Likewise.
1167 (dse_step7): Likewise.
1168 * et-forest.c (struct et_occ): Remove unused members.
1169 (et_new_occ): Use allocate instead of new operator.
1170 (et_new_tree): Likewise.
1171 (et_free_tree): Call release method explicitly.
1172 (et_free_tree_force): Likewise.
1173 (et_free_pools): Likewise.
1174 (et_split): Use remove instead of delete operator.
1175 * et-forest.h (struct et_node): Remove unused members.
1176 * ipa-cp.c: Change pool_allocator to object_allocator.
1177 * ipa-inline-analysis.c: Likewise.
1178 * ipa-profile.c: Likewise.
1179 * ipa-prop.c: Likewise.
1180 * ipa-prop.h: Likewise.
1181 * ira-build.c (initiate_cost_vectors): Cast return value.
1182 (ira_allocate_cost_vector): Likewise.
1183 * ira-color.c (struct update_cost_record): Remove unused members.
1184 * lra-int.h (struct lra_live_range): Likewise.
1185 (struct lra_copy): Likewise.
1186 (struct lra_insn_reg): Likewise.
1187 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
1188 * lra.c (new_insn_reg): Replace new operator with allocate method.
1189 (free_insn_regs): Same for operator delete.
1190 (finish_insn_regs): Release new static allocator.
1191 (finish_insn_recog_data): Likewise.
1192 (lra_free_copies): Replace delete operator with remove method.
1193 (lra_create_copy): Replace operator new with allocate method.
1194 (invalidate_insn_data_regno_info): Same for remove method.
1195 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
1196 (free_debug_insn_changes): Replace delete operator with remove method.
1197 (replace_oldest_value_reg): Replace operator new with allocate method.
1198 (pass_cprop_hardreg::execute): Release new static variable.
1199 * sched-deps.c (sched_deps_init): Change pool_allocator to
1201 * sel-sched-ir.c: Likewise.
1202 * sel-sched-ir.h: Likewise.
1203 * stmt.c (expand_case): Likewise.
1204 (expand_sjlj_dispatch_table): Likewise.
1205 * tree-sra.c (struct access): Remove unused members.
1206 (struct assign_link): Likewise.
1207 (sra_deinitialize): Release newly added static pools.
1208 (create_access_1):Replace operator new with allocate method.
1209 (build_accesses_from_assign): Likewise.
1210 (create_artificial_child_access): Likewise.
1211 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
1212 pool_allocator to object_allocator.
1213 * tree-ssa-pre.c: Likewise.
1214 * tree-ssa-reassoc.c: Likewise.
1215 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
1216 * tree-ssa-strlen.c: Likewise.
1217 * tree-ssa-structalias.c: Likewise.
1218 * var-tracking.c (onepart_pool_allocate): New function.
1219 (unshare_variable): Use the newly added function.
1220 (variable_merge_over_cur): Likewise.
1221 (variable_from_dropped): Likewise.
1222 (variable_was_changed): Likewise.
1223 (set_slot_part): Likewise.
1224 (emit_notes_for_differences_1): Likewise.
1225 (vt_finalize): Release newly added static pools.
1227 2015-07-16 Martin Jambor <mjambor@suse.cz>
1229 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
1230 all uses. Fix two typos in its general comment.
1231 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
1233 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
1235 * config/i386/linux-common.h (LINK_MPX): New.
1236 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
1237 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
1238 indicating '-z bndplt' support by linker.
1239 * configure: Regenerate.
1240 * config.in: Regenerate.
1242 2015-07-16 Richard Biener <rguenther@suse.de>
1244 * fold-const.c (fold_widened_comparison): Remove.
1245 (fold_sign_changed_comparison): Likewise.
1246 (fold_comparison): Move widened and sign-changed comparison
1248 * match.pd: ... to patterns here.
1249 * generic-match-head.c: Include target.h.
1250 * gimple-match-head.c: Likewise.
1252 2015-07-16 Richard Biener <rguenther@suse.de>
1254 * tree-ssa-dom.c (dom_valueize): New function.
1255 (record_temporary_equivalences): Also record equivalences
1256 for dominating stmts that have uses of equivalences we are
1259 2015-07-16 Bin Cheng <bin.cheng@arm.com>
1261 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
1262 add_autoinc_candidates.
1263 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
1264 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
1265 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
1266 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
1268 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
1269 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
1270 Remove parameter struct iv*. Call add_autoinc_candidates here.
1271 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
1272 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
1274 (find_iv_candidates): Call new functions.
1276 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
1278 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
1279 uninitialized-variable warning.
1281 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
1284 * config/sh/sh.md (movdi): Split simple reg move to two movsi
1285 when the destination is R0.
1287 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
1290 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
1291 * config/i386/i386.c (ix86_expand_pextr): New function.
1292 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
1293 for non-lowpart subregs.
1294 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
1295 (insv<mode>): Use SWI248 mode iterator.
1296 (insv<mode>_1): Ditto.
1298 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1299 Sebastian Pop <s.pop@samsung.com>
1301 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
1302 iterator to use_stmt.
1304 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1305 Sebastian Pop <s.pop@samsung.com>
1307 * graphite-scop-detection.c (build_scops_1): Discard scops for
1310 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1311 Sebastian Pop <s.pop@samsung.com>
1313 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
1314 case of a return statement in scop.
1316 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
1317 Sebastian Pop <s.pop@samsung.com>
1319 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
1320 INTEGER_TYPE parameters.
1321 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
1322 VECTOR_CST in scan_tree_for_params.
1323 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
1325 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1327 * gimple-pretty-print.h: Don't include pretty-print.h.
1328 * tree-streamer.h: Don't include lto-streamer.h.
1329 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
1330 * gimple-streamer-in.c: Remove redundant includes.
1331 * gimple-streamer-out.c: Likewise.
1332 * ipa-devirt.c: Likewise.
1333 * ipa-icf.c: Likewise.
1334 * ipa-inline-analysis.c: Likewise.
1335 * ipa-polymorphic-call.c: Likewise.
1336 * ipa-profile.c: Likewise.
1337 * ipa-prop.c: Likewise.
1338 * ipa-pure-const.c: Likewise.
1339 * lto-cgraph.c: Likewise.
1340 * lto-streamer-in.c: Likewise.
1341 * lto-streamer-out.c: Likewise.
1342 * lto-streamer.c: Likewise.
1343 * tree-streamer-in.c: Likewise.
1344 * tree-streamer-out.c: Likewise.
1345 * tree-streamer.c: Likewise.
1347 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1349 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
1351 * opts.c: Remove multiline #include comment.
1353 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
1355 * config/nvptx/mkoffload.c (process): Add C++ protection to
1358 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1361 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
1362 null before IEEE 128-bit floating point support patch.
1364 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1366 * simplify-rtx.c (simplify_ternary_operation): Add simplification
1367 for (!c) != {0,...,0} ? a : b for vector modes.
1369 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
1370 Martin Jambor <mjambor@suse.cz>
1372 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
1373 struct func_body_info* instead of struct ipa_node_params*, expecting
1374 fbi->info to be filled in. Replace throughout. Adjust call to
1375 ipa_load_from_parm_agg.
1376 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
1377 instead of struct ipa_node_params*. Adjust calls to other functions
1378 so that they pass either fbi or fbi->info.
1379 (set_switch_stmt_execution_predicate): Likewise.
1380 (will_be_nonconstant_predicate): Likewise.
1381 (compute_bb_predicates): Likewise.
1382 (estimate_function_body_sizes): Move asserts earlier. Fill in
1383 struct func_body_info, replace parms_info with fbi.info. Adjust
1384 calls to functions that now accept struct func_body_info.
1385 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
1386 (struct func_body_info): Likewise.
1387 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
1388 remove static. Adjust callers.
1389 (ipa_load_from_parm_agg): Remove.
1390 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
1391 (func_body_info): Likewise.
1392 (ipa_load_from_parm_agg): Adjust prototype.
1394 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1396 * gensupport.c (rtx_handle_directive): Adjust.
1397 * read-rtl.c (apply_iterators): Take vector to add rtxs to
1398 instead of expr list rtx.
1399 (add_define_attr_for_define_subst): Likewise.
1400 (add_define_subst_attr): Likewise.
1401 (read_subst_mapping): Likewise.
1402 (read_rtx): Likewise.
1403 * rtl.h (read_rtx): Adjust.
1405 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1407 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
1409 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1412 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
1413 (*tls_local_dynamic_base_64_<mode>): Ditto.
1414 (*tls_local_dynamic_base_64_largepic): Ditto.
1415 (tls_global_dynamic_64_<mode>): Update expander pattern.
1416 (tls_local_dynamic_base_64_<mode>): Ditto.
1418 2015-07-15 Richard Biener <rguenther@suse.de>
1420 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
1421 and bool_var == 1 -> bool_var simplifications ...
1422 * match.pd: ... to patterns here. Factor out negate_expr_p
1423 cases from the A - B -> A + (-B) patterns as negate_expr_p
1424 predicate and add a -(A + B) -> (-B) - A pattern.
1426 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1428 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
1430 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
1431 Robert Suchanek <robert.suchanek@imgtec.com>
1433 * config/mips/mips.c (mips_int_mask): New enum.
1434 (mips_shadow_set): Likewise.
1435 (int_mask): New variable.
1436 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
1437 (machine_function): Add int_mask and use_shadow_register_set.
1438 (mips_attribute_table): Add attribute handlers for interrupt and
1439 use_shadow_register_set.
1440 (mips_interrupt_mask): New static function.
1441 (mips_handle_interrupt_attr): Likewise.
1442 (mips_handle_use_shadow_register_set_attr): Likewise.
1443 (mips_use_shadow_register_set): Change return type to enum
1444 mips_shadow_set. Add argument handling for use_shadow_register_set
1446 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
1447 compare with mips_shadow_set enum.
1448 (mips_compute_frame_info): Add interrupt mask and
1449 use_shadow_register_set to per-function information structure.
1450 Add a stack slot for EPC unconditionally.
1451 (mips_expand_prologue): Compare use_shadow_register_set value
1452 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
1453 masked interrupt register but in EIC mode use K0 and save Cause in K0.
1454 EPC saved and restored unconditionally. Use PMODE_INSN macro when
1455 copying the stack pointer from the shadow register set.
1456 * config/mips/mips.h (SR_IM0): New define.
1457 * config/mips/mips.md (mips_rdpgpr): Rename to...
1458 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
1459 * doc/extend.texi (Declaring Attributes of Functions): Document
1460 optional arguments for interrupt and use_shadow_register_set
1463 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
1465 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
1466 interrupt attribute.
1467 (mips_expand_prologue): Disable the floating point unit in an ISR.
1468 * config/mips/mips.h (SR_COP1): New define.
1470 2015-07-15 Richard Biener <rguenther@suse.de>
1472 * genmatch.c (parser::peek, parser::peek_ident): Add argument
1473 to tell how many tokens to peek ahead (default 1).
1474 (parser::eat_token, parser::eat_ident): Return token consumed.
1475 (parser::parse_result): Parse new switch statement.
1476 * match.pd: Use case statements where appropriate.
1478 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1480 PR rtl-optimization/58066
1481 * calls.c (expand_call): Precompute register parameters before stack
1482 alignment is performed.
1484 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
1486 PR rtl-optimization/66838
1487 * postreload.c (reload_cse_move2add): Also process
1488 CALL_INSN_FUNCTION_USAGE when resetting information of
1489 call-clobbered registers.
1491 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1492 Cesar Philippidis <cesar@codesourcery.com>
1493 Chung-Lin Tang <cltang@codesourcery.com>
1495 * config/nios2/constraints.md (U, v): New constraints.
1496 * config/nios2/predicates.md (rdprs_dcache_operand): New.
1497 (ldstex_memory_operand): New.
1498 * config/nios2/sync.md: New file.
1499 * config/nios2/nios2.md (unspecv): Add new builtin function
1501 (rdprs, flushd, flushda, wrpie, eni): New patterns.
1502 (top-level): Include sync.md.
1503 * config/nios2/nios2.c (N2_FTYPES): Add function types for
1505 (N2_BUILTINS): Add arch field setting, add new builtins.
1506 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
1508 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
1509 Also handle ldex/stex/ldsex/stsex builtins.
1510 (nios2_expand_rdprs_builtin): New function.
1511 (nios2_expand_cache_builtin): New function.
1512 (nios2_expand_wrpie_builtin): New function.
1513 (nios2_expand_eni_builtin): New function.
1514 (nios2_expand_builtin): Add arch field handling and new builtin
1516 * doc/extend.texi (Altera Nios II Built-in Functions): Document
1518 * doc/md.texi (Machine Constraints): Document U and v constraints.
1520 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1521 Cesar Philippidis <cesar@codesourcery.com>
1522 Chung-Lin Tang <cltang@codesourcery.com>
1524 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
1525 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
1526 callee_save_reg_size and uses_anonymous_args fields.
1527 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
1528 (nios2_create_cfa_notes): New function.
1529 (nios2_adjust_stack): New function for adjusting stack.
1530 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
1531 Use nios2_adjust_stack.
1532 (nios2_expand_epilogue): Likewise.
1533 (nios2_expand_return): New function.
1534 (nios2_can_use_return_insn): Update for CDX pop.n usage.
1535 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
1536 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
1537 * config/nios2/nios2.md (return): Use nios2_expand_return.
1539 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1540 Cesar Philippidis <cesar@codesourcery.com>
1541 Chung-Lin Tang <cltang@codesourcery.com>
1543 * config/nios2/predicates.md (pop_operation): New.
1544 (ldwm_operation, stwm_operation): New.
1545 (nios2_hard_register_operand): New.
1546 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
1547 (ldstwm_operation_p): Declare.
1548 (gen_ldstwm_peep): Declare.
1549 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
1550 (base_reg_adjustment_p): New.
1551 (pop_operation_p): New.
1552 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
1553 (nios2_ldstwm_regset_p): New.
1554 (ldstwm_operation_p): New.
1556 (nios2_ldst_parallel): New.
1557 (struct ldswm_operand): Declare.
1558 (compare_ldstwm_operands): New.
1559 (can_use_cdx_ldstw): New.
1560 (gen_ldstwm_peep): New.
1561 * config/nios2/nios2-ldstwm.sml: New.
1562 * config/nios2/nios2.md: Include ldstwm.md.
1563 * config/nios2/ldstwm.md: Generated.
1565 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1566 Cesar Philippidis <cesar@codesourcery.com>
1567 Chung-Lin Tang <cltang@codesourcery.com>
1569 * config/nios2/nios2.h (LABEL_ALIGN): Define.
1570 (REG_ALLOC_ORDER): Define.
1571 (ADJUST_REG_ALLOC_ORDER): Define.
1572 (HONOR_REG_ALLOC_ORDER): Define.
1573 (CDX_REG_P): Define.
1574 (ANDCLEAR_INT): Define.
1575 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
1576 (nios2_label_align): Declare.
1577 (nios2_cdx_narrow_form_p): Declare.
1578 (nios2_adjust_reg_alloc_order): Declare.
1579 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
1581 (nios2_large_unspec_reloc_p): New function, split from...
1582 (nios2_legitimate_pic_operand_p): ...here.
1583 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
1584 (nios2_print_operand_punct_valid_p): New.
1585 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
1586 (split_mem_address): New.
1587 (split_alu_insn): New.
1589 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
1590 (enum nios2_add_insn_kind): New.
1591 (nios2_add_insn_names, nios2_add_insn_narrow): New.
1592 (nios2_add_insn_classify): New.
1593 (nios2_add_insn_asm): New.
1594 (nios2_cdx_narrow_form_p): New.
1595 (label_align, min_labelno, max_labelno): New.
1597 (nios2_label_align): New.
1598 (nios2_adjust_reg_alloc_order): New.
1599 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1600 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1601 * config/nios2/constraints.md (P): New constraint.
1602 * config/nios2/predicates.md (const_and_operand): New.
1604 (stack_memory_operand): New.
1605 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
1606 (length): Update to use nios2_cdx_narrow_form_p().
1607 (type): Add new insn type values.
1608 (control, alu, st, ld, shift): Update insn reservations with
1609 new insn type values.
1610 (*high, *lo_sum): Define new insn patterns for constant generation.
1611 (movqi_internal, movhi_internal, movsi_internal): Reduce
1612 alternatives, update asm template to handle CDX variants, update
1614 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
1615 template, update type attributes.
1616 (extendhisi2, extendqi<mode>2): Likewise.
1617 (addsi3): Change to use function for asm string.
1618 (subsi3): Add CDX notation to asm template, update type attributes.
1619 (negsi3, one_cmplsi3): Likewise.
1620 (andsi3): New pattern, specialized from logical patterns.
1621 (<code>si3): Remove and case, combine alternatives, update asm
1623 (<shift_op>si3): Add CDX notation, update type attributes.
1624 (rotrsi3): Update type attribute.
1625 (*merge, extzv, insv): New insn patterns.
1626 (return): Change to define_expand.
1627 (simple_return): Add CDX notation, update type attributes.
1628 (indirect_jump): Add CDX notation.
1629 (jump): Update asm cases, update length attribute expression.
1630 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
1631 (nios2_cbranch): Update asm cases and length attribute expression
1632 to handle CDX variants.
1633 (nios2_cmp<code>): Update asm template.
1634 (nop): Add CDX notation, update type attributes.
1635 (trap): Add CDX notation.
1636 (ctrapsi4): Update asm cases and length attribute expression to
1638 * doc/md.texi (Machine Constraints): Document P constraint.
1640 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1641 Cesar Philippidis <cesar@codesourcery.com>
1642 Chung-Lin Tang <cltang@codesourcery.com>
1644 * config/nios2/nios2.h (SMALL_INT12): New macro.
1645 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
1646 (nios2_valid_addr_expr_p): Use it.
1647 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
1648 with implicit "io" instructions on R2.
1649 * config/nios2/constraints.md (w): New constraint.
1650 * config/nios2/predicates.md (ldstio_memory_operand): New.
1651 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
1652 operand predicate and constraint.
1653 (ld<bh>io_signed, st<bhw>io>): Likewise.
1654 * doc/md.texi (Machine Constraints): Document w constraint.
1656 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1657 Cesar Philippidis <cesar@codesourcery.com>
1658 Chung-Lin Tang <cltang@codesourcery.com>
1660 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
1661 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
1662 Nios II architecture level.
1663 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
1664 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
1665 (OPTION_DEFAULT_SPECS): Define.
1666 (ASM_SPEC): Add -march= spec strings.
1667 * config/nios2/nios2.c (nios2_option_override): Check for
1668 conflicts involving new options.
1669 * config.gcc (nios2*-*-*): Support --with-arch=.
1670 * doc/invoke.texi (Option Summary, Nios II Options): Document
1671 -march=, -mbmx, and -mcdx.
1673 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
1675 PR rtl-optimization/66626
1676 * lra-constraints.c (lra_constraints): Prevent equivalence
1677 substitution for static chain pseudo in functions with nonlocal
1680 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
1682 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
1683 (nios2_emit_stack_limit_check): Add size parameter. Handle
1684 -fstack-limit-symbol as well as -fstack-limit-register.
1685 (nios2_expand_prologue): Emit only a single stack limit check,
1686 even if multiple stack adjustments are required.
1687 (nios2_option_override): Diagnose unsupported combination of -fpic
1688 and -stack-limit-symbol.
1690 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
1692 * Makefile.in (top_srcdir): New.
1693 * configure.ac: Use AM_ZLIB.
1694 * configure: Regeneated.
1696 2015-07-14 Matthias Klose <doko@ubuntu.com>
1699 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
1701 2015-07-14 Richard Biener <rguenther@suse.de>
1703 PR tree-optimization/66863
1704 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
1705 what we record for conversion use stmt lhs inequalities.
1707 2015-07-14 Richard Biener <rguenther@suse.de>
1709 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
1710 (decision_tree::gen_gimple): Likewise.
1712 2015-07-14 Tom de Vries <tom@codesourcery.com>
1714 * gcc.c (greater_than_spec_func): Declare forward.
1715 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
1716 -ftree-parallelize-loops={0,1}.
1717 (static_spec_functions): Add greater_than_spec_func function with name
1719 (greater_than_spec_func): New function.
1721 2015-07-14 Richard Biener <rguenther@suse.de>
1723 * tree-ssa-dom.c (record_temporary_equivalences): Merge
1724 wideing type conversion case from record_equivalences_from_incoming_edge
1725 and use record_equality to record equivalences.
1726 (record_equivalences_from_incoming_edge): Call
1727 record_temporary_equivalences.
1729 2015-07-14 Richard Biener <rguenther@suse.de>
1731 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
1732 (struct if_expr): New.
1733 (struct with_expr): Likewise.
1734 (is_a_helper): Add helpers for if_expr and with_expr.
1735 (struct simplify): Add simplify_kind enum and member. Remove
1737 (simplify::simplify): Adjust.
1738 (lower_commutative): Adjust.
1739 (lower_opt_convert): Likewise.
1740 (lower_cond): Likewise.
1741 (replace_id): Handle with_expr and if_expr.
1742 (lower_for): Adjust.
1743 (dt_simplify::gen_1): New recursive worker, split out from ...
1744 (dt_simplify::gen): ... here. Deal with if and with expansion
1746 (capture_info::capture_info): Take context argument
1747 (capture_info::walk_result): Only analyze specific result.
1748 (parser::parse_result): New function.
1749 (parser::parse_simplify): Adjust to parse ifs with then end
1751 (parser::parse_if): Simplify.
1752 (parser::parse_pattern): Pass down simplify kind.
1753 * match.pd: Convert if structure to new syntax.
1755 2015-07-13 Marek Polacek <polacek@redhat.com>
1757 * rtl.c (rtx_equal_p_cb): Fix typo.
1759 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
1761 * omega.h: Don't include config.h, don't include params.h again if
1762 omega.h has already been included.
1763 * graphite-poly.h: Include sese.h.
1764 * graphite.c: Don't include sese.h, remove needless includes and
1765 minimize includes outside #ifdef HAVE_isl block.
1766 * graphite-blocking.c: Don't include sese.h, remove needless includes,
1767 and wrap entire file in #ifdef HAVE_isl
1768 * graphite-dependences.c: Likewise.
1769 * graphite-interchange.c: Likewise.
1770 * graphite-isl-ast-to-gimple.c: Likewise.
1771 * graphite-optimize-isl.c: Likewise.
1772 * graphite-poly.c: Likewise.
1773 * graphite-scop-detection.c: Likewise.
1774 * graphite-sese-to-poly.c: Likewise.
1776 2015-07-13 Tom de Vries <tom@codesourcery.com>
1778 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
1780 2015-07-13 Renlin Li <renlin.li@arm.com>
1783 * simplify-rtx.c (simplify_const_relational_operation): Add
1784 side_effects_p checks.
1786 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1788 * bitmap.h: Fix double word typos.
1791 * cfgloopmanip.c: Same.
1794 * cgraphclones.c: Same.
1796 * config/aarch64/aarch64-protos.h: Same.
1797 * config/aarch64/aarch64.c: Same.
1798 * config/aarch64/aarch64.md: Same.
1799 * config/arm/arm.md: Same.
1800 * config/arm/arm1020e.md: Same.
1801 * config/arm/arm1026ejs.md: Same.
1802 * config/arm/arm926ejs.md: Same.
1803 * config/arm/fa526.md: Same.
1804 * config/arm/fa606te.md: Same.
1805 * config/arm/fa626te.md: Same.
1806 * config/arm/fa726te.md: Same.
1807 * config/arm/fmp626.md: Same.
1808 * config/darwin.c: Same.
1809 * config/epiphany/epiphany.c: Same.
1810 * config/frv/frv.c: Same.
1811 * config/ft32/ft32.c: Same.
1812 * config/gnu-user.h: Same.
1813 * config/h8300/constraints.md: Same.
1814 * config/i386/i386.c: Same.
1815 * config/i386/i386.md: Same.
1816 * config/iq2000/iq2000.md: Same.
1817 * config/mips/mips.c: Same.
1818 * config/mmix/mmix.md: Same.
1819 * config/moxie/moxie.c: Same.
1820 * config/nds32/nds32.md: Same.
1821 * config/pa/pa.h: Same.
1822 * config/rs6000/aix.h: Same.
1823 * config/rs6000/rs6000.h: Same.
1824 * config/sh/sh.c: Same.
1825 * config/tilegx/tilegx.md: Same.
1826 * config/tilepro/gen-mul-tables.cc: Same.
1829 * doc/invoke.texi: Same.
1831 * dwarf2out.c: Same.
1836 * hash-table.h: Same.
1837 * internal-fn.c: Same.
1839 * ipa-devirt.c: Same.
1842 * ipa-profile.c: Same.
1847 * reg-stack.c: Same.
1853 * tree-inline.c: Same.
1855 * tree-ssa-dom.c: Same.
1856 * tree-ssa-loop-ivopts.c: Same.
1857 * tree-ssa-structalias.c: Same.
1858 * tree-ssa-tail-merge.c: Same.
1859 * tree-ssa-ter.c: Same.
1860 * tree-ssa-threadupdate.c: Same.
1861 * tree-ssa-uninit.c: Same.
1862 * tree-ssanames.c: Same.
1863 * tree-vect-loop-manip.c: Same.
1869 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1872 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
1873 tree_ssa_phiopt_worker): Call it.
1875 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1877 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
1878 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
1881 2015-07-11 Marek Polacek <polacek@redhat.com>
1884 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
1885 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
1886 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
1887 rather than bb_has_abnormal_call_pred.
1888 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
1889 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
1890 rather than bb_has_abnormal_call_pred.
1892 2015-07-10 Anatoly Sokolov <aesok@post.ru>
1894 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1895 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
1896 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
1897 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
1898 v850_legitimate_address_p): New functions.
1899 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
1901 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
1904 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
1905 indirect sibcall with register arguments if register available
1906 for argument passing.
1907 (init_cumulative_args): Set cfun->machine->arg_reg_available
1908 to (cum->nregs > 0) or to true if function has a variable
1910 (function_arg_advance_32): Set cfun->machine->arg_reg_available
1911 to false if cum->nregs <= 0.
1912 * config/i386/i386.h (machine_function): Add arg_reg_available.
1914 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
1916 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
1917 and gen_higpart instead of gen_rtx_SUBREG.
1918 * config/i386/i386.md
1919 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
1920 (read-modify peephole2): Use gen_lowpart instead of
1921 gen_rtx_SUBREG for operand 5.
1923 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1925 * config/tilepro/gen-mul-tables.cc (main): Change include list for
1927 * config/tilepro/mul-tables.c: Regenerate.
1928 * config/tilegx/mul-tables.c: Regenerate.
1930 2015-07-10 Richard Biener <rguenther@suse.de>
1932 * fold-const.c (distribute_bit_expr): Remove.
1933 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
1934 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
1935 to A & (B | C) and simplifying A << C1 << C2 to ...
1936 * match.pd: ... patterns here.
1938 2015-07-10 Jiong Wang <jiong.wang@arm.com>
1940 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1941 Mark mem as READONLY and NOTRAP for PIC symbol.
1943 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
1945 * gimple-predict.h: New file.
1946 (gimple_predict_predictor, gimple_predict_set_predictor,
1947 gimple_predict_outcome, gimple_predict_set_outcome,
1948 gimple_build_predict): Relocate here.
1949 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
1950 gimple_predict_outcome, gimple_predict_set_outcome): Move to
1952 * gimple.c (gimple_build_predict): Move to gimple-predict.h
1953 * basic-block.h: Don't include cfghooks.h.
1954 * backend.h: Don't include predict.h.
1955 * cfghooks.h: Include predict.h.
1956 * gimple-pretty-print.c: Include gimple-predict.h.
1957 * gimplify.c: Likwise.
1958 * predict.c: Adjust includes.
1959 * tree-inline.c: Likewise.
1961 * auto-inc-dec.c: Likewise.
1962 * auto-profile.c: Likewise.
1963 * bb-reorder.c: Likewise.
1964 * builtins.c: Likewise.
1965 * caller-save.c: Likewise.
1966 * calls.c: Likewise.
1967 * cfganal.c: Likewise.
1968 * cfgbuild.c: Likewise.
1970 * cfgcleanup.c: Likewise.
1971 * cfgexpand.c: Likewise.
1972 * cfghooks.c: Likewise.
1973 * cfgloopanal.c: Likewise.
1974 * cfgloop.c: Likewise.
1975 * cfgloopmanip.c: Likewise.
1976 * cfgrtl.c: Likewise.
1977 * cgraph.c: Likewise.
1978 * cgraphunit.c: Likewise.
1979 * combine.c: Likewise.
1980 * cprop.c: Likewise.
1983 * dojump.c: Likewise.
1985 * except.c: Likewise.
1986 * expmed.c: Likewise.
1988 * final.c: Likewise.
1989 * fold-const.c: Likewise.
1990 * function.c: Likewise.
1991 * fwprop.c: Likewise.
1992 * gcc-plugin.h: Likewise.
1994 * genattrtab.c: Likewise.
1995 * genemit.c: Likewise.
1996 * gengtype.c: Likewise.
1997 * genopinit.c: Likewise.
1998 * genoutput.c: Likewise.
1999 * genpreds.c: Likewise.
2000 * genrecog.c: Likewise.
2001 * gimple-fold.c: Likewise.
2002 * gimple-iterator.c: Likewise.
2003 * gimple-ssa-isolate-paths.c: Likewise.
2004 * gimple-ssa-strength-reduction.c: Likewise.
2005 * graph.c: Likewise.
2006 * graphite-blocking.c: Likewise.
2007 * graphite.c: Likewise.
2008 * graphite-dependences.c: Likewise.
2009 * graphite-interchange.c: Likewise.
2010 * graphite-isl-ast-to-gimple.c: Likewise.
2011 * graphite-optimize-isl.c: Likewise.
2012 * graphite-poly.c: Likewise.
2013 * graphite-scop-detection.c: Likewise.
2014 * graphite-sese-to-poly.c: Likewise.
2015 * haifa-sched.c: Likewise.
2016 * ifcvt.c: Likewise.
2017 * internal-fn.c: Likewise.
2018 * ipa-cp.c: Likewise.
2019 * ipa-profile.c: Likewise.
2020 * ipa-split.c: Likewise.
2021 * ipa-utils.c: Likewise.
2022 * ira-build.c: Likewise.
2023 * ira-color.c: Likewise.
2024 * ira-conflicts.c: Likewise.
2025 * ira-costs.c: Likewise.
2026 * ira-emit.c: Likewise.
2027 * ira-lives.c: Likewise.
2029 * loop-doloop.c: Likewise.
2030 * loop-init.c: Likewise.
2031 * loop-invariant.c: Likewise.
2032 * loop-unroll.c: Likewise.
2033 * lower-subreg.c: Likewise.
2034 * lra-assigns.c: Likewise.
2036 * lra-coalesce.c: Likewise.
2037 * lra-constraints.c: Likewise.
2038 * lra-lives.c: Likewise.
2039 * lto-cgraph.c: Likewise.
2040 * lto-streamer-in.c: Likewise.
2041 * mode-switching.c: Likewise.
2042 * modulo-sched.c: Likewise.
2043 * omp-low.c: Likewise.
2044 * optabs.c: Likewise.
2045 * passes.c: Likewise.
2046 * postreload.c: Likewise.
2047 * postreload-gcse.c: Likewise.
2048 * profile.c: Likewise.
2049 * recog.c: Likewise.
2050 * regstat.c: Likewise.
2051 * reload1.c: Likewise.
2052 * reorg.c: Likewise.
2053 * rtlanal.c: Likewise.
2054 * sched-ebb.c: Likewise.
2055 * sel-sched-ir.c: Likewise.
2057 * shrink-wrap.c: Likewise.
2058 * simplify-rtx.c: Likewise.
2060 * store-motion.c: Likewise.
2061 * tracer.c: Likewise.
2062 * trans-mem.c: Likewise.
2063 * tree-call-cdce.c: Likewise.
2064 * tree-cfg.c: Likewise.
2065 * tree-cfgcleanup.c: Likewise.
2066 * tree-chkp.c: Likewise.
2067 * tree-complex.c: Likewise.
2068 * tree-eh.c: Likewise.
2069 * tree-if-conv.c: Likewise.
2070 * tree-loop-distribution.c: Likewise.
2071 * tree-outof-ssa.c: Likewise.
2072 * tree-parloops.c: Likewise.
2073 * tree-predcom.c: Likewise.
2074 * tree-pretty-print.c: Likewise.
2075 * tree-profile.c: Likewise.
2076 * tree-sra.c: Likewise.
2077 * tree-ssa.c: Likewise.
2078 * tree-ssa-coalesce.c: Likewise.
2079 * tree-ssa-dce.c: Likewise.
2080 * tree-ssa-dom.c: Likewise.
2081 * tree-ssa-forwprop.c: Likewise.
2082 * tree-ssa-ifcombine.c: Likewise.
2083 * tree-ssa-loop-ch.c: Likewise.
2084 * tree-ssa-loop-im.c: Likewise.
2085 * tree-ssa-loop-ivcanon.c: Likewise.
2086 * tree-ssa-loop-ivopts.c: Likewise.
2087 * tree-ssa-loop-manip.c: Likewise.
2088 * tree-ssa-loop-prefetch.c: Likewise.
2089 * tree-ssa-loop-unswitch.c: Likewise.
2090 * tree-ssa-math-opts.c: Likewise.
2091 * tree-ssa-phiopt.c: Likewise.
2092 * tree-ssa-pre.c: Likewise.
2093 * tree-ssa-reassoc.c: Likewise.
2094 * tree-ssa-sink.c: Likewise.
2095 * tree-ssa-tail-merge.c: Likewise.
2096 * tree-ssa-threadedge.c: Likewise.
2097 * tree-ssa-threadupdate.c: Likewise.
2098 * tree-switch-conversion.c: Likewise.
2099 * tree-tailcall.c: Likewise.
2100 * tree-vect-data-refs.c: Likewise.
2101 * tree-vect-loop.c: Likewise.
2102 * tree-vect-loop-manip.c: Likewise.
2103 * tree-vectorizer.c: Likewise.
2104 * tree-vrp.c: Likewise.
2105 * ubsan.c: Likewise.
2106 * value-prof.c: Likewise.
2107 * varasm.c: Likewise.
2108 * var-tracking.c: Likewise.
2109 * config/aarch64/aarch64-builtins.c: Likewise.
2110 * config/aarch64/aarch64.c: Likewise.
2111 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
2112 * config/alpha/alpha.c: Likewise.
2113 * config/arc/arc.c: Likewise.
2114 * config/arm/arm.c: Likewise.
2115 * config/avr/avr.c: Likewise.
2116 * config/bfin/bfin.c: Likewise.
2117 * config/c6x/c6x.c: Likewise.
2118 * config/cr16/cr16.c: Likewise.
2119 * config/cris/cris.c: Likewise.
2120 * config/darwin.c: Likewise.
2121 * config/darwin-c.c: Likewise.
2122 * config/epiphany/epiphany.c: Likewise.
2123 * config/epiphany/mode-switch-use.c: Likewise.
2124 * config/epiphany/resolve-sw-modes.c: Likewise.
2125 * config/fr30/fr30.c: Likewise.
2126 * config/frv/frv.c: Likewise.
2127 * config/ft32/ft32.c: Likewise.
2128 * config/h8300/h8300.c: Likewise.
2129 * config/i386/i386.c: Likewise.
2130 * config/i386/winnt.c: Likewise.
2131 * config/ia64/ia64.c: Likewise.
2132 * config/iq2000/iq2000.c: Likewise.
2133 * config/lm32/lm32.c: Likewise.
2134 * config/m32c/m32c.c: Likewise.
2135 * config/m32r/m32r.c: Likewise.
2136 * config/m68k/m68k.c: Likewise.
2137 * config/mcore/mcore.c: Likewise.
2138 * config/mep/mep.c: Likewise.
2139 * config/microblaze/microblaze.c: Likewise.
2140 * config/mips/mips.c: Likewise.
2141 * config/mmix/mmix.c: Likewise.
2142 * config/mn10300/mn10300.c: Likewise.
2143 * config/moxie/moxie.c: Likewise.
2144 * config/msp430/msp430.c: Likewise.
2145 * config/nds32/nds32.c: Likewise.
2146 * config/nds32/nds32-cost.c: Likewise.
2147 * config/nds32/nds32-fp-as-gp.c: Likewise.
2148 * config/nds32/nds32-intrinsic.c: Likewise.
2149 * config/nds32/nds32-isr.c: Likewise.
2150 * config/nds32/nds32-md-auxiliary.c: Likewise.
2151 * config/nds32/nds32-memory-manipulation.c: Likewise.
2152 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2153 * config/nds32/nds32-predicates.c: Likewise.
2154 * config/nios2/nios2.c: Likewise.
2155 * config/nvptx/nvptx.c: Likewise.
2156 * config/pa/pa.c: Likewise.
2157 * config/pdp11/pdp11.c: Likewise.
2158 * config/rl78/rl78.c: Likewise.
2159 * config/rs6000/rs6000.c: Likewise.
2160 * config/rx/rx.c: Likewise.
2161 * config/s390/s390.c: Likewise.
2162 * config/sh/sh.c: Likewise.
2163 * config/sh/sh-mem.cc: Likewise.
2164 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
2165 * config/sh/sh_treg_combine.cc: Likewise.
2166 * config/sparc/sparc.c: Likewise.
2167 * config/spu/spu.c: Likewise.
2168 * config/stormy16/stormy16.c: Likewise.
2169 * config/tilegx/tilegx.c: Likewise.
2170 * config/tilepro/tilepro.c: Likewise.
2171 * config/v850/v850.c: Likewise.
2172 * config/vax/vax.c: Likewise.
2173 * config/visium/visium.c: Likewise.
2174 * config/xtensa/xtensa.c: Likewise.
2176 2015-07-10 Richard Biener <rguenther@suse.de>
2178 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
2179 (decision_tree::gen_gimple): Likewise.
2180 (decision_tree::gen_generic): Likewise.
2182 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
2185 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
2186 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
2188 2015-07-10 Jakub Jelinek <jakub@redhat.com>
2191 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
2192 or ORT_TASK contexts.
2193 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
2196 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2198 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
2201 2015-07-10 Tom de Vries <tom@codesourcery.com>
2203 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
2204 insert nit + 1 bound.
2206 2015-07-10 Richard Biener <rguenther@suse.de>
2208 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
2209 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
2210 (if_convertible_loop_p_1): For this always compute bb predicates.
2211 (if_convertible_loop_p): And free them.
2213 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2215 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
2218 2015-07-10 Richard Biener <rguenther@suse.de>
2220 PR tree-optimization/66823
2221 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
2224 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
2226 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
2227 to handle mips[32|64]r3 and mips[32|64]r5.
2229 2015-07-09 Jakub Jelinek <jakub@redhat.com>
2232 * tree-nested.c (get_static_chain): Or in a flag into
2233 info->static_chain_added.
2234 (get_frame_field, get_nonlocal_debug_decl): Likewise.
2235 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
2237 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
2238 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
2241 PR tree-optimization/66718
2242 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
2244 (vect_simd_lane_linear): New function.
2245 (vectorizable_simd_clone_call): Support using linear arguments for
2246 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
2248 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2251 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
2253 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2255 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
2256 Use machine mode, not enum machine_mode in the prototype.
2258 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
2259 classify 128-bit floating point support.
2260 (FLOAT128_IBM_P): Likewise.
2261 (FLOAT128_VECTOR_P): Likewise.
2262 (FLOAT128_2REG_P): Likewise.
2263 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
2264 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
2265 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2266 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
2268 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
2269 tests against TFmode/TDmode, since those modes do not use VSX
2271 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
2273 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
2274 tests against TFmode, etc.
2275 (invalid_e500_subreg): Add tests against IFmode/KFmode.
2276 (reg_offset_addressing_ok_p): Likewise.
2277 (rs6000_legitimate_offset_address_p): Likewise.
2278 (rs6000_legitimize_address): Likewise.
2279 (rs6000_legitimize_reload_address): Likewise.
2280 (rs6000_legitimate_address_p): Clean up tests against TFmode and
2281 TDmode to use the new helper macros, which will include IFmode and
2283 (rs6000_emit_move): Likewise.
2284 (rs6000_darwin64_record_arg_recurse): Likewise.
2285 (print_operand): Likewise.
2286 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
2287 that uses a single vector register as a vector and not as a
2288 floating point register in terms of the calling sequence.
2289 (rs6000_discover_homogeneous_aggregate): Likewise.
2290 (rs6000_return_in_memory): Likewise.
2291 (init_cumulative_args): Likewise.
2292 (rs6000_function_arg_boundary): Likewise.
2293 (rs6000_function_arg_advance_1): Likewise.
2294 (rs6000_function_arg): Likewise.
2295 (rs6000_pass_by_reference): Likewise.
2296 (rs6000_gimplify_va_arg): Likewise.
2297 (rs6000_secondary_reload_memory): Use machine_mode not enum
2299 (rs6000_split_multireg_move): Use new helper macros.
2300 (spe_func_has_64bit_regs_p): Likewise.
2301 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
2302 (output_toc): Use new helper macros.
2303 (rs6000_register_move_cost): Likewise.
2304 (rs6000_function_value): Add IEEE 128-bit floating point calling
2306 (rs6000_libcall_value): Likewise.
2307 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
2308 floating point support.
2309 (rs6000_vector_mode_supported_p): Likewise.
2311 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
2313 PR rtl-optimization/66782
2314 * lra-int.h (struct lra_insn_recog_data): Add comment about
2315 clobbered hard regs for arg_hard_regs.
2316 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
2317 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
2318 Add condition for processing used hard regs.
2319 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
2320 Process clobbered hard regs.
2322 2015-07-09 Michael Matz <matz@suse.de>
2324 * genmatch.c (fprintf_indent): New function.
2325 (operand::gen_transform): Add indent parameter.
2326 (expr::gen_transform, c_expr::gen_transform,
2327 capture::gen_transform): Ditto and use fprintf_indent.
2328 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
2329 (dt_operand::gen, dt_operand::gen_predicate,
2330 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
2331 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
2332 (decision_tree::gen_gimple): Adjust calls and indent generated
2334 (decision_tree::gen_generic): Ditto.
2335 (write_predicate): Ditto.
2337 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2340 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
2341 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
2342 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
2343 {GENERAL,SSE,MMX}_REG_P where appropriate.
2345 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2347 * lto-streamer.h: Don't include target.h and alloc-pool.h.
2348 * builtins.c: Adjust includes.
2349 * gimple.c: Likewise.
2350 * ipa-icf.c: Likewise.
2351 * lto-opts.c: Likewise.
2352 * ipa-reference.c: Likewise.
2353 * lto-section-out.c: Likewise.
2354 * lto-streamer-in.c: Likewise.
2355 * lto-streamer-out.c: Likewise.
2356 * opts-global.c: Likewise.
2357 * symtab.c: Likewise.
2358 * tree-chkp.c: Likewise.
2359 * tree-ssa-live.c: Likewise.
2360 * tree-streamer-in.c: Likewise.
2361 * tree-streamer-out.c: Likewise.
2362 * config/darwin.c: Likewise.
2363 * config/i386/winnt.c: Likewise.
2365 2015-07-09 Richard Biener <rguenther@suse.de>
2367 * genmatch.c (struct expr): Add force_single_use flag.
2368 (expr::expr): Add copy constructor.
2369 (capture_info::walk_match): Gather force_single_use captures.
2370 (expr::gen_transform): Use possibly NULLified sequence.
2371 (dt_simplify::gen): Apply single-use restrictions by NULLifying
2372 seq if any constrained expr is not single-use.
2373 (parser::parse_expr): Refactor to allow multiple flags. Handle
2374 's' flag to force an expression have a single-use if the pattern
2375 simplifies to more than one statement.
2376 * match.pd: Convert most single_use conditionals to :s flags.
2378 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2380 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
2381 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2382 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2384 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
2386 * flags.h: Don't include flag-types.h or options.h.
2387 * opts-common.c: Adjust includes.
2388 * opts-global.c: Likewise.
2389 * common/config/epiphany/epiphany-common.c: Likewise.
2391 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2394 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
2397 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
2400 * config/i386/i386.c (ix86_return_in_memory): Return true
2401 if int_size_in_bytes returns negative for IA MCU.
2403 2015-07-09 Marek Polacek <polacek@redhat.com>
2405 PR tree-optimization/66718
2406 * Makefile.in (OBJS): Add gimple-laddress.o.
2407 * passes.def: Schedule pass_laddress.
2408 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
2409 * tree-pass.h (make_pass_laddress): Declare.
2410 * gimple-laddress.c: New file.
2412 2015-07-09 Richard Biener <rguenther@suse.de>
2414 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
2416 2015-07-09 Richard Biener <rguenther@suse.de>
2418 PR tree-optimization/66807
2419 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
2421 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
2423 * function.c (stack_protect_epilogue): Use if rather than switch for
2424 check targetm.have_stack_protect_test.
2426 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2428 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
2429 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
2430 * config/arc/arc.h: Likewise.
2431 * config/arm/arm.h: Likewise.
2432 * config/bfin/bfin.h: Likewise.
2433 * config/epiphany/epiphany.h: Likewise.
2434 * config/frv/frv.h: Likewise.
2435 * config/ia64/ia64.h: Likewise.
2436 * config/iq2000/iq2000.h: Likewise.
2437 * config/lm32/lm32.h: Likewise.
2438 * config/m32r/m32r.h: Likewise.
2439 * config/mcore/mcore.h: Likewise.
2440 * config/mep/mep.h: Likewise.
2441 * config/microblaze/microblaze.h: Likewise.
2442 * config/mips/mips.h: Likewise.
2443 * config/mmix/mmix.h: Likewise.
2444 * config/mn10300/mn10300.h: Likewise.
2445 * config/nds32/nds32.h: Likewise.
2446 * config/nios2/nios2.h: Likewise.
2447 * config/pa/pa.h: Likewise.
2448 * config/rl78/rl78.h: Likewise.
2449 * config/sh/sh.h: Likewise.
2450 * config/sparc/sparc.h: Likewise.
2451 * config/stormy16/stormy16.h: Likewise.
2452 * config/tilegx/tilegx.h: Likewise.
2453 * config/tilepro/tilepro.h: Likewise.
2454 * config/v850/v850.h: Likewise.
2455 * config/xtensa/xtensa.h: Likewise.
2456 * doc/tm.texi: Regenerate.
2457 * doc/tm.texi.in: Adjust.
2458 * combine.c (simplify_set): Likewise.
2459 (simplify_comparison): Likewise.
2460 * expr.c (store_constructor): Likewise.
2461 * internal-fn.c (expand_arith_overflow): Likewise.
2462 * reload.c (push_reload): Likewise.
2463 (find_reloads): Likewise.
2464 (find_reloads_subreg_address): Likewise.
2465 * reload1.c (eliminate_regs_1): Likewise.
2466 * rtlanal.c (nonzero_bits1): Likewise.
2467 (num_sign_bit_copies1): Likewise.
2468 * simplify-rtx.c (simplify_truncation): Likewise.
2470 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2472 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
2473 of AUTO_INC_DEC with the preprocessor.
2474 * combine.c (combine_instructions): Likewise.
2475 (can_combine_p): Likewise.
2476 (try_combine): Likewise.
2477 * emit-rtl.c (try_split): Likewise.
2478 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2479 * lower-subreg.c (resolve_simple_move): Likewise.
2480 * lra.c (update_inc_notes): Likewise.
2481 * recog.c (asm_operand_ok): Likewise.
2482 (constrain_operands): Likewise.
2483 * regrename.c (scan_rtx_address): Likewise.
2484 * reload.c (update_auto_inc_notes): Likewise.
2485 (reg_inc_found_and_valid_p): Likewise.
2486 * reload1.c (reload): Likewise.
2487 (emit_input_reload_insns): Likewise.
2488 (delete_output_reload): Likewise.
2489 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2490 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2492 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2494 * rtl.h: Always define AUTO_INC_DEC.
2495 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
2496 * combine.c (combine_instructions): Likewise.
2497 (can_combine_p): Likewise.
2498 (try_combine): Likewise.
2499 * emit-rtl.c (try_split): Likewise.
2500 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2501 * lower-subreg.c (resolve_simple_move): Likewise.
2502 * lra.c (update_inc_notes): Likewise.
2503 * recog.c (asm_operand_ok): Likewise.
2504 (constrain_operands): Likewise.
2505 * regrename.c (scan_rtx_address): Likewise.
2506 * reload.c (update_auto_inc_notes): Likewise.
2507 (find_equiv_reg): Likewise.
2508 * reload1.c (reload): Likewise.
2509 (reload_as_needed): Likewise.
2510 (choose_reload_regs): Likewise.
2511 (emit_input_reload_insns): Likewise.
2512 (delete_output_reload): Likewise.
2513 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2514 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2516 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2518 * combine.c (can_combine_def_p): Don't check the value of
2519 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
2520 (combinable_i3pat): Likewise.
2521 (mark_used_regs_combine): Likewise.
2522 * regrename.c (rename_chains): Likewise.
2523 * reload.c (find_reloads_address): Likewise.
2524 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2526 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2528 * combine.c (update_rsp_from_reg_equal): Don't check if
2529 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
2530 (reg_nonzero_bits_for_combine): Likewise.
2531 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
2533 * config/frv/frv.h: Likewise.
2534 * config/lm32/lm32.h: Likewise.
2535 * config/mep/mep.h: Likewise.
2536 * config/mips/mips.h: Likewise.
2537 * config/rs6000/rs6000.h: Likewise.
2538 * config/sh/sh.h: Likewise.
2539 * config/tilegx/tilegx.h (enum reg_class): Likewise.
2540 * config/tilepro/tilepro.h: Likewise.
2541 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
2542 * doc/tm.texi: Regenerate.
2543 * doc/tm.texi.in: Adjust.
2544 * rtlanal.c (nonzero_bits1): Likewise.
2546 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2548 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
2549 with the preprocessor.
2550 (combine_instructions): Likewise.
2551 (try_combine): Likewise.
2553 (distribute_notes): Likewise.
2555 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2557 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
2559 (simplify_set): Likewise.
2560 * cse.c (cse_insn): Likewise.
2561 * fold-const.c (fold_single_bit_test): Likewise.
2562 (fold_unary_loc): Likewise.
2563 * postreload.c (reload_cse_simplify_set): Likewise.
2564 (reload_cse_simplify_operands): Likewise.
2566 2015-07-08 Jiong Wang <jiong.wang@arm.com>
2568 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
2569 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
2571 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2574 * config/i386/x86intrin.h: Include <adxintrin.h> even if
2575 __iamcu__ is defined.
2577 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2579 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
2581 2015-07-08 Iain Sandoe <iain@codesourcery.com>
2584 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
2585 names from preservation.
2587 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
2590 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
2592 (function_arg_advance_32): Don't pass vectors in registers for
2594 (function_arg_32): Likewise.
2595 (ix86_return_in_memory): Don't return vectors in registers for
2598 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
2601 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
2602 hard regno live at the start of BB with incoming abnormal edges.
2603 * lra-lives.c (process_bb_lives): Ditto.
2605 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
2608 * config/nvptx/mkoffload.c (main): Create an offload image only in
2609 64-bit configurations.
2611 2015-07-08 Martin Liska <mliska@suse.cz>
2614 * tree-sra.c (create_access_1): Call ctor without brackets.
2615 (create_artificial_child_access): Likewise.
2617 2015-07-08 Richard Biener <rguenther@suse.de>
2619 PR tree-optimization/66793
2620 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
2621 Properly split the block after stmts ending it.
2623 2015-07-08 Richard Biener <rguenther@suse.de>
2625 PR tree-optimization/66794
2626 * passes.c (execute_function_todo): Assert that post-dominators
2628 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
2629 Free post-dominators.
2631 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2633 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
2636 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
2638 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
2639 more than or equal 8 and less than 32 when optimizing for size.
2641 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2643 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
2644 COSTS_N_INSNS (1) and increment it appropriately throughout the
2647 2015-07-08 Richard Biener <rguenther@suse.de>
2649 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
2651 2015-07-08 Alan Modra <amodra@gmail.com>
2653 * target.def (rtx_costs): Remove "code" param, add "mode".
2654 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
2655 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
2656 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
2657 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
2658 call. Track mode when given in rtx.
2659 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
2660 (default_address_cost): Pass Pmode to rtx_cost.
2661 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
2662 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
2664 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
2665 (notreg_cost): Add mode param. Use it.
2666 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
2667 mode param and pass to set_src_cost. Update all calls.
2668 (hash_scan_set): Formatting.
2669 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
2670 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
2672 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
2673 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
2674 emit_store_flag): Update set_src_cost and rtx_cost calls.
2675 * auto-inc-dec.c (attempt_change): Likewise.
2676 * calls.c (precompute_register_parameters): Likewise.
2677 * combine.c (expand_compound_operation, make_extraction,
2678 force_to_mode, distribute_and_simplify_rtx): Likewise.
2679 * dojump.c (prefer_and_bit_test): Likewise.
2680 * dse.c (find_shift_sequence): Likewise.
2681 * expr.c (compress_float_constant): Likewise.
2682 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2683 * ifcvt.c (noce_try_sign_mask): Likewise.
2684 * loop-doloop.c (doloop_optimize): Likewise.
2685 * loop-invariant.c (create_new_invariant): Likewise.
2686 * lower-subreg.c (shift_cost, compute_costs): Likewise.
2687 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
2688 lshift_cheap_p): Likewise.
2689 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
2690 try_replace_in_use, reload_cse_move2add): Likewise.
2691 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
2693 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2694 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2695 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
2696 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
2697 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
2698 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
2700 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
2701 * config/arc/arc.c (arc_rtx_costs): Likewise.
2702 * config/arm/arm.c (arm_rtx_costs): Likewise.
2703 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
2704 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2705 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2706 * config/cris/cris.c (cris_rtx_costs): Likewise.
2707 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
2708 * config/frv/frv.c (frv_rtx_costs): Likewise.
2709 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2710 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2711 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2712 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2713 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2714 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2715 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2716 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2717 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2718 * config/mep/mep.c (mep_rtx_cost): Likewise.
2719 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2720 * config/mips/mips.c (mips_rtx_costs): Likewise.
2721 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2722 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
2723 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
2724 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
2725 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
2726 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
2727 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
2728 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2729 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2730 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
2731 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2732 * config/s390/s390.c (s390_rtx_costs): Likewise.
2733 * config/sh/sh.c (sh_rtx_costs): Likewise.
2734 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2735 * config/spu/spu.c (spu_rtx_costs): Likewise.
2736 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2737 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
2738 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
2739 * config/v850/v850.c (v850_rtx_costs): Likewise.
2740 * config/vax/vax.c (vax_rtx_costs): Likewise.
2741 * config/visium/visium.c (visium_rtx_costs): Likewise.
2742 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2743 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
2744 "code" param, and pass as outer_code to first rtx_cost call. Pass
2745 mode to rtx_cost calls.
2746 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
2748 (aarch64_rtx_costs_wrapper): Update.
2749 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
2750 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
2752 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
2754 (avr_operand_rtx_cost): Similarly.
2755 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
2756 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
2757 * config/mips/mips.c (mips_stack_address_p): Comment typo.
2758 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
2759 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
2760 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
2762 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
2763 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
2764 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
2765 * doc/tm.texi: Regenerate.
2767 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
2769 * tree-core.h: Include symtab.h.
2770 * rtl.h: Include hard-reg-set.h but not flags.h.
2771 (HARD_CONST): Remove condition compilation involving HARD_CONST since
2772 hard-reg-set.h is always included.
2773 * regs.h: Don't include hard-reg-set.h or rtl.h.
2774 * cfg.h: Include dominance.h.
2775 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
2776 * backend.h: New. Aggregate commonly used backend header files.
2777 * gimple-ssa.h: Don't include tree-hasher.h.
2778 * ssa.h: New. Aggregate commonly used SSA header files.
2779 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
2780 * sel-sched-ir.h: Flatten includes.
2781 * lra-int.h: Flatten completely.
2782 * sel-sched-dump.h: Flatten includes.
2783 * ira-int.h: Flatten includes.
2784 * gimple-streamer.h: Remove all includes.
2785 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
2786 * resource.h: Flatten hard-reg-set.h and df.h.
2787 * sched-int.h: Flatten insn-arrt.h and df.h.
2788 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
2789 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
2790 * genattrtab.c (write_header): Adjust generated includes.
2791 * genautomata.c (main): Likewise.
2792 * genconditions.c (write-header): Likewise.
2793 * genemit.c (main): Likewise.
2794 * gengtype.c (open_base_files): Likewise.
2795 * genopinit.c (main): Likewise.
2796 * genoutput.c (output_prologue): Likewise.
2797 * genpeep.c (main): Likewise.
2798 * genpreds.c (write_insn_preds_c): Likewise.
2799 * genrecog.c (write_header): Likewise.
2800 * alias.c: Adjust includes.
2802 * attribs.c: Likewise.
2803 * auto-inc-dec.c: Likewise.
2804 * auto-profile.c: Likewise.
2805 * bb-reorder.c: Likewise.
2806 * bt-load.c: Likewise.
2807 * builtins.c: Likewise.
2808 * caller-save.c: Likewise.
2809 * calls.c: Likewise.
2812 * cfganal.c: Likewise.
2813 * cfgbuild.c: Likewise.
2814 * cfgcleanup.c: Likewise.
2815 * cfgexpand.c: Likewise.
2816 * cfghooks.c: Likewise.
2817 * cfgloop.c: Likewise.
2818 * cfgloopanal.c: Likewise.
2819 * cfgloopmanip.c: Likewise.
2820 * cfgrtl.c: Likewise.
2821 * cgraph.c: Likewise.
2822 * cgraphbuild.c: Likewise.
2823 * cgraphclones.c: Likewise.
2824 * cgraphunit.c: Likewise.
2825 * cilk-common.c: Likewise.
2826 * combine-stack-adj.c: Likewise.
2827 * combine.c: Likewise.
2828 * compare-elim.c: Likewise.
2829 * convert.c: Likewise.
2830 * coverage.c: Likewise.
2831 * cppbuiltin.c: Likewise.
2832 * cprop.c: Likewise.
2834 * cselib.c: Likewise.
2835 * data-streamer-in.c: Likewise.
2836 * data-streamer-out.c: Likewise.
2837 * data-streamer.c: Likewise.
2838 * dbxout.c: Likewise.
2841 * debug.c: Likewise.
2842 * df-core.c: Likewise.
2843 * df-problems.c: Likewise.
2844 * df-scan.c: Likewise.
2846 * dojump.c: Likewise.
2847 * dominance.c: Likewise.
2848 * domwalk.c: Likewise.
2849 * double-int.c: Likewise.
2851 * dumpfile.c: Likewise.
2852 * dwarf2asm.c: Likewise.
2853 * dwarf2cfi.c: Likewise.
2854 * dwarf2out.c: Likewise.
2855 * emit-rtl.c: Likewise.
2856 * et-forest.c: Likewise.
2857 * except.c: Likewise.
2858 * explow.c: Likewise.
2859 * expmed.c: Likewise.
2861 * final.c: Likewise.
2862 * fixed-value.c: Likewise.
2863 * fold-const.c: Likewise.
2864 * function.c: Likewise.
2865 * fwprop.c: Likewise.
2866 * gcc-plugin.h: Likewise.
2867 * gcse-common.c: Likewise.
2869 * generic-match-head.c: Likewise.
2870 * ggc-page.c: Likewise.
2871 * gimple-builder.c: Likewise.
2872 * gimple-expr.c: Likewise.
2873 * gimple-fold.c: Likewise.
2874 * gimple-iterator.c: Likewise.
2875 * gimple-low.c: Likewise.
2876 * gimple-match-head.c: Likewise.
2877 * gimple-pretty-print.c: Likewise.
2878 * gimple-ssa-isolate-paths.c: Likewise.
2879 * gimple-ssa-strength-reduction.c: Likewise.
2880 * gimple-streamer-in.c: Likewise.
2881 * gimple-streamer-out.c: Likewise.
2882 * gimple-walk.c: Likewise.
2883 * gimple.c: Likewise.
2884 * gimplify-me.c: Likewise.
2885 * gimplify.c: Likewise.
2886 * godump.c: Likewise.
2887 * graph.c: Likewise.
2888 * graphite-blocking.c: Likewise.
2889 * graphite-dependences.c: Likewise.
2890 * graphite-interchange.c: Likewise.
2891 * graphite-isl-ast-to-gimple.c: Likewise.
2892 * graphite-optimize-isl.c: Likewise.
2893 * graphite-poly.c: Likewise.
2894 * graphite-scop-detection.c: Likewise.
2895 * graphite-sese-to-poly.c: Likewise.
2896 * graphite.c: Likewise.
2897 * haifa-sched.c: Likewise.
2898 * hw-doloop.c: Likewise.
2899 * ifcvt.c: Likewise.
2900 * init-regs.c: Likewise.
2901 * internal-fn.c: Likewise.
2902 * ipa-chkp.c: Likewise.
2903 * ipa-comdats.c: Likewise.
2904 * ipa-cp.c: Likewise.
2905 * ipa-devirt.c: Likewise.
2906 * ipa-icf-gimple.c: Likewise.
2907 * ipa-icf.c: Likewise.
2908 * ipa-inline-analysis.c: Likewise.
2909 * ipa-inline-transform.c: Likewise.
2910 * ipa-inline.c: Likewise.
2911 * ipa-polymorphic-call.c: Likewise.
2912 * ipa-profile.c: Likewise.
2913 * ipa-prop.c: Likewise.
2914 * ipa-pure-const.c: Likewise.
2915 * ipa-ref.c: Likewise.
2916 * ipa-reference.c: Likewise.
2917 * ipa-split.c: Likewise.
2918 * ipa-utils.c: Likewise.
2919 * ipa-visibility.c: Likewise.
2921 * ira-build.c: Likewise.
2922 * ira-color.c: Likewise.
2923 * ira-conflicts.c: Likewise.
2924 * ira-costs.c: Likewise.
2925 * ira-emit.c: Likewise.
2926 * ira-lives.c: Likewise.
2929 * langhooks.c: Likewise.
2931 * loop-doloop.c: Likewise.
2932 * loop-init.c: Likewise.
2933 * loop-invariant.c: Likewise.
2934 * loop-iv.c: Likewise.
2935 * loop-unroll.c: Likewise.
2936 * lower-subreg.c: Likewise.
2937 * lra-assigns.c: Likewise.
2938 * lra-coalesce.c: Likewise.
2939 * lra-constraints.c: Likewise.
2940 * lra-eliminations.c: Likewise.
2941 * lra-lives.c: Likewise.
2942 * lra-remat.c: Likewise.
2943 * lra-spills.c: Likewise.
2945 * lto-cgraph.c: Likewise.
2946 * lto-compress.c: Likewise.
2947 * lto-opts.c: Likewise.
2948 * lto-section-in.c: Likewise.
2949 * lto-section-out.c: Likewise.
2950 * lto-streamer-in.c: Likewise.
2951 * lto-streamer-out.c: Likewise.
2952 * lto-streamer.c: Likewise.
2954 * mode-switching.c: Likewise.
2955 * modulo-sched.c: Likewise.
2956 * omega.c: Likewise.
2957 * omp-low.c: Likewise.
2958 * optabs.c: Likewise.
2959 * opts-global.c: Likewise.
2960 * passes.c: Likewise.
2961 * plugin.c: Likewise.
2962 * postreload-gcse.c: Likewise.
2963 * postreload.c: Likewise.
2964 * predict.c: Likewise.
2965 * print-rtl.c: Likewise.
2966 * print-tree.c: Likewise.
2967 * profile.c: Likewise.
2969 * realmpfr.c: Likewise.
2970 * recog.c: Likewise.
2972 * reg-stack.c: Likewise.
2973 * regcprop.c: Likewise.
2974 * reginfo.c: Likewise.
2975 * regrename.c: Likewise.
2976 * regstat.c: Likewise.
2977 * reload.c: Likewise.
2978 * reload1.c: Likewise.
2979 * reorg.c: Likewise.
2980 * resource.c: Likewise.
2981 * rtl-chkp.c: Likewise.
2982 * rtlanal.c: Likewise.
2983 * rtlhooks.c: Likewise.
2984 * sanopt.c: Likewise.
2985 * sched-deps.c: Likewise.
2986 * sched-ebb.c: Likewise.
2987 * sched-rgn.c: Likewise.
2988 * sched-vis.c: Likewise.
2989 * sdbout.c: Likewise.
2990 * sel-sched-dump.c: Likewise.
2991 * sel-sched-ir.c: Likewise.
2992 * sel-sched.c: Likewise.
2994 * shrink-wrap.c: Likewise.
2995 * simplify-rtx.c: Likewise.
2996 * stack-ptr-mod.c: Likewise.
2998 * stor-layout.c: Likewise.
2999 * store-motion.c: Likewise.
3000 * stringpool.c: Likewise.
3001 * symtab.c: Likewise.
3002 * target-globals.c: Likewise.
3003 * targhooks.c: Likewise.
3004 * toplev.c: Likewise.
3005 * tracer.c: Likewise.
3006 * trans-mem.c: Likewise.
3007 * tree-affine.c: Likewise.
3008 * tree-browser.c: Likewise.
3009 * tree-call-cdce.c: Likewise.
3010 * tree-cfg.c: Likewise.
3011 * tree-cfgcleanup.c: Likewise.
3012 * tree-chkp-opt.c: Likewise.
3013 * tree-chkp.c: Likewise.
3014 * tree-chrec.c: Likewise.
3015 * tree-complex.c: Likewise.
3016 * tree-data-ref.c: Likewise.
3017 * tree-dfa.c: Likewise.
3018 * tree-diagnostic.c: Likewise.
3019 * tree-dump.c: Likewise.
3020 * tree-eh.c: Likewise.
3021 * tree-emutls.c: Likewise.
3022 * tree-if-conv.c: Likewise.
3023 * tree-inline.c: Likewise.
3024 * tree-into-ssa.c: Likewise.
3025 * tree-iterator.c: Likewise.
3026 * tree-loop-distribution.c: Likewise.
3027 * tree-nested.c: Likewise.
3028 * tree-nrv.c: Likewise.
3029 * tree-object-size.c: Likewise.
3030 * tree-outof-ssa.c: Likewise.
3031 * tree-parloops.c: Likewise.
3032 * tree-phinodes.c: Likewise.
3033 * tree-predcom.c: Likewise.
3034 * tree-pretty-print.c: Likewise.
3035 * tree-profile.c: Likewise.
3036 * tree-scalar-evolution.c: Likewise.
3037 * tree-sra.c: Likewise.
3038 * tree-ssa-address.c: Likewise.
3039 * tree-ssa-alias.c: Likewise.
3040 * tree-ssa-ccp.c: Likewise.
3041 * tree-ssa-coalesce.c: Likewise.
3042 * tree-ssa-copy.c: Likewise.
3043 * tree-ssa-copyrename.c: Likewise.
3044 * tree-ssa-dce.c: Likewise.
3045 * tree-ssa-dom.c: Likewise.
3046 * tree-ssa-dse.c: Likewise.
3047 * tree-ssa-forwprop.c: Likewise.
3048 * tree-ssa-ifcombine.c: Likewise.
3049 * tree-ssa-live.c: Likewise.
3050 * tree-ssa-loop-ch.c: Likewise.
3051 * tree-ssa-loop-im.c: Likewise.
3052 * tree-ssa-loop-ivcanon.c: Likewise.
3053 * tree-ssa-loop-ivopts.c: Likewise.
3054 * tree-ssa-loop-manip.c: Likewise.
3055 * tree-ssa-loop-niter.c: Likewise.
3056 * tree-ssa-loop-prefetch.c: Likewise.
3057 * tree-ssa-loop-unswitch.c: Likewise.
3058 * tree-ssa-loop.c: Likewise.
3059 * tree-ssa-math-opts.c: Likewise.
3060 * tree-ssa-operands.c: Likewise.
3061 * tree-ssa-phiopt.c: Likewise.
3062 * tree-ssa-phiprop.c: Likewise.
3063 * tree-ssa-pre.c: Likewise.
3064 * tree-ssa-propagate.c: Likewise.
3065 * tree-ssa-reassoc.c: Likewise.
3066 * tree-ssa-sccvn.c: Likewise.
3067 * tree-ssa-scopedtables.c: Likewise.
3068 * tree-ssa-sink.c: Likewise.
3069 * tree-ssa-strlen.c: Likewise.
3070 * tree-ssa-structalias.c: Likewise.
3071 * tree-ssa-tail-merge.c: Likewise.
3072 * tree-ssa-ter.c: Likewise.
3073 * tree-ssa-threadedge.c: Likewise.
3074 * tree-ssa-threadupdate.c: Likewise.
3075 * tree-ssa-uncprop.c: Likewise.
3076 * tree-ssa-uninit.c: Likewise.
3077 * tree-ssa.c: Likewise.
3078 * tree-ssanames.c: Likewise.
3079 * tree-stdarg.c: Likewise.
3080 * tree-streamer-in.c: Likewise.
3081 * tree-streamer-out.c: Likewise.
3082 * tree-streamer.c: Likewise.
3083 * tree-switch-conversion.c: Likewise.
3084 * tree-tailcall.c: Likewise.
3085 * tree-vect-data-refs.c: Likewise.
3086 * tree-vect-generic.c: Likewise.
3087 * tree-vect-loop-manip.c: Likewise.
3088 * tree-vect-loop.c: Likewise.
3089 * tree-vect-patterns.c: Likewise.
3090 * tree-vect-slp.c: Likewise.
3091 * tree-vect-stmts.c: Likewise.
3092 * tree-vectorizer.c: Likewise.
3093 * tree-vrp.c: Likewise.
3096 * ubsan.c: Likewise.
3097 * valtrack.c: Likewise.
3098 * value-prof.c: Likewise.
3099 * var-tracking.c: Likewise.
3100 * varasm.c: Likewise.
3101 * varpool.c: Likewise.
3102 * vmsdbgout.c: Likewise.
3103 * vtable-verify.c: Likewise.
3105 * wide-int.cc: Likewise.
3106 * xcoffout.c: Likewise.
3107 * config/aarch64/aarch64-builtins.c: Likewise.
3108 * config/aarch64/aarch64.c: Likewise.
3109 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3110 * config/alpha/alpha.c: Likewise.
3111 * config/arc/arc.c: Likewise.
3112 * config/arm/aarch-common.c: Likewise.
3113 * config/arm/arm-builtins.c: Likewise.
3114 * config/arm/arm-c.c: Likewise.
3115 * config/arm/arm.c: Likewise.
3116 * config/avr/avr-c.c: Likewise.
3117 * config/avr/avr-log.c: Likewise.
3118 * config/avr/avr.c: Likewise.
3119 * config/bfin/bfin.c: Likewise.
3120 * config/c6x/c6x.c: Likewise.
3121 * config/cr16/cr16.c: Likewise.
3122 * config/cris/cris.c: Likewise.
3123 * config/darwin-c.c: Likewise.
3124 * config/darwin.c: Likewise.
3125 * config/epiphany/epiphany.c: Likewise.
3126 * config/epiphany/mode-switch-use.c: Likewise.
3127 * config/epiphany/resolve-sw-modes.c: Likewise.
3128 * config/fr30/fr30.c: Likewise.
3129 * config/frv/frv.c: Likewise.
3130 * config/ft32/ft32.c: Likewise.
3131 * config/h8300/h8300.c: Likewise.
3132 * config/i386/i386-c.c: Likewise.
3133 * config/i386/i386.c: Likewise.
3134 * config/i386/msformat-c.c: Likewise.
3135 * config/i386/winnt-cxx.c: Likewise.
3136 * config/i386/winnt-stubs.c: Likewise.
3137 * config/i386/winnt.c: Likewise.
3138 * config/ia64/ia64-c.c: Likewise.
3139 * config/ia64/ia64.c: Likewise.
3140 * config/iq2000/iq2000.c: Likewise.
3141 * config/lm32/lm32.c: Likewise.
3142 * config/m32c/m32c-pragma.c: Likewise.
3143 * config/m32c/m32c.c: Likewise.
3144 * config/m32r/m32r.c: Likewise.
3145 * config/m68k/m68k.c: Likewise.
3146 * config/mcore/mcore.c: Likewise.
3147 * config/mep/mep-pragma.c: Likewise.
3148 * config/mep/mep.c: Likewise.
3149 * config/microblaze/microblaze-c.c: Likewise.
3150 * config/microblaze/microblaze.c: Likewise.
3151 * config/mips/mips.c: Likewise.
3152 * config/mmix/mmix.c: Likewise.
3153 * config/mn10300/mn10300.c: Likewise.
3154 * config/moxie/moxie.c: Likewise.
3155 * config/msp430/msp430-c.c: Likewise.
3156 * config/msp430/msp430.c: Likewise.
3157 * config/nds32/nds32-cost.c: Likewise.
3158 * config/nds32/nds32-fp-as-gp.c: Likewise.
3159 * config/nds32/nds32-intrinsic.c: Likewise.
3160 * config/nds32/nds32-isr.c: Likewise.
3161 * config/nds32/nds32-md-auxiliary.c: Likewise.
3162 * config/nds32/nds32-memory-manipulation.c: Likewise.
3163 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3164 * config/nds32/nds32-predicates.c: Likewise.
3165 * config/nds32/nds32.c: Likewise.
3166 * config/nios2/nios2.c: Likewise.
3167 * config/nvptx/nvptx.c: Likewise.
3168 * config/pa/pa.c: Likewise.
3169 * config/pdp11/pdp11.c: Likewise.
3170 * config/rl78/rl78-c.c: Likewise.
3171 * config/rl78/rl78.c: Likewise.
3172 * config/rs6000/rs6000-c.c: Likewise.
3173 * config/rs6000/rs6000.c: Likewise.
3174 * config/rx/rx.c: Likewise.
3175 * config/s390/s390-c.c: Likewise.
3176 * config/s390/s390.c: Likewise.
3177 * config/sh/sh-c.c: Likewise.
3178 * config/sh/sh-mem.cc: Likewise.
3179 * config/sh/sh.c: Likewise.
3180 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3181 * config/sh/sh_treg_combine.cc: Likewise.
3182 * config/sol2-c.c: Likewise.
3183 * config/sol2-cxx.c: Likewise.
3184 * config/sol2-stubs.c: Likewise.
3185 * config/sol2.c: Likewise.
3186 * config/sparc/sparc-c.c: Likewise.
3187 * config/sparc/sparc.c: Likewise.
3188 * config/spu/spu-c.c: Likewise.
3189 * config/spu/spu.c: Likewise.
3190 * config/stormy16/stormy16.c: Likewise.
3191 * config/tilegx/mul-tables.c: Likewise.
3192 * config/tilegx/tilegx-c.c: Likewise.
3193 * config/tilegx/tilegx.c: Likewise.
3194 * config/tilepro/mul-tables.c: Likewise.
3195 * config/tilepro/tilepro-c.c: Likewise.
3196 * config/tilepro/tilepro.c: Likewise.
3197 * config/v850/v850-c.c: Likewise.
3198 * config/v850/v850.c: Likewise.
3199 * config/vax/vax.c: Likewise.
3200 * config/visium/visium.c: Likewise.
3201 * config/vms/vms-c.c: Likewise.
3202 * config/vms/vms.c: Likewise.
3203 * config/vxworks.c: Likewise.
3204 * config/xtensa/xtensa.c: Likewise.
3206 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
3209 Remove operand constraints. Change operand 2 predicate to
3210 nonmemory operand. Limit const_int values to mode bitsize. Only
3211 allow const_int values less than 32 when optimizing for size.
3212 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
3213 Remove operand constraints.
3214 (*bt<mode>): Use SImode for const_int values less than 32.
3215 (regmode): Remove mode attribute.
3217 2015-07-07 Anatoly Sokolov <aesok@post.ru>
3219 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3220 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
3221 moxie_legitimate_address_p): New functions.
3222 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3224 2015-07-07 Tom de Vries <tom@codesourcery.com>
3226 PR tree-optimization/66642
3227 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
3228 header comment. Rename split_edge variable to edge_at_split. Split
3229 exit edge to create new loop exit bb. Insert loop exit phis in new
3232 2015-07-07 Tom de Vries <tom@codesourcery.com>
3234 * tree-cfg.c (get_virtual_phi): New function.
3235 * tree-cfg.h (get_virtual_phi): Declare.
3236 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
3237 (rewrite_virtuals_into_loop_closed_ssa): New function.
3238 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
3240 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
3241 (transform_to_exit_first_loop_alt): Use
3242 rewrite_virtuals_into_loop_closed_ssa.
3244 2015-07-07 Richard Biener <rguenther@suse.de>
3246 * fold-const.c (fold_binary_loc): Move
3247 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
3248 * match.pd: ... here.
3249 Add (X * C1) % C2 -> 0 simplification pattern derived from
3252 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
3255 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
3256 change for target/65249.
3258 2015-07-07 Paulo Matos <pmatos@broadcom.com>
3260 * symtab.c (address_matters_1): Fix typo in comment above.
3261 (can_increase_alignment_p): Likewise.
3263 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3265 * function.c (free_after_compilation): Clear PROP_cfg in
3268 2015-07-07 Richard Biener <rguenther@suse.de>
3270 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
3272 (add_control_edge): Remove excessive vertical space in dumping.
3273 (process_ssa_edge_worklist): Simulate at most one statement and
3274 return whether we did. Do not simulate PHIs if they are in a
3275 BB not yet simulated.
3276 (ssa_propagate): Adjust to always drain the BB worklist whenever
3277 a BB is available there, likewise the VARYING edges list before
3278 the interesting edge list.
3280 2015-07-07 Christian Bruel <christian.bruel@st.com>
3283 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
3285 2015-07-07 Richard Biener <rguenther@suse.de>
3288 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
3291 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3293 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
3294 modes for operands 0 and 3. Use SImode for operands 2 and 3.
3295 Copy operand 0 to a temporary if !ext_register_operand. Remove
3296 ancient extract_bit_field workaround.
3297 (insv<mode>_1): Rename from mov<mode>_insv_1.
3298 (*insvqi): Rename from *movqi_insv_2.
3299 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
3300 for renamed insvsi_1.
3301 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
3303 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
3305 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
3306 call to nvptx_reorg_subreg.
3308 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
3310 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
3311 * graphite-dependencies.c, graphite-interchange.c,
3312 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
3313 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
3316 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
3318 * match.pd: Remove element_mode inside HONOR_*.
3319 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
3320 (~X | X -> -1, ~X ^ X -> -1): Merge.
3321 * tree.c (build_each_one_cst): New function.
3322 * tree.h (build_each_one_cst): Likewise.
3324 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3326 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3329 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
3331 * config.gcc <mips*-*-*>: Add fused-madd.opt.
3332 * config/mips/mips.opt (mfused-madd): Remove.
3333 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
3334 * config/mips/mips.h (TARGET_MIPS8000): New.
3335 (ISA_HAS_FP_MADD4_MSUB4): Remove.
3336 (ISA_HAS_FP_MADDF_MSUBF): Remove.
3337 (ISA_HAS_FP_MADD3_MSUB3): Remove.
3338 (ISA_HAS_NMADD4_NMSUB4): Remove.
3339 (ISA_HAS_NMADD3_NMSUB3): Remove.
3340 (ISA_HAS_FUSED_MADD4): New.
3341 (ISA_HAS_UNFUSED_MADD4): New.
3342 (ISA_HAS_FUSED_MADDF): New.
3343 (ISA_HAS_FUSED_MADD3): New.
3344 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
3345 (*fma<mode>4_madd3) New.
3346 (*fma<mode>4_madd4) New.
3347 (*fma<mode>4_maddf) New.
3349 (*fms<mode>4_msub3) New.
3350 (*fms<mode>4_msub4) New.
3352 (*fnma<mode>4_nmadd3) New.
3353 (*fnma<mode>4_nmadd4) New.
3355 (*fnms<mode>4_nmsub3) New.
3356 (*fnms<mode>4_nmsub4) New.
3357 (*madd4<mode>) Modify to be unfused only.
3358 (*msub4<mode>) Modify to be unfused only.
3359 (*nmadd4<mode>) Modify to be unfused only.
3360 (*nmsub4<mode>) Modify to be unfused only.
3361 (*madd3<mode>) Remove.
3362 (*msub3<mode>) Remove.
3363 (*nmadd3<mode>) Remove.
3364 (*nmsub3<mode>) Remove.
3365 (*nmadd3<mode>_fastmath) Remove.
3366 (*nmsub3<mode>_fastmath) Remove.
3367 (*nmadd4<mode>_fastmath) Update condition.
3368 (*nmsub4<mode>_fastmath) Update condition.
3370 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3373 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
3374 alignment attribute, exploring one level down for records and arrays.
3376 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
3378 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
3379 modes for operands 0 and 1. Use SImode for operands 2 and 3.
3380 Copy operand 1 to a temporary if !ext_register_operand. Remove
3381 ancient extract_bit_field workaround.
3382 (*extv<mode>): Rename from *mov<mode>_extv_1.
3383 (*extvqi): Rename from *movqi_extv_1.
3384 (extzv<mode>): Rename from extzv. Use SWI248 modes for
3385 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
3386 to a temporary if !ext_register_operand. Remove ancient
3387 extract_bit_field workaround.
3388 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
3389 (*extzvqi): Rename from *movqi_extzv_2.
3390 (*testqi_ext_3): Remove modes from const_int_operand predicated
3391 operands. Add "n" constraint.
3392 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
3393 operand. Add "J" constraint.
3394 (*btsq, *btrq, *btcq peephole2s): Remove mode from
3395 const_0_to_63 predicated operand.
3396 (regmode): New insn attribute.
3397 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
3398 to nonmemory_operand. Use regmode insn attribute.
3399 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
3400 (*jcc_bt<mode>_mask): Remove mode from operand 3.
3401 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
3402 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
3403 operands. Use "N" constraint instead of "n".
3405 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
3407 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
3409 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3412 * config/i386/i386.c (iamcu_cost): New.
3413 (m_IAMCU): Likewise.
3414 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
3415 (processor_target_table): Add an entry for "iamcu".
3416 (processor_alias_table): Likewise.
3417 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
3418 (ix86_adjust_cost): Likewise.
3419 (ia32_multipass_dfa_lookahead): Likewise.
3420 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
3421 * config/i386/x86-tune.def: Updated for m_IAMCU.
3423 2015-07-06 Richard Biener <rguenther@suse.de>
3425 PR tree-optimization/66772
3426 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
3427 values are available in the PHI node BB when there are
3428 still unexecutable edges.
3430 2015-07-06 Richard Biener <rguenther@suse.de>
3432 PR tree-optimization/66767
3433 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
3434 Make sure to build the alignment test on a SSA name without
3435 final alignment info valid only if the alignment test
3438 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
3441 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
3442 loop start when inserting LSETUP.
3444 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
3447 * config/i386/i386.c (ix86_option_override_internal): Allow
3448 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
3450 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3452 * read-md.c (decimal_string): Rename to ...
3453 (md_decimal_string): ... this.
3454 (handle_enum): Reflect this.
3456 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
3459 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
3461 2015-07-06 Richard Biener <rguenther@suse.de>
3464 * match.pd: Add missing constraint of y to REAL_CST in
3465 REAL_CST - x CMP y to y - CST CMP x simplification.
3467 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
3469 PR tree-optimization/66757
3470 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
3472 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
3473 Sandra Loosemore <sandra@codesourcery.com>
3475 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
3476 Delete extern declaration.
3477 (gprel_constant_p): Add extern declaration.
3478 * config/nios2/constraints.md ("S"): Use gprel_constant_p
3479 instead of nios2_symbol_ref_in_small_data_p.
3480 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
3481 (nios2_symbol_ref_in_small_data_p): Make static.
3482 (gprel_constant_p): Make non-static.
3484 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
3486 * doc/fragments.texi (Target Fragment): Convert debian.org
3488 * doc/install.texi (Configuration): Ditto.
3490 2015-07-05 Jakub Jelinek <jakub@redhat.com>
3492 PR tree-optimization/66718
3493 * tree-vect-stmts.c (vectorizable_call): Replace uses of
3494 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
3496 PR tree-optimization/66718
3497 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
3498 vectorizable_load, vectorizable_condition): Move vectype,
3499 nunits, ncopies computation after checking what kind of statement
3502 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3504 * target-insns.def (extv, extzv, insv): New targetm instruction
3506 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
3508 * recog.c (simplify_while_replacing): Likewise.
3510 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3512 * target-insns.def (doloop_begin, doloop_end): New targetm
3513 instruction patterns.
3514 * loop-init.c: Include target.h.
3515 (pass_loop2::gate): Use the new targetm patterns instead of
3516 HAVE_*/gen_* interface.
3517 (pass_rtl_doloop::gate): Likewise.
3518 (pass_rtl_doloop::execute): Remove preprocessor condition.
3519 * hw-doloop.c: Build unconditionally.
3520 * loop-doloop.c: Likewise.
3521 (doloop_optimize): Use the new targetm patterns instead of
3522 HAVE_*/gen_* interface.
3523 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
3524 * modulo-sched.c (doloop_register_get): Likewise.
3526 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3528 * target-insns.def (clear_cache): New targetm instruction pattern.
3529 * builtins.c (expand_builtin___clear_cache): Use it instead of
3530 HAVE_*/gen_* interface.
3532 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3534 * target-insns.def (allocate_stack, check_stack, probe_stack)
3535 (probe_stack_address, split_stack_prologue, split_stack_space_check):
3536 New targetm instruction patterns.
3537 * explow.c (allocate_dynamic_stack_space): Use them instead of
3538 HAVE_*/gen_* interface.
3539 (emit_stack_probe): Likewise.
3540 (probe_stack_range): Likewise.
3541 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3543 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3545 * target-insns.def (stack_protect_set, stack_protect_test): New
3546 targetm instruction patterns.
3547 * cfgexpand.c (stack_protect_prologue): Use them instead of
3548 HAVE_*/gen_* interface.
3549 * function.c (stack_protect_epilogue): Likewise.
3551 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3553 * expr.h (gen_move_insn_uncast): Delete.
3554 * expr.c (gen_move_insn_uncast): Delete.
3556 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3558 * target-insns.def (restore_stack_block, restore_stack_function)
3559 (restore_stack_nonlocal, save_stack_block, save_stack_function)
3560 (save_stack_nonlocal): New targetm instruction patterns.
3561 * builtins.c (expand_builtin_apply): Use them instead of
3562 HAVE_*/gen_* interface.
3563 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
3565 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3567 * target-insns.def (trap): New targetm instruction pattern.
3568 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
3570 * explow.c (allocate_dynamic_stack_space): Likewise.
3571 * ifcvt.c (find_if_header): Likewise.
3573 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3575 * target-insns.def (prefetch): New targetm instruction pattern.
3576 * tree-ssa-loop-prefetch.c: Include targeth.
3577 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
3578 of HAVE_*/gen_* interface.
3579 * builtins.c (expand_builtin_prefetch): Likewise.
3580 * toplev.c (process_options): Likewise.
3582 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3584 * target-insns.def (untyped_call, untyped_return): New targetm
3585 instruction patterns.
3586 * builtins.c (expand_builtin_apply): Use them instead of
3587 HAVE_*/gen_* interface.
3588 (result_vector): Define unconditionally.
3590 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3592 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
3593 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
3594 (nonlocal_goto_receiver): New targetm instruction patterns.
3595 * builtins.c (expand_builtin_setjmp_setup): Use them instead
3596 of HAVE_*/gen_* interface.
3597 (expand_builtin_setjmp_receiver): Likewise.
3598 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3599 * except.c (expand_dw2_landing_pad_for_region): Likewise.
3601 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
3603 * target.def: Add code_for_* hooks.
3604 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
3605 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
3606 * target-insns.def (casesi, tablejump): New targetm instruction
3608 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
3609 (do_tablejump): Likewise.
3610 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
3611 (expand_sjlj_dispatch_table): Likewise.
3612 * targhooks.c (default_case_values_threshold): Likewise.
3614 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
3616 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
3617 Use rtx_insn * instead of rtx.
3618 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
3619 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
3620 (nios2_call_tls_get_addr): Likewise.
3621 (nios2_emit_expensive_div): Likewise.
3622 (nios2_emit_move_sequence): Change return type to bool.
3623 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
3624 Change return type to bool.
3626 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
3629 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
3631 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
3634 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
3635 of register_operand. Remove constraint.
3637 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
3639 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
3642 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
3644 * attribs.c (decl_attributes): Guard inform with the return value
3645 of the preceding warning.
3647 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3649 * doc/invoke.texi (moverride): Move to correct section.
3651 2015-07-03 Richard Biener <rguenther@suse.de>
3653 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
3655 (dt_operand::gen_gimple_expr): After valueizing operands
3656 re-canonicalize operand order for commutative tree codes.
3658 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
3661 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
3663 (__crc32w): Likewise.
3664 (__crc32d): Likewise.
3665 (__rdpmc): Likewise.
3666 (__rdtscp): Likewise.
3668 (_rdtscp): Likewise.
3669 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
3672 2015-07-03 Richard Biener <rguenther@suse.de>
3674 * fold-const.c (fold_mathfn_compare): Remove.
3675 (fold_inf_compare): Likewise.
3676 (fold_comparison): Move floating point comparison simplifications...
3677 * match.pd: ... to patterns here. Introduce simple_comparisons
3678 operator list and use it for patterns formerly in fold_comparison.
3680 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
3682 PR tree-optimization/66119
3683 * toplev.c (process_options): Don't set up default values for
3684 the sra_max_scalarization_size_{speed,size} parameters.
3685 * tree-sra (analyze_all_variable_accesses): If no values
3686 have been set for the sra_max_scalarization_size_{speed,size}
3687 parameters, call get_move_ratio to get target defaults.
3689 2015-07-03 Richard Biener <rguenther@suse.de>
3691 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
3692 * match.pd: ... here.
3694 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
3697 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
3698 is not actually the default on FreeBSD.
3700 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3702 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
3704 (CMPGE_8HI): Likewise.
3705 (CMPGE_4SI): Likewise.
3706 (CMPGE_2DI): Likewise.
3707 (CMPGE_U16QI): Likewise.
3708 (CMPGE_U8HI): Likewise.
3709 (CMPGE_U4SI): Likewise.
3710 (CMPGE_U2DI): Likewise.
3711 (CMPLE_16QI): Likewise.
3712 (CMPLE_8HI): Likewise.
3713 (CMPLE_4SI): Likewise.
3714 (CMPLE_2DI): Likewise.
3715 (CMPLE_U16QI): Likewise.
3716 (CMPLE_U8HI): Likewise.
3717 (CMPLE_U4SI): Likewise.
3718 (CMPLE_U2DI): Likewise.
3719 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3720 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
3721 ALTIVEC_BUILTIN_VEC_CMPLE.
3722 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
3723 floating-point vector modes.
3724 (vector_nlt<mode>): New define_expand.
3725 (vector_nltu<mode>): Likewise.
3726 (vector_ngt<mode>): Likewise.
3727 (vector_ngtu<mode>): Likewise.
3729 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
3731 PR rtl-optimization/66706
3732 * combine.c (make_compound_operation): If an AND of SUBREG of
3733 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
3735 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
3737 * tree-pass.h (make_pass_ch_vect): New.
3738 * passes.def: Add pass_ch_vect just before pass_if_conversion.
3740 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
3741 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
3742 make_pass_ch_vect): New.
3743 (pass_ch): Extend ch_base.
3745 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
3746 (ch_base::copy_headers): ...here.
3748 2015-07-02 Richard Biener <rguenther@suse.de>
3750 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
3751 * fold-const.c (get_pointer_modulus_and_residue): Remove.
3752 (fold_binary_loc): Implement (T)ptr & CST in terms of
3753 get_pointer_alignment_1.
3754 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
3755 Make sure to build the alignment test on a SSA name without
3756 final alignment info valid only after the prologue.
3758 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
3760 * config/cris/cris.md ("epilogue"): Remove condition.
3761 ("prologue"): Ditto.
3763 2015-07-02 Richard Biener <rguenther@suse.de>
3765 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
3766 parameter to record a condition that is false.
3767 (record_conditions): When recording an extra NE_EXPR that is
3768 true also record a EQ_EXPR that is false.
3770 2015-07-02 Bin Cheng <bin.cheng@arm.com>
3772 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
3773 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
3774 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
3775 (set_iv, find_interesting_uses_address, add_candidate_1): New
3776 argument to alloc_iv.
3777 (find_interesting_uses_op, find_interesting_uses_cond): Don't
3778 duplicate struct iv.
3779 (free_loop_data): Don't free struct iv explicitly.
3780 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
3782 2015-07-01 DJ Delorie <dj@redhat.com>
3784 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
3786 (SUPPORTS_DISCRIMINATOR): Define.
3788 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3791 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
3792 there are no CALLs in the same pattern.
3794 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3796 PR rtl-optimization/61047
3797 * rtlanal.c (get_initial_register_offset): New function.
3798 (rtx_addr_can_trap_p_1): Check offsets of stack references.
3800 2015-07-01 Richard Biener <rguenther@suse.de>
3802 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
3803 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
3804 ~X CMP C -> X CMP' ~C to ...
3805 * match.pd: ... patterns here.
3807 2015-07-01 Nick Clifton <nickc@redhat.com>
3809 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
3810 a 16-bit value into a 20-bit memory slot.
3812 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3814 * doc/sourcebuild.texi (AArch64-specific attributes): Document
3815 "aarch64_tiny", "aarch64_small", "aarch64_large",
3816 "aarch64_little_endian", "aarch64_big_endian".
3818 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3820 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
3821 Document "aarch64_small_fpic".
3823 2015-07-01 Jiong Wang <jiong.wang@arm.com>
3825 * configure.ac: Add check for aarch64 assembler -fpic relocation
3827 * configure: Regenerate.
3828 * config.in: Regenerate.
3829 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
3830 to -fPIC if not support of -fpic relocation modifier in assembler.
3832 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
3835 * rtl.c (classify_insn): Handle returns in PARALLELs.
3837 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
3840 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
3841 to true if the function is nested and if not optimizing.
3842 (convert_local_omp_clauses): Initialize need_frame to true if the
3843 function contains nested functions and if not optimizing.
3845 2015-07-01 Richard Biener <rguenther@suse.de>
3847 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
3848 (X & Y) ^ Y -> ~X & Y transforms to ...
3849 * match.pd: ... here.
3851 2015-07-01 Richard Biener <rguenther@suse.de>
3853 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
3854 of converts to avoid uninteresting noise from the conversion
3855 simplifying patterns.
3857 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
3859 * config/c6x/c6x.c (try_rename_operands): Do not depend on
3860 gcc_assert evaluating its argument for side-effect.
3862 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
3865 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
3868 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
3870 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
3871 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
3872 (hash_scc): Add this_ref_p and ref_p parameters and pass them
3873 to the inner DFS walk.
3875 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3877 * target-insns.def (jump): New targetm instruction pattern.
3878 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
3879 instead of gen_jump.
3880 (fix_up_crossing_landing_pad): Likewise.
3881 (add_labels_and_missing_jumps): Likewise.
3882 (fix_crossing_conditional_branches): Likewise.
3883 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
3884 (force_nonfallthru_and_redirect): Likewise.
3885 * cse.c (cse_insn): Likewise.
3886 * expmed.c (expand_divmod): Likewise.
3887 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
3888 * haifa-sched.c (init_before_recovery): Likewise.
3889 (sched_create_recovery_edges): Likewise.
3890 * ifcvt.c (find_cond_trap): Likewise.
3891 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
3892 (expand_float, expand_fix): Likewise.
3893 * stmt.c (emit_jump): Likewise.
3895 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3897 * defaults.h (HAVE_load_multiple, gen_load_multiple)
3898 (HAVE_store_multiple, gen_store_multiple): Delete.
3899 * target-insns.def (load_multiple, store_multiple): New targetm
3900 instruction patterns.
3901 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
3902 of HAVE_*/gen_* interface.
3904 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3906 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
3907 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
3908 (gen_mem_signal_fence): Delete.
3909 * target-insns.def (mem_signal_fence, mem_thread_fence)
3910 (memory_barrier): New targetm instruction patterns.
3911 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
3913 (expand_mem_signal_fence): Likewise.
3915 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
3917 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
3918 * target-insns.def (epilogue, prologue, sibcall_prologue): New
3919 targetm instruction patterns.
3920 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
3922 * calls.c (expand_call): Likewise.
3923 * cfgrtl.c (cfg_layout_finalize): Likewise.
3924 * df-scan.c (df_get_entry_block_def_set): Likewise.
3925 (df_get_exit_block_use_set): Likewise.
3926 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
3927 * final.c (final_start_function): Likewise.
3928 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3929 (reposition_prologue_and_epilogue_notes): Likewise.
3930 * reorg.c (find_end_label): Likewise.
3931 * toplev.c (process_options): Likewise.
3933 2015-06-30 David Malcolm <dmalcolm@redhat.com>
3935 * typed-splay-tree.h: New file.
3937 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
3940 * lra-int.h (lra_substitute_pseudo): Add a parameter.
3941 (lra_substitute_pseudo_within_insn): Ditto.
3942 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
3944 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
3945 to lra_substitute_pseudo.
3946 * lra-lives.c (process_bb_lives): Add an argument to
3947 lra_substitute_pseudo_within_insn call.
3948 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
3949 argument to lra_substitute_pseudo and
3950 lra_substitute_pseudo_within_insn calls.
3951 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
3953 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3955 * configure: Regenerated.
3957 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
3959 * config.gcc: Support i[34567]86-*-elfiamcu target.
3960 * config/i386/iamcu.h: New.
3961 * config/i386/i386.opt: Add -miamcu.
3962 * doc/invoke.texi: Document -miamcu.
3963 * common/config/i386/i386-common.c (ix86_handle_option): Turn
3964 off x87/MMX/SSE/AVX codegen for -miamcu.
3965 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3966 __iamcu/__iamcu__ for -miamcu.
3967 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
3968 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
3969 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
3970 * config/i386/i386.c (ix86_option_override_internal): Ignore and
3971 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
3972 MCU by default. Default long double to 64-bit for Intel MCU.
3973 Turn on -freg-struct-return for Intel MCU. Issue an error when
3974 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
3976 (function_arg_advance_32): Pass value whose size is no larger
3977 than 8 bytes in registers for Intel MCU.
3978 (function_arg_32): Likewise.
3979 (ix86_return_in_memory): Return value whose size is no larger
3980 than 8 bytes in registers for Intel MCU.
3981 (iamcu_alignment): New function.
3982 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
3984 (ix86_local_alignment): Don't increase alignment for Intel MCU.
3985 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
3988 2015-06-30 Marek Polacek <polacek@redhat.com>
3990 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
3991 both operands of the resulting expression.
3993 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
3994 the final expression with the operand's type and then convert
3995 it to the type of the expression.
3997 2015-06-30 Richard Biener <rguenther@suse.de>
3999 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
4000 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
4001 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
4002 * match.pd: ... to patterns here.
4004 2015-06-30 Richard Biener <rguenther@suse.de>
4006 PR tree-optimization/66704
4007 * tree-vect-data-refs.c (vect_setup_realignment): Use
4008 make_ssa_name for non-SSA name source.
4010 2015-06-30 Jakub Jelinek <jakub@redhat.com>
4013 * omp-low.c (simd_clone_adjust): Handle addressable linear
4014 or uniform parameters or non-gimple type uniform parameters.
4016 2015-06-30 Richard Biener <rguenther@suse.de>
4018 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
4019 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
4020 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
4021 * match.pd: ... here.
4022 Add a few cases of A - B -> A + (-B) when B "easily" negates.
4023 Move (x & y) | x -> x and friends before
4024 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
4026 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
4028 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
4029 -mfix-ut699 is not specified.
4030 (leon3_load): Rename into...
4031 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
4034 2015-06-30 Marek Polacek <polacek@redhat.com>
4036 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
4037 * match.pd: ... here.
4039 2015-06-30 Richard Biener <rguenther@suse.de>
4041 * target-insns.def (canonicalize_funcptr_for_compare): Add.
4042 * fold-const.c (build_range_check): Replace uses of
4043 HAVE_canonicalize_funcptr_for_compare.
4044 (fold_widened_comparison): Likewise.
4045 (fold_sign_changed_comparison): Likewise.
4046 * dojump.c: Include "target.h".
4047 (do_compare_and_jump): Replace uses of
4048 HAVE_canonicalize_funcptr_for_compare and
4049 gen_canonicalize_funcptr_for_compare.
4050 * expr.c (do_store_flag): Likewise.
4052 2015-06-30 Tom de Vries <tom@codesourcery.com>
4054 PR tree-optimization/66652
4055 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
4056 max_loop_iterations to determine if nit + 1 overflows.
4058 2015-06-30 Richard Biener <rguenther@suse.de>
4060 * tree-vrp.c (register_edge_assert_for_2): Also register
4061 asserts for dominating conversion results.
4063 2015-06-30 Bin Cheng <bin.cheng@arm.com>
4065 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
4068 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
4071 * configure.ac: Fix filds and fildq test for 64-bit.
4072 * configure: Regenerated.
4074 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
4076 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
4077 (nvptx_reorg): Here. Keep the non-subreg pieces.
4079 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
4081 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
4082 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
4084 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
4086 * config/i386/i386.md (*jcc_1): Use %! in asm template.
4087 Set attribute "length_nobnd" instead of "length".
4090 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
4092 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
4094 * config/nios2/nios2.c (nios2_delegitimize_address): Make
4095 assert less restrictive.
4097 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4100 * cgraphunit.c (cgraph_node::finalize_function): Do not call
4101 do_warn_unused_parameter.
4102 * function.c (do_warn_unused_parameter): Move from here.
4103 * function.h (do_warn_unused_parameter): Do not declare.
4105 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4108 * gcc.target/arm/armv-sync-comp-swap.c: New.
4109 * gcc.target/arm/armv-sync-op-acquire.c: New.
4110 * gcc.target/arm/armv-sync-op-full.c: New.
4111 * gcc.target/arm/armv-sync-op-release.c: New.
4113 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4116 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
4117 initial acquire barrier with final barrier.
4119 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4122 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
4123 initial acquire barrier with final barrier.
4125 2015-06-29 Richard Henderson <rth@redhat.com>
4127 * config/i386/constraints.md (Bf): New constraint.
4128 * config/i386/i386-c.c (ix86_target_macros): Define
4129 __GCC_ASM_FLAG_OUTPUTS__.
4130 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
4132 * doc/extend.texi (FlagOutputOperands): Document them.
4134 2015-06-29 Jiong Wang <jiong.wang@arm.com>
4136 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
4137 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
4139 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
4140 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
4141 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
4142 (aarch64_symbol_context): Ditto.
4143 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
4144 and use new pattern name.
4145 (aarch64_expand_mov_immediate): Ditto.
4146 (aarch64_print_operand): Ditto.
4147 (aarch64_classify_tls_symbol): Ditto.
4149 2015-06-29 Marek Polacek <polacek@redhat.com>
4150 Marc Glisse <marc.glisse@inria.fr>
4152 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
4153 * match.pd: ... pattern here.
4155 2015-06-29 Tom de Vries <tom@codesourcery.com>
4157 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
4160 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
4162 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
4163 feature description, split out the native option, add a link to
4164 the feature documentation, rearrange and slightly rewrite text.
4165 (Aarch64 options, -mcpu): Likewise.
4166 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
4167 +rdma implies Adv. SIMD.
4169 2015-06-29 Marek Polacek <polacek@redhat.com>
4172 * function.c (stack_protect_epilogue): Remove a cast to int.
4173 * doc/invoke.texi: Update -Wswitch-bool description.
4175 2015-06-29 Richard Biener <rguenther@suse.de>
4177 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
4178 * fold-const.c (fold_binary_loc): Move &A - &B simplification
4179 via ptr_difference_const ...
4180 * match.pd: ... here.
4181 When matching (X ^ Y) == Y also match with swapped operands.
4183 2015-06-29 Richard Biener <rguenther@suse.de>
4185 * lto-streamer.h (LTO_major_version): Bump to 5.
4187 2015-06-29 Richard Biener <rguenther@suse.de>
4189 PR tree-optimization/66677
4190 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
4191 STMT_VINFO_VEC_STMT clobbering less strict.
4193 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4196 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
4197 division, compute max and min when value ranges for dividend and
4198 divisor are available.
4200 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
4201 Sandra Loosemore <sandra@codesourcery.com>
4203 * regrename.h (regrename_do_replace): Change to return bool.
4204 * regrename.c (rename_chains): Check return value of
4206 (regrename_do_replace): Re-validate the modified insns and
4208 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4209 Update to match rename_chains changes.
4210 * config/c6x/c6x.c (try_rename_operands): Assert that
4211 regrename_do_replace returns true.
4213 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
4215 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
4216 operand 2 here. Use copy_addr_to_reg to copy non-index
4217 register operand 2 to a temporary.
4218 (<mode>_stx): Ditto for operand 1.
4219 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
4220 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
4221 (ix86_store_bounds): Ditto.
4223 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
4225 * print-tree.c (print_node) [TREE_VEC]: Print its length.
4227 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
4229 * gimple.c (gimple_call_set_fndecl): Remove.
4230 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
4231 build1_loc directly instead of build_fold_addr_expr_loc.
4233 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4235 * hash-map.h (hash_map::traverse): Use the definition of the
4236 Key typedef rather than the typedef itself.
4238 2015-06-26 Martin Jambor <mjambor@suse.cz>
4241 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
4242 NULL instead of calling dump_enabled_p.
4244 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4246 * config/aarch64/aarch64.opt: (override): New.
4247 * doc/invoke.texi (override): Document.
4248 * config/aarch64/aarch64.c (aarch64_flag_desc): New
4249 (aarch64_fusible_pairs): Likewise.
4250 (aarch64_tuning_flags): Likewise.
4251 (aarch64_tuning_override_function): Likewise.
4252 (aarch64_tuning_override_functions): Likewise.
4253 (aarch64_parse_one_option_token): Likewise.
4254 (aarch64_parse_boolean_options): Likewise.
4255 (aarch64_parse_fuse_string): Likewise.
4256 (aarch64_parse_tune_string): Likewise.
4257 (aarch64_parse_one_override_token): Likewise.
4258 (aarch64_parse_override_string): Likewise.
4259 (aarch64_override_options): Parse the -override string if it
4262 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4264 * config/aarch64/aarch64-protos.h (tune_params): Remove
4266 (aarch64_tune_params): Remove const, change to no longer be
4268 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
4269 change to no longer be a pointer, initialize to generic_tunings.
4270 (aarch64_min_divisions_for_recip_mul): Change dereference of
4271 aarch64_tune_params to member access.
4272 (aarch64_reassociation_width): Likewise.
4273 (aarch64_rtx_mult_cost): Likewise.
4274 (aarch64_address_cost): Likewise.
4275 (aarch64_branch_cost): Likewise.
4276 (aarch64_rtx_costs): Likewise.
4277 (aarch64_register_move_cost): Likewise.
4278 (aarch64_memory_move_cost): Likewise.
4279 (aarch64_sched_issue_rate): Likewise.
4280 (aarch64_builtin_vectorization_cost): Likewise.
4281 (aarch64_override_options): Take a copy of the selected tuning
4282 struct in to aarch64_tune_params, rather than just setting
4283 a pointer, change dereferences of aarch64_tune_params to member
4285 (aarch64_override_options_after_change): Change dereferences of
4286 aarch64_tune_params to member access.
4287 (aarch64_macro_fusion_p): Likewise.
4288 (aarch_macro_fusion_pair_p): Likewise.
4289 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
4291 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4293 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
4294 (aarch64_tune_flags): Likewise.
4295 (AARCH64_TUNE_FMA_STEERING): Likewise.
4296 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
4297 to AARCH64_FL_USE_FMA_STEERING_PASS.
4298 (cortex-a57.cortex-a53): Likewise.
4299 (cortex-a72): Use cortexa72_tunings.
4300 (cortex-a72.cortex-a53): Likewise.
4301 (exynos-m1): Likewise.
4302 * config/aarch64/aarch64-protos.h (tune_params): Add
4303 a field: extra_tuning_flags.
4304 * config/aarch64/aarch64-tuning-flags.def: New.
4305 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
4306 (aarch64_extra_tuning_flags): Likewise.
4307 (aarch64_tune_params): Declare here.
4308 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
4309 (cortexa53_tunings): Likewise.
4310 (cortexa57_tunings): Likewise.
4311 (thunderx_tunings): Likewise.
4312 (xgene1_tunings): Likewise.
4313 (cortexa72_tunings): New.
4314 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
4315 (gate): Check against aarch64_tune_params.
4316 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
4319 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
4321 * config/aarch64/aarch64-fusion-pairs.def: New.
4322 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
4323 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
4324 aarch64_fusion_pairs.
4325 (AARCH64_FUSE_MOV_MOVK): Likewise.
4326 (AARCH64_FUSE_ADRP_ADD): Likewise.
4327 (AARCH64_FUSE_MOVK_MOVK): Likewise.
4328 (AARCH64_FUSE_ADRP_LDR): Likewise.
4329 (AARCH64_FUSE_CMP_BRANCH): Likewise.
4331 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4333 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
4334 SYMBOL_SMALL_GOT_28K.
4335 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
4336 relocation modifiers.
4337 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
4338 (ldr_got_small_28k_<mode>): New.
4339 (ldr_got_small_28k_sidi): New.
4340 * config/aarch64/iterators.md (got_modifier): New mode iterator.
4341 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
4342 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
4343 SYMBOL_SMALL_GOT_28K.
4344 (aarch64_rtx_costs): Add costs for new instruction sequences.
4345 (initialize_aarch64_code_model): Initialize new model.
4346 (aarch64_classify_symbol): Recognize new model and new symbol classification.
4347 (aarch64_asm_preferred_eh_data_format): Support new model.
4348 (aarch64_load_symref_appropriately): Generate new instruction
4349 sequences for -fpic.
4350 (TARGET_USE_PSEUDO_PIC_REG): New definition.
4351 (aarch64_use_pseudo_pic_reg): New function.
4353 2015-06-26 Jiong Wang <jiong.wang@arm.com>
4355 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
4356 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
4357 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
4358 (aarch64_expand_mov_immediate): Ditto.
4359 (aarch64_print_operand): Ditto.
4360 (aarch64_classify_symbol): Ditto.
4362 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
4364 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
4366 2015-06-26 Bin Cheng <bin.cheng@arm.com>
4369 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
4370 assertion failed. Remove assertion itself.
4372 2015-06-26 Richard Biener <rguenther@suse.de>
4374 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
4375 and -A CMP CST -> A CMP -CST which is redundant with a pattern
4377 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
4378 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
4379 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
4380 * match.pd: ... patterns here.
4382 2015-06-26 Marek Polacek <polacek@redhat.com>
4384 * match.pd ((x | y) & ~(x & y) -> x ^ y,
4385 (x | y) & (~x ^ y) -> x & y): New patterns.
4387 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
4389 * rtl.h (emit): Add an optional boolean parameter to control
4390 whether barriers are emitted.
4391 * emit-rtl.c (emit): Likewise.
4392 * gensupport.c (get_emit_function): Return null rather than "emit".
4393 * genemit.c (gen_emit_seq): Handle the null return value.
4394 Don't emit barriers after the final instruction in the sequence.
4395 * gentarget-def.c (main): Don't emit barriers after the instruction.
4397 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4399 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
4402 2015-06-26 Richard Biener <rguenther@suse.de>
4404 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
4406 2015-06-26 Richard Biener <rguenther@suse.de>
4408 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
4409 irrespective on whether the inner operation has a single use
4410 of both off are constant.
4412 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
4413 Segher Boessenkool <segher@kernel.crashing.org>
4416 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
4417 before doing PUT_MODE or PUT_CODE on operands to avoid
4418 in-place RTX modification.
4420 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4422 * gentarget-def.c (def_target_insn): Cast return of strtol to
4425 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4427 * gimple.h (gimple_call_set_fn): Move inline function.
4428 * gimple.c (gimple_call_set_fn): Relocate here.
4430 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
4434 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
4435 the replacement insn will work.
4437 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
4439 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
4442 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
4444 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
4445 * cgraph.h: Include ipa-ref.h and plugin-api.h.
4446 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
4447 (symtab_node::address_can_be_compared_p): Move function.
4448 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
4450 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
4451 * auto-profile.c: Likewise.
4452 * bb-reorder.c: Likewise.
4453 * builtins.c: Likewise.
4454 * calls.c: Likewise.
4455 * cfgexpand.c: Likewise.
4456 * cgraphbuild.c: Likewise.
4457 * cgraphclones.c: Likewise.
4458 * cgraphunit.c: Likewise.
4459 * combine.c: Likewise.
4460 * coverage.c: Likewise.
4461 * data-streamer-in.c: Likewise.
4462 * data-streamer-out.c: Likewise.
4463 * data-streamer.c: Likewise.
4464 * dbxout.c: Likewise.
4465 * dwarf2out.c: Likewise.
4466 * except.c: Likewise.
4468 * final.c: Likewise.
4469 * fold-const.c: Likewise.
4470 * ggc-page.c: Likewise.
4471 * gimple-fold.c: Likewise.
4472 * gimple-iterator.c: Likewise.
4473 * gimple-pretty-print.c: Likewise.
4474 * gimple-streamer-in.c: Likewise.
4475 * gimple-streamer-out.c: Likewise.
4476 * gimple.c: Likewise.
4477 * gimplify.c: Likewise.
4478 * ipa-chkp.c: Likewise.
4479 * ipa-comdats.c: Likewise.
4480 * ipa-cp.c: Likewise.
4481 * ipa-devirt.c: Likewise.
4482 * ipa-icf-gimple.c: Likewise.
4483 * ipa-icf.c: Likewise.
4484 * ipa-inline-analysis.c: Likewise.
4485 * ipa-inline-transform.c: Likewise.
4486 * ipa-inline.c: Likewise.
4487 * ipa-polymorphic-call.c: Likewise.
4488 * ipa-profile.c: Likewise.
4489 * ipa-prop.c: Likewise.
4490 * ipa-pure-const.c: Likewise.
4491 * ipa-ref.c: Likewise.
4492 * ipa-reference.c: Likewise.
4493 * ipa-split.c: Likewise.
4494 * ipa-utils.c: Likewise.
4495 * ipa-visibility.c: Likewise.
4497 * langhooks.c: Likewise.
4498 * lto-cgraph.c: Likewise.
4499 * lto-compress.c: Likewise.
4500 * lto-opts.c: Likewise.
4501 * lto-section-in.c: Likewise.
4502 * lto-section-out.c: Likewise.
4503 * lto-streamer-in.c: Likewise.
4504 * lto-streamer-out.c: Likewise.
4505 * lto-streamer.c: Likewise.
4506 * omp-low.c: Likewise.
4507 * opts-global.c: Likewise.
4508 * passes.c: Likewise.
4509 * predict.c: Likewise.
4510 * print-tree.c: Likewise.
4511 * profile.c: Likewise.
4513 * sanopt.c: Likewise.
4514 * stor-layout.c: Likewise.
4515 * symtab.c: Likewise.
4516 * toplev.c: Likewise.
4517 * trans-mem.c: Likewise.
4518 * tree-cfg.c: Likewise.
4519 * tree-chkp.c: Likewise.
4520 * tree-eh.c: Likewise.
4521 * tree-emutls.c: Likewise.
4522 * tree-inline.c: Likewise.
4523 * tree-nested.c: Likewise.
4524 * tree-parloops.c: Likewise.
4525 * tree-pretty-print.c: Likewise.
4526 * tree-profile.c: Likewise.
4527 * tree-sra.c: Likewise.
4528 * tree-ssa-alias.c: Likewise.
4529 * tree-ssa-live.c: Likewise.
4530 * tree-ssa-loop-ivcanon.c: Likewise.
4531 * tree-ssa-loop-ivopts.c: Likewise.
4532 * tree-ssa-pre.c: Likewise.
4533 * tree-ssa-sccvn.c: Likewise.
4534 * tree-ssa-strlen.c: Likewise.
4535 * tree-ssa-structalias.c: Likewise.
4536 * tree-streamer-in.c: Likewise.
4537 * tree-streamer-out.c: Likewise.
4538 * tree-streamer.c: Likewise.
4539 * tree-switch-conversion.c: Likewise.
4540 * tree-tailcall.c: Likewise.
4541 * tree-vect-data-refs.c: Likewise.
4542 * tree-vect-stmts.c: Likewise.
4543 * tree-vectorizer.c: Likewise.
4546 * ubsan.c: Likewise.
4547 * value-prof.c: Likewise.
4548 * varasm.c: Likewise.
4549 * varpool.c: Likewise.
4550 * config/arm/arm.c: Likewise.
4551 * config/bfin/bfin.c: Likewise.
4552 * config/c6x/c6x.c: Likewise.
4553 * config/cris/cris.c: Likewise.
4554 * config/darwin-c.c: Likewise.
4555 * config/darwin.c: Likewise.
4556 * config/i386/i386.c: Likewise.
4557 * config/i386/winnt.c: Likewise.
4558 * config/microblaze/microblaze.c: Likewise.
4559 * config/mips/mips.c: Likewise.
4560 * config/rs6000/rs6000.c: Likewise.
4561 * config/rx/rx.c: Likewise.
4562 * config/s390/s390.c: Likewise.
4563 * config/tilegx/mul-tables.c: Likewise.
4565 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4567 * config/aarch64/aarch64.c, config/alpha/alpha.c,
4568 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
4569 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
4570 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
4571 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4572 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4573 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4574 config/microblaze/microblaze.c, config/mips/mips.c,
4575 config/mmix/mmix.c, config/mn10300/mn10300.c,
4576 config/moxie/moxie.c, config/msp430/msp430.c,
4577 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4578 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4579 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4580 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4581 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4582 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4583 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
4584 target-def.h include.
4585 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
4587 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4589 * Makefile.in (TARGET_DEF): Add target-insns.def.
4590 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
4591 (build/gentarget-def.o): New rule.
4592 (genprogrtl): Add target-def.
4593 * target-insns.def, gentarget-def.c: New files.
4594 * target.def: Add targetm.have_* and targetm.gen_* hooks,
4595 based on the contents of target-insns.def.
4596 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
4597 (HAVE_return, gen_return): Delete.
4598 * target-def.h: Include insn-target-def.h.
4599 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
4600 instead of direct calls. Rely on them to do the appropriate assertions.
4601 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
4602 (convert_jumps_to_returns): Use targetm interface instead of
4604 (thread_prologue_and_epilogue_insns): Likewise.
4605 * reorg.c (find_end_label, dbr_schedule): Likewise.
4606 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
4607 * shrink-wrap.c (convert_to_simple_return): Likewise.
4608 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
4610 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4612 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
4613 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4614 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
4615 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4616 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
4617 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4618 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
4619 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
4620 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
4621 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
4622 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
4623 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
4624 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
4625 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4626 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4627 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
4630 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4632 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
4633 (unbounded_int_hashmap_traits::key_type): Likewise.
4634 * hash-map.h (hash_map): Get the key type from the traits.
4635 * hash-traits.h (default_hash_traits): By default, inherit from the
4637 * alias.c (alias_set_traits): Delete.
4638 (alias_set_entry_d::children): Use alias_set_hash as the first
4640 (record_alias_subset): Update accordingly.
4641 * except.c (tree_hash_traits): Delete.
4642 (type_to_runtime_map): Use tree_hash as the first template parameter.
4643 (init_eh): Update accordingly.
4644 * genmatch.c (capture_id_map_hasher): Delete.
4645 (cid_map_t): Use nofree_string_hash as first template parameter.
4646 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
4647 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4648 Use symbol_compare_hash as the first template parameter in
4650 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
4651 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
4653 * passes.c (pass_registry_hasher): Delete.
4654 (name_to_pass_map): Use nofree_string_hash as the first template
4656 (register_pass_name): Update accordingly.
4657 * sanopt.c (sanopt_tree_map_traits): Delete.
4658 (sanopt_tree_triplet_map_traits): Delete.
4659 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
4661 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
4662 the first template parameter.
4663 * sese.c (rename_map_hasher): Delete.
4664 (rename_map_type): Use tree_ssa_name_hash as the first template
4666 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
4667 (function_summary::m_map): Use map_hash as the first template
4669 (function_summary::release): Update accordingly.
4670 * tree-if-conv.c (phi_args_hash_traits): Delete.
4671 (predicate_scalar_phi): Use tree_operand_hash as the first template
4672 parameter to phi_arg_map.
4673 * tree-inline.h (dependence_hasher): Delete.
4674 (copy_body_data::dependence_map): Use dependence_hash as the first
4676 * tree-inline.c (remap_dependence_clique): Update accordingly.
4677 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
4678 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
4680 (addr_stridxptr): Update accordingly.
4681 * value-prof.c (profile_id_traits): Delete.
4682 (cgraph_node_map): Use profile_id_hash as the first template
4684 (init_node_map): Update accordingly.
4685 * config/alpha/alpha.c (string_traits): Delete.
4686 (machine_function::links): Use nofree_string_hash as the first
4688 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
4689 * config/m32c/m32c.c (pragma_traits): Delete.
4690 (pragma_htab): Use nofree_string_hash as the first template parameter.
4691 (m32c_note_pragma_address): Update accordingly.
4692 * config/mep/mep.c (pragma_traits): Delete.
4693 (pragma_htab): Use nofree_string_hash as the first template parameter.
4694 (mep_note_pragma_flag): Update accordingly.
4695 * config/mips/mips.c (mips16_flip_traits): Delete.
4696 (mflip_mips16_htab): Use nofree_string_hash as the first template
4698 (mflip_mips16_use_mips16_p): Update accordingly.
4699 (local_alias_traits): Delete.
4700 (mips16_local_aliases): Use nofree_string_hash as the first template
4702 (mips16_local_alias): Update accordingly.
4704 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4706 * hash-map-traits.h (default_hashmap_traits): Delete.
4708 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4710 * hash-map-traits.h (unbounded_hashmap_traits): New class.
4711 (unbounded_int_hashmap_traits): Likewise.
4712 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
4714 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4716 * ipa-icf.h (symbol_compare_hash): New class.
4717 (symbol_compare_hashmap_traits): Use it.
4718 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
4719 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
4720 (mem_alloc_description::reverse_mem_map_t): Remove redundant
4721 default_hashmap_traits.
4722 * sanopt.c (sanopt_tree_triplet_hash): New class.
4723 (sanopt_tree_triplet_map_traits): Use it.
4725 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4727 * gengtype-parse.c (require_template_declaration): Allow '+' in
4728 template parameters. Consolidate cases.
4729 * hash-traits.h (int_hash): New class.
4730 * alias.c (alias_set_hash): New structure.
4731 (alias_set_traits): Use it.
4732 * symbol-summary.h (function_summary::map_hash): New class.
4733 (function_summary::summary_hashmap_traits): Use it.
4734 * tree-inline.h (dependence_hash): New class.
4735 (dependence_hasher): Use it.
4736 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
4737 * value-prof.c (profile_id_hash): New class.
4738 (profile_id_traits): Use it.
4740 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4742 * config/mips/mips.c (mips16_flip_traits): Use it.
4743 (local_alias_traits, mips16_local_aliases): Convert from a map of
4744 rtxes to a map of symbol names.
4745 (mips16_local_alias): Update accordingly.
4747 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4749 * hash-traits.h (string_hash, nofree_string_hash): New classes.
4750 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
4751 * passes.c (pass_registry_hasher): Likewise.
4752 * config/alpha/alpha.c (string_traits): Likewise.
4753 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
4754 * config/m32c/m32c.c (pragma_traits): Likewise.
4755 * config/mep/mep.c (pragma_traits): Likewise.
4757 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4759 * tree-hash-traits.h (tree_hash): New class.
4760 * except.c: Include tree-hash-traits.h.
4761 (tree_hash_traits): Use tree_hash.
4763 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4765 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
4766 * sese.c: Include tree-hash-traits.h.
4767 (rename_map_hasher): Use tree_ssa_name_hasher.
4769 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4771 * tree-hash-traits.h (tree_decl_hash): New class.
4772 * tree-ssa-strlen.c: Include tree-hash-traits.h.
4773 (stridxlist_hash_traits): Use tree_decl_hash.
4775 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4777 * tree-hash-traits.h: New file.
4778 (tree_operand_hash): New class.
4779 * sanopt.c: Include tree-hash-traits.h.
4780 (sanopt_tree_map_traits): Use tree_operand_hash.
4781 * tree-if-conv.c: Include tree-hash-traits.h.
4782 (phi_args_hash_traits): Use tree_operand_hash.
4783 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
4784 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
4786 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4788 * hash-map-traits.h: Include hash-traits.h.
4789 (simple_hashmap_traits): New class.
4790 * mem-stats.h (hash_map): Change the default traits to
4791 simple_hashmap_traits<default_hash_traits<Key> >.
4793 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4795 * hash-table.h: Update comments.
4797 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4799 * hash-traits.h (default_hash_traits): New structure.
4800 * hash-set.h (default_hashset_traits): Delete.
4801 (hash_set): Use default_hash_traits<Key> instead of
4802 default_hashset_traits. Delete hash_entry type and use Key directly.
4803 * ipa-devirt.c (pair_traits): Delete.
4804 (default_hash_traits <type_pair>): Override.
4805 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
4806 (odr_types_equivalent_p, add_type_duplicate): Likewise.
4808 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4810 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
4812 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4814 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
4815 (has_is_empty, is_empty_helper): Delete.
4816 (has_mark_deleted, mark_deleted_helper): Delete.
4817 (has_mark_empty, mark_empty_helper): Delete.
4818 (hash_table::is_deleted): Call the Descriptor unconditionally.
4819 (hash_table::is_empty): Likewise.
4820 (hash_table::mark_deleted): Likewise.
4821 (hash_table::mark_empty): Likewise.
4823 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4825 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
4826 redundant typedefs and members.
4827 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
4829 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
4830 * ipa-devirt.c (odr_name_hasher): Likewise.
4831 (polymorphic_call_target_hasher): Likewise.
4832 * ira-costs.c (cost_classes_hasher): Likewise.
4833 * statistics.c (stats_counter_hasher): Likewise.
4834 * trans-mem.c (log_entry_hasher): Likewise.
4835 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
4836 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
4837 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
4838 * var-tracking.c (variable_hasher): Likewise.
4839 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
4840 Remove redundant typedefs and members.
4842 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4844 * hash-traits.h (ggc_cache_hasher): Rename to...
4845 (ggc_cache_remove): ...this and remove typedefs.
4846 (ggc_cache_ptr_hash): New class.
4847 * hash-table.h: Update commentary.
4848 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
4849 rather than ggc_cache_hasher.
4850 (const_wide_int_hasher, reg_attr_hasher): Likewise.
4851 (const_double_hasher, const_fixed_hasher): Likewise.
4852 * function.c (insn_cache_hasher): Likewise.
4853 * trans-mem.c (tm_wrapper_hasher): Likewise.
4854 * tree.h (tree_decl_map_cache_hasher): Likewise.
4855 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
4856 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
4857 * ubsan.c (tree_type_map_cache_hasher): Likewise.
4858 * varasm.c (tm_clone_hasher): Likewise.
4859 * config/i386/i386.c (dllimport_hasher): Likewise.
4860 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
4861 (tree_hasher): Likewise.
4863 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4865 * hash-traits.h (ggc_hasher): Rename to...
4866 (ggc_remover): ...this and remove typedefs.
4867 (ggc_cache_hasher): Update accordingly. Add typedefs.
4868 (ggc_ptr_hash): New class.
4869 * hash-table.h: Update comment.
4870 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
4872 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
4873 (tree_descriptor_hasher): Likewise.
4874 * cgraph.c (function_version_hasher): Likewise.
4875 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
4876 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
4877 (dw_loc_list_hasher, addr_hasher): Likewise.
4878 * function.h (used_type_hasher): Likewise.
4879 * function.c (temp_address_hasher): Likewise.
4880 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
4881 * libfuncs.h (libfunc_hasher): Likewise.
4882 * lto-streamer.h (decl_state_hasher): Likewise.
4883 * optabs.c (libfunc_decl_hasher): Likewise.
4884 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
4885 * varasm.c (section_hasher, object_block_hasher): Likewise.
4886 (const_rtx_desc_hasher): Likewise.
4887 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
4888 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
4890 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4892 * hash-traits.h (free_ptr_hash): New class.
4893 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
4894 rather than typed_free_remove. Remove redudant typedefs.
4895 (external_ref_hasher): Likewise.
4896 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
4897 (ehspec_hasher): Likewise.
4898 * ggc-common.c (saving_hasher): Likewise.
4899 * gimplify.c (gimplify_hasher): Likewise.
4900 * haifa-sched.c (delay_i2_hasher): Likewise.
4901 * loop-invariant.c (invariant_expr_hasher): Likewise.
4902 * loop-iv.c (biv_entry_hasher): Likewise.
4903 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
4904 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
4905 * tree-cfg.c (locus_discrim_hasher): Likewise.
4906 * tree-eh.c (finally_tree_hasher): Likewise.
4907 * tree-into-ssa.c (var_info_hasher): Likewise.
4908 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
4909 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
4910 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
4911 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
4912 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
4913 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
4914 (shared_bitmap_hasher): Likewise.
4915 * tree-ssa-threadupdate.c (redirection_data): Likewise.
4916 * tree-vectorizer.h (peel_info_hasher): Likewise.
4917 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
4918 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
4920 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4922 * hash-table.h: Update comments.
4923 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
4924 (nofree_ptr_hash): New class.
4925 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
4926 than typed_noop_remove. Remove redudant typedefs.
4927 * attribs.c (attribute_hasher): Likewise.
4928 * cfg.c (bb_copy_hasher): Likewise.
4929 * cselib.c (cselib_hasher): Likewise.
4930 * dse.c (invariant_group_base_hasher): Likewise.
4931 * dwarf2cfi.c (trace_info_hasher): Likewise.
4932 * dwarf2out.c (macinfo_entry_hasher): Likewise.
4933 (comdat_type_hasher, loc_list_hasher): Likewise.
4934 * gcse.c (pre_ldst_expr_hasher): Likewise.
4935 * genmatch.c (id_base): Likewise.
4936 * genrecog.c (test_pattern_hasher): Likewise.
4937 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
4938 * haifa-sched.c (delay_i1_hasher): Likewise.
4939 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
4940 * ipa-icf.h (congruence_class_group_hash): Likewise.
4941 * ipa-profile.c (histogram_hash): Likewise.
4942 * ira-color.c (allocno_hard_regs_hasher): Likewise.
4943 * lto-streamer.h (string_slot_hasher): Likewise.
4944 * lto-streamer.c (tree_entry_hasher): Likewise.
4945 * plugin.c (event_hasher): Likewise.
4946 * postreload-gcse.c (expr_hasher): Likewise.
4947 * store-motion.c (st_expr_hasher): Likewise.
4948 * tree-sra.c (uid_decl_hasher): Likewise.
4949 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
4950 (ssa_name_var_hash): Likewise.
4951 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
4952 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
4953 * tree-ssa-pre.c (pre_expr_d): Likewise.
4954 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
4955 * vtable-verify.h (registration_hasher): Likewise.
4956 * vtable-verify.c (vtbl_map_hasher): Likewise.
4957 * config/arm/arm.c (libcall_hasher): Likewise.
4958 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
4959 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
4960 * config/sol2.c (comdat_entry_hasher): Likewise.
4961 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
4962 (print_fold_checksum, fold_checksum_tree): Likewise.
4963 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
4964 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
4965 (fold_build_call_array_loc): Likewise.
4966 * tree-ssa-ccp.c (gimple_htab): Likewise.
4967 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
4968 rather than pointer_type.
4970 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4972 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
4973 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
4975 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4977 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
4978 (ggc_hasher::ggc_mx): Likewise.
4979 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
4980 that duplicate ggc_hasher ones.
4982 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4984 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
4985 (gt_cleare_cache): Check here for deleted and empty entries.
4986 Replace handle_cache_entry with a call to keep_cache_entry.
4987 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
4988 (ggc_cache_hasher::keep_cache_entry): New function.
4989 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
4990 (tm_wrapper_hasher::keep_cache_entry): New function.
4991 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
4992 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4993 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
4994 (type_cache_hasher::keep_cache_entry): New function.
4995 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
4996 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
4997 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
4998 (tree_type_map_cache_hasher::keep_cache_entry): New function.
4999 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
5000 (tm_clone_hasher::keep_cache_entry): New function.
5001 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
5002 (dllimport_hasher::keep_cache_entry): New function.
5004 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5006 * hash-table.h: Include hash-traits.h.
5007 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
5008 (ggc_cache_hasher): Move to...
5009 * hash-traits.h: ...this new file.
5011 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5013 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
5014 struct cl_optimization.
5015 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
5016 * tree.c (make_node_stat): Allocate cl_optimization struct.
5017 (copy_node_stat): Allocate and copy cl_optimization struct.
5019 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5021 * function.h (struct incoming_args): Move struct.
5022 (pass_by_reference, reference_callee_copied): Remove prototypes.
5023 * emit-rtl.h (struct incoming_args): Relocate struct here.
5024 * calls.h (pass_by_reference, reference_callee_copied): Relocate
5026 * function.c (pass_by_reference, reference_callee_copied): Move.
5027 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
5028 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
5029 * ipa-chkp.c: Include calls.h.
5031 2015-06-25 Andrew Macleod <amacleod@redhat.com>
5033 * alias.h (alias_set_type): Move typedef.
5034 * coretypes.h (alias_set_type): Relocate typedef here.
5035 * rtl.h: Don't include alias.h.
5037 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5039 * cgraph.h (cgraph_rtl_info): Move to rtl.h
5040 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
5042 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
5043 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
5045 * calls.c: Include hard-reg-set.h before rtl.h.
5048 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5049 Vladimir Makarov <vmakarov@redhat.com>
5051 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
5054 2015-06-25 Richard Biener <rguenther@suse.de>
5056 * fold-const.c (fold_binary_loc): Move simplification of
5057 (X <<>> C1) & C2 ...
5058 * match.pd: ... here.
5060 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
5062 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
5064 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
5066 * match.pd: Add patterns for vec_conds between 1 and 0.
5068 2015-06-25 Richard Biener <rguenther@suse.de>
5070 * tree-vect-stmts.c (vectorizable_conversion): Do not set
5071 STMT_VINFO_VEC_STMT for SLP.
5072 (vectorizable_store): Likewise.
5073 (vectorizable_load): Likewise.
5074 (vect_transform_stmt): Catch SLP vectorization clobbering
5075 STMT_VINFO_VEC_STMT.
5077 2015-06-25 Richard Biener <rguenther@suse.de>
5079 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
5081 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
5082 cleanup resulting dead code and parameters.
5083 (vect_transform_slp_perm_load): Adjust.
5085 2015-06-25 Nick Clifton <nickc@redhat.com>
5087 * config/bfin/bfin.c (bfin_expand_prologue): Set
5088 current_function_static_stack_size if flag_stack_usage_info is set.
5089 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
5090 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
5091 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5092 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
5094 2015-06-25 Tom de Vries <tom@codesourcery.com>
5096 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
5097 comment that the generated IV is unsigned.
5099 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5102 * config/arm/arm.c (arm_dbx_register_number): Return
5103 DWARF_FRAME_REGISTERS by default.
5105 2015-06-25 Tom de Vries <tom@codesourcery.com>
5107 * dominance.c (calculate_dominance_info): Fix verify_dominators call
5108 argument. Call verify_dominator when reusing dominator info.
5110 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
5113 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
5114 an additional element of the unspec vector. Modify indices
5116 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
5117 * config/sh/sh.c (prepare_move_operands): Pass incremented
5118 const_int to gen_GOTaddr2picreg.
5119 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
5121 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5123 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
5124 Condition on TARGET_FLOAT.
5126 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5128 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
5131 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
5133 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
5135 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
5136 aarch64_err_no_fpadvsimd.
5138 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
5139 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
5140 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
5141 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
5142 Turn error into assert, test TARGET_FLOAT.
5143 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
5146 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
5149 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
5151 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
5153 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
5155 2015-06-24 Renlin Li <renlin.li@arm.com>
5157 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
5158 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
5160 2015-06-24 Richard Biener <rguenther@suse.de>
5162 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
5164 (lower_opt_convert): Support lowering of conditional view_convert.
5165 (parser::parse_operation): Likewise.
5166 (parser::parse_for): Likewise.
5168 2015-06-24 Renlin Li <renlin.li@arm.com>
5170 * varasm.c (emit_local): Use unsigned int for align variable.
5172 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5175 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
5176 for negative numbers.
5178 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5180 PR rtl-optimization/66306
5181 * reload.c (find_reloads): Swap the match_dup info for
5182 commutative operands.
5184 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5186 * config/s390/vx-builtins.md
5187 ("vec_scatter_element<mode>_<non_vec_int>")
5188 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
5189 attribute with bhfgq.
5191 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5193 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
5195 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5197 * config/s390/s390-builtin-types.def: Add flag to indicate the
5198 options under which the function type is needed.
5199 * config/s390/s390-builtins.def: Add flag to indicate the options
5200 under which the builtin is enabled.
5201 * config/s390/s390-builtins.h: Add flags parameter to macro
5203 (bflags_for_builtin): New function.
5204 (flags_for_builtin): Renamed to ...
5205 (opflags_for_builtin): ... this.
5206 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
5207 flags_for_builtin to bflags_for_builtin and
5208 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
5209 * config/s390/s390.c: Add initialization of bflags_builtin and
5210 opflags_builtin arrays.
5211 Remove code for flags_builtin.
5212 (s390_init_builtins): Only create builtin function types if one of
5213 their flags is active.
5214 Only create builtins if all of their flags are active.
5215 (s390_expand_builtin): Rename flags_for_builtin to
5216 opflags_for_builtin.
5218 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5220 * config/s390/vecintrin.h: Remove internal builtins.
5222 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5224 * config/s390/s390.c (s390_secondary_reload): Fix check for
5225 GENERAL_REGS register class.
5227 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5229 * config/s390/s390.c (s390_support_vector_misalignment): Call
5230 default implementation for !TARGET_VX.
5232 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5234 * config/s390/s390.c (s390_legitimate_constant_p): Add
5237 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5239 * config/s390/s390.c (s390_vector_abi): New variable definition.
5240 (s390_check_type_for_vector_abi): New function.
5241 (TARGET_ASM_FILE_END): New macro definition.
5242 (s390_asm_file_end): New function.
5243 (s390_function_arg): Call s390_check_type_for_vector_abi.
5244 (s390_gimplify_va_arg): Likewise.
5245 * configure: Regenerate.
5246 * configure.ac: Check for .gnu_attribute Binutils feature.
5248 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
5251 * config/bfin/bfin.c (hwloop_optimize): Initialize
5252 JUMP_LABEL for newly created jump.
5254 2015-06-23 Tristan Gingold <gingold@adacore.com>
5256 * collect-utils.c (collect_wait): Unlink the response file here
5259 (utils_cleanup): ...and here.
5261 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
5263 * df-scan.c: Don't include target-def.h.
5264 * targhooks.c: Likewise.
5265 * config/arm/arm-c.c: Likewise.
5266 * config/i386/i386-c.c: Likewise.
5267 * config/nds32/nds32-cost.c: Likewise.
5268 * config/nds32/nds32-fp-as-gp.c: Likewise.
5269 * config/nds32/nds32-intrinsic.c: Likewise.
5270 * config/nds32/nds32-isr.c: Likewise.
5271 * config/nds32/nds32-md-auxiliary.c: Likewise.
5272 * config/nds32/nds32-memory-manipulation.c: Likewise.
5273 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5274 * config/nds32/nds32-predicates.c: Likewise.
5276 2015-06-23 Richard Biener <rguenther@suse.de>
5278 PR tree-optimization/66636
5279 * tree-vect-stmts.c (vectorizable_store): Properly compute the
5280 def type for further defs for strided stores.
5282 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
5284 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
5285 conditional selects.
5286 (setcc_int<mode>, setcc_float<mode>): Reformat.
5288 2015-06-23 Marek Polacek <polacek@redhat.com>
5290 * match.pd ((x + y) - (x | y) -> x & y,
5291 (x + y) - (x & y) -> x | y): New patterns.
5293 2015-06-23 Ludovic Courtès <ludo@gnu.org>
5296 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
5297 '-dynamic-linker' within %{!shared: ...}.
5299 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
5302 * config/i386/predicates.md (addsub_vm_operator): New predicate.
5303 (addsub_vs_operator): Ditto.
5304 (addsub_vs_parallel): Ditto.
5305 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
5306 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
5307 Put minus RTX before plus and adjust vec_merge selector.
5308 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
5309 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
5310 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
5311 (addsub vec_merge splitters): New combiner splitters.
5312 (addsub vec_select/vec_concat splitters): Ditto.
5314 2015-06-23 Bin Cheng <bin.cheng@arm.com>
5316 PR tree-optimization/66449
5317 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
5318 POINTER_PLUS_EXPR for pointers.
5320 2015-06-23 Alan Modra <amodra@gmail.com>
5322 * rtlanal.c (commutative_operand_precedence): Correct comments.
5323 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
5324 declaration. Return an int. Distinguish REG,REG return from
5326 (struct simplify_plus_minus_op_data): Make local to function.
5327 (simplify_plus_minus): Don't set canonicalized if merely sorting
5328 registers. Avoid packing ops if nothing changes. White space fixes.
5330 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
5332 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
5333 -fdump-ada-spec is passed but not if -fsyntax-only is.
5335 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
5338 * lra-lives.c (process_bb_lives): Check insn copying the same
5339 reload pseudo and don't create a copy for it.
5341 2015-06-22 Tom de Vries <tom@codesourcery.com>
5343 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
5346 2015-06-22 Tom de Vries <tom@codesourcery.com>
5348 * builtins.def (DEF_GOMP_BUILTIN): Test
5349 'flag_tree_parallelize_loops > 1' instead of
5350 'flag_tree_parallelize_loops'. Test flag_cilkplus.
5352 2015-06-22 Tom de Vries <tom@codesourcery.com>
5354 * dominance.c (calculate_dominance_info): Verify dominators if
5357 2015-06-22 Marek Polacek <polacek@redhat.com>
5359 * match.pd ((x ^ y) ^ (x | y) -> x & y,
5360 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
5361 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
5362 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
5364 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
5367 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
5368 cost of embedded comparison.
5370 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5373 * config/rs6000/predicates.md (altivec_register_operand): Permit
5374 virtual stack registers.
5375 (vsx_register_operand): Likewise.
5376 (vfloat_operand): Likewise.
5377 (vint_operand): Likewise.
5378 (vlogical_operand): Likewise.
5380 2015-06-22 Richard Biener <rguenther@suse.de>
5382 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
5383 and single_scalar_iteration_cost members.
5384 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
5385 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
5386 (vect_get_single_scalar_iteration_cost): Remove.
5387 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5388 Use LOOP_VINFO_SCALAR_ITERATION_COST.
5389 * tree-vect-loop.c (destroy_loop_vec_info): Free
5391 (vect_get_single_scalar_iteration_cost): Compute result into
5392 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
5393 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
5394 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
5395 (vect_estimate_min_profitable_iters): Use them.
5397 2015-06-22 Christian Bruel <christian.bruel@st.com>
5400 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
5401 (TARGET_INSERT_ATTRIBUTES): Define.
5402 (thumb_flipper): New var.
5403 * config/arm/arm.opt (-mflip-thumb): New switch.
5405 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5406 Martin Liska <mliska@suse.cz>
5409 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
5410 construction of arg_types.
5411 (sem_function::sem_function): Likewise.
5412 (sem_function::~sem_function): Remove destruction of arg_types.
5413 (sem_function::compatible_parm_types_p): New function.
5414 (sem_function::equals_wpa): Reorg matching of return values
5415 and parameter types.
5416 (sem_function::equals_private): Reorg mathcing of argument types.
5417 (sem_function::parse_tree_args): Remove.
5418 * ipa-icf.h (init_wpa): Do not call it.
5419 (parse_tree_args): Remove.
5420 (compatible_parm_types_p): Declare.
5421 (result_type): Remove.
5422 (arg_types): Remove.
5424 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
5427 * ipa-polymorphic-call.c
5428 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
5429 initializing alias oracle; fix formating; set base_alias_set if it
5432 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
5434 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
5435 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
5436 (find_inc): Likewise.
5437 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
5439 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5440 * df-scan.c (df_swap_refs): Remove.
5441 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
5442 * dominance.c (link_roots): Use std::swap instead of manually swapping.
5443 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
5444 * fold-const.c (fold_relational_const): Likewise.
5445 * genattrtab.c (simplify_test_exp): Likewise.
5446 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
5447 gimple_simplify): Likewise.
5448 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
5449 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
5450 * ipa-devirt.c (add_type_duplicate): Likewise.
5451 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
5452 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
5453 * lra.c (lra_create_copy): Likewise.
5454 * lto-streamer-out.c (DFS::DFS): Likewise.
5455 * modulo-sched.c (get_sched_window): Likewise.
5456 * omega.c (omega_pretty_print_problem): Likewise.
5457 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
5458 * reload1.c (reloads_unique_chain_p): Likewise.
5459 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
5460 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
5462 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
5464 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
5465 predicate_mem_writes): Likewise.
5466 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
5467 * tree-predcom.c (combine_chains): Likewise.
5468 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
5469 refs_may_alias_p_1): Likewise.
5470 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
5471 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
5472 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
5473 number_of_iterations_cond): Likewise.
5474 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
5475 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5476 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5477 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5478 * tree-vrp.c (extract_range_from_binary_expr_1,
5479 extract_range_from_unary_expr_1): Likewise.
5481 2015-06-20 Marek Polacek <polacek@redhat.com>
5483 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
5485 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
5488 * config/sh/sh.c (prepare_move_operands): Replace subreg
5489 index term with R0 for base and index addressing.
5491 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
5493 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
5495 (movsf_aarch64): Change condition from register_operand to
5496 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
5497 load1. Change type for alternative 7 to store1.
5498 (movdf_aarch64): Likewise.
5500 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
5502 * config/vax/vax.md: Adjust sign/zero extend patterns to
5503 handle SUBREGs in operands[1].
5505 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5507 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
5508 of manually swapping.
5509 (expand_vec_perm_interleave2): Likewise.
5511 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
5513 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
5514 reuse bounds created for abnormal ssa names.
5516 2015-06-19 Jakub Jelinek <jakub@redhat.com>
5518 * config/nvptx/nvptx.md (allocate_stack): Rename to...
5519 (allocate_stack_<mode>): ... this, and add :P on both
5520 match_operand and unspec.
5521 (allocate_stack): New expander.
5523 2015-06-19 Christian Bruel <christian.bruel@st.com>
5527 * config/arm/arm.c (arm_set_current_function): Handle
5528 explicit default options.
5530 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5532 * config/i386/i386.md (*movsicc_noc_zext): New insn.
5533 (zero-extended cmove with mem peephole2): New pattern.
5534 (cmove with mem peephole2): Merge patterns.
5536 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
5538 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
5540 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
5542 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
5543 * config/mips/mips.md (*madd4<mode>): Ditto.
5544 (*nmadd3<mode>) Ditto.
5545 (*nmadd4<mode>_fastmath): Ditto.
5546 (*nmadd3<mode>_fastmath): Ditto.
5547 (*nmsub4<mode>): Ditto.
5548 (*nmsub3<mode>): Ditto.
5549 (*nmsub4<mode>_fastmath): Ditto.
5550 (*nmsub3<mode>_fastmath): Ditto.
5552 2015-06-18 Michael Matz <matz@suse.de>
5555 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
5556 grouped strided stores.
5557 (vectorizable_load): Don't use the DR from first_stmt in
5558 the non-SLP grouped strided case.
5560 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5563 * function.c (assign_bounds): Add arguments assign_regs,
5564 assign_special, assign_bt.
5565 (assign_parms): For vararg functions handle bounds in BT
5566 and special slots after incoming vararg bounds.
5568 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5571 * cfgexpand.c (expand_return): Handle missing bounds.
5572 (expand_gimple_stmt_1): Likewise.
5573 * tree-chkp.c (chkp_expand_zero_bounds): New.
5574 * tree-chkp.h (chkp_expand_zero_bounds): New.
5576 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5579 * ipa-chkp.c (chkp_maybe_create_clone): Require
5580 functions to be instrumentable.
5581 * tree-chkp.c (chkp_replace_function_pointer): Use
5582 chkp_instrumentable_p instead of attribute check.
5584 2015-06-18 Richard Biener <rguenther@suse.de>
5586 PR tree-optimization/66510
5587 * tree-vect-stmts.c (vectorizable_load): Properly compute the
5588 number of vector loads for SLP permuted loads.
5589 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
5590 check the stride for loop vectorization.
5591 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
5592 vectorization factor.
5593 (vect_analyze_group_access): If the group size is not a power
5594 of two require a epilogue loop.
5595 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
5596 compute and optimizing and alias test pruning after final
5597 vectorization factor computation.
5598 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
5600 (vect_transform_slp_perm_load): Properly compute the original
5601 number of vector load stmts.
5603 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
5605 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
5606 "unlikely character , in @var" warning.
5608 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
5610 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
5611 (ix86_function_arg_advance): Ditto.
5612 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
5614 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5616 * function.h (struct rtl_data): Remove struct and accessor macros.
5617 * emit-rtl.h (struct rtl_data): Relocate to here.
5618 * Makefile.in (GTFILES): Add emit-rtl.h.
5619 * df-core.c: Include emit-rtl.h.
5620 * genattrtab.c: Likewise.
5621 * genconditions.c: Likewise.
5622 * genpreds.c: Likewise.
5623 * genrecog.c: Likewise.
5624 * regcprop.c: Likewise.
5625 * resource.c: Likewise.
5626 * sched-rgn.c: Likewise.
5627 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5628 * config/i386/winnt.c: Likewise.
5630 2015-06-17 Jakub Jelinek <jakub@redhat.com>
5633 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
5634 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
5635 and has_force_vectorize_loops flags from cfun into
5637 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
5638 if simduid is non-NULL.
5639 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
5640 * passes.def (pass_simduid_cleanup): Add new pass after loop
5642 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
5643 indirection from htab argument's type.
5644 (shrink_simd_arrays): New function.
5645 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
5646 Don't call adjust_simduid_builtins if there are no loops.
5647 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
5648 (pass_simduid_cleanup::execute): New method.
5649 (make_pass_simduid_cleanup): New function.
5651 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
5653 * tree-core.h (tree_target_option): Make opts field a pointer to a
5654 cl_target_option instead of an instance of the struct.
5655 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
5657 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
5659 (copy_node_stat): Allocate and copy struct cl_target_option.
5661 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5663 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
5664 Remove conditional exposure of prototypes.
5665 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
5666 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
5667 definitions in tree.h with functions.
5668 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
5670 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
5672 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
5674 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
5675 (*cmp<mode>_signed): ... this.
5676 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
5677 (*cmp<mode>_unsigned): ... this. Remove %b.
5679 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
5681 * coretypes.h: Include input.h and as-a.h.
5682 * rtl.h: Include input.h and as-a.h for generator files.
5683 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
5684 * vec.c: Don't include diagnostic-core.h.
5685 * alias.c: Do not include input.h, line-map.h or is-a.h.
5687 * attribs.c: Likewise.
5688 * auto-inc-dec.c: Likewise.
5689 * auto-profile.c: Likewise.
5690 * bb-reorder.c: Likewise.
5691 * bt-load.c: Likewise.
5692 * builtins.c: Likewise.
5693 * caller-save.c: Likewise.
5694 * calls.c: Likewise.
5697 * cfganal.c: Likewise.
5698 * cfgbuild.c: Likewise.
5699 * cfgcleanup.c: Likewise.
5700 * cfgexpand.c: Likewise.
5701 * cfghooks.c: Likewise.
5702 * cfgloop.c: Likewise.
5703 * cfgloop.h: Likewise.
5704 * cfgloopanal.c: Likewise.
5705 * cfgloopmanip.c: Likewise.
5706 * cfgrtl.c: Likewise.
5707 * cgraph.c: Likewise.
5708 * cgraphbuild.c: Likewise.
5709 * cgraphclones.c: Likewise.
5710 * cgraphunit.c: Likewise.
5711 * cilk-common.c: Likewise.
5712 * combine-stack-adj.c: Likewise.
5713 * combine.c: Likewise.
5714 * compare-elim.c: Likewise.
5715 * convert.c: Likewise.
5716 * coverage.c: Likewise.
5717 * cppbuiltin.c: Likewise.
5718 * cprop.c: Likewise.
5720 * cselib.c: Likewise.
5721 * data-streamer-in.c: Likewise.
5722 * data-streamer-out.c: Likewise.
5723 * data-streamer.c: Likewise.
5724 * dbxout.c: Likewise.
5727 * debug.c: Likewise.
5728 * df-core.c: Likewise.
5729 * df-problems.c: Likewise.
5730 * df-scan.c: Likewise.
5733 * diagnostic-core.h: Likewise.
5734 * diagnostic.c: Likewise.
5735 * dojump.c: Likewise.
5736 * dominance.c: Likewise.
5737 * domwalk.c: Likewise.
5738 * double-int.c: Likewise.
5740 * dumpfile.c: Likewise.
5741 * dumpfile.h: Likewise.
5742 * dwarf2asm.c: Likewise.
5743 * dwarf2cfi.c: Likewise.
5744 * dwarf2out.c: Likewise.
5745 * emit-rtl.c: Likewise.
5746 * et-forest.c: Likewise.
5747 * except.c: Likewise.
5748 * explow.c: Likewise.
5749 * expmed.c: Likewise.
5751 * final.c: Likewise.
5752 * fixed-value.c: Likewise.
5753 * fold-const.c: Likewise.
5754 * function.c: Likewise.
5755 * fwprop.c: Likewise.
5756 * gcc-plugin.h: Likewise.
5758 * generic-match-head.c: Likewise.
5759 * ggc-page.c: Likewise.
5760 * gimple-builder.c: Likewise.
5761 * gimple-expr.c: Likewise.
5762 * gimple-fold.c: Likewise.
5763 * gimple-iterator.c: Likewise.
5764 * gimple-low.c: Likewise.
5765 * gimple-match-head.c: Likewise.
5766 * gimple-pretty-print.c: Likewise.
5767 * gimple-ssa-isolate-paths.c: Likewise.
5768 * gimple-ssa-strength-reduction.c: Likewise.
5769 * gimple-streamer-in.c: Likewise.
5770 * gimple-streamer-out.c: Likewise.
5771 * gimple-streamer.h: Likewise.
5772 * gimple-walk.c: Likewise.
5773 * gimple.c: Likewise.
5774 * gimplify-me.c: Likewise.
5775 * gimplify.c: Likewise.
5776 * godump.c: Likewise.
5777 * graph.c: Likewise.
5778 * graphite-blocking.c: Likewise.
5779 * graphite-dependences.c: Likewise.
5780 * graphite-interchange.c: Likewise.
5781 * graphite-isl-ast-to-gimple.c: Likewise.
5782 * graphite-optimize-isl.c: Likewise.
5783 * graphite-poly.c: Likewise.
5784 * graphite-scop-detection.c: Likewise.
5785 * graphite-sese-to-poly.c: Likewise.
5786 * graphite.c: Likewise.
5787 * haifa-sched.c: Likewise.
5788 * hw-doloop.c: Likewise.
5789 * ifcvt.c: Likewise.
5790 * init-regs.c: Likewise.
5791 * input.c: Likewise.
5792 * internal-fn.c: Likewise.
5793 * ipa-chkp.c: Likewise.
5794 * ipa-comdats.c: Likewise.
5795 * ipa-cp.c: Likewise.
5796 * ipa-devirt.c: Likewise.
5797 * ipa-icf-gimple.c: Likewise.
5798 * ipa-icf.c: Likewise.
5799 * ipa-inline-analysis.c: Likewise.
5800 * ipa-inline-transform.c: Likewise.
5801 * ipa-inline.c: Likewise.
5802 * ipa-polymorphic-call.c: Likewise.
5803 * ipa-profile.c: Likewise.
5804 * ipa-prop.c: Likewise.
5805 * ipa-pure-const.c: Likewise.
5806 * ipa-ref.c: Likewise.
5807 * ipa-reference.c: Likewise.
5808 * ipa-split.c: Likewise.
5809 * ipa-utils.c: Likewise.
5810 * ipa-visibility.c: Likewise.
5812 * ira-build.c: Likewise.
5813 * ira-color.c: Likewise.
5814 * ira-conflicts.c: Likewise.
5815 * ira-costs.c: Likewise.
5816 * ira-emit.c: Likewise.
5817 * ira-lives.c: Likewise.
5820 * langhooks.c: Likewise.
5822 * loop-doloop.c: Likewise.
5823 * loop-init.c: Likewise.
5824 * loop-invariant.c: Likewise.
5825 * loop-iv.c: Likewise.
5826 * loop-unroll.c: Likewise.
5827 * lower-subreg.c: Likewise.
5828 * lra-assigns.c: Likewise.
5829 * lra-coalesce.c: Likewise.
5830 * lra-constraints.c: Likewise.
5831 * lra-eliminations.c: Likewise.
5832 * lra-lives.c: Likewise.
5833 * lra-remat.c: Likewise.
5834 * lra-spills.c: Likewise.
5836 * lto-cgraph.c: Likewise.
5837 * lto-compress.c: Likewise.
5838 * lto-opts.c: Likewise.
5839 * lto-section-in.c: Likewise.
5840 * lto-section-out.c: Likewise.
5841 * lto-streamer-in.c: Likewise.
5842 * lto-streamer-out.c: Likewise.
5843 * lto-streamer.c: Likewise.
5845 * mode-switching.c: Likewise.
5846 * modulo-sched.c: Likewise.
5847 * omega.c: Likewise.
5848 * omp-low.c: Likewise.
5849 * optabs.c: Likewise.
5850 * opts-global.c: Likewise.
5852 * passes.c: Likewise.
5853 * plugin.c: Likewise.
5854 * postreload-gcse.c: Likewise.
5855 * postreload.c: Likewise.
5856 * predict.c: Likewise.
5857 * pretty-print.h: Likewise.
5858 * print-rtl.c: Likewise.
5859 * print-tree.c: Likewise.
5860 * profile.c: Likewise.
5862 * realmpfr.c: Likewise.
5863 * recog.c: Likewise.
5865 * reg-stack.c: Likewise.
5866 * regcprop.c: Likewise.
5867 * reginfo.c: Likewise.
5868 * regrename.c: Likewise.
5869 * regstat.c: Likewise.
5870 * reload.c: Likewise.
5871 * reload1.c: Likewise.
5872 * reorg.c: Likewise.
5873 * resource.c: Likewise.
5874 * rtl-chkp.c: Likewise.
5875 * rtl-error.c: Likewise.
5876 * rtlanal.c: Likewise.
5877 * rtlhooks.c: Likewise.
5878 * sanopt.c: Likewise.
5879 * sched-deps.c: Likewise.
5880 * sched-ebb.c: Likewise.
5881 * sched-rgn.c: Likewise.
5882 * sched-vis.c: Likewise.
5883 * sdbout.c: Likewise.
5884 * sel-sched-dump.c: Likewise.
5885 * sel-sched-ir.c: Likewise.
5886 * sel-sched.c: Likewise.
5888 * shrink-wrap.c: Likewise.
5889 * simplify-rtx.c: Likewise.
5890 * stack-ptr-mod.c: Likewise.
5891 * statistics.c: Likewise.
5893 * stor-layout.c: Likewise.
5894 * store-motion.c: Likewise.
5895 * streamer-hooks.c: Likewise.
5896 * stringpool.c: Likewise.
5897 * symtab.c: Likewise.
5898 * target-globals.c: Likewise.
5899 * targhooks.c: Likewise.
5900 * toplev.c: Likewise.
5901 * tracer.c: Likewise.
5902 * trans-mem.c: Likewise.
5903 * tree-affine.c: Likewise.
5904 * tree-browser.c: Likewise.
5905 * tree-call-cdce.c: Likewise.
5906 * tree-cfg.c: Likewise.
5907 * tree-cfgcleanup.c: Likewise.
5908 * tree-chkp-opt.c: Likewise.
5909 * tree-chkp.c: Likewise.
5910 * tree-chrec.c: Likewise.
5911 * tree-complex.c: Likewise.
5912 * tree-data-ref.c: Likewise.
5913 * tree-dfa.c: Likewise.
5914 * tree-diagnostic.c: Likewise.
5915 * tree-dump.c: Likewise.
5916 * tree-eh.c: Likewise.
5917 * tree-emutls.c: Likewise.
5918 * tree-if-conv.c: Likewise.
5919 * tree-inline.c: Likewise.
5920 * tree-into-ssa.c: Likewise.
5921 * tree-iterator.c: Likewise.
5922 * tree-loop-distribution.c: Likewise.
5923 * tree-nested.c: Likewise.
5924 * tree-nrv.c: Likewise.
5925 * tree-object-size.c: Likewise.
5926 * tree-outof-ssa.c: Likewise.
5927 * tree-parloops.c: Likewise.
5928 * tree-phinodes.c: Likewise.
5929 * tree-predcom.c: Likewise.
5930 * tree-pretty-print.c: Likewise.
5931 * tree-profile.c: Likewise.
5932 * tree-scalar-evolution.c: Likewise.
5933 * tree-sra.c: Likewise.
5934 * tree-ssa-address.c: Likewise.
5935 * tree-ssa-alias.c: Likewise.
5936 * tree-ssa-ccp.c: Likewise.
5937 * tree-ssa-coalesce.c: Likewise.
5938 * tree-ssa-copy.c: Likewise.
5939 * tree-ssa-copyrename.c: Likewise.
5940 * tree-ssa-dce.c: Likewise.
5941 * tree-ssa-dom.c: Likewise.
5942 * tree-ssa-dse.c: Likewise.
5943 * tree-ssa-forwprop.c: Likewise.
5944 * tree-ssa-ifcombine.c: Likewise.
5945 * tree-ssa-live.c: Likewise.
5946 * tree-ssa-loop-ch.c: Likewise.
5947 * tree-ssa-loop-im.c: Likewise.
5948 * tree-ssa-loop-ivcanon.c: Likewise.
5949 * tree-ssa-loop-ivopts.c: Likewise.
5950 * tree-ssa-loop-manip.c: Likewise.
5951 * tree-ssa-loop-niter.c: Likewise.
5952 * tree-ssa-loop-prefetch.c: Likewise.
5953 * tree-ssa-loop-unswitch.c: Likewise.
5954 * tree-ssa-loop.c: Likewise.
5955 * tree-ssa-math-opts.c: Likewise.
5956 * tree-ssa-operands.c: Likewise.
5957 * tree-ssa-phiopt.c: Likewise.
5958 * tree-ssa-phiprop.c: Likewise.
5959 * tree-ssa-pre.c: Likewise.
5960 * tree-ssa-propagate.c: Likewise.
5961 * tree-ssa-reassoc.c: Likewise.
5962 * tree-ssa-sccvn.c: Likewise.
5963 * tree-ssa-scopedtables.c: Likewise.
5964 * tree-ssa-sink.c: Likewise.
5965 * tree-ssa-strlen.c: Likewise.
5966 * tree-ssa-structalias.c: Likewise.
5967 * tree-ssa-tail-merge.c: Likewise.
5968 * tree-ssa-ter.c: Likewise.
5969 * tree-ssa-threadedge.c: Likewise.
5970 * tree-ssa-threadupdate.c: Likewise.
5971 * tree-ssa-uncprop.c: Likewise.
5972 * tree-ssa-uninit.c: Likewise.
5973 * tree-ssa.c: Likewise.
5974 * tree-ssanames.c: Likewise.
5975 * tree-stdarg.c: Likewise.
5976 * tree-streamer-in.c: Likewise.
5977 * tree-streamer-out.c: Likewise.
5978 * tree-streamer.c: Likewise.
5979 * tree-switch-conversion.c: Likewise.
5980 * tree-tailcall.c: Likewise.
5981 * tree-vect-data-refs.c: Likewise.
5982 * tree-vect-generic.c: Likewise.
5983 * tree-vect-loop-manip.c: Likewise.
5984 * tree-vect-loop.c: Likewise.
5985 * tree-vect-patterns.c: Likewise.
5986 * tree-vect-slp.c: Likewise.
5987 * tree-vect-stmts.c: Likewise.
5988 * tree-vectorizer.c: Likewise.
5989 * tree-vrp.c: Likewise.
5992 * ubsan.c: Likewise.
5993 * valtrack.c: Likewise.
5994 * value-prof.c: Likewise.
5995 * var-tracking.c: Likewise.
5996 * varasm.c: Likewise.
5997 * varpool.c: Likewise.
5998 * vmsdbgout.c: Likewise.
5999 * vtable-verify.c: Likewise.
6001 * wide-int.cc: Likewise.
6002 * xcoffout.c: Likewise.
6003 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
6004 * common/common-targhooks.c: Likewise.
6005 * config/aarch64/aarch64-builtins.c: Likewise.
6006 * config/aarch64/aarch64.c: Likewise.
6007 * config/alpha/alpha.c: Likewise.
6008 * config/arc/arc.c: Likewise.
6009 * config/arm/aarch-common.c: Likewise.
6010 * config/arm/arm-builtins.c: Likewise.
6011 * config/arm/arm-c.c: Likewise.
6012 * config/arm/arm.c: Likewise.
6013 * config/avr/avr-c.c: Likewise.
6014 * config/avr/avr-log.c: Likewise.
6015 * config/avr/avr.c: Likewise.
6016 * config/bfin/bfin.c: Likewise.
6017 * config/c6x/c6x.c: Likewise.
6018 * config/cr16/cr16.c: Likewise.
6019 * config/cris/cris.c: Likewise.
6020 * config/darwin-c.c: Likewise.
6021 * config/darwin.c: Likewise.
6022 * config/default-c.c: Likewise.
6023 * config/epiphany/epiphany.c: Likewise.
6024 * config/epiphany/mode-switch-use.c: Likewise.
6025 * config/epiphany/resolve-sw-modes.c: Likewise.
6026 * config/fr30/fr30.c: Likewise.
6027 * config/frv/frv.c: Likewise.
6028 * config/ft32/ft32.c: Likewise.
6029 * config/glibc-c.c: Likewise.
6030 * config/h8300/h8300.c: Likewise.
6031 * config/i386/i386-c.c: Likewise.
6032 * config/i386/i386.c: Likewise.
6033 * config/i386/msformat-c.c: Likewise.
6034 * config/i386/winnt-cxx.c: Likewise.
6035 * config/i386/winnt-stubs.c: Likewise.
6036 * config/i386/winnt.c: Likewise.
6037 * config/ia64/ia64-c.c: Likewise.
6038 * config/ia64/ia64.c: Likewise.
6039 * config/iq2000/iq2000.c: Likewise.
6040 * config/lm32/lm32.c: Likewise.
6041 * config/m32c/m32c-pragma.c: Likewise.
6042 * config/m32c/m32c.c: Likewise.
6043 * config/m32r/m32r.c: Likewise.
6044 * config/m68k/m68k.c: Likewise.
6045 * config/mcore/mcore.c: Likewise.
6046 * config/mep/mep-pragma.c: Likewise.
6047 * config/mep/mep.c: Likewise.
6048 * config/microblaze/microblaze-c.c: Likewise.
6049 * config/microblaze/microblaze.c: Likewise.
6050 * config/mips/mips.c: Likewise.
6051 * config/mmix/mmix.c: Likewise.
6052 * config/mn10300/mn10300.c: Likewise.
6053 * config/moxie/moxie.c: Likewise.
6054 * config/msp430/msp430-c.c: Likewise.
6055 * config/msp430/msp430.c: Likewise.
6056 * config/nds32/nds32-cost.c: Likewise.
6057 * config/nds32/nds32-fp-as-gp.c: Likewise.
6058 * config/nds32/nds32-intrinsic.c: Likewise.
6059 * config/nds32/nds32-isr.c: Likewise.
6060 * config/nds32/nds32-md-auxiliary.c: Likewise.
6061 * config/nds32/nds32-memory-manipulation.c: Likewise.
6062 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6063 * config/nds32/nds32-predicates.c: Likewise.
6064 * config/nds32/nds32.c: Likewise.
6065 * config/nios2/nios2.c: Likewise.
6066 * config/nvptx/nvptx.c: Likewise.
6067 * config/pa/pa.c: Likewise.
6068 * config/pdp11/pdp11.c: Likewise.
6069 * config/rl78/rl78-c.c: Likewise.
6070 * config/rl78/rl78.c: Likewise.
6071 * config/rs6000/rs6000-c.c: Likewise.
6072 * config/rs6000/rs6000.c: Likewise.
6073 * config/rx/rx.c: Likewise.
6074 * config/s390/s390-c.c: Likewise.
6075 * config/s390/s390.c: Likewise.
6076 * config/sh/sh-c.c: Likewise.
6077 * config/sh/sh-mem.cc: Likewise.
6078 * config/sh/sh.c: Likewise.
6079 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6080 * config/sh/sh_treg_combine.cc: Likewise.
6081 * config/sol2-c.c: Likewise.
6082 * config/sol2-cxx.c: Likewise.
6083 * config/sol2-stubs.c: Likewise.
6084 * config/sol2.c: Likewise.
6085 * config/sparc/sparc-c.c: Likewise.
6086 * config/sparc/sparc.c: Likewise.
6087 * config/spu/spu-c.c: Likewise.
6088 * config/spu/spu.c: Likewise.
6089 * config/stormy16/stormy16.c: Likewise.
6090 * config/tilegx/mul-tables.c: Likewise.
6091 * config/tilegx/tilegx-c.c: Likewise.
6092 * config/tilegx/tilegx.c: Likewise.
6093 * config/tilepro/mul-tables.c: Likewise.
6094 * config/tilepro/tilepro-c.c: Likewise.
6095 * config/tilepro/tilepro.c: Likewise.
6096 * config/v850/v850-c.c: Likewise.
6097 * config/v850/v850.c: Likewise.
6098 * config/vax/vax.c: Likewise.
6099 * config/visium/visium.c: Likewise.
6100 * config/vms/vms-c.c: Likewise.
6101 * config/vms/vms.c: Likewise.
6102 * config/vxworks.c: Likewise.
6103 * config/winnt-c.c: Likewise.
6104 * config/xtensa/xtensa.c: Likewise.
6106 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
6108 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
6110 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
6112 2015-06-17 Richard Biener <rguenther@suse.de>
6114 PR tree-optimization/66251
6115 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
6116 stmts for SLP strided stores.
6119 2015-05-22 Richard Biener <rguenther@suse.de>
6121 PR tree-optimization/66251
6122 * tree-vect-stmts.c (vectorizable_conversion): Properly
6123 set STMT_VINFO_VEC_STMT even for the SLP case.
6125 2015-05-26 Michael Matz <matz@suse.de>
6128 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
6129 STMT_VINFO_VEC_STMT, also with SLP.
6131 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
6134 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
6135 (*avx_addsubv4df3_1s): Ditto.
6136 (*sse3_addsubv2df3_1): Ditto.
6137 (*sse3_addsubv2df3_1s): Ditto.
6138 (*avx_addsubv8sf3_1): Ditto.
6139 (*avx_addsubv8sf3_1s): Ditto.
6140 (*sse3_addsubv4sf3_1): Ditto.
6141 (*sse3_addsubv4sf3_1s): Ditto.
6143 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
6145 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
6146 (SYSROOT_SUFFIX_SPEC): Update.
6147 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
6148 (STARTFILE_PREFIX_SPEC): Update.
6149 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
6150 (MULTILIB_REQUIRED): New.
6151 (MULTILIB_OSDIRNAMES): New.
6152 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
6153 (MULTILIB_REQUIRED): New.
6154 (MULTILIB_OSDIRNAMES): New.
6156 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
6158 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
6159 * config/aarch64/aarch64-options-extensions.def: Update "fP",
6160 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
6161 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
6162 (AARCH64_FL_PAN): New.
6163 (AARCH64_FL_LOR): New.
6164 (AARCH64_FL_RDMA): New.
6165 (AARCH64_FL_FOR_ARCH8_1): New.
6166 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
6167 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
6169 2015-06-16 Martin Liska <mliska@suse.cz>
6171 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
6172 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
6175 2015-06-16 Richard Biener <rguenther@suse.de>
6177 * tree-vect-stmts.c (vectorizable_store): Adjust.
6178 (vectorizable_load): Likewise.
6179 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6181 (vect_create_data_ref_ptr): Likewise.
6182 (bump_vector_ptr): Adjust.
6184 2015-06-16 Richard Biener <rguenther@suse.de>
6186 * tree-vect-stmts.c (vectorizable_load): Properly start loads
6187 with the first element if this is grouped loads.
6189 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
6191 * config/arm/arm-protos.h (struct tune_params): Rename
6192 log_op_non_sc to log_op_non_short_circuit, and rename enum
6193 values to expand SC to SHORT_CIRCUIT.
6194 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
6195 to LOG_OP_NON_SHORT_CIRCUIT.
6196 (arm_fastmul_tune):Likewise
6197 (arm_strongarm_tune): Likewise.
6198 (arm_xscale_tune): Likewise.
6199 (arm_9e_tune): Likewise.
6200 (arm_marvell_pj4_tune): Likewise.
6201 (arm_v6t2_tune): Likewise.
6202 (arm_cortex_tune): Likewise.
6203 (arm_cortex_a8_tune): Likewise.
6204 (arm_cortex_a7_tune): Likewise.
6205 (arm_cortex_a15_tune): Likewise.
6206 (arm_cortex_a53_tune): Likewise.
6207 (arm_cortex_a57_tune): Likewise.
6208 (arm_xgene1_tune): Likewise.
6209 (arm_cortex_a5_tune): Likewise.
6210 (arm_cortex_a9_tune): Likewise.
6211 (arm_cortex_a12_tune): Likewise.
6212 (arm_v7m_tune): Likewise.
6213 (arm_cortex_m7_tune): Likewise.
6214 (arm_v6m_tune): Likewise.
6215 (arm_fa726te_tune): Likewise.
6217 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
6219 * altivec.md: Delete UNSPEC_VMLADDUHM.
6220 (mulv4si3_p8): New pattern.
6221 (mulv4si3): Use it for POWER8.
6222 (mulv8hi3): Use vmladduhm with zero addend.
6223 (altivec_vmladduhm): Descriptive RTL.
6225 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
6227 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
6228 to use neon_move instead of mov_imm.
6229 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
6230 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
6232 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
6233 aarch64_float_const_zero_rtx_p check before TFmode check.
6234 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
6236 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
6237 code and attributes to match. Change condition from register_operand
6238 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
6239 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
6242 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
6245 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
6248 2015-06-14 Shiva Chen <shiva0217@gmail.com>
6250 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
6251 HOST_WIDE_INT parameter.
6253 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
6256 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
6257 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
6259 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6261 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
6263 * rtl.h (classify_insn): Declare.
6264 * emit-rtl.c (classify_insn): Move to...
6265 * rtl.c: ...here and add generator support.
6266 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
6267 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
6268 * genemit.c (gen_emit_seq): New function.
6269 (gen_expand, gen_split): Use it.
6271 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
6273 * tree.c (make_vector_stat): Fix comment to state that the
6274 function returns a VECTOR_CST.
6276 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
6278 * gensupport.h (add_implicit_parallel): Declare.
6279 * genrecog.c (add_implicit_parallel): Move to...
6280 * gensupport.c (add_implicit_parallel): ...here.
6281 (process_one_cond_exec): Use it.
6282 * genemit.c (gen_insn): Likewise.
6284 2015-06-13 Iain Sandoe <iain@codesourcery.com>
6287 * passes.c (rest_of_decl_compilation): Do not register globals for
6288 early debug if they are declared in built-ins.
6290 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
6292 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
6294 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6296 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
6298 (noce_try_cmove_arith): Likewise.
6299 (noce_get_alt_condition): Likewise.
6301 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6303 * common/config/i386/i386-common.c
6304 (OPTION_MASK_ISA_MWAITX_SET): New.
6305 (ix86_handle_option): Handle mwaitx.
6306 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
6307 (x86_64-*-*): Likewise.
6308 * config/i386/mwaitxintrin.h: New header.
6309 * config/i386/cpuid.h (bit_MWAITX): Define.
6310 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6312 * config/i386/i386.opt (mwaitx): New.
6313 * config/i386/i386-builtin-types.def
6314 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
6315 * config/i386/i386-c.c: Define __MWAITX__ if needed.
6316 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
6318 (ix86_option_override_internal): Handle new option.
6319 (processor_alias_table): Added PTA_MWAITX.
6320 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
6321 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
6322 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
6323 IX86_BUILTIN_MONITORX built-ins.
6324 * config/i386/i386.h (TARGET_MWAITX): New.
6325 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
6327 (mwaitx): New pattern.
6328 (monitorx_<mode>): New pattern.
6329 * config/i386/x86intrin.h: Include mwaitxintrin.h.
6330 * doc/extend.texi: Document monitorx and mwaitx builtins.
6331 * doc/invoke.texi: Document -mmwaitx option.
6333 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
6335 * emit-rtl.c (need_atomic_barrier_p): Mask model with
6336 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
6338 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6340 * dbxout.c (xcoff_debug_hooks): Provide a function for
6341 register_main_translation_unit hook.
6343 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
6345 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
6346 variants cases from switch.
6347 (rs6000_post_atomic_barrier): Same.
6348 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
6349 (rs6000_expand_atomic_exchange): Same.
6350 (rs6000_expand_atomic_op): Same.
6351 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
6352 SYNC variants cases from switch.
6353 (atomic_load): Same.
6354 (atomic_store): Same.
6356 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
6358 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
6361 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
6364 * dwarf2out.c (check_die): Check for common duplicate attributes.
6365 (add_location_or_const_value_attribute): Do not add duplicate
6367 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
6369 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
6370 (gen_type_die_with_usage): Call check_die.
6371 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
6373 2015-06-11 Jason Merrill <jason@redhat.com>
6375 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
6378 2015-06-11 Marek Polacek <polacek@redhat.com>
6380 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
6382 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
6385 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
6386 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
6387 (*addx_extend_sp32): Fix pasto.
6388 (*subx_extend): Rename into...
6389 (*subx_extend_sp32): ...this.
6390 (*adddi3_extend_sp32): Add earlyclobber.
6391 (*subdi3_insn_sp32): Likewise.
6392 (*subdi3_extend_sp32): Likewise.
6393 (*and_not_di_sp32): Likewise.
6394 (*or_not_di_sp32): Likewise.
6395 (*xor_not_di_sp32): Likewise.
6396 (*negdi2_sp32): Likewise.
6397 (*one_cmpldi2_sp32): Likewise.
6399 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
6401 * debug.h (struct gcc_debug_hooks): Add a
6402 register_main_translation_unit hook.
6403 * debug.c (do_nothing_debug_hooks): Provide a function for this
6405 * dbxout.c (dbx_debug_hooks): Likewise.
6406 * sdbout.c (sdb_debug_hooks): Likewise.
6407 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6408 * dwarf2out.c (main_translation_unit): New global variable.
6409 (dwarf2out_register_main_translation_unit): New function
6410 implementing the new hook.
6411 (dwarf2_debug_hooks): Assign
6412 dwarf2out_register_main_translation_unit to this new hook.
6413 (dwarf2out_init): Associate any main translation unit to
6416 2015-06-11 Marek Polacek <polacek@redhat.com>
6418 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
6420 2015-06-11 Marek Polacek <polacek@redhat.com>
6422 * match.pd: Use single_use throughout.
6424 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6426 * config/arm/arm.c (arm_option_params_internal): When optimising
6427 for speed set max_insns_skipped when arm_restrict_it.
6429 2015-06-11 Christian Bruel <christian.bruel@st.com>
6432 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
6434 (arm_cpu_builtins): New function.
6435 (arm_pragma_target_parse): Call arm_cpu_builtins.
6436 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
6437 (arm_register_target_pragmas): Likewise.
6438 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
6439 Call arm_register_target_pragmas.
6440 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
6441 (arm_pragma_target_parse): Likewise.
6443 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
6445 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
6446 of the second operand.
6448 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
6451 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
6452 to prepare mask operand for AVX512 modes.
6454 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6457 * doc/md.texi (Machine Constraints): Document that on the PowerPC
6458 if you use a constraint that targets a VSX register, you must use
6459 %x<n> in the template.
6461 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
6463 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
6464 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
6465 (define_insn "trap"): New definition.
6467 2015-06-10 Richard Biener <rguenther@suse.de>
6469 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
6471 (vect_supported_load_permutation_p): ... here. Handle
6472 supportable permutations in reductions.
6473 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
6474 for vectorizing strided group loads.
6476 2015-06-10 Jakub Jelinek <jakub@redhat.com>
6479 * config/i386/i386.c (ix86_split_long_move): For collisions
6480 involving direct tls segment refs, move the UNSPEC_TP possibly
6481 wrapped in ZERO_EXTEND out of the address for lea, to each of
6484 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6486 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
6487 dmb sy. Adjust tabs.
6489 2015-06-10 Tom de Vries <tom@codesourcery.com>
6491 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
6493 2015-06-10 Martin Liska <mliska@suse.cz>
6496 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
6497 all enum values in mem_alloc_origin.
6498 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
6500 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
6501 * bitmap.c (bitmap_register): Likewise.
6502 (dump_bitmap_statistics): Likewise.
6503 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6504 (ggc_record_overhead): Likewise.
6505 * hash-map.h: Likewise.
6506 * hash-set.h: Likewise.
6507 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
6508 * hash-table.h: Likewise.
6509 * vec.c (vec_prefix::register_overhead): Likewise.
6510 (vec_prefix::release_overhead): Likewise.
6511 (dump_vec_loc_statistics): Likewise.
6513 2015-06-09 Christian Bruel <christian.bruel@st.com>
6516 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
6517 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
6518 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
6519 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
6520 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
6521 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
6522 (arm_valid_target_attribute_p): Likewise.
6523 (arm_set_current_function, arm_can_inline_p): Likewise.
6524 (arm_valid_target_attribute_rec): Likewise.
6525 (arm_previous_fndecl): New variable.
6526 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6527 (TARGET_CAN_INLINE_P): Define.
6528 (arm_asm_trampoline_template): Emit mode.
6529 (arm_file_start): Don't set unified syntax.
6530 (arm_declare_function_name): Set unified syntax and mode.
6531 (arm_option_override): Init target_option_default_node.
6532 and target_option_current_node.
6533 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
6534 (*call_symbol): Likewise.
6535 * doc/extend.texi: Document ARM/Thumb target attribute.
6536 * doc/invoke.texi: Likewise.
6538 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6541 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6542 PR rtl-optimization/64164
6543 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6544 * tree-ssa-copyrename.c: Removed.
6545 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6546 -ftree-coalesce-vars.
6547 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6548 * common.opt (ftree-copyrename): Ignore.
6549 (ftree-coalesce-inlined-vars): Likewise.
6550 * doc/invoke.texi: Remove the ignored options above.
6551 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6552 * tree-ssa-coalesce.h: ... here.
6553 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6554 headers required by it.
6555 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6556 across variables when flag_tree_coalesce_vars. Check register
6557 use and promoted modes to allow coalescing. Moved to
6558 tree-ssa-coalesce.c.
6559 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6560 with its member functions to tree-ssa-coalesce.c.
6561 (var_map_base_init): Likewise. Renamed to
6562 compute_samebase_partition_bases.
6563 (partition_view_normal): Drop want_bases parameter.
6564 (partition_view_bitmap): Likewise.
6565 * tree-ssa-live.h: Adjust declarations.
6566 * tree-ssa-coalesce.c: Include explow.h.
6567 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6568 default defs at the entry point.
6569 (dump_part_var_map): New.
6570 (compute_optimized_partition_bases): New, called by...
6571 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6572 of compute_samebase_partition_bases. Adjust.
6573 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6574 * cfgexpand.c (leader_merge): New.
6575 (get_rtl_for_parm_ssa_default_def): New.
6576 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6577 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6578 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6579 redundant MEM attr setting.
6580 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6582 (expand_one_stack_var): ... this. New wrapper to check and
6583 skip already expanded SSA partitions.
6584 (record_alignment_for_reg_var): New, factored out of...
6585 (expand_one_var): ... this.
6586 (expand_one_ssa_partition): New.
6587 (adjust_one_expanded_partition_var): New.
6588 (expand_one_register_var): Check and skip already expanded SSA
6590 (expand_used_vars): Don't create DECLs for anonymous SSA
6591 names. Expand all SSA partitions, then adjust all SSA names.
6592 (pass::execute): Replace the loops that set
6593 SA.partition_to_pseudo from partition leaders and cleared
6594 DECL_RTL for multi-location variables, and that which used to
6595 rename vars and set attrs, with one that clears DECL_RTL and
6596 checks that PARMs and RESULTs default_defs match DECL_RTL.
6597 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6598 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6599 * explow.c (promote_ssa_mode): New.
6600 * explow.h (promote_ssa_mode): Declare.
6601 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6602 * function.c: Include cfgexpand.h.
6603 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6604 (use_register_for_parm_decl): Wrapper for the above to
6605 special-case the result_ptr.
6606 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6607 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6609 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6610 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6611 (assign_parm_setup_block): Prefer SSA-assigned location.
6612 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6613 if stack_parm is NULL.
6614 (assign_parm_setup_stack): Prefer SSA-assigned location.
6615 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6616 rtl before testing for pointer bounds. Special-case result_ptr.
6617 (expand_function_start): Maybe reset DECL_RTL of result.
6618 Prefer SSA-assigned location for result and static chain.
6619 Factor out DECL_RESULT and SET_DECL_RTL.
6620 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6621 anonymous SSA names. Use promote_ssa_mode.
6622 (get_temp_reg): Likewise.
6623 (remove_ssa_form): Adjust.
6624 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6625 and get its reg_usage for reg invalidation.
6626 (compute_bb_dataflow): Pass it insn.
6627 (emit_notes_in_bb): Likewise.
6628 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6629 fail assert on conversion between unsigned types.
6631 2015-06-09 Tom de Vries <tom@codesourcery.com>
6633 PR tree-optimization/65460
6634 * omp-low.c (expand_omp_target): Set parallelized_function on
6635 cgraph_node for child_fn.
6637 2015-06-09 Tom de Vries <tom@codesourcery.com>
6639 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
6640 parallelized_function before add_new_function.
6642 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
6644 * gcc-plugin.h: Move decls to plugin.h and include it.
6645 * plugin.h: Relocate decls from gcc-plugin.h
6646 * ggc-page.c: Include required header files.
6647 * passes.c: Likewise.
6648 * cgraphunit.c: Likewise.
6650 2015-06-09 Tom de Vries <tom@codesourcery.com>
6652 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
6654 2015-06-09 Jason Merrill <jason@redhat.com>
6657 * toplev.c (check_global_declaration): Don't warn about a clone.
6659 2015-06-09 Marek Polacek <polacek@redhat.com>
6661 PR tree-optimization/66299
6662 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
6663 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
6666 2015-06-09 Richard Biener <rguenther@suse.de>
6668 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
6669 (vect_analyze_slp_instance): Instead do not falsely drop
6672 2015-06-09 Richard Biener <rguenther@suse.de>
6675 * match.pd: Handle A % (unsigned)(1 << B).
6677 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
6679 * varasm.c (output_object_block_htab): Remove.
6680 (output_object_block_compare): New.
6681 (output_object_blocks): Sort named object_blocks before outputting
6684 2015-06-09 Richard Biener <rguenther@suse.de>
6686 PR tree-optimization/66419
6687 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
6688 consider GROUP_GAP when detecting a perfect subchain.
6690 2015-06-09 Nick Clifton <nickc@redhat.com>
6692 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
6693 place read only data in the .frodata section.
6695 2015-06-09 Shiva Chen <shiva0217@gmail.com>
6697 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
6698 (atomic_store<mode>): Likewise.
6700 2015-06-09 Richard Biener <rguenther@suse.de>
6702 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
6704 2015-06-09 Richard Biener <rguenther@suse.de>
6707 * tree-inline.c (insert_init_debug_bind): Unshare value.
6709 2015-06-09 Richard Biener <rguenther@suse.de>
6711 PR tree-optimization/66396
6712 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
6713 Rename virtual operands.
6715 2015-06-09 Tom de Vries <tom@codesourcery.com>
6717 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
6718 always return false.
6720 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6722 PR rtl-optimization/64164
6723 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6724 * tree-ssa-copyrename.c: Removed.
6725 * opts.c (default_options_table): Drop -ftree-copyrename. Add
6726 -ftree-coalesce-vars.
6727 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6728 * common.opt (ftree-copyrename): Ignore.
6729 (ftree-coalesce-inlined-vars): Likewise.
6730 * doc/invoke.texi: Remove the ignored options above.
6731 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6732 * tree-ssa-coalesce.h: ... here.
6733 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6734 headers required by it.
6735 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6736 across variables when flag_tree_coalesce_vars. Check register
6737 use and promoted modes to allow coalescing. Moved to
6738 tree-ssa-coalesce.c.
6739 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6740 with its member functions to tree-ssa-coalesce.c.
6741 (var_map_base_init): Likewise. Renamed to
6742 compute_samebase_partition_bases.
6743 (partition_view_normal): Drop want_bases parameter.
6744 (partition_view_bitmap): Likewise.
6745 * tree-ssa-live.h: Adjust declarations.
6746 * tree-ssa-coalesce.c: Include explow.h.
6747 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6748 default defs at the entry point.
6749 (dump_part_var_map): New.
6750 (compute_optimized_partition_bases): New, called by...
6751 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6752 of compute_samebase_partition_bases. Adjust.
6753 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6754 * cfgexpand.c (leader_merge): New.
6755 (get_rtl_for_parm_ssa_default_def): New.
6756 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6757 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6758 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
6759 redundant MEM attr setting.
6760 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
6762 (expand_one_stack_var): ... this. New wrapper to check and
6763 skip already expanded SSA partitions.
6764 (record_alignment_for_reg_var): New, factored out of...
6765 (expand_one_var): ... this.
6766 (expand_one_ssa_partition): New.
6767 (adjust_one_expanded_partition_var): New.
6768 (expand_one_register_var): Check and skip already expanded SSA
6770 (expand_used_vars): Don't create DECLs for anonymous SSA
6771 names. Expand all SSA partitions, then adjust all SSA names.
6772 (pass::execute): Replace the loops that set
6773 SA.partition_to_pseudo from partition leaders and cleared
6774 DECL_RTL for multi-location variables, and that which used to
6775 rename vars and set attrs, with one that clears DECL_RTL and
6776 checks that PARMs and RESULTs default_defs match DECL_RTL.
6777 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6778 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
6779 * explow.c (promote_ssa_mode): New.
6780 * explow.h (promote_ssa_mode): Declare.
6781 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6782 * function.c: Include cfgexpand.h.
6783 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6784 (use_register_for_parm_decl): Wrapper for the above to
6785 special-case the result_ptr.
6786 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6787 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6789 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6790 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
6791 (assign_parm_setup_block): Prefer SSA-assigned location.
6792 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
6793 if stack_parm is NULL.
6794 (assign_parm_setup_stack): Prefer SSA-assigned location.
6795 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
6796 rtl before testing for pointer bounds. Special-case result_ptr.
6797 (expand_function_start): Maybe reset DECL_RTL of result.
6798 Prefer SSA-assigned location for result and static chain.
6799 Factor out DECL_RESULT and SET_DECL_RTL.
6800 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6801 anonymous SSA names. Use promote_ssa_mode.
6802 (get_temp_reg): Likewise.
6803 (remove_ssa_form): Adjust.
6804 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6805 and get its reg_usage for reg invalidation.
6806 (compute_bb_dataflow): Pass it insn.
6807 (emit_notes_in_bb): Likewise.
6808 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
6809 fail assert on conversion between unsigned types.
6811 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
6814 * tree-inline.c (reset_debug_binding): New.
6815 (reset_debug_bindings): Likewise.
6816 (expand_call_inline): Call it.
6818 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6820 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
6823 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
6825 * lto-streamer-out.c (lto_output_location): Stream
6826 reserved locations correctly.
6827 * lto-streamer-in.c (lto_output_location): Likewise.
6829 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
6831 * coretypes.h: Include hash-table.h and hash-set.h for host files.
6832 * ggc.h: Don't include statistics.h>
6833 * hash-map.h: Remove all includes.
6834 * hash-set.h: Likewise.
6835 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
6836 the include list. Remove <new>.
6837 * inchash.h: Remove all includes.
6838 * mem-stats.h: Likewise.
6839 * vec.h: No special processing for generators or ggc.
6840 * alias.c : Adjust include files.
6841 * alloc-pool.c : Likewise.
6842 * alloc-pool.h : Likewise.
6843 * asan.c : Likewise.
6844 * attribs.c : Likewise.
6845 * auto-inc-dec.c : Likewise.
6846 * auto-profile.c : Likewise.
6847 * bb-reorder.c : Likewise.
6848 * bitmap.c : Likewise.
6849 * bitmap.h : Likewise.
6850 * bt-load.c : Likewise.
6851 * builtins.c : Likewise.
6852 * caller-save.c : Likewise.
6853 * calls.c : Likewise.
6854 * ccmp.c : Likewise.
6856 * cfganal.c : Likewise.
6857 * cfgbuild.c : Likewise.
6858 * cfgcleanup.c : Likewise.
6859 * cfgexpand.c : Likewise.
6860 * cfghooks.c : Likewise.
6861 * cfgloop.c : Likewise.
6862 * cfgloop.h : Likewise.
6863 * cfgloopanal.c : Likewise.
6864 * cfgloopmanip.c : Likewise.
6865 * cfgrtl.c : Likewise.
6866 * cgraph.c : Likewise.
6867 * cgraphbuild.c : Likewise.
6868 * cgraphclones.c : Likewise.
6869 * cgraphunit.c : Likewise.
6870 * cilk-common.c : Likewise.
6871 * combine-stack-adj.c : Likewise.
6872 * combine.c : Likewise.
6873 * compare-elim.c : Likewise.
6874 * context.c : Likewise.
6875 * convert.c : Likewise.
6876 * coverage.c : Likewise.
6877 * cppbuiltin.c : Likewise.
6878 * cprop.c : Likewise.
6880 * cselib.c : Likewise.
6881 * data-streamer-in.c : Likewise.
6882 * data-streamer-out.c : Likewise.
6883 * data-streamer.c : Likewise.
6884 * data-streamer.h : Likewise.
6885 * dbxout.c : Likewise.
6888 * debug.c : Likewise.
6889 * df-core.c : Likewise.
6890 * df-problems.c : Likewise.
6891 * df-scan.c : Likewise.
6894 * dojump.c : Likewise.
6895 * dominance.c : Likewise.
6896 * domwalk.c : Likewise.
6897 * double-int.c : Likewise.
6899 * dumpfile.c : Likewise.
6900 * dwarf2asm.c : Likewise.
6901 * dwarf2cfi.c : Likewise.
6902 * dwarf2out.c : Likewise.
6903 * emit-rtl.c : Likewise.
6904 * et-forest.c : Likewise.
6905 * except.c : Likewise.
6906 * except.h : Likewise.
6907 * explow.c : Likewise.
6908 * expmed.c : Likewise.
6909 * expr.c : Likewise.
6910 * final.c : Likewise.
6911 * fixed-value.c : Likewise.
6912 * fold-const.c : Likewise.
6913 * function.c : Likewise.
6914 * fwprop.c : Likewise.
6915 * gcc-plugin.h : Likewise.
6917 * gcse-common.c : Likewise.
6918 * gcse.c : Likewise.
6919 * genattrtab.c : Likewise.
6920 * genautomata.c : Likewise.
6921 * genconditions.c : Likewise.
6922 * genemit.c : Likewise.
6923 * generic-match-head.c : Likewise.
6924 * genextract.c : Likewise.
6925 * gengtype-state.c : Likewise.
6926 * gengtype.c : Likewise.
6927 * genhooks.c : Likewise.
6928 * genmatch.c : Likewise.
6929 * genmodes.c : Likewise.
6930 * genrecog.c : Likewise.
6931 * gensupport.c : Likewise.
6932 * ggc-common.c : Likewise.
6933 * ggc-internal.h : Likewise.
6934 * ggc-none.c : Likewise.
6935 * ggc-page.c : Likewise.
6936 * gimple-builder.c : Likewise.
6937 * gimple-expr.c : Likewise.
6938 * gimple-fold.c : Likewise.
6939 * gimple-iterator.c : Likewise.
6940 * gimple-low.c : Likewise.
6941 * gimple-match-head.c : Likewise.
6942 * gimple-pretty-print.c : Likewise.
6943 * gimple-ssa-isolate-paths.c : Likewise.
6944 * gimple-ssa-strength-reduction.c : Likewise.
6945 * gimple-ssa.h : Likewise.
6946 * gimple-streamer-in.c : Likewise.
6947 * gimple-streamer-out.c : Likewise.
6948 * gimple-streamer.h : Likewise.
6949 * gimple-walk.c : Likewise.
6950 * gimple.c : Likewise.
6951 * gimplify-me.c : Likewise.
6952 * gimplify.c : Likewise.
6953 * godump.c : Likewise.
6954 * graph.c : Likewise.
6955 * graphds.c : Likewise.
6956 * graphite-blocking.c : Likewise.
6957 * graphite-dependences.c : Likewise.
6958 * graphite-interchange.c : Likewise.
6959 * graphite-isl-ast-to-gimple.c : Likewise.
6960 * graphite-optimize-isl.c : Likewise.
6961 * graphite-poly.c : Likewise.
6962 * graphite-scop-detection.c : Likewise.
6963 * graphite-sese-to-poly.c : Likewise.
6964 * graphite.c : Likewise.
6965 * haifa-sched.c : Likewise.
6966 * hard-reg-set.h : Likewise.
6967 * hw-doloop.c : Likewise.
6968 * ifcvt.c : Likewise.
6969 * inchash.c : Likewise.
6970 * incpath.c : Likewise.
6971 * init-regs.c : Likewise.
6972 * input.c : Likewise.
6973 * internal-fn.c : Likewise.
6974 * ipa-chkp.c : Likewise.
6975 * ipa-comdats.c : Likewise.
6976 * ipa-cp.c : Likewise.
6977 * ipa-devirt.c : Likewise.
6978 * ipa-icf-gimple.c : Likewise.
6979 * ipa-icf.c : Likewise.
6980 * ipa-inline-analysis.c : Likewise.
6981 * ipa-inline-transform.c : Likewise.
6982 * ipa-inline.c : Likewise.
6983 * ipa-polymorphic-call.c : Likewise.
6984 * ipa-profile.c : Likewise.
6985 * ipa-prop.c : Likewise.
6986 * ipa-pure-const.c : Likewise.
6987 * ipa-ref.c : Likewise.
6988 * ipa-reference.c : Likewise.
6989 * ipa-split.c : Likewise.
6990 * ipa-utils.c : Likewise.
6991 * ipa-visibility.c : Likewise.
6993 * ira-build.c : Likewise.
6994 * ira-color.c : Likewise.
6995 * ira-conflicts.c : Likewise.
6996 * ira-costs.c : Likewise.
6997 * ira-emit.c : Likewise.
6998 * ira-lives.c : Likewise.
7000 * jump.c : Likewise.
7001 * langhooks.c : Likewise.
7003 * libfuncs.h : Likewise.
7004 * lists.c : Likewise.
7005 * loop-doloop.c : Likewise.
7006 * loop-init.c : Likewise.
7007 * loop-invariant.c : Likewise.
7008 * loop-iv.c : Likewise.
7009 * loop-unroll.c : Likewise.
7010 * lower-subreg.c : Likewise.
7011 * lra-assigns.c : Likewise.
7012 * lra-coalesce.c : Likewise.
7013 * lra-constraints.c : Likewise.
7014 * lra-eliminations.c : Likewise.
7015 * lra-lives.c : Likewise.
7016 * lra-remat.c : Likewise.
7017 * lra-spills.c : Likewise.
7019 * lto-cgraph.c : Likewise.
7020 * lto-compress.c : Likewise.
7021 * lto-opts.c : Likewise.
7022 * lto-section-in.c : Likewise.
7023 * lto-section-out.c : Likewise.
7024 * lto-streamer-in.c : Likewise.
7025 * lto-streamer-out.c : Likewise.
7026 * lto-streamer.c : Likewise.
7027 * lto-streamer.h : Likewise.
7029 * mode-switching.c : Likewise.
7030 * modulo-sched.c : Likewise.
7031 * omega.c : Likewise.
7032 * omp-low.c : Likewise.
7033 * optabs.c : Likewise.
7034 * opts-global.c : Likewise.
7035 * opts.h : Likewise.
7036 * passes.c : Likewise.
7037 * plugin.c : Likewise.
7038 * postreload-gcse.c : Likewise.
7039 * postreload.c : Likewise.
7040 * predict.c : Likewise.
7041 * print-rtl.c : Likewise.
7042 * print-tree.c : Likewise.
7043 * profile.c : Likewise.
7044 * read-md.c : Likewise.
7045 * read-md.h : Likewise.
7046 * read-rtl.c : Likewise.
7047 * real.c : Likewise.
7048 * realmpfr.c : Likewise.
7049 * recog.c : Likewise.
7051 * reg-stack.c : Likewise.
7052 * regcprop.c : Likewise.
7053 * reginfo.c : Likewise.
7054 * regrename.c : Likewise.
7055 * regstat.c : Likewise.
7056 * reload.c : Likewise.
7057 * reload1.c : Likewise.
7058 * reorg.c : Likewise.
7059 * resource.c : Likewise.
7060 * rtl-chkp.c : Likewise.
7063 * rtlanal.c : Likewise.
7064 * rtlhash.c : Likewise.
7065 * rtlhash.h : Likewise.
7066 * rtlhooks.c : Likewise.
7067 * sanopt.c : Likewise.
7068 * sched-deps.c : Likewise.
7069 * sched-ebb.c : Likewise.
7070 * sched-rgn.c : Likewise.
7071 * sched-vis.c : Likewise.
7072 * sdbout.c : Likewise.
7073 * sel-sched-dump.c : Likewise.
7074 * sel-sched-ir.c : Likewise.
7075 * sel-sched-ir.h : Likewise.
7076 * sel-sched.c : Likewise.
7077 * sese.c : Likewise.
7078 * shrink-wrap.c : Likewise.
7079 * shrink-wrap.h : Likewise.
7080 * simplify-rtx.c : Likewise.
7081 * stack-ptr-mod.c : Likewise.
7082 * statistics.c : Likewise.
7083 * stmt.c : Likewise.
7084 * stor-layout.c : Likewise.
7085 * store-motion.c : Likewise.
7086 * stringpool.c : Likewise.
7087 * symtab.c : Likewise.
7088 * target-globals.c : Likewise.
7089 * targhooks.c : Likewise.
7090 * tlink.c : Likewise.
7091 * toplev.c : Likewise.
7092 * tracer.c : Likewise.
7093 * trans-mem.c : Likewise.
7094 * tree-affine.c : Likewise.
7095 * tree-affine.h : Likewise.
7096 * tree-browser.c : Likewise.
7097 * tree-call-cdce.c : Likewise.
7098 * tree-cfg.c : Likewise.
7099 * tree-cfgcleanup.c : Likewise.
7100 * tree-chkp-opt.c : Likewise.
7101 * tree-chkp.c : Likewise.
7102 * tree-chrec.c : Likewise.
7103 * tree-complex.c : Likewise.
7104 * tree-data-ref.c : Likewise.
7105 * tree-dfa.c : Likewise.
7106 * tree-diagnostic.c : Likewise.
7107 * tree-dump.c : Likewise.
7108 * tree-eh.c : Likewise.
7109 * tree-eh.h : Likewise.
7110 * tree-emutls.c : Likewise.
7111 * tree-hasher.h : Likewise.
7112 * tree-if-conv.c : Likewise.
7113 * tree-inline.c : Likewise.
7114 * tree-inline.h : Likewise.
7115 * tree-into-ssa.c : Likewise.
7116 * tree-iterator.c : Likewise.
7117 * tree-loop-distribution.c : Likewise.
7118 * tree-nested.c : Likewise.
7119 * tree-nrv.c : Likewise.
7120 * tree-object-size.c : Likewise.
7121 * tree-outof-ssa.c : Likewise.
7122 * tree-parloops.c : Likewise.
7123 * tree-phinodes.c : Likewise.
7124 * tree-predcom.c : Likewise.
7125 * tree-pretty-print.c : Likewise.
7126 * tree-profile.c : Likewise.
7127 * tree-scalar-evolution.c : Likewise.
7128 * tree-sra.c : Likewise.
7129 * tree-ssa-address.c : Likewise.
7130 * tree-ssa-alias.c : Likewise.
7131 * tree-ssa-ccp.c : Likewise.
7132 * tree-ssa-coalesce.c : Likewise.
7133 * tree-ssa-copy.c : Likewise.
7134 * tree-ssa-copyrename.c : Likewise.
7135 * tree-ssa-dce.c : Likewise.
7136 * tree-ssa-dom.c : Likewise.
7137 * tree-ssa-dse.c : Likewise.
7138 * tree-ssa-forwprop.c : Likewise.
7139 * tree-ssa-ifcombine.c : Likewise.
7140 * tree-ssa-live.c : Likewise.
7141 * tree-ssa-loop-ch.c : Likewise.
7142 * tree-ssa-loop-im.c : Likewise.
7143 * tree-ssa-loop-ivcanon.c : Likewise.
7144 * tree-ssa-loop-ivopts.c : Likewise.
7145 * tree-ssa-loop-manip.c : Likewise.
7146 * tree-ssa-loop-niter.c : Likewise.
7147 * tree-ssa-loop-prefetch.c : Likewise.
7148 * tree-ssa-loop-unswitch.c : Likewise.
7149 * tree-ssa-loop.c : Likewise.
7150 * tree-ssa-math-opts.c : Likewise.
7151 * tree-ssa-operands.c : Likewise.
7152 * tree-ssa-phiopt.c : Likewise.
7153 * tree-ssa-phiprop.c : Likewise.
7154 * tree-ssa-pre.c : Likewise.
7155 * tree-ssa-propagate.c : Likewise.
7156 * tree-ssa-reassoc.c : Likewise.
7157 * tree-ssa-sccvn.c : Likewise.
7158 * tree-ssa-scopedtables.c : Likewise.
7159 * tree-ssa-sink.c : Likewise.
7160 * tree-ssa-strlen.c : Likewise.
7161 * tree-ssa-structalias.c : Likewise.
7162 * tree-ssa-tail-merge.c : Likewise.
7163 * tree-ssa-ter.c : Likewise.
7164 * tree-ssa-threadedge.c : Likewise.
7165 * tree-ssa-threadupdate.c : Likewise.
7166 * tree-ssa-uncprop.c : Likewise.
7167 * tree-ssa-uninit.c : Likewise.
7168 * tree-ssa.c : Likewise.
7169 * tree-ssanames.c : Likewise.
7170 * tree-stdarg.c : Likewise.
7171 * tree-streamer-in.c : Likewise.
7172 * tree-streamer-out.c : Likewise.
7173 * tree-streamer.c : Likewise.
7174 * tree-streamer.h : Likewise.
7175 * tree-switch-conversion.c : Likewise.
7176 * tree-tailcall.c : Likewise.
7177 * tree-vect-data-refs.c : Likewise.
7178 * tree-vect-generic.c : Likewise.
7179 * tree-vect-loop-manip.c : Likewise.
7180 * tree-vect-loop.c : Likewise.
7181 * tree-vect-patterns.c : Likewise.
7182 * tree-vect-slp.c : Likewise.
7183 * tree-vect-stmts.c : Likewise.
7184 * tree-vectorizer.c : Likewise.
7185 * tree-vectorizer.h : Likewise.
7186 * tree-vrp.c : Likewise.
7187 * tree.c : Likewise.
7188 * tsan.c : Likewise.
7189 * ubsan.c : Likewise.
7190 * valtrack.c : Likewise.
7191 * valtrack.h : Likewise.
7192 * value-prof.c : Likewise.
7193 * var-tracking.c : Likewise.
7194 * varasm.c : Likewise.
7195 * varpool.c : Likewise.
7197 * vmsdbgout.c : Likewise.
7198 * vtable-verify.c : Likewise.
7199 * vtable-verify.h : Likewise.
7201 * wide-int.cc : Likewise.
7202 * xcoffout.c : Likewise.
7203 * config/aarch64/aarch64-builtins.c : Likewise.
7204 * config/aarch64/aarch64.c : Likewise.
7205 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
7206 * config/alpha/alpha.c : Likewise.
7207 * config/arc/arc.c : Likewise.
7208 * config/arm/aarch-common.c : Likewise.
7209 * config/arm/arm-builtins.c : Likewise.
7210 * config/arm/arm-c.c : Likewise.
7211 * config/arm/arm.c : Likewise.
7212 * config/avr/avr-c.c : Likewise.
7213 * config/avr/avr-log.c : Likewise.
7214 * config/avr/avr.c : Likewise.
7215 * config/bfin/bfin.c : Likewise.
7216 * config/c6x/c6x.c : Likewise.
7217 * config/cr16/cr16.c : Likewise.
7218 * config/cris/cris.c : Likewise.
7219 * config/darwin-c.c : Likewise.
7220 * config/darwin.c : Likewise.
7221 * config/default-c.c : Likewise.
7222 * config/epiphany/epiphany.c : Likewise.
7223 * config/epiphany/mode-switch-use.c : Likewise.
7224 * config/epiphany/resolve-sw-modes.c : Likewise.
7225 * config/fr30/fr30.c : Likewise.
7226 * config/frv/frv.c : Likewise.
7227 * config/ft32/ft32.c : Likewise.
7228 * config/glibc-c.c : Likewise.
7229 * config/h8300/h8300.c : Likewise.
7230 * config/i386/i386-c.c : Likewise.
7231 * config/i386/i386.c : Likewise.
7232 * config/i386/msformat-c.c : Likewise.
7233 * config/i386/winnt-cxx.c : Likewise.
7234 * config/i386/winnt-stubs.c : Likewise.
7235 * config/i386/winnt.c : Likewise.
7236 * config/ia64/ia64-c.c : Likewise.
7237 * config/ia64/ia64.c : Likewise.
7238 * config/iq2000/iq2000.c : Likewise.
7239 * config/lm32/lm32.c : Likewise.
7240 * config/m32c/m32c-pragma.c : Likewise.
7241 * config/m32c/m32c.c : Likewise.
7242 * config/m32r/m32r.c : Likewise.
7243 * config/m68k/m68k.c : Likewise.
7244 * config/mcore/mcore.c : Likewise.
7245 * config/mep/mep-pragma.c : Likewise.
7246 * config/mep/mep.c : Likewise.
7247 * config/microblaze/microblaze-c.c : Likewise.
7248 * config/microblaze/microblaze.c : Likewise.
7249 * config/mips/mips.c : Likewise.
7250 * config/mmix/mmix.c : Likewise.
7251 * config/mn10300/mn10300.c : Likewise.
7252 * config/moxie/moxie.c : Likewise.
7253 * config/msp430/msp430-c.c : Likewise.
7254 * config/msp430/msp430.c : Likewise.
7255 * config/nds32/nds32-cost.c : Likewise.
7256 * config/nds32/nds32-fp-as-gp.c : Likewise.
7257 * config/nds32/nds32-intrinsic.c : Likewise.
7258 * config/nds32/nds32-isr.c : Likewise.
7259 * config/nds32/nds32-md-auxiliary.c : Likewise.
7260 * config/nds32/nds32-memory-manipulation.c : Likewise.
7261 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
7262 * config/nds32/nds32-predicates.c : Likewise.
7263 * config/nds32/nds32.c : Likewise.
7264 * config/nios2/nios2.c : Likewise.
7265 * config/nvptx/nvptx.c : Likewise.
7266 * config/pa/pa.c : Likewise.
7267 * config/pdp11/pdp11.c : Likewise.
7268 * config/rl78/rl78-c.c : Likewise.
7269 * config/rl78/rl78.c : Likewise.
7270 * config/rs6000/rs6000-c.c : Likewise.
7271 * config/rs6000/rs6000.c : Likewise.
7272 * config/rx/rx.c : Likewise.
7273 * config/s390/s390-c.c : Likewise.
7274 * config/s390/s390.c : Likewise.
7275 * config/sh/sh-c.c : Likewise.
7276 * config/sh/sh-mem.cc : Likewise.
7277 * config/sh/sh.c : Likewise.
7278 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
7279 * config/sh/sh_treg_combine.cc : Likewise.
7280 * config/sol2-c.c : Likewise.
7281 * config/sol2-cxx.c : Likewise.
7282 * config/sol2-stubs.c : Likewise.
7283 * config/sol2.c : Likewise.
7284 * config/sparc/sparc-c.c : Likewise.
7285 * config/sparc/sparc.c : Likewise.
7286 * config/spu/spu-c.c : Likewise.
7287 * config/spu/spu.c : Likewise.
7288 * config/stormy16/stormy16.c : Likewise.
7289 * config/tilegx/mul-tables.c : Likewise.
7290 * config/tilegx/tilegx-c.c : Likewise.
7291 * config/tilegx/tilegx.c : Likewise.
7292 * config/tilepro/mul-tables.c : Likewise.
7293 * config/tilepro/tilepro-c.c : Likewise.
7294 * config/tilepro/tilepro.c : Likewise.
7295 * config/v850/v850-c.c : Likewise.
7296 * config/v850/v850.c : Likewise.
7297 * config/vax/vax.c : Likewise.
7298 * config/visium/visium.c : Likewise.
7299 * config/vms/vms-c.c : Likewise.
7300 * config/vms/vms.c : Likewise.
7301 * config/vxworks.c : Likewise.
7302 * config/winnt-c.c : Likewise.
7303 * config/xtensa/xtensa.c : Likewise.
7305 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
7308 * ipa-utils.h (warn_types_mismatch): Update prototype.
7309 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
7311 (type_mismatch_p): New function.
7312 (warn_types_mismatch): Reorg to work better on non-C++ types.
7313 (odr_types_equivalent_p): Add loc1/loc2 parameters.
7314 (add_type_duplicate): Update.
7316 2015-06-08 Tom de Vries <tom@codesourcery.com>
7318 PR rtl-optimization/66444
7319 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
7322 2015-06-08 Richard Biener <rguenther@suse.de>
7324 PR tree-optimization/66422
7325 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
7326 block after inserted gcc_unreachable.
7328 2015-06-08 Nick Clifton <nickc@redhat.com>
7330 * config/rx/rx.c (rx_function_value): Do not promote vector types.
7331 (rx_promote_function_mode): Likewise.
7332 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
7334 2015-06-08 Jakub Jelinek <jakub@redhat.com>
7336 * genattrtab.c (insn_alternatives): Change type from int *
7338 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
7339 (get_attr_value): Change type of num_alt to uint64_t.
7340 (compute_alternative_mask): Change return type from
7341 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
7342 (make_alternative_compare, mk_attr_alt): Change argument type
7343 from int to uint64_t.
7344 (simplify_test_exp): Change type of i from int to uint64_t.
7345 Shift ((uint64_t) 1) instead of 1 up.
7346 (main): Adjust oballocvec first argument from int to uint64_t.
7347 Shift ((uint64_t) 1) instead of 1 up.
7349 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7352 * gdbhooks.py: Import sys.
7353 (intptr): New function. Replace int(...) by intptr(...).
7355 2015-06-08 Richard Biener <rguenther@suse.de>
7357 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
7358 adjustment for gaps at the end of a SLP load group properly.
7359 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
7360 all permutations we can generate.
7361 (vect_transform_slp_perm_load): Use the correct group-size.
7363 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
7365 * genmatch.c (expr::gen_transform): For conditions, guess the type
7366 from the second operand.
7368 2015-06-08 Tom de Vries <tom@codesourcery.com>
7370 PR tree-optimization/66442
7371 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
7372 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
7373 if the loop latch is not a singleton. Use
7374 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
7376 2015-06-08 Marek Polacek <polacek@redhat.com>
7379 * toplev.c (check_global_declaration): Don't warn about artificial
7382 2015-06-08 Tom de Vries <tom@codesourcery.com>
7384 PR tree-optimization/66436
7385 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
7387 * gimplify.c: Add tree-dump.h include.
7388 (gimplify_function_tree): Dump function to gimple dump file.
7389 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
7392 2015-06-08 Tom de Vries <tom@codesourcery.com>
7394 PR tree-optimization/66435
7395 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
7398 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
7400 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
7401 of ptr_type_node to not be ptr_to_node.
7402 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
7403 TREE_TYPE of pointers.
7404 * gimple-expr.c (useless_type_conversion): Reorder the check for
7405 function pointers and TYPE_CANONICAL.
7407 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
7410 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
7411 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
7412 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
7414 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
7415 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
7416 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
7417 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
7418 and non iso if unix2003.
7420 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
7422 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
7424 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
7426 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
7427 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
7428 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
7429 except.c, final.c, function.c, gcse-common.c, genemit.c,
7430 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
7431 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
7432 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
7433 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
7436 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
7438 * combine.c (combine_split_insns): Remove cast.
7439 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
7440 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
7441 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
7442 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
7443 * genemit.c (gen_split): Change return type of generated functions to
7445 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
7446 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
7447 gen_peephole2_* functions.
7448 (print_subroutine, main): Likewise.
7449 * recog.c (peephole2_optimize): Remove cast.
7450 (peep2_next_insn): Promote return type to rtx_insn.
7451 * recog.h (peep2_next_insn): Fix prototype.
7452 * rtl.h (try_split, split_insns): Likewise.
7454 2015-06-06 DJ Delorie <dj@redhat.com>
7456 * config/msp430/msp430.c (msp430_asm_integer): Support addition
7457 and subtraction too.
7459 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
7462 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
7463 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
7464 instead of Snd. Disparage Sid/z alternative with '^'.
7466 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
7468 * dwarf2out.c: Remove deferred_locations*.
7469 (dwarf2_debug_hooks): Add early_finish hook.
7470 Remove global_decl hook.
7471 Add early_global_decl and late_global_decl hook.
7472 New global early_dwarf.
7473 New structure set_early_dwarf.
7474 (output_die): Indicate whether a DIE was generated early
7475 when generating assembly with -dA.
7476 (struct limbo_die_struct): Document created_for field.
7477 Remove file_table_last_lookup.
7478 (remove_AT): Return TRUE if successful.
7479 (remove_child_TAG): Clear die_parent.
7480 (reparent_child): New function abstracted from...
7481 (splice_child_die): ...here.
7482 (new_die): ICE if a DIE ends up in limbo too late.
7484 (defer_location): Remove.
7485 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
7486 (fill_variable_array_bounds): New.
7487 (decl_start_label): Call fill_variable_array_bounds.
7488 (gen_formal_parameter_die): Rewrite to reuse previously generated
7490 (gen_subprogram_die): Same.
7491 (gen_variable_die): Same.
7492 (gen_const_die): Same.
7493 (gen_label_die): Same.
7494 (gen_lexical_block_die): Same.
7495 (decl_will_get_specification_p): New.
7496 (local_function_static): New.
7497 (gen_struct_or_union_type_die): Fill in variable-length fields.
7498 (gen_typedef_die): Fill in variable-length typedefs.
7499 (gen_tagged_type_die): Gracefully return on error_mark_node.
7501 (gen_type_die_with_usage): Handle variable-length types.
7502 Remove duplicate code for ARRAY_TYPE case.
7503 (process_scope_var): Only process imported modules during early
7505 (dwarf2out_early_global_decl): New.
7506 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
7507 (dwarf2out_type_decl): Set early_dwarf while calling
7509 (dwarf2out_decl): Verify that we did not recreate a previously
7511 Do not return on DECL_EXTERNALs in VAR_DECLs.
7512 Abstract some code to local_function_static.
7513 (lookup_filename): Remove use of file_table_last_lookup.
7514 Gracefully exit on missing file_name.
7515 (dwarf2out_finish): Verify limbo list.
7516 Remove deferred_locations_list use.
7517 Move deferred_asm_name and limbo flushing to...
7518 (dwarf2out_early_finish): ...here. New.
7519 (dwarf2out_c_finalize): Remove set of deferred_location_list,
7520 deferred_asm_name, and file_table_last_lookup.
7521 * cgraph.h (referred_to_p): Add default argument.
7522 * cgraphunit.c (referred_to_p): Add and handle include_self
7524 (analyze_functions): Add first_time argument.
7525 Call check_global_declaration for all symbols.
7526 Call late_global_decl for nodes for moribund nodes.
7527 (finalize_compilation_unit): Add new argument to
7529 Call early_global_decl for functions.
7530 Call early_finish debug hook.
7531 * dbxout.c (dbxout_early_global_decl): New.
7532 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
7533 (dbx_debug_hooks): Add new hooks.
7534 (xcoff_debug_hooks): Same.
7535 * debug.c (do_nothing_debug_hooks): Add early_finish field.
7536 Add early and late debug hooks.
7537 Remove global_decl hook.
7538 * debug.h (struct gcc_debug_hooks): Add early_finish,
7539 early_global_decl, and late_global_decl fields.
7540 Remove global_decl field.
7541 Document gcc_debug_hooks.
7542 * gengtype.c (output_typename): Remove.
7543 * godump.c (go_early_global_decl): New.
7544 (go_late_global_decl): New.
7545 (go_global_decl): Remove.
7546 (dump_go_spec_init): Remove global_decl. Add
7547 {early,late}_global_decl.
7548 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
7549 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
7550 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
7551 (write_global_declarations): Remove.
7552 (global_decl_processing): New.
7553 * langhooks.h (struct lang_hooks_for_decls): Remove
7554 final_write_globals field.
7555 Add post_compilation_parsing_cleanups field.
7556 * passes.c (rest_of_decl_compilation): Call early_global_decl.
7557 * sdbout.c: Add early and late_global_decl hooks. Remove
7558 sdbout_global_decl hook.
7559 Add early_finish field for sdb_debug_hooks.
7560 (sdbout_global_decl): Remove.
7561 (sdbout_early_global_decl): New.
7562 (sdbout_late_global_decl): New.
7563 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
7564 * toplev.c (check_global_declaration): Rename from
7565 check_global_declaration_1.
7566 Adapt to use symtab infrastructure.
7567 (check_global_declarations): Remove.
7568 (emit_debug_global_declarations): Remove.
7569 (compile_file): Remove call to final_write_globals langhook.
7570 Run the actual compilation process.
7571 Perform any post compilation parser cleanups.
7572 Generate late debug info.
7573 * toplev.h (check_global_declaration): New.
7574 (check_global_declaration_1): Remove.
7575 (check_global_declarations): Remove.
7576 (write_global_declarations): Remove.
7577 (emit_debug_global_declarations): Remove.
7578 (global_decl_processing): New.
7579 * tree-core.h (struct tree_block): Add DIE field.
7580 * tree.h (BLOCK_DIE): New.
7581 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
7583 (vmsdbgout_early_global_decl): New.
7584 (vmsdbgout_late_global_decl): New.
7585 Add early_finish debug hook field to vmsdbg_debug_hooks.
7586 Remove vmsdbgout_decl to vmsdbgout_function_decl.
7587 Add early and late_global_decl debug hooks.
7589 2015-06-05 Julian Brown <julian@codesourcery.com>
7590 Sandra Loosemore <sandra@codesourcery.com>
7592 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
7593 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
7594 to print-sysroot-suffix.sh script.
7596 2015-06-05 Tom de Vries <tom@codesourcery.com>
7598 merge from gomp4 branch:
7599 2015-05-28 Tom de Vries <tom@codesourcery.com>
7601 PR tree-optimization/65443
7602 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
7603 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
7604 (try_transform_to_exit_first_loop_alt): New function.
7605 (transform_to_exit_first_loop): Use
7606 try_transform_to_exit_first_loop_alt.
7608 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
7610 * builtins.c (expand_builtin_atomic_compare_exchange): Call
7611 emit_cmp_and_jump_insns with the mode of target.
7613 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7615 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
7617 2015-06-04 DJ Delorie <dj@redhat.com>
7619 * config/msp430/msp430.md (movsi_s): New. Special case for
7620 storing a 20-bit symbol into a 32-bit register.
7621 * config/msp430/msp430.c (msp430_subreg): Add support for it.
7622 * config/msp430/predicates.md (msp430_symbol_operand): New.
7624 2015-06-04 Sriraman Tallam <tmsriram@google.com>
7626 * c-family/c-common.c (noplt): New attribute.
7627 (handle_noplt_attribute): New handler.
7628 * calls.c (prepare_call_address): Check for noplt
7630 * config/i386/i386.c (ix86_expand_call): Check
7631 for noplt attribute.
7632 (ix86_nopic_noplt_attribute_p): New function.
7633 (ix86_output_call_insn): Output indirect call for non-pic
7635 * doc/extend.texi (noplt): Document new attribute.
7636 * doc/invoke.texi: Document new attribute.
7638 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
7640 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
7641 real.h, and fixed-value.h when included in host source files.
7642 * double-int.h: Remove redundant #includes listed above.
7643 * fixed-value.h: Likewise.
7645 * wide-int.h: Likewise.
7646 * inchash.h: Likewise.
7647 * rtl.h: Add some include files When included from a generator file.
7648 * target.h: Remove wide-int.h and insn-modes.h from the include list.
7649 * internal-fn.h: Don't include coretypes.h.
7650 * alias.c: Adjust includes for restructured coretypes.h.
7652 * attribs.c: Likewise.
7653 * auto-inc-dec.c: Likewise.
7654 * auto-profile.c: Likewise.
7655 * bb-reorder.c: Likewise.
7656 * bt-load.c: Likewise.
7657 * builtins.c: Likewise.
7658 * caller-save.c: Likewise.
7659 * calls.c: Likewise.
7662 * cfganal.c: Likewise.
7663 * cfgbuild.c: Likewise.
7664 * cfgcleanup.c: Likewise.
7665 * cfgexpand.c: Likewise.
7666 * cfghooks.c: Likewise.
7667 * cfgloop.c: Likewise.
7668 * cfgloop.h: Likewise.
7669 * cfgloopanal.c: Likewise.
7670 * cfgloopmanip.c: Likewise.
7671 * cfgrtl.c: Likewise.
7672 * cgraph.c: Likewise.
7673 * cgraphbuild.c: Likewise.
7674 * cgraphclones.c: Likewise.
7675 * cgraphunit.c: Likewise.
7676 * cilk-common.c: Likewise.
7677 * combine-stack-adj.c: Likewise.
7678 * combine.c: Likewise.
7679 * compare-elim.c: Likewise.
7680 * convert.c: Likewise.
7681 * coverage.c: Likewise.
7682 * cppbuiltin.c: Likewise.
7683 * cprop.c: Likewise.
7685 * cselib.c: Likewise.
7686 * data-streamer-in.c: Likewise.
7687 * data-streamer-out.c: Likewise.
7688 * data-streamer.c: Likewise.
7689 * dbxout.c: Likewise.
7692 * debug.c: Likewise.
7693 * df-core.c: Likewise.
7694 * df-problems.c: Likewise.
7695 * df-scan.c: Likewise.
7698 * dojump.c: Likewise.
7699 * dominance.c: Likewise.
7700 * domwalk.c: Likewise.
7701 * double-int.c: Likewise.
7703 * dumpfile.c: Likewise.
7704 * dwarf2asm.c: Likewise.
7705 * dwarf2cfi.c: Likewise.
7706 * dwarf2out.c: Likewise.
7707 * dwarf2out.h: Likewise.
7708 * emit-rtl.c: Likewise.
7709 * et-forest.c: Likewise.
7710 * except.c: Likewise.
7711 * explow.c: Likewise.
7712 * expmed.c: Likewise.
7714 * final.c: Likewise.
7715 * fixed-value.c: Likewise.
7716 * fold-const.c: Likewise.
7717 * function.c: Likewise.
7718 * fwprop.c: Likewise.
7719 * gcc-plugin.h: Likewise.
7721 * generic-match-head.c: Likewise.
7722 * ggc-page.c: Likewise.
7723 * gimple-builder.c: Likewise.
7724 * gimple-expr.c: Likewise.
7725 * gimple-fold.c: Likewise.
7726 * gimple-iterator.c: Likewise.
7727 * gimple-low.c: Likewise.
7728 * gimple-match-head.c: Likewise.
7729 * gimple-pretty-print.c: Likewise.
7730 * gimple-ssa-isolate-paths.c: Likewise.
7731 * gimple-ssa-strength-reduction.c: Likewise.
7732 * gimple-streamer-in.c: Likewise.
7733 * gimple-streamer-out.c: Likewise.
7734 * gimple-streamer.h: Likewise.
7735 * gimple-walk.c: Likewise.
7736 * gimple.c: Likewise.
7737 * gimplify-me.c: Likewise.
7738 * gimplify.c: Likewise.
7739 * godump.c: Likewise.
7740 * graph.c: Likewise.
7741 * graphite-blocking.c: Likewise.
7742 * graphite-dependences.c: Likewise.
7743 * graphite-interchange.c: Likewise.
7744 * graphite-isl-ast-to-gimple.c: Likewise.
7745 * graphite-optimize-isl.c: Likewise.
7746 * graphite-poly.c: Likewise.
7747 * graphite-scop-detection.c: Likewise.
7748 * graphite-sese-to-poly.c: Likewise.
7749 * graphite.c: Likewise.
7750 * haifa-sched.c: Likewise.
7751 * hooks.h: Likewise.
7752 * hw-doloop.c: Likewise.
7753 * ifcvt.c: Likewise.
7754 * incpath.c: Likewise.
7755 * init-regs.c: Likewise.
7756 * internal-fn.c: Likewise.
7757 * ipa-chkp.c: Likewise.
7758 * ipa-comdats.c: Likewise.
7759 * ipa-cp.c: Likewise.
7760 * ipa-devirt.c: Likewise.
7761 * ipa-icf-gimple.c: Likewise.
7762 * ipa-icf.c: Likewise.
7763 * ipa-inline-analysis.c: Likewise.
7764 * ipa-inline-transform.c: Likewise.
7765 * ipa-inline.c: Likewise.
7766 * ipa-polymorphic-call.c: Likewise.
7767 * ipa-profile.c: Likewise.
7768 * ipa-prop.c: Likewise.
7769 * ipa-pure-const.c: Likewise.
7770 * ipa-ref.c: Likewise.
7771 * ipa-reference.c: Likewise.
7772 * ipa-split.c: Likewise.
7773 * ipa-utils.c: Likewise.
7774 * ipa-visibility.c: Likewise.
7776 * ira-build.c: Likewise.
7777 * ira-color.c: Likewise.
7778 * ira-conflicts.c: Likewise.
7779 * ira-costs.c: Likewise.
7780 * ira-emit.c: Likewise.
7781 * ira-lives.c: Likewise.
7784 * langhooks.c: Likewise.
7786 * loop-doloop.c: Likewise.
7787 * loop-init.c: Likewise.
7788 * loop-invariant.c: Likewise.
7789 * loop-iv.c: Likewise.
7790 * loop-unroll.c: Likewise.
7791 * lower-subreg.c: Likewise.
7792 * lra-assigns.c: Likewise.
7793 * lra-coalesce.c: Likewise.
7794 * lra-constraints.c: Likewise.
7795 * lra-eliminations.c: Likewise.
7796 * lra-lives.c: Likewise.
7797 * lra-remat.c: Likewise.
7798 * lra-spills.c: Likewise.
7800 * lto-cgraph.c: Likewise.
7801 * lto-compress.c: Likewise.
7802 * lto-opts.c: Likewise.
7803 * lto-section-in.c: Likewise.
7804 * lto-section-out.c: Likewise.
7805 * lto-streamer-in.c: Likewise.
7806 * lto-streamer-out.c: Likewise.
7807 * lto-streamer.c: Likewise.
7809 * mode-switching.c: Likewise.
7810 * modulo-sched.c: Likewise.
7811 * omega.c: Likewise.
7812 * omp-low.c: Likewise.
7813 * optabs.c: Likewise.
7814 * opts-global.c: Likewise.
7815 * passes.c: Likewise.
7816 * plugin.c: Likewise.
7817 * postreload-gcse.c: Likewise.
7818 * postreload.c: Likewise.
7819 * predict.c: Likewise.
7820 * print-rtl.c: Likewise.
7821 * print-tree.c: Likewise.
7822 * profile.c: Likewise.
7824 * realmpfr.c: Likewise.
7825 * realmpfr.h: Likewise.
7826 * recog.c: Likewise.
7828 * reg-stack.c: Likewise.
7829 * regcprop.c: Likewise.
7830 * reginfo.c: Likewise.
7831 * regrename.c: Likewise.
7833 * regstat.c: Likewise.
7834 * reload.c: Likewise.
7835 * reload1.c: Likewise.
7836 * reorg.c: Likewise.
7837 * resource.c: Likewise.
7838 * rtl-chkp.c: Likewise.
7839 * rtlanal.c: Likewise.
7840 * rtlhooks.c: Likewise.
7841 * sanopt.c: Likewise.
7842 * sched-deps.c: Likewise.
7843 * sched-ebb.c: Likewise.
7844 * sched-rgn.c: Likewise.
7845 * sched-vis.c: Likewise.
7846 * sdbout.c: Likewise.
7847 * sel-sched-dump.c: Likewise.
7848 * sel-sched-ir.c: Likewise.
7849 * sel-sched.c: Likewise.
7851 * shrink-wrap.c: Likewise.
7852 * shrink-wrap.h: Likewise.
7853 * simplify-rtx.c: Likewise.
7854 * stack-ptr-mod.c: Likewise.
7855 * statistics.c: Likewise.
7857 * stor-layout.c: Likewise.
7858 * store-motion.c: Likewise.
7859 * stringpool.c: Likewise.
7860 * symtab.c: Likewise.
7861 * target-globals.c: Likewise.
7862 * targhooks.c: Likewise.
7863 * toplev.c: Likewise.
7864 * tracer.c: Likewise.
7865 * trans-mem.c: Likewise.
7866 * tree-affine.c: Likewise.
7867 * tree-affine.h: Likewise.
7868 * tree-browser.c: Likewise.
7869 * tree-call-cdce.c: Likewise.
7870 * tree-cfg.c: Likewise.
7871 * tree-cfgcleanup.c: Likewise.
7872 * tree-chkp-opt.c: Likewise.
7873 * tree-chkp.c: Likewise.
7874 * tree-chrec.c: Likewise.
7875 * tree-complex.c: Likewise.
7876 * tree-data-ref.c: Likewise.
7877 * tree-dfa.c: Likewise.
7878 * tree-diagnostic.c: Likewise.
7879 * tree-dump.c: Likewise.
7880 * tree-eh.c: Likewise.
7881 * tree-emutls.c: Likewise.
7882 * tree-if-conv.c: Likewise.
7883 * tree-inline.c: Likewise.
7884 * tree-into-ssa.c: Likewise.
7885 * tree-iterator.c: Likewise.
7886 * tree-loop-distribution.c: Likewise.
7887 * tree-nested.c: Likewise.
7888 * tree-nrv.c: Likewise.
7889 * tree-object-size.c: Likewise.
7890 * tree-outof-ssa.c: Likewise.
7891 * tree-parloops.c: Likewise.
7892 * tree-phinodes.c: Likewise.
7893 * tree-predcom.c: Likewise.
7894 * tree-pretty-print.c: Likewise.
7895 * tree-pretty-print.h: Likewise.
7896 * tree-profile.c: Likewise.
7897 * tree-scalar-evolution.c: Likewise.
7898 * tree-sra.c: Likewise.
7899 * tree-ssa-address.c: Likewise.
7900 * tree-ssa-alias.c: Likewise.
7901 * tree-ssa-ccp.c: Likewise.
7902 * tree-ssa-coalesce.c: Likewise.
7903 * tree-ssa-copy.c: Likewise.
7904 * tree-ssa-copyrename.c: Likewise.
7905 * tree-ssa-dce.c: Likewise.
7906 * tree-ssa-dom.c: Likewise.
7907 * tree-ssa-dse.c: Likewise.
7908 * tree-ssa-forwprop.c: Likewise.
7909 * tree-ssa-ifcombine.c: Likewise.
7910 * tree-ssa-live.c: Likewise.
7911 * tree-ssa-loop-ch.c: Likewise.
7912 * tree-ssa-loop-im.c: Likewise.
7913 * tree-ssa-loop-ivcanon.c: Likewise.
7914 * tree-ssa-loop-ivopts.c: Likewise.
7915 * tree-ssa-loop-manip.c: Likewise.
7916 * tree-ssa-loop-niter.c: Likewise.
7917 * tree-ssa-loop-prefetch.c: Likewise.
7918 * tree-ssa-loop-unswitch.c: Likewise.
7919 * tree-ssa-loop.c: Likewise.
7920 * tree-ssa-loop.h: Likewise.
7921 * tree-ssa-math-opts.c: Likewise.
7922 * tree-ssa-operands.c: Likewise.
7923 * tree-ssa-phiopt.c: Likewise.
7924 * tree-ssa-phiprop.c: Likewise.
7925 * tree-ssa-pre.c: Likewise.
7926 * tree-ssa-propagate.c: Likewise.
7927 * tree-ssa-reassoc.c: Likewise.
7928 * tree-ssa-sccvn.c: Likewise.
7929 * tree-ssa-scopedtables.c: Likewise.
7930 * tree-ssa-sink.c: Likewise.
7931 * tree-ssa-strlen.c: Likewise.
7932 * tree-ssa-structalias.c: Likewise.
7933 * tree-ssa-tail-merge.c: Likewise.
7934 * tree-ssa-ter.c: Likewise.
7935 * tree-ssa-threadedge.c: Likewise.
7936 * tree-ssa-threadupdate.c: Likewise.
7937 * tree-ssa-uncprop.c: Likewise.
7938 * tree-ssa-uninit.c: Likewise.
7939 * tree-ssa.c: Likewise.
7940 * tree-ssanames.c: Likewise.
7941 * tree-stdarg.c: Likewise.
7942 * tree-streamer-in.c: Likewise.
7943 * tree-streamer-out.c: Likewise.
7944 * tree-streamer.c: Likewise.
7945 * tree-switch-conversion.c: Likewise.
7946 * tree-tailcall.c: Likewise.
7947 * tree-vect-data-refs.c: Likewise.
7948 * tree-vect-generic.c: Likewise.
7949 * tree-vect-loop-manip.c: Likewise.
7950 * tree-vect-loop.c: Likewise.
7951 * tree-vect-patterns.c: Likewise.
7952 * tree-vect-slp.c: Likewise.
7953 * tree-vect-stmts.c: Likewise.
7954 * tree-vectorizer.c: Likewise.
7955 * tree-vrp.c: Likewise.
7958 * ubsan.c: Likewise.
7959 * valtrack.c: Likewise.
7960 * value-prof.c: Likewise.
7961 * var-tracking.c: Likewise.
7962 * varasm.c: Likewise.
7963 * varpool.c: Likewise.
7964 * vmsdbgout.c: Likewise.
7965 * vtable-verify.c: Likewise.
7967 * wide-int-print.cc: Likewise.
7968 * wide-int-print.h: Likewise.
7969 * wide-int.cc: Likewise.
7970 * xcoffout.c: Likewise.
7971 * config/aarch64/aarch64-builtins.c: Likewise.
7972 * config/aarch64/aarch64.c: Likewise.
7973 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7974 * config/alpha/alpha.c: Likewise.
7975 * config/arc/arc.c: Likewise.
7976 * config/arm/aarch-common.c: Likewise.
7977 * config/arm/arm-builtins.c: Likewise.
7978 * config/arm/arm-c.c: Likewise.
7979 * config/arm/arm.c: Likewise.
7980 * config/avr/avr-c.c: Likewise.
7981 * config/avr/avr-log.c: Likewise.
7982 * config/avr/avr.c: Likewise.
7983 * config/bfin/bfin.c: Likewise.
7984 * config/c6x/c6x.c: Likewise.
7985 * config/cr16/cr16.c: Likewise.
7986 * config/cris/cris.c: Likewise.
7987 * config/darwin-c.c: Likewise.
7988 * config/darwin.c: Likewise.
7989 * config/default-c.c: Likewise.
7990 * config/epiphany/epiphany.c: Likewise.
7991 * config/epiphany/mode-switch-use.c: Likewise.
7992 * config/epiphany/resolve-sw-modes.c: Likewise.
7993 * config/fr30/fr30.c: Likewise.
7994 * config/frv/frv.c: Likewise.
7995 * config/ft32/ft32.c: Likewise.
7996 * config/glibc-c.c: Likewise.
7997 * config/h8300/h8300.c: Likewise.
7998 * config/i386/i386-c.c: Likewise.
7999 * config/i386/i386.c: Likewise.
8000 * config/i386/msformat-c.c: Likewise.
8001 * config/i386/winnt-cxx.c: Likewise.
8002 * config/i386/winnt-stubs.c: Likewise.
8003 * config/i386/winnt.c: Likewise.
8004 * config/ia64/ia64-c.c: Likewise.
8005 * config/ia64/ia64.c: Likewise.
8006 * config/iq2000/iq2000.c: Likewise.
8007 * config/lm32/lm32.c: Likewise.
8008 * config/m32c/m32c-pragma.c: Likewise.
8009 * config/m32c/m32c.c: Likewise.
8010 * config/m32r/m32r.c: Likewise.
8011 * config/m68k/m68k.c: Likewise.
8012 * config/mcore/mcore.c: Likewise.
8013 * config/mep/mep-pragma.c: Likewise.
8014 * config/mep/mep.c: Likewise.
8015 * config/microblaze/microblaze-c.c: Likewise.
8016 * config/microblaze/microblaze.c: Likewise.
8017 * config/mips/mips.c: Likewise.
8018 * config/mmix/mmix.c: Likewise.
8019 * config/mn10300/mn10300.c: Likewise.
8020 * config/moxie/moxie.c: Likewise.
8021 * config/msp430/msp430-c.c: Likewise.
8022 * config/msp430/msp430.c: Likewise.
8023 * config/nds32/nds32-cost.c: Likewise.
8024 * config/nds32/nds32-fp-as-gp.c: Likewise.
8025 * config/nds32/nds32-intrinsic.c: Likewise.
8026 * config/nds32/nds32-isr.c: Likewise.
8027 * config/nds32/nds32-md-auxiliary.c: Likewise.
8028 * config/nds32/nds32-memory-manipulation.c: Likewise.
8029 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8030 * config/nds32/nds32-predicates.c: Likewise.
8031 * config/nds32/nds32.c: Likewise.
8032 * config/nios2/nios2.c: Likewise.
8033 * config/nvptx/nvptx.c: Likewise.
8034 * config/pa/pa.c: Likewise.
8035 * config/pdp11/pdp11.c: Likewise.
8036 * config/rl78/rl78-c.c: Likewise.
8037 * config/rl78/rl78.c: Likewise.
8038 * config/rs6000/rs6000-c.c: Likewise.
8039 * config/rs6000/rs6000.c: Likewise.
8040 * config/rx/rx.c: Likewise.
8041 * config/s390/s390-c.c: Likewise.
8042 * config/s390/s390.c: Likewise.
8043 * config/sh/sh-c.c: Likewise.
8044 * config/sh/sh-mem.cc: Likewise.
8045 * config/sh/sh.c: Likewise.
8046 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8047 * config/sh/sh_treg_combine.cc: Likewise.
8048 * config/sol2-c.c: Likewise.
8049 * config/sol2-cxx.c: Likewise.
8050 * config/sol2-stubs.c: Likewise.
8051 * config/sol2.c: Likewise.
8052 * config/sparc/sparc-c.c: Likewise.
8053 * config/sparc/sparc.c: Likewise.
8054 * config/spu/spu-c.c: Likewise.
8055 * config/spu/spu.c: Likewise.
8056 * config/stormy16/stormy16.c: Likewise.
8057 * config/tilegx/mul-tables.c: Likewise.
8058 * config/tilegx/tilegx-c.c: Likewise.
8059 * config/tilegx/tilegx.c: Likewise.
8060 * config/tilepro/mul-tables.c: Likewise.
8061 * config/tilepro/tilepro-c.c: Likewise.
8062 * config/tilepro/tilepro.c: Likewise.
8063 * config/v850/v850-c.c: Likewise.
8064 * config/v850/v850.c: Likewise.
8065 * config/vax/vax.c: Likewise.
8066 * config/visium/visium.c: Likewise.
8067 * config/vms/vms-c.c: Likewise.
8068 * config/vms/vms.c: Likewise.
8069 * config/vxworks.c: Likewise.
8070 * config/winnt-c.c: Likewise.
8071 * config/xtensa/xtensa.c: Likewise.
8072 * common/config/bfin/bfin-common.c: Likewise.
8074 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
8076 * tree.h (tree_code_for_canonical_type_merging): New function.
8077 * tree.c (gimple_canonical_types_compatible_p): Use
8078 tree_code_for_canonical_type_merging..
8080 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8084 * doc/tm.texi: Regenerate.
8085 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
8086 * target.def (TARGET_RELAXED_ORDERING): Likewise.
8087 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
8088 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
8089 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
8090 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
8091 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
8092 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
8093 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
8095 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8097 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
8098 register fma steering pass.
8099 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
8100 AARCH64_TUNE_FMA_STEERING.
8102 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
8104 * tree.c (verify_type_variant): Verify that type and variant is
8106 (gimple_canonical_types_compatible_p): Look for main variants.
8108 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8110 * config.gcc (powerpc*-*-*): Add support for a new configure
8111 option --with-advance-toolchain=<xxx> which overrides using the
8112 default header files, libraries and dynamic linker.
8114 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
8115 specs to support the configure --with-advance-toolchain=<xxx>
8117 (INCLUDE_EXTRA_SPEC): Likewise.
8118 (LINK_OS_EXTRA_SPEC32): Likewise.
8119 (LINK_OK_EXTRA_SPEC64): Likewise.
8120 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
8121 (DYNAMIC_LINKER_PREFIX): Likewise.
8122 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
8124 (GLIBC_DYNAMIC_LINKER32): Likewise.
8125 (GLIBC_DYNAMIC_LINKER64): Likewise.
8126 (LINK_OS_LINUX_SPEC32): Likewise.
8127 (LINK_OS_LINUX_SPEC64): Likewise.
8129 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
8130 configuration option.
8132 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
8135 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
8136 to determine current function ABI.
8137 (ix86_function_value_regno_p): Ditto.
8139 2015-06-03 Martin Liska <mliska@suse.cz>
8141 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
8142 * bitmap.h (struct bitmap_usage): Likewise.
8143 * ggc-common.c (struct ggc_usage): Likewise.
8144 * mem-stats.h (struct mem_location): Likewise.
8145 (struct mem_usage): Likewise.
8146 * vec.c (struct vec_usage): Likewise.
8148 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
8150 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
8153 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
8155 * doc/plugins.texi (enum plugin_event): New event.
8156 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
8157 and PLUGIN_FINISH_FUNCTION.
8158 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
8159 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
8161 2015-06-03 Richard Biener <rguenther@suse.de>
8163 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8164 compute GROUP_GAP for the first element.
8165 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
8168 2015-06-03 Nick Clifton <nickc@redhat.com>
8170 * config/rl78/rl78-real.md: Add peepholes to avoid a register
8171 copy when calling a function.
8172 * config/rl78/rl78.c (need_to_save): Do not push the frame
8173 pointer in an interrupt handler prologue if it is never used.
8175 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8177 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
8179 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8181 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
8182 reference when cloning alias node.
8184 2015-06-03 Martin Liska <mliska@suse.cz>
8186 * alloc-pool.h (struct pool_usage): Correct space padding.
8187 * ggc-page.c (ggc_print_statistics): Align columns in a report.
8188 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
8189 * tree.c (dump_tree_statistics): Align columns in a report.
8191 2015-06-03 Martin Liska <mliska@suse.cz>
8193 * alloc-pool.c (allocate_pool_descriptor): Remove.
8194 (struct pool_output_info): Likewise.
8195 (print_alloc_pool_statistics): Likewise.
8196 (dump_alloc_pool_statistics): Likewise.
8197 * alloc-pool.h (struct pool_usage): New struct.
8198 (pool_allocator::initialize): Change usage of memory statistics
8200 (pool_allocator::release): Likewise.
8201 (pool_allocator::allocate): Likewise.
8202 (pool_allocator::remove): Likewise.
8203 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
8204 for a pool allocator.
8205 * mem-stats.h (struct mem_location): Add new ctor.
8206 (struct mem_usage): Add counter for number of
8208 (mem_alloc_description::register_descriptor): New overload of
8209 * mem-stats.h (mem_location::to_string): New function.
8210 * bitmap.h (struct bitmap_usage): Use this new function.
8211 * ggc-common.c (struct ggc_usage): Likewise.
8214 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8216 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
8217 of GCC_INSN_FLAGS_H block.
8219 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
8221 * explow.c (plus_constant): Update check after force_const_mem call
8222 to see if the value returned is not a NULL_RTX.
8224 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
8226 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
8227 remove instumentation thunks calling reachable functions.
8228 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
8229 * lto/lto-partition.c (privatize_symbol_name_1): New.
8230 (privatize_symbol_name): Privatize both decl and orig_decl
8231 names for instrumented functions.
8232 * cgraph.c (cgraph_node::verify_node): Add transparent
8233 alias chain check for instrumented node.
8235 2015-06-03 Marek Polacek <polacek@redhat.com>
8239 * tree.c (attribute_value_equal): Handle attribute format.
8240 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
8242 2015-06-03 Richard Biener <rguenther@suse.de>
8244 PR tree-optimization/63916
8245 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8246 Forward-propagate non-invariant addresses by splicing their
8247 reference ops if the result isn't going to be used by PRE.
8248 (vn_reference_lookup_3): Remove pointless assert.
8250 2015-06-03 Richard Biener <rguenther@suse.de>
8252 PR tree-optimization/66375
8253 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
8254 add to the evolution before following SSA edges.
8256 2015-06-03 Bin Cheng <bin.cheng@arm.com>
8258 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
8259 (dump_use, dump_cand, find_induction_variables): Pass new argument
8261 (record_use): Preserve the ssa name information in IV.
8263 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
8265 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
8267 (add_mode_tests): Don't add mode tests if the predicate only
8268 accepts scalar constant integers. Otherwise, allow the mode
8269 of "op" to be VOIDmode if the predicate does accept such integers.
8271 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
8274 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
8275 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
8276 (aarch64_secondary_reload): Likewise
8277 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
8279 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
8282 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
8283 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8286 * cprop.c (try_replace_reg): Check cost of constants before propagating.
8288 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8290 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
8291 provide access to the IBM extended double floating point mode if
8292 long double is IEEE 128-bit floating point.
8293 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
8294 point if long double is the IBM extended double type.
8296 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
8297 enable adding IEEE 128-bit floating point support.
8298 (-mfloat128-software): Likewise.
8299 (-mfloat128-sw): Likewise.
8301 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
8302 128-bit floating point types to occupy any register if
8303 -mlong-double-64. Do not allow use of IFmode/KFmode unless
8304 -mfloat128-software is enabled.
8305 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
8307 (rs6000_option_override_internal): Add -mfloat128-* support.
8308 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
8310 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
8311 and float128 type nodes.
8312 (ieee128_float_type_node): Likewise.
8313 (ibm128_float_type_node): Likewise.
8315 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
8318 * config/aarch64/geniterators.sh: Rewrite in awk.
8320 2015-06-02 Martin Liska <mliska@suse.cz>
8322 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
8323 values to avoid -Wmaybe-uninitialized errors.
8325 2015-06-02 Richard Biener <rguenther@suse.de>
8328 * dwarf2out.c (lookup_context_die): New function.
8329 (resolve_addr): Avoid forcing a full DIE for the
8330 target of a DW_TAG_GNU_call_site during late compilation.
8331 Instead create a stub DIE without a type if we have a
8332 context DIE present.
8334 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
8336 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
8338 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8340 PR tree-optimization/48052
8341 * cfgloop.h (struct control_iv): New.
8342 (struct loop): New field control_ivs.
8343 * tree-ssa-loop-niter.c : Include "stor-layout.h".
8344 (number_of_iterations_lt): Set no_overflow information.
8345 (number_of_iterations_exit): Init control iv in niter struct.
8346 (record_control_iv): New.
8347 (estimate_numbers_of_iterations_loop): Call record_control_iv.
8348 (loop_exits_before_overflow): New. Interface factored out of
8349 scev_probably_wraps_p.
8350 (scev_probably_wraps_p): Factor loop niter related code into
8351 loop_exits_before_overflow.
8352 (free_numbers_of_iterations_estimates_loop): Free control ivs.
8353 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
8355 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
8357 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
8358 the target doesn't belong to the current function.
8360 2015-06-02 Marek Polacek <polacek@redhat.com>
8363 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
8364 get_maxval_strlen does not produce an INTEGER_CST.
8366 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
8368 * config/arc/constraints.md: Use lower-case names in match_code.
8369 * config/mmix/constraints.md: Likewise.
8371 2015-06-02 Richard Biener <rguenther@suse.de>
8373 PR tree-optimization/65961
8374 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
8375 check and clarify dump message.
8376 (vect_build_slp_tree): If all children are built up from scalars
8377 build up the parent from scalars instead.
8378 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
8380 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8383 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
8384 instead of print ... .
8386 2015-06-02 Alan Modra <amodra@gmail.com>
8388 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
8391 2015-06-02 Bin Cheng <bin.cheng@arm.com>
8393 PR tree-optimization/52563
8394 PR tree-optimization/62173
8395 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
8396 (alloc_iv, set_iv): New parameter.
8397 (determine_biv_step): Delete.
8398 (find_bivs): Inline original determine_biv_step. Pass new
8400 (idx_find_step): Use no_overflow information for conversion.
8401 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
8402 resolve_mixers handle folded_casts.
8403 (instantiate_scev_name): Change bool parameter to bool pointer.
8404 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
8405 (instantiate_array_ref, instantiate_scev_not): Ditto.
8406 (instantiate_scev_3, instantiate_scev_2): Ditto.
8407 (instantiate_scev_1, instantiate_scev_r): Ditto.
8408 (instantiate_scev_convert, ): Change parameter. Pass argument
8409 to chrec_convert_aggressive.
8410 (instantiate_scev): Change argument.
8411 (resolve_mixers): New parameter and set it.
8412 (scev_const_prop): New argument.
8413 * tree-scalar-evolution.h (resolve_mixers): New parameter.
8414 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
8416 (chrec_convert): New parameter. Move definition below.
8417 (chrec_convert_aggressive): New parameter and set it. Call
8418 convert_affine_scev.
8419 * tree-chrec.h (chrec_convert): New parameter.
8420 (chrec_convert_aggressive): Ditto.
8422 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8424 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
8425 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
8426 the LHS of a no-return call if its type has variable size.
8427 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
8428 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
8430 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
8432 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
8433 * config.in: Regenerate.
8435 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
8437 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8438 consecutive accesses within outer-loop with force_vectorize
8439 for references with zero step in inner-loop.
8441 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8443 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
8444 rather than from gcc/build directory.
8446 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8449 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
8450 for __sync memory models, emit initial loads and final barriers as
8453 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
8456 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
8457 (aarch64_split_atomic_op): Check for __sync memory models, emit
8458 appropriate initial loads and final barriers.
8460 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
8462 * Makefile.in: Fix gcov dependencies that should
8463 not point to a build folder.
8465 2015-06-01 Richard Biener <rguenther@suse.de>
8468 2015-05-29 Richard Biener <rguenther@suse.de>
8470 PR tree-optimization/66314
8471 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8472 parameter that says which loop the new block belongs to.
8473 (ssa_create_duplicates): Blocks duplicated for the threaded
8474 path belong to the loop of the thread destination.
8476 2015-06-01 Martin Liska <mliska@suse.cz>
8478 * sched-deps.c: Include pool-alloc.h before
8479 cselib.h header file is included.
8481 2015-06-01 Richard Biener <rguenther@suse.de>
8483 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
8486 2015-06-01 Martin Liska <mliska@suse.cz>
8488 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
8489 a function local variable.
8491 2015-06-01 Martin Liska <mliska@suse.cz>
8493 * alloc-pool.c (create_alloc_pool): Remove.
8494 (empty_alloc_pool): Likewise.
8495 (free_alloc_pool): Likewise.
8496 (free_alloc_pool_if_empty): Likewise.
8497 (pool_alloc): Likewise.
8498 (pool_free): Likewise.
8499 * alloc-pool.h: Remove old declarations.
8501 2015-06-01 Martin Liska <mliska@suse.cz>
8503 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
8504 (ira_create_object): Likewise.
8505 (ira_create_allocno): Likewise.
8506 (ira_create_live_range): Likewise.
8507 (copy_live_range): Likewise.
8508 (ira_finish_live_range): Likewise.
8509 (ira_free_allocno_costs): Likewise.
8510 (finish_allocno): Likewise.
8511 (finish_allocnos): Likewise.
8512 (initiate_prefs): Likewise.
8513 (ira_create_pref): Likewise.
8514 (finish_pref): Likewise.
8515 (finish_prefs): Likewise.
8516 (initiate_copies): Likewise.
8517 (ira_create_copy): Likewise.
8518 (finish_copy): Likewise.
8519 (finish_copies): Likewise.
8520 (finish_prefs): Likewise.
8522 2015-06-01 Martin Liska <mliska@suse.cz>
8524 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
8525 (allocate_and_init_ipcp_value): Likewise.
8526 (ipcp_lattice::add_value): Likewise.
8527 (merge_agg_lats_step): Likewise.
8528 (ipcp_driver): Likewise.
8529 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
8530 (ipa_free_all_structures_after_iinln): Likewise.
8531 * ipa-prop.h: Likewise.
8533 2015-06-01 Martin Liska <mliska@suse.cz>
8535 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
8537 (set_hint_predicate): Likewise.
8538 (inline_summary_alloc): Likewise.
8539 (reset_inline_edge_summary): Likewise.
8540 (reset_inline_summary): Likewise.
8541 (set_cond_stmt_execution_predicate): Likewise.
8542 (set_switch_stmt_execution_predicate): Likewise.
8543 (compute_bb_predicates): Likewise.
8544 (estimate_function_body_sizes): Likewise.
8545 (inline_free_summary): Likewise.
8547 2015-06-01 Martin Liska <mliska@suse.cz>
8549 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
8550 (ipa_edge_duplication_hook): Likewise.
8551 (ipa_free_all_structures_after_ipa_cp): Likewise.
8552 (ipa_free_all_structures_after_iinln): Likewise.
8554 2015-06-01 Martin Liska <mliska@suse.cz>
8556 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
8557 (ipa_profile_generate_summary): Likewise.
8558 (ipa_profile_read_summary): Likewise.
8559 (ipa_profile): Likewise.
8561 2015-06-01 Martin Liska <mliska@suse.cz>
8563 * tree-ssa-structalias.c (new_var_info): Use new type-based
8565 (new_constraint): Likewise.
8566 (init_alias_vars): Likewise.
8567 (delete_points_to_sets): Likewise.
8569 2015-06-01 Martin Liska <mliska@suse.cz>
8571 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
8572 (free_strinfo): Likewise.
8573 (pass_strlen::execute): Likewise.
8575 2015-06-01 Martin Liska <mliska@suse.cz>
8577 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
8579 (vn_reference_insert_pieces): Likewise.
8580 (vn_phi_insert): Likewise.
8581 (visit_reference_op_call): Likewise.
8582 (copy_phi): Likewise.
8583 (copy_reference): Likewise.
8584 (process_scc): Likewise.
8585 (allocate_vn_table): Likewise.
8586 (free_vn_table): Likewise.
8588 2015-06-01 Martin Liska <mliska@suse.cz>
8590 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
8592 (add_repeat_to_ops_vec): Likewise.
8593 (get_ops): Likewise.
8594 (maybe_optimize_range_tests): Likewise.
8595 (init_reassoc): Likewise.
8596 (fini_reassoc): Likewise.
8598 2015-06-01 Martin Liska <mliska@suse.cz>
8600 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
8602 (bitmap_set_new): Likewise.
8603 (get_or_alloc_expr_for_constant): Likewise.
8604 (get_or_alloc_expr_for): Likewise.
8605 (phi_translate_1): Likewise.
8606 (compute_avail): Likewise.
8607 (init_pre): Likewise.
8608 (fini_pre): Likewise.
8610 2015-06-01 Martin Liska <mliska@suse.cz>
8612 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
8613 (delete_dep_node): Likewise.
8614 (create_deps_list): Likewise.
8615 (free_deps_list): Likewise.
8616 (sched_deps_init): Likewise.
8617 (sched_deps_finish): Likewise.
8619 2015-06-01 Martin Liska <mliska@suse.cz>
8621 * regcprop.c (free_debug_insn_changes): Use new type-based
8623 (replace_oldest_value_reg): Likewise.
8624 (pass_cprop_hardreg::execute): Likewise.
8626 2015-06-01 Martin Liska <mliska@suse.cz>
8628 * ira-build.c (initiate_cost_vectors): Use new type-based
8630 (ira_allocate_cost_vector): Likewise.
8631 (ira_free_cost_vector): Likewise.
8632 (finish_cost_vectors): Likewise.
8634 2015-06-01 Martin Liska <mliska@suse.cz>
8636 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
8638 (free_sched_pools): Likewise.
8639 * sel-sched-ir.h (_list_alloc): Likewise.
8640 (_list_remove): Likewise.
8642 2015-06-01 Martin Liska <mliska@suse.cz>
8644 * stmt.c (add_case_node): Use new type-based pool allocator.
8645 (expand_case): Likewise.
8646 (expand_sjlj_dispatch_table): Likewise.
8648 2015-06-01 Martin Liska <mliska@suse.cz>
8650 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
8651 (free_bb): Likewise.
8652 (pass_cse_reciprocals::execute): Likewise.
8654 2015-06-01 Martin Liska <mliska@suse.cz>
8656 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
8657 (sra_deinitialize) Likewise.
8658 (create_access_1) Likewise.
8659 (build_accesses_from_assign) Likewise.
8660 (create_artificial_child_access) Likewise.
8662 2015-06-01 Martin Liska <mliska@suse.cz>
8664 * dse.c (get_group_info):Use new type-based pool allocator.
8665 (dse_step0) Likewise.
8666 (free_store_info) Likewise.
8667 (delete_dead_store_insn) Likewise.
8668 (free_read_records) Likewise.
8669 (record_store) Likewise.
8670 (replace_read) Likewise.
8671 (check_mem_read_rtx) Likewise.
8672 (scan_insn) Likewise.
8673 (dse_step1) Likewise.
8674 (dse_step7) Likewise.
8676 2015-06-01 Martin Liska <mliska@suse.cz>
8678 * df-scan.c (struct df_scan_problem_data):Use new type-based
8680 (df_scan_free_internal) Likewise.
8681 (df_scan_alloc) Likewise.
8682 (df_grow_reg_info) Likewise.
8683 (df_free_ref) Likewise.
8684 (df_insn_create_insn_record) Likewise.
8685 (df_mw_hardreg_chain_delete) Likewise.
8686 (df_insn_info_delete) Likewise.
8687 (df_free_collection_rec) Likewise.
8688 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
8689 (df_sort_and_compress_mws) Likewise.
8690 (df_ref_create_structure) Likewise.
8691 (df_ref_record) Likewise.
8693 2015-06-01 Martin Liska <mliska@suse.cz>
8695 * df-problems.c (df_chain_create):Use new type-based pool allocator.
8696 (df_chain_unlink_1) Likewise.
8697 (df_chain_unlink) Likewise.
8698 (df_chain_remove_problem) Likewise.
8699 (df_chain_alloc) Likewise.
8700 (df_chain_free) Likewise.
8701 * df.h (struct dataflow) Likewise.
8703 2015-06-01 Martin Liska <mliska@suse.cz>
8705 * cselib.c (new_elt_list):Use new type-based pool allocator.
8706 (new_elt_loc_list) Likewise.
8707 (unchain_one_elt_list) Likewise.
8708 (unchain_one_elt_loc_list) Likewise.
8709 (unchain_one_value) Likewise.
8710 (new_cselib_val) Likewise.
8711 (cselib_init) Likewise.
8712 (cselib_finish) Likewise.
8714 2015-06-01 Martin Liska <mliska@suse.cz>
8716 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
8717 (sh_reorg) Likewise.
8719 2015-06-01 Martin Liska <mliska@suse.cz>
8721 * cfg.c (initialize_original_copy_tables):Use new type-based
8723 (free_original_copy_tables) Likewise.
8724 (copy_original_table_clear) Likewise.
8725 (copy_original_table_set) Likewise.
8727 2015-06-01 Martin Liska <mliska@suse.cz>
8729 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
8731 (asan_mem_ref_new) Likewise.
8732 (free_mem_ref_resources) Likewise.
8734 2015-06-01 Martin Liska <mliska@suse.cz>
8736 * var-tracking.c (variable_htab_free):Use new type-based
8738 (attrs_list_clear) Likewise.
8739 (attrs_list_insert) Likewise.
8740 (attrs_list_copy) Likewise.
8741 (shared_hash_unshare) Likewise.
8742 (shared_hash_destroy) Likewise.
8743 (unshare_variable) Likewise.
8744 (var_reg_delete_and_set) Likewise.
8745 (var_reg_delete) Likewise.
8746 (var_regno_delete) Likewise.
8747 (drop_overlapping_mem_locs) Likewise.
8748 (variable_union) Likewise.
8749 (insert_into_intersection) Likewise.
8750 (canonicalize_values_star) Likewise.
8751 (variable_merge_over_cur) Likewise.
8752 (dataflow_set_merge) Likewise.
8753 (remove_duplicate_values) Likewise.
8754 (variable_post_merge_new_vals) Likewise.
8755 (dataflow_set_preserve_mem_locs) Likewise.
8756 (dataflow_set_remove_mem_locs) Likewise.
8757 (variable_from_dropped) Likewise.
8758 (variable_was_changed) Likewise.
8759 (set_slot_part) Likewise.
8760 (clobber_slot_part) Likewise.
8761 (delete_slot_part) Likewise.
8762 (loc_exp_insert_dep) Likewise.
8763 (notify_dependents_of_changed_value) Likewise.
8764 (emit_notes_for_differences_1) Likewise.
8765 (vt_emit_notes) Likewise.
8766 (vt_initialize) Likewise.
8767 (vt_finalize) Likewise.
8769 2015-06-01 Martin Liska <mliska@suse.cz>
8771 * ira-color.c (init_update_cost_records):Use new type-based
8773 (get_update_cost_record) Likewise.
8774 (free_update_cost_record_list) Likewise.
8775 (finish_update_cost_records) Likewise.
8776 (initiate_cost_update) Likewise.
8778 2015-06-01 Martin Liska <mliska@suse.cz>
8780 * lra.c (init_insn_regs): Use new type-based pool allocator.
8781 (new_insn_reg) Likewise.
8782 (free_insn_reg) Likewise.
8783 (free_insn_regs) Likewise.
8784 (finish_insn_regs) Likewise.
8785 (init_insn_recog_data) Likewise.
8786 (init_reg_info) Likewise.
8787 (finish_reg_info) Likewise.
8788 (lra_free_copies) Likewise.
8789 (lra_create_copy) Likewise.
8790 (invalidate_insn_data_regno_info) Likewise.
8792 2015-06-01 Martin Liska <mliska@suse.cz>
8794 * lra-lives.c (free_live_range): Use new type-based pool allocator.
8795 (free_live_range_list) Likewise.
8796 (create_live_range) Likewise.
8797 (copy_live_range) Likewise.
8798 (lra_merge_live_ranges) Likewise.
8799 (remove_some_program_points_and_update_live_ranges) Likewise.
8800 (lra_live_ranges_init) Likewise.
8801 (lra_live_ranges_finish) Likewise.
8803 2015-06-01 Martin Liska <mliska@suse.cz>
8805 * et-forest.c (et_new_occ): Use new type-based pool allocator.
8806 (et_new_tree): Likewise.
8807 (et_free_tree): Likewise.
8808 (et_free_tree_force): Likewise.
8809 (et_free_pools): Likewise.
8810 (et_split): Likewise.
8812 2015-06-01 Martin Liska <mliska@suse.cz>
8814 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
8816 * alloc-pool.h (pool_allocator::pool_allocator): New function.
8817 (pool_allocator::release): Likewise.
8818 (inline pool_allocator::release_if_empty): Likewise.
8819 (inline pool_allocator::~pool_allocator): Likewise.
8820 (pool_allocator::allocate): Likewise.
8821 (pool_allocator::remove): Likewise.
8823 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8825 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
8828 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8830 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
8832 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
8833 (arm_macro_fusion_p): Likewise.
8834 (arm_macro_fusion_pair_p): Likewise.
8836 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
8838 * config/aarch64/aarch64-protos.h (tune_params): Rename
8839 fuseable_ops to fusible_ops.
8840 * config/aarch64/aarch64.c (generic_tunings): Rename
8841 fuseable_ops to fusible_ops.
8842 (cortexa53_tunings): Likewise.
8843 (cortexa57_tunings): Likewise.
8844 (thunderx_tunings): Likewise.
8845 (xgene1_tunings): Likewise.
8846 (aarch64_macro_fusion_p): Likewise.
8847 (aarch64_macro_fusion_pair_p): Likewise.
8849 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
8851 * config/s390/driver-native.c: New file.
8852 * config/s390/x-native: New file.
8853 * config.host: Add new files for s390.
8854 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
8856 * config.gcc: Likewise.
8857 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
8858 * config/s390/s390-opts.h (enum processor_type): Ditto.
8859 * config/s390/s390.c (s390_option_override): Catch unhandled
8862 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
8865 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
8866 redirection for instrumented calls.
8867 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
8868 (append_compiler_options): Append -fcheck-pointer-bounds.
8869 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
8870 (chkp_redirect_edge): New.
8871 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
8872 (chkp_redirect_edge): New.
8874 2015-06-01 Richard Biener <rguenther@suse.de>
8876 PR tree-optimization/66280
8877 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
8880 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8882 * config/aarch64/aarch64.md
8883 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
8886 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
8888 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
8889 Remove obsolete kludge.
8891 2015-06-01 Richard Biener <rguenther@suse.de>
8893 * tree-ssa-reassoc.c (get_rank): Simplify.
8895 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
8897 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
8898 * configure: Regenerated.
8900 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
8902 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
8903 issue (add space between string literal and macro).
8904 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
8906 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
8908 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
8909 implict or explicit -fPIE or -fpie.
8911 2015-05-30 Mike Frysinger <vapier@gentoo.org>
8913 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
8915 2015-05-28 DJ Delorie <dj@redhat.com>
8917 * expmed.c (extract_bit_field_1): Avoid clobbering a
8918 yet-to-be-used base/index register.
8920 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
8922 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
8923 (alias_stats): Add num_universal.
8924 (alias_set_subset_of): Special case pointers; be ready for NULL
8926 (alias_sets_conflict_p): Special case pointers; be ready for NULL
8928 (init_alias_set_entry): Break out from ...
8929 (record_alias_subset): ... here; propagate new fields;
8930 allocate children only when really needed.
8931 (get_alias_set): Do less generous pointer globbing.
8932 (dump_alias_stats_in_alias_c): Update statistics.
8934 2015-05-30 Alan Modra <amodra@gmail.com>
8936 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
8937 correct block for use of r12.
8938 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
8940 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
8943 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
8946 2015-05-29 Jakub Jelinek <jakub@redhat.com>
8948 PR tree-optimization/66142
8949 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
8950 virtual phis that feed themselves.
8952 2015-05-29 Richard Biener <rguenther@suse.de>
8954 PR tree-optimization/66314
8955 * tree-ssa-threadupdate.c (create_block_for_threading): Add
8956 parameter that says which loop the new block belongs to.
8957 (ssa_create_duplicates): Blocks duplicated for the threaded
8958 path belong to the loop of the thread destination.
8960 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8962 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
8963 to cleanup-saved-temps.
8964 * doc/sourcebuild.texi (Clean up generated test files): Expand
8966 (dg-keep-saved-temps): Document new proc.
8967 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
8968 cleanup-saved-temps): Remove.
8970 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
8972 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
8974 * configure: Regenerate.
8976 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8978 * config/nios2/linux.h (CPP_SPEC): Define.
8980 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8982 * config/microblaze/linux.h (CPP_SPEC): Define.
8984 2015-05-28 Mike Frysinger <vapier@gentoo.org>
8986 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
8987 -pthread is specified.
8989 2015-05-28 Richard Biener <rguenther@suse.de>
8991 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
8992 (vect_fixup_scalar_cycles_with_patterns): Likewise.
8993 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
8994 after pattern recog.
8995 (vect_create_epilog_for_reduction): Properly handle reductions
8997 (vectorizable_reduction): Likewise.
8998 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
9000 (vect_get_constant_vectors): Create the correct number of
9001 initial values for reductions.
9002 (vect_schedule_slp_instance): Handle reduction chains that are
9003 type changing properly.
9004 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
9006 2015-05-28 Richard Biener <rguenther@suse.de>
9008 PR tree-optimization/66142
9009 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
9010 values better in memcpy destination handling. Handle non-aliasing
9013 2015-05-28 Lawrence Velázquez <vq@larryv.me>
9016 * config/darwin-c.c (version_components): New global enum.
9017 (parse_version, version_as_legacy_macro)
9018 (version_as_modern_macro, macosx_version_as_macro): New functions.
9019 (version_as_macro): Remove.
9020 (darwin_cpp_builtins): Use new function.
9022 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
9024 * builtins.c (expand_builtin_acc_on_device): Mark parameters
9025 with ATTRIBUTE_UNUSED.
9027 2015-05-28 Julian Brown <julian@codesourcery.com>
9031 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
9032 sequence for !ACCEL_COMPILER.
9034 2015-05-28 Nick Clifton <nickc@redhat.com>
9036 * config/rx/rx.c (push_regs): New function. Extracts code from...
9037 (rx_expand_prologue): ... here. Use push_regs to push even small
9039 (pop_regs): New function.
9040 (rx_expand_epilogue): Use pop_regs to pop even small spans of
9043 2015-05-28 Richard Biener <rguenther@suse.de>
9045 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
9047 (SLP_INSTANCE_BODY_COST_VEC): Remove.
9048 (vect_update_slp_costs_according_to_vf): Likewise.
9049 (vect_slp_analyze_operations): Update prototype.
9050 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
9051 vect_update_slp_costs_according_to_vf, adjust.
9052 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
9053 (vect_analyze_slp_cost_1): Likewise.
9054 (vect_analyze_slp_cost): Likewise. Properly deal with
9055 widening reduction ops. Commit body costs.
9056 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
9057 cost for loops from here.
9058 (vect_slp_analyze_operations): But do it from here when
9059 the vectorization factor is known and stmts are analyzed.
9060 (vect_bb_vectorization_profitable_p): Simplify.
9061 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
9062 (vect_update_slp_costs_according_to_vf): Remove.
9064 2015-05-27 Magnus Granberg <zorry@gentoo.org>
9065 H.J. Lu <hongjiu.lu@intel.com>
9067 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
9068 (BUILD_CFLAGS): Likewise.
9069 (BUILD_CXXFLAGS): Likewise.
9070 (LINKER): Add @NO_PIE_FLAG@.
9071 (BUILD_LDFLAGS): Likewise.
9072 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
9073 --enable-default-pie.
9074 * common.opt (fPIE): Initialize to -1.
9076 (no-pie): New option.
9077 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
9078 * configure.ac: Add --enable-default-pie.
9079 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
9080 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
9081 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
9082 * gcc.c (NO_PIE_SPEC): New.
9083 (PIE_SPEC): Likewise.
9084 (NO_FPIE1_SPEC): Likewise.
9085 (FPIE1_SPEC): Likewise.
9086 (NO_FPIE2_SPEC): Likewise.
9087 (FPIE2_SPEC): Likewise.
9088 (NO_FPIE2_SPEC): Likewise.
9089 (FPIE_SPEC): Likewise.
9090 (NO_FPIE_SPEC): Likewise.
9091 (NO_FPIC1_SPEC): Likewise.
9092 (FPIC1_SPEC): Likewise.
9093 (NO_FPIC2_SPEC): Likewise.
9094 (FPIC2_SPEC): Likewise.
9095 (NO_FPIC2_SPEC): Likewise.
9096 (FPIC_SPEC): Likewise.
9097 (NO_FPIC_SPEC): Likewise.
9098 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
9099 (FPIE1_OR_FPIC1_SPEC): Likewise.
9100 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
9101 (FPIE2_OR_FPIC2_SPEC): Likewise.
9102 (NO_FPIE_AND_FPIC_SPEC): Likewise.
9103 (FPIE_OR_FPIC_SPEC): Likewise.
9104 (LD_PIE_SPEC): Likewise.
9105 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
9106 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
9107 * config/darwin.h (PIE_SPEC): Renamed to ...
9108 (DARWIN_PIE_SPEC): This.
9109 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
9110 * config/darwin9.h (PIE_SPEC): Renamed to ...
9111 (DARWIN_PIE_SPEC): This.
9112 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
9113 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9114 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
9115 FPIE2_OR_FPIC2_SPEC.
9116 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
9117 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
9118 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
9119 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9120 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9121 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
9122 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
9123 * config/m32r/m32r.h (ASM_SPEC): Likewise.
9124 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
9125 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9126 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
9127 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
9128 * config/sparc/linux.h (ASM_SPEC): Likewise.
9129 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9130 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
9131 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
9132 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9133 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9134 * config/sparc/sparc.h (ASM_SPEC): Likewise.
9135 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
9136 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
9137 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
9138 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
9139 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
9140 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
9141 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
9142 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
9143 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
9144 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
9145 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
9146 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
9147 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9148 * config/vax/linux.h (ASM_SPEC): Likewise.
9149 * doc/install.texi: Document --enable-default-pie.
9150 * doc/invoke.texi: Document -no-pie.
9151 * config.in: Regenerated.
9152 * configure: Likewise.
9154 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
9156 PR rtl-optimization/66168
9157 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
9158 can_move_invariant_reg.
9160 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
9163 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
9164 REG_EQUAL note when doing insert.
9166 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
9167 instead of "%d" for 'o' operand.
9169 2015-05-27 Nathan Sidwell <nathan@acm.org>
9172 * tree.c (build_pointer_type_for_mode): Canonical type does not
9173 inherit can_alias_all.
9174 (build_reference_type_for_mode): Likewise.
9176 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
9178 * expr.h (array_at_struct_end_p): Move to...
9179 (array_ref_element_size): Likewise.
9180 (component_ref_field_offset): Likewise.
9181 * tree.h (array_ref_element_size): ...here.
9182 (array_at_struct_end_p): Likewise.
9183 (component_ref_field_offset): Likewise.
9184 * expr.c (array_ref_element_size): Move to...
9185 (array_ref_low_bound): Likewise.
9186 (array_at_struct_end_p): Likewise.
9187 (array_ref_up_bound): Likewise.
9188 (component_ref_field_offset): Likewise.
9189 * tree.c (array_ref_element_size): ...here.
9190 (array_ref_low_bound): Likewise.
9191 (array_ref_up_bound): Likewise.
9192 (array_at_struct_end_p): Likewise.
9193 (component_ref_field_offset): Likewise.
9195 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9196 Szabolcs Nagy <szabolcs.nagy@arm.com>
9198 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
9200 2015-05-27 Jason Merrill <jason@redhat.com>
9203 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
9204 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
9205 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
9207 2015-05-22 Aditya Kumar <hiraditya@msn.com>
9209 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
9212 * statistics.c (statistics_fini_pass): Print pass name.
9214 2015-05-27 Richard Biener <rguenther@suse.de>
9216 PR tree-optimization/66272
9218 2014-08-15 Richard Biener <rguenther@suse.de>
9220 PR tree-optimization/62031
9221 * tree-data-ref.c (dr_analyze_indices): Do not set
9222 DR_UNCONSTRAINED_BASE.
9223 (dr_may_alias_p): All indirect accesses have to go the
9224 formerly DR_UNCONSTRAINED_BASE path.
9225 * tree-data-ref.h (struct indices): Remove
9226 unconstrained_base member.
9227 (DR_UNCONSTRAINED_BASE): Remove.
9229 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
9231 * dwarf2out.c: Remove block_map.
9232 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
9233 (gen_lexical_block_die): Same.
9234 (dwarf2out_function_decl): Remove block_map use.
9235 (dwarf2out_c_finalize): Same.
9236 * tree-core.h (struct tree_block): Add die field.
9237 * tree.h (BLOCK_DIE): New.
9239 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9242 * expr.c (memory_load_overlap): New function.
9243 (emit_push_insn): When pushing partial args to the stack would
9244 clobber the register part load the overlapping part into a pseudo
9245 and put it into the hard reg after pushing. Change return type
9246 to bool. Add bool argument.
9247 * expr.h (emit_push_insn): Change return type to bool.
9249 * calls.c (expand_call): Cancel sibcall optimization when encountering
9250 partial argument on targets with ARGS_GROW_DOWNWARD and
9251 !STACK_GROWS_DOWNWARD.
9252 (emit_library_call_value_1): Update callsite of emit_push_insn.
9253 (store_one_arg): Likewise.
9255 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
9257 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
9259 2015-05-27 Martin Liska <mliska@suse.cz>
9261 * Makefile.in: Add additional dependencies related to memory report
9263 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
9264 * bitmap.c (struct bitmap_descriptor_d): Remove.
9265 (struct loc): Likewise.
9266 (struct bitmap_desc_hasher): Likewise.
9267 (bitmap_desc_hasher::hash): Likewise.
9268 (bitmap_desc_hasher::equal): Likewise.
9269 (get_bitmap_descriptor): Likewise.
9270 (bitmap_register): User new memory descriptor API.
9271 (register_overhead): Likewise.
9272 (bitmap_find_bit): Register nsearches and search_iter statistics.
9273 (struct bitmap_output_info): Remove.
9274 (print_statistics): Likewise.
9275 (dump_bitmap_statistics): Use new memory descriptor.
9276 * bitmap.h (struct bitmap_usage): New class.
9277 * genmatch.c: Extend header file inclusion.
9278 * genpreds.c: Likewise.
9279 * ggc-common.c (struct ggc_usage): New class.
9280 (struct ggc_loc_desc_hasher): Remove.
9281 (ggc_loc_desc_hasher::hash): Likewise.
9282 (ggc_loc_desc_hasher::equal): Likewise.
9283 (struct ggc_ptr_hash_entry): Likewise.
9284 (struct ptr_hash_hasher): Likewise.
9285 (ptr_hash_hasher::hash): Likewise.
9286 (ptr_hash_hasher::equal): Likewise.
9287 (make_loc_descriptor): Likewise.
9288 (ggc_prune_ptr): Likewise.
9289 (dump_ggc_loc_statistics): Use new memory descriptor.
9290 (ggc_record_overhead): Likewise.
9291 (ggc_free_overhead): Likewise.
9292 (final_cmp_statistic): Remove.
9293 (cmp_statistic): Likewise.
9294 (ggc_add_statistics): Liekwise.
9295 (ggc_prune_overhead_list): Likewise.
9296 * hash-map-traits.h: New file.
9297 * hash-map.h (struct default_hashmap_traits): Move the traits to a
9298 separate header file.
9299 * hash-set.h: Pass memory statistics info to ctor.
9300 * hash-table.c (void dump_hash_table_loc_statistics): New function.
9301 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
9302 (hash_table::~hash_table): Register memory release operation.
9303 (hash_table::alloc_entries): Handle memory allocation operation.
9304 (hash_table::expand): Likewise.
9305 * inchash.c (iterative_hash_hashval_t): Move implementation to header
9307 (iterative_hash_host_wide_int): Likewise.
9308 * inchash.h (class hash): Likewise.
9309 * mem-stats-traits.h: New file.
9310 * mem-stats.h: New file.
9311 (mem_location): Add new class.
9312 (mem_usage): Likewise.
9313 (mem_alloc_description): Likewise.
9314 * sese.c: Add new header file inclusision.
9315 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
9317 * tree-sra.c: Add new header file inclusision.
9318 * vec.c (struct vec_descriptor): Remove.
9319 (hash_descriptor): Likewise.
9320 (struct vec_usage): Likewise.
9321 (struct ptr_hash_entry): Likewise.
9322 (hash_ptr): Likewise.
9324 (vec_prefix::register_overhead): Use new memory descriptor API.
9325 (vec_prefix::release_overhead): Likewise.
9326 (add_statistics): Remove.
9327 (dump_vec_loc_statistics): Use new memory descriptor API.
9328 * vec.h (struct vec_prefix): Likewise.
9329 (va_heap::reserve): Likewise.
9330 (va_heap::release): Likewise.
9331 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
9333 2015-05-27 Richard Biener <rguenther@suse.de>
9335 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
9336 earlier and remove ??? comment.
9337 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
9338 and got called from loop analysis bail out. Always pass the SLP
9339 node to the vectorizable_* functions.
9340 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
9341 the premature SLP check here.
9342 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
9344 (vect_detect_hybrid_slp_1): Likewise.
9346 2015-05-26 Jeff Law <law@redhat.com>
9348 * combine.c (find_split_point): Verify that the shift count is a
9349 constant when choosing (plus (ashift ...)) as a split point.
9351 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
9352 No functional changes.
9354 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
9356 * ipa-polymorphic-call.c
9357 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
9358 case when call target is already known.
9360 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
9363 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
9364 take into account the case that operands[1] and operands[2]
9365 are the same register.
9367 2015-05-26 Michael Matz <matz@suse.de>
9371 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
9373 (vect_create_vectorized_demotion_stmts): Always set
9374 STMT_VINFO_VEC_STMT, also with SLP.
9375 (vectorizable_store): Handle strided group stores.
9377 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9380 * config/aarch64/aarch64.md
9381 (*adds_shift_imm_<mode>): New pattern.
9382 (*subs_shift_imm_<mode>): Likewise.
9383 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9384 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
9385 (*add_uxt<mode>_shift2): Likewise.
9386 (*add_uxtsi_shift2_uxtw): Likewise.
9387 (*sub_uxt<mode>_shift2): Likewise.
9388 (*sub_uxtsi_shift2_uxtw): Likewise.
9390 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
9392 * config/rs6000/constraints.md (Y, U): Use match_test.
9394 2015-05-26 Christian Bruel <christian.bruel@st.com>
9397 * config/arm/arm.c (arm_option_check_internal)
9398 (arm_option_params_internal): Check opts->target_flags to set macros.
9399 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9400 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
9401 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9402 (builtin_define): Replaced with def_or_undef_macro.
9403 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
9404 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
9405 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
9406 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
9407 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
9408 (TARGET_ARM_FEATURE_LDREX_P)
9409 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
9410 * config/arm/arm-c.c (def_or_undef_macro): New function.
9411 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
9413 2015-05-26 Christian Bruel <christian.bruel@st.com>
9415 * c-common.h (builtin_define_with_int_value)
9416 (builtin_define_type_sizeof): Declare.
9417 * c-cppbuiltin.c (builtin_define_with_int_value)
9418 (builtin_define_type_sizeof): Externalize.
9419 (builtin_define_std): Cleanup declaration.
9420 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
9421 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
9422 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
9423 (builtin_define, builtin_assert): New macros.
9425 2015-05-26 Richard Biener <rguenther@suse.de>
9427 PR tree-optimization/66142
9428 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
9429 MEM_REFs for the same base address.
9431 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9434 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
9436 2015-05-26 Jason Merrill <jason@redhat.com>
9438 * configure.ac: Set CXXFLAGS for ISL test.
9439 * configure: Regenerate.
9441 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
9442 strstr and basename.
9443 * configure: Regenerate.
9445 2015-05-26 Richard Biener <rguenther@suse.de>
9447 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
9448 X % C -> X & (C - 1) for C being a power-of two to ...
9449 * match.pd: ... patterns.
9451 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
9453 * match.pd (swapped_tcc_comparison): New operator list.
9454 (-A CMP -B): New simplification.
9455 * fold-const.c (fold_comparison): Remove corresponding code.
9457 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9459 * caller-save.c (init_caller_save): Base temporary register numbers
9460 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
9461 * cfgloopanal.c (init_set_costs): Likewise.
9462 * dojump.c (prefer_and_bit_test): Likewise.
9463 * expr.c (init_expr_target): Likewise.
9464 * ira.c (setup_prohibited_mode_move_regs): Likewise.
9465 * lower-subreg.c (init_lower_subreg): Likewise.
9466 * postreload.c (reload_cse_regs_1): Likewise.
9468 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
9470 * gensupport.h (compute_test_codes): Declare.
9471 * gensupport.c (compute_predicate_codes): Rename to...
9472 (compute_test_codes): ...this. Generalize error message.
9473 (process_define_predicate): Update accordingly.
9474 * genpreds.c (compute_maybe_allows): Delete.
9475 (add_constraint): Use compute_test_codes to determine whether
9476 something can accept a SUBREG, REG or MEM.
9478 2015-05-26 Torvald Riegel <triegel@redhat.com>
9480 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
9481 'memory model' to align with C++11; fix description of memory orders;
9484 2015-05-26 Richard Biener <rguenther@suse.de>
9486 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
9487 (vect_analyze_loop_operations): ... here. Remove slp parameter,
9488 detect whether we apply SLP. Remove call to
9489 vect_update_slp_costs_according_to_vf.
9490 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
9491 vect_update_slp_costs_according_to_vf from here. Dispatch
9492 to vect_slp_analyze_operations to analyze SLP stmts.
9493 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
9494 unused bb_vec_info parameter, adjust assert.
9495 (vect_slp_analyze_operations): Pass in the slp instance tree
9496 instead of bb_vec_info.
9497 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
9498 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
9500 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9502 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
9503 Q_REGS. Expand comment.
9504 (REG_CLASS_NAMES): Ditto.
9505 (REG_CLASS_CONTENTS): Ditto.
9507 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
9510 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
9511 when LEGACY_INT_REGNO_P is processed.
9513 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
9515 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
9517 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9519 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
9520 register if not marked dead/unused, before return.
9522 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9525 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
9526 is set; check for assembler name at LTO time.
9527 (type_in_anonymous_namespace): Remove hacks, check that all
9528 anonymous types are called "<anon>"
9529 (odr_type_p): Simplify; add check for "<anon>"
9530 (odr_subtypes_equivalent): Add odr_type_p check.
9531 * tree.c (need_assembler_name_p): Even anonymous namespace needs
9534 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9536 * ipa-utils.h (method_class_type): Remove.
9537 * cgraphunit.c (walk_polymorphic_call_targets): Use
9538 TYPE_METHOD_BASETYPE.
9539 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
9540 on main variants only.
9541 (method_class_type): Remove.
9542 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
9543 (build_type_inheritance_graph): Likewise.
9544 * ipa-icf.c (sem_function::equals_wpa): Likewise.
9545 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
9546 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
9548 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
9550 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
9551 is_typedef_decl, typedef_variant_p): Constify.
9552 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
9553 is_typedef_decl, typedef_variant_p): Constify.
9555 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9557 * defaults.h (gen_tablejump): New function.
9558 (HAVE_tablejump): Add default value.
9562 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9564 * defaults.h (gen_store_multiple): New function.
9565 (HAVE_store_multiple): Add default value.
9566 * expr.c (move_block_from_reg): Adjust.
9568 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9570 * defaults.h (gen_load_multiple): New function.
9571 (HAVE_load_multiple): Add default value.
9572 * expr.c (move_block_to_reg): Adjust.
9574 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9576 * defaults.h (gen_mem_signal_fence): New function.
9577 (HAVE_mem_signal_fence): Add default value.
9580 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9582 * defaults.h (gen_memory_barrier): New function.
9583 (HAVE_memory_barrier): Add default value.
9586 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9588 * defaults.h (gen_mem_thread_fence): New function.
9589 (HAVE_mem_thread_fence): Add default definition.
9592 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9594 * combine.c (find_split_point): Check the value of HAVE_lo_sum
9595 instead of if it is defined.
9596 (combine_simplify_rtx): Likewise.
9597 * lra-constraints.c (process_address_1): Likewise.
9598 * config/darwin.c: Adjust.
9599 * genconfig.c (main): Always define HAVE_lo_sum.
9601 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9603 * genmatch.c (parser::parse_operation): Reject expanding
9604 operator-list inside 'for'.
9606 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9608 * genmatch.c (parser::parse_for): Reject iterator if used as
9611 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9613 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
9614 after end of id-list.
9616 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9618 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
9619 we do not try to compute canonical type for type that does not need
9621 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
9623 * tree.h (type_with_alias_set_p): New.
9625 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
9627 * tree.c (gimple_canonical_types_compatible_p): Do not compare
9628 function attributes.
9629 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
9631 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
9633 * Makefile.in (check_gcc_parallelize): Delete.
9634 (lang_checks_parallelized): Update comment.
9636 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
9638 PR rtl-optimization/66237
9639 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
9640 location of an "as_a" cast.
9642 2015-05-22 Jeff Law <law@redhat.com>
9644 * config/pa/pa.md (non-canonical shift-add insns): Remove.
9645 (peepholes with non-canonical RTL sources): Remove.
9646 (peepholes for indexed stores of FP regs in integer modes): Match and
9647 generate canonical RTL.
9649 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9651 PR tree-optimization/63387
9652 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
9653 ((x ord x) & (y ord y) -> (x ord y),
9654 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
9655 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
9656 vectors like scalars.
9658 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9660 * convert.c (convert_to_integer, convert_to_vector): Include the
9661 types in the error message.
9663 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
9665 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
9668 2015-05-22 Jeff Law <law@redhat.com>
9670 * config/pa/pa.md (integer_indexed_store splitters): Use
9671 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
9672 insns -- adjusting the constant 2nd operand accordingly.
9674 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
9675 (plus (ashift X log2) Y) if it is a split point.
9677 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
9678 out of hppa_legitimize_address to handle both forms of a multiply
9680 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
9681 Always generate the ASHIFT variant as the result is not directly
9682 used in a MEM. Update comments and refactor slightly to improve
9685 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9688 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
9689 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
9690 (aarch64_composite_type_p): Return false if given type and mode are
9693 2015-05-22 Richard Biener <rguenther@suse.de>
9695 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
9697 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
9698 patterns when determining whether SLP is pure.
9699 (vect_is_slp_reduction): Remove check for pattern stmts.
9700 (vect_is_simple_reduction_1): Remove dead code.
9701 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
9702 (vect_get_and_check_slp_defs): Pass in the stmt number.
9703 Allow the first def in a reduction to be not a pattern stmt when
9704 the rest of the stmts def are patterns.
9705 (vect_build_slp_tree_1): Allow tcc_expression codes like
9706 SAD_EXPR and DOT_PROD_EXPR.
9707 (vect_build_slp_tree): Adjust.
9708 (vect_analyze_slp): Refactor and move BB vect error message ...
9709 (vect_slp_analyze_bb_1): ... here.
9711 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
9713 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
9714 for CSWTCH temporary.
9716 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9718 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
9719 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
9722 2015-05-22 Richard Biener <rguenther@suse.de>
9724 PR tree-optimization/66251
9725 * tree-vect-stmts.c (vectorizable_conversion): Properly
9726 set STMT_VINFO_VEC_STMT even for the SLP case.
9728 2015-05-22 Marek Polacek <polacek@redhat.com>
9730 * doc/extend.texi: Use @pxref instead of @xref.
9732 2015-05-22 hiraditya <hiraditya@msn.com>
9734 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
9737 2015-05-22 Richard Biener <rguenther@suse.de>
9739 PR tree-optimization/65701
9740 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9741 Move peeling cost models into one place. Peel for alignment
9742 for single loads only if an aligned load is cheaper than
9745 2015-05-22 Marek Polacek <polacek@redhat.com>
9748 * doc/extend.texi (Enumerator Attributes): New section.
9749 Document syntax of enumerator attributes.
9751 2015-05-22 Richard Biener <rguenther@suse.de>
9753 * tree-vect-loop.c (get_reduction_op): New function.
9754 (vect_model_reduction_cost): Use it, add reduc_index parameter.
9755 Make ready for BB reductions.
9756 (vect_create_epilog_for_reduction): Use get_reduction_op.
9757 (vectorizable_reduction): Init reduc_index to a valid value.
9758 Adjust vect_model_reduction_cost call.
9759 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
9760 operand for reduction defaults. Add SAD_EXPR support.
9761 Assert we have a neutral op for SLP reductions.
9762 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
9763 walking pattern stmt ops only recurse to SSA names.
9765 2015-05-22 Richard Biener <rguenther@suse.de>
9767 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
9768 assert with guard, remove check on detected reduction.
9769 (vect_recog_sad_pattern): Likewise.
9770 (vect_recog_widen_sum_pattern): Likewise.
9772 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9774 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
9775 __always_inline__ attribute.
9776 (vaesdq_u8): Likewise.
9777 (vaesmcq_u8): Likewise.
9778 (vaesimcq_u8): Likewise.
9779 (vsha1cq_u32): Likewise.
9780 (vsha1mq_u32): Likewise.
9781 (vsha1pq_u32): Likewise.
9782 (vsha1h_u32): Likewise.
9783 (vsha1su0q_u32): Likewise.
9784 (vsha1su1q_u32): Likewise.
9785 (vsha256hq_u32): Likewise.
9786 (vsha256h2q_u32): Likewise.
9787 (vsha256su0q_u32): Likewise.
9788 (vsha256su1q_u32): Likewise.
9789 (vmull_p64): Likewise.
9790 (vmull_high_p64): Likewise.
9792 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9794 * final.c (final_scan_insn): Don't check HAVE_peephole with the
9796 * output.h: Likewise.
9797 * genconfig.c (main): Alwways define HAVE_peephole.
9798 * genpeep.c: Don't emit checks of HAVE_peephole.
9800 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9802 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
9803 check HAVE_conditional_move with the preprocessor.
9805 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9807 * genconfig.c (main): Always define HAVE_conditional_move.
9808 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
9809 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
9812 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9814 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
9815 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
9816 and FRAME_POINTER_REGNUM with the preprocessor.
9818 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9820 * defaults.h: Add default for STACK_PUSH_CODE.
9821 * expr.c: Don't redefine STACK_PUSH_CODE.
9822 * recog.c: Likewise.
9824 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9826 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
9827 sched-deps.c: Use if instead of preprocessor checks with
9828 STACK_GROWS_DOWNWARD.
9830 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9832 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
9834 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
9835 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
9836 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
9837 * doc/tm.texi: Regenerate.
9839 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
9842 * config/i386/constraints.md (Bg): New constraint for GOT memory
9844 * config/i386/i386.md (*call_got_x32): New pattern.
9845 (*call_value_got_x32): Likewise.
9846 * config/i386/predicates.md (GOT_memory_operand): New predicate.
9848 2015-05-21 Jakub Jelinek <jakub@redhat.com>
9850 PR tree-optimization/66233
9851 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
9854 2015-05-21 Jeff Law <law@redhat.com>
9856 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
9857 than MULT for shadd sequences.
9859 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
9861 * alias.c (alias_stats): New static var.
9862 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
9863 (dump_alias_stats_in_alias_c): New function.
9864 * alias.h (dump_alias_stats_in_alias_c): Declare.
9865 * tree-ssa-alias.c (dump_alias_stats): Call it.
9867 2015-05-08 Michael Matz <matz@suse.de>
9869 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
9871 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
9872 (STMT_VINFO_STRIDED_P): ... this.
9873 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
9874 (vect_verify_datarefs_alignment): Likewise.
9875 (vect_enhance_data_refs_alignment): Likewise.
9876 (vect_analyze_data_ref_access): Likewise.
9877 (vect_analyze_data_refs): Accept strided stores.
9878 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
9879 (vect_model_load_cost): Adjust for macro rename.
9880 (vectorizable_mask_load_store): Likewise.
9881 (vectorizable_load): Likewise.
9882 (vectorizable_store): Open code strided stores.
9884 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9886 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
9889 2015-05-21 Richard Biener <rguenther@suse.de>
9892 * match.pd: Guard pattern optimzing (int)(float)int
9893 conversions to apply only on GIMPLE.
9895 2015-05-21 Jeff Law <law@redhat.com>
9897 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
9898 multiply-accumulate/shift-add insn generation.
9900 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
9903 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
9904 operands[1] are the same.
9906 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9909 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
9910 build_distinct_type_copy to copy bounds.
9912 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
9914 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
9915 Change to unsigned int.
9917 2015-05-20 Jeff Law <law@redhat.com>
9919 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
9920 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
9921 (pa_shadd_constant_p): Allow constants for shadd insns rather
9922 than valid scaling constants for memory addresses.
9923 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
9924 * config/pa/predicates.md (mem_shadd_operand): New predicate.
9925 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
9926 (shift-add insns using ASHIFT): New patterns.
9928 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
9930 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
9932 (fix_up_fall_thru_edges): Likewise.
9933 (fix_crossing_conditional_branches): Likewise. Promote jump targets
9934 from to rtx_insn to rtx_code_label where feasible.
9935 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
9936 gen_move_insn (returned type changed to rtx_insn).
9937 * builtins.c (expand_errno_check): Fix arguments of
9938 do_compare_rtx_and_jump (now expects rtx_code_label).
9939 (expand_builtin_acc_on_device): Likewise.
9940 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
9941 invert_jump (now exprects rtx_jump_insn).
9942 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
9943 (construct_init_block): Use rtx_code_label.
9944 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
9945 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
9946 calling redirect_jump.
9947 (patch_jump_insn): Likewise.
9948 (redirect_branch_edge): Likewise.
9949 (force_nonfallthru_and_redirect): Likewise.
9950 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
9952 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
9953 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
9954 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
9955 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
9956 to store the value retured by gen_label_rtx.
9957 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
9959 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
9960 (split_branches): Fix calls of redirect_jump.
9961 * dojump.c (jumpifnot): Promote argument type from rtx to
9963 (jumpifnot_1): Likewise.
9965 (jumpif_1): Likewise.
9966 (do_jump_1): Likewise.
9967 (do_jump): Likewise. Use rtx_code_label when feasible.
9968 (do_jump_by_parts_greater_rtx): Likewise.
9969 (do_jump_by_parts_zero_rtx): Likewise.
9970 (do_jump_by_parts_equality_rtx): Likewise.
9971 (do_compare_rtx_and_jump): Likewise.
9972 * dojump.h: Update function prototypes.
9973 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
9975 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
9977 (emit_label_before): Likewise.
9978 (emit_jump_insn_after_noloc): Likewise.
9979 (emit_jump_insn_after_setloc): Likewise.
9980 (emit_jump_insn_after): Likewise
9981 (emit_jump_insn_before_setloc): Likewise.
9982 (emit_jump_insn_before): Likewise.
9983 (emit_label_before): Promote return type to rtx_code_label.
9984 (emit_label): Likewise.
9985 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
9986 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
9988 (emit_stack_restore): Likewise.
9989 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
9990 (do_cmp_and_jump): Likewise.
9991 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
9992 from rtx to rtx_code_label.
9993 (gen_move_insn_uncast): New function.
9994 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
9995 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
9996 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
9997 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
9998 invert_jump_1 and redirect_jump_1.
9999 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
10000 do_compare_rtx_and_jump.
10001 (expand_addsub_overflow): Likewise.
10002 (expand_neg_overflow): Likewise.
10003 (expand_mul_overflow): Likewise.
10004 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
10005 return value of gen_move_insn.
10006 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
10007 * loop-doloop.c (add_test): Use rtx_code_label.
10008 (doloop_modify): Likewise.
10009 (doloop_optimize): Likewise.
10010 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
10011 * lra-constraints.c (emit_spill_move): Remove cast of value returned
10013 (inherit_reload_reg): Add cast when calling dump_insn_slim.
10014 (split_reg): Likewise.
10015 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
10017 * optabs.c (expand_binop_directly): Remove casts of values returned by
10019 (expand_unop_direct): Likewise.
10020 (expand_abs): Likewise.
10021 (maybe_emit_unop_insn): Likewise.
10022 (maybe_gen_insn): Promote return type to rtx_insn.
10023 * optabs.h: Update prototype of maybe_gen_insn.
10024 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
10026 * recog.c (struct peep2_insn_data): Promote type of insn field to
10028 (peep2_reinit_state): Use NULL instead of NULL_RTX.
10029 (peep2_attempt): Remove casts of insn in peep2_insn_data.
10030 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
10031 * recog.h (struct insn_gen_fn): Promote return types of function
10032 pointers and operator ().from rtx to rtx_insn.
10033 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
10034 (fill_eager_delay_slots): Likewise.
10035 (relax_delay_slots): Likewise.
10036 (make_return_insns): Likewise.
10037 (dbr_schedule): Likewise.
10038 (optimize_skips): Likewise.
10039 (reorg_redirect_jump): Likewise.
10040 (fill_slots_from_thread): Likewise.
10041 * reorg.h: Update prototypes.
10042 * resource.c (find_dead_or_set_registers): Use dyn_cast to
10043 rtx_jump_insn instead of check. Use it's jump_target method.
10044 * rtl.h (rtx_jump_insn::jump_label): Define new method.
10045 (rtx_jump_insn::jump_target): Define new method.
10046 (rtx_jump_insn::set_jump_target): Define new method.
10047 * rtlanal.c (tablejump_p): Promote type of one local variable.
10048 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
10049 (sched_analyze_insn): Likewise.
10050 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
10051 (print_insn): Likewise.
10052 * stmt.c (label_rtx): Promote return type to rtx_insn.
10053 (force_label_rtx): Likewise.
10054 (jump_target_rtx): Define new function.
10055 (expand_label): Use it, get rid of one cast.
10056 (expand_naked_return): Promote rtx to rtx_code_label.
10057 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
10058 (expand_case): Use rtx_code_label instread of rtx where feasible.
10059 (expand_sjlj_dispatch_table): Likewise.
10060 (emit_case_nodes): Likewise.
10061 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
10062 * store-motion.c (insert_store): Make use of new return type of
10063 gen_move_insn and remove a cast.
10064 (replace_store_insn): Likewise.
10066 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
10068 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
10069 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10071 2015-05-20 Jeff Law <law@redhat.com>
10073 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
10074 dispose of the jump thread path when the jump threading
10075 opportunity is cancelled.
10077 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10079 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
10080 when printing the caret character.
10082 2015-05-20 Marek Polacek <polacek@redhat.com>
10084 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
10086 2015-05-20 Marek Polacek <polacek@redhat.com>
10088 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
10089 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
10090 * gimple-fold.c (canonicalize_bool): Likewise.
10091 (same_bool_result_p): Likewise.
10092 * tree-if-conv.c (parse_predicate): Likewise.
10094 2015-05-20 Marek Polacek <polacek@redhat.com>
10096 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
10097 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
10099 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10101 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
10102 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
10105 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
10107 * config/mips/mips.h (micromips_globals): Declare.
10109 2015-05-20 David Malcolm <dmalcolm@redhat.com>
10111 * timevar.def (TV_INITIALIZE_RTL): New.
10112 * toplev.c (initialize_rtl): Use an auto_timevar to account this
10113 function's time to TV_INITIALIZE_RTL.
10115 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
10117 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
10118 gimple_build_nop calls.
10119 (chkp_find_bounds_for_elem): Likewise.
10120 (chkp_get_zero_bounds): Likewise.
10121 (chkp_get_none_bounds): Likewise.
10122 (chkp_get_bounds_by_definition): Likewise.
10123 (chkp_generate_extern_var_bounds): Likewise.
10124 (chkp_get_bounds_for_decl_addr): Likewise.
10125 (chkp_get_bounds_for_string_cst): Likewise.
10127 2015-05-20 Bin Cheng <bin.cheng@arm.com>
10129 PR tree-optimization/65447
10130 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
10131 (dump_use, dump_uses): Support to dump sub use.
10132 (record_use): New parameters to support sub use. Remove call to
10134 (record_sub_use, record_group_use): New functions.
10135 (compute_max_addr_offset, split_all_small_groups): New functions.
10136 (group_address_uses, rewrite_use_address): New functions.
10137 (strip_offset): New declaration.
10138 (find_interesting_uses_address): Call record_group_use.
10139 (add_candidate): New assertion.
10140 (infinite_cost_p): Move definition forward.
10141 (add_costs): Check INFTY cost and return immediately.
10142 (get_computation_cost_at): Clear setup cost and dependent bitmap
10144 (determine_use_iv_cost_address): Compute cost for sub uses.
10145 (rewrite_use_address_1): Rename from old rewrite_use_address.
10146 (free_loop_data): Free sub uses.
10147 (tree_ssa_iv_optimize_loop): Call group_address_uses.
10149 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10150 Jim Wilson <jim.wilson@linaro.org>
10152 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
10153 new fields loadv and storev.
10154 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
10155 Initialize loadv and storev.
10156 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
10157 (cortexa53_extra_costs): Likewise.
10158 (cortexa57_extra_costs): Likewise.
10159 (xgene1_extra_costs): Likewise.
10160 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
10163 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
10165 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
10167 (cortexa8_extra_costs): Likewise.
10168 (cortexa5_extra_costs): Likewise.
10169 (cortexa7_extra_costs): Likewise.
10170 (cortexa12_extra_costs): Likewise.
10171 (cortexa15_extra_costs): Likewise.
10172 (v7m_extra_costs): Likewise.
10174 2015-05-20 Jeff Law <law@redhat.com>
10176 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
10177 instead of open-coded version. Also delete the jump thread created
10178 within this function.
10180 2015-05-20 Alan Modra <amodra@gmail.com>
10182 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
10183 stack adjusting insn. Formatting.
10184 (rs6000_emit_prologue): Track stack adjusting insn, and use of
10185 r12. If possible, emit first -fsplit-stack arg pointer insn
10186 before stack adjust. Don't use r12 to save cr if split-stack.
10188 2015-05-20 Alan Modra <amodra@gmail.com>
10190 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
10192 (rs6000_supports_split_stack): New function.
10193 * gcc/config/rs6000/rs6000.c (machine_function): Add
10194 split_stack_arg_pointer.
10195 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
10196 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
10197 rather than virtual_incoming_args_rtx.
10198 (rs6000_va_start): Likewise.
10199 (split_stack_arg_pointer_used_p): New function.
10200 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
10201 (morestack_ref): New var.
10202 (gen_add3_const, rs6000_expand_split_stack_prologue,
10203 rs6000_internal_arg_pointer, rs6000_live_on_entry,
10204 rs6000_split_stack_space_check): New functions.
10205 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
10206 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
10207 (UNSPECV_SPLIT_STACK_RETURN): Define.
10208 (split_stack_prologue, load_split_stack_limit,
10209 load_split_stack_limit_di, load_split_stack_limit_si,
10210 split_stack_return, split_stack_space_check): New expands and insns.
10211 * gcc/config/rs6000/rs6000-protos.h
10212 (rs6000_expand_split_stack_prologue): Declare.
10213 (rs6000_split_stack_space_check): Declare.
10215 2015-05-20 Alan Modra <amodra@gmail.com>
10217 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
10218 (direct_return): Test vrsave_size rather than vrsave_mask.
10219 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
10220 (rs6000_emit_epilogue): Likewise.
10222 2015-05-20 Alan Modra <amodra@gmail.com>
10224 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
10225 when not saving registers.
10226 (debug_stack_info): Adjust to omit printing unused offsets,
10228 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
10231 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10234 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
10235 value_type to const char *.
10237 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
10239 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
10240 to build a biarch toolchain again.
10242 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10244 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
10245 or implicit declarations.
10246 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
10248 (get_odr_type): Check type has linkage before adding bases.
10249 (register_odr_type): Check that type has linkage before adding it.
10250 (type_known_to_have_no_deriavations_p): Rename to ..
10251 (type_known_to_have_no_derivations_p): This one.
10252 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
10253 (type_known_to_have_no_derivations_p): This one.
10254 * ipa-polymorphic-call.c
10255 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
10258 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10260 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
10261 (layout_type): Use RECORD_OR_UNION_TYPE_P.
10263 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10265 * config/s390/s390.c (s390_vector_bool_type_p): New function.
10266 (s390_invalid_binary_op): New function.
10267 (TARGET_INVALID_BINARY_OP): Define macro.
10269 2015-05-19 David Sherwood <david.sherwood@arm.com>
10271 * loop-invariant.c (create_new_invariant): Don't calculate address cost
10272 if mode is not a scalar integer.
10273 (get_inv_cost): Increase computational cost for unused invariants.
10275 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10277 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
10278 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
10279 * config/s390/s390-builtin-types.def: New file.
10280 * config/s390/s390-builtins.def: New file.
10281 * config/s390/s390-builtins.h: New file.
10282 * config/s390/s390-c.c: New file.
10283 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
10284 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
10285 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
10286 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
10288 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
10290 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
10291 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
10292 variable definitions.
10293 (s390_const_operand_ok): New function.
10294 (s390_expand_builtin): Rewrite.
10295 (s390_init_builtins): New function.
10296 (s390_handle_vectorbool_attribute): New function.
10297 (s390_attribute_table): Add s390_vector_bool attribute.
10298 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
10299 (s390_branch_condition_mask): Generate masks for new modes.
10300 (s390_expand_vec_compare_cc): New function.
10301 (s390_mangle_type): Add mangling for vector bool types.
10302 (enum s390_builtin): Remove.
10303 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
10305 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
10306 s390_cpu_cpp_builtins.
10307 (REGISTER_TARGET_PRAGMAS): New macro.
10308 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
10309 (insn_cmp mode attribute): Add new CC modes.
10310 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
10311 (lcbb): New pattern definition.
10312 * config/s390/s390intrin.h: Include vecintrin.h.
10313 * config/s390/t-s390: New file.
10314 * config/s390/vecintrin.h: New file.
10315 * config/s390/vector.md: Include vx-builtins.md.
10316 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
10319 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10321 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
10323 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
10324 (s390_select_ccmode): Likewise.
10325 (s390_canonicalize_comparison): Swap operands if necessary.
10326 (s390_expand_vec_compare_scalar): Expand DFmode compare using
10327 single element vector instructions.
10328 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
10329 (s390_branch_condition_mask): Generate CC masks for the new modes.
10330 * config/s390/s390.md (v0, vf, vd): New mode attributes.
10331 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
10332 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
10333 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
10334 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
10335 (*extend<DSF:mode><BFP:mode>2): New insn definition.
10336 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
10337 (extend<DSF:mode><BFP:mode>2): Turn into expander.
10338 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
10339 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
10340 (sqrt<mode>2): Add vector instruction.
10342 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10344 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
10346 * config/s390/predicates.md (const0_operand, constm1_operand)
10347 (constable_operand): Accept vector operands.
10348 * config/s390/s390-modes.def: Add supported vector modes.
10349 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
10350 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
10351 (s390_bytemask_vector_p, s390_expand_vec_strlen)
10352 (s390_expand_vec_compare, s390_expand_vcond)
10353 (s390_expand_vec_init): Add prototypes.
10354 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
10355 (s390_vector_mode_supported_p): New function.
10356 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
10357 (s390_contiguous_bitmask_vector_p): New function.
10358 (s390_bytemask_vector_p): New function.
10359 (s390_split_ok_p): Vector regs don't work either.
10360 (regclass_map): Add VEC_REGS.
10361 (s390_legitimate_constant_p): Handle vector constants.
10362 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
10363 (legitimate_reload_vector_constant_p): New function.
10364 (s390_preferred_reload_class): Handle CONST_VECTOR.
10365 (s390_reload_symref_address): Likewise.
10366 (s390_secondary_reload): Vector memory instructions only support
10367 short displacements. Rename reload*_nonoffmem* to reload*_la*.
10368 (s390_emit_ccraw_jump): New function.
10369 (s390_expand_vec_strlen): New function.
10370 (s390_expand_vec_compare): New function.
10371 (s390_expand_vcond): New function.
10372 (s390_expand_vec_init): New function.
10373 (s390_dwarf_frame_reg_mode): New function.
10374 (print_operand): Handle addresses with 'O' and 'R' constraints.
10375 (NR_C_MODES, constant_modes): Add vector modes.
10376 (s390_output_pool_entry): Handle vector constants.
10377 (s390_hard_regno_mode_ok): Handle vector registers.
10378 (s390_class_max_nregs): Likewise.
10379 (s390_cannot_change_mode_class): New function.
10380 (s390_invalid_arg_for_unprototyped_fn): New function.
10381 (s390_function_arg_vector): New function.
10382 (s390_function_arg_float): Remove size variable.
10383 (s390_pass_by_reference): Handle vector arguments.
10384 (s390_function_arg_advance): Likewise.
10385 (s390_function_arg): Likewise.
10386 (s390_return_in_memory): Vector values are returned in a VR if
10388 (s390_function_and_libcall_value): Handle vector arguments.
10389 (s390_gimplify_va_arg): Likewise.
10390 (s390_call_saved_register_used): Consider the arguments named.
10391 (s390_conditional_register_usage): Disable v16-v31 for non-vec
10393 (s390_preferred_simd_mode): New function.
10394 (s390_support_vector_misalignment): New function.
10395 (s390_vector_alignment): New function.
10396 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
10397 (TARGET_VECTOR_MODE_SUPPORTED_P)
10398 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
10399 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10400 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
10401 (TARGET_VECTOR_ALIGNMENT): Define target macro.
10402 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
10403 (FIRST_PSEUDO_REGISTER): Increase value.
10404 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
10405 (VECTOR_REG_P): Define macros.
10406 (FIXED_REGISTERS, CALL_USED_REGISTERS)
10407 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
10408 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
10409 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
10410 Add vector registers.
10411 (CANNOT_CHANGE_MODE_CLASS): Call C function.
10412 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
10413 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
10415 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
10416 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
10417 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
10418 (VR*_REGNUM): New constants.
10419 (ALL): New mode iterator.
10420 (INTALL): Remove mode iterator.
10422 (movti): Implement TImode moves for VRs.
10423 Disable TImode splitter for VR targets.
10424 Implement splitting TImode GPR<->VR moves.
10425 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
10426 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
10427 reload<mode>_la_in, reload<mode>_la_out.
10428 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
10429 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
10430 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
10431 (mov<mode> SF SD): Prefer lder, lde for loading.
10432 Add lrl and strl instructions.
10433 Add vector instructions.
10434 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
10435 Call s390_expand_vec_strlen on z13.
10436 (*cc_to_int): Change predicate to nonimmediate_operand.
10437 (addti3): Rename to *addti3. New expander.
10438 (subti3): Rename to *subti3. New expander.
10439 * config/s390/vector.md: New file.
10441 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10443 * common/config/s390/s390-common.c (processor_flags_table): Add
10445 * config.gcc: Add z13.
10446 * config/s390/s390-opts.h (enum processor_type): Add
10447 PROCESSOR_2964_Z13.
10448 * config/s390/s390.c (s390_adjust_priority): Check for
10449 PROCESSOR_2964_Z13.
10450 (s390_reorg): Likewise.
10451 (s390_sched_reorder): Likewise.
10452 (s390_sched_variable_issue): Likewise.
10453 (s390_loop_unroll_adjust): Likewise.
10454 (s390_option_override): Likewise. Default to -mvx when available.
10455 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
10456 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
10457 (TARGET_VX_ABI): Define macros.
10459 (TARGET_DEFAULT): Add MASK_OPT_VX.
10460 * config/s390/s390.md ("cpu" attribute): Add z13.
10461 ("cpu_facility" attribute): Add vec.
10462 * config/s390/s390.opt (processor_type): Add z13.
10463 (mvx): New options.
10464 * doc/invoke.texi: Add z13 option for -march.
10466 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10468 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
10469 mode check to make sure that only scalar integer values are
10472 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
10474 * tree.c (verify_type_variant): Fix #undef.
10475 (gimple_canonical_types_compatible_p): Move here from lto.c
10476 (verify_type): Verify TYPE_CANONICAL compatibility.
10477 * tree.h (gimple_canonical_types_compatible_p): Declare.
10479 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10481 PR middle-end/66199
10482 * tree.h (OMP_TEAMS_COMBINED): Define.
10483 * gimplify.c (enum gimplify_omp_var_data): Add
10484 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
10485 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
10486 (omp_notice_variable): Accept both ORT_TEAMS
10487 and ORT_COMBINED_TEAMS. Don't recurse if
10488 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
10489 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
10491 (omp_no_lastprivate): New function.
10492 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
10493 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
10494 notice_outer and set appropriate bits, otherwise make
10495 sure default(none) combined constructs won't complain.
10496 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
10497 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
10498 omp_no_lastprivate either remove the clause or turn it
10499 into OMP_CLAUSE_PRIVATE.
10500 (gimplify_omp_for): Fix up handling of implicit
10501 lastprivate or linear iterators.
10502 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
10503 ORT_COMBINED_TEAMS.
10504 * omp-low.c (lower_omp_for_lastprivate): For combined
10505 for simd use fd.loop.n2 from the for rather than simd.
10507 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10509 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
10510 instead of gen_rtx_raw_REG.
10511 (cris_expand_epilogue): Likewise.
10512 * config/microblaze/microblaze.c (microblaze_classify_address):
10514 * config/sparc/sparc.md: Likewise.
10516 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
10518 * config/alpha/alpha.c (alpha_legitimize_reload_address)
10519 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
10520 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
10521 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
10522 Use CASE_CONST_SCALAR_INT.
10523 (print_operand) <case 'M'>: Use mode_width_operand to check the
10524 value of the constant.
10525 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
10526 * config/alpha/predicates.md (input_operand): Use general_operand
10527 instead of match_code as operand check.
10528 (symbolic_operand): Use match_code with subexpression digits.
10529 * config/alpha/constraints.md (Q): Ditto.
10531 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10533 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
10535 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10537 * config/s390/s390.c (s390_secondary_reload): Fix check for
10538 load/store relative.
10540 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10542 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
10543 alternative_mask to uint64_t.
10545 2015-05-19 Jakub Jelinek <jakub@redhat.com>
10547 PR tree-optimization/66187
10548 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10549 Pass TYPE_SIGN to tree_int_cst_min_precision. If
10550 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
10552 2015-05-19 David Malcolm <dmalcolm@redhat.com>
10554 * diagnostic.c (diagnostic_report_current_module): Strengthen
10555 local "new_map" from const line_map * to
10556 const line_map_ordinary *.
10557 * genmatch.c (error_cb): Likewise for local "map".
10558 (output_line_directive): Likewise for local "map".
10559 * input.c (expand_location_1): Likewise for local "map".
10560 Pass NULL rather than &map to
10561 linemap_unwind_to_first_non_reserved_loc, since the value is never
10562 read from there, and the value written back not read from here.
10563 (is_location_from_builtin_token): Strengthen local "map" from
10564 const line_map * to const line_map_ordinary *.
10565 (dump_location_info): Strengthen locals "map" from
10566 line_map *, one to const line_map_ordinary *, the other
10567 to const line_map_macro *.
10568 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
10569 const line_map * to const line_map_macro *.
10570 (maybe_unwind_expanded_macro_loc): Add a call to
10571 linemap_check_macro when writing to the "map" field of the
10573 Introduce local const line_map_ordinary * "ord_map", using it in
10574 place of "map" in the part of the function where we know we have
10575 an ordinary map. Strengthen local "m" from const line_map * to
10576 const line_map_ordinary *.
10578 2015-05-19 Nick Clifton <nickc@redhat.com>
10581 * config/msp430/msp430.md (zero_extendhisi2): Add support for
10582 separate source and destination registers.
10584 2015-05-19 Richard Biener <rguenther@suse.de>
10586 PR tree-optimization/66165
10587 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
10588 for no load permutation.
10590 PR tree-optimization/66185
10591 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
10592 when building the SLP node from scalars.
10594 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
10595 Tristan Gingold <gingold@adacore.com>
10597 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
10598 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
10599 (expand_stack_restore): Call record_new_stack_level.
10600 (expand_stack_save): Do not call do_pending_stack_adjust.
10601 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
10602 * calls.c (expand_call): Call record_new_stack_level for alloca.
10603 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
10604 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
10605 (update_sjlj_context): New global function.
10606 * except.h (update_sjlj_context): Declare.
10607 * explow.c (record_new_stack_level): New global function.
10608 (allocate_dynamic_stack_space): Call record_new_stack_level.
10609 * explow.h (record_new_stack_level): Declare.
10610 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
10611 * cfgrtl.c (duplicate_insn_chain): Likewise.
10613 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10615 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
10616 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
10617 STACK_GROWS_DOWNWARD as normal if.
10618 (expand_call): Likewise.
10620 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
10623 * config/sh/sh.md (*round_int_even): New insn_and_split and
10624 accompanying new unnamed split.
10626 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10628 * bitmap.c (bitmap_set_range): Handle count==1 specially.
10629 (bitmap_clear_range): Likewise.
10630 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
10631 bitmap_set_range unconditionally.
10632 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10633 * df-scan.c (df_mark_reg): Likewise.
10634 * haifa-sched.c (setup_ref_regs): Likewise.
10635 * sched-rgn.c (update_live_1): Likewise.
10637 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10639 * regs.h (END_HARD_REGNO): Delete.
10640 (END_REGNO): Move to...
10642 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
10643 * caller-save.c (mark_set_regs): Likewise.
10644 * combine.c (move_deaths, distribute_notes): Likewise.
10645 * cse.c (invalidate, invalidate_for_call): Likewise.
10646 * df-scan.c (df_ref_record): Likewise.
10647 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
10648 (record_last_reg_set_info): Likewise.
10649 * reg-stack.c (convert_regs_exit): Likewise.
10650 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
10651 * resource.c (update_live_status): Likewise.
10652 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
10654 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10656 * rtl.h (reg_info): Add an nregs field.
10657 (REG_NREGS): Use it.
10658 (SET_REGNO_RAW): Delete.
10659 (set_regno_raw): New function.
10660 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
10661 (END_REGNO): Redefine in terms of REG_NREGS.
10662 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
10664 * emit-rtl.c (set_mode_and_regno): Likewise.
10665 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
10666 instead of SET_REGNO_RAW.
10668 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10670 * rtl.h (PUT_MODE_RAW): New macro.
10671 (PUT_REG_NOTE_KIND): Use it.
10672 (set_mode_and_regno): Declare.
10673 (gen_raw_REG): Change regno to "unsigned int".
10674 (gen_rtx_REG): Change "unsigned" to "unsigned int".
10675 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
10676 use set_mode_and_regno to change the mode of registers.
10677 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
10678 * emit-rtl.c (set_mode_and_regno): New function.
10679 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
10680 * caller-save.c (reg_save_code): Use set_mode_and_regno.
10681 * expr.c (init_expr_target): Likewise.
10682 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10683 * postreload.c (reload_cse_simplify_operands): Likewise.
10685 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10687 * caller-save.c (init_caller_save): Use word_mode and
10688 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
10689 * expr.c (init_expr_target): Likewise.
10690 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10691 * postreload.c (reload_cse_regs_1): Likewise.
10693 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10695 * rtl.def (REG): Change format to "r".
10696 * rtl.h (rtunion): Remove rt_reg.
10697 (reg_info): New structure.
10698 (rtx_def): Add reg field to main union.
10699 (X0REGATTR): Delete.
10700 (REG_CHECK): New macro.
10701 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
10702 * rtl.c (rtx_format): Document "r".
10703 (rtx_code_size): Handle REG specially.
10704 * gengenrtl.c (special_format): Return true for formats
10706 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
10707 Deal with REG_ATTRS after the field loop.
10708 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
10709 * expmed.c (init_expmed): Call gen_raw_REG instead of
10711 * expr.c (init_expr_target): Likewise.
10712 * regcprop.c (maybe_mode_change): Likewise.
10713 * varasm.c (make_decl_rtl): Likewise.
10714 * final.c (leaf_renumber_regs_insn): Return early after
10716 * genemit.c (gen_exp): Handle 'r' fields.
10717 * genpeep.c (match_rtx): Likewise.
10718 * gensupport.c (subst_pattern_match): Likewise.
10719 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
10720 (alter_constraints, subst_dup): Likewise.
10721 * read-rtl.c (read_rtx_code): Likewise.
10722 * print-rtl.c (print_rtx): Likewise.
10723 * genrecog.c (find_operand, find_matching_operand): Likewise.
10724 (validate_pattern, match_pattern_2): Likewise.
10725 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
10726 (rtx_test::regno_field): New function.
10727 (operator ==, safe_to_hoist_p, transition_parameter_type)
10728 (parameter_type_string, print_parameter_value)
10729 (print_nonbool_test, print_test): Handle new enum values.
10730 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
10731 * lra-constraints.c (operands_match_p): Likewise.
10733 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10735 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
10736 Change type of new_regno to unsigned int.
10737 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
10738 new_regno to unsigned int.
10739 (df_ref_change_reg_with_loc): Remove old_regno parameter.
10740 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
10741 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
10742 (SET_REGNO_RAW): Add space after ",".
10744 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10746 * rtl.h (REG_NREGS): New macro
10747 * alias.c (record_set): Use it.
10748 * cfgcleanup.c (mark_effect): Likewise.
10749 * combine.c (likely_spilled_retval_1): Likewise.
10750 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
10751 (move_deaths, distribute_notes): Likewise.
10752 * cselib.c (cselib_record_set): Likewise.
10753 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
10754 * df-scan.c (df_mark_reg): Likewise.
10755 * dse.c (look_for_hardregs): Likewise.
10756 * dwarf2out.c (reg_loc_descriptor): Likewise.
10757 (multiple_reg_loc_descriptor): Likewise.
10758 * expr.c (write_complex_part, read_complex_part): Likewise.
10759 (emit_move_complex): Likewise.
10760 * haifa-sched.c (setup_ref_regs): Likewise.
10761 * ira-lives.c (mark_hard_reg_live): Likewise.
10762 * lra.c (lra_set_insn_recog_data): Likewise.
10763 * mode-switching.c (create_pre_exit): Likewise.
10764 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
10765 (reload_combine_recognize_pattern): Likewise.
10766 (reload_combine_note_use, move2add_record_mode): Likewise.
10767 (reload_cse_move2add): Likewise.
10768 * reg-stack.c (subst_stack_regs_pat): Likewise.
10769 * regcprop.c (kill_value, copy_value): Likewise.
10770 (copyprop_hardreg_forward_1): Likewise.
10771 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
10772 (build_def_use): Likewise.
10773 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
10774 (deps_analyze_insn): Likewise.
10775 * sched-rgn.c (check_live_1, update_live_1): Likewise.
10776 * sel-sched.c (count_occurrences_equiv): Likewise.
10777 * valtrack.c (dead_debug_insert_temp): Likewise.
10779 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
10781 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
10782 * dse.c (note_add_store): Likewise.
10783 * ira-lives.c (mark_hard_reg_dead): Likewise.
10784 * loop-invariant.c (mark_reg_store): Likewise.
10785 (mark_reg_death): Likewise.
10786 * postreload.c (reload_combine): Likewise.
10787 (reload_combine_note_store): Likewise.
10788 (reload_combine_note_use): Likewise.
10789 * recog.c (peep2_reg_dead_p): Likewise.
10791 2015-05-19 Alan Modra <amodra@gmail.com>
10793 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
10794 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
10795 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
10797 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
10798 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
10799 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
10800 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
10802 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
10804 * config/mips/mips.md (JOIN_MODE): New mode iterator.
10805 (join2_load_Store<JOIN_MODE:mode>): New pattern.
10806 (join2_loadhi): Likewise.
10807 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
10808 load-load and store-stores.
10809 * config/mips/mips.opt (mload-store-pairs): New option.
10810 (TARGET_LOAD_STORE_PAIRS): New macro.
10811 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
10812 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
10813 * config/mips/mips.c (mips_load_store_bonding_p): New function.
10815 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
10817 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
10819 * dojump.c (do_compare_rtx_and_jump): Likewise.
10820 * expmed.c (emit_store_flag_1): Likewise.
10821 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
10822 * final.c (sprint_ul): Use std::reverse for reversing a string.
10823 * fold-const.c (extract_muldiv_1): Use std::swap.
10824 * genmodes.c (emit_mode_int_n): Likewise.
10825 * ifcvt.c (dead_or_predicable): Likewise.
10826 * ira-build.c (ira_merge_live_ranges): Likewise.
10827 (swap_allocno_copy_ends_if_necessary): Likewise.
10828 * ira.c (ira_setup_alts): Likewise.
10829 * loop-iv.c (iv_analyze_expr): Likewise.
10830 (implies_p): Likewise.
10831 (canon_condition): Likewise.
10832 * lra-constraints.c (swap_operands): Likewise.
10833 * lra-lives.c (lra_merge_live_ranges): Likewise.
10834 * omega.c (swap): Remove.
10836 (omega_unprotect_1): Use std::swap.
10837 (omega_solve_geq): Likewise.
10838 * optabs.c (expand_binop_directly): Likewise.
10839 (expand_binop): Likewise.
10840 (emit_conditional_move): Likewise.
10841 (emit_conditional_add): Likewise.
10842 * postreload.c (reload_cse_simplify_operands): Likewise.
10843 * reg-stack.c (emit_swap_insn): Likewise.
10844 (swap_to_top): Likewise.
10845 (compare_for_stack_reg): Likewise.
10846 (subst_asm_stack_regs): Likewise.
10847 * reload.c (find_reloads): Likewise.
10848 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
10849 * sel-sched.c (invoke_reorder_hooks): Likewise.
10850 (create_block_for_bookkeeping): Likewise.
10851 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
10852 (lambda_matrix_right_hermite): Use std::swap.
10853 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
10854 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10855 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
10856 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
10857 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
10858 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
10859 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10860 * tree-vrp.c (compare_ranges): Likewise.
10861 * var-tracking.c (add_with_sets): Likewise.
10862 (vt_find_locations): Likewise.
10864 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
10866 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
10868 (FBSD_ENDFILE_SPEC): Likewise.
10869 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
10870 config/freebsd-spec.h.
10871 (ENDFILE_SPEC): Likewise.
10873 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
10874 Richard Henderson <rth@redhat.com>
10877 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
10878 Check for a memory location that is not a reference (using an AND)
10879 to an unaligned location here.
10880 * config/alpha/predicates.md (normal_memory_operand): Remove.
10882 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
10884 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
10885 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
10887 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
10889 * config/mips/mips.c (micromips_globals): New variable.
10890 (mips_set_compression_mode): Save and reinitialize target-dependent
10891 state for microMIPS.
10893 2015-05-18 Martin Liska <mliska@suse.cz>
10895 * dbgcnt.def: Add new counter.
10896 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
10898 2015-05-18 Martin Liska <mliska@suse.cz>
10900 * dbgcnt.def: Sort counters.
10901 * opts.c (common_handle_option): Do not compile if
10902 -fdbg-cnt-list is enabled.
10904 2015-05-18 Tom de Vries <tom@codesourcery.com>
10906 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
10907 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
10908 address operator to va_list operand.
10909 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
10911 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
10913 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
10914 * config/s390/s390.c (s390_gimplify_va_arg): Same.
10915 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
10917 2015-05-18 Tom de Vries <tom@codesourcery.com>
10919 * tree-ssa-tail-merge.c: Fix whitespace.
10921 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
10923 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
10924 cortex-a17, and cortex-a17.cortex-a7.
10926 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
10929 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
10931 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
10934 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
10935 QImode inner modes for TARGET_AVX512BW. Force mask operand
10936 to a register for AVX512F modes.
10938 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10940 * toplev.c (emit_debug_global_declarations): Do not output debug info
10941 when doing slim LTO objects.
10943 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10945 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
10946 odr_types_equivalent_p): Declare.
10947 (odr_type_p): Use gcc_checking_assert.
10948 (type_in_anonymous_namespace_p) Declare.
10949 (type_with_linkage_p): Declare.
10950 * common.opt (Wlto-type-mismatch): New warning.
10951 * ipa-devirt.c (compound_type_base): New function.
10952 (odr_or_derived_type_p): New function.
10953 (odr_types_equivalent_p): New function.
10954 (add_type_duplicate): Simplify.
10955 (type_with_linkage_p): Add hack to prevent false positives on C types
10956 (type_in_anonymous_namespace_p): Likewise.
10957 * tree.c (need_assembler_name_p): Use type_with_linkage.
10958 * tree.h (type_in_anonymous_namespace_p): Remove.
10959 * doc/invoke.texi (-Wlto-type-mismatch): Document
10961 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
10963 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
10964 (verify_type): Verify STRING_FLAG.
10966 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10969 * tree-pretty-print.c (percent_K_format): Replace locus pointer
10970 with accessor function.
10971 * tree-diagnostic.c (diagnostic_report_current_function): Use
10972 diagnostic_location function.
10973 (maybe_unwind_expanded_macro_loc): Likewise.
10974 (virt_loc_aware_diagnostic_finalizer): Likewise.
10975 (default_tree_printer): Replace locus pointer with accessor function.
10976 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
10977 (diagnostic_set_info_translated): Initialize second location.
10978 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
10979 (diagnostic_show_locus): Handle two locations. Call
10980 diagnostic_print_caret_line.
10981 (diagnostic_print_caret_line): New.
10982 (default_diagnostic_starter): Use diagnostic_location function.
10983 (diagnostic_report_diagnostic): Use diagnostic_location function.
10984 (verbatim): Do not set text.locus.
10985 * diagnostic.h (struct diagnostic_info): Remove location field.
10986 (struct diagnostic_context): Make caret_chars an array of two.
10987 (diagnostic_location): New inline.
10988 (diagnostic_expand_location): Handle two locations.
10989 (diagnostic_same_line): New inline.
10990 (diagnostic_print_caret_line): Declare.
10991 (CARET_LINE_MARGIN): New constant.
10992 * pretty-print.c (pp_printf): Do not set text.locus.
10993 (pp_verbatim): Do not set text.locus.
10994 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
10995 (struct text_info): Replace locus pointer with locations
10996 array. Add accessor functions.
10998 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
10999 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11002 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
11003 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
11004 large constants in register instead of splitting them.
11006 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
11009 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
11010 replacements in memory addresses.
11011 (get_unaligned_address): Ditto.
11013 2015-05-16 James Bowman <james.bowman@ftdichip.com>
11015 * config/ft32/*: New files for FT32 port.
11016 * doc/install.texi: Add FT32 information.
11017 * doc/invoke.texi: Add FT32 information.
11018 * doc/md.texi: Add FT32 information.
11019 * doc/contrib.texi: Self added.
11021 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
11023 PR tree-optimization/64454
11024 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
11025 (-1 - A -> ~A): Remove unnecessary condition.
11027 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
11029 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
11030 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
11031 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
11033 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
11035 * ipa-chkp.h (chkp_wrap_function): New.
11036 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
11037 (chkp_wrap_function_name): New.
11038 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
11039 to get wrapper name.
11040 * lto-cgraph.c: Include ipa-chkp.h.
11041 (input_cgraph_1): Avoid alias chain for wrappers.
11043 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
11045 PR middle-end/66134
11046 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
11047 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
11049 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11051 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
11052 (AARCH64_FL_SLOWMUL): Delete.
11053 (AARCH64_FL_CRC): Redefine to 1<<3.
11054 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
11056 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11058 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
11061 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11063 * config/alpha/alpha.md (extendqidi2): Use general_operand
11064 instead of some_operand for operand[1] predicate.
11065 (extendhidi2): Ditto.
11066 (cbranchdi4): Use general_operand instead of some_operand
11067 for operand[1] and operands[2] predicates.
11068 (cstoredi4): Ditto.
11069 * config/alpha/predicates.md (some_operand): Remove unused predicate.
11070 (some_ni_operand): Ditto.
11072 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
11074 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
11075 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
11076 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
11077 low part of the constant using alpha_emit_set_const_1.
11078 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
11080 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
11082 * varasm.c (output_constant_pool_1): Pass down alignment from
11083 constant pool entry's descriptor to output_constant_pool_2.
11084 (output_object_block): Add comment prior to call to
11085 output_constant_pool_1.
11087 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
11089 PR rtl-optimization/65862
11090 * target.def (ira_change_pseudo_allocno_class): New hook.
11091 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
11093 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
11094 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
11096 * ira-costs.c (find_costs_and_classes): Call the hook and change
11097 classes when it is necessary.
11098 * doc/tm.texi: Update.
11100 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
11102 * config/i386/i386.md (sibcall_memory): Check that register with
11103 callee address is not also used as one of the arguments, instead
11104 of checking that it is not live after the sibcall.
11105 (sibcall_pop_memory): Ditto.
11106 (sibcall_value_memory): Ditto.
11107 (sibcall_value_pop_memory): Ditto.
11109 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
11111 * generic-match-head.c (types_match): Handle non-types.
11112 * gimple-match-head.c (types_match): Likewise.
11113 * match.pd: Remove unnecessary TREE_TYPE for types_match.
11115 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
11117 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
11118 (csneg3<mode>_insn): Enable expansion of pattern.
11120 2015-05-14 Nick Clifton <nickc@redhat.com>
11122 * config/rl78/rl78.c (rl78_select_section): Select the correct
11123 default section based upon the category of the decl.
11125 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11127 PR rtl-optimization/30967
11128 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
11129 destination mode for the cost of scc patterns.
11131 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11133 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
11134 using SWIM248 mode iterator.
11135 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
11136 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
11137 for operand[2] constraint.
11138 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
11140 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11142 PR middle-end/66133
11143 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
11144 make sure it is never noreturn, even when the task body does not
11146 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
11147 right before GIMPLE_OMP_RETURN.
11148 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
11149 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
11150 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
11152 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11154 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
11155 * tree-ssa-math-opts.c: Include params.h
11156 (pow_synth_sqrt_info): New struct.
11157 (representable_as_half_series_p): New function.
11158 (get_fn_chain): Likewise.
11159 (print_nested_fn): Likewise.
11160 (dump_fractional_sqrt_sequence): Likewise.
11161 (dump_integer_part): Likewise.
11162 (expand_pow_as_sqrts): Likewise.
11163 (gimple_expand_builtin_pow): Use above to attempt to expand
11164 pow as series of square roots. Removed now unused variables.
11166 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
11168 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
11169 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
11170 Remove *p0 and *p1 arguments. Rewrite function.
11171 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
11172 (alpha_split_const_mov): Update calls to alpha_extract_integer and
11173 alpha_emit_set_long_const.
11174 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
11175 (alpha_output_mi_thunk_osf): Ditto.
11176 * config/alpha/alpha.md (movti): Do not check operands[1]
11179 2015-05-13 Richard Biener <rguenther@suse.de>
11181 PR tree-optimization/66129
11182 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
11184 (vect_schedule_slp_instance): Fix typo.
11186 2015-05-13 David Malcolm <dmalcolm@redhat.com>
11188 * common.opt (fdump-internal-locations): New option.
11189 * input.c: Include diagnostic-core.h.
11190 (get_end_location): New function.
11191 (write_digit): New function.
11192 (write_digit_row): New function.
11193 (dump_location_range): New function.
11194 (dump_labelled_location_range): New function.
11195 (dump_location_info): New function.
11196 * input.h (dump_location_info): New prototype.
11197 * toplev.c (compile_file): Handle flag_dump_locations.
11199 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
11201 * gimple-expr.h (is_gimple_constant): Reorder.
11202 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
11204 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
11206 * combine.c (simplify_set): When generating a CC set, if the
11207 source already is in the correct mode, do not wrap it in a
11208 compare. Simplify the rest of that code.
11210 2015-05-13 Richard Biener <rguenther@suse.de>
11212 PR tree-optimization/66123
11213 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
11216 2015-05-13 Richard Biener <rguenther@suse.de>
11218 PR middle-end/66110
11219 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
11221 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
11223 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
11225 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
11226 * aclocal.m4: Regenerated with automake-1.11.6.
11228 2015-05-13 Tom de Vries <tom@codesourcery.com>
11230 PR tree-optimization/66010
11231 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
11232 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
11233 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
11234 and rval based on do_deref.
11236 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11239 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
11240 link time constants into adress expressions and therefore set
11243 2015-05-13 Jakub Jelinek <jakub@redhat.com>
11246 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
11247 Use SWI248 iterator instead of SWI.
11248 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
11249 Use eq_attr "alternative" "0" instead of match_test in
11250 length_immediate attribute computation.
11251 (*mulvhi4, *mulvhi4_1): New define_insns.
11254 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
11255 SIGNED to get precision of non-negative value.
11257 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
11260 * function.c (diddle_return_value_1): Process bounds first.
11261 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
11264 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11266 PR rtl-optimization/64616
11267 * loop-invariant.c (can_move_invariant_reg): New.
11268 (move_invariant_reg): Call above new function to decide whether
11269 instruction can just be moved, skipping creation of temporary
11272 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11274 PR target/pr66047.c
11275 * i386.c (ix86_function_sseregparm): Only return -1 if local function
11276 with implied regparm is called from -mno-sse function.
11277 (init_cumulative_args): Output error if ix86_function_sseregparm
11278 return -1 and SSE register would be needed.
11279 (function_arg_advance_32): Likewise.
11280 (function_arg_32): Likewise.
11281 * i386.h (ix86_args): Add decl field.
11283 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11286 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
11287 inlines across optimization boundary.
11289 2015-05-12 Jason Merrill <jason@redhat.com>
11291 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
11292 string literal and macro name.
11294 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
11296 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
11297 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
11298 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
11300 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11302 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
11303 (-Wmisleading-indentation): New option.
11304 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
11306 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
11308 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
11309 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
11310 (alpha_extract_integer): Ditto.
11311 (alpha_legitimate_constant_p): Ditto.
11312 (alpha_split_tmode_pair): Ditto.
11313 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
11314 (alpha_expand_mov): Ditto.
11315 (print_operand): Remove handling of 'H' modifier.
11316 <case 'm'>: Remove CONST_DOUBLE handling.
11317 (summarize_insn): Handle CONST_WIDE_INT.
11318 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
11320 (movti): Handle CONST_WIDE_INT.
11321 * config/alpha/constraints.md ('H'): Remove constraint definition.
11322 ('G'): Do not match MODE_FLOAT class.
11323 * config/alpha/predicates.md (const0_operand): Also match
11325 (non_add_const_operand): Ditto.
11326 (non_zero_const_operand): Ditto.
11327 (some_operand): Ditto.
11328 (input_operand): Ditto. Handle CONST_WIDE_INT.
11329 (and_operand): Do not match const_double.
11330 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
11332 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
11335 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
11336 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
11337 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11338 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
11339 is_mm_seq_cst, is_mm_sync): New accessor functions.
11340 * builtins.c (expand_builtin_sync_operation,
11341 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
11342 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
11343 (get_memmodel, expand_builtin_atomic_compare_exchange,
11344 expand_builtin_atomic_load, expand_builtin_atomic_store,
11345 expand_builtin_atomic_clear): Use new accessor routines.
11346 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
11347 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
11348 (maybe_emit_sync_lock_test_and_set): Use new accessors and
11349 MEMMODEL_SYNC_ACQUIRE.
11350 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
11351 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
11352 expand_atomic_store): Use new accessors.
11353 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
11354 * tsan.c (instrument_builtin_call): Update check for memory model beyond
11355 final enum to use MEMMODEL_LAST.
11356 * c-family/c-common.c: Use new accessor for memmodel_base.
11357 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
11359 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
11360 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
11361 mem_thread_fence, *dmb): Likewise.
11362 * config/alpha/alpha.c (alpha_split_compare_and_swap,
11363 alpha_split_compare_and_swap_12): Likewise.
11364 * config/arm/arm.c (arm_expand_compare_and_swap,
11365 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
11366 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
11367 atomic_loaddi): Likewise.
11368 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
11370 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
11371 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
11373 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
11374 atomic_store<mode>, atomic_compare_and_swap<mode>,
11375 atomic_exchange<mode>): Use new accessors.
11376 * config/mips/mips.c (mips_process_sync_loop): Likewise.
11377 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
11378 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
11379 rs6000_post_atomic_barrier): Add new cases.
11380 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
11381 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
11382 (atomic_load<mode>): Add new cases and use new accessors.
11383 (store_quadpti): Add new cases.
11384 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
11386 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
11387 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
11390 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
11392 * ipa-devirt.c (type_with_linkage_p): New function.
11393 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
11395 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
11396 (can_be_name_hashed_p): Simplify.
11397 (hash_odr_name): Check that type has linkage before checking if it is
11399 (types_same_for_odr): Likewise.
11400 (odr_name_hasher::equal): Likewise.
11401 (odr_subtypes_equivalent_p): Likewise.
11402 (warn_types_mismatch): Likewise.
11403 (get_odr_type): Likewise.
11404 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
11405 * ipa-utils.h (odr_type_p): Move offline.
11406 * tree.c (need_assembler_name_p): Fix handling of types
11408 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
11410 2015-05-12 David Malcolm <dmalcolm@redhat.com>
11412 * timevar.c (timevar_enable): Delete in favor of...
11413 (g_timer): New global.
11414 (struct timevar_def): Move to timevar.h inside class timer.
11415 (struct timevar_stack_def): Likewise.
11416 (timevars): Delete global in favor of field "m_timevars" within
11417 class timer in timevar.h
11418 (stack): Likewise, in favor of field "m_stack".
11419 (unused_stack_instances): Likewise, in favor of field
11420 "m_unused_stack_instances".
11421 (start_time): Likewise, in favor of field "m_start_time".
11422 (get_time): Eliminate check for timevar_enable.
11423 (timer::timer): New function, built from part of timevar_init.
11424 (timevar_init): Rewrite idempotency test from using
11425 "timevar_enable" bool to using dynamic allocation of "g_timer".
11426 Move rest of implementation into timer's constructor.
11427 (timevar_push_1): Rename to...
11428 (timer::push): ...this, adding "m_" prefixes to variables that
11429 are now fields of timer.
11430 (timevar_pop_1): Likewise, rename to...
11431 (timer::pop): ...this, and add "m_" prefixes.
11432 (timevar_start): Replace test for "timevar_enable" with one for
11433 "g_timer", and move bulk of implementation to...
11434 (timer::start): ...here, adding "m_" prefixes.
11435 (timevar_stop): Likewise, from here...
11436 (timer::stop): ...to here.
11437 (timevar_cond_start): Likewise, from here...
11438 (timer::cond_start): ...to here.
11439 (timevar_cond_stop): Likewise, from here...
11440 (timer::cond_stop): ...to here.
11441 (validate_phases): Rename to...
11442 (timer::validate_phases): ...this, and add "m_" prefixes. Make
11443 locals "total" and "tv" const.
11444 (timevar_print): Rename to...
11445 (timer::print): ...this, and add "m_" prefixes. Make locals
11446 "total" and "tv" const. Eliminate test for timevar_enable.
11447 * timevar.h (timevar_enable): Eliminate.
11448 (g_timer): New declaration.
11449 (timevar_push_1): Eliminate.
11450 (timevar_pop_1): Eliminate.
11451 (timevar_print): Eliminate.
11452 (class timer): New class.
11453 (timevar_push): Rewrite to use g_timer.
11454 (timevar_pop): Likewise.
11455 * toplev.c (toplev::~toplev): Likewise.
11457 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
11459 * arm-protos.h (arm_sched_autopref): Delete.
11460 (tune_params): Re-organize, use enums for flag values.
11461 (FUSE_OPS): New macro.
11462 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
11463 (ARM_PREFETCH_BENEFICIAL): Likewise.
11464 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
11465 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11466 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
11467 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
11468 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
11469 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
11470 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
11471 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
11473 (arm_option_override, thumb2_reorg, arm_print_tune_info)
11474 (aarch_macro_fusion_pair_p): Update uses of current_tune.
11475 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
11477 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
11479 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
11482 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
11483 Sandra Loosemore <sandra@codesourcery.com>
11485 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
11487 (REG_CLASS_NAMES): Add "IJMP_REGS".
11488 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
11489 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
11490 use new "c" register constraint.
11491 * config/nios2/constraint.md (c): New register constraint
11492 corresponding to IJMP_REGS.
11494 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11496 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
11497 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
11498 define_splits): Delete, revamp, transmogrify into ...
11499 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11500 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11501 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11504 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11506 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
11507 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
11509 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11511 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
11512 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
11513 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
11514 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
11515 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
11516 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
11517 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
11518 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
11519 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
11520 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11521 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
11522 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
11523 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
11524 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
11525 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
11526 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
11527 and 30 corresponding splitters): Delete.
11529 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11531 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
11534 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11536 * combine.c (recog_for_combine_1): New function, factored out
11537 from recog_for_combine.
11538 (change_zero_ext): New function.
11539 (recog_for_combine): If recog fails, try again with the pattern
11540 modified by change_zero_ext; if that still fails, restore the
11543 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
11545 * combine.c (get_undo_marker): New function.
11546 (undo_to_marker): New function, largely factored out from ...
11547 (undo_all): ... this. Adjust.
11549 2015-05-12 Richard Biener <rguenther@suse.de>
11551 PR tree-optimization/66101
11552 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
11553 fixup if we turn a loop exit edge to a fallthru edge.
11555 2015-05-12 Richard Biener <rguenther@suse.de>
11557 PR tree-optimization/37021
11558 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
11559 (SLP_TREE_TWO_OPERATORS): New define.
11560 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
11561 SLP_TREE_TWO_OPERATORS.
11562 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
11564 (vect_build_slp_tree): Adjust.
11565 (vect_analyze_slp_cost_1): Likewise.
11566 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
11567 emitting two vector stmts and mixing the results.
11569 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
11571 * call.c (print_z_candidates): Remove dead code.
11573 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11575 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
11576 and zEC12_simple_fp.
11577 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
11580 2015-05-12 Tom de Vries <tom@codesourcery.com>
11582 PR tree-optimization/66010
11583 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
11585 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
11586 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
11587 va_lists are passed, and remove corresponding handling.
11588 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
11589 do_deref argument to ifn_va_arg.
11590 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
11593 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11596 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
11597 REG before taking its REGNO.
11599 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11601 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
11602 rsp->sign_bit_copies and rsp->nonzero_bits into ...
11603 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
11604 present to get more accurate information about the number of sign bit
11605 copies and non zero bits.
11607 2015-05-12 Richard Biener <rguenther@suse.de>
11609 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
11610 do not allow unrolling.
11612 2015-05-11 Richard Henderson <rth@redhat.com>
11614 * config/i386/i386-modes.def (CCP): New.
11615 * config/i386/i386.c (put_condition_code): Handle it.
11616 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
11618 2015-05-11 Richard Henderson <rth@redhat.com>
11620 * target.def (md_asm_clobbers): Replace with...
11621 (md_asm_adjust): this.
11622 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
11623 (TARGET_MD_ASM_ADJUST): New.
11624 * tm.texi: Rebuild.
11625 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
11626 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
11627 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
11629 * cfgexpand.c (check_operand_nalternatives): Accept vector of
11630 constraints instead of lists of outputs and inputs.
11631 (expand_asm_stmt): Save and restore input_location around the
11632 body of the function. Move asm data into vectors instead of
11633 building tree lists. Generate cleanup sequences as needed,
11634 rather than waiting til the end. Use new md_asm_adjust hook.
11636 * config/vxworks.c: Include vec.h before target.h.
11637 * gimple.c: Likewise.
11638 * incpath.c: Likewise.
11639 * mode-switching.c: Likewise.
11641 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
11642 (cris_md_asm_adjust): this.
11643 (TARGET_MD_ASM_CLOBBERS): Remove.
11644 (TARGET_MD_ASM_ADJUST): New.
11645 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
11646 (ix86_md_asm_adjust): this.
11647 (TARGET_MD_ASM_CLOBBERS): Remove.
11648 (TARGET_MD_ASM_ADJUST): New.
11649 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
11650 (mn10300_md_asm_adjust): this.
11651 (TARGET_MD_ASM_CLOBBERS): Remove.
11652 (TARGET_MD_ASM_ADJUST): New.
11653 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
11654 (rs6000_md_asm_adjust): this.
11655 (TARGET_MD_ASM_CLOBBERS): Remove.
11656 (TARGET_MD_ASM_ADJUST): New.
11657 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
11658 (visium_md_asm_adjust): this.
11659 (TARGET_MD_ASM_CLOBBERS): Remove.
11660 (TARGET_MD_ASM_ADJUST): New.
11662 2015-05-11 Richard Henderson <rth@redhat.com>
11664 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
11665 if noutputs is zero.
11666 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
11668 * cfgexpand.c (expand_asm_operands): Merge into...
11669 (expand_asm_stmt): ... here.
11671 * cfgexpand.c (expand_asm_operands): Don't call
11672 resolve_asm_operand_names.
11673 * stmt.c (resolve_asm_operand_names): Clarify block comment.
11675 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
11677 * dwarf2out.c (gen_member_die): Sanity check that we access
11678 TYPE_MAIN_VARIANT for TYPE_METHODS.
11679 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
11680 checking TYPE_METHODS.
11681 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
11683 (build_distinct_type_copy): Clear TYPE_METHODS.
11684 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
11685 (verify_type): Allow TYPE_METHODS to be error_mark_node.
11686 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
11688 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
11690 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
11691 (emit_pattern_before_setloc): Likewise.
11693 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11695 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
11696 for define_peephole2s.
11697 (get_peephole2_pattern): New function.
11698 (main): Use it. Call validate_pattern.
11700 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11702 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
11703 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
11704 (Last callee saved reg is different for AVR_TINY architecture)
11706 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11708 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
11709 when looking for memory references.
11711 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11714 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
11715 via function pointers.
11717 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
11719 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
11720 indirect call by forcing address into a pseudo with -fno-plt.
11721 * common.opt (flag_plt): New option.
11722 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
11723 ([-fno-plt]): Document.
11725 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
11728 * config/rs6000/option-defaults.h: Add space between string literal
11731 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11733 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
11734 accross ARM targets.
11736 2015-05-11 Christian Bruel <christian.bruel@st.com>
11738 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
11739 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
11741 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
11743 PR rtl-optimization/66076
11744 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
11745 Don't grow the heap array if it is already big enough from a
11746 previous iteration.
11748 2015-05-11 Christian Bruel <christian.bruel@st.com>
11750 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
11751 (is_called_in_ARM_mode): Remove.
11752 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
11753 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
11754 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
11755 arm_declare_function_name.
11757 2015-05-11 Christian Bruel <christian.bruel@st.com>
11759 * config/arm/arm.c (arm_option_override): Reoganized and split into :
11760 (arm_option_params_internal); New function.
11761 (arm_option_check_internal): New function.
11762 (arm_option_override_internal): New function.
11763 (thumb_code, thumb1_code): Remove.
11764 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
11765 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
11766 (thumb_code, thumb1_code): Remove.
11767 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
11769 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
11771 * config/alpha/alpha.c (alpha_emit_set_const_1)
11772 (alpha_emit_set_long_const, alpha_extract_integer)
11773 (alpha_legitimate_constant_p, alpha_split_const_mov)
11774 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
11775 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11776 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
11778 * config/alpha/predicates.md (mode_mask_operand): Do not match
11780 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11781 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
11782 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
11783 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
11784 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
11786 2015-05-11 Jakub Jelinek <jakub@redhat.com>
11789 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
11790 default_binds_local_p_2.
11791 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
11792 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
11794 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11796 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
11798 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11800 Patch by Richard Biener
11801 * coverage.c (coverage_obj_init): Delay building of type variant
11802 until the type is finished.
11804 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11806 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
11807 mismatch between C and C++ type; compoare correctly ARG_TYPES
11808 for non-prototypes and output correctly parameter index for METHOD_TYPE.
11809 (odr_types_equivalent_p): Fix wording of warning about attributes;
11810 it is OK to match prototype and non-prototype.
11812 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11814 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
11815 TYPE_ARG_TYPES list.
11816 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
11817 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
11819 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
11821 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
11822 * tree.h (is_lang_specific): Constify.
11824 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
11826 PR tree-optimization/64454
11827 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
11830 2015-05-08 Jason Merrill <jason@redhat.com>
11832 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
11833 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
11834 config/darwin.h, config/darwin9.h, config/elfos.h,
11835 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
11836 config/microblaze/microblaze.h, config/mips/mips.h,
11837 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
11838 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
11839 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11840 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
11841 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
11842 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
11843 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
11844 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
11845 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
11846 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
11847 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
11848 between string literal and macro name.
11850 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11852 * jump.c: Change argument types to rtx_insn *.
11855 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11857 * lra-constraints.c: Change argument type to rtx_insn *.
11859 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11861 * df-problems.c: Change argument type to rtx_insn *.
11863 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11865 * combine.c: Change argument type to rtx_insn *.
11867 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11870 * rtlanal.c: Change argument type to rtx_insn *.
11872 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11874 * sched-deps.c: Change argument types to rtx_insn *.
11875 * sched-int.h: Adjust.
11877 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11879 * dwarf2cfi.c: Change argument type to rtx_insn *.
11881 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11883 * ira.c (decrease_live_ranges_number): Changetype of local
11884 variable to rtx_insn *.
11885 * recog.c: Change argument types to rtx_insn *.
11888 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11890 * reorg.c: Change argument types to rtx_insn *.
11892 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11894 * ira-color.c: Change argument types to rtx_insn *.
11895 * lra-eliminations.c: Likewise.
11898 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11900 * gcse.c: Change argument types to rtx_insn *.
11902 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11904 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
11906 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11908 * emit-rtl.c (emit_debug_insn_before): Change argument type to
11912 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11914 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
11917 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11919 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
11922 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11924 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
11927 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11929 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
11932 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11934 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
11938 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11940 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
11944 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11946 * except.c (can_nonlocal_goto): Change type of argument to
11950 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11952 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
11955 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11957 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
11958 * cfgrtl.c (can_delete_label_p): Adjust.
11961 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11963 * reorg.c (stop_search_p): Change argument to rtx_insn *.
11965 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11967 * except.c (make_reg_eh_region_note): Change argument to
11969 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
11970 * except.h: Adjust.
11972 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11974 * mode-switching.c (commit_mode_sets): Change type of local
11975 variable from rtx to rtx_insn *.
11977 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
11979 * doc/install.texi (--enable-languages): Add missing jit and lto info.
11980 Add ^ to grep command.
11981 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
11982 arg to last gimple_simplify declaration. Add missing gimple_build
11983 declaration for built-in function case with four tree args.
11985 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
11986 Szabolcs Nagy <szabolcs.nagy@arm.com>
11988 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
11989 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
11990 (GNU_USER_DYNAMIC_LINKERN32): Update.
11992 2015-05-08 Richard Biener <rguenther@suse.de>
11994 PR tree-optimization/66036
11995 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11996 Handle strided group loads.
11997 (vect_verify_datarefs_alignment): Likewise.
11998 (vect_enhance_data_refs_alignment): Likewise.
11999 (vect_analyze_group_access): Likewise.
12000 (vect_analyze_data_ref_access): Likewise.
12001 (vect_analyze_data_ref_accesses): Likewise.
12002 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
12003 (vectorizable_load): Likewise.
12005 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
12007 * config/rs6000/rs6000.md: Require operand inequality in one
12010 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
12011 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12013 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
12015 * config/rx/rx.md (movdi, movdf): Likewise.
12016 Likewise for define_peephole2s.
12018 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12020 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
12021 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
12022 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
12023 vtst_u64): Rewrite using gcc vector extensions.
12025 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12027 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
12028 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
12030 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
12032 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
12034 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
12036 * config/glibc-stdint.h (OPTION_MUSL): Define.
12037 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
12038 Change the definition based on OPTION_MUSL for 64 bit targets.
12039 * config/linux.h (OPTION_MUSL): Redefine.
12040 * config/alpha/linux.h (OPTION_MUSL): Redefine.
12041 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
12042 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
12044 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
12045 Szabolcs Nagy <szabolcs.nagy@arm.com>
12047 * config.gcc (LIBC_MUSL): New tm_defines macro.
12048 * config/linux.h (OPTION_MUSL): Define.
12049 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
12050 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
12051 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
12052 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
12053 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
12054 * config/linux.opt (mmusl): New option.
12055 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
12056 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
12057 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
12058 * configure: Regenerate.
12060 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
12061 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
12064 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
12065 * config/i386/knetbsd-gnu64.h: New file.
12067 2015-05-08 Marek Polacek <polacek@redhat.com>
12070 * doc/invoke.texi: Document -Woverride-init-side-effects.
12072 2015-05-07 Marek Polacek <polacek@redhat.com>
12075 * doc/invoke.texi: Document -Wshift-negative-value.
12077 2015-05-06 Aditya Kumar <hiraditya@msn.com>
12079 * gcov-tool.c (do_merge): Refactore to remove int ret.
12080 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
12081 !type == FUNC to type != FUNC.
12082 * reload.h (struct target_reload): Changee to type of
12083 x_spill_indirect_levels from bool to unsigned char.
12085 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
12087 * rtl.h (always_void_p): New function.
12088 * gengenrtl.c (always_void_p): Likewise.
12089 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
12090 with code foo are always VOIDmode.
12091 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
12092 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
12093 compare-elim.c, config/aarch64/aarch64.c,
12094 config/aarch64/aarch64.md, config/alpha/alpha.c,
12095 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
12096 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
12097 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
12098 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
12099 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
12100 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
12101 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
12102 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
12103 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
12104 config/ia64/vect.md, config/iq2000/iq2000.c,
12105 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
12106 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
12107 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
12108 config/mep/mep.c, config/microblaze/microblaze.c,
12109 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
12110 config/mn10300/mn10300.c, config/msp430/msp430.c,
12111 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
12112 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
12113 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
12114 config/rs6000/altivec.md, config/rs6000/rs6000.c,
12115 config/rs6000/rs6000.md, config/rs6000/vector.md,
12116 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
12117 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
12118 config/sh/sh.md, config/sh/sh_treg_combine.cc,
12119 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
12120 config/spu/spu.md, config/stormy16/stormy16.c,
12121 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
12122 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
12123 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
12124 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
12125 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
12126 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
12127 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
12128 var-tracking.c: Update calls accordingly.
12130 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12133 PR middle-end/54303
12134 * varasm.c (function_mergeable_rodata_prefix): New function.
12135 (mergeable_string_section): Use it.
12136 (mergeable_constant_section): Use it.
12138 2015-05-07 Jeff Law <law@redhat.com>
12141 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12142 simplifier to narrow arithmetic.
12143 * generic-match-head.c: (types_match, single_use): New functions.
12144 * gimple-match-head.c: (types_match, single_use): New functions.
12146 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12148 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
12151 2015-05-07 Richard Biener <rguenther@suse.de>
12153 PR tree-optimization/66002
12154 * passes.def: Schedule another pass_merge_phi after ifcombine, right
12157 2015-05-07 Marek Polacek <polacek@redhat.com>
12158 Martin Uecker <uecker@eecs.berkeley.edu>
12160 * doc/invoke.texi: Document -fsanitize=bounds-strict.
12161 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
12162 into SANITIZE_NONDEFAULT.
12163 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
12165 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
12168 * config/alpha/alpha.c (alpha_override_options_after_change): New.
12169 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
12170 (alpha_override_options): Move align_loops, align_jumps and
12171 align_functions handling into alpha_override_options_after_change.
12173 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
12174 Chris Jones <chrisj@nvidia.com>
12175 Joshua Conner <jconner@nvidia.com>
12177 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
12178 linking of crtfastmath.o.
12179 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
12181 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12183 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
12184 (cstore<mode>4_unsigned_imm): New expander.
12185 (cstore<mode>4): Remove empty constraint strings. Use the new
12188 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
12191 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
12194 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12196 * config/aarch64/geniterators.sh: Use standard BRE in sed.
12198 2015-05-06 Alan Modra <amodra@gmail.com>
12201 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
12202 (UNSPEC_NOP): Define.
12203 (reload_vsx_from_gpr<mode>): Add missing DONE.
12204 (reload_gpr_from_vsx<mode>): Likewise.
12205 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12206 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
12208 2015-05-06 Christian Bruel <christian.bruel@st.com>
12211 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
12212 align_jumps, align_functions into aarch64_override_options_after_change.
12214 2015-05-06 Richard Biener <rguenther@suse.de>
12216 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
12217 vect_transform_slp_perm_load to check if we support a permutation
12218 for basic-block vectorization.
12220 2015-05-06 Nick Clifton <nickc@redhat.com>
12222 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
12223 used, even if it is not being used as a frame pointer.
12225 2015-05-05 Jason Merrill <jason@redhat.com>
12227 * dwarf2out.c (gen_member_die): Don't emit anything for an
12228 anonymous class constructor.
12230 2015-05-05 David Malcolm <dmalcolm@redhat.com>
12232 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
12233 that it reflects the block structure.
12234 (afdo_propagate_edge): Likewise.
12235 (afdo_calculate_branch_prob): Likewise.
12236 (afdo_annotate_cfg): Likewise.
12237 * cfgcleanup.c (equal_different_set_p): Likewise.
12238 (try_crossjump_to_edge): Likewise.
12239 * cgraph.c (cgraph_node::verify_node): Likewise.
12240 * cgraphunit.c (expand_all_functions): Likewise.
12241 * config/i386/i386.c (ix86_expand_copysign): Likewise.
12242 (exact_dependency_1): Likewise.
12243 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
12244 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
12245 * gensupport.c (process_define_subst): Likewise.
12246 * lto-wrapper.c (merge_and_complain): Likewise.
12247 * tree-if-conv.c (if_convertible_bb_p): Likewise.
12248 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
12249 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
12250 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
12251 * tree-vect-loop.c (vectorizable_reduction): Likewise.
12252 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
12253 * tree-vect-stmts.c (vectorizable_shift): Likewise.
12254 * tree-vrp.c (vrp_finalize): Likewise.
12255 * tree.c (variably_modified_type_p): Likewise.
12257 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
12259 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
12260 on darwin12 and later.
12261 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
12262 file to pass -rdynamic on darwin12 and later.
12263 * config/darwin.opt (rdynamic): Add.
12265 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12267 * doc/extend.texi (C Extensions): Update menu for moved Variable
12268 Attributes and Type Attributes sections.
12270 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12273 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
12274 if rep_8byte stringop strategy was specified for 32-bit target.
12276 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
12279 * config/i386/i386.md (vector convert to float spltiter): Check for
12280 xmm16+, when splitting scalar float conversion.
12281 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
12283 2015-05-05 Nick Clifton <nickc@redhat.com>
12285 * config/msp430/msp430-opts.h (enum msp430_regions): New.
12286 * config/msp430/msp430.c (msp430_override_options): Complain if
12287 -mcode-region or -mdata-region is used on a non MSP430X.
12288 (msp430_section_attr): New function. Checks lower, upper and
12290 (msp430_attribute_table): Add lower, upper and either.
12291 (gen_prefix): New function. Generates a prefix for a section
12293 (msp430_select_section): New function - handles the choice of
12294 section for an object. Takes into account memory region
12295 attributes and options.
12296 (msp430_function_section): Use gen_prefix.
12297 (TARGET_SECTION_TYPE_FLAGS): Define.
12298 (msp430_section_type_flags): New function.
12299 (TARGET_ASM_UNIQUE_SECTION): Define.
12300 (msp430_unique_section): New function.
12301 (msp430_output_aligned_decl_common): New function.
12302 (msp430_do_not_relax_short_jumps): New function.
12303 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
12305 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12306 * config/msp430/msp430-protos.h
12307 (msp430_do_not_relax_short_jumps): New prototype.
12308 (msp430_output_aligned_decl_common): New prototype.
12309 * config/msp430/msp430.md (length): New attribute.
12310 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
12311 then use a long code sequence for short jumps.
12312 * config/msp430/msp430.opt (mcode-region): New.
12313 (mdata-region): New.
12314 * doc/invoke.texi: Document new options.
12315 * doc/extend.texi: Document new attributes.
12317 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12319 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
12320 (tune_params): Add field branch_costs.
12321 (aarch64_branch_cost): Declare.
12322 * gcc/config/aarch64.c (generic_branch_cost): New.
12323 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
12324 (cortexa53_tunings): Likewise.
12325 (cortexa57_tunings): Likewise.
12326 (thunderx_tunings): Likewise.
12327 (xgene1_tunings): Likewise.
12328 (aarch64_branch_cost): Define.
12329 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
12331 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12333 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
12334 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
12335 * config/i386/i386.md: Ditto.
12336 * config/i386/winnt.c: Ditto.
12338 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
12340 * doc/extend.texi (__atomic Builtins): Move implementation details
12341 to the end of the description, rewrite opening paragraphs, state
12342 difference with __sync builtins, state C11/C++11 assumptions,
12343 weaken itemized descriptions, add explanation of memory model
12344 behaviour, expand description of compare-exchange, simplify text.
12346 2015-05-05 Renlin Li <renlin.li@arm.com>
12348 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
12350 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
12352 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
12353 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12354 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
12355 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
12356 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
12357 * configure: Regenerate.
12358 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
12359 * doc/install.texi (aarch64*-*-*): Document new
12360 --enable-fix-cortex-a53-843419 option.
12361 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
12362 and -mno-fix-cortex-a53-843419 options.
12364 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
12367 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
12369 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
12371 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
12372 fix overactive TYPE_MIN_VALUE check and add FIXME for type
12373 compatibility problems.
12375 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12377 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
12379 (cbranchsi4_reg): New.
12380 * config/microblaze/microblaze.c
12381 (microblaze_expand_conditional_branch_reg): New.
12382 * config/microblaze/microblaze-protos.h
12383 (microblaze_expand_conditional_branch_reg): New prototype.
12385 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
12387 * config/microblaze/microblaze.md (peephole2): New.
12389 2015-05-04 Jeff Law <law@redhat.com>
12392 2015-05-04 Jeff Law <law@redhat.com>
12394 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12395 simplifier to narrow arithmetic.
12396 * generic-match-head.c: (types_match, single_use): New functions.
12397 * gimple-match-head.c: (types_match, single_use): New functions.
12399 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
12402 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
12403 (split_branches): Likewise.
12405 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
12407 * common.opt (fdelete-null-pointer-checks): Init to -1.
12408 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
12409 override flag_delete_null_pointer_checks default.
12410 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
12411 behavior re address zero. Better document target-specific behavior.
12412 (-fisolate-errneous-paths-dereference): Mention relationship to
12413 -fdelete-null-pointer-checks.
12415 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12417 PR tree-optimization/65984
12418 * ubsan.c: Include tree-cfg.h.
12419 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
12420 stmt_could_throw_p test, rename can_throw variable to ends_bb.
12422 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12424 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
12425 to CONST_DOUBLE_P predicate.
12426 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
12427 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
12428 allow only operands that satisfy standard_sse_constant_p predicate.
12429 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
12430 to CONST_DOUBLE_P predicate.
12432 2015-05-04 Jeff Law <law@redhat.com>
12434 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
12435 simplifier to narrow arithmetic.
12436 * generic-match-head.c: (types_match, single_use): New functions.
12437 * gimple-match-head.c: (types_match, single_use): New functions.
12439 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
12441 * config/arm/arm.c: Restore bootstrap.
12443 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
12445 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
12446 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
12447 as CONST_WIDE_INT, not CONST_DOUBLE.
12448 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
12449 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
12450 (ix86_find_base_term): Do not check for CONST_DOUBLE.
12451 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
12452 (ix86_build_signbit_mask): Rewrite using wide ints.
12453 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
12454 (ix86_rtx_costs): Handle CONST_WIDE_INT.
12455 (find_constant): Ditto.
12456 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
12457 using gen_int_mode.
12458 * config/i386/predicates.md (x86_64_immediate_operand)
12459 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12460 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
12461 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
12462 (const0_operand): Also match const_wide_int.
12463 (constm1_operand): Ditto.
12464 (const1_operand): Ditto.
12466 2015-05-04 Richard Biener <rguenther@suse.de>
12468 PR tree-optimization/65965
12469 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12470 store groups at gaps.
12472 2015-05-04 Richard Biener <rguenther@suse.de>
12474 PR tree-optimization/65935
12475 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
12476 then make sure to apply that swapping to the IL.
12478 2015-05-04 Jakub Jelinek <jakub@redhat.com>
12480 * Makefile.in (PATCHLEVEL_c): New variable.
12481 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
12482 expand the same way as if DEVPHASE_c was non-empty.
12484 2015-05-04 Kai Tietz <ktietz@redhat.com>
12487 * lto-wrapper.c (run_gcc): Open filename
12490 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
12492 * doc/extend.texi (Variable Attributes, Type Attributes): Move
12493 sections up in file, to immediately after the Function Attributes
12496 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
12498 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
12500 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12502 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
12503 (insert_partition_copy_on_edge): Adjust.
12504 (insert_rtx_to_part_on_edge): Likewise.
12505 (insert_part_to_rtx_on_edge): Likewise.
12507 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12509 * function.c (set_return_jump_label): Change type of argument to
12511 * function.h (set_return_jump_label): Adjust.
12513 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12515 * reload.h (struct reg_equivs_t): Change type of init to
12517 * ira.c (fix_reg_equiv_init): Adjust.
12518 * reload1.c (eliminate_regs_1): Likewise.
12519 (init_eliminable_invariants): Likewise.
12521 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12523 * cselib.c (fp_setter_insn): Take a rtx_insn *.
12524 * cselib.h (fp_setter_insn): Adjust.
12526 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12528 * recog.c (struct validate_replace_src_data): Change type of
12529 insn field to rtx_insn *.
12530 (validate_replace_src_group): Change type of argument to rtx_insn *.
12531 * recog.h (validate_replace_src_group): Adjust.
12533 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12535 * haifa-sched.c: Change the type of some variables to rtx_insn *.
12536 * sched-deps.c: Likewise.
12537 * sched-int.h: Likewise.
12538 * sched-rgn.c: Likewise.
12539 * sel-sched.c: Likewise.
12541 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12544 * config/i386/i386.c: Change the type of some arguments to
12546 * config/arm/arm.c: Likewise.
12548 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12550 * lra-constraints.c: Change type of some arguments to rtx_insn *.
12552 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12554 * regcprop.c (kill_autoinc_value): Change type of argument to
12557 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12559 * genrecog.c (print_subroutine): Adjust.
12560 * recog.c (get_bool_attr_mask_uncached): Likewise.
12561 * recog.h (struct recog_data_d): Change the type of insn to
12564 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12566 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
12568 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12570 * df-problems.c (df_set_note): Change type of argument to
12573 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12575 * builtins.c (expand_builtin_trap): Change type of local
12576 variable to rtx_insn *.
12577 (add_sched_insns_for_speculation): Likewise.
12578 (ix86_emit_save_regs): Likewise.
12579 (get_scratch_register_on_entry): Likewise.
12580 (ix86_emit_restore_reg_using_pop): Likewise.
12581 (ix86_emit_leave): Likewise.
12582 (ix86_emit_restore_regs_using_mov): Likewise.
12583 (ix86_expand_epilogue): Likewise.
12585 (rl78_alloc_physical_registers_umul): Likewise.
12586 * cselib.c (discard_useless_locs): Likewise.
12587 (cselib_invalidate_regno): Likewise.
12588 (cselib_invalidate_mem): Likewise.
12589 * function.c (expand_function_start): Likewise.
12590 (emit_use_return_register_into_block): Likewise.
12591 * gcse.c: Likewise.
12592 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
12593 * ifcvt.c (noce_get_alt_condition): Likewise.
12594 * loop-doloop.c (doloop_condition_get): Likewise.
12595 * lra-constraints.c (inherit_in_ebb): Likewise.
12596 * modulo-sched.c (sms_schedule_by_order): Likewise.
12597 * recog.c (next_insn_tests_no_inequality): Likewise.
12598 * reorg.c (emit_delay_sequence): Likewise.
12599 (update_reg_dead_notes): Likewise.
12600 (fix_reg_dead_note): Likewise.
12601 (fill_slots_from_thread): Likewise.
12602 (delete_computation): Likewise.
12604 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
12606 * doc/extend.texi (Variable Attributes): Add menu and proper
12607 @nodes to subsections. Move Microsoft Windows attributes to
12608 their own subsection.
12609 (Type Attributes): Reorganize introduction to remove duplicate
12610 list of attributes. Add menu and proper @nodes to subsections.
12611 Alphabetize the main table of common attributes.
12613 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
12615 * match.pd: New simplification patterns.
12616 (x + (x & 1)) -> ((x + 1) & ~1)
12617 (x & ~(x & y)) -> ((x & ~y))
12618 (x | ~(x | y)) -> ((x | ~y))
12620 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12622 * target.def (attribute_table): Mention that struct attribute_spec
12623 is defined in tree-core.h rather than tree.h
12624 * doc/tm.texi: Regenerate.
12626 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
12628 * genrecog.c (test): Rename to rtx_test. Update rest of file
12631 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
12633 PR translation/65959
12634 * params.h (DEFPARAM): Rename msgid to nocmsgid.
12636 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12638 * gcc/config/aarch64/aarch64-protos.h (tune_params):
12639 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
12640 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
12641 Return value depending on target.
12642 (generic_tunings): Initialize new target settings.
12643 (cortexa53_tunings): Likewise.
12644 (cortexa57_tunings): Likewise.
12645 (thunderx_tunings): Likewise.
12646 (xgene1_tunings): Likewise.
12648 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12650 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
12651 Make Cortex-A53 shift costs more accurate.
12653 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12655 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
12658 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
12660 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
12661 Calculate cost of op0 and op1 in PLUS and MINUS cases.
12663 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12665 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12666 Add cost of op0 in the compare-with-fpzero case.
12668 2015-04-30 David Malcolm <dmalcolm@redhat.com>
12670 * builtins.c (fold_builtin_1): Remove spurious second
12672 * cgraph.h (symtab_node::get_availability): Likewise.
12673 * opts.c (common_handle_option): Remove spurious second semicolon.
12674 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
12675 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
12677 2015-04-30 Caroline Tice <cmtice@google.com>
12679 PR gcov-profile/65929
12680 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
12681 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
12682 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
12683 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
12684 * doc/tm.texi: Regenerate.
12685 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
12686 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
12687 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
12688 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
12690 2015-04-30 Marek Polacek <polacek@redhat.com>
12692 * varasm.c (handle_cache_entry): Fix logic.
12694 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12696 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
12697 (*extrsi5_insn_uxtw_alt): Likewise.
12698 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
12699 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
12702 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12704 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
12707 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12709 * config/aarch64/aarch64.md
12710 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
12711 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
12712 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
12713 appropriately. Handle alternative EON form.
12715 2015-04-30 Renlin Li <renlin.li@arm.com>
12717 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
12718 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
12720 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12723 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
12724 -fstrict-aliasing boundaries.
12726 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12728 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
12729 and [SU]MNEGL patterns.
12731 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12733 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
12734 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
12735 combined arithmetic-shift ops. Properly handle all shift and extend
12736 operations that can occur in combination with PLUS/MINUS.
12737 Rename maybe_fma to compound_p.
12738 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
12739 arithmetic and shift operations.
12741 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12743 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
12744 rather than arith_shift cost when costing ADD/MINUS of an
12747 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
12750 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
12753 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
12755 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
12756 are for the same position.
12758 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
12760 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
12762 (vectorize_loops): Use it.
12764 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12766 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
12767 for aggregate types.
12768 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
12769 type to be non_ODR.
12770 * tree.c (need_assembler_name_p): Compute mangled name for
12771 non-fundamental types and integer types.
12773 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
12775 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
12777 * expr.c (expand_expr_real_2): Likewise.
12779 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12781 * tree.c (build_common_builtin_nodes): Do not build
12782 __builtin_alloca_with_align as equivalent of library alloca.
12784 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
12786 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
12787 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
12789 * tree.c: Include print-tree.h and ipa-utils.h
12790 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
12791 (free_lang_data_in_cgraph): Call verify_type.
12792 (verify_type_variant): New function.
12793 (verify_type): New function.
12794 * tree.h (verify_type): Declare.
12796 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
12798 * config/mips/mips-cpus.def: (mips4): Change default processor
12799 from PROCESSOR_R8000 to PROCESSOR_R10000.
12801 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
12803 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
12804 la/jalr instead of jal.
12806 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
12809 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
12810 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
12811 (setcc+movzbl peephole2): Check also clobbered reg.
12812 (setcc+andl peephole2): Ditto.
12814 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12817 * config/nvptx/mkoffload.c (target_ilp32): New variable.
12818 (main): Set it depending on "-foffload-abi=[...]".
12819 (compile_native, main): Use it to pass "-m32" or "-m64" to the
12822 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12825 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
12826 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
12827 Flip lane index back at assembly time for bigendian.
12829 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
12831 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
12832 * gimplify.c (gimplify_omp_workshare): Use it.
12834 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12836 * Makefile.in (build/genrecog.o): Depend on inchash.h.
12837 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
12839 * genrecog.c: Rewrite most of the code except for the third page.
12841 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12843 * inchash.h, inchash.c: Include bconfig.h for build objects.
12844 * Makefile.in (build/inchash.o): New rule.
12846 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
12849 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
12850 number in type attribute expression.
12852 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
12854 * loop-iv.c (canon_condition): Generalize to all types of integer
12857 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
12859 * gimple-walk.c: Prune duplicate or unneeded includes.
12860 (walk_gimple_asm): Only call parse_input_constraint or
12861 parse_output_constraint if their findings are used.
12862 Honour parse_input_constraint and parse_output_constraint
12865 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
12867 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
12869 2015-04-29 Tom de Vries <tom@codesourcery.com>
12871 PR tree-optimization/65893
12872 * passes.def (pass_all_optimizations): Move pass_stdarg to after
12875 2015-04-29 Richard Biener <rguenther@suse.de>
12877 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
12878 compute GROUP_SIZE for basic-block SLP.
12879 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
12880 take into account gaps.
12881 (vect_get_mask_element): Properly reject references to previous
12883 (vect_transform_slp_perm_load): Likewise.
12885 2015-04-29 Christian Bruel <christian.bruel@st.com>
12888 * config/i386/i386.c (ix86_default_align): New function.
12889 (ix86_override_options_after_change): Call ix86_default_align.
12890 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
12891 (ix86_override_options_after_change): New function.
12893 2015-04-28 Jeff Law <law@redhat.com>
12895 * tree-ssa-dom.c (record_equality); Fix comment typos.
12897 2015-04-28 Tom de Vries <tom@codesourcery.com>
12899 PR tree-optimization/65887
12900 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
12902 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
12904 * doc/extend.texi (Declaring Attributes of Functions): Split into
12905 subsections by target. Alphabetize the table of common attributes.
12906 Rewrite some of the introductory text to reflect the new structure.
12907 Update some cross-references to point to the new subsections.
12908 (Attribute Syntax): Put paragraph about "__" naming here. Remove
12909 duplicate copies in the discussion of function, label, and type
12912 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
12915 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
12917 2015-04-28 Jason Merrill <jason@redhat.com>
12920 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
12921 (finalize_type_size): Respect TYPE_USER_ALIGN.
12922 (layout_type) [ARRAY_TYPE]: Likewise.
12924 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
12926 * config/arm/arm.md (*arm_movt): Fix type attribute.
12927 (*cmpsi_shiftsi): Likewise.
12928 (*cmpsi_shiftsi_swp): Likewise.
12929 (*movsicc_insn): Likewise.
12930 (*cond_move): Likewise.
12931 (*if_plus_move): Likewise.
12932 (*if_move_plus): Likewise.
12933 (*if_arith_move): Likewise.
12934 (*if_move_arith): Likewise.
12935 (*if_shift_move): Likewise.
12936 (*if_move_shift): Likewise.
12937 (*arm_movtas_ze): Likewise.
12938 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
12939 redundancy and type attribute.
12940 (*thumb2_movsi_insn): Fix type attribute.
12941 (*thumb2_addsi_short): Likewise.
12942 (thumb2_addsi3_compare0): Likewise.
12943 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
12944 attributes accordingly.
12946 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
12949 * function.c (pad_to_arg_alignment): Add parentheses.
12951 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
12953 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
12954 libgcc/config/frv/elf-lib.h.
12956 2015-04-28 Tom de Vries <tom@codesourcery.com>
12958 * tree-call-cdce.c: Fix example in header comment.
12960 2015-04-28 Richard Biener <rguenther@suse.de>
12962 PR tree-optimization/62283
12963 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
12964 fails fatally and we are vectorizing a basic-block simply
12965 cause the child to be constructed piecewise.
12966 (vect_analyze_slp_cost_1): Adjust.
12967 (vect_detect_hybrid_slp_stmts): Likewise.
12968 (vect_bb_slp_scalar_cost): Likewise.
12969 (vect_get_constant_vectors): For piecewise constructed
12970 constants place them after the last def.
12971 (vect_get_slp_defs): Adjust.
12972 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
12973 externals for basic-block vectorization.
12975 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12978 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
12980 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
12981 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
12982 (AARCH64_TUNE_FMA_STEERING): Likewise.
12983 * config/aarch64/aarch64-cores.def: Set
12984 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
12985 FMUL/FMADD instructions.
12986 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
12987 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
12988 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
12989 * config/aarch64/cortex-a57-fma-steering.h: New file.
12990 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
12992 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
12994 * gensupport.c (std_preds): Add missing codes to address_operand entry.
12996 2015-04-28 Richard Biener <rguenther@suse.de>
12998 PR tree-optimization/65851
12999 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
13000 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
13001 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
13002 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
13003 (ccp_visit_phi_node): Adjust.
13004 (evaluate_stmt): For simplifications to SSA names return its
13005 lattice value if that isn't VARYING. Return immediately when
13006 simplified to a constant.
13007 (visit_assignment): Adjust.
13008 (ccp_visit_stmt): Likewise.
13010 2015-04-28 Tom de Vries <tom@codesourcery.com>
13012 PR tree-optimization/65818
13013 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
13016 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13018 * calls.c (save_fixed_argument_area): Don't check
13019 ARGS_GROW_DOWNWARD with the preprocessor.
13020 (restore_fixed_argument_area): Likewise.
13021 (mem_overlaps_already_clobbered_arg_p): Likewise.
13022 (check_sibcall_argument_overlap): Likewise.
13023 (expand_call): Likewise.
13024 (emit_library_call_value_1): Likewise.
13025 (store_one_arg): Likewise.
13026 * function.c (assign_parms): Likewise.
13027 (locate_and_pad_parm): Likewise.
13028 (pad_to_arg_alignment): Likewise.
13029 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13031 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13033 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
13034 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
13035 * calls.c (save_fixed_argument_area): Don't chekc if
13036 ARGS_GROW_DOWNWARD is defined.
13037 (restore_fixed_argument_area): Likewise.
13038 (mem_overlaps_already_clobbered_arg_p): Likewise.
13039 (check_sibcall_argument_overlap): Likewise.
13040 (expand_call): Likewise.
13041 (emit_library_call_value_1): Likewise.
13042 (store_one_arg): Likewise.
13043 * function.c (assign_parms): Likewise.
13044 (locate_and_pad_parm): Likewise.
13045 (pad_to_arg_alignment): Likewise.
13046 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13048 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13050 * defaults.h (gen_epilogue): New function.
13051 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
13053 * cfgrtl.c (cfg_layout_finalize): Likewise.
13054 * df-scan.c: Likewise.
13055 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13056 (reposition_prologue_and_epilogue_notes): Likewise.
13057 * reorg.c (find_end_label): Likewise.
13058 * toplev.c: Likewise.
13060 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13062 * bb-reorder.c (HAVE_return): Don't check if its undefined.
13063 * defaults.h (gen_simple_return): New function.
13064 (gen_simple_return): Likewise.
13065 (HAVE_return): Add default definition to false.
13066 (HAVE_simple_return): Likewise.
13067 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
13068 HAVE_return and HAVE_simple_return are defined.
13069 * function.c (gen_return_pattern): Likewise.
13070 (convert_jumps_to_returns): Likewise.
13071 (thread_prologue_and_epilogue_insns): Likewise.
13072 * reorg.c (find_end_label): Likewise.
13073 (dbr_schedule): Likewise.
13074 * shrink-wrap.c: Likewise.
13075 * shrink-wrap.h: Likewise.
13077 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13079 * defaults.h (EPILOGUE_USES): Add default definition of false.
13080 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
13081 * resource.c (init_resource_info): Likewise.
13083 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13085 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
13087 * dwarf2out.c (field_byte_offset): REmove check if
13088 PCC_BITFIELD_TYPE_MATTERS is defined.
13089 * stor-layout.c (layout_decl): Likewise.
13090 (update_alignment_for_field): Likewise.
13091 (place_field): Likewise.
13093 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13095 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
13097 * regrename.c (check_new_reg_p): Remove check if
13098 HARD_REGNO_RENAME_OK is defined.
13099 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
13101 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13103 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
13104 * cse.c (fold_rtx): Likewise.
13105 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
13106 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
13107 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
13108 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
13109 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
13110 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
13111 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
13112 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
13113 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
13114 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
13116 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
13117 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
13118 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
13119 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
13120 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
13121 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
13122 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
13123 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
13124 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
13125 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
13126 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
13127 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
13128 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
13129 * doc/tm.texi: Regenerate.
13130 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
13131 either true or false.
13133 2015-04-27 Jeff Law <law@redhat.com>
13135 PR tree-optimization/65217
13136 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
13137 of them has a single use, make sure it is the LHS of the implied
13140 2015-04-28 Alan Modra <amodra@gmail.com>
13143 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
13144 (offsettable_ok_by_alignment): Use minimum of decl and toc
13145 pointer alignment. Replace dead code with assertion.
13146 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
13147 case if size exceeds toc pointer alignment.
13148 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
13149 (rs6000_emit_move): Likewise.
13150 * configure.ac: Add linker toc pointer alignment check.
13151 * configure: Regenerate.
13152 * config.in: Regenerate.
13154 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
13156 * config.gcc: Add h8300-*-linux.
13157 * config/h8300/linux.h: New.
13158 * config/h8300/t-linux: New.
13159 * config/h8300/h8300.c (h8300_option_override): Normal mode
13160 is not supported for h8300-*-linux.
13161 (h8300_file_start): Target priority change.
13162 (get_shift_alg): Likewise.
13163 (h8300_shift_need_scratch_p): Likewise.
13164 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
13165 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
13167 2015-04-27 Caroline Tice <cmtice@google.com>
13169 * final.c (final_scan_insn): Output cold_function_name as function
13171 * varasm.c (cold_function_name): Make global.
13172 (assemble_start_function): Re-set cold_function_name.
13173 (assemble_end_function): Output cold partition size.
13174 * varasm.h (cold_function_name): Declare global.
13176 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
13178 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
13179 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
13181 (*movxi_internal_avx512f): Ditto.
13182 (define_split): Check for xmm16+, when splitting scalar float_extend.
13183 (*extendsfdf2_mixed): Use "v" constraint.
13184 (define_split): Check for xmm16+, when splitting scalar float_truncate.
13185 (*truncdfsf_fast_sse): Use "v" constraint.
13186 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
13187 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
13188 (define_peephole2): Check for xmm16+, when converting scalar
13190 (define_peephole2): Check for xmm16+, when converting scalar
13192 (*fop_<mode>_comm_mixed): Use "v" constraint.
13193 (*fop_<mode>_comm_sse): Ditto.
13194 (*fop_<mode>_1_mixed): Ditto.
13195 (*sqrt<mode>2_sse): Ditto.
13196 (*ieee_s<ieee_maxmin><mode>3): Ditto.
13198 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13200 * combine.c (simplify_if_then_else): Use std::swap instead
13201 of manually swapping.
13202 (known_cond): Likewise.
13203 (simplify_comparison): Likewise.
13205 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
13208 * config/rs6000/htm.md: Remove all define_expands.
13209 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
13210 UNSPECV_HTM_TABORTWCI): Remove.
13211 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
13212 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
13213 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
13214 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
13215 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
13216 tabortwci_internal): Remove define_insns.
13217 (tabort<wd>c, tabort<wd>ci): New define_insns.
13218 (tabort): Use gpc_reg_operand.
13219 (tcheck): Remove operand.
13220 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
13221 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
13223 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
13224 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
13225 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
13226 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
13227 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
13228 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
13229 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
13230 (tcheck): Remove builtin argument.
13231 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
13233 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
13234 tabortdc and tabortdci builtins when not in 64-bit mode.
13235 Modify code to handle the loss of the HTM define_expands.
13236 Emit code to copy the CR register to TARGET.
13237 (htm_init_builtins): Modify code to handle the loss of the HTM
13239 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
13240 (RS6000_BTC_64BIT): Likewise.
13241 (RS6000_BTC_CR): New macro.
13242 * doc/extend.texi: Update documentation for htm builtins.
13244 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13246 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
13247 of manually swapping.
13248 (simplify_associative_operation): Likewise.
13249 (simplify_binary_operation): Likewise.
13250 (simplify_plus_minus): Likewise.
13251 (simplify_relational_operation): Likewise.
13252 (simplify_ternary_operation): Likewise.
13254 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13256 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
13257 (xs_hi_nonmemory_operand): Remove error.
13258 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
13259 general_operand rather than xs_hi_general_operand.
13261 2015-04-27 Richard Biener <rguenther@suse.de>
13263 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
13264 (record_equivalences_from_stmt): Valueize rhs.
13265 (record_equality): Canonicalize x and y order via
13266 tree_swap_operands_p. Do not swap operands for same loop depth.
13268 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
13272 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
13273 Add hint how to use own spec file.
13275 2015-04-27 Jakub Jelinek <jakub@redhat.com>
13277 PR tree-optimization/65875
13278 * tree-vrp.c (update_value_range): If in is_new case setting
13279 old_vr to VR_VARYING, also set new_vr to it. Remove
13280 old_vr->type == VR_VARYING test.
13281 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
13282 SSA_PROP_INTERESTING if update_value_range returned true,
13283 but new range is VR_VARYING.
13285 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13287 * combine.c (sign_extend_short_imm): New.
13288 (set_nonzero_bits_and_sign_copies): Use above new function for sign
13289 extension of src short immediate.
13290 (reg_nonzero_bits_for_combine): Likewise for tem.
13292 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13294 * stor-layout.c (self_referential_component_ref_p): New predicate.
13295 (copy_self_referential_tree_r): Use it.
13296 (self_referential_size): Punt for simple operations directly involving
13297 self-referential component references.
13298 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
13300 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
13302 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
13304 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
13306 * vec.h (vec): Make splice arguments const. Update definitions
13309 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
13311 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
13314 2015-04-26 Tom de Vries <tom@codesourcery.com>
13316 PR tree-optimization/65826
13317 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
13319 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
13321 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
13322 (*madd3<mode>): Ditto.
13323 (*msub4<mode>): Ditto.
13324 (*msub3<mode>): Ditto.
13325 (*nmadd4<mode>): Ditto.
13326 (*nmadd3<mode>): Ditto.
13327 (*nmadd4<mode>_fastmath): Ditto.
13328 (*nmadd3<mode>_fastmath): Ditto.
13329 (*nmsub4<mode>): Ditto.
13330 (*nmsub3<mode>): Ditto.
13331 (*nmsub4<mode>_fastmath): Ditto.
13332 (*nmsub3<mode>_fastmath): Ditto.
13334 2015-04-24 Jason Merrill <jason@redhat.com>
13337 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
13338 down when building TYPE_CANONICAL.
13339 (build_pointer_type_for_mode): Likewise.
13341 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
13343 * genrecog.c (validate_pattern): Check matching constraint refers
13344 to a lower numbered operand.
13346 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13349 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
13350 save to independent variables use the Save attribute. This will
13351 allow these options to be modified with the #pragma/attribute
13353 (-mallow-movmisalign): Likewise.
13354 (-mallow-df-permute): Likewise.
13355 (-msched-groups): Likewise.
13356 (-malways-hint): Likewise.
13357 (-malign-branch-targets): Likewise.
13358 (-mvectorize-builtins): Likewise.
13359 (-msave-toc-indirect): Likewise.
13361 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
13362 can be set via the #pragma/attribute target support.
13363 (rs6000_opt_vars): Likewise.
13364 (rs6000_inner_target_options): If VSX was set, also set
13365 -mno-avoid-indexed-addresses.
13367 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13369 * config/arm/iterators.md (shiftable_ops): Rename to...
13370 (SHIFTABLE_OPS): ... This. Update use in comments.
13371 (ior_xor): Rename to...
13372 (IOR_XOR): ... This.
13373 (vqh_ops): Rename to...
13374 (VQH_OPS): ... This.
13375 (vqhs_ops): Rename to...
13376 (VQHS_OPS): ... This.
13377 (rshifts): Rename to...
13378 (RSHIFTS): ... This.
13379 (returns): Rename to...
13380 (RETURNS): ... This.
13381 * config/arm/arm.md: Update uses of the above.
13382 * config/arm/neon.md: Likewise.
13384 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13386 * config.host (case ${host}): Add aarch64*-*-linux case.
13387 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
13388 fields to all the cores.
13389 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
13390 Add MCPU_MTUNE_NATIVE_SPECS.
13391 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
13392 field to all extensions.
13393 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
13394 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
13395 Adjust definition of AARCH64_OPT_EXTENSION.
13396 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
13397 (MCPU_MTUNE_NATIVE_SPECS): Define.
13398 * config/aarch64/driver-aarch64.c: New file.
13399 * config/aarch64/x-arch64: New file.
13400 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
13403 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13404 Wei Mi <wmi@google.com>
13406 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
13407 * config/i386/i386.c (extract_base_offset_in_addr): New function.
13408 (ix86_operands_ok_for_move_multiple): Ditto.
13409 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
13410 (movlpd/movhpd to movupd peephole2): Ditto.
13412 2015-04-24 Marek Polacek <polacek@redhat.com>
13415 * input.h (from_macro_expansion_at): Define.
13418 * doc/invoke.texi: Update description of -Wlogical-op.
13420 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13422 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
13423 ternary operator in fprintf and harmonize spacing.
13425 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13427 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
13428 Mark operand1 commutative.
13430 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
13432 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
13433 input operands in memory.
13434 (*vec_concatv2si_sse4_1): Ditto.
13435 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
13436 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
13438 (vec_extract_hi_v32hi): Ditto.
13439 (vec_extract_hi_v64hi): Ditto.
13440 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
13442 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13443 Steven Bosscher <steven@gcc.gnu.org>
13445 PR rtl-optimization/34503
13446 * cprop.c (cprop_reg_p): New.
13447 (hash_scan_set): Use above function to check if register can be
13449 (find_avail_set): Return up to two sets, one whose source is a
13450 register and one whose source is a constant. Sets are returned in an
13451 array passed as parameter rather than as a return value.
13452 (cprop_insn): Use a do while loop rather than a goto. Try each of the
13453 sets returned by find_avail_set, starting with the one whose source is
13454 a constant. Use cprop_reg_p to check if register can be propagated.
13455 (do_local_cprop): Use cprop_reg_p to check if register can be
13457 (implicit_set_cond_p): Likewise.
13459 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13461 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
13462 (sem_function::equals): IGNORED_NODES parameter is now unused;
13463 update call of equals_private.
13464 (sem_function::equals_private): Do not call equals_wpa; skip
13465 gimple body matching if there is no body.
13466 (sem_function::init): Add logic to hash tthunk info.
13467 (sem_function::parse): Also parse thunks.
13468 * ipa-icf.h (equals_private): Update declaration.
13470 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13472 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
13473 asterisk from name so this can be generated directly.
13474 (*altivec_stvx_<mode>_internal): Likewise.
13475 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
13476 that this is never called during or after reload/lra.
13477 (rs6000_frame_related): Remove split_reg
13478 argument and logic that references it.
13479 (emit_frame_save): Remove last parameter from call to
13480 rs6000_frame_related.
13481 (rs6000_emit_prologue): Remove last parameter from eight calls to
13482 rs6000_frame_related. Force generation of stvx instruction for
13483 Altivec register saves. Remove split_reg handling, which is no
13485 (rs6000_emit_epilogue): Force generation of lvx instruction for
13486 Altivec register restores.
13488 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13490 * config/rs6000/rs6000.opt (mcrypto): Change option description to
13491 match category changes in ISA 2.07B.
13493 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13495 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
13497 (cmp_op, cmp_type): New code attributes.
13498 (NEON_VCMP, NEON_VACMP): New int iterators.
13499 (cmp_op_unsp): New int attribute.
13500 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
13501 (neon_vceq<mode>): Delete.
13502 (neon_vc<cmp_op><mode>_insn): New pattern.
13503 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
13504 (neon_vcgeu<mode>): Delete.
13505 (neon_vcle<mode>): Likewise.
13506 (neon_vclt<mode>: Likewise.
13507 (neon_vcage<mode>): Likewise.
13508 (neon_vcagt<mode>): Likewise.
13509 (neon_vca<cmp_op><mode>): New define_expand.
13510 (neon_vca<cmp_op><mode>_insn): New pattern.
13511 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
13513 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13515 * tree.h (attribute_value_equal): Declare.
13516 * tree.c (attribute_value_equal): Export.
13518 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13520 * ipa-icf.c (sem_item::compare_attributes): New function.
13521 (sem_item::compare_referenced_symbol_properties): Compare variable
13523 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
13524 (sem_function::param_used_p): New function.
13525 (sem_function::equals_wpa): Fix attribute comparsion; match
13526 parameter type codes; do not compare paremter flags when
13527 they are not used; compare edge flags; compare indirect calls.
13528 (sem_item::update_hash_by_addr_refs): Hash reference type.
13529 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
13530 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
13531 reference use type.
13532 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
13533 * ipa-icf.h (compare_attributes, param_used_p): Declare.
13535 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
13537 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
13539 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
13540 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
13541 (sem_item::compare_referenced_symbol_properties): New.
13542 (sem_item::hash_referenced_symbol_properties): New.
13543 (sem_item::compare_cgraph_references): Rename to ...
13544 (sem_item::compare_symbol_references): ... this one; use
13545 compare_referenced_symbol_properties.
13546 (sem_function::equals_wpa): Do not compare
13547 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
13548 DECL_IS_OPERATOR_NEW; compare pointer sizes.
13549 (sem_item::update_hash_by_addr_refs): Call
13550 hash_referenced_symbol_properties.
13551 (sem_item::update_hash_by_local_refs): Cleanup.
13552 (sem_function::merge): Do not mix up symbol properties.
13553 (sem_variable::equals_wpa): Use compare_symbol_references.
13554 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
13555 (sem_item::hash_referenced_symbol_properties): New.
13556 (sem_item::compare_symbol_references): New.
13557 (sem_item::compare_cgraph_references): Remove.
13559 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
13562 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
13563 Emit size of local.
13565 2015-04-23 Nick Clifton <nickc@redhat.com>
13567 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
13568 ATTRIBUTE_UNUSED to x parameter.
13569 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
13571 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13573 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
13574 TARGET_CRYPTO to TARGET_P8_VECTOR>
13575 (crypto_vpermxor_<mode>): Likewise.
13576 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
13577 (BU_CRYPTO_3A): Likewise.
13578 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
13579 (BU_CRYPTO_OVERLOAD_3A): New #define.
13580 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
13581 (VPMSUMH): Likewise.
13582 (VPMSUMW): Likewise.
13583 (VPMSUMD): Likewise.
13584 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
13585 (VPERMXOR_V4SI): Likewise.
13586 (VPERMXOR_V8HI): Likewise.
13587 (VPERMXOR_V16QI): Likewise.
13588 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
13589 BU_CRYPTO_OVERLOAD_2A.
13590 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
13591 BU_CRYPTO_OVERLOAD_3A.
13592 * config/rs6000/rs6000.opt (mcrypto): Change description of
13595 2015-04-23 Richard Biener <rguenther@suse.de>
13597 * passes.def: Remove copy propagation passes run directly after CCP.
13598 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
13600 (ccp_visit_phi_node): Rework to handle first executable edge
13603 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
13605 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
13606 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13607 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
13608 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
13609 (thumb_legimitimize_reload_address): Remove.
13610 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
13612 (thumb_legimitimize_reload_address): Remove.
13614 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13616 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
13618 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13620 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
13622 (store_multiple): Likewise.
13624 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13626 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
13627 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
13628 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
13629 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
13630 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
13631 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
13632 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
13633 Specify issue_rate value.
13634 (arm_issue_rate): Look up issue rate from tuning structs. Remove
13635 large switch statement.
13636 (arm_marvell_pj4_tune): New struct.
13637 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
13640 2015-04-23 Richard Biener <rguenther@suse.de>
13642 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
13643 (vect_find_last_store_in_slp_instance): Rename to ...
13644 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
13645 (vect_analyze_slp_cost_1): Use vector_load for constant defs
13646 and vec_construct for external defs when estimating prologue cost.
13647 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
13648 Compute costs here only when vectorizing loops.
13649 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
13650 have been determined.
13651 (vect_schedule_slp_instance): Simplify vectorized code placement
13652 and prepare for in-BB external defs.
13653 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
13654 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
13655 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
13657 (vect_model_load_cost): Likewise.
13658 (vectorizable_store): Instead add it here.
13659 (vectorizable_load): Likewise.
13660 (vect_is_simple_use): Dump def type textually.
13662 2015-04-23 Richard Biener <rguenther@suse.de>
13664 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
13665 * cfgloop.c (verify_loop_structure): Verify the root loop node.
13666 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
13667 instead of get_eh_region_from_lp_number.
13668 * loop-init.c (fix_loop_structure): If we removed a loop, reset
13671 2015-04-23 Anton Blanchard <anton@samba.org>
13673 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
13674 need for -mprofile-kernel to save LR to stack.
13676 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13678 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
13680 (insn_is_swappable_p): Return 1 for a convert from double to
13681 single precision when all of its uses are splats of BE element
13684 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13686 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
13688 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13691 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
13692 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
13693 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
13695 (rs6000_builtin_mask_for_load): Return 0 for targets with
13696 efficient unaligned VSX accesses so that the vectorizer will use
13697 direct unaligned loads.
13698 (rs6000_builtin_support_vector_misalignment): Always return true
13699 for targets with efficient unaligned VSX accesses.
13700 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
13701 stores on targets with efficient unaligned VSX accesses is almost
13702 always the same as the cost of an aligned load or store, so model
13704 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
13705 unaligned vectors if we have efficient unaligned VSX accesses.
13706 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
13707 undocumented option.
13709 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13712 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13714 * config.gcc (LIBC_MUSL): New tm_defines macro.
13715 * config/linux.h (OPTION_MUSL): Define.
13716 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13717 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13718 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13720 * config/linux.opt (mmusl): New option.
13721 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13722 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13724 * configure: Regenerate.
13726 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
13728 * config.gcc (LIBC_MUSL): New tm_defines macro.
13729 * config/linux.h (OPTION_MUSL): Define.
13730 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13731 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13732 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13734 * config/linux.opt (mmusl): New option.
13735 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13736 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13738 * configure: Regenerate.
13740 2015-04-22 Yury Gribov <y.gribov@samsung.com>
13742 * doc/invoke.texi (-fsanitize-sections): Update description.
13743 * asan.c (set_sanitized_sections): Parse incoming arg.
13744 (section_sanitized_p): Support wildcards.
13746 2015-04-22 Tom de Vries <tom@codesourcery.com>
13748 PR tree-optimization/65823
13749 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
13750 equality between ap_copy and ap.
13752 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13755 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
13757 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13760 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
13762 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13765 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
13766 remove already contained t-files.
13768 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13770 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
13771 Remove unneeded forward declarations.
13772 (suitable_for_tail_call_opt_p): Commentary typo fix.
13774 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13776 * varasm.c (emit_bss): Remove redundant guard.
13778 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13780 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
13782 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13784 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
13786 2015-04-22 Hale Wang <hale.wang@arm.com>
13787 Terry Guo <terry.guo@arm.com>
13789 PR rtl-optimization/64818
13790 * combine.c (can_combine_p): Don't combine user-specified
13791 register if it is in an asm input.
13793 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
13796 * passes.def (early_optimizations): Add pass_dse.
13798 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13800 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
13801 * reorg.c (redundant_insn): Remove ifdef
13802 INSN_REFERENCES_ARE_DELAYED.
13803 * resource.c (mark_referenced_resources): Likewise.
13805 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13807 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
13808 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
13809 * resource.c (mark_set_resources): Likewise.
13811 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13813 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
13814 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13815 (flow_find_head_matching_sequence): Likewise.
13816 (try_head_merge_bb): Likewise.
13817 * combine.c (can_combine_p): Likewise.
13818 (try_combine): Likewise.
13819 (distribute_notes): Likewise.
13820 * df-problems.c (can_move_insns_across): Likewise.
13821 * final.c (final): Likewise.
13822 * gcse.c (insert_insn_end_basic_block): Likewise.
13823 * ira.c (find_moveable_pseudos): Likewise.
13824 * reorg.c (try_merge_delay_insns): Likewise.
13825 (fill_simple_delay_slots): Likewise.
13826 (fill_slots_from_thread): Likewise.
13827 * sched-deps.c (sched_analyze_2): Likewise.
13829 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13831 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
13832 PIC_OFFSET_TABLE_REGNUM.
13834 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13836 * alias.c (init_alias_target): Remove ifdef
13837 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
13838 * df-scan.c (df_insn_refs_collect): Likewise.
13839 (df_get_regular_block_artificial_uses): Likewise.
13840 (df_get_eh_block_artificial_uses): Likewise.
13841 (df_get_entry_block_def_set): Likewise.
13842 (df_get_exit_block_use_set): Likewise.
13843 * emit-rtl.c (gen_rtx_REG): Likewise.
13844 * ira.c (ira_setup_eliminable_regset): Likewise.
13845 * reginfo.c (init_reg_sets_1): Likewise.
13846 * regrename.c (rename_chains): Likewise.
13847 * reload1.c (reload): Likewise.
13848 (eliminate_regs_in_insn): Likewise.
13849 * resource.c (mark_referenced_resources): Likewise.
13850 (init_resource_info): Likewise.
13852 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13854 * defaults.h (MASK_RETURN_ADDR): New definition.
13855 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13858 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13860 * defaults.h (RETURN_ADDR_OFFSET): New definition.
13861 * except.c (expand_builtin_extract_return_addr): Remove ifdef
13862 RETURN_ADDR_OFFSET.
13863 (expand_builtin_frob_return_addr): Likewise.
13865 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13867 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
13868 (try_redirect_by_replacing_jump): Likewise.
13869 (rtl_tidy_fallthru_edge): Likewise.
13870 * combine.c (insn_a_feeds_b): Likewise.
13871 (find_split_point): Likewise.
13872 (simplify_set): Likewise.
13873 * cprop.c (cprop_jump): Likewise.
13874 * cse.c (cse_extended_basic_block): Likewise.
13875 * df-problems.c (can_move_insns_across): Likewise.
13876 * function.c (emit_use_return_register_into_block): Likewise.
13877 * haifa-sched.c (sched_init): Likewise.
13878 * ira.c (find_moveable_pseudos): Likewise.
13879 * loop-invariant.c (find_invariant_insn): Likewise.
13880 * lra-constraints.c (curr_insn_transform): Likewise.
13881 * postreload.c (reload_combine_recognize_const_pattern):
13883 * reload.c (find_reloads): Likewise.
13884 * reorg.c (delete_scheduled_jump): Likewise.
13885 (steal_delay_list_from_target): Likewise.
13886 (steal_delay_list_from_fallthrough): Likewise.
13887 (redundant_insn): Likewise.
13888 (fill_simple_delay_slots): Likewise.
13889 (fill_slots_from_thread): Likewise.
13890 (delete_computation): Likewise.
13891 * sched-rgn.c (add_branch_dependences): Likewise.
13893 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13895 * genconfig.c (main): Always define HAVE_cc0.
13896 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
13898 * cfgcleanup.c (flow_find_cross_jump): Likewise.
13899 (flow_find_head_matching_sequence): Likewise.
13900 (try_head_merge_bb): Likewise.
13901 * cfgrtl.c (rtl_merge_blocks): Likewise.
13902 (try_redirect_by_replacing_jump): Likewise.
13903 (rtl_tidy_fallthru_edge): Likewise.
13904 * combine.c (do_SUBST_MODE): Likewise.
13905 (insn_a_feeds_b): Likewise.
13906 (combine_instructions): Likewise.
13907 (can_combine_p): Likewise.
13908 (try_combine): Likewise.
13909 (find_split_point): Likewise.
13911 (simplify_set): Likewise.
13912 (distribute_notes): Likewise.
13913 * cprop.c (cprop_jump): Likewise.
13914 * cse.c (cse_extended_basic_block): Likewise.
13915 * df-problems.c (can_move_insns_across): Likewise.
13916 * final.c (final): Likewise.
13917 (final_scan_insn): Likewise.
13918 * function.c (emit_use_return_register_into_block): Likewise.
13919 * gcse.c (insert_insn_end_basic_block): Likewise.
13920 * haifa-sched.c (sched_init): Likewise.
13921 * ira.c (find_moveable_pseudos): Likewise.
13922 * loop-invariant.c (find_invariant_insn): Likewise.
13923 * lra-constraints.c (curr_insn_transform): Likewise.
13924 * optabs.c (prepare_cmp_insn): Likewise.
13925 * postreload.c (reload_combine_recognize_const_pattern):
13927 * reload.c (find_reloads): Likewise.
13928 (find_reloads_address_1): Likewise.
13929 * reorg.c (delete_scheduled_jump): Likewise.
13930 (steal_delay_list_from_target): Likewise.
13931 (steal_delay_list_from_fallthrough): Likewise.
13932 (try_merge_delay_insns): Likewise.
13933 (redundant_insn): Likewise.
13934 (fill_simple_delay_slots): Likewise.
13935 (fill_slots_from_thread): Likewise.
13936 (delete_computation): Likewise.
13937 (relax_delay_slots): Likewise.
13938 * sched-deps.c (sched_analyze_2): Likewise.
13939 * sched-rgn.c (add_branch_dependences): Likewise.
13941 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13943 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
13944 that is trivially ded on non cc0 targets.
13945 (simplify_set): Likewise.
13946 (mark_used_regs_combine): Likewise.
13947 * cse.c (new_basic_block): Likewise.
13948 (fold_rtx): Likewise.
13949 (cse_insn): Likewise.
13950 (cse_extended_basic_block): Likewise.
13951 (set_live_p): Likewise.
13952 * rtlanal.c (canonicalize_condition): Likewise.
13953 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13955 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13957 * conditions.h: Define macros even if HAVE_cc0 is undefined.
13958 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
13959 * final.c: Likewise.
13960 * jump.c: Likewise.
13961 * recog.c: Likewise.
13962 * recog.h: Declare functions even when HAVE_cc0 is undefined.
13963 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
13965 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13967 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
13968 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
13969 * builtins.c (expand_builtin): Remove check if
13970 EH_RETURN_DATA_REGNO is defined.
13971 * df-scan.c (df_bb_refs_collect): Likewise.
13972 (df_get_exit_block_use_set): Likewise.
13973 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13974 * ira-lives.c (process_bb_node_lives): Likewise.
13975 * lra-lives.c (process_bb_lives): Likewise.
13977 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
13979 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
13980 FIRST_PSEUDO_REG): New.
13981 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
13982 (ARG_POINTER_REGNUM): Define to ARGP_REG.
13983 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
13984 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
13985 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
13986 (FIRST_INT_REG): New.
13987 (LAST_INT_REG): New.
13988 (FIRST_*_REG): Define using *_REG.
13989 (LAST_*_REG): Ditto.
13990 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
13991 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
13992 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
13994 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13996 * expmed.c: (synth_mult): Only assume overlapping
13997 shift with previous steps in alg_sub_t_m2 case.
13999 2015-04-21 Richard Biener <rguenther@suse.de>
14001 PR tree-optimization/65650
14002 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
14003 transitions involving copies.
14004 (set_lattice_value): Adjust for copy lattice state.
14005 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
14006 if that doesn't dominate the merge point.
14007 (bit_value_unop): Adjust what we treat as varying mask.
14008 (bit_value_binop): Likewise.
14009 (bit_value_assume_aligned): Likewise.
14010 (evaluate_stmt): When we simplified to a SSA name record a copy
14011 instead of dropping to varying.
14012 (visit_assignment): Simplify.
14014 * gimple-match.h (gimple_simplify): Add another callback.
14015 * gimple-fold.c (fold_stmt_1): Adjust caller.
14016 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
14017 for the 2nd callback.
14018 * gimple-match-head.c (gimple_simplify): Add a callback that is
14019 used to valueize the stmt operands and use it that way.
14021 2015-04-21 Richard Biener <rguenther@suse.de>
14023 PR tree-optimization/65788
14024 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
14026 2015-04-21 Richard Biener <rguenther@suse.de>
14028 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
14029 vec_construct cost by vec_stmt_cost.
14031 2015-04-21 Richard Biener <rguenther@suse.de>
14033 * cfghooks.h (create_basic_block): Replace with two overloads
14034 for RTL and GIMPLE.
14035 (split_block): Likewise.
14036 * cfghooks.c (split_block): Rename to ...
14037 (split_block_1): ... this.
14038 (split_block): Add two type-safe overloads for RTL and GIMPLE.
14039 (split_block_after_labels): Call split_block_1.
14040 (create_basic_block): Rename to ...
14041 (create_basic_block_1): ... this.
14042 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
14043 (create_empty_bb): Call create_basic_block_1.
14044 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
14045 split_block_after_labels.
14046 * omp-low.c (expand_parallel_call): Likewise.
14047 (expand_omp_target): Likewise.
14048 (simd_clone_adjust): Likewise.
14049 * tree-chkp.c (chkp_get_entry_block): Likewise.
14050 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
14051 create_basic_block overload.
14052 (cgraph_node::expand_thunk): Likewise.
14053 * tree-cfg.c (make_blocks): Likewise.
14054 (handle_abnormal_edges): Likewise.
14055 * tree-inline.c (copy_bb): Likewise.
14057 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14059 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
14061 (*xor_one_cmplsidi3_ze): Likewise.
14063 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
14065 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
14066 use df_remove_problem rather than manually removing problems, leaving
14067 holes in df->problems_in_order[].
14069 2015-04-21 Tom de Vries <tom@codesourcery.com>
14071 PR tree-optimization/65802
14072 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
14074 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14076 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
14078 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
14079 at '.'. Assert that there's enough space for everything.
14081 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
14083 PR tree-optimization/64950
14085 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
14088 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
14091 2015-04-20 Shiva Chen <shiva0217@gmail.com>
14093 PR rtl-optimization/64916
14094 * cfgcleanup.c (values_equal_p): New function.
14095 (can_replace_by): Use it.
14097 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
14100 * doc/invoke.texi ([-Wnarrowing]): Update.
14102 2015-04-20 Jeff Law <law@redhat.com>
14104 PR tree-optimization/65658
14105 * tree-ssa-threadupdate.c (redirection_block_p): Remove
14106 redundant test for GIMPLE_ASSIGN in last change.
14108 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
14110 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
14111 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
14112 (legitimize_tls_address): Ditto.
14113 (ix86_expand_move): Ditto.
14114 (ix86_expand_binary_operator): Remove reload_in_progress checks.
14115 (ix86_expand_unary_operator): Ditto.
14116 * config/i386/predicates.md (index_register_operand): Ditto.
14118 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
14120 * reorg.c (try_merge_delay_insns): Improve correctness checking
14121 for targets with multiple delay slots.
14123 2015-04-20 Jeff Law <law@redhat.com>
14125 PR tree-optimization/65658
14126 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
14129 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14131 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
14132 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
14135 2015-04-20 Jakub Jelinek <jakub@redhat.com>
14138 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
14140 2015-04-20 Richard Biener <rguenther@suse.de>
14142 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
14143 * gimple-fold.c (gimple_build_valueize): New function.
14144 (gimple_build): Always use gimple_build_valueize as valueize hook.
14146 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
14149 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
14150 and overwrite variable parts if <= 1/2 the elements are variable.
14152 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
14154 PR rtl-optimization/65805
14155 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
14156 Don't use difference of offset and previous offset if
14157 update_sp_offset is non-zero.
14158 (eliminate_regs_in_insn): Ditto.
14159 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
14160 lra_eliminate_regs_1 call.
14161 * lra-constraints.c (get_equiv_with_elimination): Ditto.
14163 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
14165 * hash-table.h: Remove version of hash_table that stored value_type *.
14166 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
14167 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
14168 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
14169 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
14170 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
14171 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
14172 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
14173 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
14174 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
14175 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
14176 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
14177 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
14178 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
14179 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
14180 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
14181 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
14183 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14184 Jakub Jelinek <jakub@redhat.com>
14187 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
14188 subsequent SH_NONE operand does not overwrite an existing *special
14190 (adjust_extract): Handle case where a vec_extract operation is
14191 wrapped in a PARALLEL.
14193 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14196 * config/i386/i386.c (ix86_binds_local_p): Define only if
14197 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
14199 2015-04-17 Jeff Law <law@redhat.com>
14201 PR tree-optimization/47679
14202 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
14203 * tree-ssa-scopedtables.c: New file.
14204 * tree-ssa-scopedtables.h: New file.
14205 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
14206 (const_and_copies): Change name/type.
14207 (record_const_or_copy): Move into tree-ssa-scopedtables.c
14208 (record_const_or_copy_1): Similarly.
14209 (restore_vars_to_original_value): Similarly.
14210 (pass_dominator::execute): Create and destroy const_and_copies table.
14211 (thread_across_edge): Update passing of const_and_copies.
14212 (record_temporary_equivalence): Use method calls rather than
14213 manipulating const_and_copies directly.
14214 (record_equality, cprop_into_successor_phis): Similarly.
14215 (dom_opt_dom_walker::before_dom_children): Similarly.
14216 (dom_opt_dom_walker::after_dom_children): Similarly.
14217 (eliminate_redundant_computations): Similarly.
14218 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
14219 (record_temporary_equivalence): Likewise.
14220 (invalidate_equivalences): Likewise.
14221 (record_temporary_equivalences_from_phis): Update due to type
14222 change of const_and_copies. Use method calls rather than
14223 manipulating the stack directly.
14224 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
14225 (thread_through_normal_block, thread_across_edge): Likewise.
14226 (thread_across_edge): Likewise.
14227 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14228 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
14230 (identify_jump_threads): Update due to type change of equiv_stack.
14231 (finalize_jump_threads): Delete the equiv_stack when complete.
14233 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
14235 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14236 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
14237 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
14239 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
14242 * config.gcc: Exit with a comment when we do not have a major version
14243 number for the FreeBSD target.
14245 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14248 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
14249 maybe_allows_mem bitfields.
14250 (maybe_allows_none_start, maybe_allows_none_end,
14251 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
14252 maybe_allows_mem_end): New variables.
14253 (compute_maybe_allows): New function.
14254 (add_constraint): Use it to initialize maybe_allows_reg and
14255 maybe_allows_mem fields.
14256 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
14257 is_address constraints such that those that allow neither mem nor
14258 reg come first, then those that only allow reg but not mem, then
14259 those that only allow mem but not reg, then the rest.
14260 (write_allows_reg_mem_function): New function.
14261 (write_tm_preds_h): Call it.
14262 * stmt.c (parse_output_constraint, parse_input_constraint): Use
14263 the generated insn_extra_constraint_allows_reg_mem function
14264 instead of always setting *allows_reg = true; *allows_mem = true;
14265 for unknown extra constraints.
14267 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
14270 * output.h (default_binds_local_p_3): New.
14271 * varasm.c (default_binds_local_p_3): Make it public. Take an
14272 argument to indicate if common symbol may be local. If common
14273 symbol may be local, treat non-external variable as defined
14275 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
14276 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
14277 * config/i386/i386.c (ix86_binds_local_p): New.
14278 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
14279 ix86_binds_local_p.
14281 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14284 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
14285 trying mem_loc_descriptor on XEXP (rtl, 0).
14287 2015-04-17 Martin Liska <mliska@suse.cz>
14289 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
14290 Release symbol_compare_collection.
14291 * ipa-reference.c: Add TODO that a vector should be released.
14293 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
14296 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
14297 to new AVR-LibC file layout (bug #44574).
14298 (*avrlibc_devicelib): Same.
14299 * config/avr/avr-mcus.def: Adjust comments.
14300 * config/avr/avr.opt (nodevicelib): Adjust help.
14302 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
14304 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
14306 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
14309 * gimplify.c (gimplify_init_constructor): Always emit a
14310 side-effecting constructor.
14312 2015-04-17 Tom de Vries <tom@codesourcery.com>
14314 PR tree-optimization/64950
14315 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
14316 in cfun->curr_properties.
14317 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
14318 if we generate an IFN_VA_ARG.
14319 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
14320 function if PROP_gimple_lva is not set in src function.
14322 2015-04-17 Tom de Vries <tom@codesourcery.com>
14323 Michael Matz <matz@suse.de>
14325 PR tree-optimization/64950
14326 * gimple-iterator.c (update_modified_stmts): Remove static.
14327 * gimple-iterator.h (update_modified_stmts): Declare.
14328 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
14329 (gimplify_va_arg_internal): New function.
14330 (gimplify_va_arg_expr): Use IFN_VA_ARG.
14331 * gimplify.h (gimplify_va_arg_internal): Declare.
14332 * internal-fn.c (expand_VA_ARG): New unreachable function.
14333 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
14334 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
14335 (expand_ifn_va_arg): New function.
14336 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
14337 (pass_stdarg::execute): Call expand_ifn_va_arg.
14338 (pass_data_lower_vaarg): New pass_data.
14339 (pass_lower_vaarg): New gimple_opt_pass.
14340 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
14341 (make_pass_lower_vaarg): New function.
14342 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
14343 properties_required field.
14344 * passes.def (all_passes): Add pass_lower_vaarg.
14345 * tree-pass.h (PROP_gimple_lva): Add define.
14346 (make_pass_lower_vaarg): Declare.
14348 2015-04-17 Tom de Vries <tom@codesourcery.com>
14350 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
14351 * calls.c (call_expr_flags): Same.
14353 2015-04-17 Tom de Vries <tom@codesourcery.com>
14355 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
14356 (pass_stdarg::execute): ... here.
14358 2015-04-17 Tom de Vries <tom@codesourcery.com>
14359 Michael Matz <matz@suse.de>
14361 * tree-cfg.c (make_blocks_1): Factor out of ...
14362 (make_blocks): ... here.
14363 (make_edges_bb): Factor out of ...
14364 (make_edges): ... here.
14365 (gimple_find_sub_bbs): New function.
14366 * tree-cfg.h (gimple_find_sub_bbs): Declare.
14368 2015-04-17 Tom de Vries <tom@codesourcery.com>
14370 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
14372 2015-04-17 Yury Gribov <y.gribov@samsung.com>
14374 * asan.c (set_sanitized_sections): New function.
14375 (section_sanitized_p): Ditto.
14376 (asan_protect_global): Optionally sanitize user-defined
14378 * asan.h (set_sanitized_sections): Declare new function.
14379 * common.opt (fsanitize-sections): New option.
14380 * doc/invoke.texi (-fsanitize-sections): Document new option.
14381 * opts-global.c (handle_common_deferred_options): Handle new
14384 2015-04-17 Jakub Jelinek <jakub@redhat.com>
14387 * dwarf2out.c (loc_list_from_tree): Return NULL
14388 for DEBUG_EXPR_DECL.
14390 2015-04-17 Christian Bruel <christian.bruel@st.com>
14392 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
14395 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14397 * ira-color.c (setup_left_conflict_sizes_p): Do not process
14398 node itself when computing left conflict subnode size.
14400 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14402 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
14403 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
14404 *fop_<mode>_1_sse using enabled attribute. Use
14405 register_mixssei387nonimm_operand operand 1 predicate. Change
14406 alternative 3 constraints from "x" to "v".
14408 2015-04-16 Richard Biener <rguenther@suse.de>
14410 PR tree-optimization/65774
14411 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
14412 bit-value tracking on.
14414 2015-04-16 Richard Biener <rguenther@suse.de>
14416 PR tree-optimization/64277
14417 * tree-vrp.c (check_array_ref): Fix anti-range handling,
14418 simplify upper bound handling.
14419 (search_for_addr_array): Simplify.
14420 (check_array_bounds): Handle ADDR_EXPRs here.
14421 (check_all_array_refs): Simplify.
14423 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
14425 * config/i386/i386.c (print_reg): Rewrite function.
14427 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14429 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
14430 Invert the condition.
14432 2015-04-16 Renlin Li <renlin.li@arm.com>
14434 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
14435 simplifications for UNSIGNED_FLOAT.
14437 2015-04-16 Nick Clifton <nickc@redhat.com>
14439 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
14441 (enum rl78_cpu_type): New.
14442 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
14443 (umulhi3_shift_virt): Remove m constraint from operand 1.
14444 (umulqihi3_virt): Likewise.
14445 * config/rl78/rl78.c (rl78_option_override): Add code to process
14446 -mcpu and -mmul options.
14447 (rl78_alloc_physical_registers): Add code to handle divhi and
14448 divsi valloc attributes.
14449 (set_origin): Likewise.
14450 * config/rl78/rl78.h (RL78_MUL_G14): Define.
14451 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
14452 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
14454 (ASM_SPEC): Pass -mcpu on to assembler.
14455 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
14456 (mulqi3_rl78): Likewise.
14457 (mulhi3_g13): Likewise.
14458 (mulhi3): Generate the G13 or G14 versions of the insn directly.
14459 (mulsi3): Likewise.
14460 (mulhi3_g14): Add clobbers of AX and BC.
14461 (mulsi3_g14): Likewise.
14462 (mulsi3_g13): Likewise.
14463 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
14464 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
14465 * config/rl78/rl78.opt (mmul): Initialise value to
14467 (mcpu): New option.
14468 (m13, m14, mrl78): New option aliases.
14469 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
14470 (MULTILIB_DIRNAMES): Add g13 and g14.
14471 * doc/invoke.texi: Document -mcpu and -mmul options.
14473 2015-04-16 Richard Biener <rguenther@suse.de>
14475 * tree-ssa-ccp.c (likely_value): See if we have operands that
14476 are marked as never simulate again and return CONSTANT in this
14478 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
14479 not have any operands that will be simulated again as
14480 not being simulated again.
14482 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
14484 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
14485 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
14486 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
14488 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
14490 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
14491 *float<SWI48:mode><MODEF:mode>2_sse.
14492 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
14494 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
14497 2015-04-15 Tom de Vries <tom@codesourcery.com>
14500 * function.c (push_dummy_function): New function.
14501 (init_dummy_function_start): Use push_dummy_function.
14502 (pop_dummy_function): New function. Factored out of ...
14503 (expand_dummy_function_end): ... here.
14504 * function.h (push_dummy_function, pop_dummy_function): Declare.
14505 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
14506 pop_dummy_function.
14507 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
14509 2015-04-15 Jeff Law <law@redhat.com>
14511 PR tree-optimization/47679
14512 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
14513 need for forward declaration in upcoming changes.
14514 (record_conditions, record_edge_info): Likewise.
14516 PR rtl-optimization/42522
14517 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
14518 SIGN_EXTRACT as a whole object rather than simplifying
14521 2015-04-15 Jakub Jelinek <jakub@redhat.com>
14524 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
14525 and GIMPLE_PREDICT use break instead of return true. For
14526 GIMPLE_EH_DISPATCH, compare dispatch region.
14528 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
14530 * doc/extend.texi (__sync Builtins): Simplify some text. Update
14531 details about the implementation. Make clear preference for
14532 __atomic builtins. Reduce possibility of future change.
14534 2015-04-15 Nick Clifton <nickc@redhat.com>
14536 * config/rx/rx.opt (mallow-string-insns): New option.
14537 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
14538 builtin if string instructions are denied.
14539 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
14540 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
14542 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
14543 * config/rx/rx.md (movstr): Enable pattern only if string
14544 instructions are allowed.
14545 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
14546 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
14547 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
14548 (MULTILIB_DIRNAMES): Add no-strings.
14549 * doc/invoke.texi: Document -mno-allow-string-insns.
14551 2015-04-15 Alan Modra <amodra@gmail.com>
14555 PR middle-end/36043
14556 * calls.c (load_register_parameters): Don't load past end of
14557 mem unless suitably aligned.
14559 2015-04-15 Nick Clifton <nickc@redhat.com>
14561 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
14562 decrement instruction as being frame related.
14563 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
14565 If zero extending a function address enclose the operation in
14567 (rl78_preferred_reload_class): New function.
14568 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14569 * config/rl78/rl78.md: Remove useless constraints in expanders.
14570 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
14571 (mulhi3_rl78): Likewise.
14572 (mulhi3_g13): Likewise.
14573 (mulsi3_rl78): Likewise.
14574 (es_addr): Move to before the multiply patterns.
14576 2015-04-15 Alan Modra <amodra@gmail.com>
14578 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
14579 and sequence_stack. Add seq.
14580 (seq_stack): Delete.
14581 * function.c (prepare_function_start): Don't access x_last_insn.
14582 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
14583 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
14584 * emit_rtl.c (start_sequence, push_topmost_sequence,
14585 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
14586 sequence accessors.
14587 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
14588 remove_insn): Likewise. Simplify.
14589 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
14590 and pop_topmost_sequence.
14591 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
14593 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
14595 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
14598 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
14601 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14603 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
14604 (LEGACY_INT_REGNO_P): Ditto.
14605 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
14606 (ANY_MASK_REG_P): Remove.
14607 (BND_REG_P): Rename from ANY_BND_REG_P.
14608 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
14609 legacy integer registers. Do not handle MMX_REG_P in a special way.
14610 Merge 64byte and 32byte SSE handling.
14612 2015-04-14 Nick Clifton <nickc@redhat.com>
14614 * expr.c (expand_assignment): Force an address offset computation
14615 into a register before changing its mode.
14616 (expand_expr_real_1): Likewise.
14618 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
14620 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
14621 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
14622 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
14623 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
14624 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
14625 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
14626 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
14627 and __aarch64_vget_lane_any.
14629 2015-04-14 Jakub Jelinek <jakub@redhat.com>
14631 PR rtl-optimization/65761
14632 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
14633 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
14635 2015-04-14 Richard Biener <rguenther@suse.de>
14637 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
14638 (graphite_can_represent_scev): Use POINTER_TYPE_P.
14640 2015-04-14 Richard Biener <rguenther@suse.de>
14642 PR tree-optimization/65758
14643 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
14645 (ccp_lattice_meet): Likewise.
14646 (bit_value_unop): Likewise.
14647 (bit_value_binop): Likewise.
14648 (bit_value_assume_aligned): Likewise.
14650 2015-04-14 Christian Bruel <christian.bruel@st.com>
14652 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
14655 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
14657 PR tree-optimization/63387
14658 * match.pd ((x unord x) | (y unord y) -> (x unord y),
14659 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
14661 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
14663 * config/i386/predicates.md (any_QIreg_operand): Rename from
14664 q_regs_operand. Do not process subregs.
14665 (QIreg_operand): Use QI_REGNO_P predicate.
14666 (ext_QIreg_operand): Ditto.
14667 (ext_register_operand): Ditto.
14668 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
14669 (AND splitters): Ditto.
14670 (AND with -65536 splitter): Add SWI48 mode for operand 0.
14671 (AND with -256 splitter): Use any_QIreg_operand predicate and
14672 SWI248 mode for operand 0.
14673 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
14674 mode for operand 0.
14675 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
14677 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
14679 * doc/plugins.texi: Rewrite first introductory paragraph.
14681 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14683 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
14684 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
14686 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14688 * ipa-profie.c (ipa_profile): Check number of parameters
14689 and possible polymorphic call targets before
14692 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
14694 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
14695 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
14697 2015-04-13 Richard Biener <rguenther@suse.de>
14699 PR tree-optimization/65204
14700 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
14701 takens for bit-CCP.
14703 2015-04-13 Richard Biener <rguenther@suse.de>
14706 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
14707 and cond_not_taken_branch_cost to 4 and 2.
14708 (bdver2_cost): Likewise.
14709 (bdver3_cost): Likewise.
14710 (bdver4_cost): Likewise.
14712 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14714 * hash-table.h (hash_table constructor): Add mem stats.
14715 (alloc_entries): Likewise.
14717 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14719 * ipa-cp.c (ipcp_driver): Relase prev_edge.
14720 * passes.c (execute_one_pass): Only add transform if pass has one.
14722 2015-04-12 Joseph Myers <joseph@codesourcery.com>
14724 * config/i386/i386.c (ix86_option_override_internal): Don't set
14725 -fprefetch-loop-arrays if optimizing for size.
14727 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
14728 Gerald Pfeifer <gerald@pfeifer.com>
14730 * doc/contrib.texi (Contributors): Add Martin Jambor and
14733 2015-04-12 Jakub Jelinek <jakub@redhat.com>
14735 * BASE-VER: Set to 6.0.0.
14737 PR tree-optimization/65747
14738 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
14739 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
14741 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14743 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
14744 sentence. Improve grammar.
14746 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
14748 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
14750 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14753 * ipa-inline-transform.c (speculation_removed): Remove static var.
14754 (check_speculations): New function.
14755 (clone_inlined_nodes): Do not check spculations.
14756 (inline_call): Call check_speculations.
14757 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
14758 consider non-invariants.
14760 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
14761 Martin Liska <mliska@suse.cz>
14764 * ipa-icf.c (sem_item::compare_cgraph_references): function and
14765 variable can not match.
14766 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
14767 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
14769 2015-04-11 Jakub Jelinek <jakub@redhat.com>
14771 PR tree-optimization/65735
14772 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
14773 Remove visited_phis argument, add visited_bbs, avoid recursing into the
14774 same bb rather than just into the same phi node.
14775 (thread_through_normal_block): Adjust caller.
14777 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14779 * doc/contrib.texi (Contributors): Add Ira Rosen.
14781 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
14783 * gcov.c (find_source): Fix miswording in error message.
14784 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
14785 (ix86_expand_sse_comi_round): Fix typo in error message.
14787 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
14789 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
14791 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
14793 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
14795 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14798 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
14799 Print bad_spills_num and insn_pseudos_num.
14801 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14804 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
14805 when creating +1 values for SImode.
14807 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
14810 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
14813 2015-04-10 Jakub Jelinek <jakub@redhat.com>
14814 Iain Sandoe <iain@codesourcery.com>
14817 * configure: Regenerate.
14819 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14822 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
14824 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
14826 * doc/contrib.texi (Contributors): Add John Marino.
14828 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14830 PR tree-optimization/65709
14831 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
14832 TREE_TYPE (TREE_TYPE (t)).
14834 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
14837 * lra-int.h (lra_bad_spill_regno_start): New.
14838 * lra.c (lra_bad_spill_regno_start): New.
14839 (lra): Set up lra_bad_spill_regno_start. Set up
14840 lra_constraint_new_regno_start unconditionally.
14841 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
14844 2015-04-09 Marek Polacek <polacek@redhat.com>
14845 Jakub Jelinek <jakub@redhat.com>
14847 PR middle-end/65554
14848 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
14849 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
14852 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
14854 PR rtl-optimization/65693
14855 * combine.c (is_parallel_of_n_reg_sets): Move outside of
14858 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
14861 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
14862 device specs file if "device-specs%s" didn't resolve to a path.
14864 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
14867 * config/i386/i386.c (fixup_modeless_constant): New.
14868 (ix86_expand_args_builtin): Fixup modeless constant operand.
14869 (ix86_expand_round_builtin): Ditto.
14870 (ix86_expand_special_args_builtin): Ditto.
14871 (ix86_expand_builtin): Ditto.
14873 2015-04-09 Jakub Jelinek <jakub@redhat.com>
14876 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
14877 any pow2 integer in between 2 and 0x80000000U inclusive.
14879 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
14881 PR rtl-optimization/65693
14882 * combine.c (is_parallel_of_n_reg_sets): Change first argument
14883 from an rtx_insn * to an rtx.
14884 (try_combine): Adjust both callers. Use it once more.
14886 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14888 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
14889 (chkp_make_static_const_bounds): Search existing
14890 symbol by assembler name. Use make_decl_one_only.
14891 (chkp_get_zero_bounds_var): Remove node search which
14892 is now performed in chkp_make_static_const_bounds.
14893 (chkp_get_none_bounds_var): Likewise.
14895 2015-04-08 Michael Witten <mfwitten@gmail.com>
14897 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
14900 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14902 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
14904 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14906 * doc/extend.texi (__sync Builtins): Fix grammar.
14908 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14910 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
14912 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14914 * varasm.c (emit_local): Move definition of align.
14916 2015-04-08 Julian Brown <julian@codesourcery.com>
14918 * config/nvptx/mkoffload.c (process): Support variable mapping.
14920 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
14922 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
14924 (alpha_write_one_linkage): Correct typo.
14926 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14928 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
14930 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
14932 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
14934 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
14936 * tree-chkp.h (chkp_insert_retbnd_call): New.
14937 * tree-chkp.c (chkp_insert_retbnd_call): New.
14938 * ipa-split.c (insert_bndret_call_after): Remove.
14939 (split_function): Use chkp_insert_retbnd_call.
14940 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
14941 bounds for instrumented functions.
14943 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
14946 * calls.c (initialize_argument_information): When producing tail
14947 call also turn SSA_NAMES passed by references to original PARM_DECLs
14949 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
14952 * lra-remat.c (do_remat): Process input and non-input insn
14953 registers separately.
14955 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14958 * valtrack.c (debug_lowpart_subreg): New function.
14959 (dead_debug_insert_temp): Use it.
14961 PR middle-end/65680
14962 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
14963 into signed HOST_WIDE_INT the same as negative bit_offset.
14965 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
14967 * ipa-comdats.c (ipa_comdats): Visit all thunks
14968 to set proper comdat group.
14970 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14973 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
14974 on constants for NEON VSTRUCT modes.
14976 2015-04-07 Jakub Jelinek <jakub@redhat.com>
14977 Iain Sandoe <iain@codesourcery.com>
14980 * configure: Regenerate.
14982 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
14985 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
14986 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
14987 that LFD is used to load double constants instead of LFS. Add
14988 defaults for all costs structures. Add comments for missing
14989 initialization fields.
14990 (size32_cost): Likewise.
14991 (size64_cost): Likewise.
14992 (rs64a_cost): Likewise.
14993 (mpccore_cost): Likewise.
14994 (ppc403_cost): Likewise.
14995 (ppc405_cost): Likewise.
14996 (ppc440_cost): Likewise.
14997 (ppc476_cost): Likewise.
14998 (ppc601_cost): Likewise.
14999 (ppc603_cost): Likewise.
15000 (ppc604_cost): Likewise.
15001 (ppc604e_cost): Likewise.
15002 (ppc620_cost): Likewise.
15003 (ppc630_cost): Likewise.
15004 (ppccell_cost): Likewise.
15005 (ppc750_cost): Likewise.
15006 (ppc7450_cost): Likewise.
15007 (ppc8540_cost): Likewise.
15008 (ppce300c2c3_cost): Likewise.
15009 (ppce500mc_cost): Likewise.
15010 (ppce500mc64_cost): Likewise.
15011 (ppce5500_cost): Likewise.
15012 (ppce6500_cost): Likewise.
15013 (titan_cost): Likewise.
15014 (power4_cost): Likewise.
15015 (power6_cost): Likewise.
15016 (power7_cost): Likewise.
15017 (power8_cost): Likewise.
15018 (ppca2_cost): Likewise.
15019 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
15021 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
15022 instead of XXLOR to copy SFmode to clear out dirty bits created
15023 when SFmode denormals are generated.
15024 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
15025 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
15027 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
15029 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
15030 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
15031 * config/aarch64/aarch64-tune.md: Regenerate.
15033 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
15035 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
15036 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
15037 * config/arm/arm-cores.def (exynos-m1): New core.
15038 * config/arm/arm-tune.md: Regenerate.
15039 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
15040 * config/arm/bpabi.h: Likewise.
15042 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15044 * ipa-cp (set_single_call_flag): Remove too
15045 restrictive assert.
15047 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
15049 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
15050 GOMP_offload_unregister from the destructor.
15052 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
15054 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
15055 flags for instrumentation thunk.
15056 (chkp_produce_thunks): Likewise.
15058 2015-04-05 Martin Liska <mliska@suse.cz>
15061 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
15062 has computed data structure.
15063 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15065 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
15067 * invoke.texi (inline-unit-growth): Increase growth to 20%
15068 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
15070 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
15073 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
15075 (lra_rematerialization_iter): New.
15076 * lra.c (lra): Initialize lra_rematerialization_iter.
15077 Stop updating lra_constraint_new_regno_start after switching of
15078 inheritance and rematerialization.
15079 * lra-remat.c (lra_rematerialization_iter): New.
15080 (lra_remat): Add printing pass iteration. Do rematerialization
15081 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
15083 2015-04-04 Richard Biener <rguenther@suse.de>
15085 PR tree-optimization/64909
15086 PR tree-optimization/65660
15087 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
15088 to take a cost vector for scalar iteration cost.
15089 (vect_get_single_scalar_iteration_cost): Likewise.
15090 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
15091 Compute the scalar iteration cost into a cost vector.
15092 (vect_get_known_peeling_cost): Use the scalar cost vector to
15093 account for the cost of the peeled iterations.
15094 (vect_estimate_min_profitable_iters): Likewise.
15095 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
15098 2015-04-04 Alan Modra <amodra@gmail.com>
15102 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
15103 0.0 constant unless TARGET_VSX.
15104 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
15107 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15110 * ipa-inline-transform.c (inline_call): Skip sanity check to work
15113 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15116 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
15117 speculative indirect edges to avoid ordering issue.
15119 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
15122 * ipa-inline.c (edge_badness): Add combined size to the denominator.
15124 2015-04-03 Jakub Jelinek <jakub@redhat.com>
15126 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
15127 TYPE_ARTIFICIAL on the .omp_data* types.
15129 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15131 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
15132 instrumentation thunks.
15134 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15136 * config/i386/i386.c (ix86_expand_call): Avoid nested
15137 PARALLEL in returned call value.
15139 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15141 * lto-cgraph.c (input_cgraph_1): Always link instrumented
15142 assembler name with original one.
15144 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15146 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
15148 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15150 Revert parts of r216820.
15151 * config/i386/i386.md (movqi_internal): Correct type calculation
15152 for alternatives 3 and 5.
15154 2015-04-02 Jakub Jelinek <jakub@redhat.com>
15156 PR preprocessor/61977
15157 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
15158 predefine __vector/__bool/__pixel macros nor context sensitive
15159 macros for CLK_ASM.
15160 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
15162 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
15164 * config/pa/pa.c (pa_output_move_double): Directly handle register
15165 indexed memory operand. Simplify handling of scaled register indexed
15168 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
15171 * config/i386/linux-common.h (MPX_SPEC): New.
15172 (CHKP_SPEC): Add MPX_SPEC.
15173 * doc/invoke.texi (-fcheck-pointer-boudns): Document
15174 possible issues with '-z bndplt' support in linker.
15176 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
15178 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
15179 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
15180 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
15181 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
15182 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
15184 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
15186 * config/i386/sync.md (UNSPEC_MOVA): Remove.
15187 (atomic_load<mode>): Change operand 0 predicate to
15188 nonimmediate_operand and fix up the destination when needed.
15190 (atomic_loaddi_fpu): Use UNSPEC_LDA.
15191 (atomic_store<mode>): Change operand 1 predicate to
15192 nonimmendate_operand and move the source to register when needed.
15194 (atomic_store<mode>_1): Use UNSPEC_STA.
15195 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
15196 Fix moves from memory operand. Use UNSPEC_STA.
15198 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15200 * expmed.c (strict_volatile_bitfield_p): Check that the access will
15201 not cross a MODESIZE boundary.
15202 (store_bit_field, extract_bit_field): Added assertions in the
15203 strict volatile bitfields code path.
15205 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
15208 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
15209 Increase args array size by one to avoid buffer overflow.
15211 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15213 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15215 * ipa-inline.c (edge_badness): Add wrapper penalty.
15216 (sum_callers): Move up.
15217 (inline_small_functions): Set single_caller.
15218 * ipa-inline.h (inline_summary): Add single_caller.
15219 * ipa-split.c (split_function): Set split_part.
15220 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
15221 * cgraph.h (cgraph_node): Add split_part.
15223 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
15226 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
15227 Do not split operands 0 and operands 2 to halfmode.
15228 (atomic_compare_and_swap<mode>): Update for
15229 atomic_compare_and_swap<dwi>_doubleword changes.
15231 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
15233 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
15234 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
15235 no caching is done.
15237 2015-03-31 Martin Liska <mliska@suse.cz>
15240 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
15241 has already filled up function summary.
15242 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
15244 2015-03-31 Richard Biener <rguenther@suse.de>
15246 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
15249 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
15251 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
15253 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
15254 (s390_asm_output_function_label): Adapt to new signature of
15255 s390_function_num_hotpatch_hw
15256 Optimise the code generating assembler output.
15257 Add comments to assembler file.
15259 2015-03-31 Richard Biener <rguenther@suse.de>
15261 PR middle-end/65626
15262 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
15263 of the noreturn call so it is last and cleanup_control_flow_bb
15264 can do the CFG part.
15266 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
15269 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
15270 same_comdat_group for external symbols.
15271 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
15272 infinite same_comdat_group traversal loop.
15274 2015-03-31 Jakub Jelinek <jakub@redhat.com>
15277 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
15278 automatically to $headers.
15280 2015-03-30 Jakub Jelinek <jakub@redhat.com>
15283 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
15284 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
15286 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
15288 * ipa-prop.c (param_type_may_change_p): Likewise.
15289 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
15290 (remove_unused_scope_block_p): Add in_ctor_dtor_block
15291 argument. Before inlining, preserve
15292 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
15293 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
15295 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
15297 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15300 * ipa-inline.c (edge_badness): Base denominator on callee's
15303 2015-03-27 Martin Jambor <mjambor@suse.cz>
15306 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
15307 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
15308 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
15309 node_calling_single_call.
15310 * ipa-cp.c (count_callers): New function.
15311 (set_single_call_flag): Likewise.
15312 (initialize_node_lattices): Count callers and set single_flag_call if
15314 (incorporate_penalties): New function.
15315 (good_cloning_opportunity_p): Use it, dump new flags.
15316 (propagate_constants_topo): Set node_within_scc flag if appropriate.
15317 * doc/invoke.texi (ipa-cp-recursion-penalty,
15318 ipa-cp-single-call-pentalty): Document.
15320 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15323 * symtab.c (symtab_node::get_partitioning_class): Register vars
15325 * varpool.c (symbol_table::output_variables) Do not assemble unefined
15326 decls for non-symbols.
15328 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
15331 * output.h (default_binds_local_p_2): New.
15332 * varasm.c (default_binds_local_p_2): Renamed to ...
15333 (default_binds_local_p_3): This. Don't return true on protected
15334 data symbol if protected data may be external.
15335 (default_binds_local_p): Use default_binds_local_p_3.
15336 (default_binds_local_p_1): Likewise.
15337 (default_binds_local_p_2): New.
15338 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
15339 default_binds_local_p_2 if TARGET_MACHO is undefined.
15341 2015-03-27 Jakub Jelinek <jakub@redhat.com>
15344 * config/i386/i386.c (legitimize_pic_address): If base
15345 is SYMBOL_REF or LABEL_REF using %rip addressing, force
15346 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
15348 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15351 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
15354 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
15357 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
15358 of optimized out indirect call.
15359 (redirect_to_unreachable): Always build symbol table node for
15360 BUILT_IN_UNREACHABLE
15362 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
15365 * ira-costs.c (record_reg_classes): Process all constraint string
15368 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
15370 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
15374 * config/c6x/constraints.md (S3): New constraint.
15375 * config/c6x/c6x.md (real_jump): Use it.
15377 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15379 PR middle-end/65595
15380 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
15381 do redirection if the call is not optimized out.
15383 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
15386 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
15387 (fchkp-check-incomplete-type): Add LTO.
15388 (fchkp-zero-input-bounds-for-main): Likewise.
15389 (fchkp-first-field-has-own-bounds): Likewise.
15390 (fchkp-narrow-bounds): Likewise.
15391 (fchkp-narrow-to-innermost-array): Likewise.
15392 (fchkp-use-static-bounds): Likewise.
15393 (fchkp-use-static-const-bounds): Likewise.
15394 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15396 2015-03-27 Marek Polacek <polacek@redhat.com>
15398 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
15400 2015-03-27 Marek Polacek <polacek@redhat.com>
15403 * ubsan.c (ubsan_create_edge): New function.
15404 (instrument_bool_enum_load): Call it.
15405 (instrument_nonnull_arg): Likewise.
15406 (instrument_nonnull_return): Likewise.
15407 (instrument_object_size): Likewise.
15409 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15411 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
15414 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15417 * lto-streamer.h (class lto_location_cache): New.
15418 (struct data_in): Add location_cache.
15419 (lto_input_location): Update prototype.
15420 (stream_input_location_now): New.
15421 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
15422 pointer to location.
15423 (stream_input_location): Update.
15424 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
15425 (warn_odr): Apply location cache before warning.
15426 (lto_input_location): Update prototype.
15427 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
15428 Use stream_input_location_now.
15429 * lto-streamer-in.c (lto_location_cache::current_cache): New static
15431 (lto_location_cache::cmp_loc): New function.
15432 (lto_location_cache::apply_location_cache): New function.
15433 (lto_location_cache::accept_location_cache): New function.
15434 (lto_location_cache::revert_location_cache): New function.
15435 (lto_location_cache::input_location): New function.
15436 (lto_input_location): Do location caching.
15437 (stream_input_location_now): New function.
15438 (input_eh_region, input_struct_function_base): Use
15439 stream_input_location_now.
15440 (lto_data_in_create): use new.
15441 (lto_data_in_delete): Use delete.
15442 * tree-streamer-in.c (unpack_ts_block_value_fields,
15443 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
15444 lto_input_ts_exp_tree_pointers): Update for cached location api.
15446 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15449 * passes.def: Add pass_nothrow.
15450 * ipa-pure-const.c: (pass_data_nothrow): New.
15451 (pass_nothrow): New.
15452 (pass_nothrow::execute): New.
15453 (make_pass_nothrow): New.
15454 * tree-pass.h (make_pass_nothrow): Declare.
15456 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15458 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
15459 edge to change by speculation resolution or redirection.
15460 (edge_set_predicate): Likewise.
15461 (inline_summary_t::duplicate): Likewise.
15462 (remap_edge_summaries): Likewise.
15464 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15466 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
15468 (can_inline_edge_p): Relax option matching for always inline functions.
15470 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
15473 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
15474 Check operand 4 and operand 0 for equality.
15475 (avx512f_vextract<shuffletype>32x4_1_maskm):
15476 Check operand 6 and operand 0 for equality.
15477 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
15479 (vec_extract_hi_<mode>_maskm): Ditto.
15481 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15483 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
15484 dead calls back to live.
15485 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
15487 (cgraph_node::verify_node): ... here; verify only callee edges,
15489 * cif-code.def (CILK_SPAWN): New code.
15491 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
15493 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
15494 (edge_set_predicate): Use it to mark unreachable edges.
15495 (inline_summary_t::duplicate): Remove unnecesary code.
15496 (remap_edge_summaries): Likewise.
15497 (dump_inline_summary): Report contains_cilk_spawn.
15498 (compute_inline_parameters): Compute contains_cilk_spawn.
15499 (inline_read_section, inline_write_summary): Stream
15500 contains_cilk_spawn.
15501 * ipa-inline.c (can_inline_edge_p): Do not touch
15502 DECL_STRUCT_FUNCTION that may not be available;
15503 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
15504 remove check for callee_fun->can_throw_non_call_exceptions and
15505 replace it by optimization attribute check; check for flag_exceptions.
15506 * ipa-inline-transform.c (inline_call): Maintain
15507 DECL_FUNCTION_PERSONALITY
15508 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
15510 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15512 PR tree-optimization/65551
15513 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
15514 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
15516 2015-03-26 Richard Biener <rguenther@suse.de>
15518 PR middle-end/65555
15519 * tree-cfg.c (verify_gimple_call): Do not require a call to
15520 have no LHS if it wasn't recognized as control altering yet.
15522 2015-03-26 Jakub Jelinek <jakub@redhat.com>
15524 PR tree-optimization/64715
15525 * passes.def: Add another instance of pass_object_sizes before ccp1.
15526 * tree-object-size.c (pass_object_sizes::execute): In
15527 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
15528 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
15529 __bos result and the computed constant. Remove redundant
15530 checks, obsoleted by gimple_call_builtin_p test.
15532 * var-tracking.c (variable_tracking_main_1): Don't track
15533 variables for targetm.no_register_allocation targets.
15535 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
15537 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
15538 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
15540 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15543 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
15544 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
15545 0.0 is correctly setup.
15546 (extenddftf2_internal): Likewise.
15548 2015-03-25 Sebastian Pop <s.pop@samsung.com>
15550 PR tree-optimization/65177
15551 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
15553 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
15554 edges not adjacent on the path to the original code.
15556 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
15559 * doc/install.texi (Building a native compiler): Document new
15560 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
15561 configuration assumes that the host supports the linker plugin.
15563 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
15566 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
15567 chain for generated call.
15569 2015-03-25 Richard Biener <rguenther@suse.de>
15571 * passes.c (pass_manager::execute_early_local_passes): Guard
15572 execution of pass_chkp_instrumentation_passes with
15573 flag_check_pointer_bounds.
15574 (pass_chkp_instrumentation_passes::gate): Likewise.
15576 2015-03-25 Martin Liska <mliska@suse.cz>
15578 PR tree-optimization/65538
15579 * symbol-summary.h (function_summary::~function_summary):
15580 Relese memory for allocated summaries.
15581 (function_summary::release): New function.
15583 2015-03-25 Jakub Jelinek <jakub@redhat.com>
15586 * lto-streamer-out.c (DFS::worklist): New struct.
15587 (DFS::worklist_vec): New data member.
15588 (DFS::next_dfs_num): Remove.
15589 (DFS::DFS): Rewritten using worklist instead of recursion,
15590 using most of code from DFS::DFS_write_tree.
15591 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
15592 pass it to DFS_write_tree calls.
15593 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
15594 quick initial checks push it into worklist_vec and return.
15596 2015-03-25 Richard Biener <rguenther@suse.de>
15598 PR middle-end/65519
15599 * genmatch.c (expr::gen_transform): Re-write to avoid
15600 using gimple_build.
15602 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15604 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
15606 2015-03-25 Bin Cheng <bin.cheng@arm.com>
15608 * config/arm/arm.opt (print_tune_info): New option.
15609 * config/arm/arm.c (arm_print_tune_info): New function.
15610 (arm_file_start): Call arm_print_tune_info.
15611 * config/arm/arm-protos.h (struct tune_params): Add comment.
15612 * doc/invoke.texi (@item -mprint-tune-info): New item.
15613 (-mtune): mention it in ARM Option Summary.
15615 2015-03-25 DJ Delorie <dj@redhat.com>
15617 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
15620 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
15621 Martin Liska <mliska@suse.cz>
15623 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
15624 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
15625 (sem_item::add_type): New function.
15626 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
15627 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
15628 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
15629 (sem_function::equals_wpa): Fix typo.
15630 * ipa-icf.h (sem_item::add_type): New function.
15631 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
15634 2015-03-24 Jakub Jelinek <jakub@redhat.com>
15636 PR tree-optimization/65533
15637 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
15638 with swapped operands, call vect_free_slp_tree on
15639 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
15642 2015-03-24 Richard Biener <rguenther@suse.de>
15644 PR middle-end/65517
15645 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
15646 for fixup if necessary.
15648 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
15650 * doc/extend.texi (Function Attributes): Add @cindex entries
15651 for all attributes and regularize their format. Delete text
15652 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
15653 information about "eightbit_data", "tiny_data", and "model"
15654 variable attributes to the Variable Attributes section. Fix
15655 some obvious typos and copy-editing issues.
15656 (Variable Attributes, Type Attributes): Likewise add/fix
15657 @cindex entries for all attributes.
15659 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15662 * tree-chkp.c (chkp_build_returned_bound): Ignore
15663 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
15665 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
15668 * config/sh/predicates.md (simple_mem_operand,
15669 displacement_mem_operand): Add test for reg.
15670 (short_displacement_mem_operand): Test for displacement_mem_operand
15671 before invoking sh_disp_addr_displacement.
15672 * config/sh/constraints.md (Sdd, Sra): Simplify.
15673 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
15674 Remove redundant displacement_mem_operand tests.
15676 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
15679 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
15680 the same -mmcu=MCU more than once.
15682 2015-03-23 Jakub Jelinek <jakub@redhat.com>
15685 * ipa-devirt.c: Remove duplicate demangle.h include.
15688 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
15690 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
15691 REG_POINTER on *destptr after adjusting it for prologue size.
15694 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
15695 ultimate_alias_target ()->order ints instead of
15696 ultimate_alias_target () pointers.
15698 2015-03-23 Richard Biener <rguenther@suse.de>
15700 PR tree-optimization/65518
15701 * tree-vect-stmts.c (vectorizable_load): Reject single-element
15702 interleaving cases we generate absymal code for.
15704 2015-03-23 Richard Biener <rguenther@suse.de>
15706 PR tree-optimization/65494
15707 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
15709 (vect_analyze_slp_instance): But do that here, always and once.
15711 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15713 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
15714 adding T or multiplying by T+1 and subracting T.
15716 2015-03-22 Jeff Law <law@redhat.com>
15718 PR rtl-optimization/64317
15719 * Makefile.in (OBJS): Add gcse-common.c
15720 * gcse.c: Include gcse-common.h
15721 (struct modify_pair_s): Move structure definition to gcse-common.h
15722 (compute_transp): Move function to gcse-common.c.
15723 (canon_list_insert): Similarly.
15724 (record_last_mem_set_info): Break out some code and put it into
15725 gcse-common.c. Call into the new common code.
15726 (compute_local_properties): Pass additional arguments to compute_transp.
15727 * postreload-gcse.c: Include gcse-common.h and df.h
15728 (modify_mem_list_set, blocks_with_calls): New variables.
15729 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
15730 (get_bb_avail_insn): Pass in the expression index too.
15731 (alloc_mem): Allocate memory for the new bitmaps and lists.
15732 (free_mem): Free memory for the new bitmaps and lists.
15733 (insert_expr_in_table): Record a bitmap index for each entry we
15735 (record_last_mem_set_info): Call into common code in gcse-common.c.
15736 (get_bb_avail_insn): If no available insn was found in the requested
15737 BB. If BB has a single predecessor, see if the expression is
15738 transparent in BB and available in that single predecessor.
15739 (compute_expr_transp): New wrapper for compute_transp.
15740 (eliminate_partially_redundant_load): Pass expression's bitmap_index
15741 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
15742 (gcse_after_reload_main): If there are elements in the hash table,
15743 then compute transparency for all the elements in the hash table.
15744 * gcse-common.h: New file.
15745 * gcse-common.c: New file.
15747 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
15749 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
15751 (System Headers): Likewise.
15753 (Traditional macros): Likewise.
15754 (Invocation): Likewise.
15755 (Option Index): Likewise.
15756 * doc/cppopts.texi (-M): Likewise.
15757 (-finput-charset): Likewise.
15758 (--help): Likewise.
15759 * doc.invoke.texi (AVR Options): Likewise.
15760 (V850 Options): Likewise.
15762 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
15765 * ipa-devirt.c: Include demangle.h
15766 (odr_type_d): Add field rtti_broken.
15767 (odr_subtypes_equivalent_p): Do not require name to match.
15768 (compare_virtual_tables): Fix typo; if type already has ODR violation,
15769 bypass the tests; be ready for function referneces in vtables that are
15770 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
15771 (warn_odr): Give up for nameless types.
15772 (warn_types_mismatch): Report mismatch in mangled names;
15773 report mismatch in anonymous namespaces; look into component types to
15774 give useful error; report when mismatch is dragged in from other ODR
15776 (odr_types_equivalent_p): Match types for being polymorphic; avoid
15777 duplicated diagnostics.
15778 (add_type_duplicate): Reorder checks so more informative ones come
15779 first; fix typo; do not output "the extra base is defined here" when
15781 (BINFO_N_BASE_BINFOS): Relax sanity check.
15783 2015-03-22 Martin Liska <mliska@suse.cz>
15784 Jakub Jelinek <jakub@redhat.com>
15786 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
15787 masks that can potentially include a builtin.
15788 (ix86_add_new_builtins): Introduce fast filter for isa values
15789 that cannot trigger builtin inclusion.
15791 2015-03-22 Martin Liska <mliska@suse.cz>
15793 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
15794 (sem_item::update_hash_by_local_refs): Likewise.
15795 (sem_variable::get_hash): Empty line is fixed.
15796 (sem_item_optimizer::execute): Include adding of hash references.
15797 (sem_item_optimizer::update_hash_by_addr_refs): New function.
15798 (sem_item_optimizer::build_hash_based_classes): Use local hash.
15799 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
15800 (sem_item::update_hash_by_local_refs): Likewise.
15802 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15805 * ipa-comdats.c (enqueue_references): Walk through thunks.
15806 (ipa_comdats): Likewise.
15807 (set_comdat_group_1): New function.
15809 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15812 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
15815 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
15816 Gerald Pfeifer <gerald@pfeifer.com>
15818 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
15820 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15821 Sandra Loosemore <sandra@codesourcery.com>
15823 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
15824 function parameter declaration.
15825 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
15826 Update arguments to nios2_adjust_call_address().
15827 (sibcall_internal): Rename from *sibcall.
15828 (sibcall_value_internal): Rename from *sibcall_value.
15829 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
15830 (nios2_large_got_address): Add target temp reg parameter.
15831 (nios2_got_address): Adjust call to nios2_large_got_address, add
15832 force_reg around it.
15833 (nios2_load_pic_address): Add target temp reg parameter, replace call
15834 to nios2_got_address with corresponding code.
15835 (nios2_legitimize_constant_address): Update call to
15836 nios2_load_pic_address.
15837 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
15838 to use temp reg for PIC loading purposes.
15839 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
15840 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15841 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
15843 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15845 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
15846 usage of "the @option{...}".
15847 (-Wopenmp-simd): Likewise.
15848 (-fsanitize-recover): Likewise.
15849 (-fsanitize-undefined-trap-on-error): Likewise.
15851 (tracer-dynamic-coverage-feedback): Likewise.
15852 (reorder-block-duplicate-feedback): Likewise.
15853 (loop-unroll-jam-size): Likewise.
15856 (-mabs=legacy): Likewise.
15857 (-mupper-regs-df): Likewise.
15858 (-mupper-regs-sf): Likewise.
15859 (-mpointers-to-nested-functions): Likewise.
15861 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15863 * doc/extend.texi (Cilk Plus Builtins): Add markup.
15865 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
15867 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
15868 additional index entries and cross-references.
15869 (-fchkp-check-incomplete-type): Likewise.
15870 (-fchkp-first-field-has-own-bounds): Likewise.
15871 (-fchkp-narrow-to-innermost-array): Likewise.
15872 (-fchkp-use-fast-string-functions): Likewise.
15873 (-fchkp-use-nochk-string-functions): Likewise.
15874 (-fchkp-use-static-const-bounds): Likewise.
15875 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
15876 (-fchkp-instrument-marked-only): Likewise.
15877 (-fchkp-use-wrappers): Likewise.
15878 (-static-libmpx): Likewise.
15879 (-static-libmpxwrappers): Likewise.
15880 * doc/extend.texi (bnd_legacy): Likewise.
15881 (bnd_instrument): Likewise.
15882 (bnd_variable_size): Likewise.
15883 (Pointer Bounds Checker builtins): Likewise.
15885 2015-03-21 Tom de Vries <tom@codesourcery.com>
15887 PR tree-optimization/65458
15888 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
15889 * cgraph.h (cgraph_node): Add parallelized_function field.
15890 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
15891 (input_overwrite_node): Read parallelized_function field.
15892 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
15893 parallelized_function on cgraph_node for child_fn.
15894 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
15895 Remove include of gt-tree-parloops.h.
15896 (parallelized_functions): Remove static variable.
15897 (parallelized_function_p): Rewrite using parallelized_function field of
15899 (create_loop_fn): Remove adding to parallelized_functions.
15900 * Makefile.in (GTFILES): Remove tree-parloops.c
15902 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
15904 PR rtl-optimization/64366
15905 * lra.c (lra_update_insn_regno_info): Consider regs in
15906 CALL_INSN_FUNCTION_USAGE memory.
15908 2015-03-20 Richard Biener <rguenther@suse.de>
15910 PR middle-end/64715
15911 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
15912 for type comparison and gcc_checking_assert.
15913 (chrec_fold_plus_poly_poly): Likewise.
15914 (chrec_fold_multiply_poly_poly): Likewise.
15915 (chrec_convert_1): Likewise.
15916 * gimplify.c (gimplify_expr): Remove premature folding of
15917 &X + CST to &MEM[&X, CST].
15919 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
15921 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
15923 (ipa_inline): Recompute inline_failed codes.
15924 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15925 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
15928 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
15930 PR rtl-optimization/60851
15931 * recog.c (constrain_operands): Accept a pseudo register before reload
15932 for LRA enabled targets.
15934 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
15937 * config/rs6000/predicates.md (easy_fp_constant): Remove special
15938 -ffast-math handling that kept non-0 constants live in the RTL
15939 until reload. Remove logic testing the number of instructions it
15940 took to create a constant in a GPR that was never used, due to a
15941 test for soft-float earlier.
15942 (memory_fp_constant): Delete, no longer used.
15944 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
15945 alternatives for loading non-0 constants into GPRs for hard
15946 floating point that is no longer needed due to changes in
15947 easy_fp_constant. Add support for loading 0.0 into GPRs.
15948 (mov<mode>_hardfloat32): Likewise.
15949 (mov<mode>_hardfloat64): Likewise.
15950 (mov<mode>_64bit_dm): Likewise.
15951 (movtd_64bit_nodm): Likewise.
15952 (pre-reload move FP constant define_split): Delete define_split,
15953 since it is no longer used.
15954 (extenddftf2_internal): Remove GHF constraints that are not valid
15957 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
15959 PR rtl-optimization/63491
15960 * lra-constraints.c (check_and_process_move): Use src instead of
15961 sreg. Remove some dead code.
15963 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
15966 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
15967 (sem_variable::merge): Likewise.
15969 2015-03-19 Martin Liska <mliska@suse.cz>
15972 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
15973 all fields of cgraph_thunk_info.
15975 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
15977 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
15978 clone instrumented thunks.
15980 2015-03-19 Richard Biener <rguenther@suse.de>
15983 2015-03-10 Richard Biener <rguenther@suse.de>
15985 PR middle-end/63155
15986 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
15987 * tree-ssa-coalesce.c: Include timevar.h.
15988 (attempt_coalesce): Handle graph being NULL.
15989 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
15990 Split out abnormal coalescing to ...
15991 (perform_abnormal_coalescing): ... this function.
15992 (coalesce_ssa_name): Perform abnormal coalescing without computing
15994 (verify_ssa_coalescing_worker): New function.
15995 (verify_ssa_coalescing): Likewise.
15997 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
15998 Jakub Jelinek <jakub@redhat.com>
16001 * tsan.c (instrument_gimple): Clear tail call flag on
16004 2015-03-19 Jakub Jelinek <jakub@redhat.com>
16007 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
16008 call in the return bb.
16009 (find_split_points): Add RETURN_BB argument, don't call
16011 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
16012 if true append TSAN_FUNC_EXIT internal call after the call to
16013 the split off function.
16014 (execute_split_functions): Call find_return_bb here.
16015 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
16016 Adjust find_split_points and split_function calls.
16018 2015-03-18 DJ Delorie <dj@redhat.com>
16020 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
16021 (iorqi3_virt): Likewise.
16023 2015-03-18 Tom de Vries <tom@codesourcery.com>
16025 * tree-parloops.c (parallelize_loops): Make static.
16026 * tree-parloops.h (parallelize_loops): Remove extern declaration.
16028 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
16030 PR middle-end/64491
16032 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
16034 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
16035 condition would be removed due to undefined behaviour.
16037 2015-03-18 Martin Liska <mliska@suse.cz>
16040 * cgraph.c (cgraph_node::get_create): Remove unnecessary
16041 xstrdup_for_dump wrapper.
16042 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
16044 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
16045 with xstrdup_for_dump.
16046 (sem_variable::equals): Likewise.
16047 (sem_item_optimizer::read_section): Use symtab_node::name instead of
16049 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
16050 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
16051 symtab_node::asm_name with xstrdup_for_dump.
16052 (congruence_class::dump): Use symtab_node::name instead of
16054 * ipa-icf.h (symtab_node::name): Remove.
16055 (symtab_node::asm_name): Likewise.
16057 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16059 PR tree-optimization/65450
16060 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
16062 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
16063 it instead of duplicate_ssa_name_ptr_info.
16066 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
16068 2015-03-18 Richard Biener <rguenther@suse.de>
16070 * tree-data-ref.h (struct access_matrix): Remove.
16071 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
16072 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
16073 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
16074 (am_vector_index_for_loop): Likewise.
16075 (struct data_reference): Remove access_matrix member.
16076 (DR_ACCESS_MATRIX): Remove.
16077 (lambda_vector_new): Add comment.
16078 (lambda_matrix_new): Use XOBNEWVEC.
16080 2015-03-18 Richard Biener <rguenther@suse.de>
16082 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
16083 (pass_ch::execute): Cleanup the CFG only if we did sth.
16084 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
16086 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16088 * expmed.c (synth_mult): Use std::swap instead of manually
16089 swapping algorithms.
16091 2015-03-18 Jakub Jelinek <jakub@redhat.com>
16094 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
16096 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
16099 * config/avr/avr.opt (-nodevicelib): New option.
16100 * doc/invoke.texi (AVR Options): Document it.
16101 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
16102 libgcc.a, libc.a, libm.a.
16103 * config/avr/specs.h: Same.
16104 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
16105 which don't (directly) depend on the device. Print more help.
16106 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
16107 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
16108 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
16110 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
16111 for specs file name.
16112 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
16113 * config/avr/avr-mcus.def: Adjust initializers and comments.
16115 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
16117 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
16118 DECL_ONE_ONLY to check if decl is one only.
16119 * ipa-split.c (consider_split): Limit splitt of one only functions.
16121 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16123 PR tree-optimization/65427
16124 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
16126 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
16128 2015-03-16 Marek Polacek <polacek@redhat.com>
16130 * cgraph.h (add_new_static_var): Remove declaration.
16131 * varpool.c (add_new_static_var): Remove function.
16133 2015-03-16 Jakub Jelinek <jakub@redhat.com>
16135 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
16136 instead of vec<tree> * with vec_alloc and release for args.
16139 PR middle-end/65431
16140 * omp-low.c (delete_omp_context): Only splay_tree_delete
16141 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
16142 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
16144 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
16147 * cfgexpand.c (align_base): New function.
16148 (alloc_stack_frame_space): Call it.
16149 (expand_stack_vars): Align prev_frame to be sure
16150 data->asan_vec elements aligned properly.
16152 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
16154 PR middle-end/65409
16155 * expr.c (store_field): Do not do a direct block copy if the source is
16156 a PARALLEL with BLKmode.
16158 2015-03-16 Tom de Vries <tom@codesourcery.com>
16160 PR middle-end/65414
16162 2015-03-12 Tom de Vries <tom@codesourcery.com>
16164 PR rtl-optimization/64895
16165 * lra-lives.c (check_pseudos_live_through_calls): Use
16166 actual_call_used_reg_set instead of call_used_reg_set, if available.
16168 2015-03-16 Alan Modra <amodra@gmail.com>
16171 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
16172 Modify Z->r bswapdi splitter to use dest in place of scratch.
16173 In r->Z and Z->r bswapdi splitter rename word_high, word_low
16174 to word1, word2 and rearrange logic to suit.
16175 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
16176 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
16177 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
16178 Add one '?' on r->r. Modify Z->r splitter to avoid need for
16181 2015-03-14 Jakub Jelinek <jakub@redhat.com>
16183 PR tree-optimization/65369
16184 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
16185 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
16186 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
16188 PR tree-optimization/65418
16189 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
16190 are casts in the first PLUS_EXPR operand, ensure tbias and
16191 *totallowp are in the inner type.
16193 PR rtl-optimization/65401
16194 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
16195 argument. If true, adjust_address_nv of x with big-endian
16196 correction for the mode widening to GET_MODE (y).
16197 (make_field_assignment): Don't do MEM mode widening here.
16198 Use MEM_P instead of GET_CODE == MEM.
16200 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
16202 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
16203 the external decls.
16205 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16208 * config/arm/arm.c (arm_gen_constant, AND case): Use
16209 ARM_SIGN_EXTEND when constructing AND mask.
16211 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16213 * graph.c (print_graph_cfg): Make function names visible and append
16214 parenthesis to it. Also make groups of basic blocks belonging to the
16215 same function visible.
16217 2015-03-12 Richard Biener <rguenther@suse.de>
16219 PR middle-end/44563
16220 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
16221 to avoid quadratic behavior with inline expansion splitting blocks.
16222 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
16223 with the successor if the predecessor will be merged with it.
16224 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
16225 entry block with its successor.
16227 2015-03-13 Richard Biener <rguenther@suse.de>
16229 PR middle-end/44563
16230 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
16231 (cleanup_tree_cfg_1): Do not call it.
16232 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
16233 (fixup_noreturn_call): Mark the stmt as control altering.
16234 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
16236 (pass_data_fixup_cfg): Produce a dump file.
16237 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
16238 (need_noreturn_fixup): New global.
16239 (pass_dominator::execute): Fixup queued noreturn calls.
16240 (optimize_stmt): Queue calls that became noreturn for fixup.
16241 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16242 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
16243 (el_to_fixup): New global.
16244 (eliminate_dom_walker::before_dom_childre): Queue calls that
16245 became noreturn for fixup.
16246 (eliminate): Fixup queued noreturn calls.
16247 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
16248 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
16249 (substitute_and_fold_dom_walker::before_dom_children): Queue
16250 alls that became noreturn for fixup.
16251 (substitute_and_fold): Fixup queued noreturn calls.
16253 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
16255 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
16256 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
16257 are building; for methods check ODR type of class they belong to if
16258 they may lead to a polymorphic call.
16259 (sem_function::compare_polymorphic_p): Be bit smarter about testing
16260 when function may lead to a polymorphic call.
16261 (sem_function::compare_type_list): Remove.
16262 (sem_variable::equals): Update use of compatible_types_p.
16263 (sem_variable::parse_tree_refs): Remove.
16264 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
16266 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
16268 (func_checker::compatible_polymorphic_types_p): Break out from ...
16269 (unc_checker::compatible_types_p): ... here.
16270 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
16272 (unc_checker::compatible_types_p): Update.
16273 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
16276 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16278 PR rtl-optimization/65235
16279 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
16280 When first element of vec_concat is const_int, calculate its size
16281 using second element.
16283 2015-03-12 Richard Biener <rguenther@suse.de>
16285 PR middle-end/65270
16286 * fold-const.c (operand_equal_p): Fix ordering of resetting
16287 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
16289 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
16291 * config/s390/s390.c (s390_reorg): Move code to output nops after label
16293 (s390_asm_output_function_label): Likewise.
16294 * config/s390/s390.c (s390_asm_output_function_label):
16295 Fix function label alignment with -mhtopatch.
16296 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
16297 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
16298 ("nop_2_byte"): New define_insn.
16299 ("nop_4_byte"): Likewise.
16300 ("nop_6_byte"): Likewise.
16301 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
16302 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
16304 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16307 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
16310 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
16313 * toplev.c (process_options): Restrict Pointer Bounds Checker
16314 usage with Address Sanitizer.
16316 2015-03-12 Richard Biener <rguenther@suse.de>
16318 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
16320 * omp-low.c (expand_omp_taskreg): Split block before removing
16322 (expand_omp_target): Likewise.
16323 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
16324 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
16325 stmt to split_block.
16327 2015-03-12 Tom de Vries <tom@codesourcery.com>
16329 PR rtl-optimization/64895
16330 * lra-lives.c (check_pseudos_live_through_calls): Use
16331 actual_call_used_reg_set instead of call_used_reg_set, if available.
16333 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16335 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
16336 (cgraph_node::remove): Likewise.
16337 (cgraph_node::get_untransformed_body): Likewise.
16338 * varpool.c (varpool_node::remove): Likewise.
16339 (varpool_node::get_constructor): Add sanity check.
16341 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
16343 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
16345 (-fabi-compat-version): Likewise.
16346 (-ffriend-injection): Likewise.
16347 (-Wdeclaration-after-statement): Likewise.
16348 (-fomit-frame-pointer): Likewise.
16349 (-ftree-coalesce-inlined-vars): Likewise.
16350 (-fvisibility=): Likewise.
16351 * doc/extend.texi (Typeof): Likewise.
16352 (Zero Length): Likewise.
16353 (Escaped Newlines): Likewise.
16354 (Compound Literals): Likewise.
16355 (Function Attributes): Likewise.
16356 (Label Attributes): Likewise.
16357 (Type Attributes): Likewise.
16358 (Function Names): Likewise.
16359 (Other Builtins): Likewise.
16360 (Function Specific Option Pragmas): Likewise.
16361 (C++ Interface): Likewise.
16363 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
16365 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
16367 2015-03-11 Marek Polacek <polacek@redhat.com>
16369 PR tree-optimization/65388
16370 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
16372 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16375 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
16376 * configure: Regenerate.
16377 * config.in: Regenerate.
16378 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
16379 [-mn-flash]: Document it.
16380 [__AVR_ARCH__]: Document avrtiny.
16382 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
16383 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
16384 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
16386 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16388 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
16390 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16393 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
16394 allow reloads of PLUS in floating point/VSX registers.
16396 2015-03-11 Junmo Park <junmoz.park@samsung.com>
16398 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
16399 crypto_sha256_fast.
16400 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
16402 2015-03-11 Richard Biener <rguenther@suse.de>
16404 PR tree-optimization/65310
16405 * tree-sra.c (build_ref_for_offset): Also preserve larger
16408 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
16410 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
16412 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16415 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
16417 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
16419 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16421 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
16422 (sem_function::equals_wpa): ... here.
16424 2015-03-10 Marek Polacek <polacek@redhat.com>
16425 Jakub Jelinek <jakub@redhat.com>
16428 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
16429 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
16432 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16435 * config/rs6000/t-linux: For powerpc64* target set
16436 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
16438 2015-03-10 Richard Biener <rguenther@suse.de>
16440 PR middle-end/44563
16441 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
16442 for redirect_all_calls.
16444 2015-03-10 Marek Polacek <polacek@redhat.com>
16446 * gdbinit.in (pcfun): Define and document.
16448 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
16450 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
16451 of libgomp-plugin.h.
16452 (find_target_compiler): Support a case when the path to gcc is
16453 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
16454 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
16455 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
16457 (main): Use GCC_INSTALL_NAME as target_driver_name.
16458 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
16460 (mkoffload.o): Remove obsolete include path and defines.
16461 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
16463 2015-03-10 Richard Biener <rguenther@suse.de>
16465 PR middle-end/63155
16466 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
16467 * tree-ssa-coalesce.c: Include timevar.h.
16468 (attempt_coalesce): Handle graph being NULL.
16469 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
16470 Split out abnormal coalescing to ...
16471 (perform_abnormal_coalescing): ... this function.
16472 (coalesce_ssa_name): Perform abnormal coalescing without computing
16474 (verify_ssa_coalescing_worker): New function.
16475 (verify_ssa_coalescing): Likewise.
16477 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
16480 * config.gcc (extra_options) [avr]: Remove.
16481 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
16482 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
16483 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
16485 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
16486 (-mmcu=): Add Var and MissingArgError properties.
16488 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
16489 * config/avr/t-multilib: Regenerate.
16490 * config/avr/specs.h: New file.
16491 * config/avr/driver-avr.c: New file.
16492 * config/avr/genopt.sh: Remove file.
16493 * config/avr/avr-tables.opt: Remove file.
16494 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
16495 * config/avr/avr-c.c: Same.
16496 * avr-arch.h: Same.
16497 (avr_current_device): Remove proto.
16498 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
16499 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
16500 (EXTRA_SPEC_FUNCTIONS): Define.
16501 (avr_devicespecs_file): New specs function proto.
16502 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
16503 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
16504 (avr_current_device): Remove definition and usage.
16505 (avr_set_core_architecture): New static function.
16506 (avr_option_override): Use it.
16507 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
16508 (mcu_name): New static array.
16509 (comparator, avr_archs_str, avr_mcus_str): New static functions.
16510 (avr_inform_devices, avr_inform_core_architectures): New functions.
16511 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
16512 (avrlibc.h) [WITH_AVRLIBC]: Include.
16513 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
16514 (print_mcu): Rewrite from scratch.
16515 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
16516 Forward to avr-specific specs defined in device-specs file.
16517 * config/avr/t-avr (driver-avr.o): New rule.
16518 (avr-devices.o): Depend on avr-arch.h.
16519 (avr-mcus): No more depend on avr-tables.opt.
16520 (avr-tables.opt): Remove rule.
16521 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
16523 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16525 * c-family/c.opt (fchkp-use-wrappers): New.
16526 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
16527 (chkp_wrap_function): New.
16528 (chkp_build_instrumented_fndecl): Support wrapped
16530 * doc/invoke.texi (-fcheck-pointer-bounds): New.
16531 (-fchkp-check-incomplete-type): New.
16532 (-fchkp-first-field-has-own-bounds): New.
16533 (-fchkp-narrow-bounds): New.
16534 (-fchkp-narrow-to-innermost-array): New.
16535 (-fchkp-optimize): New.
16536 (-fchkp-use-fast-string-functions): New.
16537 (-fchkp-use-nochk-string-functions): New.
16538 (-fchkp-use-static-bounds): New.
16539 (-fchkp-use-static-const-bounds): New.
16540 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
16541 (-fchkp-check-read): New.
16542 (-fchkp-check-write): New.
16543 (-fchkp-store-bounds): New.
16544 (-fchkp-instrument-calls): New.
16545 (-fchkp-instrument-marked-only): New.
16546 (-fchkp-use-wrappers): New.
16547 (-static-libmpx): New.
16548 (-static-libmpxwrappers): New.
16550 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16552 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
16553 (CHKP_SPEC): Add wrappers library.
16554 * c-family/c.opt (static-libmpxwrappers): New.
16556 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
16558 * config/i386/linux-common.h (LIBMPX_LIBS): New.
16559 (LIBMPX_SPEC): New.
16561 * gcc.c (CHKP_SPEC): New.
16562 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
16563 * c-family/c.opt (static-libmpx): New.
16565 2015-03-10 Richard Biener <rguenther@suse.de>
16567 PR middle-end/44563
16568 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
16570 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
16571 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
16572 (cgraph_add_edge_to_call_site_hash): Likewise.
16573 (cgraph_node::get_edge): Likewise.
16574 (cgraph_edge::set_call_stmt): Likewise.
16575 (cgraph_edge::remove_caller): Likewise.
16577 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
16579 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
16580 (callee_saved_gpr_regs_size): ... this.
16581 (callee_saved_regs_first_regno): Rename to ...
16582 (callee_saved_first_gpr_regno): ... this.
16583 (callee_saved_regs_last_regno) Rename to ...
16584 (callee_saved_last_gpr_regno): ... this.
16585 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
16587 (nds32_initial_elimination_offset): Likewise.
16588 (nds32_expand_prologue): Likewise.
16589 (nds32_expand_epilogue): Likewise.
16590 (nds32_expand_prologue_v3push): Likewise.
16591 (nds32_expand_epilogue_v3pop): Likewise.
16592 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
16593 Adjust renamed variables.
16594 (nds32_output_stack_pop): Likewise.
16596 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
16598 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
16601 2015-03-10 Jakub Jelinek <jakub@redhat.com>
16603 PR rtl-optimization/65321
16604 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
16606 * var-tracking.c (use_narrower_mode): Likewise.
16608 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
16610 PR tree-optimization/65355
16611 * varasm.c (notice_global_symbol): Do not produce RTL.
16612 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
16614 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
16615 check for section anchors.
16617 2015-03-10 Alan Modra <amodra@gmail.com>
16620 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
16621 to be single-arch by default. Set cpu_is_64bit for powerpc64
16622 given --with-cpu=native.
16623 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
16624 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
16626 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
16627 rs6000_isa_flags rather than TARGET_64BIT.
16629 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
16630 Kaz Kojima <kkojima@gcc.gnu.org>
16632 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
16634 2015-03-09 Jakub Jelinek <jakub@redhat.com>
16637 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
16638 on a TREE_BINFO, instead use BINFO_TYPE.
16640 2015-03-09 Richard Biener <rguenther@suse.de>
16642 PR middle-end/65270
16643 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
16644 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
16645 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
16646 of that. When comparing dereferences compare alignment.
16647 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
16649 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16651 * ipa-inline-analysis.c (check_callers): Check
16652 node->can_remove_if_no_direct_calls_and_refs_p.
16653 (growth_likely_positive): Reorganize to call
16654 can_remove_if_no_direct_calls_p later.
16655 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
16656 will_be_removed_from_program_if_no_direct_calls_p): Add
16657 will_inline parameter.
16658 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
16659 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16660 Handle inliner case correctly.
16662 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16664 PR tree-optimization/63743
16665 * cfgexpand.c (reorder_operands): Also reorder if only second operand
16666 had its definition forwarded by TER.
16668 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
16671 * ipa-utils.h (types_odr_comparable): Add strict argument.
16672 * ipa-devirt.c: Fix whitespace;
16673 (odr_hasher): Remove.
16674 (odr_name_hasher, odr_vtable_hasher): New hashers.
16675 (can_be_name_hashed_p): New predicate.
16676 (hash_type_name): remove.
16677 (hash_odr_name): New.
16678 (odr_name_hasher::hash): new.
16679 (can_be_vtable_hashed_p): New.
16680 (hash_odr_vtable): New.
16681 (odr_vtable_hasher::hash): New.
16682 (types_same_for_odr): Add strict parameter.
16683 (types_odr_comparable): Likewise.
16684 (odr_name_hasher::equal): New.
16685 (odr_vtable_hasher::equal): New.
16686 (odr_name_hasher::remove): New.
16687 (odr_hash_type): Change to hash_table<odr_name_hasher>.
16688 (odr_vtable_hash_type): New.
16689 (odr_vtable_hash): New.
16690 (odr_subtypes_equivalent_p): Do strict comparsion.
16691 (add_type_duplicate): Merge type names; cleanup; avoid type
16693 (register_odr_type): Initialize vtable hash.
16694 (build_type_inheritance_graph): Likewise
16695 (get_odr_type): Reorg to use two hashes.
16696 (dump_possible_polymorphic_call_targets): Move sanity check after debug
16698 (ipa_devirt): Dump type_inheritance_graph.
16699 (types_same_for_odr): Add strict mode.
16701 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16704 * cgraph.h (symtab_node): Add definition_alignment,
16705 can_increase_alignment_p and increase_alignment.
16706 * symtab.c (symtab_node::can_increase_alignment_p,
16707 increase_alignment_1, symtab_node::increase_alignment,
16708 symtab_node::definition_alignment): New.
16709 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
16710 can_increase_alignment_p.
16711 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
16712 * tree-vect-stmts.c (ensure_base_align): Likewise.
16713 * varasm.c (function_section_1): Use definition_alignment.
16714 (assemble_start_function): Likewise.
16715 (emit_local): likewise.
16716 (build_constant_desc): Likewsie.
16717 (output_constant_def_contents): Likewise.
16718 (place_block_symbol): Likewise.
16719 (output_object_block): Likewise.
16721 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16724 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
16725 when outputting debug.
16727 2015-03-07 Marek Polacek <polacek@redhat.com>
16728 Martin Uecker <uecker@eecs.berkeley.edu>
16731 * doc/invoke.texi: Update description of -fsanitize=bounds.
16733 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
16735 * tree-ssa-phiopt.c (neg_replacement): Remove.
16736 (tree_ssa_phiopt_worker): Remove negate optimization.
16738 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16741 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
16743 2015-03-06 Richard Biener <rguenther@suse.de>
16745 PR middle-end/64928
16746 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
16747 and liveout_obstack members.
16748 (calculate_live_on_exit): Remove.
16749 (calculate_live_ranges): Change declaration.
16750 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
16751 (new_tree_live_info): Adjust.
16752 (calculate_live_ranges): Delete livein when not wanted.
16753 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
16754 Deal with partly deleted live info.
16755 (loe_visit_block): Remove temporary bitmap by using
16756 bitmap_ior_and_compl_into.
16757 (live_worklist): Adjust accordingly.
16758 (calculate_live_on_exit): Make static.
16759 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
16760 we do not need livein.
16762 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
16764 * real.c (real_from_string): Fix typo in assertion.
16766 2015-03-06 Alex Velenko <alex.velenko@arm.com>
16768 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
16771 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
16773 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
16775 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
16778 * lra-assigns.c (find_hard_regno_for): Rename to
16779 find_hard_regno_for_1. Add a new parameter.
16780 (find_hard_regno_for): New function using find_hard_regno_for_1.
16782 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
16784 PR rtl-optimization/65067
16785 * expmed.c (store_bit_field, extract_bit_field): Reworked the
16786 strict volatile bitfield handling.
16788 2015-03-05 Martin Liska <mliska@suse.cz>
16791 * ipa-icf.c (sem_variable::equals): Compare variables types.
16793 2015-03-05 Richard Henderson <rth@redhat.com>
16796 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
16797 correctly check weak symbol binding.
16799 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
16801 PR middle-end/65315
16802 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
16805 2015-03-05 Martin Liska <mliska@suse.cz>
16807 * ipa-inline.c (inline_small_functions): Set default value to
16808 prevent warning during bootstrap.
16809 * tree.h: Add pragma guard that ignores false positives during
16812 2015-03-05 Richard Biener <rguenther@suse.de>
16814 PR tree-optimization/65310
16815 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16816 Properly preserve alignment of the base of the access.
16818 2015-03-05 Richard Biener <rguenther@suse.de>
16821 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
16822 Compare dependence info.
16824 2015-03-05 Richard Biener <rguenther@suse.de>
16826 PR middle-end/65233
16827 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
16829 (walk_ssa_copies): Revert last chage. Instead do not walk
16830 SSA names registered for SSA update.
16832 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16835 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
16836 vtable references for their containing type.
16837 (sem_function::equals_wpa): Compare TYPE_RESTRICT
16838 and type attributes.
16840 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
16842 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
16843 before negating it.
16844 * stor-layout.c (finalize_record_size): Revert latest change.
16846 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
16848 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
16850 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16852 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
16853 for correct comdat handling.
16854 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
16856 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
16857 (used_from_object_file_p_worker): Remove.
16858 (cgraph_node::only_called_directly_or_alised): Add
16859 used_from_object_file_p.
16860 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
16861 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
16862 can_remove_if_no_direct_calls_and_refs_p.
16864 2015-03-04 Nick Clifton <nickc@redhat.com>
16866 * config/rl78/rl78.h (enum reg_class): Remove real registers from
16867 General register class.
16868 * config/rl78/rl78-real.md: Replace general register constraints
16869 with real+virtual register constraints.
16871 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16873 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
16874 from checking for -mhtm option.
16876 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
16878 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
16879 (struct ipa_sra_check_caller_data): Add has_thunk field.
16880 (ipa_sra_check_caller): Check for thunk.
16881 (ipa_sra_preliminary_function_checks): Give up on function with
16883 (ipa_early_sra): Use call_for_symbol_and_aliases.
16885 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
16888 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
16889 called for __stack_chk_guard symbol.
16891 2015-03-03 DJ Delorie <dj@redhat.com>
16893 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
16895 (*addhi3_real): Likewise.
16896 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
16897 pattern to match incrementing memory.
16898 * config/rl78/predicates.md (rl78_1_2_operand): New.
16899 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
16900 it's the same and only mem.
16901 (rl78_alloc_physical_registers_op2): If there's effectively only
16902 one MEM, transcode it into HL.
16903 (rl78_far_p): Reject addresses that aren't legitimate.
16905 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
16907 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
16910 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
16912 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
16914 Implement call0 ABI for xtensa
16915 * config/xtensa/constraints.md ("a" constraint): Include stack
16916 pointer in case of call0 ABI.
16917 ("q" constraint): Make empty in case of call0 ABI.
16918 ("D" constraint): Include stack pointer in case of call0 ABI.
16919 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
16920 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
16922 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
16924 (xtensa_regno_to_class): Make it a local variable in the
16925 function xtensa_regno_to_class.
16926 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
16927 macro, function prototype and implementation.
16928 (reg_nonleaf_alloc_order): Make it a local variable in the
16929 function order_regs_for_local_alloc.
16930 (xtensa_conditional_register_usage): New function.
16931 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
16932 (xtensa_valid_move): Allow direct moves to stack pointer
16933 register in call0 ABI.
16934 (xtensa_setup_frame_addresses): Only spill register windows in
16936 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
16937 call0 ABI respectively.
16938 (xtensa_function_arg_1): Only mark a7 register for copying in
16940 (xtensa_call_save_reg): New function.
16941 (compute_frame_size): Add space for callee saved register
16942 storage to the frame size in call0 ABI.
16943 (xtensa_expand_prologue): Generate code to set up stack frame
16944 and save callee-saved registers in call0 ABI.
16945 (xtensa_expand_epilogue): New function.
16946 (xtensa_set_return_address): New function.
16947 (xtensa_return_addr): Calculate return address in call0 ABI.
16948 (xtensa_builtin_saveregs): Only mark a7 register for copying and
16949 emit copying code in windowed ABI.
16950 (order_regs_for_local_alloc): Add preferred register allocation
16951 order for non-leaf function in call0 ABI.
16952 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
16953 (xtensa_asm_trampoline_template): Add trampoline generation for
16955 (xtensa_trampoline_init): Add trampoline initialization for
16957 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
16959 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
16960 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
16961 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
16962 ABI call-used registers.
16963 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
16964 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
16966 (REG_CLASS_CONTENTS): Include all registers into the preferred
16967 reload registers set, adjust the set in the
16968 xtensa_conditional_register_usage.
16969 (xtensa_regno_to_class): Drop variable declaration.
16970 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
16972 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
16974 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
16975 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
16976 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
16977 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
16978 location in call0 ABI.
16979 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
16980 stack adjustment size when handling exception.
16981 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
16982 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
16984 ("return" pattern): Generate ret.n/ret in call0 ABI.
16985 ("epilogue" pattern): Expand epilogue.
16986 ("nonlocal_goto" pattern): Use default in call0 ABI.
16987 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
16988 emit eh_set_a0_* depending on ABI.
16989 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
16990 ("eh_set_a0_call0", "blockage"): New patterns.
16992 2015-03-03 Martin Liska <mliska@suse.cz>
16995 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
16997 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17000 * config/rs6000/rs6000-tables.opt: Regenerate table.
17002 2015-03-03 Renlin Li <renlin.li@arm.com>
17004 * doc/md.texi (@item ^): Change ? into ^.
17006 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
17008 * doc/tm.texi: Regenerated.
17010 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
17012 * builtins.c (expand_builtin_return_addr): Add
17013 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
17014 surrounding #ifdef.
17015 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
17017 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
17019 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
17021 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
17024 2015-03-03 Martin Jambor <mjambor@suse.cz>
17025 Eric Botcazou <ebotcazou@adacore.com>
17027 * tree-sra.c (ipa_sra_check_caller_data): New type.
17028 (has_caller_p): Removed.
17029 (ipa_sra_check_caller): New function.
17030 (ipa_sra_preliminary_function_checks): Use it.
17032 2015-03-03 Martin Liska <mliska@suse.cz>
17034 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
17035 instead of if branch.
17037 2015-03-03 Martin Liska <mliska@suse.cz>
17040 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
17042 2015-03-23 Jeff Law <law@redhat.com>
17044 PR tree-optimization/65241
17045 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
17046 hash table if INSERT is true.
17048 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17051 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
17053 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17056 * config/avr/avr.c (context.h, tree-pass.h): Include them.
17057 (avr_pass_data_recompute_notes): New static variable.
17058 (avr_pass_recompute_notes): New class.
17059 (avr_register_passes): New static function.
17060 (avr_option_override): Call it.
17062 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
17064 Fix various problems with specs file generation.
17067 * config.gcc (extra_gcc_objs) [avr]: Remove.
17068 * config/avr/driver-avr.c: Remove file.
17069 * config/avr/t-avr (driver-avr.o): Remove rule.
17070 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
17071 INCLUDES to build. Depend on TM_H.
17072 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
17073 build warnings. Fix non-matching types and non-existing %-codes.
17075 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
17076 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
17077 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
17078 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
17079 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
17080 (LIBGCC_SPEC): Remove definitions.
17082 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
17084 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
17085 to create a register in testing mode.
17087 2015-03-03 Martin Liska <mliska@suse.cz>
17088 Jan Hubicka <hubicka@ucw.cz>
17091 * cgraph.c (cgraph_node::has_thunk_p): New function.
17092 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
17093 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
17094 (sem_function::merge): Assert is changed.
17096 2015-03-03 Martin Liska <mliska@suse.cz>
17097 Martin Jambor <mjambor@suse.cz>
17100 * ipa-icf.c (sem_item_optimizer::execute): Change function
17101 return value to boolean.
17102 (sem_item_optimizer::merge_classes): Likewise.
17103 (ipa_icf_driver): Return TODO_remove_functions in case there's
17104 a merge operation processed.
17105 * ipa-icf.h: Change function return value to boolean.
17107 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17110 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
17111 processor type for 64-bit little endian PowerPC.
17113 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17114 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
17115 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
17116 printing built-in mask so it does not pass NULL pointers.
17118 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
17121 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
17124 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
17125 !ISA_HAS_FP_CONDMOVE.
17127 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
17129 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
17132 2015-03-02 Ulrich Drepper <drepper@gmail.com>
17134 * doc/invoke.texi (Options for Code Generation Conventions):
17135 Fix URL of DSO paper.
17137 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17140 * ipa-inline.c (check_callers): Looks for recursion.
17141 (inline_to_all_callers): Give up on uninlinable or recursive edges.
17142 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
17143 summary of inline clones.
17144 (do_estimate_growth_1): Fix recursion check.
17146 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17149 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
17152 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
17153 Aldy Hernandez <aldyh@redhat.com>
17156 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
17157 when checking TYPE_BINFO.
17159 2015-03-02 Richard Biener <rguenther@suse.de>
17162 * ipa-icf-gimple.c: Include builtins.h.
17163 (func_checker::compare_memory_operand): Compare base alignment.
17165 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17168 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
17169 are never passed by reference.
17171 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
17174 * tree-chkp.c (chkp_check_lower): Don't check against
17175 zero bounds for already instrumented functions.
17176 (chkp_check_upper): Likewise.
17177 (chkp_fini): Clean pass local data to avoid wrong reusage.
17179 2015-02-28 Martin Liska <mliska@suse.cz>
17180 Jan Hubicka <hubicka@ucw.cz>
17182 * ipa-icf.c (sem_variable::equals): Improve debug output;
17183 get variable constructor.
17184 (sem_variable::parse): Do not filter out too early; give up on
17185 volatile and register vars.
17186 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
17188 * ipa-icf.h (sem_variable::init): Do not set ctor.
17189 (sem_variable::ctor): Remove.
17191 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
17193 PR middle-end/65233
17194 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
17196 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17198 * ipa-icf.c: Include stor-layout.h
17199 (sem_function::compare_cgraph_references): Rename to ...
17200 (sem_item::compare_cgraph_references): ... this one.
17201 (sem_variable::equals_wpa): New function
17202 (sem_variable::equals): Do not check stuff already verified by
17204 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
17205 * ipa-icf.h (sem_item): Add compare_cgraph_references.
17206 (sem_function): Remove compare_cgraph_references.
17207 (sem_variable): Turns equals_wpa into non-inline.
17209 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17211 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
17212 (sem_item::add_expr): New function.
17213 (sem_function::hash_stmt): Handle operands of most statements.
17214 (sem_variable::get_hash): Hash the actual constructor.
17215 * ipa-icf.h (sem_item): Add add_expr.
17216 (sem_function): Update prototype of hash_stmt
17218 2015-02-28 Martin Liska <mliska@suse.cz>
17219 Jan Hubicka <hubicka@ucw.cz>
17222 * ipa-icf-gimple.c (func_checker::compare_function_decl):
17224 (func_checker::compare_variable_decl): Skip symtab vars.
17225 (func_checker::compare_cst_or_decl): Update.
17226 * ipa-icf.c (sem_function::parse): Do not consider aliases.
17227 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
17228 use correct symtab predicates.
17229 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
17230 (sem_variable::parse): Update comment.
17231 (sem_item_optimizer::build_graph): Consider ultimate aliases
17234 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17236 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
17239 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17241 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
17242 (sem_variable::merge) Likewise.
17244 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17246 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
17247 target; also match flag_ipa_devirt.
17249 2015-03-01 Martin Liska <mliska@suse.cz>
17250 Jan Hubicka <hubicka@ucw.cz>
17252 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
17253 Validate variable alignment.
17254 * ipa-icf.c (sem_function::equals_private): Be more precise
17255 about non-common function attributes.
17256 (sem_variable::equals): Likewise.
17258 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17261 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
17262 across COMDAT group boundary.
17264 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17267 * ipa-icf.c (clear_decl_rtl): New function.
17268 (sem_function::merge): Clear RTL before forming alias.
17269 (sem_variable::merge): Clear RTL before forming alias.
17271 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
17274 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
17276 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
17278 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
17281 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17283 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
17284 a typo in the description.
17286 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17289 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17290 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
17291 * lra-constraints.c: Include "params.h".
17292 (EBB_PROBABILITY_CUTOFF): Use
17293 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
17294 (lra_inheritance): Use '<' instead of '<=' for
17295 EBB_PROBABILITY_CUTOFF.
17296 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
17299 2015-02-27 Martin Liska <mliska@suse.cz>
17301 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
17302 vector length condition.
17304 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
17306 * doc/extend.texi (x86 transactional memory intrinsics):
17307 Reorganize discussion of _xbegin. Clarify that the return
17308 value is a bit mask. Expand example and move to end of section.
17310 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17311 Aldy Hernandez <aldyh@redhat.com>
17313 PR rtl-optimization/65220
17314 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
17316 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
17319 * lra-remat.c (update_scratch_ops): New.
17320 (do_remat): Call it.
17321 * lra.c (lra_register_new_scratch_op): New. Take code from ...
17322 (remove_scratches): ... here.
17323 * lra-int.h (lra_register_new_scratch_op): New prototype.
17325 2015-02-27 Marek Polacek <polacek@redhat.com>
17328 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
17329 -Wformat-signedness anymore.
17331 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17333 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
17335 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
17337 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17339 * config/s390/s390.c (enum s390_builtin):
17340 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
17341 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
17342 (s390_init_builtins): Generate new builtin functions.
17343 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
17344 (s390_sfpc, s390_efpc): New pattern definitions.
17346 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17348 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
17349 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
17350 (s390_builtin_decls): New array.
17351 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
17352 (s390_builtin_decl): New function.
17353 (TARGET_BUILTIN_DECL): Define macro.
17355 2015-02-27 Richard Biener <rguenther@suse.de>
17357 PR middle-end/63175
17358 * builtins.c (get_object_alignment_2): Make sure to re-apply
17359 the ANDed mask after recursing to its operand gets us a new
17360 misalignment bit position.
17362 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
17363 Martin Liska <mliska@suse.cz>
17366 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
17367 Use address_matters_p.
17368 (redirect_all_callers, set_addressable): New functions.
17369 (sem_function::merge): Reorganize and fix merging issues.
17370 (sem_variable::merge): Likewise.
17371 (sem_variable::compare_sections): Remove.
17372 * common.opt (fmerge-all-constants, fmerge-constants): Remove
17374 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
17376 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
17378 (address_matters_1): New function.
17379 (symtab_node::address_matters_p): New function.
17380 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
17381 check for merged flag.
17382 * cgraph.h (address_matters_p): Declare.
17383 (symtab_node::address_taken_from_non_vtable_p): Remove.
17384 (symtab_node::address_can_be_compared_p): New method.
17385 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
17386 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
17388 (comdat_can_be_unshared_p_1) Use address_matters_p.
17389 (update_vtable_references): Fix formating.
17390 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
17391 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
17392 * cgraphclones.c: Preserve merged and icf_merged flags.
17394 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
17396 * doc/extend.texi (Function Attributes): Fix spelling and typos.
17397 (Label Attributes): Likewise.
17398 (Cilk Plus Builtins): Likewise.
17399 (ARC SIMD Built-in Functions): Likewise.
17400 (ARM C Language Extensions (ACLE)): Likewise.
17401 (PowerPC Built-in Functions): Likewise.
17402 (PowerPC Hardware Transactional Memory Built-in Functions):
17405 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17407 PR tree-optimization/65216
17408 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
17409 new stmt and new SSA_NAME for lhs whenever the arguments have
17410 changed and weren't just swapped. Fix comment typo.
17412 PR tree-optimization/65215
17413 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
17414 for PDP endian targets.
17415 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
17416 Fix up formatting issues.
17417 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
17418 size is smaller than the original, adjust MEM_REF offset by the
17419 difference of sizes. Use is_gimple_mem_ref_addr instead of
17420 is_gimple_min_invariant test to avoid adding address temporaries.
17422 2015-02-26 Martin Liska <mliska@suse.cz>
17423 Jan Hubicka <hubicka@ucw.cz>
17426 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
17427 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
17428 (sem_item_optimizer::process_cong_reduction): Include division by
17429 sensitive references.
17430 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
17431 * ipa-ref.c (ipa_ref::address_matters_p): New function.
17432 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
17434 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
17437 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
17439 * config/avr/avr.c: Same.
17440 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
17441 Refuse any constant address not in 0..0xbf.
17442 * config/avr/avr.md (*mov<mode>, *movsf): Remove
17443 tiny_valid_direct_memory_access_range from insn conditions.
17444 (mov<mode>): Don't special-case expansion of avrtiny addresses.
17446 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
17449 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
17450 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
17451 * config/sh/predicates.md (const_logical_operand): New predicate.
17452 * config/sh/sh.md: Add new peephole2 patterns.
17454 2015-02-26 Marek Polacek <polacek@redhat.com>
17457 * ipa-inline.c (early_inliner): Recompute inline parameters.
17459 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17462 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
17463 instructions with TImode operands are included in the analysis.
17465 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17467 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
17468 of an EDGE_FSM_THREAD.
17470 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
17472 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
17474 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
17477 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
17479 2015-02-26 Sebastian Pop <s.pop@samsung.com>
17481 PR tree-optimization/65048
17482 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
17483 (thread_through_all_blocks): Call valid_jump_thread_path.
17484 Remove invalid FSM jump-thread paths.
17486 2015-02-26 Jakub Jelinek <jakub@redhat.com>
17488 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
17489 (ipa_write_optimization_summaries): Likewise.
17490 * tree-streamer.h: Include data-streamer.h.
17491 (streamer_mode_table): Declare extern variable.
17492 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
17493 * lto-streamer-out.c (lto_output_init_mode_table,
17494 lto_write_mode_table): New functions.
17495 (produce_asm_for_decls): Call lto_write_mode_table when streaming
17497 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
17498 (lto_create_simple_input_block): Add mode_table argument to the
17499 lto_input_block constructors.
17500 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
17502 * data-streamer-in.c (string_for_index): Likewise.
17503 * ipa-inline-analysis.c (inline_read_section): Likewise.
17504 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
17505 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
17506 * lto-streamer-in.c (lto_read_body_or_constructor,
17507 lto_input_toplevel_asms): Likewise.
17508 (lto_input_mode_table): New function.
17509 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
17510 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
17511 Use bp_pack_machine_mode.
17512 * real.h (struct real_format): Add name field.
17513 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
17514 (class lto_input_block): Add mode_table member.
17515 (lto_input_block::lto_input_block): Add mode_table_ argument,
17516 initialize mode_table.
17517 (struct lto_file_decl_data): Add mode_table field.
17518 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
17519 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
17520 unpack_ts_decl_common_value_fields,
17521 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
17522 * tree-streamer.c (streamer_mode_table): New variable.
17523 * real.c (ieee_single_format, mips_single_format,
17524 motorola_single_format, spu_single_format, ieee_double_format,
17525 mips_double_format, motorola_double_format,
17526 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17527 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17528 ibm_extended_format, mips_extended_format, ieee_quad_format,
17529 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17530 decimal_single_format, decimal_double_format, decimal_quad_format,
17531 ieee_half_format, arm_half_format, real_internal_format): Add name
17533 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
17535 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
17538 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
17539 reordering for selective scheduling.
17541 2015-02-26 Terry Guo <terry.guo@arm.com>
17543 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
17544 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
17545 (arm_arch_no_volatile_ce): Declare new global variable.
17546 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
17547 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
17548 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
17549 (TARGET_NO_VOLATILE_CE): New macro.
17550 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
17551 volatile memory access in IT block
17553 2015-02-25 Kai Tietz <ktietz@redhat.com>
17555 PR tree-optimization/61917
17556 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
17557 that reduc_def_stmt is null.
17559 2015-02-25 Martin Liska <mliska@suse.cz>
17561 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
17562 hard register variables.
17564 2015-02-25 Kai Tietz <ktietz@redhat.com>
17567 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
17568 (symtab::noninterposable_alias): Likewise.
17570 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
17573 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
17575 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
17577 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
17580 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
17581 as split condition; force split via '#' in output pattern.
17583 2015-02-25 Richard Biener <rguenther@suse.de>
17584 Kai Tietz <ktietz@redhat.com>
17586 PR tree-optimization/61917
17587 * tree-vect-loop.c (vectorizable_reduction): Allow
17588 vect_internal_def without reduction to exit graceful.
17590 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17593 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
17594 only with NONDEBUG_INSN_P.
17596 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
17598 Use variadic macros with avr-log.c.
17600 * config/avr/avr-protos.h (avr_vdump): New prototype.
17601 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
17602 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
17603 * config/avr/avr-log.c: Adjust comments.
17604 (avr_vdump): New function.
17605 (avr_vadump): Pass caller as 2nd argument instead of format string.
17606 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
17607 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
17609 2015-02-25 Jakub Jelinek <jakub@redhat.com>
17612 * target.def (target_option_stream_in): New target hook.
17613 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
17614 targetm.target_option.post_stream_in if non-NULL.
17615 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
17616 * doc/tm.texi: Updated.
17617 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
17619 (TARGET_OPTION_POST_STREAM_IN): Redefine.
17621 2015-02-24 Jeff Law <law@redhat.com>
17624 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
17625 of operand 0 and operand 2.
17626 (zero_cost_loop_end, loop_end): Similarly.
17628 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
17630 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
17633 2015-02-24 DJ Delorie <dj@redhat.com>
17635 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
17636 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
17637 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
17638 instead of hardcoding SImode.
17640 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
17642 * omp-low.c (create_omp_child_function): Tag entrypoint
17643 functions with a special attribute.
17645 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17648 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
17650 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
17652 PR rtl-optimization/65123
17653 * lra-remat.c (operand_to_remat): Check hard regs in insn
17656 2015-02-24 Nick Clifton <nickc@redhat.com>
17658 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
17661 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
17664 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
17665 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
17666 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
17667 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
17668 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
17669 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
17670 (BUILT_IN_GOACC_PARALLEL): Specify as
17671 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
17672 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
17673 * builtin-types.def
17674 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17675 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17676 Remove function types.
17677 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
17678 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
17679 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
17680 New function types.
17682 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
17684 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
17686 2015-02-24 Jakub Jelinek <jakub@redhat.com>
17688 PR tree-optimization/65170
17689 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
17690 if val[1] < 0, clear also val[2] and return 3.
17692 2015-02-24 Alan Modra <amodra@gmail.com>
17695 * config/rs6000/rs6000.c (get_memref_parts): Only return true
17696 when *base is a reg. Handle nested plus addresses. Simplify
17699 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
17701 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
17702 use natural alignment when optimizing for size.
17704 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
17707 * config/sh/sh.md (movsicc_true+3): Remove peephole.
17708 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
17709 * config/sh/sh.c (replace_n_hard_rtx): Remove.
17711 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
17714 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
17715 too big for a wide_int. Implement missing wrapping operation.
17717 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
17720 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
17721 instead of const_int 4294901760.
17723 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
17725 * config/avr/t-avr: Fix typo in comment.
17727 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
17729 * doc/rtl.texi (fma): Clarify documentation.
17731 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
17734 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
17735 over input_location.
17737 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17739 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
17740 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
17741 restrict alignments to absolute_biggest_alignment.
17742 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
17744 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
17745 * doc/tm.texi: Regenerate.
17746 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
17748 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
17751 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
17753 2015-02-20 Richard Biener <rguenther@suse.de>
17755 PR tree-optimization/65136
17756 * tree-ssa-propagate.c: Include cfgloop.h.
17757 (replace_phi_args_in): Avoid replacing loop latch edge PHI
17758 arguments with constants.
17760 2015-02-20 Jakub Jelinek <jakub@redhat.com>
17761 Martin Liska <mliska@suse.cz>
17764 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
17765 don't try to create_thunk if stdarg_p. If
17766 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
17767 redirect_callers if possible.
17768 (sem_item_optimizer::execute): Call unregister_hooks here...
17769 (ipa_icf_driver): ... instead of here.
17771 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17773 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
17774 Mark operand 0 as earlyclobber in 2nd alternative.
17775 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
17776 Write negated shift amount into QI lowpart operand 0 and use it
17778 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17780 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17782 * cgraph.h (clone_function_name_1): Declare.
17783 * cgraphclones.c (clone_function_name_1): New function.
17784 (clone_function_name): Use it.
17785 * lto-partition.c: Include "stringpool.h".
17786 (must_not_rename, maybe_rewrite_identifier)
17787 (validize_symbol_for_target): New static functions.
17788 (privatize_symbol_name): Use must_not_rename.
17789 (promote_symbol): Call validize_symbol_for_target.
17790 (lto_promote_cross_file_statics): Likewise.
17791 (lto_promote_statics_nonwpa): Likewise.
17793 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
17796 * config/avr/avr.md (pushhi_insn): New insn.
17797 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
17799 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
17800 Jakub Jelinek <jakub@redhat.com>
17802 * tree-streamer.c (preload_common_nodes): Don't preload
17803 TI_VA_LIST* for offloading.
17804 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
17807 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
17809 * config/pa/pa.c (pa_emit_move_sequence): Always force
17810 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
17813 * config/pa/pa.c (pa_reloc_rw_mask): New function.
17814 (TARGET_ASM_RELOC_RW_MASK): Define.
17815 (pa_cannot_force_const_mem): Revert previous change.
17817 2015-02-19 Martin Jambor <mjmabor@suse.cz>
17818 Jan Hubicka <hubicka@ucw.cz>
17821 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
17822 across jump functions.
17824 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
17826 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
17828 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
17830 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
17832 2015-02-19 Richard Henderson <rth@redhat.com>
17834 PR middle-end/65074
17835 * varasm.c (default_binds_local_p_2): Don't test node->definition;
17836 test DECL_EXTERNAL independent of symtab_node.
17838 2015-02-19 Jakub Jelinek <jakub@redhat.com>
17841 * varpool.c (varpool_node::get_constructor): Return early
17842 if this->lto_file_data is NULL.
17844 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17846 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
17847 (rank_for_schedule_debug): Update.
17848 (ready_sort): Make static. Move sorting logic to ...
17849 (ready_sort_debug, ready_sort_real): New static functions.
17850 (schedule_block): Sort both debug insns and real insns in preparation
17851 for ready list trimming. Improve debug output.
17852 * sched-int.h (ready_sort): Remove global declaration.
17854 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
17856 * ipa-icf.c (sem_function::equals_private): Adjust.
17857 (sem_function::bb_dict_test): Take a vec<int> * instead of
17859 * ipa-icf.h (bb_dict_test): Likewise.
17861 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17863 PR gcov-profile/64634
17864 * tree-eh.c (frob_into_branch_around): Fix up typos
17865 in function comment.
17866 (lower_catch): Put eh_seq resulting from EH lowering of
17867 the cleanup sequence after the cleanup rather than before it.
17869 2015-02-18 Tom de Vries <tom@codesourcery.com>
17871 * common.opt (fstdarg-opt): New option.
17872 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
17873 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
17874 (@item -fstdarg-opt): New item.
17876 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
17879 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
17880 for common symbols.
17882 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17884 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
17886 (ALL_HOST_OBJS): Add mkoffload.o.
17887 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
17889 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
17891 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
17892 (compare_virtual_tables): Be smarter about skipping typeinfos;
17893 do sane output on virtual table table mismatch.
17894 (warn_odr): Be ready for forward declarations of enums;
17895 output sane info on base mismatch and virtual table mismatch.
17896 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
17897 when only one type is polymorphic.
17898 (get_odr_type): Fix hashtable corruption.
17899 (dump_odr_type): Dump mangled names.
17901 2015-02-18 Richard Biener <rguenther@suse.de>
17903 PR tree-optimization/65063
17904 * tree-predcom.c (determine_unroll_factor): Return 1 if we
17905 have replaced looparound PHIs.
17907 2015-02-18 Martin Liska <mliska@suse.cz>
17909 * lto-streamer.c (lto_streamer_init): Encapsulate
17910 streamer_check_handled_ts_structures with checking macro.
17912 2015-02-18 Jakub Jelinek <jakub@redhat.com>
17915 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
17916 section if !implicit_section.
17917 (cgraph_node::create_version_clone_with_body): Likewise.
17918 * trans-mem.c (ipa_tm_create_version): Likewise.
17920 2015-02-18 Richard Biener <rguenther@suse.de>
17922 PR tree-optimization/62217
17923 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
17926 2015-02-18 Marek Polacek <polacek@redhat.com>
17929 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
17930 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
17931 is in range [-16K, -1]. Don't issue run-time error if
17932 (ptr > ptr + offset).
17934 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
17936 * doc/install.texi (nvptx-*-none): New section.
17937 * doc/invoke.texi (Nvidia PTX Options): Likewise.
17938 * config/nvptx/nvptx.opt: Update.
17940 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
17941 (access_check): New functions, copied from
17942 config/i386/intelmic-mkoffload.c.
17943 (main): For non-installed testing, look in all COMPILER_PATHs for
17946 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
17948 2015-02-18 Andrew Pinski <apinski@cavium.com>
17949 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17951 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
17952 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
17954 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17956 * ipa-visibility.c (function_and_variable_visibility): Only
17957 check locality if node is not already local.
17958 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17959 call_for_symbol_and_aliases instead of
17960 call_for_symbol_thunks_and_aliases.
17961 (ipa_inline): Likewise.
17962 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17963 first walk aliases.
17964 * ipa.c (symbol_table::remove_unreachable_nodes): Use
17965 call_for_symbol_and_aliases.
17966 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
17967 (ipa_propagate_frequency_1): Use it; use opt_for_fn
17968 (ipa_propagate_frequency): Update.
17969 (ipa_profile): Add opt_for_fn gueards.
17971 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17973 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
17974 * doc/invoke.texi (SH options): Document it.
17975 * config/sh/sh.c (sh_insn_length_adjustment): Check
17976 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
17978 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
17980 * common.opt (fipa-cp-alignment): New.
17981 * ipa-cp.c (ipcp_store_alignment_results): Check
17982 flag_ipa_cp_alignment.
17983 * opts.c (default_options_table): Enable -fipa-cp-alignment for
17985 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
17986 * doc/invoke.texi: Document -fipa-cp-alignment.
17988 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
17991 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
17992 to nil. Adjust comments.
17994 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
17996 * ipa-visibility.c (function_and_variable_visibility): Only
17997 check locality if node is not already local.
17998 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
17999 call_for_symbol_and_aliases instead of
18000 call_for_symbol_thunks_and_aliases.
18001 (ipa_inline): Likewise.
18002 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18003 first walk aliases.
18004 * ipa.c (symbol_table::remove_unreachable_nodes): Use
18005 call_for_symbol_and_aliases.
18006 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
18007 (ipa_propagate_frequency_1): Use it; use opt_for_fn
18008 (ipa_propagate_frequency): Update.
18009 (ipa_profile): Add opt_for_fn guards.
18011 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
18013 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
18014 skipping of "strange" tokens.
18016 2015-02-17 Jeff Law <law@redhat.com>
18018 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
18021 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
18023 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
18024 as forcing a HARD_DEP between instructions, thereby
18025 disallowing rewriting to break dependencies.
18027 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18029 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
18030 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
18031 variables in boundary that have no inlitalizer encoded and are
18033 * varasm.c (default_binds_local_p_2): External definitions do not
18034 count as definitions here.
18036 2015-02-16 Jeff Law <law@redhat.com>
18038 PR tree-optimization/64823
18039 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
18041 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18042 threading through blocks with PHIs, but no statements.
18043 (thread_through_normal_block): Distinguish between blocks where
18044 we did not process all the statements and blocks with no statements.
18046 2015-02-16 Jakub Jelinek <jakub@redhat.com>
18047 James Greenhalgh <james.greenhalgh@arm.com>
18050 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
18051 section if not linkonce. Fix up formatting.
18052 (cgraph_node::create_version_clone_with_body): Copy section.
18053 * trans-mem.c (ipa_tm_create_version): Likewise.
18055 2015-02-16 Richard Biener <rguenther@suse.de>
18057 PR tree-optimization/65077
18058 * tree-ssa-structalias.c (get_constraint_for_1): Handle
18059 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
18060 (find_func_aliases): Allow float values to carry pointers again.
18062 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
18064 * doc/install.texi (Specific): Reorder targets list to put
18065 aarch64 in alphabetical order. Add a link to aarch64*-*-*
18068 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18069 David Edelsohn <dje.gcc@gmail.com>
18072 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
18073 mapping class to external variable or function reference.
18074 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
18077 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
18080 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
18081 ASM_WEAKEN_DECL if defined.
18083 2015-02-16 Richard Biener <rguenther@suse.de>
18086 * varasm.c (default_file_start): For LTO produced units
18087 emit <artificial> as file directive.
18089 2015-02-16 Richard Biener <rguenther@suse.de>
18091 PR tree-optimization/63593
18092 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
18093 stmts and releasing SSA names until...
18094 (execute_pred_commoning): ... after processing all chains.
18096 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
18099 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
18100 external functions.
18102 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
18104 * doc/bugreport.texi: Adjust section titles throughout the file
18105 to use "Title Case".
18106 * doc/extend.texi: Likewise.
18107 * doc/gcov.texi: Likewise.
18108 * doc/implement-c.texi: Likewise.
18109 * doc/implement-cxx.texi: Likewise.
18110 * doc/invoke.texi: Likewise.
18111 * doc/objc.texi: Likewise.
18112 * doc/standards.texi: Likewise.
18113 * doc/trouble.texi: Likewise.
18115 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
18117 * cgraph.h (symtab_node::has_aliases_p): Simplify.
18118 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
18119 * tree.c (lookup_binfo_at_offset): Make static.
18120 (get_binfo_at_offset): Do not shadow offset; add explanatory
18123 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
18125 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
18126 for all floading point loads and stores except those using a register
18128 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
18131 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18133 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
18134 (do_estimate_growth_1): Record if any uninlinable edge was seen.
18135 (estimate_growth): Handle uninlinable edges correctly.
18136 (check_callers): New.
18137 (growth_likely_positive): Handle aliases correctly.
18139 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
18141 * ipa-chkp.c: Use iterate_direct_aliases.
18142 * symtab.c (resolution_used_from_other_file_p): Move inline.
18143 (symtab_node::create_reference): Fix formating.
18144 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18145 (symtab_node::iterate_reference): Move inline.
18146 (symtab_node::iterate_referring): Move inline.
18147 (symtab_node::iterate_direct_aliases): Move inline.
18148 (symtab_node::used_from_object_file_p_worker): Inline into ...
18149 (symtab_node::used_from_object_file_p): ... this one; move inline.
18150 (symtab_node::call_for_symbol_and_aliases): Move inline;
18151 use iterate_direct_aliases.
18152 (symtab_node::call_for_symbol_and_aliases_1): New method.
18153 (cgraph_node::call_for_symbol_and_aliases): Move inline;
18154 use iterate_direct_aliases.
18155 (cgraph_node::call_for_symbol_and_aliases_1): New method.
18156 (varpool_node::call_for_node_and_aliases): Rename to ...
18157 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
18158 use iterate_direct_aliases.
18159 (varpool_node::call_for_symbol_and_aliases_1): New method.
18160 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
18161 (ipa_discover_readonly_nonaddressable_var): Update.
18162 * ipa-devirt.c: Fix formating.
18163 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18165 (cgraph_node::call_for_symbol_and_aliases): Move inline.
18166 (cgraph_node::call_for_symbol_and_aliases_1): New function..
18167 * cgraph.h (used_from_object_file_p_worker): Remove.
18168 (resolution_used_from_other_file_p): Move inline.
18169 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
18170 (symtab_node::iterate_reference): Move inline.
18171 (symtab_node::iterate_referring): Move inline.
18172 (symtab_node::iterate_direct_aliases): Move inline.
18173 (symtab_node::used_from_object_file_p_worker): Inline into ...
18174 (symtab_node::used_from_object_file_p): Move inline.
18175 * tree-emutls.c (ipa_lower_emutls): Update.
18176 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
18177 (varpool_node::call_for_node_and_aliases): Remove.
18179 2015-02-14 Jakub Jelinek <jakub@redhat.com>
18181 PR tree-optimization/62209
18182 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
18183 op == range->exp, insert seq and gimplified code after labels
18184 instead of after the phi.
18186 2015-02-13 Jeff Law <law@redhat.com>
18189 Revert my change for tree-optimization/64823.
18191 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18193 PR tree-optimization/65053
18194 * tree-ssa-phiopt.c (value_replacement): When moving assign before
18195 cond, either reset VR on lhs or set it to phi result VR.
18197 2015-02-13 Jeff Law <law@redhat.com>
18199 PR tree-optimization/64823
18200 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
18201 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
18202 threading through blocks with PHIs, but no statements.
18203 (thread_through_normal_block): Distinguish between blocks where
18204 we did not process all the statements and blocks with no statements.
18206 PR rtl-optimization/47477
18207 * match.pd (convert (plus/minus (convert @0) (convert @1): New
18208 simplifier to narrow arithmetic.
18210 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
18213 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
18214 polymorphic call info when type is not known to be preserved.
18216 2015-02-13 Maritn Jambor <mjambor@suse.cz>
18219 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
18220 (inline_call): Use it.
18222 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
18224 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
18225 GOMP_DEVICE_NVIDIA_PTX.
18227 2015-02-13 Jakub Jelinek <jakub@redhat.com>
18230 * stmt.c (emit_case_nodes): Use void_type_node instead of
18231 NULL_TREE as LABEL_DECL type.
18233 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
18235 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
18237 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
18238 symbolic references to data to be forced to constant memory on the
18241 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
18243 PR tree-optimization/65002
18244 * tree-cfg.c (pass_data_fixup_cfg): Don't update
18246 * tree-sra.c (some_callers_have_no_vuse_p): New.
18247 (ipa_early_sra): Reject functions whose callers
18248 assume function is read only.
18250 2015-02-13 Richard Biener <rguenther@suse.de>
18253 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
18254 for LTO produced CUs.
18256 2015-02-13 Bin Cheng <bin.cheng@arm.com>
18258 PR tree-optimization/64705
18259 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
18260 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
18261 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
18262 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
18263 expand_simple_operations.
18265 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
18266 Richard Henderson <rth@redhat.com>
18269 * cgraphunit.c (cgraph_node::finalize_function): Set definition
18270 before notice_global_symbol.
18271 (varpool_node::finalize_decl): Likewise.
18272 * varasm.c (default_binds_local_p_2): Rename from
18273 default_binds_local_p_1, add weak_dominate argument. Use direct
18274 returns instead of assigning to local variable. Unify varpool and
18275 cgraph paths via symtab_node. Reject undef weak variables before
18276 testing visibility. Reorder tests for simplicity.
18277 (default_binds_local_p): Use default_binds_local_p_2.
18278 (default_binds_local_p_1): Likewise.
18279 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
18281 (default_elf_asm_output_external): Emit visibility when specified.
18283 2015-02-13 Alan Modra <amodra@gmail.com>
18285 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
18286 code setting up r11 for out-of-line fp restore.
18288 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
18290 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
18291 (muser-mode): Likewise.
18293 2015-02-13 Alan Modra <amodra@gmail.com>
18295 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
18296 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
18298 2015-02-12 David Howells <dhowells@redhat.com>
18300 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
18302 * tree-ssa-uninit.c (dump_predicates): Likewise.
18303 * opts.c (print_filtered_help): Likewise.
18305 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18307 * dwarf2out.c (output_die): Use "%s", name instead of name to
18308 avoid -Wformat-security warning.
18310 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
18311 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18312 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
18313 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
18315 2015-02-12 Jason Merrill <jason@redhat.com>
18317 * common.opt (-flifetime-dse): New.
18319 2015-02-12 Jakub Jelinek <jakub@redhat.com>
18322 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
18324 PR tree-optimization/65014
18325 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
18326 use original second operand of arg0 or arg1 instead of
18327 that adjusted by STRIP_NOPS.
18329 2015-02-11 Jeff Law <law@redhat.com>
18332 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
18333 that needs to be queued, just queue it for a single cycle.
18335 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
18337 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
18338 bodies of thunks; comment on why.
18339 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
18340 symbols are extern.
18342 2015-02-11 Richard Henderson <rth@redhat.com>
18345 * tree-eh.c (mark_reachable_handlers): Mark source and destination
18346 regions of __builtin_eh_copy_values.
18348 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18350 PR middle-end/65003
18351 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
18352 ultimate alias is MEM with SYMBOL_REF satisfying
18353 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
18354 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
18356 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
18358 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
18359 "diagnostic-core.h".
18360 (main): Initialize progname, and call diagnostic_initialize.
18362 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
18363 instead of __OPENMP_TARGET__.
18365 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
18366 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
18367 hard-coding PTX_ID.
18369 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
18371 * doc/sourcebuild.texi (pie_enabled): Document.
18373 2015-02-11 Martin Liska <mliska@suse.cz>
18376 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
18377 a return value for call to a function that is noreturn.
18379 2015-02-11 Richard Biener <rguenther@suse.de>
18382 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
18385 2015-02-11 Andrew Pinski <apinski@cavium.com>
18388 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18389 Change the first argument type to size_type_node and add another
18391 (aarch64_simd_expand_builtin): Handle the new argument to
18392 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
18393 print an out when the first two arguments are not
18394 nonzero integer constants.
18395 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
18396 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
18398 2015-02-11 Jakub Jelinek <jakub@redhat.com>
18401 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
18402 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
18403 (ix86_set_current_function): Rewritten.
18404 (ix86_add_new_builtins): Temporarily clear current_target_pragma
18405 when creating builtin fndecls.
18407 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18410 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
18412 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
18413 have no comdat group.
18414 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
18415 (lto_output_varpool_node): Always output alias info.
18416 (output_refs): Output refs of boundary aliases, too.
18417 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
18418 (output_symtab): Output call eges in thunks in boundary.
18419 (get_alias_symbol): Remove.
18420 (input_node, input_varpool_node): Do not special case weakrefs.
18421 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
18422 alias and thunks targets in the boundary; do not take removed symbols
18423 from their comdat groups.
18424 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
18425 (cgraph_node::global_info): Remove.
18426 (cgraph_node::rtl_info): Look through aliases and thunks.
18427 * cgrpah.h (global_info): Remove.
18428 (non_local_p): Remove.
18430 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18431 Sandra Loosemore <sandra@codesourcery.com>
18433 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
18434 to inline asm. List dialects in proper order.
18436 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18437 Sandra Loosemore <sandra@codesourcery.com>
18439 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
18441 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
18443 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
18444 modified) reference to Solaris.
18446 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
18448 * doc/extend.texi (Extended Asm): Fix typos.
18450 2015-02-10 Jakub Jelinek <jakub@redhat.com>
18453 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
18455 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
18458 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
18459 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
18460 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
18461 * config/sh/constraints.md (Ara, Add): New constraints.
18462 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
18464 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
18465 atomic_mem_operand_0. Don't use force_reg on the memory address.
18466 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
18467 Sra constraint. Convert to insn_and_split. Add workaround for
18469 (atomic_compare_and_swap<mode>_hard): Copy to
18470 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
18471 Use atomic_mem_operand_0 predicate.
18472 (atomic_compare_and_swap<mode>_soft_gusa,
18473 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
18474 AraAdd constraints.
18475 (atomic_compare_and_swap<mode>_soft_tcb,
18476 atomic_compare_and_swap<mode>_soft_imask,
18477 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
18478 atomic_mem_operand_0 predicate and SraSdd constraints.
18479 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
18481 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
18482 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
18483 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
18484 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
18485 force_reg on the memory address.
18486 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
18487 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
18488 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
18489 atomic_mem_operand_1 predicate and Sra constraint.
18490 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
18491 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18492 Use atomic_mem_operand_1 predicate.
18493 (atomic_<fetchop_name><mode>_hard): Copy to
18494 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
18495 Use atomic_mem_operand_1 predicate.
18496 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
18497 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18498 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
18499 insn_and_split. Use atomic_mem_operand_1 predicate.
18500 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
18501 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
18502 Use atomic_mem_operand_1 predicate.
18503 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
18504 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
18505 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
18506 in generated insn with original mem operand before emitting the insn.
18507 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
18508 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
18509 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
18510 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
18511 Use atomic_mem_operand_1 predicate and AraAdd constraints.
18512 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
18513 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
18514 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
18515 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
18516 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
18517 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
18518 atomic_not_fetch<mode>_soft_tcb,
18519 atomic_<fetchop_name>_fetch<mode>_soft_imask,
18520 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
18521 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
18522 Use atomic_mem_operand_1 predicate and SraSdd constraints.
18524 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
18526 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
18527 and 3 earlyclobber operands.
18529 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18531 * common.opt (fstack-reuse): Mark as optimization.
18533 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
18536 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
18538 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
18540 PR tree-optimization/64326
18541 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
18543 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
18545 PR gcov-profile/61889
18546 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
18548 2015-02-10 Richard Biener <rguenther@suse.de>
18550 PR tree-optimization/64995
18551 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
18552 value we use is final.
18553 (visit_reference_op_store): Always valueize op.
18554 (visit_use): Properly valueize vuses.
18556 2015-02-10 Richard Biener <rguenther@suse.de>
18558 PR tree-optimization/64909
18559 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
18560 pass a scalar-stmt count estimate to the cost model.
18561 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
18563 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
18565 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
18566 enabled by default together with var-tracking.
18568 2015-02-10 Nick Clifton <nickc@redhat.com>
18570 * config/rl78/rl78.c: Remove DIV attribute code accidentally
18571 included in previous rl78 commit.
18573 2015-02-10 Richard Biener <rguenther@suse.de>
18575 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
18576 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
18577 return the bitpack.
18579 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18581 PR gcov-profile/61889
18582 * config.in: regenerate.
18583 * configure.in: Likewise.
18584 * configure.ac: Check for ftw.h.
18585 * gcov-tool.c: Check for ftw.h before using nftw.
18587 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
18590 * ipa-visibility.c (update_visibility_by_resolution_info): Only
18591 assert when not in lto mode.
18593 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18595 * ira-color.c (setup_left_conflict_sizes_p): Simplify
18596 initialization/assignment of conflict_size.
18598 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
18601 * ipa-cp.c (gather_caller_stats): Skip thunks.
18602 (propagate_constants_topo): Skip aliases.
18604 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
18607 * config/sh/sh.c (sh_option_override): Don't change
18608 -freorder-blocks-and-partition to -freorder-blocks even when
18609 unwinding is enabled.
18610 (sh_can_follow_jump): Return false if the followee jump is
18611 a crossing jump when -freorder-blocks-and-partition is specified.
18612 * config/sh/sh.md (*jump_compact_crossing): New insn.
18614 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
18615 Kaz Kojima <kkojima@gcc.gnu.org>
18618 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
18619 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
18620 (sh_can_redirect_branch): Rename to ...
18621 (sh_can_follow_jump): ... this. Constify argument types.
18622 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
18623 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
18624 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
18625 * doc/tm.texi: Regenerate.
18627 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18630 * builtins.c (expand_builtin): Call targetm.expand_builtin
18631 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
18633 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18636 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
18638 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18641 * ipa-icf.c (set_local): New function.
18642 (sem_function::merge): Use it.
18644 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18646 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
18647 (add_type_duplicate): Fix comparison of BINFOs.
18649 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18651 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
18652 on getting VOID pointer.
18654 2015-02-09 Jakub Jelinek <jakub@redhat.com>
18657 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
18660 2015-02-09 Richard Biener <rguenther@suse.de>
18662 * genmatch.c (replace_id): Copy expr_type.
18664 2015-02-09 Richard Biener <rguenther@suse.de>
18666 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
18667 (streamer_write_tree_bitfields): Declare.
18668 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
18669 properly unpack padding.
18670 (unpack_value_fields): Inline ...
18671 (streamer_read_tree_bitfields): ... here.
18672 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
18673 and properly add padding bits.
18674 (streamer_pack_tree_bitfields): Fold into ...
18675 (streamer_write_tree_bitfields): ... this new function,
18676 exposing the bitpack object.
18677 * lto-streamer-out.c (lto_write_tree_1): Call
18678 streamer_write_tree_bitfields.
18680 2015-02-09 Richard Biener <rguenther@suse.de>
18682 PR tree-optimization/54000
18683 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
18684 (struct ivopts_data): Add loop_loc member.
18685 (tree_ssa_iv_optimize_loop): Dump loop location.
18686 (create_new_ivs): Likewise, also dump number of IVs generated.
18688 2015-02-09 Martin Liska <mliska@suse.cz>
18690 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
18691 just if not yet registered.
18692 (ipa_icf_generate_summary): Register callgraph hooks.
18694 2015-02-08 Andrew Pinski <apinski@cavium.com>
18696 * config/aarch64/aarch64.c (gty_dummy): Delete.
18698 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18701 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
18702 (cgraph_node::local_p): Remove thunk related FIXME.
18704 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18707 * i386.c (ix86_function_regparm): Look through aliases to see if callee
18708 is local and optimized.
18709 (ix86_function_sseregparm): Likewise; also use target's SSE math
18710 settings; error out instead of silently generating wrong code
18712 (init_cumulative_args): Look through aliases.
18714 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18717 * ipa-split.c (execute_split_functions): Split if function has aliases.
18719 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
18722 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
18723 aliases before trying to expand it.
18724 (cgraph_node::expand_thunk): Fix formating.
18726 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
18728 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
18729 (Using Assembly Language with C): Expand introduction.
18730 (Basic Asm): Copy-edit. Add more information about uses of
18732 (Extended Asm): Copy-edit. Document new escape syntax and
18734 (Global Reg Vars): Copy-edit.
18735 (Local Reg Vars): Likewise.
18737 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
18741 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
18742 (DBX_CONTIN_CHAR): Define.
18744 2015-02-06 Sebastian Pop <s.pop@samsung.com>
18745 Brian Rzycki <b.rzycki@samsung.com>
18747 PR tree-optimization/64878
18748 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
18749 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
18750 Stop recursion at loop phi nodes after having visited a loop phi node.
18752 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18754 * toplev.c (process_options): Change flag_ipa_ra before creating
18755 optimization_{default,current}_node.
18758 * cgraphunit.c (cgraph_node::expand_thunk): If
18759 restype is not is_gimple_reg_type nor the thunk_fndecl
18760 returns aggregate_value_p, set restmp to a temporary variable
18761 instead of resdecl.
18763 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
18765 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
18767 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
18770 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
18771 add a general secondary reload handler for SDmode, unless we have
18772 both read/write support for SDmode.
18774 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18776 PR middle-end/64937
18777 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
18778 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
18779 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
18780 1 before, push it to abstract_vec.
18781 (dwarf2out_abstract_function): Adjust caller. Don't call
18782 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
18783 DECL_ABSTRACT_P flags for all abstract_vec elts.
18785 2015-02-06 Renlin Li <renlin.li@arm.com>
18787 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
18789 * tree-ssa.c (execute_update_addresses_taken): Likewise.
18791 2015-02-06 Jeff Law <law@redhat.com>
18794 * config/h8300/h8300.c (push): New argument "in_prologue".
18795 Pass "in_prologue" along to "F".
18796 (h8300_push_pop): Corresponding changes.
18797 (h8300_expand_prologue): Likewise.
18798 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
18800 2015-02-06 Jakub Jelinek <jakub@redhat.com>
18802 PR rtl-optimization/64957
18804 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
18805 IOR rather than for AND.
18807 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
18810 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
18811 of shift-add and (add + shift) operations. Rename local variable.
18813 2015-02-05 Jeff Law <law@redhat.com>
18816 * config/h8300/constraints.md (U): Correctly dectect
18817 "eightbit_data" memory addresses.
18818 * config/h8300/h8300.c (eightbit_constant_address_p): Also
18819 handle (const (plus (symbol_ref (x)))) where x is declared
18820 as an 8-bit data memory address.
18821 * config/h8300/h8300.md (call, call_value): Correctly detect
18822 "funcvec" functions.
18825 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
18826 24 to 28 bits for the H8/300.
18828 2015-02-06 Alan Modra <amodra@gmail.com>
18831 * config/rs6000/rs6000.c (chain_already_loaded): New function.
18832 (rs6000_call_aix): Use it.
18834 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
18836 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
18839 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
18841 * config/h8300/constraints.md ("U" constraint): Use strict
18842 variant of REG_OK_FOR_BASE_P after reload has started.
18844 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
18846 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
18847 define to zero if !TARGET_NEON.
18848 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
18850 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18851 Trevor Saunders <tsaunders@mozilla.com>
18854 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
18856 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18859 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
18860 when removing varpool nodes.
18862 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18865 * varpool.c (varpool_node::remove): Fix order of variables.
18867 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18870 * ipa-inline.c (inline_small_functions): Fix ordering issue between
18871 speculation resolution and key updates.
18873 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18875 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
18876 about not letting any speculative edges unupdated.
18878 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18881 * gcov-io.c (gcov_var): Export.
18883 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18885 PR middle-end/64922
18886 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
18887 edges that become speculative.
18889 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18891 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
18892 or DW_LANG_Fortran08.
18893 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
18895 (gen_compile_unit_die): Handle "GNU Fortran2003" and
18896 "GNU Fortran2008" language strings.
18897 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
18898 * langhooks.h (lang_GNU_Fortran): New prototype.
18899 * langhooks.c (lang_GNU_Fortran): New function.
18900 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
18903 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18905 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
18906 (RTX_OK_FOR_OLO10_P): Likewise.
18908 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
18910 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
18912 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
18914 PR middle-end/64922
18915 * gimple.c: Include gimple-ssa.h.
18916 (maybe_remove_unused_call_args): New function.
18917 * gimple.h (maybe_remove_unused_call_args): Declare.
18918 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
18919 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
18920 * gimple-fold.c (gimple_fold_call): Likewise.
18922 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
18924 PR rtl-optimization/64905
18925 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
18926 pointer alignment if it isn't needed.
18928 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
18930 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
18931 cortex-a72.cortex-a53.
18932 * config/aarch64/aarch64-tune.md: Regenerate.
18933 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
18935 2015-02-04 Nick Clifton <nickc@redhat.com>
18937 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
18940 2015-02-04 Jakub Jelinek <jakub@redhat.com>
18942 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
18943 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
18944 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
18946 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
18947 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
18948 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
18949 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
18950 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
18951 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
18952 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
18953 * tree-core.h (enum built_in_function): In between
18954 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
18955 for builtins that use DEF_BUILTIN_CHKP macro.
18957 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
18960 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
18961 operands for tcc_comparison exprs. Fix typos.
18964 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
18965 of two XORs that have an intervening AND or IOR.
18968 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
18969 simplification of XOR of AND to not allocate new rtx before
18970 committing to a simplification.
18972 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18974 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
18975 manual swaps in all peepholes.
18977 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18979 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
18980 of manual swapping implementation.
18981 (aarch64_expand_vec_perm_const_1): Likewise.
18983 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
18985 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
18986 (generic_addrcost_table): Remove NAMED_PARAM.
18987 (cortexa57_addrcost_table): Likewise.
18988 (xgene1_addrcost_table): Likewise.
18989 (generic_regmove_table): Likewise.
18990 (cortexa53_regmove_table): Likewise.
18991 (xgene1_regmove_table): Likewise.
18992 (generic_vector_table): Likewise.
18993 (cortexa57_vector_table): Likewise.
18994 (xgene1_vector_table): Likewise.
18995 (generic_tunings): Likewise.
18996 (cortexa53_tunings): Likewise.
18997 (cortexa57_tunings): Likewise.
18998 (xgene1_tunings): Likewise.
19000 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
19002 * config/arm/arm-cores.def: Add cortex-a72 and
19003 cortex-a72.cortex-a53.
19004 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
19005 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
19006 * config/arm/arm-tune.md: Regenerate.
19007 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
19008 "cortex-a72.cortex-a53".
19009 * doc/invoke.texi (ARM Options/-mtune): Likewise.
19011 2015-02-04 Nick Clifton <nickc@redhat.com>
19014 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
19016 (nonimmediate_di_operand): Likewise.
19018 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
19019 prefixes of known F5 using MSP430 MCUs.
19021 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19023 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
19024 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
19025 instead of __builtin_sqrt.
19027 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
19029 * varasm.c (do_assemble_alias): Follow transparent alias
19031 (default_assemble_visibility): Follow transparent alias
19032 chain for decl name.
19034 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19036 PR middle-end/62103
19037 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
19038 to compute size of referenced value in the constant case.
19040 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19042 PR rtl-optimization/64756
19043 * cse.c (invalidate_dest): New function.
19044 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
19045 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
19046 invalidate and do not record it.
19048 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
19051 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
19052 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
19053 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
19054 atomic_nand<mode>_soft_tcb): New insns.
19055 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
19056 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
19057 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
19058 Split into atomic_not_fetchsi_hard if operands[0] is unused.
19059 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
19060 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19061 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
19062 atomic_not<mode>_hard if operands[0] is unused.
19063 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
19064 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
19065 if operands[0] is unused.
19066 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
19067 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
19068 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
19069 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19071 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
19072 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19073 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
19074 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
19075 if operands[0] is unused.
19076 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
19077 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
19078 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
19079 atomic_nand_fetchsi_hard if operands[0] is unused.
19080 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
19081 atomic_nand<mode>_hard if operands[0] is unused.
19082 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
19083 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
19084 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
19085 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19086 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
19087 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
19088 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
19089 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
19090 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
19091 atomic_not<mode>_hard if operands[0] is unused.
19092 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
19093 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
19095 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19096 into atomic_not<mode>_soft_tcb if operands[0] is unused.
19097 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
19098 atomic_nand<mode>_hard if operands[0] is unused.
19099 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
19100 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
19102 2015-02-03 David Malcolm <dmalcolm@redhat.com>
19105 * Makefile.in (GCC_OBJS): Add gcc-main.o.
19106 * gcc-main.c: New file, containing "main" taken from gcc.c.
19107 * gcc.c (do_self_spec): Free decoded_options.
19108 (class driver): Move declaration to gcc.h.
19109 (main): Move declaration and implementation to new file
19111 (driver_get_configure_time_options): New function.
19112 * gcc.h (class driver): Move this declaration here, from
19114 (driver_get_configure_time_options): New declaration.
19116 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
19118 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
19119 cross-module inlining.
19120 * cgraph.h (cgraph_node): Add flag merged.
19121 * ipa-icf.c (sem_function::merge): Maintain it.
19123 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
19125 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
19126 instead of OBJECT_P.
19128 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
19131 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
19132 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
19133 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
19134 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
19136 2015-02-03 Jakub Jelinek <jakub@redhat.com>
19139 * combine.c (reg_n_sets_max): New variable.
19140 (can_change_dest_mode, reg_nonzero_bits_for_combine,
19141 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
19142 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
19143 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
19144 (rest_of_handle_combine): Initialize reg_n_sets_max.
19146 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
19148 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
19149 if some always_inline was inlined, apply changes before inlining
19152 2015-02-02 David Malcolm <dmalcolm@redhat.com>
19155 * config/arm/arm.c (arm_option_override): Set
19156 arm_selected_arch/cpu/tune to NULL on entry.
19158 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
19159 Andrew Pinski <pinskia@gcc.gnu.org>
19160 Jakub Jelinek <jakub@gcc.gnu.org>
19163 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
19164 integer typing for small model. Use IN_RANGE.
19166 2015-02-02 Richard Biener <rguenther@suse.de>
19168 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
19169 * tree-vrp.c (vrp_valueize_1): Likewise.
19171 2015-02-02 Alan Modra <amodra@gmail.com>
19173 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
19174 than mem for toc_restore.
19175 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
19176 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
19177 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
19179 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
19182 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
19183 explicit default options.
19185 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
19188 * ipa-utils.c (ipa_merge_profiles): Add release argument.
19189 * ipa-icf.c (sem_function::merge): Do not release body when merging.
19190 * ipa-utils.h (ipa_merge_profiles): Update prototype.
19192 2015-02-01 Jakub Jelinek <jakub@redhat.com>
19195 * cfgexpand.c (deep_ter_debug_map): New variable.
19196 (avoid_deep_ter_for_debug): New function.
19197 (expand_debug_expr): If TERed SSA_NAME is in
19198 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
19199 instead of trying to expand SSA_NAME's def stmt.
19200 (expand_debug_locations): When expanding debug bind
19201 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
19202 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
19204 (pass_expand::execute): Call avoid_deep_ter_for_debug on
19205 all debug bind stmts. Delete deep_ter_debug_map after
19206 expand_debug_location if non-NULL and clear it.
19208 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
19211 * config/sh/sync.md (atomic_fetch_notsi_hard,
19212 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
19213 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
19214 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
19215 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
19216 atomic_not_fetch<mode>_soft_imask): New insns.
19218 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19220 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
19221 (rank_for_schedule_debug): Split from ...
19222 (rank_for_schedule): ... this.
19223 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
19224 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
19226 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19228 * doc/md.texi (Machine Constraints): Alphabetize table by target.
19229 * doc/extend.texi (x86 Variable Attributes): Move section to
19230 correct alphabetization after renaming.
19231 (x86 Type Attributes): Likewise.
19232 (Target Builtins): Re-alphabetize menu.
19233 (x86 Built-in Functions): Move section to correct alphabetization
19235 (x86 transactional memory intrinsics): Likewise.
19236 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
19237 and x86 Windows Options in table and menu.
19238 (x86 Options): Move section to correct alphabetization after
19240 (x86 Windows Options): Likewise.
19242 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
19244 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
19245 preferred names of the architecture and its 32- and 64-bit
19247 * doc/invoke.texi: Likewise.
19248 * doc/md.texi: Likewise.
19250 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19253 * config/i386/predicates.md (address_no_seg_operand): Reject
19254 non-CONST_INT_P operands in invalid mode.
19256 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
19258 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
19259 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
19260 * config/i386/predicates.md (address_no_seg_operand): Call
19261 address_operand with VOIDmode.
19262 (vsib_address_operand): Ditto.
19263 (address_mpx_no_base_operand): Ditto.
19264 (address_mpx_no_index_operand): Ditto.
19266 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19269 * lra-constraints.c (original_subreg_reg_mode): New.
19270 (simplify_operand_subreg): Try to simplify subreg of const. Use
19271 original_subreg_reg_mode for it.
19272 (swap_operands): Update original_subreg_reg_mode.
19273 (curr_insn_transform): Set up original_subreg_reg_mode.
19275 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
19278 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
19280 (process_alt_operands): Use it.
19281 (curr_insn_transform): Check the optional reload pseudo class is
19284 2015-01-30 Joseph Myers <joseph@codesourcery.com>
19286 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
19287 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
19289 * toplev.h (init_asm_output): Update comment on use of
19290 UNKNOWN_LOCATION with fatal_error.
19291 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
19292 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
19293 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
19294 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
19295 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
19296 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
19297 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
19298 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
19299 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
19300 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
19301 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
19302 fatal_error changed to pass input_location as first argument.
19304 2015-01-30 Martin Liska <mliska@suse.cz>
19306 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
19307 in #pragma GCC diagnostic guards.
19309 2015-01-30 Richard Biener <rguenther@suse.de>
19311 PR tree-optimization/64829
19312 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
19313 not add a widening conversion pattern but hand off extra
19314 widenings to callers.
19315 (vect_recog_widen_mult_pattern): Handle extra widening produced
19316 by vect_handle_widen_op_by_const.
19317 (vect_recog_widen_shift_pattern): Likewise.
19318 (vect_pattern_recog_1): Remove excess vertical space in dumping.
19319 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19320 (vect_init_vector_1): Likewise.
19321 (vect_get_vec_def_for_operand): Likewise.
19322 (vect_finish_stmt_generation): Likewise.
19323 (vectorizable_load): Likewise.
19324 (vect_analyze_stmt): Likewise.
19325 (vect_is_simple_use): Likewise.
19327 2015-01-29 Jeff Law <law@redhat.com>
19329 * combine.c (try_combine): Fix typo in comment.
19331 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
19334 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
19335 (rs6000_stack_info): Add assert.
19336 (rs6000_output_savres_externs): New function, split off from...
19337 (rs6000_output_function_prologue): ... here. Do not call it for
19340 2015-01-29 Jeff Law <law@redhat.com>
19343 * combine.c (try_combine): If I0 is a memory load and I3 a store
19344 to a related address, increase the "goodness" of doing a 4-insn
19345 combination with I0-I3.
19346 (make_field_assignment): Handle SUBREGs in the ior+and case.
19348 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19350 PR tree-optimization/64746
19351 * tree-if-conv.c (mask_exists): New function.
19352 (predicate_mem_writes): Save created mask with given size for further
19354 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
19355 (ifcvt_repair_bool_pattern): Collect all statements that are root
19356 of bool pattern and use iterative algorithm to remove multiple uses
19357 of predicates, display number of required iterations.
19359 2015-01-29 Richard Biener <rguenther@suse.de>
19361 PR tree-optimization/64853
19362 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
19363 stmt will get simulated again.
19364 * tree-ssa-ccp.c (valueize_op_1): Likewise.
19366 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19368 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
19369 return_in_pc. Remove redundant assignments.
19370 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
19371 (arm_expand_epilogue): Don't compare boolean with true in if condition.
19373 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
19375 * config/i386/i386.c (ix86_mode_after): Make static.
19377 2015-01-29 Richard Biener <rguenther@suse.de>
19379 PR tree-optimization/64844
19380 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
19381 dump cost model analysis.
19382 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
19383 Do not register adjusted load/store costs here.
19385 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19386 Uros Bizjak <ubizjak@gmail.com>
19388 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
19389 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
19390 using x86_use_pseudo_pic_reg.
19391 * config/i386/i386.c (ix86_conditional_register_usage): Remove
19392 support for fixed PIC register.
19393 (ix86_use_pseudo_pic_reg): Not static any more.
19395 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
19397 PR middle-end/64805
19398 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
19399 to avoid error in cgraph node verification.
19401 2015-01-29 Marek Polacek <polacek@redhat.com>
19403 * doc/standards.texi: Reflect that the default for C is gnu11.
19405 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
19408 * reorg.c (switch_text_sections_between_p): New function.
19409 (relax_delay_slots): Call it when testing if the jump insn
19410 is removable. Use targetm.can_follow_jump when testing if
19411 the conditional branch can follow an unconditional jump.
19413 2015-01-27 Caroline Tice <cmtice@google.com>
19415 Committing VTV Cywin/Ming patch for Patrick Wollgast
19416 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
19417 if -fvtable-verify=preinit/std is used.
19418 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
19419 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
19420 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
19421 if -fvtable-verify=preinit/std is used.
19422 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19423 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
19424 if -fvtable-verify=preinit/std is used.
19425 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
19426 * config/i386/mingw32.h (LIB_SPEC): Likewise.
19427 * varasm.c (assemble_variable): Add code to properly set the comdat
19428 section and name for the .vtable_map_vars section in case the
19429 target is PE or COFF.
19431 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19434 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
19435 make sane BB profile.
19436 (cgraph_node::expand_thunk): Make sane BB profile.
19437 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
19438 * cgraph.h (init_lowered_empty_function): Update prototype.
19439 * config/i386/i386.c (make_resolver_func): Update call.
19440 * predict.c (gate): Disable branch prediction pass if
19441 profile is already there.
19443 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
19445 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
19446 * opth-gen.awk: Likewise.
19447 * common.opt: Mark flag_fp_contract_mode as Optimization.
19449 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
19451 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
19452 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
19454 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
19457 * config/sh/predicates.md (atomic_arith_operand,
19458 atomic_logical_operand): Remove.
19459 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
19460 (atomic_arith_operand_0): New predicate.
19461 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
19462 Use atomic_arith_operand_0 for input values.
19463 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
19464 atomic_compare_and_swap<mode>_soft_gusa,
19465 atomic_compare_and_swap<mode>_soft_tcb,
19466 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
19467 arith_reg_operand instead of register_operand.
19468 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
19469 atomic_arith_operand_0 for newval input.
19470 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
19471 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
19472 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
19473 arith_reg_operand instead of register_operand.
19474 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
19475 fetchop_predicate_1, fetchop_constraint_1_llcs,
19476 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
19477 fetchop_constraint_1_imask): New code iterator attributes.
19478 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
19479 register_operand. Use fetchop_predicate_1.
19480 (atomic_fetch_<fetchop_name>si_hard,
19481 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
19482 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
19483 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
19484 and arith_reg_operand instead of register_operand. Use
19485 fetchop_predicate_1, fetchop_constraint_1_gusa.
19486 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
19487 and arith_reg_operand instead of register_operand. Use
19488 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
19490 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
19491 and arith_reg_operand instead of register_operand. Use
19492 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
19494 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
19495 register_operand. Use atomic_logical_operand_1.
19496 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
19497 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
19498 arith_reg_operand instead of register_operand.
19499 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
19500 Use arith_reg_dest and arith_reg_operand instead of register_operand.
19501 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
19502 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
19503 register_operand. Use fetchop_predicate_1.
19504 (atomic_<fetchop_name>_fetchsi_hard,
19505 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
19506 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19507 fetchop_constraint_1_llcs.
19508 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
19509 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19510 fetchop_constraint_1_gusa.
19511 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
19512 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19513 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
19514 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
19515 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
19516 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
19517 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
19518 register_operand. Use atomic_logical_operand_1.
19519 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
19520 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
19521 arith_reg_operand instead of register_operand.
19522 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
19523 arith_reg_operand instead of register_operand. Use logical_operand
19524 and K08. Adjust asm sequence to allow R0 usage.
19525 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
19526 arith_reg_operand instead of register_operand. Use logical_operand
19529 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19532 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
19533 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
19534 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
19535 only get_full_len HOST_WIDE_INTs from get_val () array rather than
19536 all bits in *val_wide.
19538 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
19540 * varpool.c (tls_model_names): Fix names.
19541 (varpool_node::dump): Dump tls- prefix for tls models.
19543 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
19544 Bernd Schmidt <bernds@codesourcery.com>
19545 Nathan Sidwell <nathan@codesourcery.com>
19547 * config/nvptx/mkoffload.c: New file.
19548 * config/nvptx/t-nvptx: Add build rules for it.
19549 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
19550 (extra_programs): Add mkoffload.
19551 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
19553 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
19555 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
19557 PR middle-end/64809
19558 * cfgexpand.c (reorder_operands): Skip debug gimples.
19560 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
19562 PR tree-optimization/64277
19563 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
19564 range info when possible to refine estimation.
19566 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19568 PR tree-optimization/64718
19569 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
19570 be a 16bit unsigned integer when n->range is 16.
19571 (bswap_replace): Convert src to that type if necessary for all bswap
19572 sizes. Fix rotation right notation in nearby comment. Use bswap_type
19573 set in pass_optimize_bswap::execute ().
19575 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
19577 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
19578 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
19579 integer and floating point variants.
19580 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
19582 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
19584 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
19585 for all vector modes.
19587 2015-01-28 Jakub Jelinek <jakub@redhat.com>
19590 * doc/sourcebuild.texi (comdat_group): Document.
19592 2015-01-28 Terry Guo <terry.guo@arm.com>
19594 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
19596 2015-01-27 David Malcolm <dmalcolm@redhat.com>
19598 * toplev.c (print_version): Add param "show_global_state", and
19599 only print GGC and plugin information if it is true.
19600 (init_asm_output): Pass in "true" for the new param when calling
19602 (process_options): Likewise.
19603 (toplev::main): Likewise.
19604 * toplev.h (print_version): Add new param to decl.
19606 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19610 * tree.c (lookup_binfo_at_offset): New function.
19611 (get_binfo_at_offset): Use it.
19613 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
19616 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
19617 on vtable being vtable.
19619 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
19621 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
19622 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
19623 -mhotpatch= option.
19624 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
19625 -mno-hotpatch options. Change syntax of -mhotpatch= option.
19626 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
19628 (s390_hotpatch_trampoline_halfwords_max): Renamed.
19629 (s390_hotpatch_hw_max): New name.
19630 (s390_hotpatch_trampoline_halfwords): Renamed.
19631 (s390_hotpatch_hw_before_label): New name.
19632 (get_hotpatch_attribute): Removed.
19633 (s390_hotpatch_hw_after_label): New name.
19634 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
19636 (s390_attribute_table): Ditto.
19637 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
19638 (s390_function_num_hotpatch_hw): New name.
19639 Remove special handling of inline functions and hotpatching.
19640 Return number of nops before and after the function label.
19641 (s390_can_inline_p): Removed.
19642 (s390_asm_output_function_label): Emit a configurable number of nops
19643 after the function label.
19644 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
19645 (TARGET_CAN_INLINE_P) Removed.
19646 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
19648 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19649 Jiong Wang <jiong.wang@arm.com>
19651 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
19653 (cb<optab><mode>1): Likewise.
19654 * config/aarch64/iterators.md (bcond): New define_code_attr.
19656 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19658 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
19661 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19663 * config/s390/s390.c (s390_register_move_cost): Increase costs for
19666 2015-01-27 Richard Biener <rguenther@suse.de>
19668 * tree-vrp.c (update_value_range): Intersect the range with
19669 old recorded SSA name range information.
19671 2015-01-27 Nick Clifton <nickc@redhat.com>
19673 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
19674 BC, DE and HL registers directly, not via AX.
19675 When decrementing the stack pointer by a large amount, transfer SP
19676 into AX and perform the subtraction there.
19677 (rl78_expand_epilogue): Perform the inverse of the above
19680 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19682 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
19684 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19685 Yury Gribov <y.gribov@samsung.com>
19688 * ubsan.c (ubsan_source_location): Refactor code.
19689 (ubsan_type_descriptor): Update type size. Refactor code.
19691 2015-01-27 Richard Biener <rguenther@suse.de>
19693 PR tree-optimization/56273
19694 PR tree-optimization/59124
19695 PR tree-optimization/64277
19696 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
19697 from the first VRP pass.
19699 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19702 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
19703 handle the first argument in the same loop as all the other arguments.
19705 PR rtl-optimization/61058
19706 * jump.c (cleanup_barriers): Update basic block boundaries
19707 if BLOCK_FOR_INSN is non-NULL on PREV.
19709 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
19711 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
19712 bounds narrowing, already instrumented calls and calls to
19713 not instrumentable functions.
19715 2015-01-27 Jakub Jelinek <jakub@redhat.com>
19717 PR tree-optimization/64807
19718 * wide-int.cc (wi::divmod_internal): Clear
19719 b_dividend[dividend_blocks_needed].
19721 2015-01-26 DJ Delorie <dj@redhat.com>
19723 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
19724 volatile memory references.
19726 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
19729 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
19731 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
19732 shifts if it already fits into K08.
19734 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19737 * ipa-inline.c (inline_small_functions): Print "unknown" even
19738 if edge->call_stmt is non-NULL, but has builtins or unknown
19741 PR middle-end/64421
19742 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
19743 with asterisk, skip the first character.
19745 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19748 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
19751 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
19754 * config/i386/i386.md (*movdi_internal): Also check operand 0
19755 to determine TYPE_LEA operand.
19756 (*movsi_internal): Ditto.
19758 2015-01-26 Jakub Jelinek <jakub@redhat.com>
19760 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
19761 OPTION_MASK_QUAD_MEMORY_ATOMIC.
19763 2015-01-26 Renlin Li <renlin.li@arm.com>
19765 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
19767 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
19770 2015-01-26 Richard Biener <rguenther@suse.de>
19772 PR middle-end/64764
19773 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
19774 combining two BIT_AND_EXPR predicates.
19776 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
19779 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
19781 2015-01-26 Terry Guo <terry.guo@arm.com>
19783 * config/arm/arm.c (arm_file_start): Update the assignment of
19784 Tag_ABI_HardFP_use.
19786 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
19788 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
19790 config/arm/arm.md: Include the new Cortex-A57 model.
19791 (generic_sched): Don't use generic_sched when tuning for
19794 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
19795 Uros Bizjak <ubizjak@gmail.com>
19797 * config/i386/i386.c (get_builtin_code_for_version): Add
19798 support for BMI and BMI2 multiversion functions.
19800 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19802 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
19803 (extract_bit_field): Likewise.
19804 (extract_low_bits): Likewise.
19805 (expand_mult): Likewise.
19806 (expand_mult_highpart_adjust): Likewise.
19808 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
19810 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
19811 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
19812 * config/i386/i386.c (processor_model): Add
19813 M_INTEL_COREI7_BROADWELL.
19814 (arch_names_table): Add "broadwell".
19816 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
19825 * config/sh/sh-protos.h
19826 (sh_extending_set_of_reg::can_use_as_unextended_reg,
19827 sh_extending_set_of_reg::use_as_unextended_reg,
19828 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
19829 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
19830 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
19831 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
19832 (sh_treg_insns): New class.
19833 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
19834 (scope_counter): New class.
19835 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
19836 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
19837 sh_extending_set_of_reg::can_use_as_unextended_reg,
19838 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
19839 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
19840 sh_split_treg_set_expr): New functions.
19841 (addsubcosts): Handle treg_set_expr.
19842 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
19843 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
19844 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
19845 (sh_insn_operands_modified_between_p): Make non-static.
19846 * config/sh/predicates.md (zero_extend_movu_operand): Allow
19847 simple_mem_operand in addition to displacement_mem_operand.
19848 (zero_extend_operand): Don't allow zero_extend_movu_operand.
19849 (treg_set_expr, treg_set_expr_not_const01,
19850 arith_reg_or_treg_set_expr): New predicates.
19851 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
19852 arith_or_int_operand instead of logical_operand. Convert to
19853 insn_and_split. Try to optimize constant operand in splitter.
19854 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
19855 (*tstqi_t_zero): Delete.
19856 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
19857 (tstsi_t_and_not): Delete.
19858 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
19859 Convert to insn_and_split.
19860 (unnamed split, tstsi_t_zero_extract_xor,
19861 tstsi_t_zero_extract_subreg_xor_little,
19862 tstsi_t_zero_extract_subreg_xor_big): Delete.
19863 (*tstsi_t_shift_mask): New insn_and_split.
19864 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
19865 to recombine with surrounding insns when splitting.
19866 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
19867 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
19868 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
19869 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
19870 (*cbranch_div0s: Delete.
19871 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19872 Try to recombine with surrounding insns when splitting. Add operand
19874 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
19875 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
19876 *addc_r_r_msb, *addc_2r_msb): Delete.
19877 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
19879 (*addc_negreg_t): New insn_and_split.
19880 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
19881 Try to recombine with surrounding insns when splitting.
19882 Add operand order variants.
19883 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
19884 insn_and_split patterns.
19885 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
19886 surrounding insns when splitting.
19887 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
19888 (*rotcl): Likewise. Add zero_extract variant.
19889 (*ashrsi2_31): New insn_and_split.
19890 (*negc): Convert to insn_and_split. Use treg_set_expr.
19891 (*zero_extend<mode>si2_disp_mem): Update comment.
19892 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
19894 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
19895 with surrounding insns when splitting.
19896 (any_treg_expr_to_reg): New insn_and_split.
19897 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
19898 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
19899 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
19900 *zero_extract_2): New single bit zero extract patterns.
19901 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
19902 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
19903 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
19904 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
19906 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
19907 register_operand for set source.
19909 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
19911 * i386.opt (prefetch_sse): New targetsave.
19912 * i386.c (ix86_function_specific_save): Save prefetch_sse.
19913 (ix86_function_specific_restore): Restore prefetch_sse and initialize
19914 ix86_cost/ix86_tune_cost.
19916 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19918 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19919 Support the JIT by using 0 as the language type.
19921 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
19924 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
19925 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
19926 (mark_regno_live, process_bb_lives): Pass new parameter value to
19927 make_hard_regno_born.
19929 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19931 PR rtl-optimization/63637
19932 PR rtl-optimization/60663
19933 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
19934 if elt->cost is MAX_COST for ASM_OPERANDS.
19935 (find_sets_in_insn): Fix up comment typo.
19936 (cse_insn): Don't set src_volatile for all non-volatile
19937 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
19938 or with "memory" clobber. Set elt->cost to MAX_COST
19939 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
19940 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
19942 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19944 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
19947 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
19949 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
19950 libgcc/config/i386/elf-lib.h.
19952 2015-01-23 Jakub Jelinek <jakub@redhat.com>
19955 * gcc.c (print_configuration): Don't print a blank line at the end
19957 (run_attempt): ... but here unstead.
19959 PR middle-end/64734
19960 * omp-low.c (scan_sharing_clauses): Don't ignore
19961 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
19962 on target data/update constructs.
19964 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19967 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
19968 (DEBUG_RELOAD): Removed define.
19969 (m32c_limit_reload_class): Enable traces with if DEBUG0.
19970 (m32c_function_arg): Added a type cast.
19971 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
19972 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
19973 * config/m32c/bitops.md (andqi3_16): Likewise.
19974 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
19975 (push_a01_l): Likewise.
19977 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19980 * main.c (main): Construct toplev instances with init_signals=true.
19981 * toplev.c (general_init): Add param "init_signals", and use it to
19982 conditionalize the calls to signal and host_hooks.extra_signals.
19983 (toplev::toplev): Add param "init_signals".
19984 (toplev::main): When invoking general_init, pass m_init_signals
19985 to control whether signal-handlers are installed.
19986 * toplev.h (toplev::toplev): Add param "init_signals".
19987 (toplev::m_init_signals): New field.
19989 2015-01-23 David Malcolm <dmalcolm@redhat.com>
19992 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
19993 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
19994 latter may be affected by the former (e.g. on i686).
19996 2015-01-23 Martin Liska <mliska@suse.cz>
19998 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
19999 false positive during profiledbootstrap.
20001 2015-01-23 Tom de Vries <tom@codesourcery.com>
20004 * lto-opts.c (lto_write_options): Output non-explicit conservative
20006 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
20007 (append_compiler_options): Pass -fopenacc through.
20009 2015-01-23 Tom de Vries <tom@codesourcery.com>
20012 * lto-opts.c (lto_write_options): Output non-explicit conservative
20014 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
20015 (append_compiler_options): Pass -fopenmp through.
20017 2015-01-23 Jakub Jelinek <jakub@redhat.com>
20020 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
20023 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
20024 * diagnostic.def (DK_ICE_NOBT): New kind.
20025 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
20026 like DK_ICE, but never print backtrace.
20027 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
20028 (internal_error_no_backtrace): New function.
20029 * gcc.c (execute): Use internal_error_no_backtrace instead of
20032 2015-01-22 Jeff Law <law@redhat.com>
20035 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
20036 improve code density for small immediate to memory case.
20037 (insv): Better handle bitfield assignments when the field is
20038 being set to all ones.
20039 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
20042 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20043 Jakub Jelinek <jakub@redhat.com>
20045 PR middle-end/64729
20046 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
20047 for !TARGET_LIBC_PROVIDES_SSP version and
20048 -fstack-protector-{all,strong,explicit} otherwise.
20049 * config/freebsd.h (LINK_SSP_SPEC): Handle
20050 -fstack-protector-{strong,explicit}.
20052 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
20053 H.J. Lu <hongjiu.lu@intel.com>
20056 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
20059 2015-01-22 Wei Mi <wmi@google.com>
20061 PR rtl-optimization/64557
20062 * dse.c (record_store): Call get_addr for mem_addr.
20063 (check_mem_read_rtx): Likewise.
20065 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
20067 * fold-const.c (const_binop): Add early return for non-tcc_binary.
20069 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
20071 * toplev.c (init_local_tick): Process the failure when read
20072 fails for random_seed.
20074 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
20075 'pretty_name' to avoid memory overflow.
20077 2015-01-22 Richard Biener <rguenther@suse.de>
20079 PR middle-end/64728
20080 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
20081 abnormal coalescing on undefined SSA names.
20083 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
20087 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
20089 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
20091 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
20093 PR middle-end/63325
20094 * fold-const.c (fold_checksum_tree): Don't include value of
20095 expr->decl_with_vis.symtab_node in the checksum.
20097 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20099 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
20101 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
20104 * gcc.c (insert_comments): New function.
20105 (try_generate_repro): Call it.
20106 (append_text): Removed.
20108 2015-01-22 Richard Biener <rguenther@suse.de>
20110 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
20111 with IL incompatible options. Properly honor user optimize
20114 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
20116 PR rtl-optimization/64682
20117 * combine.c (distribute_notes): When moving a death note for
20118 a register that is set in the new I2, make sure to put it
20119 before that new I2.
20121 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
20123 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
20124 not TARGET_DEFAULT.
20126 2015-01-21 Jakub Jelinek <jakub@redhat.com>
20129 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
20130 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
20131 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
20134 * doc/invoke.texi (-fsanitize=vptr): Document.
20136 PR rtl-optimization/62078
20137 * dse.c: Include cfgcleanup.h.
20138 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
20139 anything call purge_all_dead_edges and cleanup_cfg at the end
20142 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
20144 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
20147 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
20149 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
20152 2015-01-21 David Sherwood <david.sherwood@arm.com>
20153 Tejas Belagod <Tejas.Belagod@arm.com>
20155 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
20156 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
20157 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
20160 2015-01-21 David Sherwood <david.sherwood@arm.com>
20161 Tejas Belagod <Tejas.Belagod@arm.com>
20163 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
20164 (aarch64_reverse_mask): New decls.
20165 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
20166 (insn_count): New mode_attr.
20167 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
20168 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
20169 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
20170 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
20171 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
20172 (aarch64_simd_st4): New patterns.
20173 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
20174 (aarch64_reverse_mask): New functions.
20176 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
20178 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
20180 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
20181 addressing modes for BE.
20182 (aarch64_print_operand): Add 'R' specifier.
20183 (aarch64_simd_disambiguate_copy): Delete.
20184 (aarch64_simd_emit_reg_reg_move): New function.
20185 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
20186 in define_splits for structural moves.
20187 (mov<mode>): Use less restrictive predicates.
20188 (*aarch64_mov<mode>): Simplify and only allow for LE.
20189 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
20191 2015-01-21 Alan Hayward <alan.hayward@arm.com>
20193 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
20195 2015-01-21 Richard Henderson <rth@redhat.com>
20198 * ccmp.c (used_in_cond_stmt_p): Remove.
20199 (expand_ccmp_expr): Don't use it.
20201 2015-01-21 Nick Clifton <nickc@redhat.com>
20203 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
20206 2015-01-21 Richard Biener <rguenther@suse.de>
20208 PR middle-end/64313
20209 * tree-core.h (builtin_info, builtin_info_type): Turn from
20210 an object with two arrays into an array of an object with
20211 decl and two flags, implicit_p and declared_p.
20212 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
20213 set_builtin_decl, set_builtin_decl_implicit_p,
20214 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
20215 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
20216 * builtins.c (builtin_info): Adjust.
20217 * gimplify.c (gimplify_addr_expr): References to builtins
20218 that have been declared by the user makes them eligible for
20219 use by the compiler. Call set_builtin_decl_implicit_p on them.
20221 2015-01-20 Jeff Law <law@redhat.com>
20224 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
20225 allow pc-relative addresses in operand predicates or constraints.
20227 2015-01-21 Bin Cheng <bin.cheng@arm.com>
20229 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
20230 neon on aarch32 processors for stringops.
20232 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20235 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
20237 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20240 * ipa-inline.c: Include lto-streamer.h
20241 (report_inline_failed_reason): Output source file differences and
20242 flags on optimization/target node mismatch.
20243 (can_inline_edge_p): Consider caller to be the outer inline function;
20244 be less restrictive about matching opimize and optimize_size attributes.
20245 (inline_account_function_p): Break out from ...
20246 (inline_small_functions): ... here.
20247 * ipa-inline-transform.c (clone_inlined_nodes): Use
20248 inline_account_function_p.
20249 (inline_call): Use optimize attribution; use inline_account_function_p.
20250 (inline_transform): Use opt_for_fn.
20251 * ipa-inline.h (inline_account_function_p): Declare.
20253 2015-01-20 Jakub Jelinek <jakub@redhat.com>
20256 * dwarf2out.c (decl_piece_node): Don't put bitsize into
20257 mode if bitsize <= 0.
20258 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
20259 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
20260 sizes and positions.
20262 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
20264 * config/nios2/nios2.c (nios2_asm_file_end): Implement
20265 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
20267 (TARGET_ASM_FILE_END): Define.
20269 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20271 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
20272 (struct tune_params): Use the enum.
20273 * arm.c (arm_*_tune): Update.
20274 (arm_option_override): Update.
20276 2015-01-20 Richard Biener <rguenther@suse.de>
20279 * ipa-reference.c (add_static_var): Inline ...
20280 (analyze_function): ... here after splitting out from ...
20281 (is_proper_for_analysis): ... this.
20283 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
20286 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
20287 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
20288 replace the conditional with it's true branch.
20289 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
20290 (arm_lra_p): Remove.
20292 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
20294 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
20296 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20298 * config/tilegx/mul-tables.c: Move symtab.h include after
20299 coretypes.h include.
20300 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
20301 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
20302 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
20303 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
20304 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
20306 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
20310 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20312 PR rtl-optimization/64081
20313 * loop-iv.c (def_pred_latch_p): New function.
20314 (latch_dominating_def): Allow specific cases with non-single
20316 (iv_get_reaching_def): Likewise.
20317 (check_complex_exit_p): New function.
20318 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20319 with exits not executing on any iteration.
20321 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20324 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
20325 to set branch cost.
20327 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20330 * i386.c (gate): Check flag_expensive_optimizations and
20332 (ix86_option_override_internal): Drop optimize_size condition
20333 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
20334 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
20335 MASK_PREFER_AVX128.
20336 (ix86_avx256_split_vector_move_misalign,
20337 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
20338 * sse.md (all uses of TARGET_PREFER_AVX128): Add
20339 optimize_insn_for_speed_p check.
20341 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
20343 * config/mips/mips.h (FP_ASM_SPEC): New define.
20344 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
20347 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
20350 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
20351 nullptr for insn when reaching the first insn.
20352 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
20353 (sh_insn_operands_modified_between_p): Add nullptr check.
20354 (sh_find_extending_set_of_reg): Fix log message. Don't accept
20355 sign extending mem load if the insn contains any UNSPEC or
20358 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20360 * params.def (inline-unit-growth): Drop to 15%.
20361 * invoke.texi (inline-unit-growth): Document change.
20363 2015-01-19 Martin Liska <mliska@suse.cz>
20366 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
20367 function for second argument of OBJ_TYPE_REF.
20369 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20372 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
20373 whether function is an alias.
20375 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
20377 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
20380 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
20382 PR rtl-optimization/64671
20383 * lra-remat.c (operand_to_remat): Don't consider jump and call
20386 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
20389 * config/rs6000/default64.h: Include rs6000-cpus.def.
20390 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
20391 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
20392 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
20394 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
20396 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
20397 pseudo-op to specify assembler dialect.
20399 2015-01-19 Martin Liska <mliska@suse.cz>
20402 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
20403 Handle safe potentially removed nodes during filtering.
20405 2015-01-19 Martin Liska <mliska@suse.cz>
20407 * doc/extend.texi (no_icf): Add new attribute description.
20408 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
20409 where the pass attempts to merge a function with no_icf attribute.
20411 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20414 * doc/md.texi (ARM Options): Document register constraints.
20416 2015-01-19 Jiong Wang <jiong.wang@arm.com>
20417 Andrew Pinski <apinski@cavium.com>
20420 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
20421 (ashl<mode>3): Don't expand if operands[2] is not constant.
20423 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20426 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
20427 Match xor-and-xor RTL pattern.
20429 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
20431 PR rtl-optimization/64081
20432 * loop-iv.c (def_pred_latch_p): New function.
20433 (latch_dominating_def): Allow specific cases with non-single
20435 (iv_get_reaching_def): Likewise.
20436 (check_complex_exit_p): New function.
20437 (check_simple_exit): Use check_complex_exit_p to allow certain cases
20438 with exits not executing on any iteration.
20440 2015-01-19 Jakub Jelinek <jakub@redhat.com>
20442 * common.opt (fgraphite): Fix a typo.
20444 2015-01-19 Felix Yang <felix.yang@huawei.com>
20446 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
20448 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
20449 uminp, smax_nanp, smin_nanp): New builtins.
20450 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
20451 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
20452 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
20453 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
20454 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
20455 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
20456 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
20457 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
20458 vpminnms_f32): Rewrite using builtin functions.
20460 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
20463 * omp-low.c (offload_symbol_decl): Remove variable.
20464 (get_offload_symbol_decl): Remove function.
20465 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
20466 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
20467 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
20468 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
20469 BUILT_IN_GOACC_UPDATE don't pass it at all.
20471 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20473 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
20476 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
20478 * ipa-chkp.c (chkp_produce_thunks): Add early param
20479 to split thunks production into two passes. Keep
20480 'always_inline' function bodies after the first pass.
20481 (pass_data_ipa_chkp_early_produce_thunks): New.
20482 (pass_ipa_chkp_early_produce_thunks): New.
20483 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
20484 chkp_produce_thunks signature.
20485 (make_pass_ipa_chkp_early_produce_thunks): New.
20486 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
20487 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
20488 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
20490 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20492 * cgraph.c (cgraph_node::dump): Dump profile flags.
20494 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
20497 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
20498 reg appear first in the parallel.
20500 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20502 * ipa-reference.c (set_reference_optimization_summary,
20503 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
20505 (ignore_module_statics): New static var.
20506 (propagate_bits): If ipa-reference is disabled, do not look into local
20508 (analyze_function): Disable analysis when ipa_reference is disabled.
20509 (generate_summary): Do not dump when reference is disabled;
20510 collect vars accessed from functions with ipa-reference disabled.
20511 (get_read_write_all_from_node): When ipa-reference is disabled, use the
20513 (gate): Enable for LTO.
20514 (ignore_edge_p): New function.
20515 (propagate): Skip functions w/o ipa-reference analysis.
20516 * optc-save-gen.awk: Handle optimize_debug correctly.
20517 * opth-gen.awk: Likewise.
20518 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
20519 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
20520 fira-share-save-slots, fira-share-spill-slots,
20521 fmodulo-sched-allow-regmoves, fpartial-inlining,
20522 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
20523 ftracer, ftree-parallelize-loops, fassociative-math,
20524 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
20526 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
20527 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
20529 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
20532 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
20535 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
20537 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
20539 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
20541 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
20542 Remove duplicate option listings.
20544 2015-01-18 Felix Yang <felix.yang@huawei.com>
20546 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
20547 (autofdo_source_profile::get_callsite_total_count,
20548 function_instance::get_function_instance_by_decl,
20549 string_table::get_index, string_table::get_index_by_decl,
20550 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
20551 Fix comment typos. Reformatting and minor code rearrangement.
20553 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20555 * config/rs6000/rs6000.md (probe_stack): Delete.
20556 (probe_stack_address): New.
20558 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20560 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
20561 to test for 32-bit ABIs, not !TARGET_POWERPC64.
20563 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
20565 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
20566 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
20567 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
20569 (rs6000_libcall_value): Use the new function.
20571 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
20573 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
20575 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
20577 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
20578 implement a more precise life analysis for it during backward scan.
20580 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
20582 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
20584 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
20586 PR rtl-optimization/52773
20587 * calls.c (emit_library_call_value): When pushing arguments use
20588 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
20589 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
20590 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
20592 2015-01-17 Jeff Law <law@redhat.com>
20594 PR rtl-optimization/32790
20595 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
20596 not ZERO_EXTEND in SET_DESTs.
20598 2015-01-17 Alan Modra <amodra@gmail.com>
20600 * cprop.c (do_local_cprop): Revert last change.
20602 2015-01-16 DJ Delorie <dj@redhat.com>
20603 Nick Clifton <nickc@redhat.com>
20605 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
20606 (addhi3_real): Likewise. Fix [HL+0] syntax.
20607 (subqi3_real): Likewise.
20608 (subhi3_real): Likewise.
20609 (cbranchqi4_real): Likewise. Allow saddr,#imm.
20610 (cbranchhi4_real): Likewise.
20611 (cbranchhi4_real_inverted): Likewise.
20612 (cbranchsi4_real_lt): Likewise.
20613 (cbranchsi4_real_ge): Likewise.
20614 (cbranchsi4_real_ge): Likewise.
20615 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
20616 (sub<mode>3_virt): Likewise.
20617 (cbranchqi4_virt): Likewise.
20618 (cbranchhi4_virt): Likewise.
20619 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
20620 always use '[reg+imm]' even when imm is zero.
20621 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
20622 (rl78_general_operand): New.
20623 (rl78_nonimmediate_operand): New.
20624 (rl78_nonfar_operand): Use them.
20625 (rl78_nonfar_nonimm_operand): Likewise.
20626 (rl78_stack_based_mem): Fix.
20627 * config/rl78/constraints.md (Ibqi): New.
20632 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
20633 (iorqi3): Likewise.
20634 (xorqi3): Likewise.
20635 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
20637 * config/rl78/constrains (Qs8): New constraint.
20638 * config/rl78/rl78.c (rl78_flags_already_set): New function.
20639 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
20640 * config/rl78/rl78-real.md (update_Z): New attribute.
20641 Update patterns to set it.
20642 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
20643 shorter compare and branch sequence can be used.
20644 (cbranchhi4_real): Likewise.
20645 (cbranchhi4_real_inverted): Likewise.
20647 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
20648 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
20650 * config/rl78/rl78.c (rl78_get_name_encoding): New.
20651 (rl78_option_override): Allow -mes0 only if C.
20652 (characterize_address): Support subregs of symbol_refs.
20653 (rl78_addr_space_address_mode): Move. Add __near.
20654 (rl78_far_p): Likewise.
20655 (rl78_addr_space_pointer_mode): Likewise.
20656 (rl78_as_legitimate_address): Likewise.
20657 (rl78_addr_space_subset_p): Likewise.
20658 (rl78_addr_space_convert): Likewise.
20659 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
20660 symbols with -mes0.
20661 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
20663 (rl78_alloc_physical_registers_op1): Change logic to prefer
20664 symbol[BC] addressing.
20665 (frodata_section): New.
20666 (rl78_asm_init_sections): Initialize it.
20667 (rl78_select_section): Put __far readonly symbols in .frodata.
20668 (rl78_make_type_far): New.
20669 (rl78_insert_attributes): Force all readonly symbols to be
20671 (rl78_asm_out_integer): New.
20672 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
20673 * config/rl78/rl78.opt (-mes0): New.
20675 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
20676 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
20677 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
20678 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
20679 (rl78_saddr_p): New.
20680 (rl78_output_aligned_common): New.
20681 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
20682 (rl78_handle_saddr_attribute): New.
20683 (rl78_handle_naked_attribute): New.
20684 (rl78_attribute_table): Add saddr.
20685 (rl78_print_operand_1): Don't print '!' on saddr operands.
20686 (rl78_print_operand_1): Strip encodings.
20688 (rl78_strip_name_encoding): New.
20689 (rl78_attrlist_to_encoding): New.
20690 (rl78_encode_section_info): New.
20691 (rl78_asm_init_sections): New.
20692 (rl78_select_section): New.
20693 (rl78_output_labelref): New.
20694 (rl78_output_aligned_common): New.
20695 (rl78_asm_out_integer): New.
20696 (rl78_asm_ctor_dtor): New.
20697 (rl78_asm_constructor): New.
20698 (rl78_asm_destructor): New.
20700 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
20701 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
20702 (transcode_memory_rtx): Update.
20703 (rl78_expand_epilogue): Use A_REG instead of 0.
20705 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20707 * config/arm/arm-protos.h (struct tune_params): New field
20708 sched_autopref_queue_depth.
20709 * config/arm/arm.c (sched-int.h): Include header.
20710 (arm_first_cycle_multipass_dfa_lookahead_guard,)
20711 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
20712 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
20713 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
20714 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
20715 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
20716 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
20717 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
20718 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
20719 * config/arm/t-arm (arm.o): Update.
20720 * haifa-sched.c (update_insn_after_change): Update.
20721 (rank_for_schedule): Use auto-prefetcher model, if requested.
20722 (autopref_multipass_init): New static function.
20723 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
20724 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
20725 variable for debug dumps.
20726 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
20727 (autopref_multipass_dfa_lookahead_guard): New global function that
20728 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
20729 (init_h_i_d): Update.
20730 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
20731 * sched-int.h (enum autopref_multipass_data_status): New const enum.
20732 (autopref_multipass_data_): Structure for auto-prefetcher data.
20733 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
20734 (struct _haifa_insn_data:autopref_multipass_data): New field.
20735 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
20736 (autopref_multipass_dfa_lookahead_guard): Declare.
20738 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20740 * rtlanal.c (get_base_term): Handle SCRATCH.
20742 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20744 * config/aarch64/aarch64.c
20745 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
20746 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20748 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
20749 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
20751 2015-01-17 Alan Modra <amodra@gmail.com>
20753 * cprop.c (do_local_cprop): Disallow replacement of fixed
20756 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20759 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
20762 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
20764 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
20765 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
20767 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20769 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
20770 * config/arm/thumb1.md: ... Here.
20772 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20774 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
20775 TImode for TARGET_32BIT.
20777 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20779 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
20780 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
20782 (rs6000_abi_word_mode): New function.
20784 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20786 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
20787 instead of UNITS_PER_WORD to describe the size of stack slots.
20789 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20791 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
20792 as rs6000_promote_function_mode. Move comment to there.
20793 (rs6000_promote_function_mode): New function.
20795 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
20797 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
20798 -mpowerpc64 is active.
20800 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20802 PR middle-end/64353
20803 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
20806 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20808 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
20809 introduced in revision 219724.
20811 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20812 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20815 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
20816 destination is not a GP reg.
20817 (*movdi_aarch64): Likewise.
20819 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
20822 * config/rs6000/default64.h: Revert ISA change.
20824 2015-01-16 Richard Biener <rguenther@suse.de>
20826 PR middle-end/64614
20827 * tree-ssa-uninit.c: Include tree-cfg.h.
20828 (MAX_SWITCH_CASES): New define.
20829 (convert_control_dep_chain_into_preds): Handle switch statements.
20830 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
20831 (normalize_one_pred_1): Do not split bit-manipulations.
20834 2015-01-16 Richard Biener <rguenther@suse.de>
20836 PR tree-optimization/64568
20837 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
20838 complex load rewriting for TARGET_MEM_REFs.
20840 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
20842 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
20844 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
20847 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
20849 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
20850 (aarch64_lra_p): Remove.
20852 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
20855 * ipa-chkp.h (chkp_instrumentable_p): New.
20856 * ipa-chkp.c: Include tree-inline.h.
20857 (chkp_instrumentable_p): New.
20858 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
20859 Fix processing of not instrumentable functions.
20860 (chkp_versioning): Use chkp_instrumentable_p. Warn about
20861 not instrumentable functions.
20862 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
20863 chkp_instrumentable_p.
20864 * tree-inline.h (copy_forbidden): New.
20865 * tree-inline.c (copy_forbidden): Not static anymore.
20867 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20869 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
20872 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20874 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
20875 type OP_OUT to OP_INOUT.
20877 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
20879 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
20880 (high x) y) to y if x and y have the same base.
20882 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
20884 * config/arm/cortex-a57.md: New.
20885 * config/aarch64/aarch64.md: Include it.
20886 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
20887 * config/aarch64/aarch64-tune.md: Regenerate.
20889 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
20892 * ccmp.c (expand_ccmp_next): New function.
20893 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
20894 and compare insn sequence.
20895 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
20896 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
20897 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
20898 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
20899 (*ccmp_ior): Changed to ccmp_ior<mode>.
20900 (cmp<mode>): New pattern.
20901 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
20903 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
20905 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
20907 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
20908 _mm256_bsrli_epi128): New.
20909 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
20911 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20913 * expmed.c (store_bit_field_using_insv): Improve warning message.
20914 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
20916 2015-01-15 Jiong Wang <jiong.wang@arm.com>
20918 PR rtl-optimization/64011
20919 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
20920 there is partial overflow.
20922 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20924 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
20926 (nds32_expand_epilogue_v3pop): Likewise.
20927 * config/nds32/nds32.md (sibcall): Define this for sibling call
20929 (sibcall_register): Likewise.
20930 (sibcall_immediate): Likewise.
20931 (sibcall_value): Likewise.
20932 (sibcall_value_register): Likewise.
20933 (sibcall_value_immediate): Likewise.
20934 (sibcall_epilogue): Likewise.
20935 (epilogue): Pass false to indicate this is not a sibcall epilogue.
20936 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
20937 (nds32_expand_epilogue_v3pop): Likewise.
20939 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20941 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
20942 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
20943 (return_internal): New.
20944 (return): Define this named pattern.
20945 (simple_return): Define this named pattern.
20946 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
20947 pattern instead of unspec_volatile_func_return.
20948 (nds32_expand_epilogue_v3pop): Likewise.
20949 (nds32_can_use_return_insn): New function.
20951 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20953 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
20954 * config/nds32/nds32.md (pop25return): New.
20955 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
20956 pop25return pattern.
20958 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20960 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
20961 -mforbid-fp-as-gp, and -mex9 options.
20963 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
20965 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
20966 remove -mgp-direct option.
20968 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20970 * doc/invoke.texi (--param early-inlining-insns): Update default value.
20971 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
20973 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20975 * ipa-inline.c (inline_small_functions): Work around hints
20978 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
20981 * doc/invoke.texi (Option Summary): Document new Nios II
20983 (Nios II Options): Likewise.
20984 * config/nios2/nios2.opt: Add -mgpopt= option support.
20985 Modify existing -mgpopt and -mno-gpopt options to be aliases.
20986 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
20987 * config/nios2/nios2.c (nios2_option_override): Adjust
20988 -mgpopt defaulting.
20989 (nios2_in_small_data_p): Return true for explicit small data
20990 sections even with -G0.
20991 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
20994 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
20997 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
20999 (inline_call): Fix removal of aliases.
21001 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21003 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
21004 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
21005 * opts.c (common_handle_option): Add -fsanitize=vptr.
21006 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
21007 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
21008 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
21009 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
21010 (ubsan_expand_vptr_ifn): New prototype.
21011 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
21012 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
21013 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
21014 expand_LOOP_VECTORIZED): Make argument nameless, remove
21016 (expand_UBSAN_VPTR): New function.
21017 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
21019 (UBSAN_VPTR): New internal function.
21020 * sanopt.c (tree_map_traits): Renamed to ...
21021 (sanopt_tree_map_traits): ... this.
21022 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
21023 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
21024 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
21025 (maybe_optimize_ubsan_vptr_ifn): New function.
21026 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
21027 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
21029 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
21030 internal calls like pure functions for aliasing, even when they
21031 have other side-effects that prevent making them ECF_PURE.
21032 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
21033 (ubsan_expand_vptr_ifn): New function.
21035 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
21037 PR rtl-optimization/64110
21038 * stmt.c (parse_output_constraint): Process '^' and '$'.
21039 (parse_input_constraint): Ditto.
21040 * lra-constraints.c (process_alt_operands): Process the new
21042 * ira-costs.c (record_reg_classes): Process the new constraint
21044 * genoutput.c (indep_constraints): Add '^' and '$'.
21045 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
21046 * doc/md.texi: Add description of the new constraints.
21048 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
21049 Bernd Schmidt <bernds@codesourcery.com>
21050 Cesar Philippidis <cesar@codesourcery.com>
21051 James Norris <jnorris@codesourcery.com>
21052 Tom de Vries <tom@codesourcery.com>
21053 Ilmir Usmanov <i.usmanov@samsung.com>
21054 Dmitry Bocharnikov <dmitry.b@samsung.com>
21055 Evgeny Gavrin <e.gavrin@samsung.com>
21056 Jakub Jelinek <jakub@redhat.com>
21058 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
21059 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
21060 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
21061 New function types.
21062 * builtins.c: Include "gomp-constants.h".
21063 (expand_builtin_acc_on_device): New function.
21064 (expand_builtin, is_inexpensive_builtin): Handle
21065 BUILT_IN_ACC_ON_DEVICE.
21066 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
21068 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
21070 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
21071 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
21072 i386/intelmic-offload.h.
21073 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
21074 to libgomp and its dependencies.
21075 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
21076 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21077 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21078 * config/ia64/hpux.h (LIB_SPEC): Likewise.
21079 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21080 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21081 * doc/generic.texi: Update for OpenACC changes.
21082 * doc/gimple.texi: Likewise.
21083 * doc/invoke.texi: Likewise.
21084 * doc/sourcebuild.texi: Likewise.
21085 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
21086 GF_OMP_FOR_KIND_OACC_LOOP.
21087 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
21088 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
21089 GF_OMP_TARGET_KIND_OACC_UPDATE,
21090 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21092 * gimple.c: Update comments for OpenACC changes.
21093 * gimple.def: Likewise.
21094 * gimple.h: Likewise.
21095 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
21096 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21097 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
21098 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
21099 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
21101 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
21102 * gimplify.c: Include "gomp-constants.h".
21103 Update comments for OpenACC changes.
21104 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
21105 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
21106 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21107 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
21108 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21109 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21110 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
21111 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21112 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
21114 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
21115 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21116 OMP_CLAUSE_SET_MAP_KIND.
21117 (gimplify_oacc_cache): New function.
21118 (gimplify_omp_for): Handle OACC_LOOP.
21119 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
21121 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
21122 OACC_EXIT_DATA, OACC_UPDATE.
21123 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
21124 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
21125 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
21126 (gimplify_body): Consider flag_openacc next to flag_openmp.
21127 * lto-streamer-out.c: Include "gomp-constants.h".
21128 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
21129 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
21130 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
21131 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
21132 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
21133 (BUILT_IN_ACC_ON_DEVICE): New builtins.
21134 * omp-low.c: Include "gomp-constants.h".
21135 Update comments for OpenACC changes.
21136 (struct omp_context): Add reduction_map, gwv_below, gwv_this
21138 (extract_omp_for_data, use_pointer_for_field, install_var_field)
21139 (new_omp_context, delete_omp_context, scan_sharing_clauses)
21140 (create_omp_child_function, scan_omp_for, scan_omp_target)
21141 (check_omp_nesting_restrictions, lower_reduction_clauses)
21142 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
21143 Update for OpenACC changes.
21144 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
21145 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
21146 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
21147 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
21148 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
21149 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
21151 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
21152 Handle GF_OMP_FOR_KIND_OACC_LOOP.
21153 (expand_omp_target, lower_omp_target): Handle
21154 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
21155 GF_OMP_TARGET_KIND_OACC_UPDATE,
21156 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
21157 GF_OMP_TARGET_KIND_OACC_DATA.
21158 (pass_expand_omp::execute, execute_lower_omp)
21159 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
21161 (offload_symbol_decl): New variable.
21162 (oacc_get_reduction_array_id, oacc_max_threads)
21163 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
21164 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
21165 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
21166 (oacc_gimple_assign, oacc_initialize_reduction_data)
21167 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
21169 (is_targetreg_ctx): Remove function.
21170 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
21171 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
21172 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
21173 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
21174 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
21175 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
21176 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
21177 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
21178 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
21179 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
21180 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
21181 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
21182 * tree-core.h: Update comments for OpenACC changes.
21183 (enum omp_clause_map_kind): Remove.
21184 (struct tree_omp_clause): Change type of map_kind member from enum
21185 omp_clause_map_kind to unsigned char.
21186 * tree-inline.c: Update comments for OpenACC changes.
21187 * tree-nested.c: Likewise. Include "gomp-constants.h".
21188 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
21189 (convert_tramp_reference_stmt, convert_gimple_call): Update for
21190 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
21191 OMP_CLAUSE_SET_MAP_KIND.
21192 * tree-pretty-print.c: Include "gomp-constants.h".
21193 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
21194 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
21195 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
21196 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
21197 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
21198 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
21199 instead of OMP_CLAUSE_MAP_*.
21200 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
21201 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
21202 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
21203 * tree-streamer-in.c: Include "gomp-constants.h".
21204 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
21205 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
21206 * tree-streamer-out.c: Include "gomp-constants.h".
21207 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
21209 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
21210 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
21211 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
21212 * tree.c (omp_clause_num_ops): Update accordingly.
21213 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
21215 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
21216 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
21217 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
21218 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
21219 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
21220 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
21221 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
21222 (OMP_CLAUSE_SET_MAP_KIND): New macro.
21223 * varpool.c (varpool_node::get_create): Consider flag_openacc next
21225 * config/i386/intelmic-offload.h: New file.
21226 * config/nvptx/offload.h: Likewise.
21228 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21230 * explow.h: Remove duplicate contents.
21231 * dojump.h: Likewise.
21233 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
21235 * arm.c (arm_xgene_tune): Add default initializer for instruction
21238 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
21242 * ipa.c (symbol_table::remove_unreachable_nodes):
21243 Do not put abstract origins into boundary.
21245 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
21247 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
21248 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
21250 2015-01-15 Steve Ellcey <sellcey@mips.com>
21252 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
21253 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
21254 builtins.def, and chkp-builtins.def.
21256 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
21258 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
21261 2015-01-15 Richard Biener <rguenther@suse.de>
21263 PR tree-optimization/61743
21264 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
21265 information on PHIs for some simple cases.
21267 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21269 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
21271 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
21272 * config/arm/arm-cores.def (xgene1): New entry.
21273 * config/arm/arm-tables.opt: Regenerate.
21274 * config/arm/arm-tune.md: Regenerate.
21275 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
21277 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21279 * tree-if-conv.c: Include hash-map.h.
21280 (aggressive_if_conv): New variable.
21281 (fold_build_cond_expr): Add simplification of non-zero condition.
21282 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
21283 destination block is not always executed.
21284 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
21285 than two predecessors if AGGRESSIVE_IF_CONV is true.
21286 (if_convertible_stmt_p): Fix commentary.
21287 (all_preds_critical_p): New function.
21288 (has_pred_critical_p): New function.
21289 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
21290 BB can have more than two predecessors and all incoming edges can be
21292 (predicate_bbs): Skip predication for loop exit block, use build2_loc
21293 to compute predicate for true edge.
21294 (find_phi_replacement_condition): Delete this function.
21295 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
21296 Allow interchange PHI arguments if EXTENDED is false.
21297 Change check that block containing reduction statement candidate
21298 is predecessor of phi-block since phi may have more than two arguments.
21299 (phi_args_hash_traits): New helper structure.
21300 (struct phi_args_hash_traits): New type.
21301 (phi_args_hash_traits::hash): New function.
21302 (phi_args_hash_traits::equal_keys): New function.
21303 (gen_phi_arg_condition): New function.
21304 (predicate_scalar_phi): Add handling of phi nodes with more than two
21305 arguments, delete COND and TRUE_BB arguments, insert body of
21306 find_phi_replacement_condition to predicate ordinary phi nodes.
21307 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
21308 delete call of find_phi_replacement_condition and invoke
21309 predicate_scalar_phi with two arguments.
21310 (insert_gimplified_predicates): Add assert that non-predicated block
21311 don't have statements to insert.
21312 (ifcvt_split_critical_edges): New function.
21313 (ifcvt_split_def_stmt): Likewise.
21314 (ifcvt_walk_pattern_tree): Likewise.
21315 (stmt_is_root_of_bool_pattern): Likewise.
21316 (ifcvt_repair_bool_pattern): Likewise.
21317 (ifcvt_local_dce): Likewise.
21318 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
21319 is copy of inner or outer loop force_vectorize field, invoke
21320 ifcvt_split_critical_edges, ifcvt_local_dce and
21321 ifcvt_repair_bool_pattern for aggressive if-conversion.
21323 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
21325 * config/aarch64/aarch64.md: Include xgene1.md.
21326 * config/aarch64/xgene1.md: New file.
21328 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21330 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
21331 xgene1 (APM XGene-1) core definition.
21332 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
21333 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
21334 * doc/invoke.texi: Document -mcpu=xgene1.
21336 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21338 * dojump.h: New header file.
21339 * explow.h: Likewise.
21340 * expr.h: Remove includes.
21341 Move expmed.c prototypes to expmed.h.
21342 Move dojump.c prototypes to dojump.h.
21343 Move alias.c prototypes to alias.h.
21344 Move explow.c prototypes to explow.h.
21345 Move calls.c prototypes to calls.h.
21346 Move emit-rtl.c prototypes to emit-rtl.h.
21347 Move varasm.c prototypes to varasm.h.
21348 Move stmt.c prototypes to stmt.h.
21349 (saved_pending_stack_adjust): Move to dojump.h.
21350 (adjust_address): Move to explow.h.
21351 (adjust_address_nv): Move to emit-rtl.h.
21352 (adjust_bitfield_address): Likewise.
21353 (adjust_bitfield_address_size): Likewise.
21354 (adjust_bitfield_address_nv): Likewise.
21355 (adjust_automodify_address_nv): Likewise.
21356 * explow.c (expr_size): Move to expr.c.
21357 (int_expr_size): Likewise.
21358 (tree_expr_size): Likewise.
21359 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21360 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21361 * genemit.c (main): Generate includes statistics.h, real.h,
21362 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
21364 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
21365 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
21366 explow.h, emit-rtl.h, stmt.h.
21367 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
21368 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
21369 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
21370 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
21371 emit-rtl.h, varasm.h, stmt.h.
21372 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
21373 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
21374 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
21375 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
21376 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21377 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
21378 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
21379 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
21380 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
21381 tm.h tree.h varasm.h vec.h wide-int.h.
21382 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21383 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21384 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
21385 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
21386 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
21387 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
21388 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
21389 * loop-iv.c: Likewise.
21390 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
21391 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
21392 statistics.h stmt.h tree.h varasm.h wide-int.h.
21393 * lra-constraints.c: Likewise.
21394 * lra-eliminations.c: Likewise.
21395 * lra-lives.c: Likewise.
21396 * lra-remat.c: Likewise.
21397 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21398 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
21399 statistics.h stmt.h tree.h varasm.h wide-int.h.
21400 * hw-doloop.c: Likewise.
21401 * ira-color.c: Likewise.
21402 * ira-emit.c: Likewise.
21403 * loop-doloop.c: Likewise.
21404 * loop-invariant.c: Likewise.
21405 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21406 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
21407 statistics.h stmt.h tree.h varasm.h wide-int.h.
21408 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
21409 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
21410 statistics.h stmt.h tree.h varasm.h wide-int.h.
21411 * combine-stack-adj.c: Likewise.
21414 * ifcvt.c: Likewise.
21415 * ira-costs.c: Likewise.
21416 * jump.c: Likewise.
21417 * lra-coalesce.c: Likewise.
21418 * lra-spills.c: Likewise.
21419 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21420 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
21421 stmt.h varasm.h wide-int.h.
21422 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
21423 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21425 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
21426 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
21427 statistics.h stmt.h varasm.h wide-int.h.
21428 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
21429 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
21430 varasm.h wide-int.h.
21431 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
21432 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21433 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
21434 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
21435 statistics.h stmt.h.
21436 * config/tilepro/tilepro.c: Likewise.
21437 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
21438 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
21439 * config/pdp11/pdp11.c: Likewise.
21440 * config/xtensa/xtensa.c: Likewise.
21441 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
21442 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
21444 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21445 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21446 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
21447 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21448 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
21449 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
21450 * rtl-chkp.c: Likewise.
21451 * tree-chkp-opt.c: Likewise.
21452 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
21453 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
21454 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
21455 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21456 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21457 statistics.h stmt.h.
21458 * tree-vect-data-refs.c: Likewise.
21459 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
21460 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21461 rtl.h statistics.h stmt.h varasm.h.
21462 * internal-fn.c: Likewise.
21463 * ipa-icf-gimple.c: Likewise.
21464 * lto-section-out.c: Likewise.
21465 * tree-data-ref.c: Likewise.
21466 * tree-nested.c: Likewise.
21467 * tree-outof-ssa.c: Likewise.
21468 * tree-predcom.c: Likewise.
21469 * tree-pretty-print.c: Likewise.
21470 * tree-scalar-evolution.c: Likewise.
21471 * tree-ssa-strlen.c: Likewise.
21472 * tree-vect-loop.c: Likewise.
21473 * tree-vect-patterns.c: Likewise.
21474 * tree-vect-slp.c: Likewise.
21475 * tree-vect-stmts.c: Likewise.
21476 * tsan.c: Likewise.
21477 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21478 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
21480 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
21481 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21482 statistics.h stmt.h varasm.h.
21483 * loop-unroll.c: Likewise.
21484 * ubsan.c: Likewise.
21485 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
21486 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
21488 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21489 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
21490 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
21491 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21492 statistics.h stmt.h.
21493 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
21494 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
21495 statistics.h stmt.h varasm.h.
21496 * gimple-match-head.c: Likewise.
21497 * lto-cgraph.c: Likewise.
21498 * lto-section-in.c: Likewise.
21499 * lto-streamer-in.c: Likewise.
21500 * lto-streamer-out.c: Likewise.
21501 * tree-affine.c: Likewise.
21502 * tree-cfg.c: Likewise.
21503 * tree-cfgcleanup.c: Likewise.
21504 * tree-if-conv.c: Likewise.
21505 * tree-into-ssa.c: Likewise.
21506 * tree-ssa-alias.c: Likewise.
21507 * tree-ssa-copyrename.c: Likewise.
21508 * tree-ssa-dse.c: Likewise.
21509 * tree-ssa-forwprop.c: Likewise.
21510 * tree-ssa-live.c: Likewise.
21511 * tree-ssa-math-opts.c: Likewise.
21512 * tree-ssa-pre.c: Likewise.
21513 * tree-ssa-sccvn.c: Likewise.
21514 * tree-tailcall.c: Likewise.
21515 * tree-vect-generic.c: Likewise.
21516 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21517 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
21518 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21519 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
21520 * varasm.c: Likewise.
21521 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21522 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
21524 * init-regs.c: Likewise.
21526 * omp-low.c: Likewise.
21527 * stack-ptr-mod.c: Likewise.
21528 * tree-ssa-reassoc.c: Likewise.
21529 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21530 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
21532 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21533 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
21534 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21535 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
21536 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21537 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
21538 * tree-ssa-phiopt.c: Likewise.
21539 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21540 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21541 * config/fr30/fr30.c: Likewise.
21542 * config/frv/frv.c: Likewise.
21543 * expr.c: Likewise.
21544 * final.c: Likewise.
21545 * optabs.c: Likewise.
21546 * passes.c: Likewise.
21547 * simplify-rtx.c: Likewise.
21548 * stmt.c: Likewise.
21549 * toplev.c: Likewise.
21550 * var-tracking.c: Likewise.
21551 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21552 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21553 * lower-subreg.c: Likewise.
21554 * postreload-gcse.c: Likewise.
21556 * reginfo.c: Likewise.
21557 * store-motion.c: Likewise.
21558 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21559 fixed-value.h hashtab.h real.h stmt.h varasm.h.
21560 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21561 fixed-value.h hashtab.h statistics.h stmt.h.
21562 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21563 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
21564 * except.c: Likewise.
21565 * explow.c: Likewise.
21566 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21567 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
21569 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21570 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
21571 * tree-ssa-structalias.c: Likewise.
21572 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21573 fixed-value.h insn-config.h real.h statistics.h.
21574 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21575 fixed-value.h insn-config.h real.h statistics.h stmt.h.
21576 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21577 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21578 * cfgbuild.c: Likewise.
21579 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21580 fixed-value.h real.h rtl.h statistics.h stmt.h.
21581 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21582 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21583 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21584 fixed-value.h real.h statistics.h stmt.h.
21585 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
21586 fixed-value.h real.h statistics.h stmt.h varasm.h.
21587 * cprop.c: Likewise.
21588 * modulo-sched.c: Likewise.
21589 * postreload.c: Likewise.
21590 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21591 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
21592 statistics.h stmt.h varasm.h.
21593 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
21594 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21595 rtl.h statistics.h stmt.h varasm.h.
21596 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
21597 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
21599 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
21600 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
21602 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
21603 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
21605 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
21606 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21607 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21608 function.h real.h statistics.h stmt.h varasm.h.
21609 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21610 insn-config.h real.h statistics.h stmt.h.
21611 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
21612 statistics.h stmt.h.
21613 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
21614 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
21615 statistics.h stmt.h varasm.h.
21616 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
21617 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
21618 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21619 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
21620 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
21621 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
21622 statistics.h stmt.h varasm.h.
21623 * ipa-polymorphic-call.c: Likewise.
21624 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
21625 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21626 statistics.h stmt.h.
21627 * config/c6x/c6x.c: Likewise.
21628 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
21629 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
21630 statistics.h stmt.h varasm.h.
21631 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
21632 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
21634 * ipa-split.c: Likewise.
21635 * tree-eh.c: Likewise.
21636 * tree-ssa-dce.c: Likewise.
21637 * tree-ssa-loop-niter.c: Likewise.
21638 * tree-vrp.c: Likewise.
21639 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
21640 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
21642 * config/nds32/nds32-fp-as-gp.c: Likewise.
21643 * config/nds32/nds32-intrinsic.c: Likewise.
21644 * config/nds32/nds32-isr.c: Likewise.
21645 * config/nds32/nds32-md-auxiliary.c: Likewise.
21646 * config/nds32/nds32-memory-manipulation.c: Likewise.
21647 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21648 * config/nds32/nds32-predicates.c: Likewise.
21649 * config/nds32/nds32.c: Likewise.
21650 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
21651 fixed-value.h hashtab.h real.h statistics.h.
21652 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
21653 fixed-value.h hashtab.h real.h statistics.h stmt.h.
21654 * config/arm/arm.c: Likewise.
21655 * config/avr/avr.c: Likewise.
21656 * config/bfin/bfin.c: Likewise.
21657 * config/h8300/h8300.c: Likewise.
21658 * config/i386/i386.c: Likewise.
21659 * config/ia64/ia64.c: Likewise.
21660 * config/iq2000/iq2000.c: Likewise.
21661 * config/m32c/m32c.c: Likewise.
21662 * config/m32r/m32r.c: Likewise.
21663 * config/m68k/m68k.c: Likewise.
21664 * config/mcore/mcore.c: Likewise.
21665 * config/mep/mep.c: Likewise.
21666 * config/mips/mips.c: Likewise.
21667 * config/mn10300/mn10300.c: Likewise.
21668 * config/moxie/moxie.c: Likewise.
21669 * config/pa/pa.c: Likewise.
21670 * config/rl78/rl78.c: Likewise.
21671 * config/rx/rx.c: Likewise.
21672 * config/s390/s390.c: Likewise.
21673 * config/sh/sh.c: Likewise.
21674 * config/sparc/sparc.c: Likewise.
21675 * config/spu/spu.c: Likewise.
21676 * config/stormy16/stormy16.c: Likewise.
21677 * config/v850/v850.c: Likewise.
21678 * config/vax/vax.c: Likewise.
21679 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
21680 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
21681 * config/msp430/msp430.c: Likewise.
21682 * predict.c: Likewise.
21683 * value-prof.c: Likewise.
21684 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
21685 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
21686 * config/microblaze/microblaze.c: Likewise.
21687 * config/nios2/nios2.c: Likewise.
21688 * config/rs6000/rs6000.c: Likewise.
21689 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21690 insn-config.h real.h rtl.h statistics.h stmt.h.
21691 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
21692 insn-config.h real.h statistics.h stmt.h.
21693 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
21694 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
21695 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
21696 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
21697 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
21698 fixed-value.h real.h statistics.h stmt.h.
21699 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
21700 fixed-value.h statistics.h stmt.h.
21701 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
21704 2015-01-15 Jakub Jelinek <jakub@redhat.com>
21706 * gengtype.c (create_user_defined_type): Workaround
21707 -Wmaybe-uninitialized false positives.
21708 * cse.c (fold_rtx): Likewise.
21709 * loop-invariant.c (gain_for_invariant): Likewise.
21711 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
21713 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
21714 set the memory attributes in all cases but clear MEM_EXPR if need be.
21716 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
21718 PR tree-optimization/64434
21719 * cfgexpand.c (reorder_operands): New function.
21720 (expand_gimple_basic_block): Insert call of reorder_operands if
21723 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
21725 * config/mips/micromips.md (*swp): Remove explicit parallel.
21726 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
21727 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
21728 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
21729 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
21730 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
21731 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
21732 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
21733 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
21734 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
21735 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
21736 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
21737 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
21738 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
21739 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
21740 (mips_wrdsp): Likewise.
21741 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
21743 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
21744 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
21745 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
21746 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
21747 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
21748 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
21749 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
21750 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
21751 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
21753 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21755 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
21756 (mips_print_operand): Support 'y' to print exact log2 in decimal
21758 * config/mips/mips.h (ISA_HAS_LSA): New define.
21759 (ISA_HAS_DLSA): Likewise.
21760 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
21761 * config/mips/predicates.md (const_immlsa_operand): New predicate.
21763 2015-01-15 Martin Liska <mliska@suse.cz>
21766 * optc-save-gen.awk: Add support for array types.
21768 2015-01-15 Richard Biener <rguenther@suse.de>
21770 PR middle-end/64365
21771 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
21772 for MEM_REF access functions with the same base can never partially
21775 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
21777 * common.opt: New option -fstack-protector-explicit.
21778 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
21779 (stack_protect_decl_phase): Handle stack_protect attribute for
21780 explicit stack protection requests.
21781 (expand_used_vars): Similarly.
21782 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
21783 * doc/extend.texi: Add documentation for "stack_protect" attribute.
21784 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
21786 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
21789 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
21791 (sh_extending_set_of_reg): New struct.
21792 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
21793 sh_remove_reg_dead_or_unused_notes): New Declarations.
21794 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
21795 sh_find_extending_set_of_reg, sh_split_tst_subregs,
21796 sh_extending_set_of_reg::use_as_extended_reg): New functions.
21797 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
21798 convert to insn_and_split and use new function sh_split_tst_subregs.
21800 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
21802 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
21804 (Optimization Options): Move -fuse-ld documentation to...
21805 (Link Options): ...here.
21807 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21809 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
21811 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
21812 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
21813 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
21814 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
21815 instead of ZR for the memory operand of LL/SC.
21816 (compare_and_swap_12, sync_add<mode>): Likewise.
21817 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
21818 (sync_new_<optab>_12, sync_nand_12): Likewise.
21819 (sync_old_nand_12, sync_new_nand_12): Likewise.
21820 (sync_sub<mode>, sync_old_add<mode>): Likewise.
21821 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
21822 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
21823 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
21824 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
21825 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
21826 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
21827 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
21828 * doc/md.texi (ZC): Update description.
21830 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21832 * builtins.c (expand_builtin_atomic_exchange): Remove error when
21833 memory model is CONSUME.
21834 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
21835 expand_builtin_atomic_store): Change invalid memory model errors to
21837 (expand_builtin_atomic_clear): Change invalid model errors to warnings
21838 and issue warning for CONSUME.
21840 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
21842 * lto-cgraph: Update function comments for
21843 lto_symtab_encoder_encode_*.
21845 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21847 * Makefile.in (site.exp): Do not set ENABLE_LTO.
21849 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
21851 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
21852 * lto-cgraph.c (select_what_to_stream): Remove argument, use
21853 lto_stream_offload_p instead.
21854 * lto-streamer.h (select_what_to_stream): Remove argument.
21855 * passes.c (ipa_write_summaries): Likewise.
21856 * tree-pass.h (ipa_write_summaries): Likewise.
21858 2015-01-14 Richard Biener <rguenther@suse.de>
21860 PR tree-optimization/59354
21861 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
21862 groups larger than the slp group size as having gaps.
21864 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
21866 PR middle-end/59448
21867 * builtins.c (get_memmodel): Promote consume to acquire always.
21869 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21872 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
21875 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21878 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
21880 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
21881 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
21882 AVX512VBMI, as it implies AVX512BW.
21884 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
21887 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
21888 (vec_unpacks_hi_v16sf): Ditto.
21890 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21892 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
21895 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21897 * doc/invoke.texi (mapcs): Mention deprecation.
21898 (mapcs-frame): Likewise.
21900 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
21903 * config/arm/arm.c (callee_saved_reg_p): Define.
21904 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
21905 register is callee saved instead of !call_used_regs[reg].
21906 (thumb1_compute_save_reg_mask): Likewise.
21908 2015-01-14 Hale Wang <hale.wang@arm.com>
21910 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
21913 2015-01-14 Richard Biener <rguenther@suse.de>
21916 * tree-inline.c (insert_debug_decl_map): Check destination
21917 function MAY_HAVE_DEBUG_STMTS.
21918 (insert_init_debug_bind): Likewise.
21919 (insert_init_stmt): Remove redundant check.
21920 (remap_gimple_stmt): Drop debug stmts if the destination
21921 function has var-tracking assignments disabled.
21923 2015-01-14 Martin Liska <mliska@suse.cz>
21925 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
21926 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
21928 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21931 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
21932 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
21934 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
21936 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
21937 level from an ARCH; do not inject the default.
21938 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
21939 MIPS_ISA_LEVEL_SPEC.
21940 (MIPS_ISA_NAN2008_SPEC): Update comment.
21941 (BASE_DRIVER_SELF_SPECS): Likewise.
21942 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
21943 MIPS_DEFAULT_ISA_LEVEL_SPEC.
21944 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
21945 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
21946 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
21948 2015-01-14 Richard Biener <rguenther@suse.de>
21950 PR tree-optimization/64493
21951 PR tree-optimization/64495
21952 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
21953 assign the proper vectorized PHI to the inner loop exit PHIs.
21955 2015-01-14 Joey Ye <joey.ye@arm.com>
21957 * config/arm/arm.c (arm_compute_save_reg_mask):
21958 Do not save lr in case of tail call.
21959 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
21961 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
21963 * tree-vrp.c (check_array_ref): Emit more warnings
21964 for warn_array_bounds >= 2.
21965 * common.opt: New option -Warray-bounds=.
21966 * doc/invoke.texi: Document -Warray-bounds=.
21968 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
21970 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
21971 (mforbid-fp-as-gp): Remove.
21973 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
21974 (nds32_symbol_load_store_p): Remove.
21975 (nds32_fp_as_gp_check_available): Clean up implementation.
21976 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
21978 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
21979 fp-as-gp and ex9 cases.
21981 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21983 * tree-profile.c (init_ic_make_global_vars): Drop workaround
21984 for bintuils bug 14342.
21985 (init_ic_make_global_vars): Likewise.
21986 (gimple_init_edge_profiler): Likewise.
21987 (gimple_gen_ic_func_profiler): Likewise.
21989 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21991 * ipa-inline.c (inline_small_functions): Swap the operands in
21994 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
21997 * ipa-inline-analysis.c (node_growth_cache): Remove.
21998 (initialize_growth_caches): Do not initialize it.
21999 (free_growth_caches): Do not free it.
22000 (do_estimate_growth): Rename to ...
22001 (estimate_growth): ... this one; drop growth cache code.
22002 (growth_likely_positive): Always go the heuristics way.
22003 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
22004 (reset_edge_caches): Do not reset node growth.
22005 (heap_edge_removal_hook): Do not maintain cache.
22006 (inline_small_functions): Likewise; strenghten sanity check.
22007 (ipa_inline): Do not maintain caches.
22008 * ipa-inline.h (node_growth_cache): Remove.
22009 (do_estimate_growth): Remove to ...
22010 (estimate_growth): this one; remove inline version.
22011 (reset_node_growth_cache): Remove.
22013 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
22016 * ipa-inline.c (inline_small_functions): Update callee keys after
22017 resolving speculation
22018 (inline_small_functions): Always check monotonicity of the queue.
22020 2015-01-13 Marek Polacek <polacek@redhat.com>
22022 PR middle-end/64391
22023 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
22025 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22027 PR rtl-optimization/64286
22028 * ree.c (combine_reaching_defs): Move part of comment earlier,
22029 remove !SCALAR_INT_MODE_P check.
22030 (add_removable_extension): Don't add vector mode
22031 extensions if all uses of the source register aren't the same
22034 2015-01-13 Renlin Li <renlin.li@arm.com>
22036 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
22037 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
22039 2015-01-13 Martin Liska <mliska@suse.cz>
22041 * ipa-icf.c (sem_function::equals_private): Call new functions
22042 cl_target_option_print_diff and cl_optimization_print_diff.
22043 * optc-save-gen.awk (cl_target_option_print_diff): New function.
22044 (cl_optimization_print_diff): Likewise.
22045 * opth-gen.awk: Likewise.
22047 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
22049 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
22050 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
22051 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
22052 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
22053 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
22054 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
22056 2015-01-13 Andrew Pinski <apinski@cavium.com>
22058 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
22059 instead of src mode.
22061 2015-01-13 Richard Biener <rguenther@suse.de>
22064 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
22067 2015-01-13 Andrew Pinski <apinski@cavium.com>
22069 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
22071 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
22073 2015-01-13 Jakub Jelinek <jakub@redhat.com>
22075 PR middle-end/63974
22076 * cfgexpand.c (expand_computed_goto): Don't call
22077 convert_memory_address here.
22079 2015-01-13 Richard Biener <rguenther@suse.de>
22081 PR tree-optimization/64406
22082 * tree-loop-distibution.c (pass_loop_distribution::execute):
22083 Reset the SCEV hashtable if we distributed anything.
22085 2015-01-13 Richard Biener <rguenther@suse.de>
22087 PR tree-optimization/64404
22088 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
22089 SLP types for CSEd loads.
22091 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22093 PR tree-optimization/64436
22094 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
22095 merge of two symbolic numbers for a bitwise OR to ...
22096 (perform_symbolic_merge): This. Also fix computation of the range and
22097 end of the symbolic number corresponding to the result of a bitwise OR.
22099 2015-01-13 Richard Biener <rguenther@suse.de>
22101 PR tree-optimization/64568
22102 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
22103 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
22105 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22107 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
22108 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
22110 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22112 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
22113 target-specific symbol_ref flag.
22114 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
22115 resides in rodata section.
22116 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
22117 (nds32_encode_section_info): New function.
22119 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22121 * config/nds32/nds32.md (call): Use pseudo instruction bal which
22122 clobbers TA_REGNUM if large code model is specified.
22123 (call_register): Likewise.
22124 (call_immediate): Likewise.
22125 (call_value): Likewise.
22126 (call_value_register): Likewise.
22127 (call_value_immediate): Likewise.
22129 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22131 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
22132 (TARGET_CMODEL_MEDIUM): New macro.
22133 (TARGET_CMODEL_LARGE): New macro.
22134 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
22135 code model setting in assembly code.
22137 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22139 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
22140 Remove MASK_GP_DIRECT flag.
22141 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
22142 one of the multilib default options.
22143 * config/nds32/nds32.opt (mgp-direct): Remove.
22144 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
22145 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
22147 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
22149 * config/nds32/nds32.opt (mcmodel): Add new option.
22150 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
22151 to describe code model.
22153 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
22156 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
22158 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
22160 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
22161 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22162 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
22163 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
22164 __builtin_sh_set_fpscr.
22166 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22168 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
22169 after a funtion name just to indicate it is a function.
22170 ([-fsanitize-undefined-trap-on-error]): Likewise.
22171 ([-fdbg-cnt=]): Likewise.
22172 ([-mmemcpy]): Likewise.
22173 ([-mflush-func]): Likewise.
22174 ([-msynci]): Likewise.
22176 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
22178 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
22181 2015-01-12 Jakub Jelinek <jakub@redhat.com>
22183 PR tree-optimization/64563
22184 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
22185 instead of != VR_VARYING.
22188 * config/i386/i386.c (ix86_expand_prologue): Add
22189 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
22191 PR tree-optimization/64454
22192 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
22193 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
22194 for signed or [0, op1 - 1] for unsigned modulo.
22195 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
22196 even if op1 does not satisfy integer_pow2p.
22199 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
22201 2015-01-12 Jeff Law <law@redhat.com>
22204 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
22205 (trunchiqi2, truncsihi2): Similarly.
22207 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
22208 rather than calling F.
22210 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
22212 * tsan.c (instrument_expr): Use force_gimple_operand.
22213 Use may_be_nonaddressable_p instead of is_gimple_addressable.
22215 2015-01-12 Richard Biener <rguenther@suse.de>
22217 PR tree-optimization/64530
22218 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
22221 2015-01-12 Richard Biener <rguenther@suse.de>
22223 PR middle-end/64357
22224 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
22227 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22229 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
22230 Cortex-A17 tuning parameters.
22231 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
22233 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22235 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
22236 * config/arm/arm.c (arm_macro_fusion_p): New function.
22237 (arm_macro_fusion_pair_p): Likewise.
22238 (TARGET_SCHED_MACRO_FUSION_P): Define.
22239 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
22240 (ARM_FUSE_NOTHING): Likewise.
22241 (ARM_FUSE_MOVW_MOVT): Likewise.
22242 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
22243 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
22244 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
22245 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
22246 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
22247 arm_cortex_a5_tune): Specify fuseable_ops value.
22249 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
22252 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
22253 test for PIE with copy reloc.
22254 * configure: Regenerated.
22256 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22258 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
22260 (arm_tls_descseq_addr): Likewise.
22261 (arm_gen_movmemqi): Likewise.
22262 (arm_expand_epilogue_apcs_frame): Likewise.
22263 (arm_expand_epilogue): Likewise.
22264 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
22267 2015-01-12 Martin Liska <mliska@suse.cz>
22270 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
22271 volatility for correct operands.
22273 2015-01-12 Martin Liska <mliska@suse.cz>
22275 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
22276 indication that a function is not leaf.
22277 (sem_function::compare_polymorphic_p): Likewise.
22279 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22281 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
22282 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
22283 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
22284 fold-const.h, tree-check.h.
22286 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22290 * ipa-inline.c (compute_uninlined_call_time,
22291 compute_inlined_call_time): Use counts for extra precision when
22293 (big_speedup_p): Fix formating.
22294 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
22295 (relative_time_benefit): Remove.
22296 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
22297 merge guessed and read profile paths.
22298 (inline_small_functions): Count only !optimize_size functions into
22299 initial size; be more lax about sanity check when profile is used;
22300 be sure to update inlined function profile when profile is read.
22302 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
22305 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
22306 cost when edge becomes direct.
22307 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
22308 is resolved or when introducing new speculation.
22310 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
22314 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
22315 '||' to fix typo issue.
22317 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
22318 accept and return NULL.
22320 2015-01-12 Martin Liska <mliska@suse.cz>
22322 * cgraph.c (cgraph_edge::remove_callee): Move function to header
22323 file for being inlined.
22324 (cgraph_set_edge_callee): Delete.
22325 (cgraph_edge::redirect_callee): Move function to header file
22327 (cgraph_edge::make_direct): Use new function.
22328 (cgraph_edge::dump_edge_flags): New function created from
22329 static dump_edge_flags function.
22330 (cgraph_node::dump): Use new function.
22331 (cgraph_edge::verify_count_and_frequency): New function created
22332 from verify_edge_count_and_frequency.
22333 (cgraph_edge::verify_corresponds_to_fndecl): New function created
22334 from verify_edge_corresponds_to_fndecl.
22335 (verify_edge_corresponds_to_fndecl): Delete.
22336 (cgraph_node::verify_node): Use new function.
22337 * cgraph.h (cgraph_edge::set_callee): New function.
22338 (cgraph_edge::dump_edge_flags): Likewise.
22339 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
22341 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
22343 * ipa-utils.c (estimate_function_body_sizes): Do not
22344 free node params when called late with early=true.
22346 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
22348 * doc/md.texi (Instruction Patterns): Rewrite text for
22350 (Example): Likewise.
22352 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
22354 * doc/invoke.texi (Option Summary): Break long lines.
22355 [(-fdiagnostics-color)]: Put long literal in @smallexample
22357 [(-fsanitize-recover)]: Likewise.
22358 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
22359 [(-ffast-math)]: Likewise.
22360 [(--param max-inline-insns-recursive)]: Likewise.
22361 [(--param max-inline-recursive-depth)]: Likewise.
22362 [(-mno-text-section-literals)]: Likewise.
22364 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
22366 * doc/install.texi: Update for libgomp being renamed from "GNU
22367 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
22369 * doc/sourcebuild.texi: Likewise.
22371 2015-01-10 Anthony Green <green@moxielogic.com>
22373 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
22374 mul.x availability for moxiebox configuration.
22376 2015-01-09 Anthony Green <green@moxielogic.com>
22378 * config/moxie/moxie.md: Tabify assembly output.
22380 2015-01-09 Anthony Green <green@moxielogic.com>
22382 * config/moxie/moxie.md (CC_REG): Correct register definition.
22384 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
22386 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
22387 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
22390 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22392 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
22394 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
22395 Jakub Jelinek <jakub@redhat.com>
22397 PR middle-end/64412
22398 * lto-streamer.h (lto_stream_offload_p): New declaration.
22399 * lto-streamer.c (lto_stream_offload_p): New variable.
22400 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
22401 at the same time as section_name_prefix.
22402 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
22403 if lto_stream_offload_p.
22404 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
22405 stream TREE_TARGET_OPTION if lto_stream_offload_p.
22406 (write_ts_function_decl_tree_pointers): Don't
22407 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
22408 * tree-streamer-in.c (unpack_value_fields): Don't stream
22409 TREE_TARGET_OPTION in if ACCEL_COMPILER.
22410 (lto_input_ts_function_decl_tree_pointers): Don't stream
22411 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
22412 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
22413 instead of section_name_prefix string comparisons.
22415 2015-01-09 Jakub Jelinek <jakub@redhat.com>
22417 PR rtl-optimization/64536
22418 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
22421 2015-01-09 Michael Collison <michael.collison@linaro.org>
22423 PR tree-optimization/64322
22424 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
22425 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
22427 2015-01-09 Tom de Vries <tom@codesourcery.com>
22429 PR rtl-optimization/64539
22430 * regcprop.c (kill_clobbered_values): Factor out of ...
22431 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
22432 instead of note_stores with kill_clobbered_value.
22434 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22436 * ginclude/unwind-arm-common.h: Revert previous commit.
22438 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
22440 * config.gcc (arm*-*-freebsd*): New configuration.
22441 * config/arm/freebsd.h: New file.
22442 * config.host: Add extra components for arm*-*-freebsd*.
22443 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
22444 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
22446 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22448 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
22450 * config/rs6000/t-rtems: Add e6500 multilibs.
22452 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22454 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
22457 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22459 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
22460 MULTILIB_EXCEPTIONS.
22462 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22464 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
22465 MULTILIB_EXCEPTIONS.
22467 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
22469 * config/arm/t-rtems-eabi: Rename to...
22470 * config/arm/t-rtems: ...this.
22471 * config/arm/rtems-eabi.h: Rename to...
22472 * config/arm/rtems.h: ...this.
22473 * config.gcc (arm*-*-rtems*): Reflect changes above.
22475 2015-01-09 Richard Biener <rguenther@suse.de>
22477 PR tree-optimization/64410
22478 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
22480 (execute_update_addresses_taken): Deal with that.
22481 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
22482 loads/stores for complex variables.
22484 2015-01-09 Martin Liska <mliska@suse.cz>
22486 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
22488 (func_checker::compare_memory_operand): New function.
22489 (func_checker::compare_operand): Split case to newly
22491 (func_checker::compare_cst_or_decl): New function.
22492 (func_checker::compare_gimple_call): Identify
22494 (func_checker::compare_gimple_assign): Likewise.
22495 * ipa-icf-gimple.h: New function.
22497 2015-01-09 Martin Liska <mliska@suse.cz>
22500 * sreal.c (sreal::dump): Change unsigned format to signed for
22502 (sreal::to_double): Replace exp2 with scalbln.
22504 2015-01-09 Martin Liska <mliska@suse.cz>
22506 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
22507 * ipa-icf.c (sem_function::equals_private): Add support for target and
22508 (sem_item_optimizer::merge_classes): Remove redundant function
22509 optimization flags comparison.
22510 * tree.h (target_opts_for_fn): New function.
22512 2015-01-09 Tom de Vries <tom@codesourcery.com>
22514 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
22516 2015-01-09 Kito Cheng <kito@0xlab.org>
22518 PR rtl-optimization/64348
22519 * lra-constraints.c (split_reg): Fix caller-save store/restore
22520 instruction generation.
22522 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
22524 PR gcov-profile/61790
22525 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
22526 long long. Fallback to int64_t if host doesn't have long long and
22527 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
22529 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22531 PR tree-optimization/63989
22532 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
22533 from 1000 to 10000.
22534 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
22535 (get_stridx): If we don't have a record for certain SSA_NAME,
22536 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
22537 constant offset, call get_stridx_plus_constant.
22538 (get_stridx_plus_constant): New function.
22539 (zero_length_string): Don't use get_stridx here.
22542 PR middle-end/64388
22543 * dse.c (struct insn_info): Mention frame_read set also
22544 before reload for tail calls on some targets.
22545 (scan_insn): Revert 2014-12-22 change. Set frame_read
22546 also before reload for tail calls if
22547 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
22548 instead of add_non_frame_wild_read for non-const/memset
22549 tail calls after reload.
22551 2015-01-08 Jason Merrill <jason@redhat.com>
22553 * ubsan.c (do_ubsan_in_current_function): New.
22554 (pass_ubsan::gate): Use it.
22555 * ubsan.h: Declare it.
22556 * convert.c (convert_to_integer): Use it.
22558 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22561 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
22562 compare_code when it is unconditionally overwritten afterwards.
22563 Use ix86_reverse_condition instead of reverse_condition. Don't
22564 change code if *reverse_condition* returned UNKNOWN and don't
22565 swap ct/cf and negate diff in that case.
22567 2015-01-08 Mike Stump <mikestump@comcast.net>
22569 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
22570 (pass_tsan_O0::gate): Likewise.
22571 * extend.texi (Function Attributes): Add no_sanitize_thread
22574 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
22576 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
22577 for registering builtins.
22578 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
22579 add -fopenmp to the argv_obstack used when invoking
22580 compile_for_target.
22582 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
22583 add "-m32" or "-m64" to argv_obstack.
22584 (generate_host_descr_file): Likewise, when invoking host_compiler.
22585 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
22588 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22590 * config/sh/sh-mem.cc: Use constant as second operand when emitting
22593 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
22596 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
22597 constant load if constant operand fits into I08.
22599 2015-01-08 Jakub Jelinek <jakub@redhat.com>
22602 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
22603 and TREE_THIS_VOLATILE for MEM_REFs.
22604 (build5_stat): Fix up initialization of TREE_READONLY and
22605 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
22607 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
22610 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
22611 of r for the second alternative of the destination operand.
22613 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
22616 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
22618 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22620 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
22622 ([-fivar-visibility], [-fvisibility]): Likewise.
22624 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
22626 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
22627 the file where @code, @command, etc is more appropriate.
22629 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
22631 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
22632 of -mrecip= documentation.
22634 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22637 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
22638 correct reload handler if -m32 -mpowerpc64 is used.
22640 2015-01-06 Tom de Vries <tom@codesourcery.com>
22642 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
22644 2015-01-08 Christian Bruel <christian.bruel@st.com>
22647 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
22649 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22651 PR tree-optimization/63259
22652 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
22653 if optab exists for 16bit byteswap.
22655 2015-01-06 Jakub Jelinek <jakub@redhat.com>
22657 * opts.c (common_handle_option): Add support for
22658 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
22659 * doc/invoke.texi: Document -fno-sanitize=all,
22660 -f{,no-}sanitize-recover=all. Document that
22661 -fsanitize=float-cast-overflow is not enabled
22662 by -fsanitize=undefined. Fix up documentation
22663 of -f{,no-}sanitize-recover.
22665 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
22667 * config.gcc: Add Visium support.
22668 * configure.ac: Likewise.
22669 * configure: Regenerate.
22670 * doc/extend.texi (interrupt attribute): Add Visium.
22671 * doc/invoke.texi: Document Visium options.
22672 * doc/install.texi: Document Visium target.
22673 * doc/md.texi: Document Visium constraints.
22674 * common/config/visium: New directory.
22675 * config/visium: Likewise.
22677 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22679 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
22680 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
22682 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
22684 * combine.c (combine_validate_cost): Do not count the cost of a
22685 split I2 twice. Do not display it twice in the dump, either.
22687 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22689 Revert parts of r219199.
22690 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
22692 ([-Wtraditional]): Restore markup on <limits.h>.
22694 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
22697 * doc/invoke.texi: Document -Wsuggest-override.
22699 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
22701 PR rtl-optimization/64287
22702 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
22703 (process_options): Disable flag_ipa_ra if profiling.
22705 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
22707 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
22709 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
22711 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
22712 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
22713 put under #if TARGET_LOOPS guard.
22715 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
22717 * config/i386/i386.c (output_387_binary_op): Use std::swap.
22719 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
22721 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
22722 * rtl.h (refers_to_regno_p): Add overload.
22724 * bt-load.c: Likewise.
22725 * combine.c: Likewise.
22726 * df-scan.c: Likewise.
22727 * sched-deps.c: Likewise.
22728 * config/s390/s390.c: Likewise.
22729 * config/m32r/m32r.c: Likewise.
22730 * config/rs6000/spe.md: Likewise.
22731 * config/rs6000/rs6000.c: Likewise.
22732 * config/pa/pa.c: Likewise.
22733 * config/stormy16/stormy16.c: Likewise.
22734 * config/cris/cris.c: Likewise.
22735 * config/arc/arc.md: Likewise.
22736 * config/arc/arc.c: Likewise.
22737 * config/sh/sh.md: Likewise.
22738 * config/sh/sh.c: Likewise.
22739 * config/frv/frv.c: Likewise.
22741 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22744 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
22745 call as cleanup of the whole body.
22746 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
22747 * tsan.c (replace_func_exit): New function.
22748 (instrument_func_exit): Moved earlier.
22749 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
22750 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
22752 (tsan_pass): Don't call instrument_func_exit.
22753 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
22754 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
22758 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
22759 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
22760 it to libubsan handler instead of EXPR. Fold comparisons earlier,
22761 if the result is integer_zerop, return NULL_TREE.
22762 * convert.c (convert_to_integer): Pass expr as ARG.
22764 PR tree-optimization/64465
22765 * tree-inline.c (redirect_all_calls): During inlining
22766 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
22767 changed the stmt to a non-throwing call.
22769 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
22771 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
22772 etc markup throughout the file.
22774 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
22776 Enable experimental TSAN support for Ada.
22777 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
22779 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22781 PR tree-optimization/64494
22782 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
22783 clear SSA_NAME_ANTI_RANGE_P flag.
22785 2015-01-05 Marek Polacek <polacek@redhat.com>
22787 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
22789 2015-01-05 Jakub Jelinek <jakub@redhat.com>
22791 Update copyright years.
22793 * gcc.c (process_command): Update copyright notice dates.
22794 * gcov-dump.c: Ditto.
22796 * doc/cpp.texi: Bump @copying's copyright year.
22797 * doc/cppinternals.texi: Ditto.
22798 * doc/gcc.texi: Ditto.
22799 * doc/gccint.texi: Ditto.
22800 * doc/gcov.texi: Ditto.
22801 * doc/install.texi: Ditto.
22802 * doc/invoke.texi: Ditto.
22804 * auto-profile.c, auto-profile.h: Fix up Copyright line.
22806 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
22808 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
22810 ([-fvtable-verify], [-fvtv-debug]): Likewise.
22811 ([-Wabi]): Likewise.
22812 ([-fmessage-length]): Likewise.
22813 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
22814 ([-Wno-discarded-qualifiers]): Likewise.
22815 ([-Wnodiscarded-array-qualifiers]): Likewise.
22816 ([-Wno-virtual-move-assign]): Likewise.
22817 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
22818 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
22819 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
22820 ([-fsanitize-undefined-trap-on-error]): Likewise.
22821 ([-floop-interchange]): Likewise.
22822 ([-ftree-coalesce-inlined-vars]): Likewise.
22823 ([-fvect-cost-model]): Likewise.
22824 ([-flto]): Likewise.
22825 ([--param]): Likewise.
22826 (Spec Files): Likewise.
22827 ([-mstrict-align]): Likewise.
22828 ([-mfix-cortex-a53-835769]): Likewise.
22829 ([-march], [-mtune]): Likewise.
22830 ([-mpic-register]): Likewise.
22831 ([-munaligned-access]): Likewise.
22832 ([-msp8]): Likewise.
22833 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
22834 (AVR Built-in Macros): Likewise.
22835 ([-mpreferred-stack-boundary]): Likewise.
22836 ([-mtune-crtl]): Likewise.
22837 ([-mashf]): Likewise.
22838 ([-mmcu=]): Likewise.
22839 ([-minrt]): Likewise.
22840 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
22841 ([-mupper-regs]): Likewise.
22842 ([-matomic-model]): Likewise.
22843 ([-mdiv]): Likewise.
22844 ([-mzdcbranch]): Likewise.
22845 ([-mdisable-callt]): Likewise.
22846 ([-msoft-float]): Likewise.
22847 ([-m8byte-align]): Likewise.
22848 ([-fstack-reuse]): Likewise.
22850 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22852 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
22853 Fix markup, light copy-editing.
22854 ([-fauto-profile]): Rewrite to fix formatting and content
22857 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22859 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
22860 Copy-edit description.
22861 ([-fisolate-erroneous-paths-attribute]): Likewise.
22862 * common.opt (fisolate-erroneous-paths-dereference):
22863 Copy-edit description.
22864 (fisolate-erroneous-paths-attribute): Likewise.
22866 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22868 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
22871 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
22873 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
22874 ([-fvtv-debug]): Likewise.
22875 ([-Wc++-compat]): Likewise.
22876 ([-Wc++11-compat]): Likewise.
22877 ([-Wc++14-compat]): Likewise.
22878 ([-Wno-sized-deallocation]): Likewise.
22879 ([-femit-class-debug-always]): Likewise.
22880 ([-femit-struct-debug-detailed]): Likewise.
22881 ([-fno-keep-inline-dllexport]): Likewise.
22882 ([-fira-algorithm]): Likewise.
22883 ([-fira-region]): Likewise.
22884 ([-flra-remat]): Likewise.
22885 ([-fipa-ra]): Likewise.
22886 ([-fhoist-adjacent-loads]): Likewise.
22887 ([-fisolate-erroneous-paths-dereference]): Likewise.
22888 ([-fisolate-erroneous-paths-attribute]): Likewise.
22889 ([-ftree-switch-conversion]): Likewise.
22890 ([-ftree-tail-merge]): Likewise.
22891 ([-ftree-loop-if-convert]): Likewise.
22892 ([-ftree-loop-if-convert-stores]): Likewise.
22893 ([-ftree-loop-distribution]): Likewise.
22894 ([-ftree-loop-distribute-patterns]): Likewise.
22895 ([-flto-compression-level]): Likewise.
22896 ([-flto-report]): Likewise.
22897 ([-flto-report-wpa]): Likewise.
22898 ([-fuse-linker-plugin]): Likewise.
22899 ([-mfix-cortex-a53-835769]): Likewise.
22900 ([-mno-fix-cortex-a53-835769]): Likewise.
22901 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
22902 explicit listing; add a note to the discussion indicating they
22903 exist. Reorder table to group similar options. Add missing
22904 @opindex entries. Add @need commands throughout the table to
22905 allow it to be split across multiple pages.
22906 ([-m8bit-idiv]): Fix @opindex.
22907 ([-mavx256-split-unaligned-load]): Likewise.
22908 ([-mavx256-split-unaligned-store]): Likewise.
22909 ([-mstack-protector-guard]): Likewise.
22910 ([-mcpu=]): Likewise.
22911 ([-mcpu]): Likewise.
22912 ([-mpointer-size=]): Likewise.
22914 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
22916 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
22917 instead of `m' constraint. Likewise for unnamed movb comparison
22918 patterns using reg_before_reload_operand predicate.
22919 * config/pa/predicates.md (reg_before_reload_operand): Tighten
22920 predicate to reject register index and LO_SUM DLT memory forms
22923 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22925 * doc/invoke.texi (Option Summary): Fix spelling of
22926 -fdevirtualize-at-ltrans.
22927 ([-fdevirtualize]): Fix markup.
22928 ([-fdevirtualize-speculatively]): Fix typo.
22929 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
22930 implementor-speaky.
22931 * common.opt (fdevirtualize-at-ltrans): Likewise.
22932 * ipa-devirt.c: Fix typos in comments throughout the file.
22933 (ipa_devirt): Fix typos in format strings for dump output.
22935 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
22937 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
22938 discussion of defaults, light copy-editing.
22940 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22942 * tsan.c (instrument_expr): corrected previous checkin.
22944 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
22946 Instrument bit field and unaligned accesses for TSAN.
22947 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
22948 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
22949 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
22950 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
22951 unaligned memory regions.
22953 2015-01-01 Anthony Green <green@moxielogic.com>
22955 * config/moxie/predicates.md (moxie_general_movsrc_operand):
22956 Restrict move source register offsets to 16 bits.
22958 Copyright (C) 2015 Free Software Foundation, Inc.
22960 Copying and distribution of this file, with or without modification,
22961 are permitted in any medium without royalty provided the copyright
22962 notice and this notice are preserved.