Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / ChangeLog
blob396e969a616eeb9bea44c96ef6bf4cc18c446ecc
1 2015-07-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3         Backport from mainline r224602.
4         2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6         PR target/66569
7         * function.c (assign_bounds): Add arguments assign_regs,
8         assign_special, assign_bt.
9         (assign_parms): For vararg functions handle bounds in BT
10         and special slots after incoming vararg bounds.
12 2015-07-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
14         Backport from mainline r224601.
15         2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
17         PR middle-end/66568
18         * cfgexpand.c (expand_return): Handle missing bounds.
19         (expand_gimple_stmt_1): Likewise.
20         * tree-chkp.c (chkp_expand_zero_bounds): New.
21         * tree-chkp.h (chkp_expand_zero_bounds): New.
23 2015-07-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
25         Backport from mainline r224600.
26         2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
28         PR middle-end/66567
29         * ipa-chkp.c (chkp_maybe_create_clone): Require
30         functions to be instrumentable.
31         * tree-chkp.c (chkp_replace_function_pointer): Use
32         chkp_instrumentable_p instead of attribute check.
34 2015-07-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
36         Backport from mainline r223215.
37         2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
39         PR middle-end/66134
40         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
41         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
43 2015-07-23  Ilya Enkovich  <ilya.enkovich@intel.com>
45         Backport from mainline r223114.
46         2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
48         PR target/66048
49         * function.c (diddle_return_value_1): Process bounds first.
50         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
51         register.
53 2015-07-23  Ilya Enkovich  <ilya.enkovich@intel.com>
55         Backport from mainline r223216.
56         2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
58         * ipa-chkp.h (chkp_wrap_function): New.
59         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
60         (chkp_wrap_function_name): New.
61         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
62         to get wrapper name.
63         * lto-cgraph.c: Include ipa-chkp.h.
64         (input_cgraph_1): Avoid alias chain for wrappers.
66 2015-07-23  Ilya Enkovich  <ilya.enkovich@intel.com>
68         Backport from mainline r224074.
69         2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
71         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
72         reference when cloning alias node.
74 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
76         Backport from 2015-07-21 trunk r226046.
78         PR target/66956
79         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
80         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
82 2015-07-21  Richard Biener  <rguenther@suse.de>
84         PR tree-optimization/66948
85         * genmatch.c (capture_info::walk_match): Also recurse to
86         captures.  Properly compute expr state from captures of
87         captures.
89 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
91         PR target/66922
92         * config/i386/i386.c (ix86_expand_pinsr): Reject insertions
93         to misaligned positions.
95 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
97         PR target/66866
98         * config/i386/i386.c (ix86_expand_pinsr): Reject non-lowpart
99         source subregs.
101 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
103         Backport from mainline:
104         2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
106         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
107         and gen_higpart instead of gen_rtx_SUBREG.
108         * config/i386/i386.md
109         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
110         (read-modify peephole2): Use gen_lowpart instead of
111         gen_rtx_SUBREG for operand 5.
113 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
115         Backport from mainline:
116         2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
118         PR target/66814
119         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
120         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
121         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
122         {GENERAL,SSE,MMX}_REG_P where appropriate.
124 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
126         Backport from mainline:
127         2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
129         PR rtl-optimization/66838
130         * postreload.c (reload_cse_move2add): Also process
131         CALL_INSN_FUNCTION_USAGE when resetting information of
132         call-clobbered registers.
134 2015-07-16  Martin Liska  <mliska@suse.cz>
136         PR ipa/66896
137         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
138         dst_ctx if it does not exist.
140 2015-07-16  Richard Biener  <rguenther@suse.de>
142         * BASE-VER: Set to 5.2.1.
144 2015-07-16  Release Manager
146         * GCC 5.2.0 released.
148 2015-07-15  Renlin Li  <renlin.li@arm.com>
150         Backport from mainline.
151         2015-07-13  Renlin Li  <renlin.li@arm.com>
153         PR rtl/66556
154         * simplify-rtx.c (simplify_const_relational_operation): Add
155         side_effects_p checks.
157 2015-07-15  Thomas Schwinge  <thomas@codesourcery.com>
159         Backport trunk r225560:
161         2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
163         PR libgomp/65099
164         * config/nvptx/mkoffload.c (main): Create an offload image only in
165         64-bit configurations.
167         Backport trunk r222583:
169         2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
171         PR libgomp/65099
172         * config/nvptx/mkoffload.c (target_ilp32): New variable.
173         (main): Set it depending on "-foffload-abi=[...]".
174         (compile_native, main): Use it to pass "-m32" or "-m64" to the
175         compiler.
177         Backport trunk r223805:
179         2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
181         * builtins.c (expand_builtin_acc_on_device): Mark parameters
182         with ATTRIBUTE_UNUSED.
184         Backport trunk r223801:
186         2015-05-28  Julian Brown  <julian@codesourcery.com>
188         PR libgomp/65742
190         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
191         sequence for !ACCEL_COMPILER.
193 2015-07-14  Matthias Klose  <doko@ubuntu.com>
195         PR target/66840
196         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
198 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
200         PR middle-end/66820
201         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
202         or ORT_TASK contexts.
203         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
204         is non-zero.
206         Backported from mainline
207         2015-07-09  Jakub Jelinek  <jakub@redhat.com>
209         PR middle-end/66633
210         * tree-nested.c (get_static_chain): Or in a flag into
211         info->static_chain_added.
212         (get_frame_field, get_nonlocal_debug_decl): Likewise.
213         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
214         2015-07-01 changes.
215         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
216         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
217         add it to clauses.
219 2015-07-10  Vladimir Makarov  <vmakarov@redhat.com>
221         Backport from mainline
222         2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
224         PR rtl-optimization/66782
225         * lra-int.h (struct lra_insn_recog_data): Add comment about
226         clobbered hard regs for arg_hard_regs.
227         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
228         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
229         Add condition for processing used hard regs.
230         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
231         Process clobbered hard regs.
233 2015-07-10  Richard Biener  <rguenther@suse.de>
235         Backport from mainline
236         2015-07-10  Richard Biener  <rguenther@suse.de>
238         PR tree-optimization/66823
239         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
240         inverted predicate.
242         2015-07-08  Richard Biener  <rguenther@suse.de>
244         PR middle-end/43341
245         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
247         2015-07-08  Richard Biener  <rguenther@suse.de>
249         PR tree-optimization/66794
250         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
251         Free post-dominators.
253 2015-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
255         Backport form mainline
256         2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
258         PR target/66780
259         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
260         change for target/65249.
262 2015-07-09  Iain Sandoe  <iain@codesourcery.com>
264         PR target/66523
265         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
266         names from preservation.
268 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
270         Backport from mainline r225465
271         2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
273         PR target/65956
274         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
275         alignment attribute, exploring one level down for records and arrays.
277 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
279         Backport from mainline r225461
280         2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
282         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
284 2015-07-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
286         Backport from mainline r224725
287         2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
289         PR target/65914
290         * config/rs6000/predicates.md (altivec_register_operand): Permit
291         virtual stack registers.
292         (vsx_register_operand): Likewise.
293         (vfloat_operand): Likewise.
294         (vint_operand): Likewise.
295         (vlogical_operand): Likewise.
297 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
299         PR target/66114
300         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
301         of register_operand.  Remove constraint.
303 2015-07-03  Jack Howarth  <howarth.at.gcc@gmail.com>
305         PR target/66509
306         * configure.ac: Fix filds and fildq test for 64-bit.
307         * configure: Regenerated.
309 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
311         Backport from mainline.
312         2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
314         PR tree-optimization/66119
315         * toplev.c (process_options): Don't set up default values for
316         the sra_max_scalarization_size_{speed,size} parameters.
317         * tree-sra (analyze_all_variable_accesses): If no values
318         have been set for the sra_max_scalarization_size_{speed,size}
319         parameters, call get_move_ratio to get target defaults.
321 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
323         PR target/37072
324         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
325         is not actually the default on FreeBSD.
327 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
329         Backport from mainline
330         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
332         * config/s390/vx-builtins.md
333         ("vec_scatter_element<mode>_<non_vec_int>")
334         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
335         attribute with bhfgq.
337 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
339         Backport from mainline
340         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
342         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
344 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
346         Backport from mainline
347         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
349         * config/s390/s390-builtin-types.def: Add flag to indicate the
350         options under which the function type is needed.
351         * config/s390/s390-builtins.def: Add flag to indicate the options
352         under which the builtin is enabled.
353         * config/s390/s390-builtins.h: Add flags parameter to macro
354         definitions.
355         (bflags_for_builtin): New function.
356         (flags_for_builtin): Renamed to ...
357         (opflags_for_builtin): ... this.
358         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
359         flags_for_builtin to bflags_for_builtin and
360         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
361         * config/s390/s390.c: Add initialization of bflags_builtin and
362         opflags_builtin arrays.
363         Remove code for flags_builtin.
364         (s390_init_builtins): Only create builtin function types if one of
365         their flags is active.
366         Only create builtins if all of their flags are active.
367         (s390_expand_builtin): Rename flags_for_builtin to
368         opflags_for_builtin.
370 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
372         Backport from mainline
373         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
375         * config/s390/vecintrin.h: Remove internal builtins.
377 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
379         Backport from mainline
380         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
382         * config/s390/s390.c (s390_secondary_reload): Fix check for
383         GENERAL_REGS register class.
385 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
387         Backport from mainline
388         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
390         * config/s390/s390.c (s390_support_vector_misalignment): Call
391         default implementation for !TARGET_VX.
393 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
395         Backport from mainline
396         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
398         * config/s390/s390.c (s390_legitimate_constant_p): Add
399         TARGET_VX check.
401 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
403         Backport from mainline
404         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
406         * config/s390/s390.c (s390_vector_abi): New variable definition.
407         (s390_check_type_for_vector_abi): New function.
408         (TARGET_ASM_FILE_END): New macro definition.
409         (s390_asm_file_end): New function.
410         (s390_function_arg): Call s390_check_type_for_vector_abi.
411         (s390_gimplify_va_arg): Likewise.
412         * configure: Regenerate.
413         * configure.ac: Check for .gnu_attribute Binutils feature.
415 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
417         Backport from mainline
418         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
420         * config/s390/s390.c (s390_vector_bool_type_p): New function.
421         (s390_invalid_binary_op): New function.
422         (TARGET_INVALID_BINARY_OP): Define macro.
424 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
426         Backport from mainline
427         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
429         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
430         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
431         * config/s390/s390-builtin-types.def: New file.
432         * config/s390/s390-builtins.def: New file.
433         * config/s390/s390-builtins.h: New file.
434         * config/s390/s390-c.c: New file.
435         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
436         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
437         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
438         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
439         prototypes.
440         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
441         Include.
442         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
443         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
444         variable definitions.
445         (s390_const_operand_ok): New function.
446         (s390_expand_builtin): Rewrite.
447         (s390_init_builtins): New function.
448         (s390_handle_vectorbool_attribute): New function.
449         (s390_attribute_table): Add s390_vector_bool attribute.
450         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
451         (s390_branch_condition_mask): Generate masks for new modes.
452         (s390_expand_vec_compare_cc): New function.
453         (s390_mangle_type): Add mangling for vector bool types.
454         (enum s390_builtin): Remove.
455         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
456         efpc builtins.
457         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
458         s390_cpu_cpp_builtins.
459         (REGISTER_TARGET_PRAGMAS): New macro.
460         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
461         (insn_cmp mode attribute): Add new CC modes.
462         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
463         (lcbb): New pattern definition.
464         * config/s390/s390intrin.h: Include vecintrin.h.
465         * config/s390/t-s390: New file.
466         * config/s390/vecintrin.h: New file.
467         * config/s390/vector.md: Include vx-builtins.md.
468         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
469         support.
471 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
473         Backport from mainline
474         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
476         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
477         CCVFHE.
478         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
479         (s390_select_ccmode): Likewise.
480         (s390_canonicalize_comparison): Swap operands if necessary.
481         (s390_expand_vec_compare_scalar): Expand DFmode compare using
482         single element vector instructions.
483         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
484         (s390_branch_condition_mask): Generate CC masks for the new modes.
485         * config/s390/s390.md (v0, vf, vd): New mode attributes.
486         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
487         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
488         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
489         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
490         (*extend<DSF:mode><BFP:mode>2): New insn definition.
491         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
492         (extend<DSF:mode><BFP:mode>2): Turn into expander.
493         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
494         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
495         (sqrt<mode>2): Add vector instruction.
497 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
499         Backport from mainline
500         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
502         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
503         constraints.
504         * config/s390/predicates.md (const0_operand, constm1_operand)
505         (constable_operand): Accept vector operands.
506         * config/s390/s390-modes.def: Add supported vector modes.
507         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
508         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
509         (s390_bytemask_vector_p, s390_expand_vec_strlen)
510         (s390_expand_vec_compare, s390_expand_vcond)
511         (s390_expand_vec_init): Add prototypes.
512         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
513         (s390_vector_mode_supported_p): New function.
514         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
515         (s390_contiguous_bitmask_vector_p): New function.
516         (s390_bytemask_vector_p): New function.
517         (s390_split_ok_p): Vector regs don't work either.
518         (regclass_map): Add VEC_REGS.
519         (s390_legitimate_constant_p): Handle vector constants.
520         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
521         (legitimate_reload_vector_constant_p): New function.
522         (s390_preferred_reload_class): Handle CONST_VECTOR.
523         (s390_reload_symref_address):  Likewise.
524         (s390_secondary_reload): Vector memory instructions only support
525         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
526         (s390_emit_ccraw_jump): New function.
527         (s390_expand_vec_strlen): New function.
528         (s390_expand_vec_compare): New function.
529         (s390_expand_vcond): New function.
530         (s390_expand_vec_init): New function.
531         (s390_dwarf_frame_reg_mode): New function.
532         (print_operand): Handle addresses with 'O' and 'R' constraints.
533         (NR_C_MODES, constant_modes): Add vector modes.
534         (s390_output_pool_entry): Handle vector constants.
535         (s390_hard_regno_mode_ok): Handle vector registers.
536         (s390_class_max_nregs): Likewise.
537         (s390_cannot_change_mode_class): New function.
538         (s390_invalid_arg_for_unprototyped_fn): New function.
539         (s390_function_arg_vector): New function.
540         (s390_function_arg_float): Remove size variable.
541         (s390_pass_by_reference): Handle vector arguments.
542         (s390_function_arg_advance): Likewise.
543         (s390_function_arg): Likewise.
544         (s390_return_in_memory): Vector values are returned in a VR if
545         possible.
546         (s390_function_and_libcall_value): Handle vector arguments.
547         (s390_gimplify_va_arg): Likewise.
548         (s390_call_saved_register_used): Consider the arguments named.
549         (s390_conditional_register_usage): Disable v16-v31 for non-vec
550         targets.
551         (s390_preferred_simd_mode): New function.
552         (s390_support_vector_misalignment): New function.
553         (s390_vector_alignment): New function.
554         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
555         (TARGET_VECTOR_MODE_SUPPORTED_P)
556         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
557         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
558         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
559         (TARGET_VECTOR_ALIGNMENT): Define target macro.
560         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
561         (FIRST_PSEUDO_REGISTER): Increase value.
562         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
563         (VECTOR_REG_P): Define macros.
564         (FIXED_REGISTERS, CALL_USED_REGISTERS)
565         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
566         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
567         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
568         Add vector registers.
569         (CANNOT_CHANGE_MODE_CLASS): Call C function.
570         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
571         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
572         memory.
573         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
574         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
575         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
576         (VR*_REGNUM): New constants.
577         (ALL): New mode iterator.
578         (INTALL): Remove mode iterator.
579         Include vector.md.
580         (movti): Implement TImode moves for VRs.
581         Disable TImode splitter for VR targets.
582         Implement splitting TImode GPR<->VR moves.
583         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
584         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
585         reload<mode>_la_in, reload<mode>_la_out.
586         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
587         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
588         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
589         (mov<mode> SF SD): Prefer lder, lde for loading.
590         Add lrl and strl instructions.
591         Add vector instructions.
592         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
593         Call s390_expand_vec_strlen on z13.
594         (*cc_to_int): Change predicate to nonimmediate_operand.
595         (addti3): Rename to *addti3.  New expander.
596         (subti3): Rename to *subti3.  New expander.
597         * config/s390/vector.md: New file.
599 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
601         Backport from mainline
602         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
604         * common/config/s390/s390-common.c (processor_flags_table): Add
605         z13.
606         * config.gcc: Add z13.
607         * config/s390/s390-opts.h (enum processor_type): Add
608         PROCESSOR_2964_Z13.
609         * config/s390/s390.c (s390_adjust_priority): Check for
610         PROCESSOR_2964_Z13.
611         (s390_reorg): Likewise.
612         (s390_sched_reorder): Likewise.
613         (s390_sched_variable_issue): Likewise.
614         (s390_loop_unroll_adjust): Likewise.
615         (s390_option_override): Likewise. Default to -mvx when available.
616         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
617         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
618         (TARGET_VX_ABI): Define macros.
619         macros.
620         (TARGET_DEFAULT): Add MASK_OPT_VX.
621         * config/s390/s390.md ("cpu" attribute): Add z13.
622         ("cpu_facility" attribute): Add vec.
623         * config/s390/s390.opt (processor_type): Add z13.
624         (mvx): New options.
625         * doc/invoke.texi: Add z13 option for -march.
627 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
629         Backport from mainline
630         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
632         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
634 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
636         Backport from mainline
637         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
639         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
640         alternative_mask to uint64_t.
642 2015-07-02  Jakub Jelinek  <jakub@redhat.com>
644         Backported from mainline
645         2015-06-08  Jakub Jelinek  <jakub@redhat.com>
647         * genattrtab.c (insn_alternatives): Change type from int *
648         to uint64_t *.
649         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
650         (get_attr_value): Change type of num_alt to uint64_t.
651         (compute_alternative_mask): Change return type from
652         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
653         (make_alternative_compare, mk_attr_alt): Change argument type
654         from int to uint64_t.
655         (simplify_test_exp): Change type of i from int to uint64_t.
656         Shift ((uint64_t) 1) instead of 1 up.
657         (main): Adjust oballocvec first argument from int to uint64_t.
658         Shift ((uint64_t) 1) instead of 1 up.
660 2015-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
662         2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
663         PR target/64833
664         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
665         flag_pic is set.
667 2015-07-01  David Malcolm  <dmalcolm@redhat.com>
669         Backport from mainline r225207
670         2015-06-30  David Malcolm  <dmalcolm@redhat.com>
672         * typed-splay-tree.h: New file.
674 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
676         PR middle-end/66633
677         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
678         to true if the function is nested and if not optimizing.
679         (convert_local_omp_clauses): Initialize need_frame to true if the
680         function contains nested functions and if not optimizing.
682 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
684         PR middle-end/66702
685         * omp-low.c (simd_clone_adjust): Handle addressable linear
686         or uniform parameters or non-gimple type uniform parameters.
688 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
690         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
691         -mfix-ut699 is not specified.
692         (leon3_load): Rename into...
693         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
694         is specified.
696 2015-06-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
698         Backport from mainline:
699         2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
701         PR target/66136
702         * config/aarch64/geniterators.sh: Rewrite in awk.
704 2015-06-27  James Greenhalgh  <james.greenhalgh@arm.com>
706         Backport from mainline r224672.
707         2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
709         * config/vax/vax.md: Adjust sign/zero extend patterns to
710         handle SUBREGs in operands[1].
712 2015-06-27  Oleg Endo  <olegendo@gcc.gnu.org>
714         Backport from mainline
715         2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
717         PR target/65979
718         PR target/66611
719         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
720         the replacement insn will work.
722 2015-06-26  Martin Jambor  <mjambor@suse.cz>
724         PR debug/66301
725         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
726         NULL instead of calling dump_enabled_p.
728 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
729             Segher Boessenkool  <segher@kernel.crashing.org>
731         PR target/66412
732         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
733         before doing PUT_MODE or PUT_CODE on operands to avoid
734         in-place RTX modification.
736 2015-06-25  Andreas Tobler  <andreast@gcc.gnu.org>
738         Backport from mainline
739         2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
741         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
742         pie executables.
743         (FBSD_ENDFILE_SPEC): Likewise.
744         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
745         config/freebsd-spec.h.
746         (ENDFILE_SPEC): Likewise.
748 2015-06-25  Kaz Kojima  <kkojima@gcc.gnu.org>
750         Backport from mainline
751         2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
753         PR target/66563
754         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
755         an additional element of the unspec vector.  Modify indices
756         of operands.
757         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
758         * config/sh/sh.c (prepare_move_operands): Pass incremented
759         const_int to gen_GOTaddr2picreg.
760         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
762 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
764         Backport from mainline.
765         2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
766         PR target/63408
767         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
768         for negative numbers.
770 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
772         PR target/66200
773         * config/aarch64/aarch64.c (TARGET_RELAXED_ORDERING): Define.
775 2015-06-24  Renlin Li  <renlin.li@arm.com>
777         Backport from mainline
778         2015-06-24  Renlin Li  <renlin.li@arm.com>
780         * varasm.c (emit_local): Use unsigned int for align variable.
782 2015-06-23  Richard Biener  <rguenther@suse.de>
784         Backport from mainline
785         2015-06-09  Richard Biener  <rguenther@suse.de>
787         PR middle-end/66413
788         * tree-inline.c (insert_init_debug_bind): Unshare value.
790 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
792         PR 65711
793         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
794         '-dynamic-linker' within %{!shared: ...}.
796 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
798         PR bootstrap/63740
799         * lra-lives.c (process_bb_lives): Check insn copying the same
800         reload pseudo and don't create a copy for it.
802 2015-06-22  Richard Biener  <rguenther@suse.de>
804         Backport from mainline
805         2015-06-08  Richard Biener  <rguenther@suse.de>
807         PR tree-optimization/66422
808         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
809         block after inserted gcc_unreachable.
811 2015-06-21  Marek Polacek  <polacek@redhat.com>
813         Backport from mainline
814         2015-06-20  Marek Polacek  <polacek@redhat.com>
816         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
818 2015-06-18  Richard Biener  <rguenther@suse.de>
820         Backport from mainline
821         2015-06-03  Richard Biener  <rguenther@suse.de>
823         PR tree-optimization/66375
824         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
825         add to the evolution before following SSA edges.
827 2015-06-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
829         Backport from mainline r224414.
830         2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
832         * common/config/i386/i386-common.c
833         (OPTION_MASK_ISA_MWAITX_SET): New.
834         (ix86_handle_option): Handle mwaitx.
835         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
836         (x86_64-*-*): Likewise.
837         * config/i386/mwaitxintrin.h: New header.
838         * config/i386/cpuid.h (bit_MWAITX):  Define.
839          * config/i386/driver-i386.c (host_detect_local_cpu): Detect
840         MWAITX support.
841          * config/i386/i386.opt (mwaitx): New.
842         * config/i386/i386-builtin-types.def
843         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
844         * config/i386/i386-c.c: Define __MWAITX__ if needed.
845         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
846         (PTA_MWAITX): New.
847         (ix86_option_override_internal): Handle new option.
848         (processor_alias_table): Added PTA_MWAITX.
849         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
850         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
851         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
852         IX86_BUILTIN_MONITORX  built-ins.
853         * config/i386/i386.h (TARGET_MWAITX): New.
854         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
855         UNSPEC_MONITORX.
856         (mwaitx):  New pattern.
857         (monitorx_<mode>): New pattern.
858         * config/i386/x86intrin.h: Include mwaitxintrin.h.
859         * doc/extend.texi: Document monitorx and mwaitx builtins.
860         * doc/invoke.texi: Document -mmwaitx option.
862 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
864         PR middle-end/66429
865         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
866         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
867         and has_force_vectorize_loops flags from cfun into
868         child_cfun.
869         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
870         if simduid is non-NULL.
871         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
872         * passes.def (pass_simduid_cleanup): Add new pass after loop
873         passes.
874         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
875         indirection from htab argument's type.
876         (shrink_simd_arrays): New function.
877         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
878         Don't call adjust_simduid_builtins if there are no loops.
879         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
880         (pass_simduid_cleanup::execute): New method.
881         (make_pass_simduid_cleanup): New function.
883 2015-06-17  Ilya Enkovich  <ilya.enkovich@intel.com>
885         Backport from mainline r223929.
886         2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
888         PR target/65527
889         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
890         redirection for instrumented calls.
891         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
892         (append_compiler_options): Append -fcheck-pointer-bounds.
893         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
894         (chkp_redirect_edge): New.
895         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
896         (chkp_redirect_edge): New.
898 2015-06-17  Ilya Enkovich  <ilya.enkovich@intel.com>
900         Backport from mainline r224063.
901         2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
903         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
904         remove instumentation thunks calling reachable functions.
905         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
906         * lto/lto-partition.c (privatize_symbol_name_1): New.
907         (privatize_symbol_name): Privatize both decl and orig_decl
908         names for instrumented functions.
909         * cgraph.c (cgraph_node::verify_node): Add transparent
910         transparent alias chain check for instrumented node.
912 2015-06-16  Jim Wilson  <jim.wilson@linaro.org>
914         Backport from mainline
915         2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
917         PR target/66258
918         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
919         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
920         (aarch64_secondary_reload): Likewise
921         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
922         to !TARGET_FLOAT.
923         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
924         Likewise.
926 2015-06-16  Richard Biener  <rguenther@suse.de>
928         Revert
929         2015-06-01  Richard Biener  <rguenther@suse.de>
931         Backport from mainline
932         2015-05-26  Michael Matz  <matz@suse.de>
934         PR middle-end/66251
935         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
936         STMT_VINFO_VEC_STMT, also with SLP.
938         2015-05-22  Richard Biener  <rguenther@suse.de>
940         PR tree-optimization/66251
941         * tree-vect-stmts.c (vectorizable_conversion): Properly
942         set STMT_VINFO_VEC_STMT even for the SLP case.
944 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
946         Backport from mainline:
947         2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
949                 * dbxout.c (xcoff_debug_hooks): Provide a function for
950                 register_main_translation_unit hook.
952 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
954         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
955         CONST_INT for goto.
957 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
959         PR bootstrap/66252
960         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
961         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
962         (*addx_extend_sp32): Fix pasto.
963         (*subx_extend): Rename into...
964         (*subx_extend_sp32): ...this.
965         (*adddi3_extend_sp32): Add earlyclobber.
966         (*subdi3_insn_sp32): Likewise.
967         (*subdi3_extend_sp32): Likewise.
968         (*and_not_di_sp32): Likewise.
969         (*or_not_di_sp32): Likewise.
970         (*xor_not_di_sp32): Likewise.
971         (*negdi2_sp32): Likewise.
972         (*one_cmpldi2_sp32): Likewise.
974 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
976         * debug.h (struct gcc_debug_hooks): Add a
977         register_main_translation_unit hook.
978         * debug.c (do_nothing_debug_hooks): Provide a function for this
979         new hook.
980         * dbxout.c (dbx_debug_hooks): Likewise.
981         * sdbout.c (sdb_debug_hooks): Likewise.
982         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
983         * dwarf2out.c (main_translation_unit): New global variable.
984         (dwarf2out_register_main_translation_unit): New function
985         implementing the new hook.
986         (dwarf2_debug_hooks): Assign
987         dwarf2out_register_main_translation_unit to this new hook.
988         (dwarf2out_init): Associate any main translation unit to
989         comp_unit_die ().
991 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
993         PR target/66473
994         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
995         to prepare mask operand for AVX512 modes.
997 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
999         Backport from mainline:
1000         2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1002         PR target/66474
1003         * doc/md.texi (Machine Constraints): Document that on the PowerPC
1004         if you use a constraint that targets a VSX register, you must use
1005         %x<n> in the template.
1007 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
1009         PR target/66470
1010         * config/i386/i386.c (ix86_split_long_move): For collisions
1011         involving direct tls segment refs, move the UNSPEC_TP possibly
1012         wrapped in ZERO_EXTEND out of the address for lea, to each of
1013         the memory loads.
1015 2015-06-08  Uros Bizjak  <ubizjak@gmail.com>
1017         Backport from mainline:
1018         2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
1020         PR target/66275
1021         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
1022         to determine current function ABI.
1023         (ix86_function_value_regno_p): Ditto.
1025 2015-06-08  Tom de Vries  <tom@codesourcery.com>
1027         backport from mainline:
1028         2015-06-08  Tom de Vries  <tom@codesourcery.com>
1030         PR rtl-optimization/66444
1031         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
1032         call_used_regs.
1034 2015-06-08  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1036         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
1038 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
1040         PR bootstrap/66319
1041         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
1042         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
1043         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
1044         later.
1045         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
1046         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
1047         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
1048         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
1049         and non iso if unix2003.
1051 2015-06-03  Richard Biener  <rguenther@suse.de>
1053         Backport from mainline
1054         2015-06-02  Richard Biener  <rguenther@suse.de>
1056         PR debug/65549
1057         * dwarf2out.c (lookup_context_die): New function.
1058         (resolve_addr): Avoid forcing a full DIE for the
1059         target of a DW_TAG_GNU_call_site during late compilation.
1060         Instead create a stub DIE without a type if we have a
1061         context DIE present.
1063         2015-06-01  Richard Biener  <rguenther@suse.de>
1065         PR tree-optimization/66280
1066         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
1067         def-use walking.
1069         2015-05-27  Richard Biener  <rguenther@suse.de>
1071         PR tree-optimization/66272
1072         Revert parts of
1073         2014-08-15  Richard Biener  <rguenther@suse.de>
1075         PR tree-optimization/62031
1076         * tree-data-ref.c (dr_analyze_indices): Do not set
1077         DR_UNCONSTRAINED_BASE.
1078         (dr_may_alias_p): All indirect accesses have to go the
1079         formerly DR_UNCONSTRAINED_BASE path.
1080         * tree-data-ref.h (struct indices): Remove
1081         unconstrained_base member.
1082         (DR_UNCONSTRAINED_BASE): Remove.
1084         2015-05-21  Richard Biener  <rguenther@suse.de>
1086         PR c++/66211
1087         * match.pd: Guard pattern optimzing (int)(float)int
1088         conversions to apply only on GIMPLE.
1090         2015-05-13  Richard Biener  <rguenther@suse.de>
1092         PR tree-optimization/66123
1093         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
1094         a taken edge.
1096 2015-06-02  Renlin Li  <renlin.li@arm.com>
1098         Backport from mainline
1099         2015-04-30  Renlin Li  <renlin.li@arm.com>
1101         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
1102         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
1104 2015-06-02  Marek Polacek  <polacek@redhat.com>
1106         Backport from mainline
1107         2015-06-02  Marek Polacek  <polacek@redhat.com>
1109         PR middle-end/66345
1110         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
1111         get_maxval_strlen does not produce an INTEGER_CST.
1113 2015-06-02  Alan Modra  <amodra@gmail.com>
1115         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
1116         2014-08-11 change.
1118 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1120         Backport from mainline
1121         2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1123         PR target/66215
1124         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
1125         with -mhotpatch=.
1127 2015-06-01  Richard Biener  <rguenther@suse.de>
1129         Backport from mainline
1130         2015-05-26  Michael Matz  <matz@suse.de>
1132         PR middle-end/66251
1133         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
1134         STMT_VINFO_VEC_STMT, also with SLP.
1136         2015-05-22  Richard Biener  <rguenther@suse.de>
1138         PR tree-optimization/66251
1139         * tree-vect-stmts.c (vectorizable_conversion): Properly
1140         set STMT_VINFO_VEC_STMT even for the SLP case.
1142 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1144         * config/nios2/linux.h (CPP_SPEC): Define.
1146 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1148         * config/microblaze/linux.h (CPP_SPEC): Define.
1150 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1152         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
1153         -pthread is specified.
1155 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
1157         PR target/66148
1158         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
1159         REG_EQUAL note when doing insert.
1161 2015-05-27  Richard Biener  <rguenther@suse.de>
1163         Backport from mainline
1164         2015-05-12  Richard Biener  <rguenther@suse.de>
1166         PR tree-optimization/66101
1167         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
1168         fixup if we turn a loop exit edge to a fallthru edge.
1170 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
1172         PR target/65979
1173         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
1174         take into account the case that operands[1] and operands[2]
1175         are the same register.
1177 2015-05-22  Jakub Jelinek  <jakub@redhat.com>
1179         Backported from mainline
1180         2015-05-21  Jakub Jelinek  <jakub@redhat.com>
1182         PR tree-optimization/66233
1183         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
1184         Simplify.
1186         2015-05-19  Jakub Jelinek  <jakub@redhat.com>
1188         PR middle-end/66199
1189         * tree.h (OMP_TEAMS_COMBINED): Define.
1190         * gimplify.c (enum gimplify_omp_var_data): Add
1191         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
1192         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
1193         (omp_notice_variable): Accept both ORT_TEAMS
1194         and ORT_COMBINED_TEAMS.  Don't recurse if
1195         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
1196         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
1197         GOVD_FIRSTPRIVATE.
1198         (omp_no_lastprivate): New function.
1199         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
1200         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
1201         notice_outer and set appropriate bits, otherwise make
1202         sure default(none) combined constructs won't complain.
1203         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
1204         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
1205         omp_no_lastprivate either remove the clause or turn it
1206         into OMP_CLAUSE_PRIVATE.
1207         (gimplify_omp_for): Fix up handling of implicit
1208         lastprivate or linear iterators.
1209         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
1210         ORT_COMBINED_TEAMS.
1211         * omp-low.c (lower_omp_for_lastprivate): For combined
1212         for simd use fd.loop.n2 from the for rather than simd.
1214         2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1216         PR middle-end/66133
1217         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1218         make sure it is never noreturn, even when the task body does not
1219         return.
1220         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1221         right before GIMPLE_OMP_RETURN.
1222         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1223         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
1224         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1226 2015-05-21  Sandra Loosemore  <sandra@codesourcery.com>
1228         Backport from mainline r223418:
1229         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
1230         to build a biarch toolchain again.
1232 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
1234         Backport from mainline r223471
1235         2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
1237         PR middle-end/66221
1238         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
1239         build_distinct_type_copy to copy bounds.
1241 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
1243         PR target/66174
1244         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
1245         QImode inner modes for TARGET_AVX512BW.  Force mask operand
1246         to a register for AVX512F modes.
1248 2015-04-16  Jan Hubicka  <hubicka@ucw.cz>
1250         PR target/66047
1251         * i386.c (ix86_function_sseregparm): Only return -1 if local function
1252         with implied regparm is called from -mno-sse function.
1253         (init_cumulative_args): Output error if ix86_function_sseregparm
1254         return -1 and SSE register would be needed.
1255         (function_arg_advance_32): Likewise.
1256         (function_arg_32): Likewise.
1257         * i386.h (ix86_args): Add decl field.
1259 2015-04-16  Jan Hubicka  <hubicka@ucw.cz>
1261         PR target/66047
1262         * i386.c (ix86_function_sseregparm): Only return -1 if local function
1263         with implied regparm is called from -mno-sse function.
1264         (init_cumulative_args): Output error if ix86_function_sseregparm
1265         return -1 and SSE register would be needed.
1266         (function_arg_advance_32): Likewise.
1267         (function_arg_32): Likewise.
1268         * i386.h (ix86_args): Add decl field.
1269         * gcc.target/i386/pr66047.c: New testcase.
1271 2015-04-16  Jan Hubicka  <hubicka@ucw.cz>
1273         PR ipa/65873
1274         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
1275         inlines across optimization boundary; be tolerant about COMDAT;
1276         allow inlining across -fstrict-aliasing boundary.
1278 2015-05-16  Segher Boessenkool  <segher@kernel.crashing.org>
1280         Backport from mainline
1281         2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1283         PR rtl-optimization/30967
1284         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1285         destination mode for the cost of scc patterns.
1287 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
1289         PR target/66140
1290         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
1291         replacements in memory addresses.
1292         (get_unaligned_address): Ditto.
1294 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1296         Backport from mainline
1297         2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1299         PR target/65955
1300         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
1301         REG before taking its REGNO.
1303 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1305         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
1306         and zEC12_simple_fp.
1307         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
1308         to 1.
1310 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1312         Backport from mainline
1313         2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1315         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
1316         Increase to 128.
1317         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
1318         at '.'.  Assert that there's enough space for everything.
1320 2015-05-12  Yvan Roux  <yvan.roux@linaro.org>
1322         Backport from mainline.
1323         2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
1325         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
1326         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
1327         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
1328         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
1329         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
1330         * configure: Regenerate.
1331         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
1332         * doc/install.texi (aarch64*-*-*): Document new
1333         --enable-fix-cortex-a53-843419 option.
1334         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
1335         and -mno-fix-cortex-a53-843419 options.
1337 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
1339         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
1340         when looking for memory references.
1342 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
1344         PR target/65780
1345         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
1346         default_binds_local_p_2.
1347         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
1348         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
1350 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
1352         PR target/66015
1353         * config/alpha/alpha.c (alpha_override_options_after_change): New.
1354         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
1355         (alpha_override_options): Move align_loops, align_jumps and
1356         align_functions handling into alpha_override_options_after_change.
1358 2015-05-06  Uros Bizjak  <ubizjak@gmail.com>
1360         PR target/65990
1361         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
1362         if rep_8byte stringop strategy was specified for 32-bit target.
1364 2015-05-06  Christian Bruel  <christian.bruel@st.com>
1366         PR target/66015
1367         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
1368         align_jumps, align_functions into aarch64_override_options_after_change.
1370 2015-05-05  Peter Bergner  <bergner@vnet.ibm.com>
1372         Backport from mainline.
1373         2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
1375         PR target/64579
1376         * config/rs6000/htm.md: Remove all define_expands.
1377         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
1378         UNSPECV_HTM_TABORTWCI): Remove.
1379         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
1380         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
1381         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
1382         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
1383         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
1384         tabortwci_internal): Remove define_insns.
1385         (tabort<wd>c, tabort<wd>ci): New define_insns.
1386         (tabort): Use gpc_reg_operand.
1387         (tcheck): Remove operand.
1388         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
1389         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
1390         expected value.
1391         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
1392         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
1393         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
1394         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
1395         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
1396         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
1397         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
1398         (tcheck): Remove builtin argument.
1399         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
1400         not TARGET_64BIT.
1401         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
1402         tabortdc and tabortdci builtins when not in 64-bit mode.
1403         Modify code to handle the loss of the HTM define_expands.
1404         Emit code to copy the CR register to TARGET.
1405         (htm_init_builtins): Modify code to handle the loss of the HTM
1406         define_expands.
1407         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
1408         (RS6000_BTC_64BIT): Likewise.
1409         (RS6000_BTC_CR): New macro.
1410         * doc/extend.texi: Update documentation for htm builtins.
1412 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
1414         PR tree-optimization/65984
1415         * ubsan.c: Include tree-cfg.h.
1416         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
1417         stmt_could_throw_p test, rename can_throw variable to ends_bb.
1419         * Makefile.in (PATCHLEVEL_c): New variable.
1420         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
1421         expand the same way as if DEVPHASE_c was non-empty.
1423 2015-05-04  Kai Tietz  <ktietz@redhat.com>
1425         Backmerge from trunk.
1427         PR lto/65559
1428         * lto-wrapper.c (run_gcc): Open filename
1429         in binary-mode.
1431 2015-04-30  Paolo Carlini  <paolo.carlini@oracle.com>
1433         PR c++/65801
1434         * doc/invoke.texi ([-Wnarrowing]): Update.
1436 2015-04-30  Alan Modra  <amodra@gmail.com>
1438         PR target/65408
1439         PR target/58744
1440         PR middle-end/36043
1441         * calls.c (load_register_parameters): Don't load past end of
1442         mem unless suitably aligned.
1444 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
1446         PR tree-optimization/65875
1447         * tree-vrp.c (update_value_range): If in is_new case setting
1448         old_vr to VR_VARYING, also set new_vr to it.  Remove
1449         old_vr->type == VR_VARYING test.
1450         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
1451         SSA_PROP_INTERESTING if update_value_range returned true,
1452         but new range is VR_VARYING.
1454 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
1456         Backport from 2015-04-27 trunk r222459.
1458         PR target/65296
1459         PR target/65895
1460         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
1461         Add hint how to use own spec file.
1463 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1465         Backport from mainline
1466         2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1468         PR target/65849
1469         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
1470         save to independent variables use the Save attribute.  This will
1471         allow these options to be modified with the #pragma/attribute
1472         target support.
1473         (-mallow-movmisalign): Likewise.
1474         (-mallow-df-permute): Likewise.
1475         (-msched-groups): Likewise.
1476         (-malways-hint): Likewise.
1477         (-malign-branch-targets): Likewise.
1478         (-mvectorize-builtins): Likewise.
1479         (-msave-toc-indirect): Likewise.
1481         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
1482         can be set via the #pragma/attribute target support.
1483         (rs6000_opt_vars): Likewise.
1484         (rs6000_inner_target_options): If VSX was set, also set
1485         -mno-avoid-indexed-addresses.
1487 2015-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1489         Backport from mainline r222385
1490         2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1492         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
1493         asterisk from name so this can be generated directly.
1494         (*altivec_stvx_<mode>_internal): Likewise.
1495         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
1496         that this is never called during or after reload/lra.
1497         (rs6000_frame_related): Remove split_reg
1498         argument and logic that references it.
1499         (emit_frame_save): Remove last parameter from call to
1500         rs6000_frame_related.
1501         (rs6000_emit_prologue): Remove last parameter from eight calls to
1502         rs6000_frame_related.  Force generation of stvx instruction for
1503         Altivec register saves.  Remove split_reg handling, which is no
1504         longer needed.
1505         (rs6000_emit_epilogue):  Force generation of lvx instruction for
1506         Altivec register restores.
1508 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
1510         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
1511         Mark operand1 commutative.
1513 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1515         Backport from mainline r222362
1516         2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1518         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
1519         TARGET_CRYPTO to TARGET_P8_VECTOR>
1520         (crypto_vpermxor_<mode>): Likewise.
1521         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
1522         (BU_CRYPTO_3A): Likewise.
1523         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
1524         (BU_CRYPTO_OVERLOAD_3A): New #define.
1525         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
1526         (VPMSUMH): Likewise.
1527         (VPMSUMW): Likewise.
1528         (VPMSUMD): Likewise.
1529         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
1530         (VPERMXOR_V4SI): Likewise.
1531         (VPERMXOR_V8HI): Likewise.
1532         (VPERMXOR_V16QI): Likewise.
1533         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
1534         BU_CRYPTO_OVERLOAD_2A.
1535         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
1536         BU_CRYPTO_OVERLOAD_3A.
1537         * config/rs6000/rs6000.opt (mcrypto): Change description of
1538         option.
1540         Backport from mainline r222362
1541         2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1543         * config/rs6000/rs6000.opt (mcrypto): Change option description to
1544         match category changes in ISA 2.07B.
1546 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1548         Backport from mainline r222351
1549         2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1551         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
1552         adjustments.
1553         (insn_is_swappable_p): Return 1 for a convert from double to
1554         single precision when all of its uses are splats of BE element
1555         zero.
1557 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1559         Backport from mainline r222349
1560         2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1562         PR target/65456
1563         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
1564         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
1565         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
1566         option.
1567         (rs6000_builtin_mask_for_load): Return 0 for targets with
1568         efficient unaligned VSX accesses so that the vectorizer will use
1569         direct unaligned loads.
1570         (rs6000_builtin_support_vector_misalignment): Always return true
1571         for targets with efficient unaligned VSX accesses.
1572         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
1573         stores on targets with efficient unaligned VSX accesses is almost
1574         always the same as the cost of an aligned load or store, so model
1575         it that way.
1576         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
1577         unaligned vectors if we have efficient unaligned VSX accesses.
1578         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
1579         undocumented option.
1581 2015-04-23  Vladimir Makarov  <vmakarov@redhat.com>
1583         Backport from trunk r222223.
1585         2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1587         PR rtl-optimization/65805
1588         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
1589         Don't use difference of offset and previous offset if
1590         update_sp_offset is non-zero.
1591         (eliminate_regs_in_insn): Ditto.
1592         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
1593         lra_eliminate_regs_1 call.
1594         * lra-constraints.c (get_equiv_with_elimination): Ditto.
1596 2015-04-22  Georg-Johann Lay  <avr@gjlay.de>
1598         Backport from trunk r222179.
1600         2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
1602         PR target/65296
1603         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
1604         to new AVR-LibC file layout (bug #44574).
1605         (*avrlibc_devicelib): Same.
1606         * config/avr/avr-mcus.def: Adjust comments.
1607         * config/avr/avr.opt (nodevicelib): Adjust help.
1609 2015-04-22  Jakub Jelinek  <jakub@redhat.com>
1611         * BASE-VER: Set to 5.1.1.
1613 2015-04-22  Release Manager
1615         * GCC 5.1.0 released.
1617 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
1619         PR debug/65807
1620         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
1622 2015-04-18  Gerald Pfeifer  <gerald@pfeifer.com>
1624         * doc/plugins.texi: Rewrite first introductory paragraph.
1626 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1628         PR target/65780
1629         * config/i386/i386.c (ix86_binds_local_p): Define only if
1630         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
1632 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1633             Jakub Jelinek  <jakub@redhat.com>
1635         PR target/65787
1636         * config/rs6000/rs6000.c (rtx_is_swappable_p): Remove previous
1637         fix; ensure that a subsequent SH_NONE operand does not overwrite
1638         an existing *special value.
1640 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1642         PR target/65780
1643         * output.h (default_binds_local_p_3): New.
1644         * varasm.c (default_binds_local_p_3): Make it public.  Take an
1645         argument to indicate if common symbol may be local.  If common
1646         symbol may be local, treat non-external variable as defined
1647         locally.
1648         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
1649         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
1650         * config/i386/i386.c (ix86_binds_local_p): New.
1651         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
1652         ix86_binds_local_p.
1654 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1656         PR target/65787
1657         * config/rs6000/rs6000.c (rtx_is_swappable_p): Handle case where
1658         vec_extract operation is wrapped in a PARALLEL with a CLOBBER.
1659         (adjust_extract): Likewise.
1661 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
1663         PR debug/65771
1664         * dwarf2out.c (loc_list_from_tree): Return NULL
1665         for DEBUG_EXPR_DECL.
1667 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
1669         PR ipa/65765
1670         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
1671         and GIMPLE_PREDICT use break instead of return true. For
1672         GIMPLE_EH_DISPATCH, compare dispatch region.
1674 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
1676         PR rtl-optimization/65761
1677         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
1678         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
1680 2015-04-13  Jan Hubicka  <hubicka@ucw.cz>
1681             Gerald Pfeifer  <gerald@pfeifer.com>
1683         * doc/contrib.texi (Contributors): Add Martin Jambor and
1684         Michael Matz.
1686 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
1688         * BASE-VER: Set to 5.0.1.
1689         * DEV-PHASE: Set to prerelease.
1691         PR tree-optimization/65747
1692         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
1693         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
1695 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
1697         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
1698         sentence.  Improve grammar.
1700 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
1702         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
1704 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
1706         PR ipa/65743
1707         * ipa-inline-transform.c (speculation_removed): Remove static var.
1708         (check_speculations): New function.
1709         (clone_inlined_nodes): Do not check spculations.
1710         (inline_call): Call check_speculations.
1711         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
1712         consider non-invariants.
1714 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
1715             Martin Liska  <mliska@suse.cz>
1717         PR ipa/65722
1718         * ipa-icf.c (sem_item::compare_cgraph_references): function and
1719         variable can not match.
1720         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
1721         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
1723 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
1725         PR tree-optimization/65735
1726         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
1727         Remove visited_phis argument, add visited_bbs, avoid recursing into the
1728         same bb rather than just into the same phi node.
1729         (thread_through_normal_block): Adjust caller.
1731 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
1733         * doc/contrib.texi (Contributors): Add Ira Rosen.
1735 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
1737         * gcov.c (find_source): Fix miswording in error message.
1738         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
1739         (ix86_expand_sse_comi_round): Fix typo in error message.
1741 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
1743         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
1745 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
1747         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
1749 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
1751         PR target/65710
1752         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
1753         Print bad_spills_num and insn_pseudos_num.
1755 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1757         PR target/65694
1758         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
1759         when creating +1 values for SImode.
1761 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
1763         PR target/65729
1764         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
1765         assert.
1767 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
1768             Iain Sandoe  <iain@codesourcery.com>
1770         PR target/65351
1771         * configure: Regenerate.
1773 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
1775         PR target/65671
1776         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
1778 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
1780         * doc/contrib.texi (Contributors): Add John Marino.
1782 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
1784         PR tree-optimization/65709
1785         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
1786         TREE_TYPE (TREE_TYPE (t)).
1788 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
1790         PR target/65710
1791         * lra-int.h (lra_bad_spill_regno_start): New.
1792         * lra.c (lra_bad_spill_regno_start): New.
1793         (lra): Set up lra_bad_spill_regno_start.  Set up
1794         lra_constraint_new_regno_start unconditionally.
1795         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
1796         spill preferences.
1798 2015-04-09  Marek Polacek  <polacek@redhat.com>
1799             Jakub Jelinek  <jakub@redhat.com>
1801         PR middle-end/65554
1802         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
1803         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
1804         of STRIP_NOPS.
1806 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
1808         PR rtl-optimization/65693
1809         * combine.c (is_parallel_of_n_reg_sets): Move outside of
1810         #ifndef HAVE_cc0.
1812 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
1814         PR target/65296
1815         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
1816         device specs file if "device-specs%s" didn't resolve to a path.
1818 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
1820         PR target/65676
1821         * config/i386/i386.c (fixup_modeless_constant): New.
1822         (ix86_expand_args_builtin): Fixup modeless constant operand.
1823         (ix86_expand_round_builtin): Ditto.
1824         (ix86_expand_special_args_builtin): Ditto.
1825         (ix86_expand_builtin): Ditto.
1827 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
1829         PR target/65693
1830         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
1831         any pow2 integer in between 2 and 0x80000000U inclusive.
1833 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
1835         PR rtl-optimization/65693
1836         * combine.c (is_parallel_of_n_reg_sets): Change first argument
1837         from an rtx_insn * to an rtx.
1838         (try_combine): Adjust both callers.  Use it once more.
1840 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
1842         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
1843         (chkp_make_static_const_bounds): Search existing
1844         symbol by assembler name.  Use make_decl_one_only.
1845         (chkp_get_zero_bounds_var): Remove node search which
1846         is now performed in chkp_make_static_const_bounds.
1847         (chkp_get_none_bounds_var): Likewise.
1849 2015-04-08  Michael Witten  <mfwitten@gmail.com>
1851         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
1852         to an example.
1854 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1856         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
1858 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
1860         * doc/extend.texi (__sync Builtins): Fix grammar.
1862 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1864         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
1866 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1868         * varasm.c (emit_local): Move definition of align.
1870 2015-04-08  Julian Brown  <julian@codesourcery.com>
1872         * config/nvptx/mkoffload.c (process): Support variable mapping.
1874 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
1876         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
1877         alpha_links **.
1878         (alpha_write_one_linkage): Correct typo.
1880 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
1882         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
1884 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
1886         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
1888 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
1890         * tree-chkp.h (chkp_insert_retbnd_call): New.
1891         * tree-chkp.c (chkp_insert_retbnd_call): New.
1892         * ipa-split.c (insert_bndret_call_after): Remove.
1893         (split_function): Use chkp_insert_retbnd_call.
1894         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
1895         bounds for instrumented functions.
1897 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
1899         PR ipa/65540
1900         * calls.c (initialize_argument_information): When producing tail
1901         call also turn SSA_NAMES passed by references to original PARM_DECLs
1903 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
1905         PR target/65648
1906         * lra-remat.c (do_remat): Process input and non-input insn
1907         registers separately.
1909 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
1911         PR debug/65678
1912         * valtrack.c (debug_lowpart_subreg): New function.
1913         (dead_debug_insert_temp): Use it.
1915         PR middle-end/65680
1916         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
1917         into signed HOST_WIDE_INT the same as negative bit_offset.
1919 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1921         * ipa-comdats.c (ipa_comdats): Visit all thunks
1922         to set proper comdat group.
1924 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1926         PR target/65489
1927         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
1928         on constants for NEON VSTRUCT modes.
1930 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
1931             Iain Sandoe  <iain@codesourcery.com>
1933         PR target/65351
1934         * configure: Regenerate.
1936 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1938         PR target/65614
1939         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
1940         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
1941         that LFD is used to load double constants instead of LFS.  Add
1942         defaults for all costs structures.  Add comments for missing
1943         initialization fields.
1944         (size32_cost): Likewise.
1945         (size64_cost): Likewise.
1946         (rs64a_cost): Likewise.
1947         (mpccore_cost): Likewise.
1948         (ppc403_cost): Likewise.
1949         (ppc405_cost): Likewise.
1950         (ppc440_cost): Likewise.
1951         (ppc476_cost): Likewise.
1952         (ppc601_cost): Likewise.
1953         (ppc603_cost): Likewise.
1954         (ppc604_cost): Likewise.
1955         (ppc604e_cost): Likewise.
1956         (ppc620_cost): Likewise.
1957         (ppc630_cost): Likewise.
1958         (ppccell_cost): Likewise.
1959         (ppc750_cost): Likewise.
1960         (ppc7450_cost): Likewise.
1961         (ppc8540_cost): Likewise.
1962         (ppce300c2c3_cost): Likewise.
1963         (ppce500mc_cost): Likewise.
1964         (ppce500mc64_cost): Likewise.
1965         (ppce5500_cost): Likewise.
1966         (ppce6500_cost): Likewise.
1967         (titan_cost): Likewise.
1968         (power4_cost): Likewise.
1969         (power6_cost): Likewise.
1970         (power7_cost): Likewise.
1971         (power8_cost): Likewise.
1972         (ppca2_cost): Likewise.
1973         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
1975         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
1976         instead of XXLOR to copy SFmode to clear out dirty bits created
1977         when SFmode denormals are generated.
1978         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
1979         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
1981 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
1983         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
1984         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
1985         * config/aarch64/aarch64-tune.md: Regenerate.
1987 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
1989         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
1990         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
1991         * config/arm/arm-cores.def (exynos-m1): New core.
1992         * config/arm/arm-tune.md: Regenerate.
1993         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
1994         * config/arm/bpabi.h: Likewise.
1996 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
1998         * ipa-cp (set_single_call_flag): Remove too
1999         restrictive assert.
2001 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
2003         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
2004         GOMP_offload_unregister from the destructor.
2006 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
2008         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
2009         flags for instrumentation thunk.
2010         (chkp_produce_thunks): Likewise.
2012 2015-04-05  Martin Liska  <mliska@suse.cz>
2014         PR ipa/65665
2015         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
2016         has computed data structure.
2017         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2019 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
2021         * invoke.texi (inline-unit-growth): Increase growth to 20%
2022         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
2024 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2026         PR target/65647
2027         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
2028         value checking.
2029         (lra_rematerialization_iter): New.
2030         * lra.c (lra): Initialize lra_rematerialization_iter.
2031         Stop updating lra_constraint_new_regno_start after switching of
2032         inheritance and rematerialization.
2033         * lra-remat.c (lra_rematerialization_iter): New.
2034         (lra_remat): Add printing pass iteration.  Do rematerialization
2035         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
2037 2015-04-04  Richard Biener  <rguenther@suse.de>
2039         PR tree-optimization/64909
2040         PR tree-optimization/65660
2041         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
2042         to take a cost vector for scalar iteration cost.
2043         (vect_get_single_scalar_iteration_cost): Likewise.
2044         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
2045         Compute the scalar iteration cost into a cost vector.
2046         (vect_get_known_peeling_cost): Use the scalar cost vector to
2047         account for the cost of the peeled iterations.
2048         (vect_estimate_min_profitable_iters): Likewise.
2049         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2050         Likewise.
2052 2015-04-04  Alan Modra  <amodra@gmail.com>
2054         PR target/65576
2055         PR target/65240
2056         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
2057         0.0 constant unless TARGET_VSX.
2058         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
2059         alternative.
2061 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
2063         PR ipa/65654
2064         * ipa-inline-transform.c (inline_call): Skip sanity check to work
2065         around the ICE
2067 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
2069         PR ipa/65655
2070         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
2071         speculative indirect edges to avoid ordering issue.
2073 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
2075         PR ipa/65076
2076         * ipa-inline.c (edge_badness): Add combined size to the denominator.
2078 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
2080         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
2081         TYPE_ARTIFICIAL on the .omp_data* types.
2083 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2085         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
2086         instrumentation thunks.
2088 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2090         * config/i386/i386.c (ix86_expand_call): Avoid nested
2091         PARALLEL in returned call value.
2093 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2095         * lto-cgraph.c (input_cgraph_1): Always link instrumented
2096         assembler name with original one.
2098 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
2100         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
2102 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
2104         Revert parts of r216820.
2105         * config/i386/i386.md (movqi_internal): Correct type calculation
2106         for alternatives 3 and 5.
2108 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
2110         PR preprocessor/61977
2111         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
2112         predefine __vector/__bool/__pixel macros nor context sensitive
2113         macros for CLK_ASM.
2114         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
2116 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
2118         * config/pa/pa.c (pa_output_move_double): Directly handle register
2119         indexed memory operand.  Simplify handling of scaled register indexed
2120         memory operands.
2122 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2124         PR driver/65444
2125         * config/i386/linux-common.h (MPX_SPEC): New.
2126         (CHKP_SPEC): Add MPX_SPEC.
2127         * doc/invoke.texi (-fcheck-pointer-boudns): Document
2128         possible issues with '-z bndplt' support in linker.
2130 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
2132         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
2133         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
2134         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
2135         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
2136         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
2138 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
2140         * config/i386/sync.md (UNSPEC_MOVA): Remove.
2141         (atomic_load<mode>): Change operand 0 predicate to
2142         nonimmediate_operand and fix up the destination when needed.
2143         Use UNSPEC_LDA.
2144         (atomic_loaddi_fpu): Use UNSPEC_LDA.
2145         (atomic_store<mode>): Change operand 1 predicate to
2146         nonimmendate_operand and move the source to register when needed.
2147         Use UNSPEC_STA.
2148         (atomic_store<mode>_1): Use UNSPEC_STA.
2149         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
2150         Fix moves from memory operand.  Use UNSPEC_STA.
2152 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2154         * expmed.c (strict_volatile_bitfield_p): Check that the access will
2155         not cross a MODESIZE boundary.
2156         (store_bit_field, extract_bit_field): Added assertions in the
2157         strict volatile bitfields code path.
2159 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2161         PR target/65624
2162         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2163         Increase args array size by one to avoid buffer overflow.
2165 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
2167         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2168         split_part.
2169         * ipa-inline.c (edge_badness): Add wrapper penalty.
2170         (sum_callers): Move up.
2171         (inline_small_functions): Set single_caller.
2172         * ipa-inline.h (inline_summary): Add single_caller.
2173         * ipa-split.c (split_function): Set split_part.
2174         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
2175         * cgraph.h (cgraph_node): Add split_part.
2177 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
2179         PR target/58945
2180         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2181         Do not split operands 0 and operands 2 to halfmode.
2182         (atomic_compare_and_swap<mode>): Update for
2183         atomic_compare_and_swap<dwi>_doubleword changes.
2185 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
2187         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
2188         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
2189         no caching is done.
2191 2015-03-31  Martin Liska  <mliska@suse.cz>
2193         PR ipa/65557
2194         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
2195         has already filled up function summary.
2196         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2198 2015-03-31  Richard Biener  <rguenther@suse.de>
2200         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
2201         of types.
2203 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2205         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
2206         nested functions.
2207         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
2208         (s390_asm_output_function_label): Adapt to new signature of
2209         s390_function_num_hotpatch_hw
2210         Optimise the code generating assembler output.
2211         Add comments to assembler file.
2213 2015-03-31  Richard Biener  <rguenther@suse.de>
2215         PR middle-end/65626
2216         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
2217         of the noreturn call so it is last and cleanup_control_flow_bb
2218         can do the CFG part.
2220 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
2222         PR target/65531
2223         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
2224         same_comdat_group for external symbols.
2225         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
2226         infinite same_comdat_group traversal loop.
2228 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
2230         PR plugins/61176
2231         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
2232         automatically to $headers.
2234 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
2236         PR ipa/65610
2237         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
2238         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
2239         function.
2240         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
2241         Use it.
2242         * ipa-prop.c (param_type_may_change_p): Likewise.
2243         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
2244         (remove_unused_scope_block_p): Add in_ctor_dtor_block
2245         argument.  Before inlining, preserve
2246         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
2247         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
2248         recursive calls.
2249         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
2251 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2253         PR ipa/65076
2254         * ipa-inline.c (edge_badness): Base denominator on callee's
2255         grwoth squared.
2257 2015-03-27  Martin Jambor  <mjambor@suse.cz>
2259         PR ipa/65478
2260         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
2261         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
2262         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
2263         node_calling_single_call.
2264         * ipa-cp.c (count_callers): New function.
2265         (set_single_call_flag): Likewise.
2266         (initialize_node_lattices): Count callers and set single_flag_call if
2267         necessary.
2268         (incorporate_penalties): New function.
2269         (good_cloning_opportunity_p): Use it, dump new flags.
2270         (propagate_constants_topo): Set node_within_scc flag if appropriate.
2271         * doc/invoke.texi (ipa-cp-recursion-penalty,
2272         ipa-cp-single-call-pentalty): Document.
2274 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2276         PR ipa/65588
2277         * symtab.c (symtab_node::get_partitioning_class): Register vars
2278         are duplicated.
2279         * varpool.c (symbol_table::output_variables) Do not assemble unefined
2280         decls for non-symbols.
2282 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2284         PR target/65248
2285         * output.h (default_binds_local_p_2): New.
2286         * varasm.c (default_binds_local_p_2): Renamed to ...
2287         (default_binds_local_p_3): This.  Don't return true on protected
2288         data symbol if protected data may be external.
2289         (default_binds_local_p): Use default_binds_local_p_3.
2290         (default_binds_local_p_1): Likewise.
2291         (default_binds_local_p_2): New.
2292         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
2293         default_binds_local_p_2 if TARGET_MACHO is undefined.
2295 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
2297         PR target/65593
2298         * config/i386/i386.c (legitimize_pic_address): If base
2299         is SYMBOL_REF or LABEL_REF using %rip addressing, force
2300         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
2302 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2304         PR target/65531
2305         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
2306         comdat groups.
2308 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2310         PR ipa/65600
2311         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
2312         of optimized out indirect call.
2313         (redirect_to_unreachable): Always build symbol table node for
2314         BUILT_IN_UNREACHABLE
2316 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
2318         PR target/65407
2319         * ira-costs.c (record_reg_classes): Process all constraint string
2320         containing 0-9.
2322 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
2324         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
2325         memory_operand.
2327         PR target/65052
2328         * config/c6x/constraints.md (S3): New constraint.
2329         * config/c6x/c6x.md (real_jump): Use it.
2331 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2333         PR middle-end/65595
2334         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
2335         do redirection if the call is not optimized out.
2337 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2339         PR target/65495
2340         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
2341         (fchkp-check-incomplete-type): Add LTO.
2342         (fchkp-zero-input-bounds-for-main): Likewise.
2343         (fchkp-first-field-has-own-bounds): Likewise.
2344         (fchkp-narrow-bounds): Likewise.
2345         (fchkp-narrow-to-innermost-array): Likewise.
2346         (fchkp-use-static-bounds): Likewise.
2347         (fchkp-use-static-const-bounds): Likewise.
2348         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2350 2015-03-27  Marek Polacek  <polacek@redhat.com>
2352         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
2354 2015-03-27  Marek Polacek  <polacek@redhat.com>
2356         PR sanitizer/65583
2357         * ubsan.c (ubsan_create_edge): New function.
2358         (instrument_bool_enum_load): Call it.
2359         (instrument_nonnull_arg): Likewise.
2360         (instrument_nonnull_return): Likewise.
2361         (instrument_object_size): Likewise.
2363 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2365         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
2366         auto_vec.
2368 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2370         PR lto/65536
2371         * lto-streamer.h (class lto_location_cache): New.
2372         (struct data_in): Add location_cache.
2373         (lto_input_location): Update prototype.
2374         (stream_input_location_now): New.
2375         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
2376         pointer to location.
2377         (stream_input_location): Update.
2378         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
2379         (warn_odr): Apply location cache before warning.
2380         (lto_input_location): Update prototype.
2381         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
2382         Use stream_input_location_now.
2383         * lto-streamer-in.c (lto_location_cache::current_cache): New static
2384         variable.
2385         (lto_location_cache::cmp_loc): New function.
2386         (lto_location_cache::apply_location_cache): New function.
2387         (lto_location_cache::accept_location_cache): New function.
2388         (lto_location_cache::revert_location_cache): New function.
2389         (lto_location_cache::input_location): New function.
2390         (lto_input_location): Do location caching.
2391         (stream_input_location_now): New function.
2392         (input_eh_region, input_struct_function_base): Use
2393         stream_input_location_now.
2394         (lto_data_in_create): use new.
2395         (lto_data_in_delete): Use delete.
2396         * tree-streamer-in.c (unpack_ts_block_value_fields,
2397         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
2398         lto_input_ts_exp_tree_pointers): Update for cached location api.
2400 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2402         PR ipa/65076
2403         * passes.def: Add pass_nothrow.
2404         * ipa-pure-const.c: (pass_data_nothrow): New.
2405         (pass_nothrow): New.
2406         (pass_nothrow::execute): New.
2407         (make_pass_nothrow): New.
2408         * tree-pass.h (make_pass_nothrow): Declare.
2410 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2412         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
2413         edge to change by speculation resolution or redirection.
2414         (edge_set_predicate): Likewise.
2415         (inline_summary_t::duplicate): Likewise.
2416         (remap_edge_summaries): Likewise.
2418 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2420         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
2421         New macros.
2422         (can_inline_edge_p): Relax option matching for always inline functions.
2424 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
2426         PR target/65561
2427         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
2428         Check operand 4 and operand 0 for equality.
2429         (avx512f_vextract<shuffletype>32x4_1_maskm):
2430         Check operand 6 and operand 0 for equality.
2431         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
2432         for equality.
2433         (vec_extract_hi_<mode>_maskm): Ditto.
2435 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2437         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
2438         dead calls back to live.
2439         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
2440         cross check to ...
2441         (cgraph_node::verify_node): ... here; verify only callee edges,
2442         not caller.
2443         * cif-code.def (CILK_SPAWN): New code.
2445 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2447         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
2448         (edge_set_predicate): Use it to mark unreachable edges.
2449         (inline_summary_t::duplicate): Remove unnecesary code.
2450         (remap_edge_summaries): Likewise.
2451         (dump_inline_summary): Report contains_cilk_spawn.
2452         (compute_inline_parameters): Compute contains_cilk_spawn.
2453         (inline_read_section, inline_write_summary): Stream
2454         contains_cilk_spawn.
2455         * ipa-inline.c (can_inline_edge_p): Do not touch
2456         DECL_STRUCT_FUNCTION that may not be available;
2457         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
2458         remove check for callee_fun->can_throw_non_call_exceptions and
2459         replace it by optimization attribute check; check for flag_exceptions.
2460         * ipa-inline-transform.c (inline_call): Maintain
2461         DECL_FUNCTION_PERSONALITY
2462         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
2464 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
2466         PR tree-optimization/65551
2467         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
2468         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
2470 2015-03-26  Richard Biener  <rguenther@suse.de>
2472         PR middle-end/65555
2473         * tree-cfg.c (verify_gimple_call): Do not require a call to
2474         have no LHS if it wasn't recognized as control altering yet.
2476 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
2478         PR tree-optimization/64715
2479         * passes.def: Add another instance of pass_object_sizes before ccp1.
2480         * tree-object-size.c (pass_object_sizes::execute): In
2481         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
2482         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
2483         __bos result and the computed constant.  Remove redundant
2484         checks, obsoleted by gimple_call_builtin_p test.
2486         * var-tracking.c (variable_tracking_main_1): Don't track
2487         variables for targetm.no_register_allocation targets.
2489 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
2491         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
2492         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
2494 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2496         PR target/65569
2497         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
2498         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
2499         0.0 is correctly setup.
2500         (extenddftf2_internal): Likewise.
2502 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
2504         PR tree-optimization/65177
2505         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
2506         (bb_in_bbs): New.
2507         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
2508         edges not adjacent on the path to the original code.
2510 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
2512         PR bootstrap/65537
2513         * doc/install.texi (Building a native compiler): Document new
2514         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
2515         configuration assumes that the host supports the linker plugin.
2517 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
2519         PR target/65508
2520         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
2521         chain for generated call.
2523 2015-03-25  Richard Biener  <rguenther@suse.de>
2525         * passes.c (pass_manager::execute_early_local_passes): Guard
2526         execution of pass_chkp_instrumentation_passes with
2527         flag_check_pointer_bounds.
2528         (pass_chkp_instrumentation_passes::gate): Likewise.
2530 2015-03-25  Martin Liska  <mliska@suse.cz>
2532         PR tree-optimization/65538
2533         * symbol-summary.h (function_summary::~function_summary):
2534         Relese memory for allocated summaries.
2535         (function_summary::release): New function.
2537 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
2539         PR lto/65515
2540         * lto-streamer-out.c (DFS::worklist): New struct.
2541         (DFS::worklist_vec): New data member.
2542         (DFS::next_dfs_num): Remove.
2543         (DFS::DFS): Rewritten using worklist instead of recursion,
2544         using most of code from DFS::DFS_write_tree.
2545         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
2546         pass it to DFS_write_tree calls.
2547         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
2548         quick initial checks push it into worklist_vec and return.
2550 2015-03-25  Richard Biener  <rguenther@suse.de>
2552         PR middle-end/65519
2553         * genmatch.c (expr::gen_transform): Re-write to avoid
2554         using gimple_build.
2556 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
2558         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
2560 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
2562         * config/arm/arm.opt (print_tune_info): New option.
2563         * config/arm/arm.c (arm_print_tune_info): New function.
2564         (arm_file_start): Call arm_print_tune_info.
2565         * config/arm/arm-protos.h (struct tune_params): Add comment.
2566         * doc/invoke.texi (@item -mprint-tune-info): New item.
2567         (-mtune): mention it in ARM Option Summary.
2569 2015-03-25  DJ Delorie  <dj@redhat.com>
2571         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
2572         correct clause.
2574 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
2575             Martin Liska  <mliska@suse.cz>
2577         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
2578         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
2579         (sem_item::add_type): New function.
2580         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
2581         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
2582         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
2583         (sem_function::equals_wpa): Fix typo.
2584         * ipa-icf.h (sem_item::add_type): New function.
2585         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
2586         order.
2588 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
2590         PR tree-optimization/65533
2591         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
2592         with swapped operands, call vect_free_slp_tree on
2593         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
2594         vector.
2596 2015-03-24  Richard Biener  <rguenther@suse.de>
2598         PR middle-end/65517
2599         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
2600         for fixup if necessary.
2602 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
2604         * doc/extend.texi (Function Attributes): Add @cindex entries
2605         for all attributes and regularize their format.  Delete text
2606         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
2607         information about "eightbit_data", "tiny_data", and "model"
2608         variable attributes to the Variable Attributes section.  Fix
2609         some obvious typos and copy-editing issues.
2610         (Variable Attributes, Type Attributes): Likewise add/fix
2611         @cindex entries for all attributes.
2613 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
2615         PR target/65523
2616         * tree-chkp.c (chkp_build_returned_bound): Ignore
2617         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
2619 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
2621         PR target/65505
2622         * config/sh/predicates.md (simple_mem_operand,
2623         displacement_mem_operand): Add test for reg.
2624         (short_displacement_mem_operand): Test for displacement_mem_operand
2625         before invoking sh_disp_addr_displacement.
2626         * config/sh/constraints.md (Sdd, Sra): Simplify.
2627         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
2628         Remove redundant displacement_mem_operand tests.
2630 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
2632         PR target/65296
2633         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
2634         the same -mmcu=MCU more than once.
2636 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
2638         PR bootstrap/65522
2639         * ipa-devirt.c: Remove duplicate demangle.h include.
2641         PR target/65504
2642         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
2643         on the pseudo.
2644         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
2645         REG_POINTER on *destptr after adjusting it for prologue size.
2647         PR ipa/65521
2648         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
2649         ultimate_alias_target ()->order ints instead of
2650         ultimate_alias_target () pointers.
2652 2015-03-23  Richard Biener  <rguenther@suse.de>
2654         PR tree-optimization/65518
2655         * tree-vect-stmts.c (vectorizable_load): Reject single-element
2656         interleaving cases we generate absymal code for.
2658 2015-03-23  Richard Biener  <rguenther@suse.de>
2660         PR tree-optimization/65494
2661         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
2662         matches here.
2663         (vect_analyze_slp_instance): But do that here, always and once.
2665 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2667         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
2668         adding T or multiplying by T+1 and subracting T.
2670 2015-03-22  Jeff Law  <law@redhat.com>
2672         PR rtl-optimization/64317
2673         * Makefile.in (OBJS): Add gcse-common.c
2674         * gcse.c: Include gcse-common.h
2675         (struct modify_pair_s): Move structure definition to gcse-common.h
2676         (compute_transp): Move function to gcse-common.c.
2677         (canon_list_insert): Similarly.
2678         (record_last_mem_set_info): Break out some code and put it into
2679         gcse-common.c.  Call into the new common code.
2680         (compute_local_properties): Pass additional arguments to compute_transp.
2681         * postreload-gcse.c: Include gcse-common.h and df.h
2682         (modify_mem_list_set, blocks_with_calls): New variables.
2683         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
2684         (get_bb_avail_insn): Pass in the expression index too.
2685         (alloc_mem): Allocate memory for the new bitmaps and lists.
2686         (free_mem): Free memory for the new bitmaps and lists.
2687         (insert_expr_in_table): Record a bitmap index for each entry we
2688         add to the table.
2689         (record_last_mem_set_info): Call into common code in gcse-common.c.
2690         (get_bb_avail_insn): If no available insn was found in the requested
2691         BB.  If BB has a single predecessor, see if the expression is
2692         transparent in BB and available in that single predecessor.
2693         (compute_expr_transp): New wrapper for compute_transp.
2694         (eliminate_partially_redundant_load): Pass expression's bitmap_index
2695         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
2696         (gcse_after_reload_main): If there are elements in the hash table,
2697         then compute transparency for all the elements in the hash table.
2698         * gcse-common.h: New file.
2699         * gcse-common.c: New file.
2701 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
2703         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
2704         as an adjective.
2705         (System Headers): Likewise.
2706         (Ifdef): Likewise.
2707         (Traditional macros): Likewise.
2708         (Invocation): Likewise.
2709         (Option Index): Likewise.
2710         * doc/cppopts.texi (-M): Likewise.
2711         (-finput-charset): Likewise.
2712         (--help): Likewise.
2713         * doc.invoke.texi (AVR Options): Likewise.
2714         (V850 Options): Likewise.
2716 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
2718         PR ipa/65475
2719         * ipa-devirt.c: Include demangle.h
2720         (odr_type_d): Add field rtti_broken.
2721         (odr_subtypes_equivalent_p): Do not require name to match.
2722         (compare_virtual_tables): Fix typo; if type already has ODR violation,
2723         bypass the tests; be ready for function referneces in vtables that are
2724         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
2725         (warn_odr): Give up for nameless types.
2726         (warn_types_mismatch): Report mismatch in mangled names;
2727         report mismatch in anonymous namespaces; look into component types to
2728         give useful error; report when mismatch is dragged in from other ODR
2729         type.
2730         (odr_types_equivalent_p): Match types for being polymorphic; avoid
2731         duplicated diagnostics.
2732         (add_type_duplicate): Reorder checks so more informative ones come
2733         first; fix typo; do not output "the extra base is defined here" when
2734         we did not warn.
2735         (BINFO_N_BASE_BINFOS): Relax sanity check.
2737 2015-03-22  Martin Liska  <mliska@suse.cz>
2738             Jakub Jelinek  <jakub@redhat.com>
2740         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
2741         masks that can potentially include a builtin.
2742         (ix86_add_new_builtins): Introduce fast filter for isa values
2743         that cannot trigger builtin inclusion.
2745 2015-03-22  Martin Liska  <mliska@suse.cz>
2747         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
2748         (sem_item::update_hash_by_local_refs): Likewise.
2749         (sem_variable::get_hash): Empty line is fixed.
2750         (sem_item_optimizer::execute): Include adding of hash references.
2751         (sem_item_optimizer::update_hash_by_addr_refs): New function.
2752         (sem_item_optimizer::build_hash_based_classes): Use local hash.
2753         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
2754         (sem_item::update_hash_by_local_refs): Likewise.
2756 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
2758         PR ipa/65502
2759         * ipa-comdats.c (enqueue_references): Walk through thunks.
2760         (ipa_comdats): Likewise.
2761         (set_comdat_group_1): New function.
2763 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
2765         PR ipa/65475
2766         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
2767         non-polymorphic
2769 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2770             Gerald Pfeifer  <gerald@pfeifer.com>
2772         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
2774 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
2775             Sandra Loosemore  <sandra@codesourcery.com>
2777         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
2778         function parameter declaration.
2779         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
2780         Update arguments to nios2_adjust_call_address().
2781         (sibcall_internal): Rename from *sibcall.
2782         (sibcall_value_internal): Rename from *sibcall_value.
2783         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
2784         (nios2_large_got_address): Add target temp reg parameter.
2785         (nios2_got_address): Adjust call to nios2_large_got_address, add
2786         force_reg around it.
2787         (nios2_load_pic_address): Add target temp reg parameter, replace call
2788         to nios2_got_address with corresponding code.
2789         (nios2_legitimize_constant_address): Update call to
2790         nios2_load_pic_address.
2791         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
2792         to use temp reg for PIC loading purposes.
2793         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
2794         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
2795         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
2797 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
2799         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
2800         usage of "the @option{...}".
2801         (-Wopenmp-simd): Likewise.
2802         (-fsanitize-recover): Likewise.
2803         (-fsanitize-undefined-trap-on-error): Likewise.
2804         (-flto): Likewise.
2805         (tracer-dynamic-coverage-feedback): Likewise.
2806         (reorder-block-duplicate-feedback): Likewise.
2807         (loop-unroll-jam-size): Likewise.
2808         (-B): Likewise.
2809         (-I-): Likewise.
2810         (-mabs=legacy): Likewise.
2811         (-mupper-regs-df): Likewise.
2812         (-mupper-regs-sf): Likewise.
2813         (-mpointers-to-nested-functions): Likewise.
2815 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
2817         * doc/extend.texi (Cilk Plus Builtins): Add markup.
2819 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
2821         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
2822         additional index entries and cross-references.
2823         (-fchkp-check-incomplete-type): Likewise.
2824         (-fchkp-first-field-has-own-bounds): Likewise.
2825         (-fchkp-narrow-to-innermost-array): Likewise.
2826         (-fchkp-use-fast-string-functions): Likewise.
2827         (-fchkp-use-nochk-string-functions): Likewise.
2828         (-fchkp-use-static-const-bounds): Likewise.
2829         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2830         (-fchkp-instrument-marked-only): Likewise.
2831         (-fchkp-use-wrappers): Likewise.
2832         (-static-libmpx): Likewise.
2833         (-static-libmpxwrappers): Likewise.
2834         * doc/extend.texi (bnd_legacy): Likewise.
2835         (bnd_instrument): Likewise.
2836         (bnd_variable_size): Likewise.
2837         (Pointer Bounds Checker builtins): Likewise.
2839 2015-03-21  Tom de Vries  <tom@codesourcery.com>
2841         PR tree-optimization/65458
2842         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
2843         * cgraph.h (cgraph_node): Add parallelized_function field.
2844         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
2845         (input_overwrite_node): Read parallelized_function field.
2846         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
2847         parallelized_function on cgraph_node for child_fn.
2848         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
2849         Remove include of gt-tree-parloops.h.
2850         (parallelized_functions): Remove static variable.
2851         (parallelized_function_p): Rewrite using parallelized_function field of
2852         cgraph_node.
2853         (create_loop_fn): Remove adding to parallelized_functions.
2854         * Makefile.in (GTFILES): Remove tree-parloops.c
2856 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
2858         PR rtl-optimization/64366
2859         * lra.c (lra_update_insn_regno_info): Consider regs in
2860         CALL_INSN_FUNCTION_USAGE memory.
2862 2015-03-20  Richard Biener  <rguenther@suse.de>
2864         PR middle-end/64715
2865         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
2866         for type comparison and gcc_checking_assert.
2867         (chrec_fold_plus_poly_poly): Likewise.
2868         (chrec_fold_multiply_poly_poly): Likewise.
2869         (chrec_convert_1): Likewise.
2870         * gimplify.c (gimplify_expr): Remove premature folding of
2871         &X + CST to &MEM[&X, CST].
2873 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
2875         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
2876         already is final.
2877         (ipa_inline): Recompute inline_failed codes.
2878         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
2879         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
2880         CIF_FINAL_ERROR.
2882 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
2884         PR rtl-optimization/60851
2885         * recog.c (constrain_operands): Accept a pseudo register before reload
2886         for LRA enabled targets.
2888 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2890         PR target/65240
2891         * config/rs6000/predicates.md (easy_fp_constant): Remove special
2892         -ffast-math handling that kept non-0 constants live in the RTL
2893         until reload.  Remove logic testing the number of instructions it
2894         took to create a constant in a GPR that was never used, due to a
2895         test for soft-float earlier.
2896         (memory_fp_constant): Delete, no longer used.
2898         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
2899         alternatives for loading non-0 constants into GPRs for hard
2900         floating point that is no longer needed due to changes in
2901         easy_fp_constant.  Add support for loading 0.0 into GPRs.
2902         (mov<mode>_hardfloat32): Likewise.
2903         (mov<mode>_hardfloat64): Likewise.
2904         (mov<mode>_64bit_dm): Likewise.
2905         (movtd_64bit_nodm): Likewise.
2906         (pre-reload move FP constant define_split): Delete define_split,
2907         since it is no longer used.
2908         (extenddftf2_internal): Remove GHF constraints that are not valid
2909         for extenddftf2.
2911 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
2913         PR rtl-optimization/63491
2914         * lra-constraints.c (check_and_process_move): Use src instead of
2915         sreg.  Remove some dead code.
2917 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
2919         PR ipa/65380
2920         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
2921         (sem_variable::merge): Likewise.
2923 2015-03-19  Martin Liska  <mliska@suse.cz>
2925         PR ipa/65465
2926         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
2927         all fields of cgraph_thunk_info.
2929 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2931         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
2932         clone instrumented thunks.
2934 2015-03-19  Richard Biener  <rguenther@suse.de>
2936         Revert
2937         2015-03-10  Richard Biener  <rguenther@suse.de>
2939         PR middle-end/63155
2940         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
2941         * tree-ssa-coalesce.c: Include timevar.h.
2942         (attempt_coalesce): Handle graph being NULL.
2943         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
2944         Split out abnormal coalescing to ...
2945         (perform_abnormal_coalescing): ... this function.
2946         (coalesce_ssa_name): Perform abnormal coalescing without computing
2947         live/conflict.
2948         (verify_ssa_coalescing_worker): New function.
2949         (verify_ssa_coalescing): Likewise.
2951 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2952             Jakub Jelinek  <jakub@redhat.com>
2954         PR sanitizer/65400
2955         * tsan.c (instrument_gimple): Clear tail call flag on
2956         calls.
2958 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
2960         PR sanitizer/65400
2961         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
2962         call in the return bb.
2963         (find_split_points): Add RETURN_BB argument, don't call
2964         find_return_bb.
2965         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
2966         if true append TSAN_FUNC_EXIT internal call after the call to
2967         the split off function.
2968         (execute_split_functions): Call find_return_bb here.
2969         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
2970         Adjust find_split_points and split_function calls.
2972 2015-03-18  DJ Delorie  <dj@redhat.com>
2974         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
2975         (iorqi3_virt): Likewise.
2977 2015-03-18  Tom de Vries  <tom@codesourcery.com>
2979         * tree-parloops.c (parallelize_loops): Make static.
2980         * tree-parloops.h (parallelize_loops): Remove extern declaration.
2982 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
2984         PR middle-end/64491
2985         Revert:
2986         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
2988         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
2989         condition would be removed due to undefined behaviour.
2991 2015-03-18  Martin Liska  <mliska@suse.cz>
2993         PR ipa/65432
2994         * cgraph.c (cgraph_node::get_create): Remove unnecessary
2995         xstrdup_for_dump wrapper.
2996         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
2997         sem_item::name.
2998         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
2999         with xstrdup_for_dump.
3000         (sem_variable::equals): Likewise.
3001         (sem_item_optimizer::read_section): Use symtab_node::name instead of
3002         sem_item::name.
3003         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
3004         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
3005         symtab_node::asm_name with xstrdup_for_dump.
3006         (congruence_class::dump): Use symtab_node::name instead of
3007         sem_item::name.
3008         * ipa-icf.h (symtab_node::name): Remove.
3009         (symtab_node::asm_name): Likewise.
3011 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
3013         PR tree-optimization/65450
3014         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
3015         function.
3016         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
3017         it instead of duplicate_ssa_name_ptr_info.
3019         PR target/65222
3020         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
3022 2015-03-18  Richard Biener  <rguenther@suse.de>
3024         * tree-data-ref.h (struct access_matrix): Remove.
3025         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3026         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3027         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
3028         (am_vector_index_for_loop): Likewise.
3029         (struct data_reference): Remove access_matrix member.
3030         (DR_ACCESS_MATRIX): Remove.
3031         (lambda_vector_new): Add comment.
3032         (lambda_matrix_new): Use XOBNEWVEC.
3034 2015-03-18  Richard Biener  <rguenther@suse.de>
3036         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
3037         (pass_ch::execute): Cleanup the CFG only if we did sth.
3038         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
3040 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3042         * expmed.c (synth_mult): Use std::swap instead of manually
3043         swapping algorithms.
3045 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
3047         PR target/65078
3048         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
3050 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
3052         PR target/65296
3053         * config/avr/avr.opt (-nodevicelib): New option.
3054         * doc/invoke.texi (AVR Options): Document it.
3055         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
3056         libgcc.a, libc.a, libm.a.
3057         * config/avr/specs.h: Same.
3058         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
3059         which don't (directly) depend on the device.  Print more help.
3060         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
3061         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
3062         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
3063         case of an error.
3064         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
3065         for specs file name.
3066         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
3067         * config/avr/avr-mcus.def: Adjust initializers and comments.
3069 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
3071         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
3072         DECL_ONE_ONLY to check if decl is one only.
3073         * ipa-split.c (consider_split): Limit splitt of one only functions.
3075 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
3077         PR tree-optimization/65427
3078         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
3079         functions.
3080         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
3082 2015-03-16  Marek Polacek  <polacek@redhat.com>
3084         * cgraph.h (add_new_static_var): Remove declaration.
3085         * varpool.c (add_new_static_var): Remove function.
3087 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
3089         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
3090         instead of vec<tree> * with vec_alloc and release for args.
3091         Adjust all users.
3093         PR middle-end/65431
3094         * omp-low.c (delete_omp_context): Only splay_tree_delete
3095         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
3096         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
3098 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
3100         PR sanitizer/64820
3101         * cfgexpand.c (align_base): New function.
3102         (alloc_stack_frame_space): Call it.
3103         (expand_stack_vars): Align prev_frame to be sure
3104         data->asan_vec elements aligned properly.
3106 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
3108         PR middle-end/65409
3109         * expr.c (store_field): Do not do a direct block copy if the source is
3110         a PARALLEL with BLKmode.
3112 2015-03-16  Tom de Vries  <tom@codesourcery.com>
3114         PR middle-end/65414
3115         Revert:
3116         2015-03-12  Tom de Vries  <tom@codesourcery.com>
3118         PR rtl-optimization/64895
3119         * lra-lives.c (check_pseudos_live_through_calls): Use
3120         actual_call_used_reg_set instead of call_used_reg_set, if available.
3122 2015-03-16  Alan Modra  <amodra@gmail.com>
3124         PR target/63150
3125         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
3126         Modify Z->r bswapdi splitter to use dest in place of scratch.
3127         In r->Z and Z->r bswapdi splitter rename word_high, word_low
3128         to word1, word2 and rearrange logic to suit.
3129         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
3130         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
3131         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
3132         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
3133         early clobber.
3135 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
3137         PR tree-optimization/65369
3138         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
3139         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
3140         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
3142         PR tree-optimization/65418
3143         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
3144         are casts in the first PLUS_EXPR operand, ensure tbias and
3145         *totallowp are in the inner type.
3147         PR rtl-optimization/65401
3148         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
3149         argument.  If true, adjust_address_nv of x with big-endian
3150         correction for the mode widening to GET_MODE (y).
3151         (make_field_assignment): Don't do MEM mode widening here.
3152         Use MEM_P instead of GET_CODE == MEM.
3154 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
3156         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
3157         the external decls.
3159 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3161         PR target/64600
3162         * config/arm/arm.c (arm_gen_constant, AND case): Use
3163         ARM_SIGN_EXTEND when constructing AND mask.
3165 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3167         * graph.c (print_graph_cfg): Make function names visible and append
3168         parenthesis to it.  Also make groups of basic blocks belonging to the
3169         same function visible.
3171 2015-03-12  Richard Biener  <rguenther@suse.de>
3173         PR middle-end/44563
3174         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
3175         to avoid quadratic behavior with inline expansion splitting blocks.
3176         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
3177         with the successor if the predecessor will be merged with it.
3178         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
3179         entry block with its successor.
3181 2015-03-13  Richard Biener  <rguenther@suse.de>
3183         PR middle-end/44563
3184         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
3185         (cleanup_tree_cfg_1): Do not call it.
3186         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
3187         (fixup_noreturn_call): Mark the stmt as control altering.
3188         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
3189         here.
3190         (pass_data_fixup_cfg): Produce a dump file.
3191         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
3192         (need_noreturn_fixup): New global.
3193         (pass_dominator::execute): Fixup queued noreturn calls.
3194         (optimize_stmt): Queue calls that became noreturn for fixup.
3195         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
3196         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
3197         (el_to_fixup): New global.
3198         (eliminate_dom_walker::before_dom_childre): Queue calls that
3199         became noreturn for fixup.
3200         (eliminate): Fixup queued noreturn calls.
3201         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
3202         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
3203         (substitute_and_fold_dom_walker::before_dom_children): Queue
3204         alls that became noreturn for fixup.
3205         (substitute_and_fold): Fixup queued noreturn calls.
3207 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
3209         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
3210         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
3211         are building; for methods check ODR type of class they belong to if
3212         they may lead to a polymorphic call.
3213         (sem_function::compare_polymorphic_p): Be bit smarter about testing
3214         when function may lead to a polymorphic call.
3215         (sem_function::compare_type_list): Remove.
3216         (sem_variable::equals): Update use of compatible_types_p.
3217         (sem_variable::parse_tree_refs): Remove.
3218         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
3219         cdtor.
3220         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
3221         matching here.
3222         (func_checker::compatible_polymorphic_types_p): Break out from ...
3223         (unc_checker::compatible_types_p): ... here.
3224         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
3225         Declare.
3226         (unc_checker::compatible_types_p): Update.
3227         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
3228         Remove.
3230 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3232         PR rtl-optimization/65235
3233         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
3234         When first element of vec_concat is const_int, calculate its size
3235         using second element.
3237 2015-03-12  Richard Biener  <rguenther@suse.de>
3239         PR middle-end/65270
3240         * fold-const.c (operand_equal_p): Fix ordering of resetting
3241         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
3243 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3245         * config/s390/s390.c (s390_reorg): Move code to output nops after label
3246         to s390_reorg ().
3247         (s390_asm_output_function_label): Likewise.
3248         * config/s390/s390.c (s390_asm_output_function_label):
3249         Fix function label alignment with -mhtopatch.
3250         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
3251         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
3252         ("nop_2_byte"): New define_insn.
3253         ("nop_4_byte"): Likewise.
3254         ("nop_6_byte"): Likewise.
3255         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
3256         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
3258 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3260         PR target/65103
3261         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
3262         register.
3264 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3266         PR target/65044
3267         * toplev.c (process_options): Restrict Pointer Bounds Checker
3268         usage with Address Sanitizer.
3270 2015-03-12  Richard Biener  <rguenther@suse.de>
3272         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
3273         to split on.
3274         * omp-low.c (expand_omp_taskreg): Split block before removing
3275         the stmt.
3276         (expand_omp_target): Likewise.
3277         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
3278         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
3279         stmt to split_block.
3281 2015-03-12  Tom de Vries  <tom@codesourcery.com>
3283         PR rtl-optimization/64895
3284         * lra-lives.c (check_pseudos_live_through_calls): Use
3285         actual_call_used_reg_set instead of call_used_reg_set, if available.
3287 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
3289         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
3290         (cgraph_node::remove): Likewise.
3291         (cgraph_node::get_untransformed_body): Likewise.
3292         * varpool.c (varpool_node::remove): Likewise.
3293         (varpool_node::get_constructor): Add sanity check.
3295 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
3297         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
3298         old GCC versions.
3299         (-fabi-compat-version): Likewise.
3300         (-ffriend-injection): Likewise.
3301         (-Wdeclaration-after-statement): Likewise.
3302         (-fomit-frame-pointer): Likewise.
3303         (-ftree-coalesce-inlined-vars): Likewise.
3304         (-fvisibility=): Likewise.
3305         * doc/extend.texi (Typeof): Likewise.
3306         (Zero Length): Likewise.
3307         (Escaped Newlines): Likewise.
3308         (Compound Literals): Likewise.
3309         (Function Attributes): Likewise.
3310         (Label Attributes): Likewise.
3311         (Type Attributes): Likewise.
3312         (Function Names): Likewise.
3313         (Other Builtins): Likewise.
3314         (Function Specific Option Pragmas): Likewise.
3315         (C++ Interface): Likewise.
3317 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
3319         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
3321 2015-03-11  Marek Polacek  <polacek@redhat.com>
3323         PR tree-optimization/65388
3324         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
3326 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
3328         PR target/65296
3329         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
3330         * configure: Regenerate.
3331         * config.in: Regenerate.
3332         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
3333         [-mn-flash]: Document it.
3334         [__AVR_ARCH__]: Document avrtiny.
3336         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
3337         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
3338         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
3340 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3342         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
3344 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3346         PR target/65242
3347         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
3348         allow reloads of PLUS in floating point/VSX registers.
3350 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
3352         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
3353         crypto_sha256_fast.
3354         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
3356 2015-03-11  Richard Biener  <rguenther@suse.de>
3358         PR tree-optimization/65310
3359         * tree-sra.c (build_ref_for_offset): Also preserve larger
3360         alignment.
3362 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
3364         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
3366 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3368         PR target/65368
3369         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
3370         new define_expand.
3371         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
3373 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
3375         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
3376         (sem_function::equals_wpa): ... here.
3378 2015-03-10  Marek Polacek  <polacek@redhat.com>
3379             Jakub Jelinek  <jakub@redhat.com>
3381         PR sanitizer/65367
3382         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
3383         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
3384         separately.
3386 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3388         PR target/65286
3389         * config/rs6000/t-linux: For powerpc64* target set
3390         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
3392 2015-03-10  Richard Biener  <rguenther@suse.de>
3394         PR middle-end/44563
3395         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
3396         for redirect_all_calls.
3398 2015-03-10  Marek Polacek  <polacek@redhat.com>
3400         * gdbinit.in (pcfun): Define and document.
3402 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
3404         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
3405         of libgomp-plugin.h.
3406         (find_target_compiler): Support a case when the path to gcc is
3407         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
3408         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
3409         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
3410         libgomp-plugin.h.
3411         (main): Use GCC_INSTALL_NAME as target_driver_name.
3412         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
3413         define.
3414         (mkoffload.o): Remove obsolete include path and defines.
3415         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
3417 2015-03-10  Richard Biener  <rguenther@suse.de>
3419         PR middle-end/63155
3420         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3421         * tree-ssa-coalesce.c: Include timevar.h.
3422         (attempt_coalesce): Handle graph being NULL.
3423         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3424         Split out abnormal coalescing to ...
3425         (perform_abnormal_coalescing): ... this function.
3426         (coalesce_ssa_name): Perform abnormal coalescing without computing
3427         live/conflict.
3428         (verify_ssa_coalescing_worker): New function.
3429         (verify_ssa_coalescing): Likewise.
3431 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
3433         PR target/65296
3434         * config.gcc (extra_options) [avr]: Remove.
3435         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
3436         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
3437         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
3439         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
3440         (-mmcu=): Add Var and MissingArgError properties.
3441         (-march=): Remove.
3442         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
3443         * config/avr/t-multilib: Regenerate.
3444         * config/avr/specs.h: New file.
3445         * config/avr/driver-avr.c: New file.
3446         * config/avr/genopt.sh: Remove file.
3447         * config/avr/avr-tables.opt: Remove file.
3448         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
3449         * config/avr/avr-c.c: Same.
3450         * avr-arch.h: Same.
3451         (avr_current_device): Remove proto.
3452         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
3453         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
3454         (EXTRA_SPEC_FUNCTIONS): Define.
3455         (avr_devicespecs_file): New specs function proto.
3456         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
3457         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
3458         (avr_current_device): Remove definition and usage.
3459         (avr_set_core_architecture): New static function.
3460         (avr_option_override): Use it.
3461         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
3462         (mcu_name): New static array.
3463         (comparator, avr_archs_str, avr_mcus_str): New static functions.
3464         (avr_inform_devices, avr_inform_core_architectures): New functions.
3465         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
3466         (avrlibc.h) [WITH_AVRLIBC]: Include.
3467         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
3468         (print_mcu): Rewrite from scratch.
3469         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
3470         Forward to avr-specific specs defined in device-specs file.
3471         * config/avr/t-avr (driver-avr.o): New rule.
3472         (avr-devices.o): Depend on avr-arch.h.
3473         (avr-mcus): No more depend on avr-tables.opt.
3474         (avr-tables.opt): Remove rule.
3475         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
3477 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3479         * c-family/c.opt (fchkp-use-wrappers): New.
3480         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
3481         (chkp_wrap_function): New.
3482         (chkp_build_instrumented_fndecl): Support wrapped
3483         functions.
3484         * doc/invoke.texi (-fcheck-pointer-bounds): New.
3485         (-fchkp-check-incomplete-type): New.
3486         (-fchkp-first-field-has-own-bounds): New.
3487         (-fchkp-narrow-bounds): New.
3488         (-fchkp-narrow-to-innermost-array): New.
3489         (-fchkp-optimize): New.
3490         (-fchkp-use-fast-string-functions): New.
3491         (-fchkp-use-nochk-string-functions): New.
3492         (-fchkp-use-static-bounds): New.
3493         (-fchkp-use-static-const-bounds): New.
3494         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
3495         (-fchkp-check-read): New.
3496         (-fchkp-check-write): New.
3497         (-fchkp-store-bounds): New.
3498         (-fchkp-instrument-calls): New.
3499         (-fchkp-instrument-marked-only): New.
3500         (-fchkp-use-wrappers): New.
3501         (-static-libmpx): New.
3502         (-static-libmpxwrappers): New.
3504 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3506         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
3507         (CHKP_SPEC): Add wrappers library.
3508         * c-family/c.opt (static-libmpxwrappers): New.
3510 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3512         * config/i386/linux-common.h (LIBMPX_LIBS): New.
3513         (LIBMPX_SPEC): New.
3514         (CHKP_SPEC): New.
3515         * gcc.c (CHKP_SPEC): New.
3516         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
3517         * c-family/c.opt (static-libmpx): New.
3519 2015-03-10  Richard Biener  <rguenther@suse.de>
3521         PR middle-end/44563
3522         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
3523         for compare_type.
3524         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
3525         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
3526         (cgraph_add_edge_to_call_site_hash): Likewise.
3527         (cgraph_node::get_edge): Likewise.
3528         (cgraph_edge::set_call_stmt): Likewise.
3529         (cgraph_edge::remove_caller): Likewise.
3531 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
3533         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
3534         (callee_saved_gpr_regs_size): ... this.
3535         (callee_saved_regs_first_regno): Rename to ...
3536         (callee_saved_first_gpr_regno): ... this.
3537         (callee_saved_regs_last_regno) Rename to ...
3538         (callee_saved_last_gpr_regno): ... this.
3539         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
3540         variables.
3541         (nds32_initial_elimination_offset): Likewise.
3542         (nds32_expand_prologue): Likewise.
3543         (nds32_expand_epilogue): Likewise.
3544         (nds32_expand_prologue_v3push): Likewise.
3545         (nds32_expand_epilogue_v3pop): Likewise.
3546         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3547         Adjust renamed variables.
3548         (nds32_output_stack_pop): Likewise.
3550 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3552         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
3553         code in comment.
3555 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3557         PR rtl-optimization/65321
3558         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
3559         than shift mode.
3560         * var-tracking.c (use_narrower_mode): Likewise.
3562 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
3564         PR tree-optimization/65355
3565         * varasm.c (notice_global_symbol): Do not produce RTL.
3566         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
3567         anchor.
3568         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3569         check for section anchors.
3571 2015-03-10  Alan Modra  <amodra@gmail.com>
3573         PR target/65286
3574         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
3575         to be single-arch by default.  Set cpu_is_64bit for powerpc64
3576         given --with-cpu=native.
3577         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
3578         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
3579         and powerpc64le.
3580         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
3581         rs6000_isa_flags rather than TARGET_64BIT.
3583 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
3584             Kaz Kojima  <kkojima@gcc.gnu.org>
3586         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
3588 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
3590         PR lto/65361
3591         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
3592         on a TREE_BINFO, instead use BINFO_TYPE.
3594 2015-03-09  Richard Biener  <rguenther@suse.de>
3596         PR middle-end/65270
3597         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
3598         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
3599         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
3600         of that.  When comparing dereferences compare alignment.
3601         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
3603 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
3605         * ipa-inline-analysis.c (check_callers): Check
3606         node->can_remove_if_no_direct_calls_and_refs_p.
3607         (growth_likely_positive): Reorganize to call
3608         can_remove_if_no_direct_calls_p later.
3609         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
3610         will_be_removed_from_program_if_no_direct_calls_p): Add
3611         will_inline parameter.
3612         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
3613         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3614         Handle inliner case correctly.
3616 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3618         PR tree-optimization/63743
3619         * cfgexpand.c (reorder_operands): Also reorder if only second operand
3620         had its definition forwarded by TER.
3622 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
3624         PR lto/65316
3625         * ipa-utils.h (types_odr_comparable): Add strict argument.
3626         * ipa-devirt.c: Fix whitespace;
3627         (odr_hasher): Remove.
3628         (odr_name_hasher, odr_vtable_hasher): New hashers.
3629         (can_be_name_hashed_p): New predicate.
3630         (hash_type_name): remove.
3631         (hash_odr_name): New.
3632         (odr_name_hasher::hash): new.
3633         (can_be_vtable_hashed_p): New.
3634         (hash_odr_vtable): New.
3635         (odr_vtable_hasher::hash): New.
3636         (types_same_for_odr): Add strict parameter.
3637         (types_odr_comparable): Likewise.
3638         (odr_name_hasher::equal): New.
3639         (odr_vtable_hasher::equal): New.
3640         (odr_name_hasher::remove): New.
3641         (odr_hash_type): Change to hash_table<odr_name_hasher>.
3642         (odr_vtable_hash_type): New.
3643         (odr_vtable_hash): New.
3644         (odr_subtypes_equivalent_p): Do strict comparsion.
3645         (add_type_duplicate): Merge type names; cleanup; avoid type
3646         duplicates.
3647         (register_odr_type): Initialize vtable hash.
3648         (build_type_inheritance_graph): Likewise
3649         (get_odr_type): Reorg to use two hashes.
3650         (dump_possible_polymorphic_call_targets): Move sanity check after debug
3651         output.
3652         (ipa_devirt): Dump type_inheritance_graph.
3653         (types_same_for_odr): Add strict mode.
3655 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3657         PR ipa/65334
3658         * cgraph.h (symtab_node): Add definition_alignment,
3659         can_increase_alignment_p and increase_alignment.
3660         * symtab.c (symtab_node::can_increase_alignment_p,
3661         increase_alignment_1, symtab_node::increase_alignment,
3662         symtab_node::definition_alignment): New.
3663         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
3664         can_increase_alignment_p.
3665         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
3666         * tree-vect-stmts.c (ensure_base_align): Likewise.
3667         * varasm.c (function_section_1): Use definition_alignment.
3668         (assemble_start_function): Likewise.
3669         (emit_local): likewise.
3670         (build_constant_desc): Likewsie.
3671         (output_constant_def_contents): Likewise.
3672         (place_block_symbol): Likewise.
3673         (output_object_block): Likewise.
3675 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3677         PR ipa/65316
3678         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
3679         when outputting debug.
3681 2015-03-07  Marek Polacek  <polacek@redhat.com>
3682             Martin Uecker  <uecker@eecs.berkeley.edu>
3684         PR sanitizer/65280
3685         * doc/invoke.texi: Update description of -fsanitize=bounds.
3687 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3689         * tree-ssa-phiopt.c (neg_replacement): Remove.
3690         (tree_ssa_phiopt_worker): Remove negate optimization.
3692 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3694         PR ipa/65302
3695         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
3697 2015-03-06  Richard Biener  <rguenther@suse.de>
3699         PR middle-end/64928
3700         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
3701         and liveout_obstack members.
3702         (calculate_live_on_exit): Remove.
3703         (calculate_live_ranges): Change declaration.
3704         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
3705         (new_tree_live_info): Adjust.
3706         (calculate_live_ranges): Delete livein when not wanted.
3707         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
3708         Deal with partly deleted live info.
3709         (loe_visit_block): Remove temporary bitmap by using
3710         bitmap_ior_and_compl_into.
3711         (live_worklist): Adjust accordingly.
3712         (calculate_live_on_exit): Make static.
3713         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
3714         we do not need livein.
3716 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
3718         * real.c (real_from_string): Fix typo in assertion.
3720 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
3722         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
3723         the patch.
3725 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3727         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
3729 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
3731         PR target/64342
3732         * lra-assigns.c (find_hard_regno_for): Rename to
3733         find_hard_regno_for_1.  Add a new parameter.
3734         (find_hard_regno_for): New function using find_hard_regno_for_1.
3736 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3738         PR rtl-optimization/65067
3739         * expmed.c (store_bit_field, extract_bit_field): Reworked the
3740         strict volatile bitfield handling.
3742 2015-03-05  Martin Liska  <mliska@suse.cz>
3744         PR ipa/65318
3745         * ipa-icf.c (sem_variable::equals): Compare variables types.
3747 2015-03-05  Richard Henderson  <rth@redhat.com>
3749         PR target/65121
3750         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
3751         correctly check weak symbol binding.
3753 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
3755         PR middle-end/65315
3756         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
3757         needed alignment.
3759 2015-03-05  Martin Liska  <mliska@suse.cz>
3761         * ipa-inline.c (inline_small_functions): Set default value to
3762         prevent warning during bootstrap.
3763         * tree.h: Add pragma guard that ignores false positives during
3764         bootstrap.
3766 2015-03-05  Richard Biener  <rguenther@suse.de>
3768         PR tree-optimization/65310
3769         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3770         Properly preserve alignment of the base of the access.
3772 2015-03-05  Richard Biener  <rguenther@suse.de>
3774         PR ipa/65270
3775         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
3776         Compare dependence info.
3778 2015-03-05  Richard Biener  <rguenther@suse.de>
3780         PR middle-end/65233
3781         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
3782         tree-into-ssa.h.
3783         (walk_ssa_copies): Revert last chage.  Instead do not walk
3784         SSA names registered for SSA update.
3786 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
3788         PR ipa/65270
3789         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
3790         vtable references for their containing type.
3791         (sem_function::equals_wpa): Compare TYPE_RESTRICT
3792         and type attributes.
3794 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
3796         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
3797         before negating it.
3798         * stor-layout.c (finalize_record_size): Revert latest change.
3800 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
3802         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
3804 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
3806         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
3807         for correct comdat handling.
3808         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3809         Likewise.
3810         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
3811         (used_from_object_file_p_worker): Remove.
3812         (cgraph_node::only_called_directly_or_alised): Add
3813         used_from_object_file_p.
3814         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
3815         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
3816         can_remove_if_no_direct_calls_and_refs_p.
3818 2015-03-04  Nick Clifton  <nickc@redhat.com>
3820         * config/rl78/rl78.h (enum reg_class): Remove real registers from
3821         General register class.
3822         * config/rl78/rl78-real.md: Replace general register constraints
3823         with real+virtual register constraints.
3825 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3827         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
3828         from checking for -mhtm option.
3830 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
3832         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
3833         (struct ipa_sra_check_caller_data): Add has_thunk field.
3834         (ipa_sra_check_caller): Check for thunk.
3835         (ipa_sra_preliminary_function_checks): Give up on function with
3836         thunks.
3837         (ipa_early_sra): Use call_for_symbol_and_aliases.
3839 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3841         PR target/65249
3842         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
3843         called for __stack_chk_guard symbol.
3845 2015-03-03  DJ Delorie  <dj@redhat.com>
3847         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
3848         inc/dec.
3849         (*addhi3_real): Likewise.
3850         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
3851         pattern to match incrementing memory.
3852         * config/rl78/predicates.md (rl78_1_2_operand): New.
3853         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
3854         it's the same and only mem.
3855         (rl78_alloc_physical_registers_op2): If there's effectively only
3856         one MEM, transcode it into HL.
3857         (rl78_far_p): Reject addresses that aren't legitimate.
3859 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
3861         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
3862         negating it.
3864         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
3866 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
3868         Implement call0 ABI for xtensa
3869         * config/xtensa/constraints.md ("a" constraint): Include stack
3870         pointer in case of call0 ABI.
3871         ("q" constraint): Make empty in case of call0 ABI.
3872         ("D" constraint): Include stack pointer in case of call0 ABI.
3873         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
3874         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
3875         prototypes.
3876         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
3877         variable.
3878         (xtensa_regno_to_class): Make it a local variable in the
3879         function xtensa_regno_to_class.
3880         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
3881         macro, function prototype and implementation.
3882         (reg_nonleaf_alloc_order): Make it a local variable in the
3883         function order_regs_for_local_alloc.
3884         (xtensa_conditional_register_usage): New function.
3885         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
3886         (xtensa_valid_move): Allow direct moves to stack pointer
3887         register in call0 ABI.
3888         (xtensa_setup_frame_addresses): Only spill register windows in
3889         windowed ABI.
3890         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
3891         call0 ABI respectively.
3892         (xtensa_function_arg_1): Only mark a7 register for copying in
3893         windowed ABI.
3894         (xtensa_call_save_reg): New function.
3895         (compute_frame_size): Add space for callee saved register
3896         storage to the frame size in call0 ABI.
3897         (xtensa_expand_prologue): Generate code to set up stack frame
3898         and save callee-saved registers in call0 ABI.
3899         (xtensa_expand_epilogue): New function.
3900         (xtensa_set_return_address): New function.
3901         (xtensa_return_addr): Calculate return address in call0 ABI.
3902         (xtensa_builtin_saveregs): Only mark a7 register for copying and
3903         emit copying code in windowed ABI.
3904         (order_regs_for_local_alloc): Add preferred register allocation
3905         order for non-leaf function in call0 ABI.
3906         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
3907         (xtensa_asm_trampoline_template): Add trampoline generation for
3908         call0 ABI.
3909         (xtensa_trampoline_init): Add trampoline initialization for
3910         call0 ABI.
3911         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
3912         functions.
3913         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
3914         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
3915         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
3916         ABI call-used registers.
3917         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
3918         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
3919         call0 ABI.
3920         (REG_CLASS_CONTENTS): Include all registers into the preferred
3921         reload registers set, adjust the set in the
3922         xtensa_conditional_register_usage.
3923         (xtensa_regno_to_class): Drop variable declaration.
3924         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
3925         function.
3926         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
3927         respectively.
3928         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
3929         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
3930         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
3931         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
3932         location in call0 ABI.
3933         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
3934         stack adjustment size when handling exception.
3935         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
3936         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
3937         definitions.
3938         ("return" pattern): Generate ret.n/ret in call0 ABI.
3939         ("epilogue" pattern): Expand epilogue.
3940         ("nonlocal_goto" pattern): Use default in call0 ABI.
3941         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
3942         emit eh_set_a0_* depending on ABI.
3943         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
3944         ("eh_set_a0_call0", "blockage"): New patterns.
3946 2015-03-03  Martin Liska  <mliska@suse.cz>
3948         PR ipa/65287
3949         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
3951 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3953         PR 65138/target
3954         * config/rs6000/rs6000-tables.opt: Regenerate table.
3956 2015-03-03  Renlin Li  <renlin.li@arm.com>
3958         * doc/md.texi (@item ^): Change ? into ^.
3960 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
3962         * doc/tm.texi: Regenerated.
3964 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
3966         * builtins.c (expand_builtin_return_addr): Add
3967         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
3968         surrounding #ifdef.
3969         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
3970         definition to 1.
3971         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
3972         Likewise.
3973         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
3974         undefined.
3975         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
3976         paragraph.
3978 2015-03-03  Martin Jambor  <mjambor@suse.cz>
3979             Eric Botcazou  <ebotcazou@adacore.com>
3981         * tree-sra.c (ipa_sra_check_caller_data): New type.
3982         (has_caller_p): Removed.
3983         (ipa_sra_check_caller): New function.
3984         (ipa_sra_preliminary_function_checks): Use it.
3986 2015-03-03  Martin Liska  <mliska@suse.cz>
3988         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
3989         instead of if branch.
3991 2015-03-03  Martin Liska  <mliska@suse.cz>
3993         PR ipa/65282
3994         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
3996 2015-03-23  Jeff Law  <law@redhat.com>
3998         PR tree-optimization/65241
3999         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
4000         hash table if INSERT is true.
4002 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
4004         PR target/65296
4005         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
4007 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
4009         PR target/64331
4010         * config/avr/avr.c (context.h, tree-pass.h): Include them.
4011         (avr_pass_data_recompute_notes): New static variable.
4012         (avr_pass_recompute_notes): New class.
4013         (avr_register_passes): New static function.
4014         (avr_option_override): Call it.
4016 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
4018         Fix various problems with specs file generation.
4020         PR target/65296
4021         * config.gcc (extra_gcc_objs) [avr]: Remove.
4022         * config/avr/driver-avr.c: Remove file.
4023         * config/avr/t-avr (driver-avr.o): Remove rule.
4024         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
4025         INCLUDES to build.  Depend on TM_H.
4026         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
4027         build warnings.  Fix non-matching types and non-existing %-codes.
4028         (tm.h): Include.
4029         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
4030         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
4031         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
4032         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
4033         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
4034         (LIBGCC_SPEC): Remove definitions.
4036 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
4038         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
4039         to create a register in testing mode.
4041 2015-03-03  Martin Liska  <mliska@suse.cz>
4042             Jan Hubicka  <hubicka@ucw.cz>
4044         PR ipa/65263
4045         * cgraph.c (cgraph_node::has_thunk_p): New function.
4046         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
4047         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
4048         (sem_function::merge): Assert is changed.
4050 2015-03-03  Martin Liska  <mliska@suse.cz>
4051             Martin Jambor  <mjambor@suse.cz>
4053         PR ipa/65087
4054         * ipa-icf.c (sem_item_optimizer::execute): Change function
4055         return value to boolean.
4056         (sem_item_optimizer::merge_classes): Likewise.
4057         (ipa_icf_driver): Return TODO_remove_functions in case there's
4058         a merge operation processed.
4059         * ipa-icf.h: Change function return value to boolean.
4061 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4063         PR 65138/target
4064         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
4065         processor type for 64-bit little endian PowerPC.
4067         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4068         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
4069         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
4070         printing built-in mask so it does not pass NULL pointers.
4072         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
4073         -mcpu=powerpc64le.
4075 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
4077         PR target/58158
4078         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
4079         !ISA_HAS_FP_CONDMOVE.
4081 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
4083         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
4084         reload_completed.
4086 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
4088         * doc/invoke.texi (Options for Code Generation Conventions):
4089         Fix URL of DSO paper.
4091 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
4093         PR ipa/65130
4094         * ipa-inline.c (check_callers): Looks for recursion.
4095         (inline_to_all_callers): Give up on uninlinable or recursive edges.
4096         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
4097         summary of inline clones.
4098         (do_estimate_growth_1): Fix recursion check.
4100 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
4102         PR ipa/64988
4103         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
4104         comdat groups.
4106 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
4107             Aldy Hernandez  <aldyh@redhat.com>
4109         PR lto/65276
4110         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
4111         when checking TYPE_BINFO.
4113 2015-03-02  Richard Biener  <rguenther@suse.de>
4115         PR ipa/65270
4116         * ipa-icf-gimple.c: Include builtins.h.
4117         (func_checker::compare_memory_operand): Compare base alignment.
4119 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
4121         PR target/65184
4122         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
4123         are never passed by reference.
4125 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
4127         PR target/65183
4128         * tree-chkp.c (chkp_check_lower): Don't check against
4129         zero bounds for already instrumented functions.
4130         (chkp_check_upper): Likewise.
4131         (chkp_fini): Clean pass local data to avoid wrong reusage.
4133 2015-02-28  Martin Liska  <mliska@suse.cz>
4134             Jan Hubicka  <hubicka@ucw.cz>
4136         * ipa-icf.c (sem_variable::equals): Improve debug output;
4137         get variable constructor.
4138         (sem_variable::parse): Do not filter out too early; give up on
4139         volatile and register vars.
4140         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
4141         variables.
4142         * ipa-icf.h (sem_variable::init): Do not set ctor.
4143         (sem_variable::ctor): Remove.
4145 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
4147         PR middle-end/65233
4148         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
4150 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4152         * ipa-icf.c: Include stor-layout.h
4153         (sem_function::compare_cgraph_references): Rename to ...
4154         (sem_item::compare_cgraph_references): ... this one.
4155         (sem_variable::equals_wpa): New function
4156         (sem_variable::equals): Do not check stuff already verified by
4157         equals_wpa.
4158         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
4159         * ipa-icf.h (sem_item): Add compare_cgraph_references.
4160         (sem_function): Remove compare_cgraph_references.
4161         (sem_variable): Turns equals_wpa into non-inline.
4163 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4165         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
4166         (sem_item::add_expr): New function.
4167         (sem_function::hash_stmt): Handle operands of most statements.
4168         (sem_variable::get_hash): Hash the actual constructor.
4169         * ipa-icf.h (sem_item): Add add_expr.
4170         (sem_function): Update prototype of hash_stmt
4172 2015-02-28  Martin Liska  <mliska@suse.cz>
4173             Jan Hubicka  <hubicka@ucw.cz>
4175         PR ipa/65245
4176         * ipa-icf-gimple.c (func_checker::compare_function_decl):
4177         Remove.
4178         (func_checker::compare_variable_decl): Skip symtab vars.
4179         (func_checker::compare_cst_or_decl): Update.
4180         * ipa-icf.c (sem_function::parse): Do not consider aliases.
4181         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
4182         use correct symtab predicates.
4183         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
4184         (sem_variable::parse):  Update comment.
4185         (sem_item_optimizer::build_graph): Consider ultimate aliases
4186         for references.
4188 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4190         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
4191         of OBJ_TYPE_REF.
4193 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4195         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
4196         (sem_variable::merge) Likewise.
4198 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4200         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
4201         target; also match flag_ipa_devirt.
4203 2015-03-01  Martin Liska  <mliska@suse.cz>
4204             Jan Hubicka  <hubicka@ucw.cz>
4206         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
4207         Validate variable alignment.
4208         * ipa-icf.c (sem_function::equals_private): Be more precise
4209         about non-common function attributes.
4210         (sem_variable::equals): Likewise.
4212 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4214         PR ipa/65237
4215         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
4216         across COMDAT group boundary.
4218 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4220         PR ipa/65232
4221         * ipa-icf.c (clear_decl_rtl): New function.
4222         (sem_function::merge): Clear RTL before forming alias.
4223         (sem_variable::merge): Clear RTL before forming alias.
4225 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4227         PR ipa/65236
4228         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
4230 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
4232         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
4233         to neon_to_gp<q>.
4235 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
4237         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
4238         a typo in the description.
4240 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
4242         PR target/64317
4243         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4244         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4245         * lra-constraints.c: Include "params.h".
4246         (EBB_PROBABILITY_CUTOFF): Use
4247         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
4248         (lra_inheritance): Use '<' instead of '<=' for
4249         EBB_PROBABILITY_CUTOFF.
4250         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
4251         Document change.
4253 2015-02-27  Martin Liska  <mliska@suse.cz>
4255         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
4256         vector length condition.
4258 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
4260         * doc/extend.texi (x86 transactional memory intrinsics):
4261         Reorganize discussion of _xbegin.  Clarify that the return
4262         value is a bit mask.  Expand example and move to end of section.
4264 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
4265             Aldy Hernandez  <aldyh@redhat.com>
4267         PR rtl-optimization/65220
4268         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
4270 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
4272         PR target/65032
4273         * lra-remat.c (update_scratch_ops): New.
4274         (do_remat): Call it.
4275         * lra.c (lra_register_new_scratch_op): New. Take code from ...
4276         (remove_scratches): ... here.
4277         * lra-int.h (lra_register_new_scratch_op): New prototype.
4279 2015-02-27  Marek Polacek  <polacek@redhat.com>
4281         PR c/65040
4282         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
4283         -Wformat-signedness anymore.
4285 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4287         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
4288         function.
4289         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
4291 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4293         * config/s390/s390.c (enum s390_builtin):
4294         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
4295         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
4296         (s390_init_builtins): Generate new builtin functions.
4297         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
4298         (s390_sfpc, s390_efpc): New pattern definitions.
4300 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4302         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
4303         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
4304         (s390_builtin_decls): New array.
4305         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
4306         (s390_builtin_decl): New function.
4307         (TARGET_BUILTIN_DECL): Define macro.
4309 2015-02-27  Richard Biener  <rguenther@suse.de>
4311         PR middle-end/63175
4312         * builtins.c (get_object_alignment_2): Make sure to re-apply
4313         the ANDed mask after recursing to its operand gets us a new
4314         misalignment bit position.
4316 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
4317             Martin Liska  <mliska@suse.cz>
4319         PR bootstrap/65150
4320         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
4321         Use address_matters_p.
4322         (redirect_all_callers, set_addressable): New functions.
4323         (sem_function::merge): Reorganize and fix merging issues.
4324         (sem_variable::merge): Likewise.
4325         (sem_variable::compare_sections): Remove.
4326         * common.opt (fmerge-all-constants, fmerge-constants): Remove
4327         Optimization flag.
4328         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
4329         redirect them.
4330         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
4331         decl is used.
4332         (address_matters_1): New function.
4333         (symtab_node::address_matters_p): New function.
4334         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
4335         check for merged flag.
4336         * cgraph.h (address_matters_p): Declare.
4337         (symtab_node::address_taken_from_non_vtable_p): Remove.
4338         (symtab_node::address_can_be_compared_p): New method.
4339         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
4340         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
4341         Remove.
4342         (comdat_can_be_unshared_p_1) Use address_matters_p.
4343         (update_vtable_references): Fix formating.
4344         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
4345         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
4346         * cgraphclones.c: Preserve merged and icf_merged flags.
4348 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
4350         * doc/extend.texi (Function Attributes): Fix spelling and typos.
4351         (Label Attributes): Likewise.
4352         (Cilk Plus Builtins): Likewise.
4353         (ARC SIMD Built-in Functions): Likewise.
4354         (ARM C Language Extensions (ACLE)): Likewise.
4355         (PowerPC Built-in Functions): Likewise.
4356         (PowerPC Hardware Transactional Memory Built-in Functions):
4357         Likewise.
4359 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
4361         PR tree-optimization/65216
4362         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
4363         new stmt and new SSA_NAME for lhs whenever the arguments have
4364         changed and weren't just swapped.  Fix comment typo.
4366         PR tree-optimization/65215
4367         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
4368         for PDP endian targets.
4369         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
4370         Fix up formatting issues.
4371         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
4372         size is smaller than the original, adjust MEM_REF offset by the
4373         difference of sizes.  Use is_gimple_mem_ref_addr instead of
4374         is_gimple_min_invariant test to avoid adding address temporaries.
4376 2015-02-26  Martin Liska  <mliska@suse.cz>
4377             Jan Hubicka  <hubicka@ucw.cz>
4379         PR ipa/64693
4380         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
4381         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
4382         (sem_item_optimizer::process_cong_reduction): Include division by
4383         sensitive references.
4384         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
4385         * ipa-ref.c (ipa_ref::address_matters_p): New function.
4386         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
4388 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
4390         PR target/65192
4391         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
4392         Remove.
4393         * config/avr/avr.c: Same.
4394         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
4395         Refuse any constant address not in 0..0xbf.
4396         * config/avr/avr.md (*mov<mode>, *movsf): Remove
4397         tiny_valid_direct_memory_access_range from insn conditions.
4398         (mov<mode>): Don't special-case expansion of avrtiny addresses.
4400 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
4402         PR target/61142
4403         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
4404         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
4405         * config/sh/predicates.md (const_logical_operand): New predicate.
4406         * config/sh/sh.md: Add new peephole2 patterns.
4408 2015-02-26  Marek Polacek  <polacek@redhat.com>
4410         PR ipa/65008
4411         * ipa-inline.c (early_inliner): Recompute inline parameters.
4413 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4415         PR target/65171
4416         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
4417         instructions with TImode operands are included in the analysis.
4419 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
4421         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
4422         of an EDGE_FSM_THREAD.
4424 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4426         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
4428 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
4430         PR debug/46102
4431         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
4433 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
4435         PR tree-optimization/65048
4436         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
4437         (thread_through_all_blocks): Call valid_jump_thread_path.
4438         Remove invalid FSM jump-thread paths.
4440 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
4442         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
4443         (ipa_write_optimization_summaries): Likewise.
4444         * tree-streamer.h: Include data-streamer.h.
4445         (streamer_mode_table): Declare extern variable.
4446         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
4447         * lto-streamer-out.c (lto_output_init_mode_table,
4448         lto_write_mode_table): New functions.
4449         (produce_asm_for_decls): Call lto_write_mode_table when streaming
4450         offloading LTO.
4451         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
4452         (lto_create_simple_input_block): Add mode_table argument to the
4453         lto_input_block constructors.
4454         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
4455         Likewise.
4456         * data-streamer-in.c (string_for_index): Likewise.
4457         * ipa-inline-analysis.c (inline_read_section): Likewise.
4458         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
4459         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
4460         * lto-streamer-in.c (lto_read_body_or_constructor,
4461         lto_input_toplevel_asms): Likewise.
4462         (lto_input_mode_table): New function.
4463         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
4464         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
4465         Use bp_pack_machine_mode.
4466         * real.h (struct real_format): Add name field.
4467         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
4468         (class lto_input_block): Add mode_table member.
4469         (lto_input_block::lto_input_block): Add mode_table_ argument,
4470         initialize mode_table.
4471         (struct lto_file_decl_data): Add mode_table field.
4472         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
4473         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
4474         unpack_ts_decl_common_value_fields,
4475         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
4476         * tree-streamer.c (streamer_mode_table): New variable.
4477         * real.c (ieee_single_format, mips_single_format,
4478         motorola_single_format, spu_single_format, ieee_double_format,
4479         mips_double_format, motorola_double_format,
4480         ieee_extended_motorola_format, ieee_extended_intel_96_format,
4481         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4482         ibm_extended_format, mips_extended_format, ieee_quad_format,
4483         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4484         decimal_single_format, decimal_double_format, decimal_quad_format,
4485         ieee_half_format, arm_half_format, real_internal_format): Add name
4486         field.
4487         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4489 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
4491         PR target/65161
4492         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
4493         reordering for selective scheduling.
4495 2015-02-26  Terry Guo  <terry.guo@arm.com>
4497         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
4498         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
4499         (arm_arch_no_volatile_ce): Declare new global variable.
4500         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
4501         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
4502         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
4503         (TARGET_NO_VOLATILE_CE): New macro.
4504         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
4505         volatile memory access in IT block
4507 2015-02-25  Kai Tietz  <ktietz@redhat.com>
4509         PR tree-optimization/61917
4510         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
4511         that reduc_def_stmt is null.
4513 2015-02-25  Martin Liska  <mliska@suse.cz>
4515         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
4516         hard register variables.
4518 2015-02-25  Kai Tietz  <ktietz@redhat.com>
4520         PR target/64212
4521         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
4522         (symtab::noninterposable_alias): Likewise.
4524 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
4526         PR target/65167
4527         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
4528         bounds registers.
4529         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
4531 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
4533         PR target/64997
4534         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
4535         as split condition; force split via '#' in output pattern.
4537 2015-02-25  Richard Biener  <rguenther@suse.de>
4538             Kai Tietz  <ktietz@redhat.com>
4540         PR tree-optimization/61917
4541         * tree-vect-loop.c (vectorizable_reduction): Allow
4542         vect_internal_def without reduction to exit graceful.
4544 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
4546         PR target/65196
4547         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
4548         only with NONDEBUG_INSN_P.
4550 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
4552         Use variadic macros with avr-log.c.
4554         * config/avr/avr-protos.h (avr_vdump): New prototype.
4555         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
4556         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
4557         * config/avr/avr-log.c: Adjust comments.
4558         (avr_vdump): New function.
4559         (avr_vadump): Pass caller as 2nd argument instead of format string.
4560         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
4561         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
4563 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
4565         PR lto/64374
4566         * target.def (target_option_stream_in): New target hook.
4567         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
4568         targetm.target_option.post_stream_in if non-NULL.
4569         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
4570         * doc/tm.texi: Updated.
4571         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
4572         function.
4573         (TARGET_OPTION_POST_STREAM_IN): Redefine.
4575 2015-02-24  Jeff Law  <law@redhat.com>
4577         PR target/65117
4578         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
4579         of operand 0 and operand 2.
4580         (zero_cost_loop_end, loop_end): Similarly.
4582 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
4584         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
4585         CXX_MEM_STAT_INFO.
4587 2015-02-24  DJ Delorie  <dj@redhat.com>
4589         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
4590         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
4591         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
4592         instead of hardcoding SImode.
4594 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
4596         * omp-low.c (create_omp_child_function): Tag entrypoint
4597         functions with a special attribute.
4599 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4601         PR target/65058
4602         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
4604 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
4606         PR rtl-optimization/65123
4607         * lra-remat.c (operand_to_remat): Check hard regs in insn
4608         definition too.
4610 2015-02-24  Nick Clifton  <nickc@redhat.com>
4612         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
4613         to the assembler.
4615 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
4617         PR libgomp/64625
4618         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
4619         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
4620         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
4621         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
4622         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
4623         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
4624         (BUILT_IN_GOACC_PARALLEL): Specify as
4625         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
4626         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
4627         * builtin-types.def
4628         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4629         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4630         Remove function types.
4631         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
4632         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4633         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4634         New function types.
4636 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
4638         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
4640 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
4642         PR tree-optimization/65170
4643         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
4644         if val[1] < 0, clear also val[2] and return 3.
4646 2015-02-24  Alan Modra  <amodra@gmail.com>
4648         PR target/65172
4649         * config/rs6000/rs6000.c (get_memref_parts): Only return true
4650         when *base is a reg.  Handle nested plus addresses.  Simplify
4651         pre_modify test.
4653 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
4655         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
4656         use natural alignment when optimizing for size.
4658 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
4660         PR target/65153
4661         * config/sh/sh.md (movsicc_true+3): Remove peephole.
4662         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
4663         * config/sh/sh.c (replace_n_hard_rtx): Remove.
4665 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
4667         PR fortran/63427
4668         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
4669         too big for a wide_int.  Implement missing wrapping operation.
4671 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
4673         PR target/65163
4674         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
4675         instead of const_int 4294901760.
4677 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
4679         * config/avr/t-avr: Fix typo in comment.
4681 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
4683         * doc/rtl.texi (fma): Clarify documentation.
4685 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
4687         PR debug/58123
4688         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
4689         over input_location.
4691 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
4693         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
4694         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
4695         restrict alignments to absolute_biggest_alignment.
4696         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
4697         Define.
4698         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
4699         * doc/tm.texi: Regenerate.
4700         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
4702 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
4704         PR target/64172
4705         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
4707 2015-02-20  Richard Biener  <rguenther@suse.de>
4709         PR tree-optimization/65136
4710         * tree-ssa-propagate.c: Include cfgloop.h.
4711         (replace_phi_args_in): Avoid replacing loop latch edge PHI
4712         arguments with constants.
4714 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
4715             Martin Liska  <mliska@suse.cz>
4717         PR target/63892
4718         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
4719         don't try to create_thunk if stdarg_p.  If
4720         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
4721         redirect_callers if possible.
4722         (sem_item_optimizer::execute): Call unregister_hooks here...
4723         (ipa_icf_driver): ... instead of here.
4725 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4727         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
4728         Mark operand 0 as earlyclobber in 2nd alternative.
4729         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
4730         Write negated shift amount into QI lowpart operand 0 and use it
4731         in the shift step.
4732         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4734 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
4736         * cgraph.h (clone_function_name_1): Declare.
4737         * cgraphclones.c (clone_function_name_1): New function.
4738         (clone_function_name): Use it.
4739         * lto-partition.c: Include "stringpool.h".
4740         (must_not_rename, maybe_rewrite_identifier)
4741         (validize_symbol_for_target): New static functions.
4742         (privatize_symbol_name): Use must_not_rename.
4743         (promote_symbol): Call validize_symbol_for_target.
4744         (lto_promote_cross_file_statics): Likewise.
4745         (lto_promote_statics_nonwpa): Likewise.
4747 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
4749         PR target/64452
4750         * config/avr/avr.md (pushhi_insn): New insn.
4751         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
4753 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
4754             Jakub Jelinek  <jakub@redhat.com>
4756         * tree-streamer.c (preload_common_nodes): Don't preload
4757         TI_VA_LIST* for offloading.
4758         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
4759         in_lto_p.
4761 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
4763         * config/pa/pa.c (pa_emit_move_sequence): Always force
4764         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
4765         note on insn.
4767         * config/pa/pa.c (pa_reloc_rw_mask): New function.
4768         (TARGET_ASM_RELOC_RW_MASK): Define.
4769         (pa_cannot_force_const_mem): Revert previous change.
4771 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
4772             Jan Hubicka  <hubicka@ucw.cz>
4774         PR ipa/65028
4775         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
4776         across jump functions.
4778 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
4780         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
4782 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
4784         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
4786 2015-02-19  Richard Henderson  <rth@redhat.com>
4788         PR middle-end/65074
4789         * varasm.c (default_binds_local_p_2): Don't test node->definition;
4790         test DECL_EXTERNAL independent of symtab_node.
4792 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
4794         PR lto/65012
4795         * varpool.c (varpool_node::get_constructor): Return early
4796         if this->lto_file_data is NULL.
4798 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4800         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
4801         (rank_for_schedule_debug): Update.
4802         (ready_sort): Make static.  Move sorting logic to ...
4803         (ready_sort_debug, ready_sort_real): New static functions.
4804         (schedule_block): Sort both debug insns and real insns in preparation
4805         for ready list trimming.  Improve debug output.
4806         * sched-int.h (ready_sort): Remove global declaration.
4808 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
4810         * ipa-icf.c (sem_function::equals_private): Adjust.
4811         (sem_function::bb_dict_test): Take a vec<int> * instead of
4812         auto_vec<int>.
4813         * ipa-icf.h (bb_dict_test): Likewise.
4815 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
4817         PR gcov-profile/64634
4818         * tree-eh.c (frob_into_branch_around): Fix up typos
4819         in function comment.
4820         (lower_catch): Put eh_seq resulting from EH lowering of
4821         the cleanup sequence after the cleanup rather than before it.
4823 2015-02-18  Tom de Vries  <tom@codesourcery.com>
4825         * common.opt (fstdarg-opt): New option.
4826         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
4827         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
4828         (@item -fstdarg-opt): New item.
4830 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4832         PR target/65064
4833         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
4834         for common symbols.
4836 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
4838         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
4839         insn-modes.h.
4840         (ALL_HOST_OBJS): Add mkoffload.o.
4841         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
4843 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
4845         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
4846         (compare_virtual_tables): Be smarter about skipping typeinfos;
4847         do sane output on virtual table table mismatch.
4848         (warn_odr): Be ready for forward declarations of enums;
4849         output sane info on base mismatch and virtual table mismatch.
4850         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
4851         when only one type is polymorphic.
4852         (get_odr_type): Fix hashtable corruption.
4853         (dump_odr_type): Dump mangled names.
4855 2015-02-18  Richard Biener  <rguenther@suse.de>
4857         PR tree-optimization/65063
4858         * tree-predcom.c (determine_unroll_factor): Return 1 if we
4859         have replaced looparound PHIs.
4861 2015-02-18  Martin Liska  <mliska@suse.cz>
4863         * lto-streamer.c (lto_streamer_init): Encapsulate
4864         streamer_check_handled_ts_structures with checking macro.
4866 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
4868         PR ipa/65087
4869         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
4870         section if !implicit_section.
4871         (cgraph_node::create_version_clone_with_body): Likewise.
4872         * trans-mem.c (ipa_tm_create_version): Likewise.
4874 2015-02-18  Richard Biener  <rguenther@suse.de>
4876         PR tree-optimization/62217
4877         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
4878         into BIVs.
4880 2015-02-18  Marek Polacek  <polacek@redhat.com>
4882         PR sanitizer/65081
4883         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
4884         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
4885         is in range [-16K, -1].  Don't issue run-time error if
4886         (ptr > ptr + offset).
4888 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
4890         * doc/install.texi (nvptx-*-none): New section.
4891         * doc/invoke.texi (Nvidia PTX Options): Likewise.
4892         * config/nvptx/nvptx.opt: Update.
4894         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
4895         (access_check): New functions, copied from
4896         config/i386/intelmic-mkoffload.c.
4897         (main): For non-installed testing, look in all COMPILER_PATHs for
4898         GCC_INSTALL_NAME.
4900         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
4902 2015-02-18  Andrew Pinski  <apinski@cavium.com>
4903             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4905         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
4906         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
4908 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
4910         * ipa-visibility.c (function_and_variable_visibility): Only
4911         check locality if node is not already local.
4912         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
4913         call_for_symbol_and_aliases instead of
4914         call_for_symbol_thunks_and_aliases.
4915         (ipa_inline): Likewise.
4916         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4917         first walk aliases.
4918         * ipa.c (symbol_table::remove_unreachable_nodes): Use
4919         call_for_symbol_and_aliases.
4920         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
4921         (ipa_propagate_frequency_1): Use it; use opt_for_fn
4922         (ipa_propagate_frequency): Update.
4923         (ipa_profile): Add opt_for_fn gueards.
4925 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
4927         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
4928         * doc/invoke.texi (SH options): Document it.
4929         * config/sh/sh.c (sh_insn_length_adjustment): Check
4930         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
4932 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
4934         * common.opt (fipa-cp-alignment): New.
4935         * ipa-cp.c (ipcp_store_alignment_results): Check
4936         flag_ipa_cp_alignment.
4937         * opts.c (default_options_table): Enable -fipa-cp-alignment for
4938         -O2.
4939         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
4940         * doc/invoke.texi: Document -fipa-cp-alignment.
4942 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
4944         PR target/64793
4945         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
4946         to nil.  Adjust comments.
4948 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
4950         * ipa-visibility.c (function_and_variable_visibility): Only
4951         check locality if node is not already local.
4952         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
4953         call_for_symbol_and_aliases instead of
4954         call_for_symbol_thunks_and_aliases.
4955         (ipa_inline): Likewise.
4956         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4957         first walk aliases.
4958         * ipa.c (symbol_table::remove_unreachable_nodes): Use
4959         call_for_symbol_and_aliases.
4960         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
4961         (ipa_propagate_frequency_1): Use it; use opt_for_fn
4962         (ipa_propagate_frequency): Update.
4963         (ipa_profile): Add opt_for_fn guards.
4965 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
4967         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
4968         skipping of "strange" tokens.
4970 2015-02-17  Jeff Law  <law@redhat.com>
4972         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
4973         obsolete comment.
4975 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
4977         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
4978         as forcing a HARD_DEP between instructions, thereby
4979         disallowing rewriting to break dependencies.
4981 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
4983         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
4984         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
4985         variables in boundary that have no inlitalizer encoded and are
4986         not aliases.
4987         * varasm.c (default_binds_local_p_2): External definitions do not
4988         count as definitions here.
4990 2015-02-16  Jeff Law  <law@redhat.com>
4992         PR tree-optimization/64823
4993         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
4994         statements.
4995         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
4996         threading through blocks with PHIs, but no statements.
4997         (thread_through_normal_block): Distinguish between blocks where
4998         we did not process all the statements and blocks with no statements.
5000 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
5001             James Greenhalgh  <james.greenhalgh@arm.com>
5003         PR ipa/64963
5004         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
5005         section if not linkonce.  Fix up formatting.
5006         (cgraph_node::create_version_clone_with_body): Copy section.
5007         * trans-mem.c (ipa_tm_create_version): Likewise.
5009 2015-02-16  Richard Biener  <rguenther@suse.de>
5011         PR tree-optimization/65077
5012         * tree-ssa-structalias.c (get_constraint_for_1): Handle
5013         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
5014         (find_func_aliases): Allow float values to carry pointers again.
5016 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5018         * doc/install.texi (Specific): Reorder targets list to put
5019         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
5020         from the top menu.
5022 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
5023             David Edelsohn  <dje.gcc@gmail.com>
5025         PR target/65058
5026         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
5027         mapping class to external variable or function reference.
5028         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
5029         mapping class.
5031 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
5033         PR target/53348
5034         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
5035         ASM_WEAKEN_DECL if defined.
5037 2015-02-16  Richard Biener  <rguenther@suse.de>
5039         PR lto/65015
5040         * varasm.c (default_file_start): For LTO produced units
5041         emit <artificial> as file directive.
5043 2015-02-16  Richard Biener  <rguenther@suse.de>
5045         PR tree-optimization/63593
5046         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
5047         stmts and releasing SSA names until...
5048         (execute_pred_commoning): ... after processing all chains.
5050 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
5052         PR ipa/65059
5053         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
5054         external functions.
5056 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5058         * doc/bugreport.texi: Adjust section titles throughout the file
5059         to use "Title Case".
5060         * doc/extend.texi: Likewise.
5061         * doc/gcov.texi: Likewise.
5062         * doc/implement-c.texi: Likewise.
5063         * doc/implement-cxx.texi: Likewise.
5064         * doc/invoke.texi: Likewise.
5065         * doc/objc.texi: Likewise.
5066         * doc/standards.texi: Likewise.
5067         * doc/trouble.texi: Likewise.
5069 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
5071         * cgraph.h (symtab_node::has_aliases_p): Simplify.
5072         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
5073         * tree.c (lookup_binfo_at_offset): Make static.
5074         (get_binfo_at_offset): Do not shadow offset; add explanatory
5075         comment.
5077 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
5079         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
5080         for all floading point loads and stores except those using a register
5081         index address.
5082         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
5083         to a register.
5085 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
5087         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
5088         (do_estimate_growth_1): Record if any uninlinable edge was seen.
5089         (estimate_growth): Handle uninlinable edges correctly.
5090         (check_callers): New.
5091         (growth_likely_positive): Handle aliases correctly.
5093 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
5095         * ipa-chkp.c: Use iterate_direct_aliases.
5096         * symtab.c (resolution_used_from_other_file_p): Move inline.
5097         (symtab_node::create_reference): Fix formating.
5098         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5099         (symtab_node::iterate_reference): Move inline.
5100         (symtab_node::iterate_referring): Move inline.
5101         (symtab_node::iterate_direct_aliases): Move inline.
5102         (symtab_node::used_from_object_file_p_worker): Inline into ...
5103         (symtab_node::used_from_object_file_p): ... this one; move inline.
5104         (symtab_node::call_for_symbol_and_aliases): Move inline;
5105         use iterate_direct_aliases.
5106         (symtab_node::call_for_symbol_and_aliases_1): New method.
5107         (cgraph_node::call_for_symbol_and_aliases): Move inline;
5108         use iterate_direct_aliases.
5109         (cgraph_node::call_for_symbol_and_aliases_1): New method.
5110         (varpool_node::call_for_node_and_aliases): Rename to ...
5111         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
5112         use iterate_direct_aliases.
5113         (varpool_node::call_for_symbol_and_aliases_1): New method.
5114         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
5115         (ipa_discover_readonly_nonaddressable_var): Update.
5116         * ipa-devirt.c: Fix formating.
5117         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
5118         Move inline.
5119         (cgraph_node::call_for_symbol_and_aliases): Move inline.
5120         (cgraph_node::call_for_symbol_and_aliases_1): New function..
5121         * cgraph.h (used_from_object_file_p_worker): Remove.
5122         (resolution_used_from_other_file_p): Move inline.
5123         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5124         (symtab_node::iterate_reference): Move inline.
5125         (symtab_node::iterate_referring): Move inline.
5126         (symtab_node::iterate_direct_aliases): Move inline.
5127         (symtab_node::used_from_object_file_p_worker): Inline into ...
5128         (symtab_node::used_from_object_file_p): Move inline.
5129         * tree-emutls.c (ipa_lower_emutls): Update.
5130         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
5131         (varpool_node::call_for_node_and_aliases): Remove.
5133 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
5135         PR tree-optimization/62209
5136         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
5137         op == range->exp, insert seq and gimplified code after labels
5138         instead of after the phi.
5140 2015-02-13  Jeff Law  <law@redhat.com>
5142         PR bootstrap/65060
5143         Revert my change for tree-optimization/64823.
5145 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
5147         PR tree-optimization/65053
5148         * tree-ssa-phiopt.c (value_replacement): When moving assign before
5149         cond, either reset VR on lhs or set it to phi result VR.
5151 2015-02-13  Jeff Law  <law@redhat.com>
5153         PR tree-optimization/64823
5154         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
5155         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5156         threading through blocks with PHIs, but no statements.
5157         (thread_through_normal_block): Distinguish between blocks where
5158         we did not process all the statements and blocks with no statements.
5160         PR rtl-optimization/47477
5161         * match.pd (convert (plus/minus (convert @0) (convert @1): New
5162         simplifier to narrow arithmetic.
5164 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
5166         PR ipa/65028
5167         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
5168         polymorphic call info when type is not known to be preserved.
5170 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
5172         PR ipa/65028
5173         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
5174         (inline_call): Use it.
5176 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
5178         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
5179         GOMP_DEVICE_NVIDIA_PTX.
5181 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
5183         PR ipa/65034
5184         * stmt.c (emit_case_nodes): Use void_type_node instead of
5185         NULL_TREE as LABEL_DECL type.
5187 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
5189         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
5190         constraints.
5191         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
5192         symbolic references to data to be forced to constant memory on the
5193         SOM target.
5195 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5197         PR tree-optimization/65002
5198         * tree-cfg.c (pass_data_fixup_cfg): Don't update
5199         SSA on start.
5200         * tree-sra.c (some_callers_have_no_vuse_p): New.
5201         (ipa_early_sra): Reject functions whose callers
5202         assume function is read only.
5204 2015-02-13  Richard Biener  <rguenther@suse.de>
5206         PR lto/65015
5207         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
5208         for LTO produced CUs.
5210 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
5212         PR tree-optimization/64705
5213         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
5214         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
5215         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
5216         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
5217         expand_simple_operations.
5219 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
5220             Richard Henderson  <rth@redhat.com>
5222         PR rtl/32219
5223         * cgraphunit.c (cgraph_node::finalize_function): Set definition
5224         before notice_global_symbol.
5225         (varpool_node::finalize_decl): Likewise.
5226         * varasm.c (default_binds_local_p_2): Rename from
5227         default_binds_local_p_1, add weak_dominate argument.  Use direct
5228         returns instead of assigning to local variable.  Unify varpool and
5229         cgraph paths via symtab_node.  Reject undef weak variables before
5230         testing visibility.  Reorder tests for simplicity.
5231         (default_binds_local_p): Use default_binds_local_p_2.
5232         (default_binds_local_p_1): Likewise.
5233         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
5234         via symtab_node.
5235         (default_elf_asm_output_external): Emit visibility when specified.
5237 2015-02-13  Alan Modra  <amodra@gmail.com>
5239         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
5240         code setting up r11 for out-of-line fp restore.
5242 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
5244         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
5245         (muser-mode): Likewise.
5247 2015-02-13  Alan Modra  <amodra@gmail.com>
5249         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
5250         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
5252 2015-02-12  David Howells  <dhowells@redhat.com>
5254         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
5255         warning.
5256         * tree-ssa-uninit.c (dump_predicates): Likewise.
5257         * opts.c (print_filtered_help): Likewise.
5259 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
5261         * dwarf2out.c (output_die): Use "%s", name instead of name to
5262         avoid -Wformat-security warning.
5264         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
5265         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5266         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
5267         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5269 2015-02-12  Jason Merrill  <jason@redhat.com>
5271         * common.opt (-flifetime-dse): New.
5273 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
5275         PR sanitizer/65019
5276         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
5278         PR tree-optimization/65014
5279         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
5280         use original second operand of arg0 or arg1 instead of
5281         that adjusted by STRIP_NOPS.
5283 2015-02-11  Jeff Law  <law@redhat.com>
5285         PR target/63347
5286         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
5287         that needs to be queued, just queue it for a single cycle.
5289 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
5291         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
5292         bodies of thunks; comment on why.
5293         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
5294         symbols are extern.
5296 2015-02-11  Richard Henderson  <rth@redhat.com>
5298         PR sanitize/65000
5299         * tree-eh.c (mark_reachable_handlers): Mark source and destination
5300         regions of __builtin_eh_copy_values.
5302 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
5304         PR middle-end/65003
5305         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
5306         ultimate alias is MEM with SYMBOL_REF satisfying
5307         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
5308         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
5310 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
5312         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
5313         "diagnostic-core.h".
5314         (main): Initialize progname, and call diagnostic_initialize.
5316         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
5317         instead of __OPENMP_TARGET__.
5319         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
5320         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
5321         hard-coding PTX_ID.
5323 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
5325         * doc/sourcebuild.texi (pie_enabled): Document.
5327 2015-02-11  Martin Liska  <mliska@suse.cz>
5329         PR ipa/64813
5330         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
5331         a return value for call to a function that is noreturn.
5333 2015-02-11  Richard Biener  <rguenther@suse.de>
5335         PR lto/65015
5336         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
5337         and -fresolution.
5339 2015-02-11  Andrew Pinski  <apinski@cavium.com>
5341         PR target/64893
5342         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5343         Change the first argument type to size_type_node and add another
5344         size_type_node.
5345         (aarch64_simd_expand_builtin): Handle the new argument to
5346         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
5347         print an out when the first two arguments are not
5348         nonzero integer constants.
5349         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
5350         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
5352 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
5354         PR target/61925
5355         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
5356         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
5357         (ix86_set_current_function): Rewritten.
5358         (ix86_add_new_builtins): Temporarily clear current_target_pragma
5359         when creating builtin fndecls.
5361 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
5363         PR ipa/65005
5364         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
5365         function.
5366         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
5367         have no comdat group.
5368         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
5369         (lto_output_varpool_node): Always output alias info.
5370         (output_refs): Output refs of boundary aliases, too.
5371         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
5372         (output_symtab): Output call eges in thunks in boundary.
5373         (get_alias_symbol): Remove.
5374         (input_node, input_varpool_node): Do not special case weakrefs.
5375         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
5376         alias and thunks targets in the boundary; do not take removed symbols
5377         from their comdat groups.
5378         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
5379         (cgraph_node::global_info): Remove.
5380         (cgraph_node::rtl_info): Look through aliases and thunks.
5381         * cgrpah.h (global_info): Remove.
5382         (non_local_p): Remove.
5384 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
5385             Sandra Loosemore  <sandra@codesourcery.com>
5387         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
5388         to inline asm.  List dialects in proper order.
5390 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
5391             Sandra Loosemore  <sandra@codesourcery.com>
5393         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
5395 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
5397         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
5398         modified) reference to Solaris.
5400 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
5402         * doc/extend.texi (Extended Asm): Fix typos.
5404 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
5406         PR sanitizer/65004
5407         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
5409 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
5411         PR target/64661
5412         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5413         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5414         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
5415         * config/sh/constraints.md (Ara, Add): New constraints.
5416         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
5417         predicates.
5418         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
5419         atomic_mem_operand_0.  Don't use force_reg on the memory address.
5420         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
5421         Sra constraint.  Convert to insn_and_split.  Add workaround for
5422         PR 64974.
5423         (atomic_compare_and_swap<mode>_hard): Copy to
5424         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
5425         Use atomic_mem_operand_0 predicate.
5426         (atomic_compare_and_swap<mode>_soft_gusa,
5427         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
5428         AraAdd constraints.
5429         (atomic_compare_and_swap<mode>_soft_tcb,
5430         atomic_compare_and_swap<mode>_soft_imask,
5431         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
5432         atomic_mem_operand_0 predicate and SraSdd constraints.
5433         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
5434         constraint.
5435         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
5436         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
5437         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
5438         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
5439         force_reg on the memory address.
5440         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
5441         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
5442         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
5443         atomic_mem_operand_1 predicate and Sra constraint.
5444         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
5445         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
5446         Use atomic_mem_operand_1 predicate.
5447         (atomic_<fetchop_name><mode>_hard): Copy to
5448         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
5449         Use atomic_mem_operand_1 predicate.
5450         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
5451         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
5452         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
5453         insn_and_split.  Use atomic_mem_operand_1 predicate.
5454         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
5455         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
5456         Use atomic_mem_operand_1 predicate.
5457         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
5458         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
5459         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
5460         in generated insn with original mem operand before emitting the insn.
5461         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
5462         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
5463         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
5464         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
5465         Use atomic_mem_operand_1 predicate and AraAdd constraints.
5466         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
5467         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
5468         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
5469         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
5470         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
5471         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
5472         atomic_not_fetch<mode>_soft_tcb,
5473         atomic_<fetchop_name>_fetch<mode>_soft_imask,
5474         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
5475         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
5476         Use atomic_mem_operand_1 predicate and SraSdd constraints.
5478 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
5480         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
5481         and 3 earlyclobber operands.
5483 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
5485         * common.opt (fstack-reuse): Mark as optimization.
5487 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
5489         PR ipa/64982
5490         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
5492 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
5494         PR tree-optimization/64326
5495         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
5497 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
5499         PR gcov-profile/61889
5500         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
5502 2015-02-10  Richard Biener  <rguenther@suse.de>
5504         PR tree-optimization/64995
5505         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
5506         value we use is final.
5507         (visit_reference_op_store): Always valueize op.
5508         (visit_use): Properly valueize vuses.
5510 2015-02-10  Richard Biener  <rguenther@suse.de>
5512         PR tree-optimization/64909
5513         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
5514         pass a scalar-stmt count estimate to the cost model.
5515         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
5517 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
5519         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
5520         enabled by default together with var-tracking.
5522 2015-02-10  Nick Clifton  <nickc@redhat.com>
5524         * config/rl78/rl78.c: Remove DIV attribute code accidentally
5525         included in previous rl78 commit.
5527 2015-02-10  Richard Biener  <rguenther@suse.de>
5529         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
5530         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
5531         return the bitpack.
5533 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
5535         PR gcov-profile/61889
5536         * config.in: regenerate.
5537         * configure.in: Likewise.
5538         * configure.ac: Check for ftw.h.
5539         * gcov-tool.c: Check for ftw.h before using nftw.
5541 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
5543         PR lto/64076
5544         * ipa-visibility.c (update_visibility_by_resolution_info): Only
5545         assert when not in lto mode.
5547 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5549         * ira-color.c (setup_left_conflict_sizes_p): Simplify
5550         initialization/assignment of conflict_size.
5552 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
5554         PR ipa/64978
5555         * ipa-cp.c (gather_caller_stats): Skip thunks.
5556         (propagate_constants_topo): Skip aliases.
5558 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5560         PR target/64761
5561         * config/sh/sh.c (sh_option_override): Don't change
5562         -freorder-blocks-and-partition to -freorder-blocks even when
5563         unwinding is enabled.
5564         (sh_can_follow_jump): Return false if the followee jump is
5565         a crossing jump when -freorder-blocks-and-partition is specified.
5566         * config/sh/sh.md (*jump_compact_crossing): New insn.
5568 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5569             Kaz Kojima  <kkojima@gcc.gnu.org>
5571         PR target/64761
5572         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
5573         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
5574         (sh_can_redirect_branch): Rename to ...
5575         (sh_can_follow_jump): ... this.  Constify argument types.
5576         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
5577         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
5578         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
5579         * doc/tm.texi: Regenerate.
5581 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
5583         PR sanitizer/64981
5584         * builtins.c (expand_builtin): Call targetm.expand_builtin
5585         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
5587 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5589         PR ipa/61548
5590         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
5592 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5594         PR ipa/63566
5595         * ipa-icf.c (set_local): New function.
5596         (sem_function::merge): Use it.
5598 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5600         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
5601         (add_type_duplicate): Fix comparison of BINFOs.
5603 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5605         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
5606         on getting VOID pointer.
5608 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
5610         PR target/64979
5611         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
5612         va_list escapes.
5614 2015-02-09  Richard Biener  <rguenther@suse.de>
5616         * genmatch.c (replace_id): Copy expr_type.
5618 2015-02-09  Richard Biener  <rguenther@suse.de>
5620         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
5621         (streamer_write_tree_bitfields): Declare.
5622         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
5623         properly unpack padding.
5624         (unpack_value_fields): Inline ...
5625         (streamer_read_tree_bitfields): ... here.
5626         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
5627         and properly add padding bits.
5628         (streamer_pack_tree_bitfields): Fold into ...
5629         (streamer_write_tree_bitfields): ... this new function,
5630         exposing the bitpack object.
5631         * lto-streamer-out.c (lto_write_tree_1): Call
5632         streamer_write_tree_bitfields.
5634 2015-02-09  Richard Biener  <rguenther@suse.de>
5636         PR tree-optimization/54000
5637         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
5638         (struct ivopts_data): Add loop_loc member.
5639         (tree_ssa_iv_optimize_loop): Dump loop location.
5640         (create_new_ivs): Likewise, also dump number of IVs generated.
5642 2015-02-09  Martin Liska  <mliska@suse.cz>
5644         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
5645         just if not yet registered.
5646         (ipa_icf_generate_summary): Register callgraph hooks.
5648 2015-02-08  Andrew Pinski  <apinski@cavium.com>
5650         * config/aarch64/aarch64.c (gty_dummy): Delete.
5652 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5654         PR ipa/63566
5655         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
5656         (cgraph_node::local_p): Remove thunk related FIXME.
5658 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5660         PR ipa/63566
5661         * i386.c (ix86_function_regparm): Look through aliases to see if callee
5662         is local and optimized.
5663         (ix86_function_sseregparm): Likewise; also use target's SSE math
5664         settings; error out instead of silently generating wrong code
5665         on mismatches.
5666         (init_cumulative_args): Look through aliases.
5668 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5670         PR ipa/63566
5671         * ipa-split.c (execute_split_functions): Split if function has aliases.
5673 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5675         PR ipa/63566
5676         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
5677         aliases before trying to expand it.
5678         (cgraph_node::expand_thunk): Fix formating.
5680 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
5682         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
5683         (Using Assembly Language with C): Expand introduction.
5684         (Basic Asm): Copy-edit.  Add more information about uses of
5685         basic asm.
5686         (Extended Asm): Copy-edit.  Document new escape syntax and
5687         %l[label] syntax.
5688         (Global Reg Vars): Copy-edit.
5689         (Local Reg Vars): Likewise.
5691 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
5693         PR debug/2714
5694         PR bootstrap/64256
5695         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
5696         (DBX_CONTIN_CHAR): Define.
5698 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
5699             Brian Rzycki  <b.rzycki@samsung.com>
5701         PR tree-optimization/64878
5702         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
5703         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
5704         Stop recursion at loop phi nodes after having visited a loop phi node.
5706 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
5708         * toplev.c (process_options): Change flag_ipa_ra before creating
5709         optimization_{default,current}_node.
5711         PR ipa/64896
5712         * cgraphunit.c (cgraph_node::expand_thunk): If
5713         restype is not is_gimple_reg_type nor the thunk_fndecl
5714         returns aggregate_value_p, set restmp to a temporary variable
5715         instead of resdecl.
5717 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
5719         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
5721 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5723         PR target/64205
5724         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
5725         add a general secondary reload handler for SDmode, unless we have
5726         both read/write support for SDmode.
5728 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
5730         PR middle-end/64937
5731         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
5732         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
5733         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
5734         1 before, push it to abstract_vec.
5735         (dwarf2out_abstract_function): Adjust caller.  Don't call
5736         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
5737         DECL_ABSTRACT_P flags for all abstract_vec elts.
5739 2015-02-06  Renlin Li  <renlin.li@arm.com>
5741         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
5742         complex gimple.
5743         * tree-ssa.c (execute_update_addresses_taken): Likewise.
5745 2015-02-06  Jeff Law  <law@redhat.com>
5747         PR target/64889
5748         * config/h8300/h8300.c (push): New argument "in_prologue".
5749         Pass "in_prologue" along to "F".
5750         (h8300_push_pop): Corresponding changes.
5751         (h8300_expand_prologue): Likewise.
5752         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
5754 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
5756         PR rtl-optimization/64957
5757         PR debug/64817
5758         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
5759         IOR rather than for AND.
5761 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
5763         PR target/62631
5764         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
5765         of shift-add and (add + shift) operations.  Rename local variable.
5767 2015-02-05  Jeff Law  <law@redhat.com>
5769         PR target/17306
5770         * config/h8300/constraints.md (U): Correctly dectect
5771         "eightbit_data" memory addresses.
5772         * config/h8300/h8300.c (eightbit_constant_address_p): Also
5773         handle (const (plus (symbol_ref (x)))) where x is declared
5774         as an 8-bit data memory address.
5775         * config/h8300/h8300.md (call, call_value): Correctly detect
5776         "funcvec" functions.
5778         PR target/43264
5779         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
5780         24 to 28 bits for the H8/300.
5782 2015-02-06  Alan Modra  <amodra@gmail.com>
5784         PR target/64876
5785         * config/rs6000/rs6000.c (chain_already_loaded): New function.
5786         (rs6000_call_aix): Use it.
5788 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
5790         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
5791         check.
5793 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
5795         * config/h8300/constraints.md ("U" constraint): Use strict
5796         variant of REG_OK_FOR_BASE_P after reload has started.
5798 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
5800         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
5801         define to zero if !TARGET_NEON.
5802         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
5804 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5805             Trevor Saunders  <tsaunders@mozilla.com>
5807         PR ipa/61548
5808         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
5810 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5812         PR ipa/61548
5813         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
5814         when removing varpool nodes.
5816 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5818         PR ipa/61548
5819         * varpool.c (varpool_node::remove): Fix order of variables.
5821 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5823         PR ipa/64686
5824         * ipa-inline.c (inline_small_functions): Fix ordering issue between
5825         speculation resolution and key updates.
5827 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5829         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
5830         about not letting any speculative edges unupdated.
5832 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5834         PR gcov/64123
5835         * gcov-io.c (gcov_var): Export.
5837 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5839         PR middle-end/64922
5840         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
5841         edges that become speculative.
5843 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
5845         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
5846         or DW_LANG_Fortran08.
5847         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
5848         DW_LANG_Fortran08.
5849         (gen_compile_unit_die): Handle "GNU Fortran2003" and
5850         "GNU Fortran2008" language strings.
5851         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
5852         * langhooks.h (lang_GNU_Fortran): New prototype.
5853         * langhooks.c (lang_GNU_Fortran): New function.
5854         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
5855         lang_GNU_Fortran.
5857 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
5859         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
5860         (RTX_OK_FOR_OLO10_P): Likewise.
5862 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
5864         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
5866 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5868         PR middle-end/64922
5869         * gimple.c: Include gimple-ssa.h.
5870         (maybe_remove_unused_call_args): New function.
5871         * gimple.h (maybe_remove_unused_call_args): Declare.
5872         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
5873         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5874         * gimple-fold.c (gimple_fold_call): Likewise.
5876 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
5878         PR rtl-optimization/64905
5879         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
5880         pointer alignment if it isn't needed.
5882 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
5884         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
5885         cortex-a72.cortex-a53.
5886         * config/aarch64/aarch64-tune.md: Regenerate.
5887         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
5889 2015-02-04  Nick Clifton  <nickc@redhat.com>
5891         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
5892         inside a MEM.
5894 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
5896         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
5897         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
5898         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
5899         of DEF_BUILTIN.
5900         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
5901         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
5902         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
5903         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
5904         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
5905         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
5906         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
5907         * tree-core.h (enum built_in_function): In between
5908         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
5909         for builtins that use DEF_BUILTIN_CHKP macro.
5911 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
5913         PR debug/64817
5914         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
5915         operands for tcc_comparison exprs.  Fix typos.
5917         PR debug/64817
5918         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
5919         of two XORs that have an intervening AND or IOR.
5921         PR debug/64817
5922         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
5923         simplification of XOR of AND to not allocate new rtx before
5924         committing to a simplification.
5926 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5928         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
5929         manual swaps in all peepholes.
5931 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5933         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
5934         of manual swapping implementation.
5935         (aarch64_expand_vec_perm_const_1): Likewise.
5937 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
5939         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
5940         (generic_addrcost_table): Remove NAMED_PARAM.
5941         (cortexa57_addrcost_table): Likewise.
5942         (xgene1_addrcost_table): Likewise.
5943         (generic_regmove_table): Likewise.
5944         (cortexa53_regmove_table): Likewise.
5945         (xgene1_regmove_table): Likewise.
5946         (generic_vector_table): Likewise.
5947         (cortexa57_vector_table): Likewise.
5948         (xgene1_vector_table): Likewise.
5949         (generic_tunings): Likewise.
5950         (cortexa53_tunings): Likewise.
5951         (cortexa57_tunings): Likewise.
5952         (xgene1_tunings): Likewise.
5954 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
5956         * config/arm/arm-cores.def: Add cortex-a72 and
5957         cortex-a72.cortex-a53.
5958         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
5959         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5960         * config/arm/arm-tune.md: Regenerate.
5961         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
5962         "cortex-a72.cortex-a53".
5963         * doc/invoke.texi (ARM Options/-mtune): Likewise.
5965 2015-02-04  Nick Clifton  <nickc@redhat.com>
5967         PR target/64408
5968         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
5969         of accepted codes.
5970         (nonimmediate_di_operand): Likewise.
5972         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
5973         prefixes of known F5 using MSP430 MCUs.
5975 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5977         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
5978         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
5979         instead of __builtin_sqrt.
5981 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
5983         * varasm.c (do_assemble_alias): Follow transparent alias
5984         chain for target.
5985         (default_assemble_visibility): Follow transparent alias
5986         chain for decl name.
5988 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5990         PR middle-end/62103
5991         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
5992         to compute size of referenced value in the constant case.
5994 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
5996         PR rtl-optimization/64756
5997         * cse.c (invalidate_dest): New function.
5998         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
5999         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
6000         invalidate and do not record it.
6002 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
6004         PR target/64660
6005         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
6006         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
6007         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
6008         atomic_nand<mode>_soft_tcb): New insns.
6009         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
6010         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
6011         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
6012         Split into atomic_not_fetchsi_hard if operands[0] is unused.
6013         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
6014         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6015         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
6016         atomic_not<mode>_hard if operands[0] is unused.
6017         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
6018         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
6019         if operands[0] is unused.
6020         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
6021         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
6022         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
6023         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6024         unused.
6025         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
6026         into atomic_not<mode>_soft_tcb if operands[0] is unused.
6027         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
6028         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
6029         if operands[0] is unused.
6030         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
6031         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
6032         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
6033         atomic_nand_fetchsi_hard if operands[0] is unused.
6034         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
6035         atomic_nand<mode>_hard if operands[0] is unused.
6036         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
6037         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
6038         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
6039         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6040         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
6041         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
6042         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
6043         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6044         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
6045         atomic_not<mode>_hard if operands[0] is unused.
6046         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
6047         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6048         unused.
6049         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
6050         into atomic_not<mode>_soft_tcb if operands[0] is unused.
6051         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
6052         atomic_nand<mode>_hard if operands[0] is unused.
6053         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
6054         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6056 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
6058         PR jit/64810
6059         * Makefile.in (GCC_OBJS): Add gcc-main.o.
6060         * gcc-main.c: New file, containing "main" taken from gcc.c.
6061         * gcc.c (do_self_spec): Free decoded_options.
6062         (class driver): Move declaration to gcc.h.
6063         (main): Move declaration and implementation to new file
6064         gcc-main.c.
6065         (driver_get_configure_time_options): New function.
6066         * gcc.h (class driver): Move this declaration here, from
6067         gcc.c.
6068         (driver_get_configure_time_options): New declaration.
6070 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
6072         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
6073         cross-module inlining.
6074         * cgraph.h (cgraph_node): Add flag merged.
6075         * ipa-icf.c (sem_function::merge): Maintain it.
6077 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
6079         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
6080         instead of OBJECT_P.
6082 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
6084         PR target/62631
6085         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
6086         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
6087         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
6088         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
6090 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
6092         PR other/63504
6093         * combine.c (reg_n_sets_max): New variable.
6094         (can_change_dest_mode, reg_nonzero_bits_for_combine,
6095         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
6096         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
6097         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
6098         (rest_of_handle_combine): Initialize reg_n_sets_max.
6100 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
6102         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
6103         if some always_inline was inlined, apply changes before inlining
6104         heuristically.
6106 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
6108         PR jit/64810
6109         * config/arm/arm.c (arm_option_override): Set
6110         arm_selected_arch/cpu/tune to NULL on entry.
6112 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
6113             Andrew Pinski  <pinskia@gcc.gnu.org>
6114             Jakub Jelinek  <jakub@gcc.gnu.org>
6116         PR target/64231
6117         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
6118         integer typing for small model. Use IN_RANGE.
6120 2015-02-02  Richard Biener  <rguenther@suse.de>
6122         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
6123         * tree-vrp.c (vrp_valueize_1): Likewise.
6125 2015-02-02  Alan Modra  <amodra@gmail.com>
6127         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
6128         than mem for toc_restore.
6129         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
6130         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
6131         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
6133 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
6135         PR target/64047
6136         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
6137         explicit default options.
6139 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
6141         PR ipa/64872
6142         * ipa-utils.c (ipa_merge_profiles): Add release argument.
6143         * ipa-icf.c (sem_function::merge): Do not release body when merging.
6144         * ipa-utils.h (ipa_merge_profiles): Update prototype.
6146 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
6148         PR debug/64817
6149         * cfgexpand.c (deep_ter_debug_map): New variable.
6150         (avoid_deep_ter_for_debug): New function.
6151         (expand_debug_expr): If TERed SSA_NAME is in
6152         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
6153         instead of trying to expand SSA_NAME's def stmt.
6154         (expand_debug_locations): When expanding debug bind
6155         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
6156         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
6157         value.
6158         (pass_expand::execute): Call avoid_deep_ter_for_debug on
6159         all debug bind stmts.  Delete deep_ter_debug_map after
6160         expand_debug_location if non-NULL and clear it.
6162 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
6164         PR target/64851
6165         * config/sh/sync.md (atomic_fetch_notsi_hard,
6166         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
6167         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
6168         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
6169         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
6170         atomic_not_fetch<mode>_soft_imask): New insns.
6172 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6174         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
6175         (rank_for_schedule_debug): Split from ...
6176         (rank_for_schedule): ... this.
6177         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
6178         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
6180 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
6182         * doc/md.texi (Machine Constraints): Alphabetize table by target.
6183         * doc/extend.texi (x86 Variable Attributes): Move section to
6184         correct alphabetization after renaming.
6185         (x86 Type Attributes): Likewise.
6186         (Target Builtins): Re-alphabetize menu.
6187         (x86 Built-in Functions): Move section to correct alphabetization
6188         after renaming.
6189         (x86 transactional memory intrinsics): Likewise.
6190         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
6191         and x86 Windows Options in table and menu.
6192         (x86 Options): Move section to correct alphabetization after
6193         renaming.
6194         (x86 Windows Options): Likewise.
6196 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
6198         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
6199         preferred names of the architecture and its 32- and 64-bit
6200         variants.
6201         * doc/invoke.texi: Likewise.
6202         * doc/md.texi: Likewise.
6204 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
6206         PR target/64882
6207         * config/i386/predicates.md (address_no_seg_operand): Reject
6208         non-CONST_INT_P operands in invalid mode.
6210 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
6212         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
6213         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
6214         * config/i386/predicates.md (address_no_seg_operand): Call
6215         address_operand with VOIDmode.
6216         (vsib_address_operand): Ditto.
6217         (address_mpx_no_base_operand): Ditto.
6218         (address_mpx_no_index_operand): Ditto.
6220 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
6222         PR target/64688
6223         * lra-constraints.c (original_subreg_reg_mode): New.
6224         (simplify_operand_subreg): Try to simplify subreg of const.  Use
6225         original_subreg_reg_mode for it.
6226         (swap_operands): Update original_subreg_reg_mode.
6227         (curr_insn_transform): Set up original_subreg_reg_mode.
6229 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
6231         PR target/64617
6232         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
6233         function.
6234         (process_alt_operands): Use it.
6235         (curr_insn_transform): Check the optional reload pseudo class is
6236         ok for the mode.
6238 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
6240         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
6241         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
6242         prototype.
6243         * toplev.h (init_asm_output): Update comment on use of
6244         UNKNOWN_LOCATION with fatal_error.
6245         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
6246         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
6247         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
6248         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
6249         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
6250         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
6251         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
6252         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
6253         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
6254         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
6255         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
6256         fatal_error changed to pass input_location as first argument.
6258 2015-01-30  Martin Liska  <mliska@suse.cz>
6260         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
6261         in #pragma GCC diagnostic guards.
6263 2015-01-30  Richard Biener  <rguenther@suse.de>
6265         PR tree-optimization/64829
6266         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
6267         not add a widening conversion pattern but hand off extra
6268         widenings to callers.
6269         (vect_recog_widen_mult_pattern): Handle extra widening produced
6270         by vect_handle_widen_op_by_const.
6271         (vect_recog_widen_shift_pattern): Likewise.
6272         (vect_pattern_recog_1): Remove excess vertical space in dumping.
6273         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6274         (vect_init_vector_1): Likewise.
6275         (vect_get_vec_def_for_operand): Likewise.
6276         (vect_finish_stmt_generation): Likewise.
6277         (vectorizable_load): Likewise.
6278         (vect_analyze_stmt): Likewise.
6279         (vect_is_simple_use): Likewise.
6281 2015-01-29  Jeff Law  <law@redhat.com>
6283         * combine.c (try_combine): Fix typo in comment.
6285 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
6287         PR target/64580
6288         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
6289         (rs6000_stack_info): Add assert.
6290         (rs6000_output_savres_externs): New function, split off from...
6291         (rs6000_output_function_prologue): ... here.  Do not call it for
6292         thunks.
6294 2015-01-29  Jeff Law  <law@redhat.com>
6296         PR target/15184
6297         * combine.c (try_combine): If I0 is a memory load and I3 a store
6298         to a related address, increase the "goodness" of doing a 4-insn
6299         combination with I0-I3.
6300         (make_field_assignment): Handle SUBREGs in the ior+and case.
6302 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
6304         PR tree-optimization/64746
6305         * tree-if-conv.c (mask_exists): New function.
6306         (predicate_mem_writes): Save created mask with given size for further
6307         use.
6308         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
6309         (ifcvt_repair_bool_pattern): Collect all statements that are root
6310         of bool pattern and use iterative algorithm to remove multiple uses
6311         of predicates, display number of required iterations.
6313 2015-01-29  Richard Biener  <rguenther@suse.de>
6315         PR tree-optimization/64853
6316         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
6317         stmt will get simulated again.
6318         * tree-ssa-ccp.c (valueize_op_1): Likewise.
6320 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6322         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
6323         return_in_pc.  Remove redundant assignments.
6324         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
6325         (arm_expand_epilogue): Don't compare boolean with true in if condition.
6327 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
6329         * config/i386/i386.c (ix86_mode_after): Make static.
6331 2015-01-29  Richard Biener  <rguenther@suse.de>
6333         PR tree-optimization/64844
6334         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
6335         dump cost model analysis.
6336         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6337         Do not register adjusted load/store costs here.
6339 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6340             Uros Bizjak  <ubizjak@gmail.com>
6342         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
6343         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
6344         using x86_use_pseudo_pic_reg.
6345         * config/i386/i386.c (ix86_conditional_register_usage): Remove
6346         support for fixed PIC register.
6347         (ix86_use_pseudo_pic_reg): Not static any more.
6349 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6351         PR middle-end/64805
6352         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
6353         to avoid error in cgraph node verification.
6355 2015-01-29  Marek Polacek  <polacek@redhat.com>
6357         * doc/standards.texi: Reflect that the default for C is gnu11.
6359 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6361         PR target/64761
6362         * reorg.c (switch_text_sections_between_p): New function.
6363         (relax_delay_slots): Call it when testing if the jump insn
6364         is removable.  Use targetm.can_follow_jump when testing if
6365         the conditional branch can follow an unconditional jump.
6367 2015-01-27  Caroline Tice  <cmtice@google.com>
6369         Committing VTV Cywin/Ming patch for Patrick Wollgast
6370         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
6371         if -fvtable-verify=preinit/std is used.
6372         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
6373         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
6374         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
6375         if -fvtable-verify=preinit/std is used.
6376         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
6377         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
6378         if -fvtable-verify=preinit/std is used.
6379         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
6380         * config/i386/mingw32.h (LIB_SPEC): Likewise.
6381         * varasm.c (assemble_variable): Add code to properly set the comdat
6382         section and name for the .vtable_map_vars section in case the
6383         target is PE or COFF.
6385 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
6387         PR ipa/64801
6388         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
6389         make sane BB profile.
6390         (cgraph_node::expand_thunk): Make sane BB profile.
6391         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
6392         * cgraph.h (init_lowered_empty_function): Update prototype.
6393         * config/i386/i386.c (make_resolver_func): Update call.
6394         * predict.c (gate): Disable branch prediction pass if
6395         profile is already there.
6397 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
6399         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
6400         * opth-gen.awk: Likewise.
6401         * common.opt: Mark flag_fp_contract_mode as Optimization.
6403 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6405         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
6406         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
6408 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
6410         PR target/64659
6411         * config/sh/predicates.md (atomic_arith_operand,
6412         atomic_logical_operand): Remove.
6413         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
6414         (atomic_arith_operand_0): New predicate.
6415         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
6416         Use atomic_arith_operand_0 for input values.
6417         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
6418         atomic_compare_and_swap<mode>_soft_gusa,
6419         atomic_compare_and_swap<mode>_soft_tcb,
6420         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
6421         arith_reg_operand instead of register_operand.
6422         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
6423         atomic_arith_operand_0 for newval input.
6424         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
6425         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
6426         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
6427         arith_reg_operand instead of register_operand.
6428         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
6429         fetchop_predicate_1, fetchop_constraint_1_llcs,
6430         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
6431         fetchop_constraint_1_imask): New code iterator attributes.
6432         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
6433         register_operand.  Use fetchop_predicate_1.
6434         (atomic_fetch_<fetchop_name>si_hard,
6435         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
6436         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
6437         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
6438         and arith_reg_operand instead of register_operand.  Use
6439         fetchop_predicate_1, fetchop_constraint_1_gusa.
6440         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
6441         and arith_reg_operand instead of register_operand.  Use
6442         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
6443         to allow R0 usage.
6444         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
6445         and arith_reg_operand instead of register_operand.  Use
6446         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
6447         to allow R0 usage.
6448         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
6449         register_operand.  Use atomic_logical_operand_1.
6450         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
6451         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
6452         arith_reg_operand instead of register_operand.
6453         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
6454         Use arith_reg_dest and arith_reg_operand instead of register_operand.
6455         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
6456         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
6457         register_operand.  Use fetchop_predicate_1.
6458         (atomic_<fetchop_name>_fetchsi_hard,
6459         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
6460         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6461         fetchop_constraint_1_llcs.
6462         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
6463         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6464         fetchop_constraint_1_gusa.
6465         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
6466         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6467         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
6468         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
6469         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6470         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
6471         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
6472         register_operand.  Use atomic_logical_operand_1.
6473         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
6474         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
6475         arith_reg_operand instead of register_operand.
6476         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
6477         arith_reg_operand instead of register_operand.  Use logical_operand
6478         and K08.  Adjust asm sequence to allow R0 usage.
6479         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
6480         arith_reg_operand instead of register_operand.  Use logical_operand
6481         and K08.
6483 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
6485         PR other/63504
6486         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
6487         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
6488         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
6489         only get_full_len HOST_WIDE_INTs from get_val () array rather than
6490         all bits in *val_wide.
6492 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
6494         * varpool.c (tls_model_names): Fix names.
6495         (varpool_node::dump): Dump tls- prefix for tls models.
6497 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
6498             Bernd Schmidt  <bernds@codesourcery.com>
6499             Nathan Sidwell  <nathan@codesourcery.com>
6501         * config/nvptx/mkoffload.c: New file.
6502         * config/nvptx/t-nvptx: Add build rules for it.
6503         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
6504         (extra_programs): Add mkoffload.
6505         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
6506         function.
6507         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
6509 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
6511         PR middle-end/64809
6512         * cfgexpand.c (reorder_operands): Skip debug gimples.
6514 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
6516         PR tree-optimization/64277
6517         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
6518         range info when possible to refine estimation.
6520 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6522         PR tree-optimization/64718
6523         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
6524         be a 16bit unsigned integer when n->range is 16.
6525         (bswap_replace): Convert src to that type if necessary for all bswap
6526         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
6527         set in pass_optimize_bswap::execute ().
6529 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
6531         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
6532         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
6533         integer and floating point variants.
6534         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
6536 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
6538         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
6539         for all vector modes.
6541 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
6543         PR bootstrap/64612
6544         * doc/sourcebuild.texi (comdat_group): Document.
6546 2015-01-28  Terry Guo  <terry.guo@arm.com>
6548         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
6550 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
6552         * toplev.c (print_version): Add param "show_global_state", and
6553         only print GGC and plugin information if it is true.
6554         (init_asm_output): Pass in "true" for the new param when calling
6555         print_version.
6556         (process_options): Likewise.
6557         (toplev::main): Likewise.
6558         * toplev.h (print_version): Add new param to decl.
6560 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
6562         PR ipa/60871
6563         PR ipa/64139
6564         * tree.c (lookup_binfo_at_offset): New function.
6565         (get_binfo_at_offset): Use it.
6567 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
6569         PR ipa/64282
6570         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
6571         on vtable being vtable.
6573 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6575         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
6576         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
6577         -mhotpatch= option.
6578         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
6579         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
6580         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
6581         Renamed.
6582         (s390_hotpatch_trampoline_halfwords_max): Renamed.
6583         (s390_hotpatch_hw_max): New name.
6584         (s390_hotpatch_trampoline_halfwords): Renamed.
6585         (s390_hotpatch_hw_before_label): New name.
6586         (get_hotpatch_attribute): Removed.
6587         (s390_hotpatch_hw_after_label): New name.
6588         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
6589         attribute.
6590         (s390_attribute_table): Ditto.
6591         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
6592         (s390_function_num_hotpatch_hw): New name.
6593         Remove special handling of inline functions and hotpatching.
6594         Return number of nops before and after the function label.
6595         (s390_can_inline_p): Removed.
6596         (s390_asm_output_function_label): Emit a configurable number of nops
6597         after the function label.
6598         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
6599         (TARGET_CAN_INLINE_P) Removed.
6600         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
6602 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6603             Jiong Wang  <jiong.wang@arm.com>
6605         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
6606         of scratch reg.
6607         (cb<optab><mode>1): Likewise.
6608         * config/aarch64/iterators.md (bcond): New define_code_attr.
6610 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6612         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
6613         memory accesses.
6615 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6617         * config/s390/s390.c (s390_register_move_cost): Increase costs for
6618         FPR->GPR moves.
6620 2015-01-27  Richard Biener  <rguenther@suse.de>
6622         * tree-vrp.c (update_value_range): Intersect the range with
6623         old recorded SSA name range information.
6625 2015-01-27  Nick Clifton  <nickc@redhat.com>
6627         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
6628         BC, DE and HL registers directly, not via AX.
6629         When decrementing the stack pointer by a large amount, transfer SP
6630         into AX and perform the subtraction there.
6631         (rl78_expand_epilogue): Perform the inverse of the above
6632         enhancements.
6634 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6636         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
6638 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6639             Yury Gribov  <y.gribov@samsung.com>
6641         PR ubsan/64741
6642         * ubsan.c (ubsan_source_location): Refactor code.
6643         (ubsan_type_descriptor): Update type size. Refactor code.
6645 2015-01-27  Richard Biener  <rguenther@suse.de>
6647         PR tree-optimization/56273
6648         PR tree-optimization/59124
6649         PR tree-optimization/64277
6650         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
6651         from the first VRP pass.
6653 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6655         PR ipa/64776
6656         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
6657         handle the first argument in the same loop as all the other arguments.
6659         PR rtl-optimization/61058
6660         * jump.c (cleanup_barriers): Update basic block boundaries
6661         if BLOCK_FOR_INSN is non-NULL on PREV.
6663 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
6665         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
6666         bounds narrowing, already instrumented calls and calls to
6667         not instrumentable functions.
6669 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6671         PR tree-optimization/64807
6672         * wide-int.cc (wi::divmod_internal): Clear
6673         b_dividend[dividend_blocks_needed].
6675 2015-01-26  DJ Delorie  <dj@redhat.com>
6677         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
6678         volatile memory references.
6680 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
6682         PR target/49263
6683         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
6684         remove_insn.
6685         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
6686         shifts if it already fits into K08.
6688 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
6690         PR ipa/64730
6691         * ipa-inline.c (inline_small_functions): Print "unknown" even
6692         if edge->call_stmt is non-NULL, but has builtins or unknown
6693         location.
6695         PR middle-end/64421
6696         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
6697         with asterisk, skip the first character.
6699 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
6701         PR target/64806
6702         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
6703         order change.
6705 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
6707         PR target/64795
6708         * config/i386/i386.md (*movdi_internal): Also check operand 0
6709         to determine TYPE_LEA operand.
6710         (*movsi_internal): Ditto.
6712 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
6714         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
6715         OPTION_MASK_QUAD_MEMORY_ATOMIC.
6717 2015-01-26  Renlin Li  <renlin.li@arm.com>
6719         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
6720         the comment.
6721         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
6722         for higher part.
6724 2015-01-26  Richard Biener  <rguenther@suse.de>
6726         PR middle-end/64764
6727         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
6728         combining two BIT_AND_EXPR predicates.
6730 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
6732         PR bootstrap/64754
6733         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
6735 2015-01-26  Terry Guo  <terry.guo@arm.com>
6737         * config/arm/arm.c (arm_file_start): Update the assignment of
6738         Tag_ABI_HardFP_use.
6740 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
6742         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
6743         pipeline model.
6744         config/arm/arm.md: Include the new Cortex-A57 model.
6745         (generic_sched): Don't use generic_sched when tuning for
6746         Cortex-A57.
6748 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
6749             Uros Bizjak  <ubizjak@gmail.com>
6751         * config/i386/i386.c (get_builtin_code_for_version): Add
6752         support for BMI and BMI2 multiversion functions.
6754 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6756         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
6757         (extract_bit_field): Likewise.
6758         (extract_low_bits): Likewise.
6759         (expand_mult): Likewise.
6760         (expand_mult_highpart_adjust): Likewise.
6762 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6764         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
6765         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
6766         * config/i386/i386.c (processor_model): Add
6767         M_INTEL_COREI7_BROADWELL.
6768         (arch_names_table): Add "broadwell".
6770 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
6772         PR target/49263
6773         PR target/53987
6774         PR target/64345
6775         PR target/59533
6776         PR target/52933
6777         PR target/54236
6778         PR target/51244
6779         * config/sh/sh-protos.h
6780         (sh_extending_set_of_reg::can_use_as_unextended_reg,
6781         sh_extending_set_of_reg::use_as_unextended_reg,
6782         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
6783         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
6784         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
6785         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
6786         (sh_treg_insns): New class.
6787         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
6788         (scope_counter): New class.
6789         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
6790         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
6791         sh_extending_set_of_reg::can_use_as_unextended_reg,
6792         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
6793         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
6794         sh_split_treg_set_expr): New functions.
6795         (addsubcosts): Handle treg_set_expr.
6796         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
6797         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
6798         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
6799         (sh_insn_operands_modified_between_p): Make non-static.
6800         * config/sh/predicates.md (zero_extend_movu_operand): Allow
6801         simple_mem_operand in addition to displacement_mem_operand.
6802         (zero_extend_operand): Don't allow zero_extend_movu_operand.
6803         (treg_set_expr, treg_set_expr_not_const01,
6804         arith_reg_or_treg_set_expr): New predicates.
6805         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
6806         arith_or_int_operand instead of logical_operand.  Convert to
6807         insn_and_split.  Try to optimize constant operand in splitter.
6808         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
6809         (*tstqi_t_zero): Delete.
6810         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
6811         (tstsi_t_and_not): Delete.
6812         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
6813         Convert to insn_and_split.
6814         (unnamed split, tstsi_t_zero_extract_xor,
6815         tstsi_t_zero_extract_subreg_xor_little,
6816         tstsi_t_zero_extract_subreg_xor_big): Delete.
6817         (*tstsi_t_shift_mask): New insn_and_split.
6818         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
6819         to recombine with surrounding insns when splitting.
6820         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
6821         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
6822         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
6823         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
6824         (*cbranch_div0s: Delete.
6825         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
6826         Try to recombine with surrounding insns when splitting.  Add operand
6827         order variants.
6828         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
6829         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
6830         *addc_r_r_msb, *addc_2r_msb): Delete.
6831         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
6832         order variant.
6833         (*addc_negreg_t): New insn_and_split.
6834         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
6835         Try to recombine with surrounding insns when splitting.
6836         Add operand order variants.
6837         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
6838         insn_and_split patterns.
6839         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
6840         surrounding insns when splitting.
6841         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
6842         (*rotcl): Likewise.  Add zero_extract variant.
6843         (*ashrsi2_31): New insn_and_split.
6844         (*negc): Convert to insn_and_split.  Use treg_set_expr.
6845         (*zero_extend<mode>si2_disp_mem): Update comment.
6846         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
6847         condition.
6848         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
6849         with surrounding insns when splitting.
6850         (any_treg_expr_to_reg): New insn_and_split.
6851         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
6852         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
6853         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
6854         *zero_extract_2): New single bit zero extract patterns.
6855         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
6856         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
6857         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
6858         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
6859         set destination.
6860         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
6861         register_operand for set source.
6863 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
6865         * i386.opt (prefetch_sse): New targetsave.
6866         * i386.c (ix86_function_specific_save): Save prefetch_sse.
6867         (ix86_function_specific_restore): Restore prefetch_sse and initialize
6868         ix86_cost/ix86_tune_cost.
6870 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
6872         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6873         Support the JIT by using 0 as the language type.
6875 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
6877         PR target/64317
6878         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
6879         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
6880         (mark_regno_live, process_bb_lives): Pass new parameter value to
6881         make_hard_regno_born.
6883 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6885         PR rtl-optimization/63637
6886         PR rtl-optimization/60663
6887         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
6888         if elt->cost is MAX_COST for ASM_OPERANDS.
6889         (find_sets_in_insn): Fix up comment typo.
6890         (cse_insn): Don't set src_volatile for all non-volatile
6891         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
6892         or with "memory" clobber.  Set elt->cost to MAX_COST
6893         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
6894         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
6896 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
6898         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
6899         alternative 1.
6901 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
6903         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
6904         libgcc/config/i386/elf-lib.h.
6906 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6908         PR driver/64737
6909         * gcc.c (print_configuration): Don't print a blank line at the end
6910         here...
6911         (run_attempt): ... but here unstead.
6913         PR middle-end/64734
6914         * omp-low.c (scan_sharing_clauses): Don't ignore
6915         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
6916         on target data/update constructs.
6918 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6920         PR target/50928
6921         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
6922         (DEBUG_RELOAD): Removed define.
6923         (m32c_limit_reload_class): Enable traces with if DEBUG0.
6924         (m32c_function_arg): Added a type cast.
6925         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
6926         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
6927         * config/m32c/bitops.md (andqi3_16): Likewise.
6928         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
6929         (push_a01_l): Likewise.
6931 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
6933         PR jit/64721
6934         * main.c (main): Construct toplev instances with init_signals=true.
6935         * toplev.c (general_init): Add param "init_signals", and use it to
6936         conditionalize the calls to signal and host_hooks.extra_signals.
6937         (toplev::toplev): Add param "init_signals".
6938         (toplev::main): When invoking general_init, pass m_init_signals
6939         to control whether signal-handlers are installed.
6940         * toplev.h (toplev::toplev): Add param "init_signals".
6941         (toplev::m_init_signals): New field.
6943 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
6945         PR jit/64722
6946         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
6947         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
6948         latter may be affected by the former (e.g. on i686).
6950 2015-01-23  Martin Liska  <mliska@suse.cz>
6952         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
6953         false positive during profiledbootstrap.
6955 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6957         PR libgomp/64672
6958         * lto-opts.c (lto_write_options): Output non-explicit conservative
6959         -fno-openacc.
6960         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
6961         (append_compiler_options): Pass -fopenacc through.
6963 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6965         PR libgomp/64707
6966         * lto-opts.c (lto_write_options): Output non-explicit conservative
6967         -fno-openmp.
6968         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
6969         (append_compiler_options): Pass -fopenmp through.
6971 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6973         PR debug/64511
6974         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
6975         GTY markup.
6977         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
6978         * diagnostic.def (DK_ICE_NOBT): New kind.
6979         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
6980         like DK_ICE, but never print backtrace.
6981         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
6982         (internal_error_no_backtrace): New function.
6983         * gcc.c (execute): Use internal_error_no_backtrace instead of
6984         internal_error.
6986 2015-01-22  Jeff Law  <law@redhat.com>
6988         PR target/52076
6989         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
6990         improve code density for small immediate to memory case.
6991         (insv): Better handle bitfield assignments when the field is
6992         being set to all ones.
6993         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
6994         operand predicate.
6996 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6997             Jakub Jelinek  <jakub@redhat.com>
6999         PR middle-end/64729
7000         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
7001         for !TARGET_LIBC_PROVIDES_SSP version and
7002         -fstack-protector-{all,strong,explicit} otherwise.
7003         * config/freebsd.h (LINK_SSP_SPEC): Handle
7004         -fstack-protector-{strong,explicit}.
7006 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
7007             H.J. Lu  <hongjiu.lu@intel.com>
7009         PR ipa/64694
7010         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
7011         heap.
7013 2015-01-22  Wei Mi  <wmi@google.com>
7015         PR rtl-optimization/64557
7016         * dse.c (record_store): Call get_addr for mem_addr.
7017         (check_mem_read_rtx): Likewise.
7019 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7021         * fold-const.c (const_binop): Add early return for non-tcc_binary.
7023 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
7025         * toplev.c (init_local_tick): Process the failure when read
7026         fails for random_seed.
7028         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
7029         'pretty_name' to avoid memory overflow.
7031 2015-01-22  Richard Biener  <rguenther@suse.de>
7033         PR middle-end/64728
7034         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
7035         abnormal coalescing on undefined SSA names.
7037 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
7039         PR target/64688
7040         PR target/64477
7041         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
7042         for alternative 3.
7043         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
7045 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
7047         PR middle-end/63325
7048         * fold-const.c (fold_checksum_tree): Don't include value of
7049         expr->decl_with_vis.symtab_node in the checksum.
7051 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7053         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
7055 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
7057         PR driver/64690
7058         * gcc.c (insert_comments): New function.
7059         (try_generate_repro): Call it.
7060         (append_text): Removed.
7062 2015-01-22  Richard Biener  <rguenther@suse.de>
7064         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
7065         with IL incompatible options.  Properly honor user optimize
7066         attributes.
7068 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
7070         PR rtl-optimization/64682
7071         * combine.c (distribute_notes): When moving a death note for
7072         a register that is set in the new I2, make sure to put it
7073         before that new I2.
7075 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
7077         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
7078         not TARGET_DEFAULT.
7080 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
7082         PR debug/64511
7083         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
7084         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
7085         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
7087         PR sanitizer/64706
7088         * doc/invoke.texi (-fsanitize=vptr): Document.
7090         PR rtl-optimization/62078
7091         * dse.c: Include cfgcleanup.h.
7092         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
7093         anything call purge_all_dead_edges and cleanup_cfg at the end
7094         of the pass.
7096 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
7098         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
7099         edges.
7101 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7103         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
7104         decl attribute.
7106 2015-01-21  David Sherwood  <david.sherwood@arm.com>
7107             Tejas Belagod <Tejas.Belagod@arm.com>
7109         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
7110         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
7111         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
7112         Removed.
7114 2015-01-21  David Sherwood  <david.sherwood@arm.com>
7115             Tejas Belagod <Tejas.Belagod@arm.com>
7117         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
7118         (aarch64_reverse_mask): New decls.
7119         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
7120         (insn_count): New mode_attr.
7121         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
7122         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
7123         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
7124         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
7125         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
7126         (aarch64_simd_st4): New patterns.
7127         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
7128         (aarch64_reverse_mask): New functions.
7130 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
7132         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
7133         Declare.
7134         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
7135         addressing modes for BE.
7136         (aarch64_print_operand): Add 'R' specifier.
7137         (aarch64_simd_disambiguate_copy): Delete.
7138         (aarch64_simd_emit_reg_reg_move): New function.
7139         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
7140         in define_splits for structural moves.
7141         (mov<mode>): Use less restrictive predicates.
7142         (*aarch64_mov<mode>): Simplify and only allow for LE.
7143         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
7145 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
7147         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
7149 2015-01-21  Richard Henderson  <rth@redhat.com>
7151         PR target/64669
7152         * ccmp.c (used_in_cond_stmt_p): Remove.
7153         (expand_ccmp_expr): Don't use it.
7155 2015-01-21  Nick Clifton  <nickc@redhat.com>
7157         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
7158         PARALLELs.
7160 2015-01-21  Richard Biener  <rguenther@suse.de>
7162         PR middle-end/64313
7163         * tree-core.h (builtin_info, builtin_info_type): Turn from
7164         an object with two arrays into an array of an object with
7165         decl and two flags, implicit_p and declared_p.
7166         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
7167         set_builtin_decl, set_builtin_decl_implicit_p,
7168         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
7169         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
7170         * builtins.c (builtin_info): Adjust.
7171         * gimplify.c (gimplify_addr_expr): References to builtins
7172         that have been declared by the user makes them eligible for
7173         use by the compiler.  Call set_builtin_decl_implicit_p on them.
7175 2015-01-20  Jeff Law  <law@redhat.com>
7177         PR target/59946
7178         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
7179         allow pc-relative addresses in operand predicates or constraints.
7181 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
7183         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
7184         neon on aarch32 processors for stringops.
7186 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7188         PR ipa/63576
7189         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
7191 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7193         PR lto/45375
7194         * ipa-inline.c: Include lto-streamer.h
7195         (report_inline_failed_reason): Output source file differences and
7196         flags on optimization/target node mismatch.
7197         (can_inline_edge_p): Consider caller to be the outer inline function;
7198         be less restrictive about matching opimize and optimize_size attributes.
7199         (inline_account_function_p): Break out from ...
7200         (inline_small_functions): ... here.
7201         * ipa-inline-transform.c (clone_inlined_nodes): Use
7202         inline_account_function_p.
7203         (inline_call): Use optimize attribution; use inline_account_function_p.
7204         (inline_transform): Use opt_for_fn.
7205         * ipa-inline.h (inline_account_function_p): Declare.
7207 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
7209         PR debug/64663
7210         * dwarf2out.c (decl_piece_node): Don't put bitsize into
7211         mode if bitsize <= 0.
7212         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
7213         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
7214         sizes and positions.
7216 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
7218         * config/nios2/nios2.c (nios2_asm_file_end): Implement
7219         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
7220         needed.
7221         (TARGET_ASM_FILE_END): Define.
7223 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7225         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
7226         (struct tune_params): Use the enum.
7227         * arm.c (arm_*_tune): Update.
7228         (arm_option_override): Update.
7230 2015-01-20  Richard Biener  <rguenther@suse.de>
7232         PR ipa/64684
7233         * ipa-reference.c (add_static_var): Inline ...
7234         (analyze_function): ... here after splitting out from ...
7235         (is_proper_for_analysis): ... this.
7237 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
7239         PR target/64149
7240         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
7241         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
7242         replace the conditional with it's true branch.
7243         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
7244         (arm_lra_p): Remove.
7246 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
7248         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
7250 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7252         * config/tilegx/mul-tables.c: Move symtab.h include after
7253         coretypes.h include.
7254         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
7255         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
7256         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
7257         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
7258         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
7260 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
7262         PR bootstrap/64676
7263         Revert:
7264         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
7266         PR rtl-optimization/64081
7267         * loop-iv.c (def_pred_latch_p): New function.
7268         (latch_dominating_def): Allow specific cases with non-single
7269         definitions.
7270         (iv_get_reaching_def): Likewise.
7271         (check_complex_exit_p): New function.
7272         (check_simple_exit): Use check_complex_exit_p to allow certain cases
7273         with exits not executing on any iteration.
7275 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7277         PR lto/45375
7278         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
7279         to set branch cost.
7281 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7283         PR lto/45375
7284         * i386.c (gate): Check flag_expensive_optimizations and
7285         optimize_size.
7286         (ix86_option_override_internal): Drop optimize_size condition
7287         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
7288         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
7289         MASK_PREFER_AVX128.
7290         (ix86_avx256_split_vector_move_misalign,
7291         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
7292         * sse.md (all uses of TARGET_PREFER_AVX128): Add
7293         optimize_insn_for_speed_p check.
7295 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
7297         * config/mips/mips.h (FP_ASM_SPEC): New define.
7298         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
7299         instead.
7301 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
7303         PR target/53988
7304         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
7305         nullptr for insn when reaching the first insn.
7306         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
7307         (sh_insn_operands_modified_between_p): Add nullptr check.
7308         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
7309         sign extending mem load if the insn contains any UNSPEC or
7310         UNSPEC_VOLATILE.
7312 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7314         * params.def (inline-unit-growth): Drop to 15%.
7315         * invoke.texi (inline-unit-growth): Document change.
7317 2015-01-19  Martin Liska  <mliska@suse.cz>
7319         PR ipa/64668
7320         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
7321         function for second argument of OBJ_TYPE_REF.
7323 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7325         PR ipa/64218
7326         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
7327         whether function is an alias.
7329 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7331         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
7332         cases.
7334 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
7336         PR rtl-optimization/64671
7337         * lra-remat.c (operand_to_remat): Don't consider jump and call
7338         insns.
7340 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
7342         PR target/59828
7343         * config/rs6000/default64.h: Include rs6000-cpus.def.
7344         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
7345         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
7346         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
7347         and POWER8.
7348         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
7349         POWER8.
7350         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
7351         pseudo-op to specify assembler dialect.
7353 2015-01-19  Martin Liska  <mliska@suse.cz>
7355         PR ipa/64664
7356         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
7357         Handle safe potentially removed nodes during filtering.
7359 2015-01-19  Martin Liska  <mliska@suse.cz>
7361         * doc/extend.texi (no_icf): Add new attribute description.
7362         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
7363         where the pass attempts to merge a function with no_icf attribute.
7365 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7367         PR target/64532
7368         * doc/md.texi (ARM Options): Document register constraints.
7370 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
7371             Andrew Pinski  <apinski@cavium.com>
7373         PR target/64304
7374         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
7375         (ashl<mode>3): Don't expand if operands[2] is not constant.
7377 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7379         PR target/64448
7380         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
7381         Match xor-and-xor RTL pattern.
7383 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
7385         PR rtl-optimization/64081
7386         * loop-iv.c (def_pred_latch_p): New function.
7387         (latch_dominating_def): Allow specific cases with non-single
7388         definitions.
7389         (iv_get_reaching_def): Likewise.
7390         (check_complex_exit_p): New function.
7391         (check_simple_exit): Use check_complex_exit_p to allow certain cases
7392         with exits not executing on any iteration.
7394 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
7396         * common.opt (fgraphite): Fix a typo.
7398 2015-01-19  Felix Yang  <felix.yang@huawei.com>
7400         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
7401         pattern.
7402         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
7403         uminp, smax_nanp, smin_nanp): New builtins.
7404         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
7405         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
7406         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
7407         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
7408         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
7409         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
7410         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
7411         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
7412         vpminnms_f32): Rewrite using builtin functions.
7414 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
7416         PR libgomp/64625
7417         * omp-low.c (offload_symbol_decl): Remove variable.
7418         (get_offload_symbol_decl): Remove function.
7419         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
7420         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
7421         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
7422         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
7423         BUILT_IN_GOACC_UPDATE don't pass it at all.
7425 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7427         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
7428         callers.
7430 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7432         * ipa-chkp.c (chkp_produce_thunks): Add early param
7433         to split thunks production into two passes.  Keep
7434         'always_inline' function bodies after the first pass.
7435         (pass_data_ipa_chkp_early_produce_thunks): New.
7436         (pass_ipa_chkp_early_produce_thunks): New.
7437         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
7438         chkp_produce_thunks signature.
7439         (make_pass_ipa_chkp_early_produce_thunks): New.
7440         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
7441         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
7442         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
7444 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
7446         * cgraph.c (cgraph_node::dump): Dump profile flags.
7448 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
7450         PR target/64652
7451         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
7452         reg appear first in the parallel.
7454 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
7456         * ipa-reference.c (set_reference_optimization_summary,
7457         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
7458         disabled.
7459         (ignore_module_statics): New static var.
7460         (propagate_bits): If ipa-reference is disabled, do not look into local
7461         properties.
7462         (analyze_function): Disable analysis when ipa_reference is disabled.
7463         (generate_summary): Do not dump when reference is disabled;
7464         collect vars accessed from functions with ipa-reference disabled.
7465         (get_read_write_all_from_node): When ipa-reference is disabled, use the
7466         node flags.
7467         (gate): Enable for LTO.
7468         (ignore_edge_p): New function.
7469         (propagate): Skip functions w/o ipa-reference analysis.
7470         * optc-save-gen.awk: Handle optimize_debug correctly.
7471         * opth-gen.awk: Likewise.
7472         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
7473         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
7474         fira-share-save-slots, fira-share-spill-slots,
7475         fmodulo-sched-allow-regmoves, fpartial-inlining,
7476         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
7477         ftracer, ftree-parallelize-loops, fassociative-math,
7478         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
7479         Optimization
7480         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
7481         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
7482         Optimization.
7483         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
7484         Fix for IPA.
7486 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
7488         PR ipa/64378
7489         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
7490         flag correctly.
7491         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
7493 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
7495         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
7496         Remove duplicate option listings.
7498 2015-01-18  Felix Yang  <felix.yang@huawei.com>
7500         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
7501         (autofdo_source_profile::get_callsite_total_count,
7502         function_instance::get_function_instance_by_decl,
7503         string_table::get_index, string_table::get_index_by_decl,
7504         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
7505         Fix comment typos. Reformatting and minor code rearrangement.
7507 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
7509         * config/rs6000/rs6000.md (probe_stack): Delete.
7510         (probe_stack_address): New.
7512 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
7514         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
7515         to test for 32-bit ABIs, not !TARGET_POWERPC64.
7517 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
7519         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
7520         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
7521         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
7522         snafu.
7523         (rs6000_libcall_value): Use the new function.
7525 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
7527         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
7529 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7531         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
7532         implement a more precise life analysis for it during backward scan.
7534 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7536         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
7538 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
7540         PR rtl-optimization/52773
7541         * calls.c (emit_library_call_value): When pushing arguments use
7542         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
7543         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
7544         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
7546 2015-01-17  Jeff Law  <law@redhat.com>
7548         PR rtl-optimization/32790
7549         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
7550         not ZERO_EXTEND in SET_DESTs.
7552 2015-01-17  Alan Modra  <amodra@gmail.com>
7554         * cprop.c (do_local_cprop): Revert last change.
7556 2015-01-16  DJ Delorie  <dj@redhat.com>
7557             Nick Clifton  <nickc@redhat.com>
7559         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
7560         (addhi3_real): Likewise.  Fix [HL+0] syntax.
7561         (subqi3_real): Likewise.
7562         (subhi3_real): Likewise.
7563         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
7564         (cbranchhi4_real): Likewise.
7565         (cbranchhi4_real_inverted): Likewise.
7566         (cbranchsi4_real_lt): Likewise.
7567         (cbranchsi4_real_ge): Likewise.
7568         (cbranchsi4_real_ge): Likewise.
7569         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
7570         (sub<mode>3_virt): Likewise.
7571         (cbranchqi4_virt): Likewise.
7572         (cbranchhi4_virt): Likewise.
7573         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
7574         always use '[reg+imm]' even when imm is zero.
7575         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
7576         (rl78_general_operand): New.
7577         (rl78_nonimmediate_operand): New.
7578         (rl78_nonfar_operand): Use them.
7579         (rl78_nonfar_nonimm_operand): Likewise.
7580         (rl78_stack_based_mem): Fix.
7581         * config/rl78/constraints.md (Ibqi): New.
7582         (IBqi): New.
7583         (Wsa): New.
7584         (Wsf): New.
7585         (Cs1): Fix.
7586         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
7587         (iorqi3): Likewise.
7588         (xorqi3): Likewise.
7589         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
7591         * config/rl78/constrains (Qs8): New constraint.
7592         * config/rl78/rl78.c (rl78_flags_already_set): New function.
7593         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
7594         * config/rl78/rl78-real.md (update_Z): New attribute.
7595         Update patterns to set it.
7596         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
7597         shorter compare and branch sequence can be used.
7598         (cbranchhi4_real): Likewise.
7599         (cbranchhi4_real_inverted): Likewise.
7601         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
7602         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
7603         address space.
7604         * config/rl78/rl78.c (rl78_get_name_encoding): New.
7605         (rl78_option_override): Allow -mes0 only if C.
7606         (characterize_address): Support subregs of symbol_refs.
7607         (rl78_addr_space_address_mode): Move.  Add __near.
7608         (rl78_far_p): Likewise.
7609         (rl78_addr_space_pointer_mode): Likewise.
7610         (rl78_as_legitimate_address): Likewise.
7611         (rl78_addr_space_subset_p): Likewise.
7612         (rl78_addr_space_convert): Likewise.
7613         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
7614         symbols with -mes0.
7615         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
7616         addressing.
7617         (rl78_alloc_physical_registers_op1): Change logic to prefer
7618         symbol[BC] addressing.
7619         (frodata_section): New.
7620         (rl78_asm_init_sections): Initialize it.
7621         (rl78_select_section): Put __far readonly symbols in .frodata.
7622         (rl78_make_type_far): New.
7623         (rl78_insert_attributes): Force all readonly symbols to be
7624         __far when -mes0.
7625         (rl78_asm_out_integer): New.
7626         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
7627         * config/rl78/rl78.opt (-mes0): New.
7629         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
7630         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7631         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7632         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
7633         (rl78_saddr_p): New.
7634         (rl78_output_aligned_common): New.
7635         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
7636         (rl78_handle_saddr_attribute): New.
7637         (rl78_handle_naked_attribute): New.
7638         (rl78_attribute_table): Add saddr.
7639         (rl78_print_operand_1): Don't print '!' on saddr operands.
7640         (rl78_print_operand_1): Strip encodings.
7641         (rl78_sfr_p): New.
7642         (rl78_strip_name_encoding): New.
7643         (rl78_attrlist_to_encoding): New.
7644         (rl78_encode_section_info): New.
7645         (rl78_asm_init_sections): New.
7646         (rl78_select_section): New.
7647         (rl78_output_labelref): New.
7648         (rl78_output_aligned_common): New.
7649         (rl78_asm_out_integer): New.
7650         (rl78_asm_ctor_dtor): New.
7651         (rl78_asm_constructor): New.
7652         (rl78_asm_destructor): New.
7654         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
7655         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
7656         (transcode_memory_rtx): Update.
7657         (rl78_expand_epilogue): Use A_REG instead of 0.
7659 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7661         * config/arm/arm-protos.h (struct tune_params): New field
7662         sched_autopref_queue_depth.
7663         * config/arm/arm.c (sched-int.h): Include header.
7664         (arm_first_cycle_multipass_dfa_lookahead_guard,)
7665         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
7666         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
7667         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
7668         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
7669         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
7670         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
7671         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
7672         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
7673         * config/arm/t-arm (arm.o): Update.
7674         * haifa-sched.c (update_insn_after_change): Update.
7675         (rank_for_schedule): Use auto-prefetcher model, if requested.
7676         (autopref_multipass_init): New static function.
7677         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
7678         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
7679         variable for debug dumps.
7680         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
7681         (autopref_multipass_dfa_lookahead_guard): New global function that
7682         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
7683         (init_h_i_d): Update.
7684         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
7685         * sched-int.h (enum autopref_multipass_data_status): New const enum.
7686         (autopref_multipass_data_): Structure for auto-prefetcher data.
7687         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
7688         (struct _haifa_insn_data:autopref_multipass_data): New field.
7689         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
7690         (autopref_multipass_dfa_lookahead_guard): Declare.
7692 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7694         * rtlanal.c (get_base_term): Handle SCRATCH.
7696 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7698         * config/aarch64/aarch64.c
7699         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
7700         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7701         * config/arm/arm.c
7702         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
7703         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7705 2015-01-17  Alan Modra  <amodra@gmail.com>
7707         * cprop.c (do_local_cprop): Disallow replacement of fixed
7708         hard registers.
7710 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7712         PR target/62066
7713         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
7714         early return 0.
7716 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7718         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
7719         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
7721 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7723         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
7724         * config/arm/thumb1.md: ... Here.
7726 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7728         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
7729         TImode for TARGET_32BIT.
7731 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7733         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
7734         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
7735         as ...
7736         (rs6000_abi_word_mode): New function.
7738 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7740         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
7741         instead of UNITS_PER_WORD to describe the size of stack slots.
7743 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7745         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
7746         as rs6000_promote_function_mode.  Move comment to there.
7747         (rs6000_promote_function_mode): New function.
7749 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7751         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
7752         -mpowerpc64 is active.
7754 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
7756         PR middle-end/64353
7757         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
7758         virtuals on start.
7760 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
7762         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
7763         introduced in revision 219724.
7765 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7766             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7768         PR target/64263
7769         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
7770         destination is not a GP reg.
7771         (*movdi_aarch64): Likewise.
7773 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
7775         PR target/64623
7776         * config/rs6000/default64.h: Revert ISA change.
7778 2015-01-16  Richard Biener  <rguenther@suse.de>
7780         PR middle-end/64614
7781         * tree-ssa-uninit.c: Include tree-cfg.h.
7782         (MAX_SWITCH_CASES): New define.
7783         (convert_control_dep_chain_into_preds): Handle switch statements.
7784         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
7785         (normalize_one_pred_1): Do not split bit-manipulations.
7786         Record (x & CST).
7788 2015-01-16  Richard Biener  <rguenther@suse.de>
7790         PR tree-optimization/64568
7791         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
7792         complex load rewriting for TARGET_MEM_REFs.
7794 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
7796         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
7798 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
7800         PR target/64149
7801         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
7802         variable.
7803         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
7804         (aarch64_lra_p): Remove.
7806 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
7808         PR target/64363
7809         * ipa-chkp.h (chkp_instrumentable_p): New.
7810         * ipa-chkp.c: Include tree-inline.h.
7811         (chkp_instrumentable_p): New.
7812         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
7813         Fix processing of not instrumentable functions.
7814         (chkp_versioning): Use chkp_instrumentable_p. Warn about
7815         not instrumentable functions.
7816         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
7817         chkp_instrumentable_p.
7818         * tree-inline.h (copy_forbidden): New.
7819         * tree-inline.c (copy_forbidden): Not static anymore.
7821 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7823         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
7824         ptr1, ptr2 unused.
7826 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7828         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
7829         type OP_OUT to OP_INOUT.
7831 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7833         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
7834         (high x) y) to y if x and y have the same base.
7836 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
7838         * config/arm/cortex-a57.md: New.
7839         * config/aarch64/aarch64.md: Include it.
7840         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
7841         * config/aarch64/aarch64-tune.md: Regenerate.
7843 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7845         PR target/64015
7846         * ccmp.c (expand_ccmp_next): New function.
7847         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
7848         and compare insn sequence.
7849         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
7850         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
7851         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
7852         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
7853         (*ccmp_ior): Changed to ccmp_ior<mode>.
7854         (cmp<mode>): New pattern.
7855         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
7856         parameters.
7857         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
7859 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
7861         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
7862         _mm256_bsrli_epi128): New.
7863         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
7865 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
7867         * expmed.c (store_bit_field_using_insv): Improve warning message.
7868         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
7870 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
7872         PR rtl-optimization/64011
7873         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
7874         there is partial overflow.
7876 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7878         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
7879         prototype.
7880         (nds32_expand_epilogue_v3pop): Likewise.
7881         * config/nds32/nds32.md (sibcall): Define this for sibling call
7882         optimization.
7883         (sibcall_register): Likewise.
7884         (sibcall_immediate): Likewise.
7885         (sibcall_value): Likewise.
7886         (sibcall_value_register): Likewise.
7887         (sibcall_value_immediate): Likewise.
7888         (sibcall_epilogue): Likewise.
7889         (epilogue): Pass false to indicate this is not a sibcall epilogue.
7890         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
7891         (nds32_expand_epilogue_v3pop): Likewise.
7893 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7895         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
7896         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
7897         (return_internal): New.
7898         (return): Define this named pattern.
7899         (simple_return): Define this named pattern.
7900         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
7901         pattern instead of unspec_volatile_func_return.
7902         (nds32_expand_epilogue_v3pop): Likewise.
7903         (nds32_can_use_return_insn): New function.
7905 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7907         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
7908         * config/nds32/nds32.md (pop25return): New.
7909         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
7910         pop25return pattern.
7912 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7914         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
7915         -mforbid-fp-as-gp, and -mex9 options.
7917 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7919         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
7920         remove -mgp-direct option.
7922 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
7924         * doc/invoke.texi (--param early-inlining-insns): Update default value.
7925         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
7927 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
7929         * ipa-inline.c (inline_small_functions): Work around hints
7930         cache issue.
7932 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
7934         PR target/59710
7935         * doc/invoke.texi (Option Summary): Document new Nios II
7936         -mgpopt= syntax.
7937         (Nios II Options): Likewise.
7938         * config/nios2/nios2.opt: Add -mgpopt= option support.
7939         Modify existing -mgpopt and -mno-gpopt options to be aliases.
7940         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
7941         * config/nios2/nios2.c (nios2_option_override): Adjust
7942         -mgpopt defaulting.
7943         (nios2_in_small_data_p): Return true for explicit small data
7944         sections even with -G0.
7945         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
7946         option choices.
7948 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
7950         PR ipa/64612
7951         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
7952         of comdat locals.
7953         (inline_call): Fix removal of aliases.
7955 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
7957         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
7958         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
7959         * opts.c (common_handle_option): Add -fsanitize=vptr.
7960         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
7961         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
7962         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
7963         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
7964         (ubsan_expand_vptr_ifn): New prototype.
7965         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
7966         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
7967         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
7968         expand_LOOP_VECTORIZED): Make argument nameless, remove
7969         ATTRIBUTE_UNUSED.
7970         (expand_UBSAN_VPTR): New function.
7971         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
7972         in fn spec.
7973         (UBSAN_VPTR): New internal function.
7974         * sanopt.c (tree_map_traits): Renamed to ...
7975         (sanopt_tree_map_traits): ... this.
7976         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
7977         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
7978         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
7979         (maybe_optimize_ubsan_vptr_ifn): New function.
7980         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
7981         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
7982         -fsanitize=vptr.
7983         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
7984         internal calls like pure functions for aliasing, even when they
7985         have other side-effects that prevent making them ECF_PURE.
7986         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
7987         (ubsan_expand_vptr_ifn): New function.
7989 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
7991         PR rtl-optimization/64110
7992         * stmt.c (parse_output_constraint): Process '^' and '$'.
7993         (parse_input_constraint): Ditto.
7994         * lra-constraints.c (process_alt_operands): Process the new
7995         constraints.
7996         * ira-costs.c (record_reg_classes): Process the new constraint
7997         '^'.
7998         * genoutput.c (indep_constraints): Add '^' and '$'.
7999         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
8000         * doc/md.texi: Add description of the new constraints.
8002 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
8003             Bernd Schmidt  <bernds@codesourcery.com>
8004             Cesar Philippidis  <cesar@codesourcery.com>
8005             James Norris  <jnorris@codesourcery.com>
8006             Tom de Vries  <tom@codesourcery.com>
8007             Ilmir Usmanov  <i.usmanov@samsung.com>
8008             Dmitry Bocharnikov  <dmitry.b@samsung.com>
8009             Evgeny Gavrin  <e.gavrin@samsung.com>
8010             Jakub Jelinek  <jakub@redhat.com>
8012         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
8013         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8014         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8015         New function types.
8016         * builtins.c: Include "gomp-constants.h".
8017         (expand_builtin_acc_on_device): New function.
8018         (expand_builtin, is_inexpensive_builtin): Handle
8019         BUILT_IN_ACC_ON_DEVICE.
8020         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
8021         New macros.
8022         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
8023         flag_openmp.
8024         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
8025         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
8026         i386/intelmic-offload.h.
8027         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
8028         to libgomp and its dependencies.
8029         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
8030         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8031         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8032         * config/ia64/hpux.h (LIB_SPEC): Likewise.
8033         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8034         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8035         * doc/generic.texi: Update for OpenACC changes.
8036         * doc/gimple.texi: Likewise.
8037         * doc/invoke.texi: Likewise.
8038         * doc/sourcebuild.texi: Likewise.
8039         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8040         GF_OMP_FOR_KIND_OACC_LOOP.
8041         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
8042         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
8043         GF_OMP_TARGET_KIND_OACC_UPDATE,
8044         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8045         Dump more data.
8046         * gimple.c: Update comments for OpenACC changes.
8047         * gimple.def: Likewise.
8048         * gimple.h: Likewise.
8049         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
8050         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8051         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
8052         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8053         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
8054         appropriate place.
8055         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
8056         * gimplify.c: Include "gomp-constants.h".
8057         Update comments for OpenACC changes.
8058         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
8059         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
8060         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8061         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8062         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8063         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8064         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
8065         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8066         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
8067         OMP_CLAUSE_SEQ.
8068         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
8069         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
8070         OMP_CLAUSE_SET_MAP_KIND.
8071         (gimplify_oacc_cache): New function.
8072         (gimplify_omp_for): Handle OACC_LOOP.
8073         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
8074         OACC_DATA.
8075         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
8076         OACC_EXIT_DATA, OACC_UPDATE.
8077         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
8078         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
8079         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
8080         (gimplify_body): Consider flag_openacc next to flag_openmp.
8081         * lto-streamer-out.c: Include "gomp-constants.h".
8082         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
8083         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
8084         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
8085         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
8086         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
8087         (BUILT_IN_ACC_ON_DEVICE): New builtins.
8088         * omp-low.c: Include "gomp-constants.h".
8089         Update comments for OpenACC changes.
8090         (struct omp_context): Add reduction_map, gwv_below, gwv_this
8091         members.
8092         (extract_omp_for_data, use_pointer_for_field, install_var_field)
8093         (new_omp_context, delete_omp_context, scan_sharing_clauses)
8094         (create_omp_child_function, scan_omp_for, scan_omp_target)
8095         (check_omp_nesting_restrictions, lower_reduction_clauses)
8096         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
8097         Update for OpenACC changes.
8098         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
8099         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
8100         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
8101         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8102         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
8103         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
8104         OMP_CLAUSE_MAP_*.
8105         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8106         Handle GF_OMP_FOR_KIND_OACC_LOOP.
8107         (expand_omp_target, lower_omp_target): Handle
8108         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8109         GF_OMP_TARGET_KIND_OACC_UPDATE,
8110         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
8111         GF_OMP_TARGET_KIND_OACC_DATA.
8112         (pass_expand_omp::execute, execute_lower_omp)
8113         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
8114         flag_openmp.
8115         (offload_symbol_decl): New variable.
8116         (oacc_get_reduction_array_id, oacc_max_threads)
8117         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
8118         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
8119         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
8120         (oacc_gimple_assign, oacc_initialize_reduction_data)
8121         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
8122         functions.
8123         (is_targetreg_ctx): Remove function.
8124         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
8125         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
8126         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8127         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
8128         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
8129         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
8130         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
8131         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
8132         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
8133         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
8134         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
8135         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
8136         * tree-core.h: Update comments for OpenACC changes.
8137         (enum omp_clause_map_kind): Remove.
8138         (struct tree_omp_clause): Change type of map_kind member from enum
8139         omp_clause_map_kind to unsigned char.
8140         * tree-inline.c: Update comments for OpenACC changes.
8141         * tree-nested.c: Likewise.  Include "gomp-constants.h".
8142         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
8143         (convert_tramp_reference_stmt, convert_gimple_call): Update for
8144         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
8145         OMP_CLAUSE_SET_MAP_KIND.
8146         * tree-pretty-print.c: Include "gomp-constants.h".
8147         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
8148         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
8149         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
8150         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
8151         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8152         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
8153         instead of OMP_CLAUSE_MAP_*.
8154         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
8155         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
8156         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8157         * tree-streamer-in.c: Include "gomp-constants.h".
8158         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
8159         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
8160         * tree-streamer-out.c: Include "gomp-constants.h".
8161         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
8162         OMP_CLAUSE_MAP_*.
8163         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
8164         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
8165         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
8166         * tree.c (omp_clause_num_ops): Update accordingly.
8167         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
8168         Likewise.
8169         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
8170         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
8171         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
8172         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
8173         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
8174         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
8175         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
8176         (OMP_CLAUSE_SET_MAP_KIND): New macro.
8177         * varpool.c (varpool_node::get_create): Consider flag_openacc next
8178         to flag_openmp.
8179         * config/i386/intelmic-offload.h: New file.
8180         * config/nvptx/offload.h: Likewise.
8182 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8184         * explow.h: Remove duplicate contents.
8185         * dojump.h: Likewise.
8187 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
8189         * arm.c (arm_xgene_tune): Add default initializer for instruction
8190         fusion.
8192 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
8194         PR ipa/64068
8195         PR ipa/64559
8196         * ipa.c (symbol_table::remove_unreachable_nodes):
8197         Do not put abstract origins into boundary.
8199 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
8201         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
8202         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
8204 2015-01-15  Steve Ellcey  <sellcey@mips.com>
8206         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
8207         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
8208         builtins.def, and chkp-builtins.def.
8210 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
8212         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
8213         ISA 2.7 (POWER8).
8215 2015-01-15  Richard Biener  <rguenther@suse.de>
8217         PR tree-optimization/61743
8218         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
8219         information on PHIs for some simple cases.
8221 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8223         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
8224         Include xgene1.md.
8225         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
8226         * config/arm/arm-cores.def (xgene1): New entry.
8227         * config/arm/arm-tables.opt: Regenerate.
8228         * config/arm/arm-tune.md: Regenerate.
8229         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
8231 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
8233         * tree-if-conv.c: Include hash-map.h.
8234         (aggressive_if_conv): New variable.
8235         (fold_build_cond_expr): Add simplification of non-zero condition.
8236         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
8237         destination block is not always executed.
8238         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
8239         than two predecessors if AGGRESSIVE_IF_CONV is true.
8240         (if_convertible_stmt_p): Fix commentary.
8241         (all_preds_critical_p): New function.
8242         (has_pred_critical_p): New function.
8243         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
8244         BB can have more than two predecessors and all incoming edges can be
8245         critical.
8246         (predicate_bbs): Skip predication for loop exit block, use build2_loc
8247         to compute predicate for true edge.
8248         (find_phi_replacement_condition): Delete this function.
8249         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
8250         Allow interchange PHI arguments if EXTENDED is false.
8251         Change check that block containing reduction statement candidate
8252         is predecessor of phi-block since phi may have more than two arguments.
8253         (phi_args_hash_traits): New helper structure.
8254         (struct phi_args_hash_traits): New type.
8255         (phi_args_hash_traits::hash): New function.
8256         (phi_args_hash_traits::equal_keys): New function.
8257         (gen_phi_arg_condition): New function.
8258         (predicate_scalar_phi): Add handling of phi nodes with more than two
8259         arguments, delete COND and TRUE_BB arguments, insert body of
8260         find_phi_replacement_condition to predicate ordinary phi nodes.
8261         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
8262         delete call of find_phi_replacement_condition and invoke
8263         predicate_scalar_phi with two arguments.
8264         (insert_gimplified_predicates): Add assert that non-predicated block
8265         don't have statements to insert.
8266         (ifcvt_split_critical_edges): New function.
8267         (ifcvt_split_def_stmt): Likewise.
8268         (ifcvt_walk_pattern_tree): Likewise.
8269         (stmt_is_root_of_bool_pattern): Likewise.
8270         (ifcvt_repair_bool_pattern): Likewise.
8271         (ifcvt_local_dce): Likewise.
8272         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
8273         is copy of inner or outer loop force_vectorize field, invoke
8274         ifcvt_split_critical_edges, ifcvt_local_dce and
8275         ifcvt_repair_bool_pattern for aggressive if-conversion.
8277 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
8279         * config/aarch64/aarch64.md: Include xgene1.md.
8280         * config/aarch64/xgene1.md: New file.
8282 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8284         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
8285         xgene1 (APM XGene-1) core definition.
8286         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
8287         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
8288         * doc/invoke.texi: Document -mcpu=xgene1.
8290 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8292         * dojump.h: New header file.
8293         * explow.h: Likewise.
8294         * expr.h: Remove includes.
8295         Move expmed.c prototypes to expmed.h.
8296         Move dojump.c prototypes to dojump.h.
8297         Move alias.c prototypes to alias.h.
8298         Move explow.c prototypes to explow.h.
8299         Move calls.c prototypes to calls.h.
8300         Move emit-rtl.c prototypes to emit-rtl.h.
8301         Move varasm.c prototypes to varasm.h.
8302         Move stmt.c prototypes to stmt.h.
8303         (saved_pending_stack_adjust): Move to dojump.h.
8304         (adjust_address): Move to explow.h.
8305         (adjust_address_nv): Move to emit-rtl.h.
8306         (adjust_bitfield_address): Likewise.
8307         (adjust_bitfield_address_size): Likewise.
8308         (adjust_bitfield_address_nv): Likewise.
8309         (adjust_automodify_address_nv): Likewise.
8310         * explow.c (expr_size): Move to expr.c.
8311         (int_expr_size): Likewise.
8312         (tree_expr_size): Likewise.
8313         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8314         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8315         * genemit.c (main): Generate includes statistics.h, real.h,
8316         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
8317         stmt.h.
8318         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
8319         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
8320         explow.h, emit-rtl.h, stmt.h.
8321         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
8322         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
8323         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
8324         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
8325         emit-rtl.h, varasm.h, stmt.h.
8326         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
8327         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
8328         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
8329         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
8330         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
8331         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
8332         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
8333         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
8334         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
8335         tm.h tree.h varasm.h vec.h wide-int.h.
8336         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8337         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8338         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
8339         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
8340         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
8341         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
8342         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
8343         * loop-iv.c: Likewise.
8344         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
8345         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
8346         statistics.h stmt.h tree.h varasm.h wide-int.h.
8347         * lra-constraints.c: Likewise.
8348         * lra-eliminations.c: Likewise.
8349         * lra-lives.c: Likewise.
8350         * lra-remat.c: Likewise.
8351         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8352         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
8353         statistics.h stmt.h tree.h varasm.h wide-int.h.
8354         * hw-doloop.c: Likewise.
8355         * ira-color.c: Likewise.
8356         * ira-emit.c: Likewise.
8357         * loop-doloop.c: Likewise.
8358         * loop-invariant.c: Likewise.
8359         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8360         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
8361         statistics.h stmt.h tree.h varasm.h wide-int.h.
8362         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
8363         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
8364         statistics.h stmt.h tree.h varasm.h wide-int.h.
8365         * combine-stack-adj.c: Likewise.
8366         * cse.c: Likewise.
8367         * ddg.c: Likewise.
8368         * ifcvt.c: Likewise.
8369         * ira-costs.c: Likewise.
8370         * jump.c: Likewise.
8371         * lra-coalesce.c: Likewise.
8372         * lra-spills.c: Likewise.
8373         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8374         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
8375         stmt.h varasm.h wide-int.h.
8376         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8377         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8378         varasm.h.
8379         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
8380         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
8381         statistics.h stmt.h varasm.h wide-int.h.
8382         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
8383         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
8384         varasm.h wide-int.h.
8385         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
8386         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8387         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
8388         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
8389         statistics.h stmt.h.
8390         * config/tilepro/tilepro.c: Likewise.
8391         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
8392         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
8393         * config/pdp11/pdp11.c: Likewise.
8394         * config/xtensa/xtensa.c: Likewise.
8395         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
8396         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8397         varasm.h.
8398         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8399         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8400         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
8401         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8402         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8403         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
8404         * rtl-chkp.c: Likewise.
8405         * tree-chkp-opt.c: Likewise.
8406         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
8407         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8408         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
8409         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8410         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8411         statistics.h stmt.h.
8412         * tree-vect-data-refs.c: Likewise.
8413         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
8414         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8415         rtl.h statistics.h stmt.h varasm.h.
8416         * internal-fn.c: Likewise.
8417         * ipa-icf-gimple.c: Likewise.
8418         * lto-section-out.c: Likewise.
8419         * tree-data-ref.c: Likewise.
8420         * tree-nested.c: Likewise.
8421         * tree-outof-ssa.c: Likewise.
8422         * tree-predcom.c: Likewise.
8423         * tree-pretty-print.c: Likewise.
8424         * tree-scalar-evolution.c: Likewise.
8425         * tree-ssa-strlen.c: Likewise.
8426         * tree-vect-loop.c: Likewise.
8427         * tree-vect-patterns.c: Likewise.
8428         * tree-vect-slp.c: Likewise.
8429         * tree-vect-stmts.c: Likewise.
8430         * tsan.c: Likewise.
8431         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8432         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
8433         stmt.h.
8434         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
8435         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8436         statistics.h stmt.h varasm.h.
8437         * loop-unroll.c: Likewise.
8438         * ubsan.c: Likewise.
8439         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
8440         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
8441         stmt.h varasm.h.
8442         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8443         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
8444         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
8445         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8446         statistics.h stmt.h.
8447         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
8448         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8449         statistics.h stmt.h varasm.h.
8450         * gimple-match-head.c: Likewise.
8451         * lto-cgraph.c: Likewise.
8452         * lto-section-in.c: Likewise.
8453         * lto-streamer-in.c: Likewise.
8454         * lto-streamer-out.c: Likewise.
8455         * tree-affine.c: Likewise.
8456         * tree-cfg.c: Likewise.
8457         * tree-cfgcleanup.c: Likewise.
8458         * tree-if-conv.c: Likewise.
8459         * tree-into-ssa.c: Likewise.
8460         * tree-ssa-alias.c: Likewise.
8461         * tree-ssa-copyrename.c: Likewise.
8462         * tree-ssa-dse.c: Likewise.
8463         * tree-ssa-forwprop.c: Likewise.
8464         * tree-ssa-live.c: Likewise.
8465         * tree-ssa-math-opts.c: Likewise.
8466         * tree-ssa-pre.c: Likewise.
8467         * tree-ssa-sccvn.c: Likewise.
8468         * tree-tailcall.c: Likewise.
8469         * tree-vect-generic.c: Likewise.
8470         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8471         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
8472         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8473         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
8474         * varasm.c: Likewise.
8475         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8476         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
8477         varasm.h.
8478         * init-regs.c: Likewise.
8479         * ira.c: Likewise.
8480         * omp-low.c: Likewise.
8481         * stack-ptr-mod.c: Likewise.
8482         * tree-ssa-reassoc.c: Likewise.
8483         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8484         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
8485         varasm.h.
8486         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8487         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
8488         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8489         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
8490         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8491         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
8492         * tree-ssa-phiopt.c: Likewise.
8493         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8494         fixed-value.h hashtab.h real.h statistics.h stmt.h.
8495         * config/fr30/fr30.c: Likewise.
8496         * config/frv/frv.c: Likewise.
8497         * expr.c: Likewise.
8498         * final.c: Likewise.
8499         * optabs.c: Likewise.
8500         * passes.c: Likewise.
8501         * simplify-rtx.c: Likewise.
8502         * stmt.c: Likewise.
8503         * toplev.c: Likewise.
8504         * var-tracking.c: Likewise.
8505         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8506         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8507         * lower-subreg.c: Likewise.
8508         * postreload-gcse.c: Likewise.
8509         * ree.c: Likewise.
8510         * reginfo.c: Likewise.
8511         * store-motion.c: Likewise.
8512         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8513         fixed-value.h hashtab.h real.h stmt.h varasm.h.
8514         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8515         fixed-value.h hashtab.h statistics.h stmt.h.
8516         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8517         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8518         * except.c: Likewise.
8519         * explow.c: Likewise.
8520         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8521         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
8522         varasm.h.
8523         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8524         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
8525         * tree-ssa-structalias.c: Likewise.
8526         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8527         fixed-value.h insn-config.h real.h statistics.h.
8528         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8529         fixed-value.h insn-config.h real.h statistics.h stmt.h.
8530         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8531         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8532         * cfgbuild.c: Likewise.
8533         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8534         fixed-value.h real.h rtl.h statistics.h stmt.h.
8535         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8536         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8537         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8538         fixed-value.h real.h statistics.h stmt.h.
8539         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8540         fixed-value.h real.h statistics.h stmt.h varasm.h.
8541         * cprop.c: Likewise.
8542         * modulo-sched.c: Likewise.
8543         * postreload.c: Likewise.
8544         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8545         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
8546         statistics.h stmt.h varasm.h.
8547         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
8548         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8549         rtl.h statistics.h stmt.h varasm.h.
8550         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
8551         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
8552         varasm.h.
8553         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8554         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
8555         varasm.h.
8556         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
8557         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
8558         varasm.h.
8559         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
8560         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8561         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8562         function.h real.h statistics.h stmt.h varasm.h.
8563         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8564         insn-config.h real.h statistics.h stmt.h.
8565         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8566         statistics.h stmt.h.
8567         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
8568         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
8569         statistics.h stmt.h varasm.h.
8570         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
8571         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
8572         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8573         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
8574         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
8575         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8576         statistics.h stmt.h varasm.h.
8577         * ipa-polymorphic-call.c: Likewise.
8578         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
8579         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8580         statistics.h stmt.h.
8581         * config/c6x/c6x.c: Likewise.
8582         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
8583         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8584         statistics.h stmt.h varasm.h.
8585         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
8586         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
8587         stmt.h varasm.h.
8588         * ipa-split.c: Likewise.
8589         * tree-eh.c: Likewise.
8590         * tree-ssa-dce.c: Likewise.
8591         * tree-ssa-loop-niter.c: Likewise.
8592         * tree-vrp.c: Likewise.
8593         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
8594         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
8595         stmt.h.
8596         * config/nds32/nds32-fp-as-gp.c: Likewise.
8597         * config/nds32/nds32-intrinsic.c: Likewise.
8598         * config/nds32/nds32-isr.c: Likewise.
8599         * config/nds32/nds32-md-auxiliary.c: Likewise.
8600         * config/nds32/nds32-memory-manipulation.c: Likewise.
8601         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8602         * config/nds32/nds32-predicates.c: Likewise.
8603         * config/nds32/nds32.c: Likewise.
8604         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
8605         fixed-value.h hashtab.h real.h statistics.h.
8606         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
8607         fixed-value.h hashtab.h real.h statistics.h stmt.h.
8608         * config/arm/arm.c: Likewise.
8609         * config/avr/avr.c: Likewise.
8610         * config/bfin/bfin.c: Likewise.
8611         * config/h8300/h8300.c: Likewise.
8612         * config/i386/i386.c: Likewise.
8613         * config/ia64/ia64.c: Likewise.
8614         * config/iq2000/iq2000.c: Likewise.
8615         * config/m32c/m32c.c: Likewise.
8616         * config/m32r/m32r.c: Likewise.
8617         * config/m68k/m68k.c: Likewise.
8618         * config/mcore/mcore.c: Likewise.
8619         * config/mep/mep.c: Likewise.
8620         * config/mips/mips.c: Likewise.
8621         * config/mn10300/mn10300.c: Likewise.
8622         * config/moxie/moxie.c: Likewise.
8623         * config/pa/pa.c: Likewise.
8624         * config/rl78/rl78.c: Likewise.
8625         * config/rx/rx.c: Likewise.
8626         * config/s390/s390.c: Likewise.
8627         * config/sh/sh.c: Likewise.
8628         * config/sparc/sparc.c: Likewise.
8629         * config/spu/spu.c: Likewise.
8630         * config/stormy16/stormy16.c: Likewise.
8631         * config/v850/v850.c: Likewise.
8632         * config/vax/vax.c: Likewise.
8633         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
8634         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8635         * config/msp430/msp430.c: Likewise.
8636         * predict.c: Likewise.
8637         * value-prof.c: Likewise.
8638         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
8639         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
8640         * config/microblaze/microblaze.c: Likewise.
8641         * config/nios2/nios2.c: Likewise.
8642         * config/rs6000/rs6000.c: Likewise.
8643         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8644         insn-config.h real.h rtl.h statistics.h stmt.h.
8645         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8646         insn-config.h real.h statistics.h stmt.h.
8647         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
8648         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8649         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
8650         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8651         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
8652         fixed-value.h real.h statistics.h stmt.h.
8653         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
8654         fixed-value.h statistics.h stmt.h.
8655         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
8656         stmt.h.
8658 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
8660         * gengtype.c (create_user_defined_type): Workaround
8661         -Wmaybe-uninitialized false positives.
8662         * cse.c (fold_rtx): Likewise.
8663         * loop-invariant.c (gain_for_invariant): Likewise.
8665 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
8667         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
8668         set the memory attributes in all cases but clear MEM_EXPR if need be.
8670 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
8672         PR tree-optimization/64434
8673         * cfgexpand.c (reorder_operands): New function.
8674         (expand_gimple_basic_block): Insert call of reorder_operands if
8675         optimized is true.
8677 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
8679         * config/mips/micromips.md (*swp): Remove explicit parallel.
8680         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
8681         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
8682         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
8683         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
8684         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
8685         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
8686         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
8687         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
8688         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
8689         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
8690         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
8691         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
8692         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
8693         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
8694         (mips_wrdsp): Likewise.
8695         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
8696         parallel.
8697         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
8698         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
8699         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
8700         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
8701         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
8702         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
8703         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
8704         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
8705         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
8707 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
8709         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
8710         (mips_print_operand): Support 'y' to print exact log2 in decimal
8711         of a const_int.
8712         * config/mips/mips.h (ISA_HAS_LSA): New define.
8713         (ISA_HAS_DLSA): Likewise.
8714         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
8715         * config/mips/predicates.md (const_immlsa_operand): New predicate.
8717 2015-01-15  Martin Liska  <mliska@suse.cz>
8719         PR target/64377
8720         * optc-save-gen.awk: Add support for array types.
8722 2015-01-15  Richard Biener  <rguenther@suse.de>
8724         PR middle-end/64365
8725         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
8726         for MEM_REF access functions with the same base can never partially
8727         overlap.
8729 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
8731         * common.opt: New option -fstack-protector-explicit.
8732         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
8733         (stack_protect_decl_phase): Handle stack_protect attribute for
8734         explicit stack protection requests.
8735         (expand_used_vars): Similarly.
8736         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
8737         * doc/extend.texi: Add documentation for "stack_protect" attribute.
8738         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
8740 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
8742         PR target/53988
8743         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
8744         reg-reg copies.
8745         (sh_extending_set_of_reg): New struct.
8746         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
8747         sh_remove_reg_dead_or_unused_notes): New Declarations.
8748         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
8749         sh_find_extending_set_of_reg, sh_split_tst_subregs,
8750         sh_extending_set_of_reg::use_as_extended_reg): New functions.
8751         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
8752         convert to insn_and_split and use new function sh_split_tst_subregs.
8754 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
8756         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
8757         option.
8758         (Optimization Options): Move -fuse-ld documentation to...
8759         (Link Options): ...here.
8761 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
8763         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
8764         offsets.
8765         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
8766         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
8767         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
8768         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
8769         instead of ZR for the memory operand of LL/SC.
8770         (compare_and_swap_12, sync_add<mode>): Likewise.
8771         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
8772         (sync_new_<optab>_12, sync_nand_12): Likewise.
8773         (sync_old_nand_12, sync_new_nand_12): Likewise.
8774         (sync_sub<mode>, sync_old_add<mode>): Likewise.
8775         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
8776         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
8777         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
8778         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
8779         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
8780         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
8781         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
8782         * doc/md.texi (ZC): Update description.
8784 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
8786         * builtins.c (expand_builtin_atomic_exchange): Remove error when
8787         memory model is CONSUME.
8788         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
8789         expand_builtin_atomic_store): Change invalid memory model errors to
8790         warnings.
8791         (expand_builtin_atomic_clear): Change invalid model errors to warnings
8792         and issue warning for CONSUME.
8794 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
8796         * lto-cgraph: Update function comments for
8797         lto_symtab_encoder_encode_*.
8799 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
8801         * Makefile.in (site.exp): Do not set ENABLE_LTO.
8803 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
8805         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
8806         * lto-cgraph.c (select_what_to_stream): Remove argument, use
8807         lto_stream_offload_p instead.
8808         * lto-streamer.h (select_what_to_stream): Remove argument.
8809         * passes.c (ipa_write_summaries): Likewise.
8810         * tree-pass.h (ipa_write_summaries): Likewise.
8812 2015-01-14  Richard Biener  <rguenther@suse.de>
8814         PR tree-optimization/59354
8815         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
8816         groups larger than the slp group size as having gaps.
8818 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
8820         PR middle-end/59448
8821         * builtins.c (get_memmodel): Promote consume to acquire always.
8823 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
8825         PR target/64386
8826         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
8827         V32HImode.
8829 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
8831         PR target/64393
8832         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
8833         Enable AVX512BW.
8834         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
8835         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
8836         AVX512VBMI, as it implies AVX512BW.
8838 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
8840         PR target/64387
8841         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
8842         (vec_unpacks_hi_v16sf): Ditto.
8844 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8846         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
8847         is not available.
8849 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8851         * doc/invoke.texi (mapcs): Mention deprecation.
8852         (mapcs-frame): Likewise.
8854 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8856         PR target/64453
8857         * config/arm/arm.c (callee_saved_reg_p): Define.
8858         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
8859         register is callee saved instead of !call_used_regs[reg].
8860         (thumb1_compute_save_reg_mask): Likewise.
8862 2015-01-14  Hale Wang  <hale.wang@arm.com>
8864         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
8865         Cortex-M7.
8867 2015-01-14  Richard Biener  <rguenther@suse.de>
8869         PR lto/64415
8870         * tree-inline.c (insert_debug_decl_map): Check destination
8871         function MAY_HAVE_DEBUG_STMTS.
8872         (insert_init_debug_bind): Likewise.
8873         (insert_init_stmt): Remove redundant check.
8874         (remap_gimple_stmt): Drop debug stmts if the destination
8875         function has var-tracking assignments disabled.
8877 2015-01-14  Martin Liska  <mliska@suse.cz>
8879         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
8880         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
8882 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8884         PR target/64460
8885         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
8886         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
8888 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
8890         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
8891         level from an ARCH; do not inject the default.
8892         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
8893         MIPS_ISA_LEVEL_SPEC.
8894         (MIPS_ISA_NAN2008_SPEC): Update comment.
8895         (BASE_DRIVER_SELF_SPECS): Likewise.
8896         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
8897         MIPS_DEFAULT_ISA_LEVEL_SPEC.
8898         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
8899         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
8900         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
8902 2015-01-14  Richard Biener  <rguenther@suse.de>
8904         PR tree-optimization/64493
8905         PR tree-optimization/64495
8906         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
8907         assign the proper vectorized PHI to the inner loop exit PHIs.
8909 2015-01-14  Joey Ye  <joey.ye@arm.com>
8911         * config/arm/arm.c (arm_compute_save_reg_mask):
8912         Do not save lr in case of tail call.
8913         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
8915 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
8917         * tree-vrp.c (check_array_ref): Emit more warnings
8918         for warn_array_bounds >= 2.
8919         * common.opt: New option -Warray-bounds=.
8920         * doc/invoke.texi: Document -Warray-bounds=.
8922 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
8924         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
8925         (mforbid-fp-as-gp): Remove.
8926         (mex9): Remove.
8927         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
8928         (nds32_symbol_load_store_p): Remove.
8929         (nds32_fp_as_gp_check_available): Clean up implementation.
8930         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
8931         cases.
8932         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
8933         fp-as-gp and ex9 cases.
8935 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
8937         * tree-profile.c (init_ic_make_global_vars): Drop workaround
8938         for bintuils bug 14342.
8939         (init_ic_make_global_vars): Likewise.
8940         (gimple_init_edge_profiler): Likewise.
8941         (gimple_gen_ic_func_profiler): Likewise.
8943 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8945         * ipa-inline.c (inline_small_functions): Swap the operands in
8946         enum.
8948 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
8950         PR ipa/64481
8951         * ipa-inline-analysis.c (node_growth_cache): Remove.
8952         (initialize_growth_caches): Do not initialize it.
8953         (free_growth_caches): Do not free it.
8954         (do_estimate_growth): Rename to ...
8955         (estimate_growth): ... this one; drop growth cache code.
8956         (growth_likely_positive): Always go the heuristics way.
8957         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
8958         (reset_edge_caches): Do not reset node growth.
8959         (heap_edge_removal_hook): Do not maintain cache.
8960         (inline_small_functions): Likewise; strenghten sanity check.
8961         (ipa_inline): Do not maintain caches.
8962         * ipa-inline.h (node_growth_cache): Remove.
8963         (do_estimate_growth): Remove to ...
8964         (estimate_growth): this one; remove inline version.
8965         (reset_node_growth_cache): Remove.
8967 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
8969         PR ipa/64565
8970         * ipa-inline.c (inline_small_functions): Update callee keys after
8971         resolving speculation
8972         (inline_small_functions): Always check monotonicity of the queue.
8974 2015-01-13  Marek Polacek  <polacek@redhat.com>
8976         PR middle-end/64391
8977         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
8979 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
8981         PR rtl-optimization/64286
8982         * ree.c (combine_reaching_defs): Move part of comment earlier,
8983         remove !SCALAR_INT_MODE_P check.
8984         (add_removable_extension): Don't add vector mode
8985         extensions if all uses of the source register aren't the same
8986         vector extensions.
8988 2015-01-13  Renlin Li  <renlin.li@arm.com>
8990         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
8991         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
8993 2015-01-13  Martin Liska  <mliska@suse.cz>
8995         * ipa-icf.c (sem_function::equals_private): Call new functions
8996         cl_target_option_print_diff and cl_optimization_print_diff.
8997         * optc-save-gen.awk (cl_target_option_print_diff): New function.
8998         (cl_optimization_print_diff): Likewise.
8999         * opth-gen.awk: Likewise.
9001 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9003         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
9004         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
9005         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
9006         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
9007         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
9008         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
9010 2015-01-13  Andrew Pinski  <apinski@cavium.com>
9012         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
9013         instead of src mode.
9015 2015-01-13  Richard Biener  <rguenther@suse.de>
9017         PR lto/64373
9018         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
9019         DECL_CONTEXT.
9021 2015-01-13  Andrew Pinski  <apinski@cavium.com>
9023         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
9024         volatile mems.
9025         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9027 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
9029         PR middle-end/63974
9030         * cfgexpand.c (expand_computed_goto): Don't call
9031         convert_memory_address here.
9033 2015-01-13  Richard Biener  <rguenther@suse.de>
9035         PR tree-optimization/64406
9036         * tree-loop-distibution.c (pass_loop_distribution::execute):
9037         Reset the SCEV hashtable if we distributed anything.
9039 2015-01-13  Richard Biener  <rguenther@suse.de>
9041         PR tree-optimization/64404
9042         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
9043         SLP types for CSEd loads.
9045 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9047         PR tree-optimization/64436
9048         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
9049         merge of two symbolic numbers for a bitwise OR to ...
9050         (perform_symbolic_merge): This. Also fix computation of the range and
9051         end of the symbolic number corresponding to the result of a bitwise OR.
9053 2015-01-13  Richard Biener  <rguenther@suse.de>
9055         PR tree-optimization/64568
9056         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
9057         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
9059 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9061         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
9062         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
9064 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9066         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
9067         target-specific symbol_ref flag.
9068         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
9069         resides in rodata section.
9070         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
9071         (nds32_encode_section_info): New function.
9073 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9075         * config/nds32/nds32.md (call): Use pseudo instruction bal which
9076         clobbers TA_REGNUM if large code model is specified.
9077         (call_register): Likewise.
9078         (call_immediate): Likewise.
9079         (call_value): Likewise.
9080         (call_value_register): Likewise.
9081         (call_value_immediate): Likewise.
9083 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9085         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
9086         (TARGET_CMODEL_MEDIUM): New macro.
9087         (TARGET_CMODEL_LARGE): New macro.
9088         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
9089         code model setting in assembly code.
9091 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9093         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
9094         Remove MASK_GP_DIRECT flag.
9095         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
9096         one of the multilib default options.
9097         * config/nds32/nds32.opt (mgp-direct): Remove.
9098         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
9099         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
9101 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9103         * config/nds32/nds32.opt (mcmodel): Add new option.
9104         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
9105         to describe code model.
9107 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
9109         PR target/64479
9110         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
9112 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9114         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
9115         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
9116         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
9117         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
9118         __builtin_sh_set_fpscr.
9120 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9122         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
9123         after a funtion name just to indicate it is a function.
9124         ([-fsanitize-undefined-trap-on-error]): Likewise.
9125         ([-fdbg-cnt=]): Likewise.
9126         ([-mmemcpy]): Likewise.
9127         ([-mflush-func]): Likewise.
9128         ([-msynci]): Likewise.
9130 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9132         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
9133         example.
9135 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
9137         PR tree-optimization/64563
9138         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
9139         instead of != VR_VARYING.
9141         PR target/64513
9142         * config/i386/i386.c (ix86_expand_prologue): Add
9143         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
9145         PR tree-optimization/64454
9146         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
9147         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
9148         for signed or [0, op1 - 1] for unsigned modulo.
9149         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9150         even if op1 does not satisfy integer_pow2p.
9152         PR other/64370
9153         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
9155 2015-01-12  Jeff Law  <law@redhat.com>
9157         PR target/64461
9158         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
9159         (trunchiqi2, truncsihi2): Similarly.
9161         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
9162         rather than calling F.
9164 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9166         * tsan.c (instrument_expr): Use force_gimple_operand.
9167         Use may_be_nonaddressable_p instead of is_gimple_addressable.
9169 2015-01-12  Richard Biener  <rguenther@suse.de>
9171         PR tree-optimization/64530
9172         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
9173         back dr1.
9175 2015-01-12  Richard Biener  <rguenther@suse.de>
9177         PR middle-end/64357
9178         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
9179         latches properly.
9181 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9183         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
9184         Cortex-A17 tuning parameters.
9185         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
9187 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9189         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
9190         * config/arm/arm.c (arm_macro_fusion_p): New function.
9191         (arm_macro_fusion_pair_p): Likewise.
9192         (TARGET_SCHED_MACRO_FUSION_P): Define.
9193         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
9194         (ARM_FUSE_NOTHING): Likewise.
9195         (ARM_FUSE_MOVW_MOVT): Likewise.
9196         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
9197         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
9198         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
9199         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
9200         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
9201         arm_cortex_a5_tune): Specify fuseable_ops value.
9203 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
9205         PR bootstrap/64561
9206         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
9207         test for PIE with copy reloc.
9208         * configure: Regenerated.
9210 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9212         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
9213         in gen_rtx_REG.
9214         (arm_tls_descseq_addr): Likewise.
9215         (arm_gen_movmemqi): Likewise.
9216         (arm_expand_epilogue_apcs_frame): Likewise.
9217         (arm_expand_epilogue): Likewise.
9218         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
9219         in gen_rtx_REG.
9221 2015-01-12  Martin Liska  <mliska@suse.cz>
9223         PR ipa/64550
9224         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
9225         volatility for correct operands.
9227 2015-01-12  Martin Liska  <mliska@suse.cz>
9229         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9230         that a function is not leaf.
9231         (sem_function::compare_polymorphic_p): Likewise.
9233 2015-01-12  Martin Liska  <mliska@suse.cz>
9235         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9236         that a function is not leaf.
9237         (sem_function::compare_polymorphic_p): Likewise.
9239 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9241         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
9242         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
9243         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
9244         fold-const.h, tree-check.h.
9246 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
9248         PR ipa/63967
9249         PR ipa/64425
9250         * ipa-inline.c (compute_uninlined_call_time,
9251         compute_inlined_call_time): Use counts for extra precision when
9252         needed possible.
9253         (big_speedup_p): Fix formating.
9254         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
9255         (relative_time_benefit): Remove.
9256         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
9257         merge guessed and read profile paths.
9258         (inline_small_functions): Count only !optimize_size functions into
9259         initial size; be more lax about sanity check when profile is used;
9260         be sure to update inlined function profile when profile is read.
9262 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
9264         PR ipa/63470
9265         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
9266         cost when edge becomes direct.
9267         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
9268         is resolved or when introducing new speculation.
9270 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
9272         PR ipa/64551
9273         PR ipa/64552
9274         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
9275         '||' to fix typo issue.
9277         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
9278         accept and return NULL.
9280 2015-01-12  Martin Liska  <mliska@suse.cz>
9282         * cgraph.c (cgraph_edge::remove_callee): Move function to header
9283         file for being inlined.
9284         (cgraph_set_edge_callee): Delete.
9285         (cgraph_edge::redirect_callee): Move function to header file
9286         for being inlined.
9287         (cgraph_edge::make_direct): Use new function.
9288         (cgraph_edge::dump_edge_flags): New function created from
9289         static dump_edge_flags function.
9290         (cgraph_node::dump): Use new function.
9291         (cgraph_edge::verify_count_and_frequency): New function created
9292         from verify_edge_count_and_frequency.
9293         (cgraph_edge::verify_corresponds_to_fndecl): New function created
9294         from verify_edge_corresponds_to_fndecl.
9295         (verify_edge_corresponds_to_fndecl): Delete.
9296         (cgraph_node::verify_node): Use new function.
9297         * cgraph.h (cgraph_edge::set_callee): New function.
9298         (cgraph_edge::dump_edge_flags): Likewise.
9299         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
9301 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
9303         * ipa-utils.c (estimate_function_body_sizes): Do not
9304         free node params when called late with early=true.
9306 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
9308         * doc/md.texi (Instruction Patterns): Rewrite text for
9309         clarity.
9310         (Example): Likewise.
9312 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
9314         * doc/invoke.texi (Option Summary): Break long lines.
9315         [(-fdiagnostics-color)]: Put long literal in @smallexample
9316         instead of inline.
9317         [(-fsanitize-recover)]: Likewise.
9318         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
9319         [(-ffast-math)]: Likewise.
9320         [(--param max-inline-insns-recursive)]: Likewise.
9321         [(--param max-inline-recursive-depth)]: Likewise.
9322         [(-mno-text-section-literals)]: Likewise.
9324 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
9326         * doc/install.texi: Update for libgomp being renamed from "GNU
9327         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
9328         Runtime Library".
9329         * doc/sourcebuild.texi: Likewise.
9331 2015-01-10  Anthony Green  <green@moxielogic.com>
9333         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
9334         mul.x availability for moxiebox configuration.
9336 2015-01-09  Anthony Green  <green@moxielogic.com>
9338         * config/moxie/moxie.md: Tabify assembly output.
9340 2015-01-09  Anthony Green  <green@moxielogic.com>
9342         * config/moxie/moxie.md (CC_REG): Correct register definition.
9344 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
9346         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
9347         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
9348         of log files.
9350 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
9352         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
9354 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
9355             Jakub Jelinek  <jakub@redhat.com>
9357         PR middle-end/64412
9358         * lto-streamer.h (lto_stream_offload_p): New declaration.
9359         * lto-streamer.c (lto_stream_offload_p): New variable.
9360         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
9361         at the same time as section_name_prefix.
9362         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
9363         if lto_stream_offload_p.
9364         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
9365         stream TREE_TARGET_OPTION if lto_stream_offload_p.
9366         (write_ts_function_decl_tree_pointers): Don't
9367         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
9368         * tree-streamer-in.c (unpack_value_fields): Don't stream
9369         TREE_TARGET_OPTION in if ACCEL_COMPILER.
9370         (lto_input_ts_function_decl_tree_pointers): Don't stream
9371         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
9372         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
9373         instead of section_name_prefix string comparisons.
9375 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
9377         PR rtl-optimization/64536
9378         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
9379         tablejumps.
9381 2015-01-09  Michael Collison  <michael.collison@linaro.org>
9383         PR tree-optimization/64322
9384         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
9385         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
9387 2015-01-09  Tom de Vries  <tom@codesourcery.com>
9389         PR rtl-optimization/64539
9390         * regcprop.c (kill_clobbered_values): Factor out of ...
9391         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
9392         instead of note_stores with kill_clobbered_value.
9394 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
9396          * ginclude/unwind-arm-common.h: Revert previous commit.
9398 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
9400         * config.gcc (arm*-*-freebsd*): New configuration.
9401         * config/arm/freebsd.h: New file.
9402         * config.host: Add extra components for arm*-*-freebsd*.
9403         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
9404         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
9406 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9408         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
9409         for -mcpu=e6500.
9410         * config/rs6000/t-rtems: Add e6500 multilibs.
9412 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9414         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
9415         MPC8540.
9417 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9419         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
9420         MULTILIB_EXCEPTIONS.
9422 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9424         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
9425         MULTILIB_EXCEPTIONS.
9427 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9429         * config/arm/t-rtems-eabi: Rename to...
9430         * config/arm/t-rtems: ...this.
9431         * config/arm/rtems-eabi.h: Rename to...
9432         * config/arm/rtems.h: ...this.
9433         * config.gcc (arm*-*-rtems*): Reflect changes above.
9435 2015-01-09  Richard Biener  <rguenther@suse.de>
9437         PR tree-optimization/64410
9438         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
9439         on the LHS.
9440         (execute_update_addresses_taken): Deal with that.
9441         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
9442         loads/stores for complex variables.
9444 2015-01-09  Martin Liska  <mliska@suse.cz>
9446         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
9447         name comparison.
9448         (func_checker::compare_memory_operand): New function.
9449         (func_checker::compare_operand): Split case to newly
9450         added functions.
9451         (func_checker::compare_cst_or_decl): New function.
9452         (func_checker::compare_gimple_call): Identify
9453         memory operands.
9454         (func_checker::compare_gimple_assign): Likewise.
9455         * ipa-icf-gimple.h: New function.
9457 2015-01-09  Martin Liska  <mliska@suse.cz>
9459         PR ipa/64503
9460         * sreal.c (sreal::dump): Change unsigned format to signed for
9461         m_exp value.
9462         (sreal::to_double): Replace exp2 with scalbln.
9464 2015-01-09  Martin Liska  <mliska@suse.cz>
9466         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
9467         * ipa-icf.c (sem_function::equals_private): Add support for target and
9468         (sem_item_optimizer::merge_classes): Remove redundant function
9469         optimization flags comparison.
9470         * tree.h (target_opts_for_fn): New function.
9472 2015-01-09  Tom de Vries  <tom@codesourcery.com>
9474         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
9476 2015-01-09  Kito Cheng  <kito@0xlab.org>
9478         PR rtl-optimization/64348
9479         * lra-constraints.c (split_reg): Fix caller-save store/restore
9480         instruction generation.
9482 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
9484         PR gcov-profile/61790
9485         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
9486         long long.  Fallback to int64_t if host doesn't have long long and
9487         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
9489 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
9491         PR tree-optimization/63989
9492         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
9493         from 1000 to 10000.
9494         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
9495         (get_stridx): If we don't have a record for certain SSA_NAME,
9496         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
9497         constant offset, call get_stridx_plus_constant.
9498         (get_stridx_plus_constant): New function.
9499         (zero_length_string): Don't use get_stridx here.
9501         PR target/55023
9502         PR middle-end/64388
9503         * dse.c (struct insn_info): Mention frame_read set also
9504         before reload for tail calls on some targets.
9505         (scan_insn): Revert 2014-12-22 change.  Set frame_read
9506         also before reload for tail calls if
9507         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
9508         instead of add_non_frame_wild_read for non-const/memset
9509         tail calls after reload.
9511 2015-01-08  Jason Merrill  <jason@redhat.com>
9513         * ubsan.c (do_ubsan_in_current_function): New.
9514         (pass_ubsan::gate): Use it.
9515         * ubsan.h: Declare it.
9516         * convert.c (convert_to_integer): Use it.
9518 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
9520         PR target/64338
9521         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
9522         compare_code when it is unconditionally overwritten afterwards.
9523         Use ix86_reverse_condition instead of reverse_condition.  Don't
9524         change code if *reverse_condition* returned UNKNOWN and don't
9525         swap ct/cf and negate diff in that case.
9527 2015-01-08  Mike Stump  <mikestump@comcast.net>
9529         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
9530         (pass_tsan_O0::gate): Likewise.
9531         * extend.texi (Function Attributes): Add no_sanitize_thread
9532         documentation.
9534 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
9536         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
9537         for registering builtins.
9538         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
9539         add -fopenmp to the argv_obstack used when invoking
9540         compile_for_target.
9542         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
9543         add "-m32" or "-m64" to argv_obstack.
9544         (generate_host_descr_file): Likewise, when invoking host_compiler.
9545         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
9546         ld.
9548 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
9550         * config/sh/sh-mem.cc: Use constant as second operand when emitting
9551         tstsi_t insns.
9553 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
9555         PR target/55212
9556         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
9557         constant load if constant operand fits into I08.
9559 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
9561         PR sanitizer/64336
9562         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
9563         and TREE_THIS_VOLATILE for MEM_REFs.
9564         (build5_stat): Fix up initialization of TREE_READONLY and
9565         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
9567 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9569         PR target/64533
9570         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
9571         of r for the second alternative of the destination operand.
9573 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
9575         PR target/36557
9576         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
9578 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9580         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
9581         keywords.
9582         ([-fivar-visibility], [-fvisibility]): Likewise.
9584 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9586         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
9587         the file where @code, @command, etc is more appropriate.
9589 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
9591         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
9592         of -mrecip= documentation.
9594 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9596         PR target/64505
9597         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
9598         correct reload handler if -m32 -mpowerpc64 is used.
9600 2015-01-06  Tom de Vries  <tom@codesourcery.com>
9602         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
9604 2015-01-08  Christian Bruel  <christian.bruel@st.com>
9606         PR target/64507
9607         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
9609 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9611         PR tree-optimization/63259
9612         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
9613         if optab exists for 16bit byteswap.
9615 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
9617         * opts.c (common_handle_option): Add support for
9618         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
9619         * doc/invoke.texi: Document -fno-sanitize=all,
9620         -f{,no-}sanitize-recover=all.  Document that
9621         -fsanitize=float-cast-overflow is not enabled
9622         by -fsanitize=undefined.  Fix up documentation
9623         of -f{,no-}sanitize-recover.
9625 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
9627         * config.gcc: Add Visium support.
9628         * configure.ac: Likewise.
9629         * configure: Regenerate.
9630         * doc/extend.texi (interrupt attribute): Add Visium.
9631         * doc/invoke.texi: Document Visium options.
9632         * doc/install.texi: Document Visium target.
9633         * doc/md.texi: Document Visium constraints.
9634         * common/config/visium: New directory.
9635         * config/visium: Likewise.
9637 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
9639         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
9640         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
9642 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
9644         * combine.c (combine_validate_cost): Do not count the cost of a
9645         split I2 twice.  Do not display it twice in the dump, either.
9647 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9649         Revert parts of r219199.
9650         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
9651         <inttypes.h>.
9652         ([-Wtraditional]): Restore markup on <limits.h>.
9654 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
9656         PR c++/31397
9657         * doc/invoke.texi: Document -Wsuggest-override.
9659 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
9661         PR rtl-optimization/64287
9662         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
9663         (process_options): Disable flag_ipa_ra if profiling.
9665 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
9667         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
9669 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
9671         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
9672         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
9673         put under #if TARGET_LOOPS guard.
9675 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
9677         * config/i386/i386.c (output_387_binary_op): Use std::swap.
9679 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
9681         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
9682         * rtl.h (refers_to_regno_p): Add overload.
9683         * cse.c: Use it.
9684         * bt-load.c: Likewise.
9685         * combine.c: Likewise.
9686         * df-scan.c: Likewise.
9687         * sched-deps.c: Likewise.
9688         * config/s390/s390.c: Likewise.
9689         * config/m32r/m32r.c: Likewise.
9690         * config/rs6000/spe.md: Likewise.
9691         * config/rs6000/rs6000.c: Likewise.
9692         * config/pa/pa.c: Likewise.
9693         * config/stormy16/stormy16.c: Likewise.
9694         * config/cris/cris.c: Likewise.
9695         * config/arc/arc.md: Likewise.
9696         * config/arc/arc.c: Likewise.
9697         * config/sh/sh.md: Likewise.
9698         * config/sh/sh.c: Likewise.
9699         * config/frv/frv.c: Likewise.
9701 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9703         PR sanitizer/64265
9704         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
9705         call as cleanup of the whole body.
9706         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
9707         * tsan.c (replace_func_exit): New function.
9708         (instrument_func_exit): Moved earlier.
9709         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
9710         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
9711         been found.
9712         (tsan_pass): Don't call instrument_func_exit.
9713         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
9714         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
9715         inlining.
9717         PR sanitizer/64344
9718         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
9719         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
9720         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
9721         if the result is integer_zerop, return NULL_TREE.
9722         * convert.c (convert_to_integer): Pass expr as ARG.
9724         PR tree-optimization/64465
9725         * tree-inline.c (redirect_all_calls): During inlining
9726         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
9727         changed the stmt to a non-throwing call.
9729 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9731         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
9732         etc markup throughout the file.
9734 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9736         Enable experimental TSAN support for Ada.
9737         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
9739 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9741         PR tree-optimization/64494
9742         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
9743         clear SSA_NAME_ANTI_RANGE_P flag.
9745 2015-01-05  Marek Polacek  <polacek@redhat.com>
9747         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
9749 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9751         Update copyright years.
9753         * gcc.c (process_command): Update copyright notice dates.
9754         * gcov-dump.c: Ditto.
9755         * gcov.c: Ditto.
9756         * doc/cpp.texi: Bump @copying's copyright year.
9757         * doc/cppinternals.texi: Ditto.
9758         * doc/gcc.texi: Ditto.
9759         * doc/gccint.texi: Ditto.
9760         * doc/gcov.texi: Ditto.
9761         * doc/install.texi: Ditto.
9762         * doc/invoke.texi: Ditto.
9764         * auto-profile.c, auto-profile.h: Fix up Copyright line.
9766 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
9768         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
9769         verb tense, etc.
9770         ([-fvtable-verify], [-fvtv-debug]): Likewise.
9771         ([-Wabi]): Likewise.
9772         ([-fmessage-length]): Likewise.
9773         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
9774         ([-Wno-discarded-qualifiers]): Likewise.
9775         ([-Wnodiscarded-array-qualifiers]): Likewise.
9776         ([-Wno-virtual-move-assign]): Likewise.
9777         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
9778         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
9779         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
9780         ([-fsanitize-undefined-trap-on-error]): Likewise.
9781         ([-floop-interchange]): Likewise.
9782         ([-ftree-coalesce-inlined-vars]): Likewise.
9783         ([-fvect-cost-model]): Likewise.
9784         ([-flto]): Likewise.
9785         ([--param]): Likewise.
9786         (Spec Files): Likewise.
9787         ([-mstrict-align]): Likewise.
9788         ([-mfix-cortex-a53-835769]): Likewise.
9789         ([-march], [-mtune]): Likewise.
9790         ([-mpic-register]): Likewise.
9791         ([-munaligned-access]): Likewise.
9792         ([-msp8]): Likewise.
9793         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
9794         (AVR Built-in Macros): Likewise.
9795         ([-mpreferred-stack-boundary]): Likewise.
9796         ([-mtune-crtl]): Likewise.
9797         ([-mashf]): Likewise.
9798         ([-mmcu=]): Likewise.
9799         ([-minrt]): Likewise.
9800         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
9801         ([-mupper-regs]): Likewise.
9802         ([-matomic-model]): Likewise.
9803         ([-mdiv]): Likewise.
9804         ([-mzdcbranch]): Likewise.
9805         ([-mdisable-callt]): Likewise.
9806         ([-msoft-float]): Likewise.
9807         ([-m8byte-align]): Likewise.
9808         ([-fstack-reuse]): Likewise.
9810 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9812         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
9813         Fix markup, light copy-editing.
9814         ([-fauto-profile]): Rewrite to fix formatting and content
9815         problems.
9817 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9819         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
9820         Copy-edit description.
9821         ([-fisolate-erroneous-paths-attribute]): Likewise.
9822         * common.opt (fisolate-erroneous-paths-dereference):
9823         Copy-edit description.
9824         (fisolate-erroneous-paths-attribute): Likewise.
9826 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9828         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
9829         tidy grammar.
9831 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9833         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
9834         ([-fvtv-debug]): Likewise.
9835         ([-Wc++-compat]): Likewise.
9836         ([-Wc++11-compat]): Likewise.
9837         ([-Wc++14-compat]): Likewise.
9838         ([-Wno-sized-deallocation]): Likewise.
9839         ([-femit-class-debug-always]): Likewise.
9840         ([-femit-struct-debug-detailed]): Likewise.
9841         ([-fno-keep-inline-dllexport]): Likewise.
9842         ([-fira-algorithm]): Likewise.
9843         ([-fira-region]): Likewise.
9844         ([-flra-remat]): Likewise.
9845         ([-fipa-ra]): Likewise.
9846         ([-fhoist-adjacent-loads]): Likewise.
9847         ([-fisolate-erroneous-paths-dereference]): Likewise.
9848         ([-fisolate-erroneous-paths-attribute]): Likewise.
9849         ([-ftree-switch-conversion]): Likewise.
9850         ([-ftree-tail-merge]): Likewise.
9851         ([-ftree-loop-if-convert]): Likewise.
9852         ([-ftree-loop-if-convert-stores]): Likewise.
9853         ([-ftree-loop-distribution]): Likewise.
9854         ([-ftree-loop-distribute-patterns]): Likewise.
9855         ([-flto-compression-level]): Likewise.
9856         ([-flto-report]): Likewise.
9857         ([-flto-report-wpa]): Likewise.
9858         ([-fuse-linker-plugin]): Likewise.
9859         ([-mfix-cortex-a53-835769]): Likewise.
9860         ([-mno-fix-cortex-a53-835769]): Likewise.
9861         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
9862         explicit listing; add a note to the discussion indicating they
9863         exist.  Reorder table to group similar options.  Add missing
9864         @opindex entries.  Add @need commands throughout the table to
9865         allow it to be split across multiple pages.
9866         ([-m8bit-idiv]): Fix @opindex.
9867         ([-mavx256-split-unaligned-load]): Likewise.
9868         ([-mavx256-split-unaligned-store]): Likewise.
9869         ([-mstack-protector-guard]): Likewise.
9870         ([-mcpu=]): Likewise.
9871         ([-mcpu]): Likewise.
9872         ([-mpointer-size=]): Likewise.
9874 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
9876         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
9877         instead of `m' constraint.  Likewise for unnamed movb comparison
9878         patterns using reg_before_reload_operand predicate.
9879         * config/pa/predicates.md (reg_before_reload_operand): Tighten
9880         predicate to reject register index and LO_SUM DLT memory forms
9881         after reload.
9883 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
9885         * doc/invoke.texi (Option Summary): Fix spelling of
9886         -fdevirtualize-at-ltrans.
9887         ([-fdevirtualize]): Fix markup.
9888         ([-fdevirtualize-speculatively]): Fix typo.
9889         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
9890         implementor-speaky.
9891         * common.opt (fdevirtualize-at-ltrans): Likewise.
9892         * ipa-devirt.c: Fix typos in comments throughout the file.
9893         (ipa_devirt): Fix typos in format strings for dump output.
9895 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
9897         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
9898         discussion of defaults, light copy-editing.
9900 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9902         * tsan.c (instrument_expr): corrected previous checkin.
9904 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9906         Instrument bit field and unaligned accesses for TSAN.
9907         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
9908         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
9909         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
9910         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
9911         unaligned memory regions.
9913 2015-01-01  Anthony Green  <green@moxielogic.com>
9915         * config/moxie/predicates.md (moxie_general_movsrc_operand):
9916         Restrict move source register offsets to 16 bits.
9918 Copyright (C) 2015 Free Software Foundation, Inc.
9920 Copying and distribution of this file, with or without modification,
9921 are permitted in any medium without royalty provided the copyright
9922 notice and this notice are preserved.