Update ChangeLog and version files for release
[official-gcc.git] / gcc / ChangeLog
blobd941bd0b7279c0e8b1decd367ef0db009bc8e204
1 2015-07-16  Release Manager
3         * GCC 5.2.0 released.
5 2015-07-15  Renlin Li  <renlin.li@arm.com>
7         Backport from mainline.
8         2015-07-13  Renlin Li  <renlin.li@arm.com>
10         PR rtl/66556
11         * simplify-rtx.c (simplify_const_relational_operation): Add
12         side_effects_p checks.
14 2015-07-15  Thomas Schwinge  <thomas@codesourcery.com>
16         Backport trunk r225560:
18         2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
20         PR libgomp/65099
21         * config/nvptx/mkoffload.c (main): Create an offload image only in
22         64-bit configurations.
24         Backport trunk r222583:
26         2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
28         PR libgomp/65099
29         * config/nvptx/mkoffload.c (target_ilp32): New variable.
30         (main): Set it depending on "-foffload-abi=[...]".
31         (compile_native, main): Use it to pass "-m32" or "-m64" to the
32         compiler.
34         Backport trunk r223805:
36         2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
38         * builtins.c (expand_builtin_acc_on_device): Mark parameters
39         with ATTRIBUTE_UNUSED.
41         Backport trunk r223801:
43         2015-05-28  Julian Brown  <julian@codesourcery.com>
45         PR libgomp/65742
47         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
48         sequence for !ACCEL_COMPILER.
50 2015-07-14  Matthias Klose  <doko@ubuntu.com>
52         PR target/66840
53         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
55 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
57         PR middle-end/66820
58         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
59         or ORT_TASK contexts.
60         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
61         is non-zero.
63         Backported from mainline
64         2015-07-09  Jakub Jelinek  <jakub@redhat.com>
66         PR middle-end/66633
67         * tree-nested.c (get_static_chain): Or in a flag into
68         info->static_chain_added.
69         (get_frame_field, get_nonlocal_debug_decl): Likewise.
70         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
71         2015-07-01 changes.
72         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
73         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
74         add it to clauses.
76 2015-07-10  Vladimir Makarov  <vmakarov@redhat.com>
78         Backport from mainline
79         2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
81         PR rtl-optimization/66782
82         * lra-int.h (struct lra_insn_recog_data): Add comment about
83         clobbered hard regs for arg_hard_regs.
84         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
85         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
86         Add condition for processing used hard regs.
87         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
88         Process clobbered hard regs.
90 2015-07-10  Richard Biener  <rguenther@suse.de>
92         Backport from mainline
93         2015-07-10  Richard Biener  <rguenther@suse.de>
95         PR tree-optimization/66823
96         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
97         inverted predicate.
99         2015-07-08  Richard Biener  <rguenther@suse.de>
101         PR middle-end/43341
102         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
104         2015-07-08  Richard Biener  <rguenther@suse.de>
106         PR tree-optimization/66794
107         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
108         Free post-dominators.
110 2015-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
112         Backport form mainline
113         2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
115         PR target/66780
116         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
117         change for target/65249.
119 2015-07-09  Iain Sandoe  <iain@codesourcery.com>
121         PR target/66523
122         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label names from
123         preservation.
125 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
127         Backport from mainline r225465
128         2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
130         PR target/65956
131         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
132         alignment attribute, exploring one level down for records and arrays.
134 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
136         Backport from mainline r225461
137         2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
139         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
141 2015-07-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
143         Backport from mainline r224725
144         2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
146         PR target/65914
147         * config/rs6000/predicates.md (altivec_register_operand): Permit
148         virtual stack registers.
149         (vsx_register_operand): Likewise.
150         (vfloat_operand): Likewise.
151         (vint_operand): Likewise.
152         (vlogical_operand): Likewise.
154 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
156         PR target/66114
157         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
158         of register_operand.  Remove constraint.
160 2015-07-03  Jack Howarth  <howarth.at.gcc@gmail.com>
162         PR target/66509
163         * configure.ac: Fix filds and fildq test for 64-bit.
164         * configure: Regenerated.
166 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
168         Backport from mainline.
169         2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
171         PR tree-optimization/66119
172         * toplev.c (process_options): Don't set up default values for
173         the sra_max_scalarization_size_{speed,size} parameters.
174         * tree-sra (analyze_all_variable_accesses): If no values
175         have been set for the sra_max_scalarization_size_{speed,size}
176         parameters, call get_move_ratio to get target defaults.
178 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
180         PR target/37072
181         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
182         is not actually the default on FreeBSD.
184 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
186         Backport from mainline
187         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
189         * config/s390/vx-builtins.md
190         ("vec_scatter_element<mode>_<non_vec_int>")
191         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
192         attribute with bhfgq.
194 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
196         Backport from mainline
197         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
199         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
201 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
203         Backport from mainline
204         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
206         * config/s390/s390-builtin-types.def: Add flag to indicate the
207         options under which the function type is needed.
208         * config/s390/s390-builtins.def: Add flag to indicate the options
209         under which the builtin is enabled.
210         * config/s390/s390-builtins.h: Add flags parameter to macro
211         definitions.
212         (bflags_for_builtin): New function.
213         (flags_for_builtin): Renamed to ...
214         (opflags_for_builtin): ... this.
215         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
216         flags_for_builtin to bflags_for_builtin and
217         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
218         * config/s390/s390.c: Add initialization of bflags_builtin and
219         opflags_builtin arrays.
220         Remove code for flags_builtin.
221         (s390_init_builtins): Only create builtin function types if one of
222         their flags is active.
223         Only create builtins if all of their flags are active.
224         (s390_expand_builtin): Rename flags_for_builtin to
225         opflags_for_builtin.
227 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
229         Backport from mainline
230         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
232         * config/s390/vecintrin.h: Remove internal builtins.
234 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
236         Backport from mainline
237         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
239         * config/s390/s390.c (s390_secondary_reload): Fix check for
240         GENERAL_REGS register class.
242 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
244         Backport from mainline
245         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
247         * config/s390/s390.c (s390_support_vector_misalignment): Call
248         default implementation for !TARGET_VX.
250 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
252         Backport from mainline
253         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
255         * config/s390/s390.c (s390_legitimate_constant_p): Add
256         TARGET_VX check.
258 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
260         Backport from mainline
261         2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
263         * config/s390/s390.c (s390_vector_abi): New variable definition.
264         (s390_check_type_for_vector_abi): New function.
265         (TARGET_ASM_FILE_END): New macro definition.
266         (s390_asm_file_end): New function.
267         (s390_function_arg): Call s390_check_type_for_vector_abi.
268         (s390_gimplify_va_arg): Likewise.
269         * configure: Regenerate.
270         * configure.ac: Check for .gnu_attribute Binutils feature.
272 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
274         Backport from mainline
275         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
277         * config/s390/s390.c (s390_vector_bool_type_p): New function.
278         (s390_invalid_binary_op): New function.
279         (TARGET_INVALID_BINARY_OP): Define macro.
281 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
283         Backport from mainline
284         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
286         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
287         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
288         * config/s390/s390-builtin-types.def: New file.
289         * config/s390/s390-builtins.def: New file.
290         * config/s390/s390-builtins.h: New file.
291         * config/s390/s390-c.c: New file.
292         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
293         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
294         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
295         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
296         prototypes.
297         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
298         Include.
299         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
300         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
301         variable definitions.
302         (s390_const_operand_ok): New function.
303         (s390_expand_builtin): Rewrite.
304         (s390_init_builtins): New function.
305         (s390_handle_vectorbool_attribute): New function.
306         (s390_attribute_table): Add s390_vector_bool attribute.
307         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
308         (s390_branch_condition_mask): Generate masks for new modes.
309         (s390_expand_vec_compare_cc): New function.
310         (s390_mangle_type): Add mangling for vector bool types.
311         (enum s390_builtin): Remove.
312         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
313         efpc builtins.
314         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
315         s390_cpu_cpp_builtins.
316         (REGISTER_TARGET_PRAGMAS): New macro.
317         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
318         (insn_cmp mode attribute): Add new CC modes.
319         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
320         (lcbb): New pattern definition.
321         * config/s390/s390intrin.h: Include vecintrin.h.
322         * config/s390/t-s390: New file.
323         * config/s390/vecintrin.h: New file.
324         * config/s390/vector.md: Include vx-builtins.md.
325         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
326         support.
328 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
330         Backport from mainline
331         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
333         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
334         CCVFHE.
335         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
336         (s390_select_ccmode): Likewise.
337         (s390_canonicalize_comparison): Swap operands if necessary.
338         (s390_expand_vec_compare_scalar): Expand DFmode compare using
339         single element vector instructions.
340         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
341         (s390_branch_condition_mask): Generate CC masks for the new modes.
342         * config/s390/s390.md (v0, vf, vd): New mode attributes.
343         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
344         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
345         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
346         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
347         (*extend<DSF:mode><BFP:mode>2): New insn definition.
348         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
349         (extend<DSF:mode><BFP:mode>2): Turn into expander.
350         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
351         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
352         (sqrt<mode>2): Add vector instruction.
354 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
356         Backport from mainline
357         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
359         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
360         constraints.
361         * config/s390/predicates.md (const0_operand, constm1_operand)
362         (constable_operand): Accept vector operands.
363         * config/s390/s390-modes.def: Add supported vector modes.
364         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
365         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
366         (s390_bytemask_vector_p, s390_expand_vec_strlen)
367         (s390_expand_vec_compare, s390_expand_vcond)
368         (s390_expand_vec_init): Add prototypes.
369         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
370         (s390_vector_mode_supported_p): New function.
371         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
372         (s390_contiguous_bitmask_vector_p): New function.
373         (s390_bytemask_vector_p): New function.
374         (s390_split_ok_p): Vector regs don't work either.
375         (regclass_map): Add VEC_REGS.
376         (s390_legitimate_constant_p): Handle vector constants.
377         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
378         (legitimate_reload_vector_constant_p): New function.
379         (s390_preferred_reload_class): Handle CONST_VECTOR.
380         (s390_reload_symref_address):  Likewise.
381         (s390_secondary_reload): Vector memory instructions only support
382         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
383         (s390_emit_ccraw_jump): New function.
384         (s390_expand_vec_strlen): New function.
385         (s390_expand_vec_compare): New function.
386         (s390_expand_vcond): New function.
387         (s390_expand_vec_init): New function.
388         (s390_dwarf_frame_reg_mode): New function.
389         (print_operand): Handle addresses with 'O' and 'R' constraints.
390         (NR_C_MODES, constant_modes): Add vector modes.
391         (s390_output_pool_entry): Handle vector constants.
392         (s390_hard_regno_mode_ok): Handle vector registers.
393         (s390_class_max_nregs): Likewise.
394         (s390_cannot_change_mode_class): New function.
395         (s390_invalid_arg_for_unprototyped_fn): New function.
396         (s390_function_arg_vector): New function.
397         (s390_function_arg_float): Remove size variable.
398         (s390_pass_by_reference): Handle vector arguments.
399         (s390_function_arg_advance): Likewise.
400         (s390_function_arg): Likewise.
401         (s390_return_in_memory): Vector values are returned in a VR if
402         possible.
403         (s390_function_and_libcall_value): Handle vector arguments.
404         (s390_gimplify_va_arg): Likewise.
405         (s390_call_saved_register_used): Consider the arguments named.
406         (s390_conditional_register_usage): Disable v16-v31 for non-vec
407         targets.
408         (s390_preferred_simd_mode): New function.
409         (s390_support_vector_misalignment): New function.
410         (s390_vector_alignment): New function.
411         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
412         (TARGET_VECTOR_MODE_SUPPORTED_P)
413         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
414         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
415         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
416         (TARGET_VECTOR_ALIGNMENT): Define target macro.
417         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
418         (FIRST_PSEUDO_REGISTER): Increase value.
419         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
420         (VECTOR_REG_P): Define macros.
421         (FIXED_REGISTERS, CALL_USED_REGISTERS)
422         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
423         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
424         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
425         Add vector registers.
426         (CANNOT_CHANGE_MODE_CLASS): Call C function.
427         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
428         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
429         memory.
430         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
431         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
432         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
433         (VR*_REGNUM): New constants.
434         (ALL): New mode iterator.
435         (INTALL): Remove mode iterator.
436         Include vector.md.
437         (movti): Implement TImode moves for VRs.
438         Disable TImode splitter for VR targets.
439         Implement splitting TImode GPR<->VR moves.
440         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
441         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
442         reload<mode>_la_in, reload<mode>_la_out.
443         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
444         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
445         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
446         (mov<mode> SF SD): Prefer lder, lde for loading.
447         Add lrl and strl instructions.
448         Add vector instructions.
449         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
450         Call s390_expand_vec_strlen on z13.
451         (*cc_to_int): Change predicate to nonimmediate_operand.
452         (addti3): Rename to *addti3.  New expander.
453         (subti3): Rename to *subti3.  New expander.
454         * config/s390/vector.md: New file.
456 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
458         Backport from mainline
459         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
461         * common/config/s390/s390-common.c (processor_flags_table): Add
462         z13.
463         * config.gcc: Add z13.
464         * config/s390/s390-opts.h (enum processor_type): Add
465         PROCESSOR_2964_Z13.
466         * config/s390/s390.c (s390_adjust_priority): Check for
467         PROCESSOR_2964_Z13.
468         (s390_reorg): Likewise.
469         (s390_sched_reorder): Likewise.
470         (s390_sched_variable_issue): Likewise.
471         (s390_loop_unroll_adjust): Likewise.
472         (s390_option_override): Likewise. Default to -mvx when available.
473         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
474         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
475         (TARGET_VX_ABI): Define macros.
476         macros.
477         (TARGET_DEFAULT): Add MASK_OPT_VX.
478         * config/s390/s390.md ("cpu" attribute): Add z13.
479         ("cpu_facility" attribute): Add vec.
480         * config/s390/s390.opt (processor_type): Add z13.
481         (mvx): New options.
482         * doc/invoke.texi: Add z13 option for -march.
484 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
486         Backport from mainline
487         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
489         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
491 2015-07-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
493         Backport from mainline
494         2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
496         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
497         alternative_mask to uint64_t.
499 2015-07-02  Jakub Jelinek  <jakub@redhat.com>
501         Backported from mainline
502         2015-06-08  Jakub Jelinek  <jakub@redhat.com>
504         * genattrtab.c (insn_alternatives): Change type from int *
505         to uint64_t *.
506         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
507         (get_attr_value): Change type of num_alt to uint64_t.
508         (compute_alternative_mask): Change return type from
509         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
510         (make_alternative_compare, mk_attr_alt): Change argument type
511         from int to uint64_t.
512         (simplify_test_exp): Change type of i from int to uint64_t.
513         Shift ((uint64_t) 1) instead of 1 up.
514         (main): Adjust oballocvec first argument from int to uint64_t.
515         Shift ((uint64_t) 1) instead of 1 up.
517 2015-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
519         2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
520         PR target/64833
521         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
522         flag_pic is set.
524 2015-07-01  David Malcolm  <dmalcolm@redhat.com>
526         Backport from mainline r225207
527         2015-06-30  David Malcolm  <dmalcolm@redhat.com>
529         * typed-splay-tree.h: New file.
531 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
533         PR middle-end/66633
534         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
535         to true if the function is nested and if not optimizing.
536         (convert_local_omp_clauses): Initialize need_frame to true if the
537         function contains nested functions and if not optimizing.
539 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
541         PR middle-end/66702
542         * omp-low.c (simd_clone_adjust): Handle addressable linear
543         or uniform parameters or non-gimple type uniform parameters.
545 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
547         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
548         -mfix-ut699 is not specified.
549         (leon3_load): Rename into...
550         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
551         is specified.
553 2015-06-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
555         Backport from mainline:
556         2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
558         PR target/66136
559         * config/aarch64/geniterators.sh: Rewrite in awk.
561 2015-06-27  James Greenhalgh  <james.greenhalgh@arm.com>
563         Backport from mainline r224672.
564         2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
566         * config/vax/vax.md: Adjust sign/zero extend patterns to
567         handle SUBREGs in operands[1].
569 2015-06-27  Oleg Endo  <olegendo@gcc.gnu.org>
571         Backport from mainline
572         2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
574         PR target/65979
575         PR target/66611
576         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
577         the replacement insn will work.
579 2015-06-26  Martin Jambor  <mjambor@suse.cz>
581         PR debug/66301
582         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
583         NULL instead of calling dump_enabled_p.
585 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
586             Segher Boessenkool  <segher@kernel.crashing.org>
588         PR target/66412
589         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
590         before doing PUT_MODE or PUT_CODE on operands to avoid
591         in-place RTX modification.
593 2015-06-25  Andreas Tobler  <andreast@gcc.gnu.org>
595         Backport from mainline
596         2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
598         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
599         pie executables.
600         (FBSD_ENDFILE_SPEC): Likewise.
601         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
602         config/freebsd-spec.h.
603         (ENDFILE_SPEC): Likewise.
605 2015-06-25  Kaz Kojima  <kkojima@gcc.gnu.org>
607         Backport from mainline
608         2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
610         PR target/66563
611         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
612         an additional element of the unspec vector.  Modify indices
613         of operands.
614         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
615         * config/sh/sh.c (prepare_move_operands): Pass incremented
616         const_int to gen_GOTaddr2picreg.
617         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
619 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
621         Backport from mainline.
622         2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
623         PR target/63408
624         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
625         for negative numbers.
627 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
629         PR target/66200
630         * config/aarch64/aarch64.c (TARGET_RELAXED_ORDERING): Define.
632 2015-06-24  Renlin Li  <renlin.li@arm.com>
634         Backport from mainline
635         2015-06-24  Renlin Li  <renlin.li@arm.com>
637         * varasm.c (emit_local): Use unsigned int for align variable.
639 2015-06-23  Richard Biener  <rguenther@suse.de>
641         Backport from mainline
642         2015-06-09  Richard Biener  <rguenther@suse.de>
644         PR middle-end/66413
645         * tree-inline.c (insert_init_debug_bind): Unshare value.
647 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
649         PR 65711
650         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
651         '-dynamic-linker' within %{!shared: ...}.
653 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
655         PR bootstrap/63740
656         * lra-lives.c (process_bb_lives): Check insn copying the same
657         reload pseudo and don't create a copy for it.
659 2015-06-22  Richard Biener  <rguenther@suse.de>
661         Backport from mainline
662         2015-06-08  Richard Biener  <rguenther@suse.de>
664         PR tree-optimization/66422
665         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
666         block after inserted gcc_unreachable.
668 2015-06-21  Marek Polacek  <polacek@redhat.com>
670         Backport from mainline
671         2015-06-20  Marek Polacek  <polacek@redhat.com>
673         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
675 2015-06-18  Richard Biener  <rguenther@suse.de>
677         Backport from mainline
678         2015-06-03  Richard Biener  <rguenther@suse.de>
680         PR tree-optimization/66375
681         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
682         add to the evolution before following SSA edges.
684 2015-06-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
686         Backport from mainline r224414.
687         2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
689         * common/config/i386/i386-common.c
690         (OPTION_MASK_ISA_MWAITX_SET): New.
691         (ix86_handle_option): Handle mwaitx.
692         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
693         (x86_64-*-*): Likewise.
694         * config/i386/mwaitxintrin.h: New header.
695         * config/i386/cpuid.h (bit_MWAITX):  Define.
696          * config/i386/driver-i386.c (host_detect_local_cpu): Detect
697         MWAITX support.
698          * config/i386/i386.opt (mwaitx): New.
699         * config/i386/i386-builtin-types.def
700         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
701         * config/i386/i386-c.c: Define __MWAITX__ if needed.
702         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
703         (PTA_MWAITX): New.
704         (ix86_option_override_internal): Handle new option.
705         (processor_alias_table): Added PTA_MWAITX.
706         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
707         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
708         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
709         IX86_BUILTIN_MONITORX  built-ins.
710         * config/i386/i386.h (TARGET_MWAITX): New.
711         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
712         UNSPEC_MONITORX.
713         (mwaitx):  New pattern.
714         (monitorx_<mode>): New pattern.
715         * config/i386/x86intrin.h: Include mwaitxintrin.h.
716         * doc/extend.texi: Document monitorx and mwaitx builtins.
717         * doc/invoke.texi: Document -mmwaitx option.
719 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
721         PR middle-end/66429
722         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
723         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
724         and has_force_vectorize_loops flags from cfun into
725         child_cfun.
726         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
727         if simduid is non-NULL.
728         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
729         * passes.def (pass_simduid_cleanup): Add new pass after loop
730         passes.
731         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
732         indirection from htab argument's type.
733         (shrink_simd_arrays): New function.
734         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
735         Don't call adjust_simduid_builtins if there are no loops.
736         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
737         (pass_simduid_cleanup::execute): New method.
738         (make_pass_simduid_cleanup): New function.
740 2015-06-17  Ilya Enkovich  <ilya.enkovich@intel.com>
742         Backport from mainline r223929.
743         2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
745         PR target/65527
746         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
747         redirection for instrumented calls.
748         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
749         (append_compiler_options): Append -fcheck-pointer-bounds.
750         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
751         (chkp_redirect_edge): New.
752         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
753         (chkp_redirect_edge): New.
755 2015-06-17  Ilya Enkovich  <ilya.enkovich@intel.com>
757         Backport from mainline r224063.
758         2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
760         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
761         remove instumentation thunks calling reachable functions.
762         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
763         * lto/lto-partition.c (privatize_symbol_name_1): New.
764         (privatize_symbol_name): Privatize both decl and orig_decl
765         names for instrumented functions.
766         * cgraph.c (cgraph_node::verify_node): Add transparent
767         transparent alias chain check for instrumented node.
769 2015-06-16  Jim Wilson  <jim.wilson@linaro.org>
771         Backport from mainline
772         2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
774         PR target/66258
775         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
776         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
777         (aarch64_secondary_reload): Likewise
778         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
779         to !TARGET_FLOAT.
780         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
781         Likewise.
783 2015-06-16  Richard Biener  <rguenther@suse.de>
785         Revert
786         2015-06-01  Richard Biener  <rguenther@suse.de>
788         Backport from mainline
789         2015-05-26  Michael Matz  <matz@suse.de>
791         PR middle-end/66251
792         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
793         STMT_VINFO_VEC_STMT, also with SLP.
795         2015-05-22  Richard Biener  <rguenther@suse.de>
797         PR tree-optimization/66251
798         * tree-vect-stmts.c (vectorizable_conversion): Properly
799         set STMT_VINFO_VEC_STMT even for the SLP case.
801 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
803         Backport from mainline:
804         2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
806                 * dbxout.c (xcoff_debug_hooks): Provide a function for
807                 register_main_translation_unit hook.
809 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
811         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
812         CONST_INT for goto.
814 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
816         PR bootstrap/66252
817         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
818         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
819         (*addx_extend_sp32): Fix pasto.
820         (*subx_extend): Rename into...
821         (*subx_extend_sp32): ...this.
822         (*adddi3_extend_sp32): Add earlyclobber.
823         (*subdi3_insn_sp32): Likewise.
824         (*subdi3_extend_sp32): Likewise.
825         (*and_not_di_sp32): Likewise.
826         (*or_not_di_sp32): Likewise.
827         (*xor_not_di_sp32): Likewise.
828         (*negdi2_sp32): Likewise.
829         (*one_cmpldi2_sp32): Likewise.
831 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
833         * debug.h (struct gcc_debug_hooks): Add a
834         register_main_translation_unit hook.
835         * debug.c (do_nothing_debug_hooks): Provide a function for this
836         new hook.
837         * dbxout.c (dbx_debug_hooks): Likewise.
838         * sdbout.c (sdb_debug_hooks): Likewise.
839         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
840         * dwarf2out.c (main_translation_unit): New global variable.
841         (dwarf2out_register_main_translation_unit): New function
842         implementing the new hook.
843         (dwarf2_debug_hooks): Assign
844         dwarf2out_register_main_translation_unit to this new hook.
845         (dwarf2out_init): Associate any main translation unit to
846         comp_unit_die ().
848 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
850         PR target/66473
851         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
852         to prepare mask operand for AVX512 modes.
854 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
856         Backport from mainline:
857         2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
859         PR target/66474
860         * doc/md.texi (Machine Constraints): Document that on the PowerPC
861         if you use a constraint that targets a VSX register, you must use
862         %x<n> in the template.
864 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
866         PR target/66470
867         * config/i386/i386.c (ix86_split_long_move): For collisions
868         involving direct tls segment refs, move the UNSPEC_TP possibly
869         wrapped in ZERO_EXTEND out of the address for lea, to each of
870         the memory loads.
872 2015-06-08  Uros Bizjak  <ubizjak@gmail.com>
874         Backport from mainline:
875         2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
877         PR target/66275
878         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
879         to determine current function ABI.
880         (ix86_function_value_regno_p): Ditto.
882 2015-06-08  Tom de Vries  <tom@codesourcery.com>
884         backport from mainline:
885         2015-06-08  Tom de Vries  <tom@codesourcery.com>
887         PR rtl-optimization/66444
888         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
889         call_used_regs.
891 2015-06-08  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
893         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
895 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
897         PR bootstrap/66319
898         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
899         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
900         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
901         later.
902         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
903         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
904         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
905         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
906         and non iso if unix2003.
908 2015-06-03  Richard Biener  <rguenther@suse.de>
910         Backport from mainline
911         2015-06-02  Richard Biener  <rguenther@suse.de>
913         PR debug/65549
914         * dwarf2out.c (lookup_context_die): New function.
915         (resolve_addr): Avoid forcing a full DIE for the
916         target of a DW_TAG_GNU_call_site during late compilation.
917         Instead create a stub DIE without a type if we have a
918         context DIE present.
920         2015-06-01  Richard Biener  <rguenther@suse.de>
922         PR tree-optimization/66280
923         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
924         def-use walking.
926         2015-05-27  Richard Biener  <rguenther@suse.de>
928         PR tree-optimization/66272
929         Revert parts of
930         2014-08-15  Richard Biener  <rguenther@suse.de>
932         PR tree-optimization/62031
933         * tree-data-ref.c (dr_analyze_indices): Do not set
934         DR_UNCONSTRAINED_BASE.
935         (dr_may_alias_p): All indirect accesses have to go the
936         formerly DR_UNCONSTRAINED_BASE path.
937         * tree-data-ref.h (struct indices): Remove
938         unconstrained_base member.
939         (DR_UNCONSTRAINED_BASE): Remove.
941         2015-05-21  Richard Biener  <rguenther@suse.de>
943         PR c++/66211
944         * match.pd: Guard pattern optimzing (int)(float)int
945         conversions to apply only on GIMPLE.
947         2015-05-13  Richard Biener  <rguenther@suse.de>
949         PR tree-optimization/66123
950         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
951         a taken edge.
953 2015-06-02  Renlin Li  <renlin.li@arm.com>
955         Backport from mainline
956         2015-04-30  Renlin Li  <renlin.li@arm.com>
958         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
959         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
961 2015-06-02  Marek Polacek  <polacek@redhat.com>
963         Backport from mainline
964         2015-06-02  Marek Polacek  <polacek@redhat.com>
966         PR middle-end/66345
967         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
968         get_maxval_strlen does not produce an INTEGER_CST.
970 2015-06-02  Alan Modra  <amodra@gmail.com>
972         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
973         2014-08-11 change.
975 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
977         Backport from mainline
978         2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
980         PR target/66215
981         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
982         with -mhotpatch=.
984 2015-06-01  Richard Biener  <rguenther@suse.de>
986         Backport from mainline
987         2015-05-26  Michael Matz  <matz@suse.de>
989         PR middle-end/66251
990         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
991         STMT_VINFO_VEC_STMT, also with SLP.
993         2015-05-22  Richard Biener  <rguenther@suse.de>
995         PR tree-optimization/66251
996         * tree-vect-stmts.c (vectorizable_conversion): Properly
997         set STMT_VINFO_VEC_STMT even for the SLP case.
999 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1001         * config/nios2/linux.h (CPP_SPEC): Define.
1003 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1005         * config/microblaze/linux.h (CPP_SPEC): Define.
1007 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
1009         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
1010         -pthread is specified.
1012 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
1014         PR target/66148
1015         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
1016         REG_EQUAL note when doing insert.
1018 2015-05-27  Richard Biener  <rguenther@suse.de>
1020         Backport from mainline
1021         2015-05-12  Richard Biener  <rguenther@suse.de>
1023         PR tree-optimization/66101
1024         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
1025         fixup if we turn a loop exit edge to a fallthru edge.
1027 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
1029         PR target/65979
1030         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
1031         take into account the case that operands[1] and operands[2]
1032         are the same register.
1034 2015-05-22  Jakub Jelinek  <jakub@redhat.com>
1036         Backported from mainline
1037         2015-05-21  Jakub Jelinek  <jakub@redhat.com>
1039         PR tree-optimization/66233
1040         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
1041         Simplify.
1043         2015-05-19  Jakub Jelinek  <jakub@redhat.com>
1045         PR middle-end/66199
1046         * tree.h (OMP_TEAMS_COMBINED): Define.
1047         * gimplify.c (enum gimplify_omp_var_data): Add
1048         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
1049         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
1050         (omp_notice_variable): Accept both ORT_TEAMS
1051         and ORT_COMBINED_TEAMS.  Don't recurse if
1052         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
1053         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
1054         GOVD_FIRSTPRIVATE.
1055         (omp_no_lastprivate): New function.
1056         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
1057         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
1058         notice_outer and set appropriate bits, otherwise make
1059         sure default(none) combined constructs won't complain.
1060         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
1061         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
1062         omp_no_lastprivate either remove the clause or turn it
1063         into OMP_CLAUSE_PRIVATE.
1064         (gimplify_omp_for): Fix up handling of implicit
1065         lastprivate or linear iterators.
1066         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
1067         ORT_COMBINED_TEAMS.
1068         * omp-low.c (lower_omp_for_lastprivate): For combined
1069         for simd use fd.loop.n2 from the for rather than simd.
1071         2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1073         PR middle-end/66133
1074         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1075         make sure it is never noreturn, even when the task body does not
1076         return.
1077         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1078         right before GIMPLE_OMP_RETURN.
1079         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1080         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
1081         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1083 2015-05-21  Sandra Loosemore  <sandra@codesourcery.com>
1085         Backport from mainline r223418:
1086         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
1087         to build a biarch toolchain again.
1089 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
1091         Backport from mainline r223471
1092         2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
1094         PR middle-end/66221
1095         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
1096         build_distinct_type_copy to copy bounds.
1098 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
1100         PR target/66174
1101         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
1102         QImode inner modes for TARGET_AVX512BW.  Force mask operand
1103         to a register for AVX512F modes.
1105 2015-04-16  Jan Hubicka  <hubicka@ucw.cz>
1107         PR target/66047
1108         * i386.c (ix86_function_sseregparm): Only return -1 if local function
1109         with implied regparm is called from -mno-sse function.
1110         (init_cumulative_args): Output error if ix86_function_sseregparm
1111         return -1 and SSE register would be needed.
1112         (function_arg_advance_32): Likewise.
1113         (function_arg_32): Likewise.
1114         * i386.h (ix86_args): Add decl field.
1116 2015-04-16  Jan Hubicka  <hubicka@ucw.cz>
1118         PR target/66047
1119         * i386.c (ix86_function_sseregparm): Only return -1 if local function
1120         with implied regparm is called from -mno-sse function.
1121         (init_cumulative_args): Output error if ix86_function_sseregparm
1122         return -1 and SSE register would be needed.
1123         (function_arg_advance_32): Likewise.
1124         (function_arg_32): Likewise.
1125         * i386.h (ix86_args): Add decl field.
1126         * gcc.target/i386/pr66047.c: New testcase.
1128 2015-04-16  Jan Hubicka  <hubicka@ucw.cz>
1130         PR ipa/65873
1131         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
1132         inlines across optimization boundary; be tolerant about COMDAT;
1133         allow inlining across -fstrict-aliasing boundary.
1135 2015-05-16  Segher Boessenkool  <segher@kernel.crashing.org>
1137         Backport from mainline
1138         2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1140         PR rtl-optimization/30967
1141         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1142         destination mode for the cost of scc patterns.
1144 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
1146         PR target/66140
1147         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
1148         replacements in memory addresses.
1149         (get_unaligned_address): Ditto.
1151 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1153         Backport from mainline
1154         2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1156         PR target/65955
1157         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
1158         REG before taking its REGNO.
1160 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1162         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
1163         and zEC12_simple_fp.
1164         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
1165         to 1.
1167 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1169         Backport from mainline
1170         2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1172         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
1173         Increase to 128.
1174         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
1175         at '.'.  Assert that there's enough space for everything.
1177 2015-05-12  Yvan Roux  <yvan.roux@linaro.org>
1179         Backport from mainline.
1180         2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
1182         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
1183         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
1184         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
1185         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
1186         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
1187         * configure: Regenerate.
1188         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
1189         * doc/install.texi (aarch64*-*-*): Document new
1190         --enable-fix-cortex-a53-843419 option.
1191         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
1192         and -mno-fix-cortex-a53-843419 options.
1194 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
1196         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
1197         when looking for memory references.
1199 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
1201         PR target/65780
1202         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
1203         default_binds_local_p_2.
1204         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
1205         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
1207 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
1209         PR target/66015
1210         * config/alpha/alpha.c (alpha_override_options_after_change): New.
1211         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
1212         (alpha_override_options): Move align_loops, align_jumps and
1213         align_functions handling into alpha_override_options_after_change.
1215 2015-05-06  Uros Bizjak  <ubizjak@gmail.com>
1217         PR target/65990
1218         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
1219         if rep_8byte stringop strategy was specified for 32-bit target.
1221 2015-05-06  Christian Bruel  <christian.bruel@st.com>
1223         PR target/66015
1224         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
1225         align_jumps, align_functions into aarch64_override_options_after_change.
1227 2015-05-05  Peter Bergner  <bergner@vnet.ibm.com>
1229         Backport from mainline.
1230         2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
1232         PR target/64579
1233         * config/rs6000/htm.md: Remove all define_expands.
1234         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
1235         UNSPECV_HTM_TABORTWCI): Remove.
1236         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
1237         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
1238         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
1239         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
1240         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
1241         tabortwci_internal): Remove define_insns.
1242         (tabort<wd>c, tabort<wd>ci): New define_insns.
1243         (tabort): Use gpc_reg_operand.
1244         (tcheck): Remove operand.
1245         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
1246         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
1247         expected value.
1248         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
1249         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
1250         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
1251         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
1252         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
1253         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
1254         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
1255         (tcheck): Remove builtin argument.
1256         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
1257         not TARGET_64BIT.
1258         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
1259         tabortdc and tabortdci builtins when not in 64-bit mode.
1260         Modify code to handle the loss of the HTM define_expands.
1261         Emit code to copy the CR register to TARGET.
1262         (htm_init_builtins): Modify code to handle the loss of the HTM
1263         define_expands.
1264         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
1265         (RS6000_BTC_64BIT): Likewise.
1266         (RS6000_BTC_CR): New macro.
1267         * doc/extend.texi: Update documentation for htm builtins.
1269 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
1271         PR tree-optimization/65984
1272         * ubsan.c: Include tree-cfg.h.
1273         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
1274         stmt_could_throw_p test, rename can_throw variable to ends_bb.
1276         * Makefile.in (PATCHLEVEL_c): New variable.
1277         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
1278         expand the same way as if DEVPHASE_c was non-empty.
1280 2015-05-04  Kai Tietz  <ktietz@redhat.com>
1282         Backmerge from trunk.
1284         PR lto/65559
1285         * lto-wrapper.c (run_gcc): Open filename
1286         in binary-mode.
1288 2015-04-30  Paolo Carlini  <paolo.carlini@oracle.com>
1290         PR c++/65801
1291         * doc/invoke.texi ([-Wnarrowing]): Update.
1293 2015-04-30  Alan Modra  <amodra@gmail.com>
1295         PR target/65408
1296         PR target/58744
1297         PR middle-end/36043
1298         * calls.c (load_register_parameters): Don't load past end of
1299         mem unless suitably aligned.
1301 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
1303         PR tree-optimization/65875
1304         * tree-vrp.c (update_value_range): If in is_new case setting
1305         old_vr to VR_VARYING, also set new_vr to it.  Remove
1306         old_vr->type == VR_VARYING test.
1307         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
1308         SSA_PROP_INTERESTING if update_value_range returned true,
1309         but new range is VR_VARYING.
1311 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
1313         Backport from 2015-04-27 trunk r222459.
1315         PR target/65296
1316         PR target/65895
1317         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
1318         Add hint how to use own spec file.
1320 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1322         Backport from mainline
1323         2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1325         PR target/65849
1326         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
1327         save to independent variables use the Save attribute.  This will
1328         allow these options to be modified with the #pragma/attribute
1329         target support.
1330         (-mallow-movmisalign): Likewise.
1331         (-mallow-df-permute): Likewise.
1332         (-msched-groups): Likewise.
1333         (-malways-hint): Likewise.
1334         (-malign-branch-targets): Likewise.
1335         (-mvectorize-builtins): Likewise.
1336         (-msave-toc-indirect): Likewise.
1338         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
1339         can be set via the #pragma/attribute target support.
1340         (rs6000_opt_vars): Likewise.
1341         (rs6000_inner_target_options): If VSX was set, also set
1342         -mno-avoid-indexed-addresses.
1344 2015-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1346         Backport from mainline r222385
1347         2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1349         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
1350         asterisk from name so this can be generated directly.
1351         (*altivec_stvx_<mode>_internal): Likewise.
1352         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
1353         that this is never called during or after reload/lra.
1354         (rs6000_frame_related): Remove split_reg
1355         argument and logic that references it.
1356         (emit_frame_save): Remove last parameter from call to
1357         rs6000_frame_related.
1358         (rs6000_emit_prologue): Remove last parameter from eight calls to
1359         rs6000_frame_related.  Force generation of stvx instruction for
1360         Altivec register saves.  Remove split_reg handling, which is no
1361         longer needed.
1362         (rs6000_emit_epilogue):  Force generation of lvx instruction for
1363         Altivec register restores.
1365 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
1367         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
1368         Mark operand1 commutative.
1370 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1372         Backport from mainline r222362
1373         2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1375         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
1376         TARGET_CRYPTO to TARGET_P8_VECTOR>
1377         (crypto_vpermxor_<mode>): Likewise.
1378         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
1379         (BU_CRYPTO_3A): Likewise.
1380         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
1381         (BU_CRYPTO_OVERLOAD_3A): New #define.
1382         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
1383         (VPMSUMH): Likewise.
1384         (VPMSUMW): Likewise.
1385         (VPMSUMD): Likewise.
1386         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
1387         (VPERMXOR_V4SI): Likewise.
1388         (VPERMXOR_V8HI): Likewise.
1389         (VPERMXOR_V16QI): Likewise.
1390         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
1391         BU_CRYPTO_OVERLOAD_2A.
1392         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
1393         BU_CRYPTO_OVERLOAD_3A.
1394         * config/rs6000/rs6000.opt (mcrypto): Change description of
1395         option.
1397         Backport from mainline r222362
1398         2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1400         * config/rs6000/rs6000.opt (mcrypto): Change option description to
1401         match category changes in ISA 2.07B.
1403 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1405         Backport from mainline r222351
1406         2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1408         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
1409         adjustments.
1410         (insn_is_swappable_p): Return 1 for a convert from double to
1411         single precision when all of its uses are splats of BE element
1412         zero.
1414 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1416         Backport from mainline r222349
1417         2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1419         PR target/65456
1420         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
1421         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
1422         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
1423         option.
1424         (rs6000_builtin_mask_for_load): Return 0 for targets with
1425         efficient unaligned VSX accesses so that the vectorizer will use
1426         direct unaligned loads.
1427         (rs6000_builtin_support_vector_misalignment): Always return true
1428         for targets with efficient unaligned VSX accesses.
1429         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
1430         stores on targets with efficient unaligned VSX accesses is almost
1431         always the same as the cost of an aligned load or store, so model
1432         it that way.
1433         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
1434         unaligned vectors if we have efficient unaligned VSX accesses.
1435         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
1436         undocumented option.
1438 2015-04-23  Vladimir Makarov  <vmakarov@redhat.com>
1440         Backport from trunk r222223.
1442         2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1444         PR rtl-optimization/65805
1445         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
1446         Don't use difference of offset and previous offset if
1447         update_sp_offset is non-zero.
1448         (eliminate_regs_in_insn): Ditto.
1449         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
1450         lra_eliminate_regs_1 call.
1451         * lra-constraints.c (get_equiv_with_elimination): Ditto.
1453 2015-04-22  Georg-Johann Lay  <avr@gjlay.de>
1455         Backport from trunk r222179.
1457         2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
1459         PR target/65296
1460         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
1461         to new AVR-LibC file layout (bug #44574).
1462         (*avrlibc_devicelib): Same.
1463         * config/avr/avr-mcus.def: Adjust comments.
1464         * config/avr/avr.opt (nodevicelib): Adjust help.
1466 2015-04-22  Jakub Jelinek  <jakub@redhat.com>
1468         * BASE-VER: Set to 5.1.1.
1470 2015-04-22  Release Manager
1472         * GCC 5.1.0 released.
1474 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
1476         PR debug/65807
1477         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
1479 2015-04-18  Gerald Pfeifer  <gerald@pfeifer.com>
1481         * doc/plugins.texi: Rewrite first introductory paragraph.
1483 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1485         PR target/65780
1486         * config/i386/i386.c (ix86_binds_local_p): Define only if
1487         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
1489 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1490             Jakub Jelinek  <jakub@redhat.com>
1492         PR target/65787
1493         * config/rs6000/rs6000.c (rtx_is_swappable_p): Remove previous
1494         fix; ensure that a subsequent SH_NONE operand does not overwrite
1495         an existing *special value.
1497 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1499         PR target/65780
1500         * output.h (default_binds_local_p_3): New.
1501         * varasm.c (default_binds_local_p_3): Make it public.  Take an
1502         argument to indicate if common symbol may be local.  If common
1503         symbol may be local, treat non-external variable as defined
1504         locally.
1505         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
1506         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
1507         * config/i386/i386.c (ix86_binds_local_p): New.
1508         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
1509         ix86_binds_local_p.
1511 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1513         PR target/65787
1514         * config/rs6000/rs6000.c (rtx_is_swappable_p): Handle case where
1515         vec_extract operation is wrapped in a PARALLEL with a CLOBBER.
1516         (adjust_extract): Likewise.
1518 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
1520         PR debug/65771
1521         * dwarf2out.c (loc_list_from_tree): Return NULL
1522         for DEBUG_EXPR_DECL.
1524 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
1526         PR ipa/65765
1527         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
1528         and GIMPLE_PREDICT use break instead of return true. For
1529         GIMPLE_EH_DISPATCH, compare dispatch region.
1531 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
1533         PR rtl-optimization/65761
1534         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
1535         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
1537 2015-04-13  Jan Hubicka  <hubicka@ucw.cz>
1538             Gerald Pfeifer  <gerald@pfeifer.com>
1540         * doc/contrib.texi (Contributors): Add Martin Jambor and
1541         Michael Matz.
1543 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
1545         * BASE-VER: Set to 5.0.1.
1546         * DEV-PHASE: Set to prerelease.
1548         PR tree-optimization/65747
1549         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
1550         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
1552 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
1554         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
1555         sentence.  Improve grammar.
1557 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
1559         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
1561 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
1563         PR ipa/65743
1564         * ipa-inline-transform.c (speculation_removed): Remove static var.
1565         (check_speculations): New function.
1566         (clone_inlined_nodes): Do not check spculations.
1567         (inline_call): Call check_speculations.
1568         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
1569         consider non-invariants.
1571 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
1572             Martin Liska  <mliska@suse.cz>
1574         PR ipa/65722
1575         * ipa-icf.c (sem_item::compare_cgraph_references): function and
1576         variable can not match.
1577         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
1578         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
1580 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
1582         PR tree-optimization/65735
1583         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
1584         Remove visited_phis argument, add visited_bbs, avoid recursing into the
1585         same bb rather than just into the same phi node.
1586         (thread_through_normal_block): Adjust caller.
1588 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
1590         * doc/contrib.texi (Contributors): Add Ira Rosen.
1592 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
1594         * gcov.c (find_source): Fix miswording in error message.
1595         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
1596         (ix86_expand_sse_comi_round): Fix typo in error message.
1598 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
1600         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
1602 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
1604         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
1606 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
1608         PR target/65710
1609         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
1610         Print bad_spills_num and insn_pseudos_num.
1612 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1614         PR target/65694
1615         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
1616         when creating +1 values for SImode.
1618 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
1620         PR target/65729
1621         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
1622         assert.
1624 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
1625             Iain Sandoe  <iain@codesourcery.com>
1627         PR target/65351
1628         * configure: Regenerate.
1630 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
1632         PR target/65671
1633         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
1635 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
1637         * doc/contrib.texi (Contributors): Add John Marino.
1639 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
1641         PR tree-optimization/65709
1642         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
1643         TREE_TYPE (TREE_TYPE (t)).
1645 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
1647         PR target/65710
1648         * lra-int.h (lra_bad_spill_regno_start): New.
1649         * lra.c (lra_bad_spill_regno_start): New.
1650         (lra): Set up lra_bad_spill_regno_start.  Set up
1651         lra_constraint_new_regno_start unconditionally.
1652         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
1653         spill preferences.
1655 2015-04-09  Marek Polacek  <polacek@redhat.com>
1656             Jakub Jelinek  <jakub@redhat.com>
1658         PR middle-end/65554
1659         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
1660         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
1661         of STRIP_NOPS.
1663 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
1665         PR rtl-optimization/65693
1666         * combine.c (is_parallel_of_n_reg_sets): Move outside of
1667         #ifndef HAVE_cc0.
1669 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
1671         PR target/65296
1672         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
1673         device specs file if "device-specs%s" didn't resolve to a path.
1675 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
1677         PR target/65676
1678         * config/i386/i386.c (fixup_modeless_constant): New.
1679         (ix86_expand_args_builtin): Fixup modeless constant operand.
1680         (ix86_expand_round_builtin): Ditto.
1681         (ix86_expand_special_args_builtin): Ditto.
1682         (ix86_expand_builtin): Ditto.
1684 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
1686         PR target/65693
1687         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
1688         any pow2 integer in between 2 and 0x80000000U inclusive.
1690 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
1692         PR rtl-optimization/65693
1693         * combine.c (is_parallel_of_n_reg_sets): Change first argument
1694         from an rtx_insn * to an rtx.
1695         (try_combine): Adjust both callers.  Use it once more.
1697 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
1699         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
1700         (chkp_make_static_const_bounds): Search existing
1701         symbol by assembler name.  Use make_decl_one_only.
1702         (chkp_get_zero_bounds_var): Remove node search which
1703         is now performed in chkp_make_static_const_bounds.
1704         (chkp_get_none_bounds_var): Likewise.
1706 2015-04-08  Michael Witten  <mfwitten@gmail.com>
1708         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
1709         to an example.
1711 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1713         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
1715 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
1717         * doc/extend.texi (__sync Builtins): Fix grammar.
1719 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1721         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
1723 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1725         * varasm.c (emit_local): Move definition of align.
1727 2015-04-08  Julian Brown  <julian@codesourcery.com>
1729         * config/nvptx/mkoffload.c (process): Support variable mapping.
1731 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
1733         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
1734         alpha_links **.
1735         (alpha_write_one_linkage): Correct typo.
1737 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
1739         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
1741 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
1743         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
1745 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
1747         * tree-chkp.h (chkp_insert_retbnd_call): New.
1748         * tree-chkp.c (chkp_insert_retbnd_call): New.
1749         * ipa-split.c (insert_bndret_call_after): Remove.
1750         (split_function): Use chkp_insert_retbnd_call.
1751         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
1752         bounds for instrumented functions.
1754 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
1756         PR ipa/65540
1757         * calls.c (initialize_argument_information): When producing tail
1758         call also turn SSA_NAMES passed by references to original PARM_DECLs
1760 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
1762         PR target/65648
1763         * lra-remat.c (do_remat): Process input and non-input insn
1764         registers separately.
1766 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
1768         PR debug/65678
1769         * valtrack.c (debug_lowpart_subreg): New function.
1770         (dead_debug_insert_temp): Use it.
1772         PR middle-end/65680
1773         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
1774         into signed HOST_WIDE_INT the same as negative bit_offset.
1776 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1778         * ipa-comdats.c (ipa_comdats): Visit all thunks
1779         to set proper comdat group.
1781 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1783         PR target/65489
1784         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
1785         on constants for NEON VSTRUCT modes.
1787 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
1788             Iain Sandoe  <iain@codesourcery.com>
1790         PR target/65351
1791         * configure: Regenerate.
1793 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1795         PR target/65614
1796         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
1797         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
1798         that LFD is used to load double constants instead of LFS.  Add
1799         defaults for all costs structures.  Add comments for missing
1800         initialization fields.
1801         (size32_cost): Likewise.
1802         (size64_cost): Likewise.
1803         (rs64a_cost): Likewise.
1804         (mpccore_cost): Likewise.
1805         (ppc403_cost): Likewise.
1806         (ppc405_cost): Likewise.
1807         (ppc440_cost): Likewise.
1808         (ppc476_cost): Likewise.
1809         (ppc601_cost): Likewise.
1810         (ppc603_cost): Likewise.
1811         (ppc604_cost): Likewise.
1812         (ppc604e_cost): Likewise.
1813         (ppc620_cost): Likewise.
1814         (ppc630_cost): Likewise.
1815         (ppccell_cost): Likewise.
1816         (ppc750_cost): Likewise.
1817         (ppc7450_cost): Likewise.
1818         (ppc8540_cost): Likewise.
1819         (ppce300c2c3_cost): Likewise.
1820         (ppce500mc_cost): Likewise.
1821         (ppce500mc64_cost): Likewise.
1822         (ppce5500_cost): Likewise.
1823         (ppce6500_cost): Likewise.
1824         (titan_cost): Likewise.
1825         (power4_cost): Likewise.
1826         (power6_cost): Likewise.
1827         (power7_cost): Likewise.
1828         (power8_cost): Likewise.
1829         (ppca2_cost): Likewise.
1830         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
1832         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
1833         instead of XXLOR to copy SFmode to clear out dirty bits created
1834         when SFmode denormals are generated.
1835         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
1836         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
1838 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
1840         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
1841         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
1842         * config/aarch64/aarch64-tune.md: Regenerate.
1844 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
1846         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
1847         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
1848         * config/arm/arm-cores.def (exynos-m1): New core.
1849         * config/arm/arm-tune.md: Regenerate.
1850         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
1851         * config/arm/bpabi.h: Likewise.
1853 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
1855         * ipa-cp (set_single_call_flag): Remove too
1856         restrictive assert.
1858 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
1860         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
1861         GOMP_offload_unregister from the destructor.
1863 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
1865         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
1866         flags for instrumentation thunk.
1867         (chkp_produce_thunks): Likewise.
1869 2015-04-05  Martin Liska  <mliska@suse.cz>
1871         PR ipa/65665
1872         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
1873         has computed data structure.
1874         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
1876 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
1878         * invoke.texi (inline-unit-growth): Increase growth to 20%
1879         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
1881 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
1883         PR target/65647
1884         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
1885         value checking.
1886         (lra_rematerialization_iter): New.
1887         * lra.c (lra): Initialize lra_rematerialization_iter.
1888         Stop updating lra_constraint_new_regno_start after switching of
1889         inheritance and rematerialization.
1890         * lra-remat.c (lra_rematerialization_iter): New.
1891         (lra_remat): Add printing pass iteration.  Do rematerialization
1892         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
1894 2015-04-04  Richard Biener  <rguenther@suse.de>
1896         PR tree-optimization/64909
1897         PR tree-optimization/65660
1898         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
1899         to take a cost vector for scalar iteration cost.
1900         (vect_get_single_scalar_iteration_cost): Likewise.
1901         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
1902         Compute the scalar iteration cost into a cost vector.
1903         (vect_get_known_peeling_cost): Use the scalar cost vector to
1904         account for the cost of the peeled iterations.
1905         (vect_estimate_min_profitable_iters): Likewise.
1906         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
1907         Likewise.
1909 2015-04-04  Alan Modra  <amodra@gmail.com>
1911         PR target/65576
1912         PR target/65240
1913         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
1914         0.0 constant unless TARGET_VSX.
1915         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
1916         alternative.
1918 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
1920         PR ipa/65654
1921         * ipa-inline-transform.c (inline_call): Skip sanity check to work
1922         around the ICE
1924 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
1926         PR ipa/65655
1927         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
1928         speculative indirect edges to avoid ordering issue.
1930 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
1932         PR ipa/65076
1933         * ipa-inline.c (edge_badness): Add combined size to the denominator.
1935 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
1937         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
1938         TYPE_ARTIFICIAL on the .omp_data* types.
1940 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
1942         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
1943         instrumentation thunks.
1945 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
1947         * config/i386/i386.c (ix86_expand_call): Avoid nested
1948         PARALLEL in returned call value.
1950 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
1952         * lto-cgraph.c (input_cgraph_1): Always link instrumented
1953         assembler name with original one.
1955 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
1957         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
1959 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
1961         Revert parts of r216820.
1962         * config/i386/i386.md (movqi_internal): Correct type calculation
1963         for alternatives 3 and 5.
1965 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
1967         PR preprocessor/61977
1968         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
1969         predefine __vector/__bool/__pixel macros nor context sensitive
1970         macros for CLK_ASM.
1971         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
1973 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
1975         * config/pa/pa.c (pa_output_move_double): Directly handle register
1976         indexed memory operand.  Simplify handling of scaled register indexed
1977         memory operands.
1979 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
1981         PR driver/65444
1982         * config/i386/linux-common.h (MPX_SPEC): New.
1983         (CHKP_SPEC): Add MPX_SPEC.
1984         * doc/invoke.texi (-fcheck-pointer-boudns): Document
1985         possible issues with '-z bndplt' support in linker.
1987 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
1989         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
1990         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
1991         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
1992         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
1993         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
1995 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
1997         * config/i386/sync.md (UNSPEC_MOVA): Remove.
1998         (atomic_load<mode>): Change operand 0 predicate to
1999         nonimmediate_operand and fix up the destination when needed.
2000         Use UNSPEC_LDA.
2001         (atomic_loaddi_fpu): Use UNSPEC_LDA.
2002         (atomic_store<mode>): Change operand 1 predicate to
2003         nonimmendate_operand and move the source to register when needed.
2004         Use UNSPEC_STA.
2005         (atomic_store<mode>_1): Use UNSPEC_STA.
2006         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
2007         Fix moves from memory operand.  Use UNSPEC_STA.
2009 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2011         * expmed.c (strict_volatile_bitfield_p): Check that the access will
2012         not cross a MODESIZE boundary.
2013         (store_bit_field, extract_bit_field): Added assertions in the
2014         strict volatile bitfields code path.
2016 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2018         PR target/65624
2019         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2020         Increase args array size by one to avoid buffer overflow.
2022 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
2024         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2025         split_part.
2026         * ipa-inline.c (edge_badness): Add wrapper penalty.
2027         (sum_callers): Move up.
2028         (inline_small_functions): Set single_caller.
2029         * ipa-inline.h (inline_summary): Add single_caller.
2030         * ipa-split.c (split_function): Set split_part.
2031         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
2032         * cgraph.h (cgraph_node): Add split_part.
2034 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
2036         PR target/58945
2037         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2038         Do not split operands 0 and operands 2 to halfmode.
2039         (atomic_compare_and_swap<mode>): Update for
2040         atomic_compare_and_swap<dwi>_doubleword changes.
2042 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
2044         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
2045         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
2046         no caching is done.
2048 2015-03-31  Martin Liska  <mliska@suse.cz>
2050         PR ipa/65557
2051         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
2052         has already filled up function summary.
2053         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2055 2015-03-31  Richard Biener  <rguenther@suse.de>
2057         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
2058         of types.
2060 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2062         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
2063         nested functions.
2064         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
2065         (s390_asm_output_function_label): Adapt to new signature of
2066         s390_function_num_hotpatch_hw
2067         Optimise the code generating assembler output.
2068         Add comments to assembler file.
2070 2015-03-31  Richard Biener  <rguenther@suse.de>
2072         PR middle-end/65626
2073         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
2074         of the noreturn call so it is last and cleanup_control_flow_bb
2075         can do the CFG part.
2077 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
2079         PR target/65531
2080         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
2081         same_comdat_group for external symbols.
2082         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
2083         infinite same_comdat_group traversal loop.
2085 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
2087         PR plugins/61176
2088         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
2089         automatically to $headers.
2091 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
2093         PR ipa/65610
2094         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
2095         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
2096         function.
2097         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
2098         Use it.
2099         * ipa-prop.c (param_type_may_change_p): Likewise.
2100         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
2101         (remove_unused_scope_block_p): Add in_ctor_dtor_block
2102         argument.  Before inlining, preserve
2103         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
2104         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
2105         recursive calls.
2106         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
2108 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2110         PR ipa/65076
2111         * ipa-inline.c (edge_badness): Base denominator on callee's
2112         grwoth squared.
2114 2015-03-27  Martin Jambor  <mjambor@suse.cz>
2116         PR ipa/65478
2117         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
2118         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
2119         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
2120         node_calling_single_call.
2121         * ipa-cp.c (count_callers): New function.
2122         (set_single_call_flag): Likewise.
2123         (initialize_node_lattices): Count callers and set single_flag_call if
2124         necessary.
2125         (incorporate_penalties): New function.
2126         (good_cloning_opportunity_p): Use it, dump new flags.
2127         (propagate_constants_topo): Set node_within_scc flag if appropriate.
2128         * doc/invoke.texi (ipa-cp-recursion-penalty,
2129         ipa-cp-single-call-pentalty): Document.
2131 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2133         PR ipa/65588
2134         * symtab.c (symtab_node::get_partitioning_class): Register vars
2135         are duplicated.
2136         * varpool.c (symbol_table::output_variables) Do not assemble unefined
2137         decls for non-symbols.
2139 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2141         PR target/65248
2142         * output.h (default_binds_local_p_2): New.
2143         * varasm.c (default_binds_local_p_2): Renamed to ...
2144         (default_binds_local_p_3): This.  Don't return true on protected
2145         data symbol if protected data may be external.
2146         (default_binds_local_p): Use default_binds_local_p_3.
2147         (default_binds_local_p_1): Likewise.
2148         (default_binds_local_p_2): New.
2149         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
2150         default_binds_local_p_2 if TARGET_MACHO is undefined.
2152 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
2154         PR target/65593
2155         * config/i386/i386.c (legitimize_pic_address): If base
2156         is SYMBOL_REF or LABEL_REF using %rip addressing, force
2157         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
2159 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2161         PR target/65531
2162         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
2163         comdat groups.
2165 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
2167         PR ipa/65600
2168         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
2169         of optimized out indirect call.
2170         (redirect_to_unreachable): Always build symbol table node for
2171         BUILT_IN_UNREACHABLE
2173 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
2175         PR target/65407
2176         * ira-costs.c (record_reg_classes): Process all constraint string
2177         containing 0-9.
2179 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
2181         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
2182         memory_operand.
2184         PR target/65052
2185         * config/c6x/constraints.md (S3): New constraint.
2186         * config/c6x/c6x.md (real_jump): Use it.
2188 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2190         PR middle-end/65595
2191         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
2192         do redirection if the call is not optimized out.
2194 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2196         PR target/65495
2197         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
2198         (fchkp-check-incomplete-type): Add LTO.
2199         (fchkp-zero-input-bounds-for-main): Likewise.
2200         (fchkp-first-field-has-own-bounds): Likewise.
2201         (fchkp-narrow-bounds): Likewise.
2202         (fchkp-narrow-to-innermost-array): Likewise.
2203         (fchkp-use-static-bounds): Likewise.
2204         (fchkp-use-static-const-bounds): Likewise.
2205         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2207 2015-03-27  Marek Polacek  <polacek@redhat.com>
2209         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
2211 2015-03-27  Marek Polacek  <polacek@redhat.com>
2213         PR sanitizer/65583
2214         * ubsan.c (ubsan_create_edge): New function.
2215         (instrument_bool_enum_load): Call it.
2216         (instrument_nonnull_arg): Likewise.
2217         (instrument_nonnull_return): Likewise.
2218         (instrument_object_size): Likewise.
2220 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2222         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
2223         auto_vec.
2225 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2227         PR lto/65536
2228         * lto-streamer.h (class lto_location_cache): New.
2229         (struct data_in): Add location_cache.
2230         (lto_input_location): Update prototype.
2231         (stream_input_location_now): New.
2232         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
2233         pointer to location.
2234         (stream_input_location): Update.
2235         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
2236         (warn_odr): Apply location cache before warning.
2237         (lto_input_location): Update prototype.
2238         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
2239         Use stream_input_location_now.
2240         * lto-streamer-in.c (lto_location_cache::current_cache): New static
2241         variable.
2242         (lto_location_cache::cmp_loc): New function.
2243         (lto_location_cache::apply_location_cache): New function.
2244         (lto_location_cache::accept_location_cache): New function.
2245         (lto_location_cache::revert_location_cache): New function.
2246         (lto_location_cache::input_location): New function.
2247         (lto_input_location): Do location caching.
2248         (stream_input_location_now): New function.
2249         (input_eh_region, input_struct_function_base): Use
2250         stream_input_location_now.
2251         (lto_data_in_create): use new.
2252         (lto_data_in_delete): Use delete.
2253         * tree-streamer-in.c (unpack_ts_block_value_fields,
2254         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
2255         lto_input_ts_exp_tree_pointers): Update for cached location api.
2257 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2259         PR ipa/65076
2260         * passes.def: Add pass_nothrow.
2261         * ipa-pure-const.c: (pass_data_nothrow): New.
2262         (pass_nothrow): New.
2263         (pass_nothrow::execute): New.
2264         (make_pass_nothrow): New.
2265         * tree-pass.h (make_pass_nothrow): Declare.
2267 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2269         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
2270         edge to change by speculation resolution or redirection.
2271         (edge_set_predicate): Likewise.
2272         (inline_summary_t::duplicate): Likewise.
2273         (remap_edge_summaries): Likewise.
2275 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2277         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
2278         New macros.
2279         (can_inline_edge_p): Relax option matching for always inline functions.
2281 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
2283         PR target/65561
2284         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
2285         Check operand 4 and operand 0 for equality.
2286         (avx512f_vextract<shuffletype>32x4_1_maskm):
2287         Check operand 6 and operand 0 for equality.
2288         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
2289         for equality.
2290         (vec_extract_hi_<mode>_maskm): Ditto.
2292 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2294         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
2295         dead calls back to live.
2296         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
2297         cross check to ...
2298         (cgraph_node::verify_node): ... here; verify only callee edges,
2299         not caller.
2300         * cif-code.def (CILK_SPAWN): New code.
2302 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
2304         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
2305         (edge_set_predicate): Use it to mark unreachable edges.
2306         (inline_summary_t::duplicate): Remove unnecesary code.
2307         (remap_edge_summaries): Likewise.
2308         (dump_inline_summary): Report contains_cilk_spawn.
2309         (compute_inline_parameters): Compute contains_cilk_spawn.
2310         (inline_read_section, inline_write_summary): Stream
2311         contains_cilk_spawn.
2312         * ipa-inline.c (can_inline_edge_p): Do not touch
2313         DECL_STRUCT_FUNCTION that may not be available;
2314         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
2315         remove check for callee_fun->can_throw_non_call_exceptions and
2316         replace it by optimization attribute check; check for flag_exceptions.
2317         * ipa-inline-transform.c (inline_call): Maintain
2318         DECL_FUNCTION_PERSONALITY
2319         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
2321 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
2323         PR tree-optimization/65551
2324         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
2325         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
2327 2015-03-26  Richard Biener  <rguenther@suse.de>
2329         PR middle-end/65555
2330         * tree-cfg.c (verify_gimple_call): Do not require a call to
2331         have no LHS if it wasn't recognized as control altering yet.
2333 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
2335         PR tree-optimization/64715
2336         * passes.def: Add another instance of pass_object_sizes before ccp1.
2337         * tree-object-size.c (pass_object_sizes::execute): In
2338         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
2339         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
2340         __bos result and the computed constant.  Remove redundant
2341         checks, obsoleted by gimple_call_builtin_p test.
2343         * var-tracking.c (variable_tracking_main_1): Don't track
2344         variables for targetm.no_register_allocation targets.
2346 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
2348         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
2349         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
2351 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2353         PR target/65569
2354         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
2355         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
2356         0.0 is correctly setup.
2357         (extenddftf2_internal): Likewise.
2359 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
2361         PR tree-optimization/65177
2362         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
2363         (bb_in_bbs): New.
2364         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
2365         edges not adjacent on the path to the original code.
2367 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
2369         PR bootstrap/65537
2370         * doc/install.texi (Building a native compiler): Document new
2371         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
2372         configuration assumes that the host supports the linker plugin.
2374 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
2376         PR target/65508
2377         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
2378         chain for generated call.
2380 2015-03-25  Richard Biener  <rguenther@suse.de>
2382         * passes.c (pass_manager::execute_early_local_passes): Guard
2383         execution of pass_chkp_instrumentation_passes with
2384         flag_check_pointer_bounds.
2385         (pass_chkp_instrumentation_passes::gate): Likewise.
2387 2015-03-25  Martin Liska  <mliska@suse.cz>
2389         PR tree-optimization/65538
2390         * symbol-summary.h (function_summary::~function_summary):
2391         Relese memory for allocated summaries.
2392         (function_summary::release): New function.
2394 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
2396         PR lto/65515
2397         * lto-streamer-out.c (DFS::worklist): New struct.
2398         (DFS::worklist_vec): New data member.
2399         (DFS::next_dfs_num): Remove.
2400         (DFS::DFS): Rewritten using worklist instead of recursion,
2401         using most of code from DFS::DFS_write_tree.
2402         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
2403         pass it to DFS_write_tree calls.
2404         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
2405         quick initial checks push it into worklist_vec and return.
2407 2015-03-25  Richard Biener  <rguenther@suse.de>
2409         PR middle-end/65519
2410         * genmatch.c (expr::gen_transform): Re-write to avoid
2411         using gimple_build.
2413 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
2415         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
2417 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
2419         * config/arm/arm.opt (print_tune_info): New option.
2420         * config/arm/arm.c (arm_print_tune_info): New function.
2421         (arm_file_start): Call arm_print_tune_info.
2422         * config/arm/arm-protos.h (struct tune_params): Add comment.
2423         * doc/invoke.texi (@item -mprint-tune-info): New item.
2424         (-mtune): mention it in ARM Option Summary.
2426 2015-03-25  DJ Delorie  <dj@redhat.com>
2428         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
2429         correct clause.
2431 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
2432             Martin Liska  <mliska@suse.cz>
2434         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
2435         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
2436         (sem_item::add_type): New function.
2437         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
2438         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
2439         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
2440         (sem_function::equals_wpa): Fix typo.
2441         * ipa-icf.h (sem_item::add_type): New function.
2442         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
2443         order.
2445 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
2447         PR tree-optimization/65533
2448         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
2449         with swapped operands, call vect_free_slp_tree on
2450         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
2451         vector.
2453 2015-03-24  Richard Biener  <rguenther@suse.de>
2455         PR middle-end/65517
2456         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
2457         for fixup if necessary.
2459 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
2461         * doc/extend.texi (Function Attributes): Add @cindex entries
2462         for all attributes and regularize their format.  Delete text
2463         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
2464         information about "eightbit_data", "tiny_data", and "model"
2465         variable attributes to the Variable Attributes section.  Fix
2466         some obvious typos and copy-editing issues.
2467         (Variable Attributes, Type Attributes): Likewise add/fix
2468         @cindex entries for all attributes.
2470 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
2472         PR target/65523
2473         * tree-chkp.c (chkp_build_returned_bound): Ignore
2474         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
2476 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
2478         PR target/65505
2479         * config/sh/predicates.md (simple_mem_operand,
2480         displacement_mem_operand): Add test for reg.
2481         (short_displacement_mem_operand): Test for displacement_mem_operand
2482         before invoking sh_disp_addr_displacement.
2483         * config/sh/constraints.md (Sdd, Sra): Simplify.
2484         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
2485         Remove redundant displacement_mem_operand tests.
2487 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
2489         PR target/65296
2490         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
2491         the same -mmcu=MCU more than once.
2493 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
2495         PR bootstrap/65522
2496         * ipa-devirt.c: Remove duplicate demangle.h include.
2498         PR target/65504
2499         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
2500         on the pseudo.
2501         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
2502         REG_POINTER on *destptr after adjusting it for prologue size.
2504         PR ipa/65521
2505         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
2506         ultimate_alias_target ()->order ints instead of
2507         ultimate_alias_target () pointers.
2509 2015-03-23  Richard Biener  <rguenther@suse.de>
2511         PR tree-optimization/65518
2512         * tree-vect-stmts.c (vectorizable_load): Reject single-element
2513         interleaving cases we generate absymal code for.
2515 2015-03-23  Richard Biener  <rguenther@suse.de>
2517         PR tree-optimization/65494
2518         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
2519         matches here.
2520         (vect_analyze_slp_instance): But do that here, always and once.
2522 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2524         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
2525         adding T or multiplying by T+1 and subracting T.
2527 2015-03-22  Jeff Law  <law@redhat.com>
2529         PR rtl-optimization/64317
2530         * Makefile.in (OBJS): Add gcse-common.c
2531         * gcse.c: Include gcse-common.h
2532         (struct modify_pair_s): Move structure definition to gcse-common.h
2533         (compute_transp): Move function to gcse-common.c.
2534         (canon_list_insert): Similarly.
2535         (record_last_mem_set_info): Break out some code and put it into
2536         gcse-common.c.  Call into the new common code.
2537         (compute_local_properties): Pass additional arguments to compute_transp.
2538         * postreload-gcse.c: Include gcse-common.h and df.h
2539         (modify_mem_list_set, blocks_with_calls): New variables.
2540         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
2541         (get_bb_avail_insn): Pass in the expression index too.
2542         (alloc_mem): Allocate memory for the new bitmaps and lists.
2543         (free_mem): Free memory for the new bitmaps and lists.
2544         (insert_expr_in_table): Record a bitmap index for each entry we
2545         add to the table.
2546         (record_last_mem_set_info): Call into common code in gcse-common.c.
2547         (get_bb_avail_insn): If no available insn was found in the requested
2548         BB.  If BB has a single predecessor, see if the expression is
2549         transparent in BB and available in that single predecessor.
2550         (compute_expr_transp): New wrapper for compute_transp.
2551         (eliminate_partially_redundant_load): Pass expression's bitmap_index
2552         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
2553         (gcse_after_reload_main): If there are elements in the hash table,
2554         then compute transparency for all the elements in the hash table.
2555         * gcse-common.h: New file.
2556         * gcse-common.c: New file.
2558 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
2560         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
2561         as an adjective.
2562         (System Headers): Likewise.
2563         (Ifdef): Likewise.
2564         (Traditional macros): Likewise.
2565         (Invocation): Likewise.
2566         (Option Index): Likewise.
2567         * doc/cppopts.texi (-M): Likewise.
2568         (-finput-charset): Likewise.
2569         (--help): Likewise.
2570         * doc.invoke.texi (AVR Options): Likewise.
2571         (V850 Options): Likewise.
2573 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
2575         PR ipa/65475
2576         * ipa-devirt.c: Include demangle.h
2577         (odr_type_d): Add field rtti_broken.
2578         (odr_subtypes_equivalent_p): Do not require name to match.
2579         (compare_virtual_tables): Fix typo; if type already has ODR violation,
2580         bypass the tests; be ready for function referneces in vtables that are
2581         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
2582         (warn_odr): Give up for nameless types.
2583         (warn_types_mismatch): Report mismatch in mangled names;
2584         report mismatch in anonymous namespaces; look into component types to
2585         give useful error; report when mismatch is dragged in from other ODR
2586         type.
2587         (odr_types_equivalent_p): Match types for being polymorphic; avoid
2588         duplicated diagnostics.
2589         (add_type_duplicate): Reorder checks so more informative ones come
2590         first; fix typo; do not output "the extra base is defined here" when
2591         we did not warn.
2592         (BINFO_N_BASE_BINFOS): Relax sanity check.
2594 2015-03-22  Martin Liska  <mliska@suse.cz>
2595             Jakub Jelinek  <jakub@redhat.com>
2597         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
2598         masks that can potentially include a builtin.
2599         (ix86_add_new_builtins): Introduce fast filter for isa values
2600         that cannot trigger builtin inclusion.
2602 2015-03-22  Martin Liska  <mliska@suse.cz>
2604         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
2605         (sem_item::update_hash_by_local_refs): Likewise.
2606         (sem_variable::get_hash): Empty line is fixed.
2607         (sem_item_optimizer::execute): Include adding of hash references.
2608         (sem_item_optimizer::update_hash_by_addr_refs): New function.
2609         (sem_item_optimizer::build_hash_based_classes): Use local hash.
2610         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
2611         (sem_item::update_hash_by_local_refs): Likewise.
2613 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
2615         PR ipa/65502
2616         * ipa-comdats.c (enqueue_references): Walk through thunks.
2617         (ipa_comdats): Likewise.
2618         (set_comdat_group_1): New function.
2620 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
2622         PR ipa/65475
2623         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
2624         non-polymorphic
2626 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2627             Gerald Pfeifer  <gerald@pfeifer.com>
2629         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
2631 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
2632             Sandra Loosemore  <sandra@codesourcery.com>
2634         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
2635         function parameter declaration.
2636         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
2637         Update arguments to nios2_adjust_call_address().
2638         (sibcall_internal): Rename from *sibcall.
2639         (sibcall_value_internal): Rename from *sibcall_value.
2640         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
2641         (nios2_large_got_address): Add target temp reg parameter.
2642         (nios2_got_address): Adjust call to nios2_large_got_address, add
2643         force_reg around it.
2644         (nios2_load_pic_address): Add target temp reg parameter, replace call
2645         to nios2_got_address with corresponding code.
2646         (nios2_legitimize_constant_address): Update call to
2647         nios2_load_pic_address.
2648         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
2649         to use temp reg for PIC loading purposes.
2650         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
2651         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
2652         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
2654 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
2656         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
2657         usage of "the @option{...}".
2658         (-Wopenmp-simd): Likewise.
2659         (-fsanitize-recover): Likewise.
2660         (-fsanitize-undefined-trap-on-error): Likewise.
2661         (-flto): Likewise.
2662         (tracer-dynamic-coverage-feedback): Likewise.
2663         (reorder-block-duplicate-feedback): Likewise.
2664         (loop-unroll-jam-size): Likewise.
2665         (-B): Likewise.
2666         (-I-): Likewise.
2667         (-mabs=legacy): Likewise.
2668         (-mupper-regs-df): Likewise.
2669         (-mupper-regs-sf): Likewise.
2670         (-mpointers-to-nested-functions): Likewise.
2672 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
2674         * doc/extend.texi (Cilk Plus Builtins): Add markup.
2676 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
2678         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
2679         additional index entries and cross-references.
2680         (-fchkp-check-incomplete-type): Likewise.
2681         (-fchkp-first-field-has-own-bounds): Likewise.
2682         (-fchkp-narrow-to-innermost-array): Likewise.
2683         (-fchkp-use-fast-string-functions): Likewise.
2684         (-fchkp-use-nochk-string-functions): Likewise.
2685         (-fchkp-use-static-const-bounds): Likewise.
2686         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
2687         (-fchkp-instrument-marked-only): Likewise.
2688         (-fchkp-use-wrappers): Likewise.
2689         (-static-libmpx): Likewise.
2690         (-static-libmpxwrappers): Likewise.
2691         * doc/extend.texi (bnd_legacy): Likewise.
2692         (bnd_instrument): Likewise.
2693         (bnd_variable_size): Likewise.
2694         (Pointer Bounds Checker builtins): Likewise.
2696 2015-03-21  Tom de Vries  <tom@codesourcery.com>
2698         PR tree-optimization/65458
2699         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
2700         * cgraph.h (cgraph_node): Add parallelized_function field.
2701         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
2702         (input_overwrite_node): Read parallelized_function field.
2703         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
2704         parallelized_function on cgraph_node for child_fn.
2705         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
2706         Remove include of gt-tree-parloops.h.
2707         (parallelized_functions): Remove static variable.
2708         (parallelized_function_p): Rewrite using parallelized_function field of
2709         cgraph_node.
2710         (create_loop_fn): Remove adding to parallelized_functions.
2711         * Makefile.in (GTFILES): Remove tree-parloops.c
2713 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
2715         PR rtl-optimization/64366
2716         * lra.c (lra_update_insn_regno_info): Consider regs in
2717         CALL_INSN_FUNCTION_USAGE memory.
2719 2015-03-20  Richard Biener  <rguenther@suse.de>
2721         PR middle-end/64715
2722         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
2723         for type comparison and gcc_checking_assert.
2724         (chrec_fold_plus_poly_poly): Likewise.
2725         (chrec_fold_multiply_poly_poly): Likewise.
2726         (chrec_convert_1): Likewise.
2727         * gimplify.c (gimplify_expr): Remove premature folding of
2728         &X + CST to &MEM[&X, CST].
2730 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
2732         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
2733         already is final.
2734         (ipa_inline): Recompute inline_failed codes.
2735         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
2736         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
2737         CIF_FINAL_ERROR.
2739 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
2741         PR rtl-optimization/60851
2742         * recog.c (constrain_operands): Accept a pseudo register before reload
2743         for LRA enabled targets.
2745 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2747         PR target/65240
2748         * config/rs6000/predicates.md (easy_fp_constant): Remove special
2749         -ffast-math handling that kept non-0 constants live in the RTL
2750         until reload.  Remove logic testing the number of instructions it
2751         took to create a constant in a GPR that was never used, due to a
2752         test for soft-float earlier.
2753         (memory_fp_constant): Delete, no longer used.
2755         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
2756         alternatives for loading non-0 constants into GPRs for hard
2757         floating point that is no longer needed due to changes in
2758         easy_fp_constant.  Add support for loading 0.0 into GPRs.
2759         (mov<mode>_hardfloat32): Likewise.
2760         (mov<mode>_hardfloat64): Likewise.
2761         (mov<mode>_64bit_dm): Likewise.
2762         (movtd_64bit_nodm): Likewise.
2763         (pre-reload move FP constant define_split): Delete define_split,
2764         since it is no longer used.
2765         (extenddftf2_internal): Remove GHF constraints that are not valid
2766         for extenddftf2.
2768 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
2770         PR rtl-optimization/63491
2771         * lra-constraints.c (check_and_process_move): Use src instead of
2772         sreg.  Remove some dead code.
2774 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
2776         PR ipa/65380
2777         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
2778         (sem_variable::merge): Likewise.
2780 2015-03-19  Martin Liska  <mliska@suse.cz>
2782         PR ipa/65465
2783         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
2784         all fields of cgraph_thunk_info.
2786 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2788         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
2789         clone instrumented thunks.
2791 2015-03-19  Richard Biener  <rguenther@suse.de>
2793         Revert
2794         2015-03-10  Richard Biener  <rguenther@suse.de>
2796         PR middle-end/63155
2797         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
2798         * tree-ssa-coalesce.c: Include timevar.h.
2799         (attempt_coalesce): Handle graph being NULL.
2800         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
2801         Split out abnormal coalescing to ...
2802         (perform_abnormal_coalescing): ... this function.
2803         (coalesce_ssa_name): Perform abnormal coalescing without computing
2804         live/conflict.
2805         (verify_ssa_coalescing_worker): New function.
2806         (verify_ssa_coalescing): Likewise.
2808 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2809             Jakub Jelinek  <jakub@redhat.com>
2811         PR sanitizer/65400
2812         * tsan.c (instrument_gimple): Clear tail call flag on
2813         calls.
2815 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
2817         PR sanitizer/65400
2818         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
2819         call in the return bb.
2820         (find_split_points): Add RETURN_BB argument, don't call
2821         find_return_bb.
2822         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
2823         if true append TSAN_FUNC_EXIT internal call after the call to
2824         the split off function.
2825         (execute_split_functions): Call find_return_bb here.
2826         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
2827         Adjust find_split_points and split_function calls.
2829 2015-03-18  DJ Delorie  <dj@redhat.com>
2831         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
2832         (iorqi3_virt): Likewise.
2834 2015-03-18  Tom de Vries  <tom@codesourcery.com>
2836         * tree-parloops.c (parallelize_loops): Make static.
2837         * tree-parloops.h (parallelize_loops): Remove extern declaration.
2839 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
2841         PR middle-end/64491
2842         Revert:
2843         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
2845         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
2846         condition would be removed due to undefined behaviour.
2848 2015-03-18  Martin Liska  <mliska@suse.cz>
2850         PR ipa/65432
2851         * cgraph.c (cgraph_node::get_create): Remove unnecessary
2852         xstrdup_for_dump wrapper.
2853         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
2854         sem_item::name.
2855         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
2856         with xstrdup_for_dump.
2857         (sem_variable::equals): Likewise.
2858         (sem_item_optimizer::read_section): Use symtab_node::name instead of
2859         sem_item::name.
2860         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
2861         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
2862         symtab_node::asm_name with xstrdup_for_dump.
2863         (congruence_class::dump): Use symtab_node::name instead of
2864         sem_item::name.
2865         * ipa-icf.h (symtab_node::name): Remove.
2866         (symtab_node::asm_name): Likewise.
2868 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
2870         PR tree-optimization/65450
2871         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
2872         function.
2873         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
2874         it instead of duplicate_ssa_name_ptr_info.
2876         PR target/65222
2877         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
2879 2015-03-18  Richard Biener  <rguenther@suse.de>
2881         * tree-data-ref.h (struct access_matrix): Remove.
2882         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2883         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2884         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
2885         (am_vector_index_for_loop): Likewise.
2886         (struct data_reference): Remove access_matrix member.
2887         (DR_ACCESS_MATRIX): Remove.
2888         (lambda_vector_new): Add comment.
2889         (lambda_matrix_new): Use XOBNEWVEC.
2891 2015-03-18  Richard Biener  <rguenther@suse.de>
2893         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
2894         (pass_ch::execute): Cleanup the CFG only if we did sth.
2895         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
2897 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2899         * expmed.c (synth_mult): Use std::swap instead of manually
2900         swapping algorithms.
2902 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
2904         PR target/65078
2905         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
2907 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
2909         PR target/65296
2910         * config/avr/avr.opt (-nodevicelib): New option.
2911         * doc/invoke.texi (AVR Options): Document it.
2912         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
2913         libgcc.a, libc.a, libm.a.
2914         * config/avr/specs.h: Same.
2915         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
2916         which don't (directly) depend on the device.  Print more help.
2917         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
2918         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
2919         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
2920         case of an error.
2921         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
2922         for specs file name.
2923         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
2924         * config/avr/avr-mcus.def: Adjust initializers and comments.
2926 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
2928         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
2929         DECL_ONE_ONLY to check if decl is one only.
2930         * ipa-split.c (consider_split): Limit splitt of one only functions.
2932 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
2934         PR tree-optimization/65427
2935         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
2936         functions.
2937         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
2939 2015-03-16  Marek Polacek  <polacek@redhat.com>
2941         * cgraph.h (add_new_static_var): Remove declaration.
2942         * varpool.c (add_new_static_var): Remove function.
2944 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
2946         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
2947         instead of vec<tree> * with vec_alloc and release for args.
2948         Adjust all users.
2950         PR middle-end/65431
2951         * omp-low.c (delete_omp_context): Only splay_tree_delete
2952         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
2953         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
2955 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2957         PR sanitizer/64820
2958         * cfgexpand.c (align_base): New function.
2959         (alloc_stack_frame_space): Call it.
2960         (expand_stack_vars): Align prev_frame to be sure
2961         data->asan_vec elements aligned properly.
2963 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
2965         PR middle-end/65409
2966         * expr.c (store_field): Do not do a direct block copy if the source is
2967         a PARALLEL with BLKmode.
2969 2015-03-16  Tom de Vries  <tom@codesourcery.com>
2971         PR middle-end/65414
2972         Revert:
2973         2015-03-12  Tom de Vries  <tom@codesourcery.com>
2975         PR rtl-optimization/64895
2976         * lra-lives.c (check_pseudos_live_through_calls): Use
2977         actual_call_used_reg_set instead of call_used_reg_set, if available.
2979 2015-03-16  Alan Modra  <amodra@gmail.com>
2981         PR target/63150
2982         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
2983         Modify Z->r bswapdi splitter to use dest in place of scratch.
2984         In r->Z and Z->r bswapdi splitter rename word_high, word_low
2985         to word1, word2 and rearrange logic to suit.
2986         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
2987         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
2988         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
2989         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
2990         early clobber.
2992 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
2994         PR tree-optimization/65369
2995         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
2996         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
2997         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
2999         PR tree-optimization/65418
3000         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
3001         are casts in the first PLUS_EXPR operand, ensure tbias and
3002         *totallowp are in the inner type.
3004         PR rtl-optimization/65401
3005         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
3006         argument.  If true, adjust_address_nv of x with big-endian
3007         correction for the mode widening to GET_MODE (y).
3008         (make_field_assignment): Don't do MEM mode widening here.
3009         Use MEM_P instead of GET_CODE == MEM.
3011 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
3013         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
3014         the external decls.
3016 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3018         PR target/64600
3019         * config/arm/arm.c (arm_gen_constant, AND case): Use
3020         ARM_SIGN_EXTEND when constructing AND mask.
3022 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3024         * graph.c (print_graph_cfg): Make function names visible and append
3025         parenthesis to it.  Also make groups of basic blocks belonging to the
3026         same function visible.
3028 2015-03-12  Richard Biener  <rguenther@suse.de>
3030         PR middle-end/44563
3031         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
3032         to avoid quadratic behavior with inline expansion splitting blocks.
3033         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
3034         with the successor if the predecessor will be merged with it.
3035         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
3036         entry block with its successor.
3038 2015-03-13  Richard Biener  <rguenther@suse.de>
3040         PR middle-end/44563
3041         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
3042         (cleanup_tree_cfg_1): Do not call it.
3043         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
3044         (fixup_noreturn_call): Mark the stmt as control altering.
3045         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
3046         here.
3047         (pass_data_fixup_cfg): Produce a dump file.
3048         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
3049         (need_noreturn_fixup): New global.
3050         (pass_dominator::execute): Fixup queued noreturn calls.
3051         (optimize_stmt): Queue calls that became noreturn for fixup.
3052         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
3053         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
3054         (el_to_fixup): New global.
3055         (eliminate_dom_walker::before_dom_childre): Queue calls that
3056         became noreturn for fixup.
3057         (eliminate): Fixup queued noreturn calls.
3058         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
3059         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
3060         (substitute_and_fold_dom_walker::before_dom_children): Queue
3061         alls that became noreturn for fixup.
3062         (substitute_and_fold): Fixup queued noreturn calls.
3064 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
3066         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
3067         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
3068         are building; for methods check ODR type of class they belong to if
3069         they may lead to a polymorphic call.
3070         (sem_function::compare_polymorphic_p): Be bit smarter about testing
3071         when function may lead to a polymorphic call.
3072         (sem_function::compare_type_list): Remove.
3073         (sem_variable::equals): Update use of compatible_types_p.
3074         (sem_variable::parse_tree_refs): Remove.
3075         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
3076         cdtor.
3077         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
3078         matching here.
3079         (func_checker::compatible_polymorphic_types_p): Break out from ...
3080         (unc_checker::compatible_types_p): ... here.
3081         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
3082         Declare.
3083         (unc_checker::compatible_types_p): Update.
3084         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
3085         Remove.
3087 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3089         PR rtl-optimization/65235
3090         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
3091         When first element of vec_concat is const_int, calculate its size
3092         using second element.
3094 2015-03-12  Richard Biener  <rguenther@suse.de>
3096         PR middle-end/65270
3097         * fold-const.c (operand_equal_p): Fix ordering of resetting
3098         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
3100 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3102         * config/s390/s390.c (s390_reorg): Move code to output nops after label
3103         to s390_reorg ().
3104         (s390_asm_output_function_label): Likewise.
3105         * config/s390/s390.c (s390_asm_output_function_label):
3106         Fix function label alignment with -mhtopatch.
3107         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
3108         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
3109         ("nop_2_byte"): New define_insn.
3110         ("nop_4_byte"): Likewise.
3111         ("nop_6_byte"): Likewise.
3112         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
3113         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
3115 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3117         PR target/65103
3118         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
3119         register.
3121 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
3123         PR target/65044
3124         * toplev.c (process_options): Restrict Pointer Bounds Checker
3125         usage with Address Sanitizer.
3127 2015-03-12  Richard Biener  <rguenther@suse.de>
3129         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
3130         to split on.
3131         * omp-low.c (expand_omp_taskreg): Split block before removing
3132         the stmt.
3133         (expand_omp_target): Likewise.
3134         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
3135         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
3136         stmt to split_block.
3138 2015-03-12  Tom de Vries  <tom@codesourcery.com>
3140         PR rtl-optimization/64895
3141         * lra-lives.c (check_pseudos_live_through_calls): Use
3142         actual_call_used_reg_set instead of call_used_reg_set, if available.
3144 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
3146         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
3147         (cgraph_node::remove): Likewise.
3148         (cgraph_node::get_untransformed_body): Likewise.
3149         * varpool.c (varpool_node::remove): Likewise.
3150         (varpool_node::get_constructor): Add sanity check.
3152 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
3154         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
3155         old GCC versions.
3156         (-fabi-compat-version): Likewise.
3157         (-ffriend-injection): Likewise.
3158         (-Wdeclaration-after-statement): Likewise.
3159         (-fomit-frame-pointer): Likewise.
3160         (-ftree-coalesce-inlined-vars): Likewise.
3161         (-fvisibility=): Likewise.
3162         * doc/extend.texi (Typeof): Likewise.
3163         (Zero Length): Likewise.
3164         (Escaped Newlines): Likewise.
3165         (Compound Literals): Likewise.
3166         (Function Attributes): Likewise.
3167         (Label Attributes): Likewise.
3168         (Type Attributes): Likewise.
3169         (Function Names): Likewise.
3170         (Other Builtins): Likewise.
3171         (Function Specific Option Pragmas): Likewise.
3172         (C++ Interface): Likewise.
3174 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
3176         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
3178 2015-03-11  Marek Polacek  <polacek@redhat.com>
3180         PR tree-optimization/65388
3181         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
3183 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
3185         PR target/65296
3186         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
3187         * configure: Regenerate.
3188         * config.in: Regenerate.
3189         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
3190         [-mn-flash]: Document it.
3191         [__AVR_ARCH__]: Document avrtiny.
3193         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
3194         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
3195         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
3197 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3199         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
3201 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3203         PR target/65242
3204         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
3205         allow reloads of PLUS in floating point/VSX registers.
3207 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
3209         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
3210         crypto_sha256_fast.
3211         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
3213 2015-03-11  Richard Biener  <rguenther@suse.de>
3215         PR tree-optimization/65310
3216         * tree-sra.c (build_ref_for_offset): Also preserve larger
3217         alignment.
3219 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
3221         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
3223 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3225         PR target/65368
3226         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
3227         new define_expand.
3228         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
3230 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
3232         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
3233         (sem_function::equals_wpa): ... here.
3235 2015-03-10  Marek Polacek  <polacek@redhat.com>
3236             Jakub Jelinek  <jakub@redhat.com>
3238         PR sanitizer/65367
3239         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
3240         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
3241         separately.
3243 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3245         PR target/65286
3246         * config/rs6000/t-linux: For powerpc64* target set
3247         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
3249 2015-03-10  Richard Biener  <rguenther@suse.de>
3251         PR middle-end/44563
3252         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
3253         for redirect_all_calls.
3255 2015-03-10  Marek Polacek  <polacek@redhat.com>
3257         * gdbinit.in (pcfun): Define and document.
3259 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
3261         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
3262         of libgomp-plugin.h.
3263         (find_target_compiler): Support a case when the path to gcc is
3264         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
3265         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
3266         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
3267         libgomp-plugin.h.
3268         (main): Use GCC_INSTALL_NAME as target_driver_name.
3269         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
3270         define.
3271         (mkoffload.o): Remove obsolete include path and defines.
3272         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
3274 2015-03-10  Richard Biener  <rguenther@suse.de>
3276         PR middle-end/63155
3277         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3278         * tree-ssa-coalesce.c: Include timevar.h.
3279         (attempt_coalesce): Handle graph being NULL.
3280         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3281         Split out abnormal coalescing to ...
3282         (perform_abnormal_coalescing): ... this function.
3283         (coalesce_ssa_name): Perform abnormal coalescing without computing
3284         live/conflict.
3285         (verify_ssa_coalescing_worker): New function.
3286         (verify_ssa_coalescing): Likewise.
3288 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
3290         PR target/65296
3291         * config.gcc (extra_options) [avr]: Remove.
3292         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
3293         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
3294         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
3296         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
3297         (-mmcu=): Add Var and MissingArgError properties.
3298         (-march=): Remove.
3299         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
3300         * config/avr/t-multilib: Regenerate.
3301         * config/avr/specs.h: New file.
3302         * config/avr/driver-avr.c: New file.
3303         * config/avr/genopt.sh: Remove file.
3304         * config/avr/avr-tables.opt: Remove file.
3305         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
3306         * config/avr/avr-c.c: Same.
3307         * avr-arch.h: Same.
3308         (avr_current_device): Remove proto.
3309         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
3310         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
3311         (EXTRA_SPEC_FUNCTIONS): Define.
3312         (avr_devicespecs_file): New specs function proto.
3313         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
3314         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
3315         (avr_current_device): Remove definition and usage.
3316         (avr_set_core_architecture): New static function.
3317         (avr_option_override): Use it.
3318         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
3319         (mcu_name): New static array.
3320         (comparator, avr_archs_str, avr_mcus_str): New static functions.
3321         (avr_inform_devices, avr_inform_core_architectures): New functions.
3322         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
3323         (avrlibc.h) [WITH_AVRLIBC]: Include.
3324         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
3325         (print_mcu): Rewrite from scratch.
3326         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
3327         Forward to avr-specific specs defined in device-specs file.
3328         * config/avr/t-avr (driver-avr.o): New rule.
3329         (avr-devices.o): Depend on avr-arch.h.
3330         (avr-mcus): No more depend on avr-tables.opt.
3331         (avr-tables.opt): Remove rule.
3332         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
3334 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3336         * c-family/c.opt (fchkp-use-wrappers): New.
3337         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
3338         (chkp_wrap_function): New.
3339         (chkp_build_instrumented_fndecl): Support wrapped
3340         functions.
3341         * doc/invoke.texi (-fcheck-pointer-bounds): New.
3342         (-fchkp-check-incomplete-type): New.
3343         (-fchkp-first-field-has-own-bounds): New.
3344         (-fchkp-narrow-bounds): New.
3345         (-fchkp-narrow-to-innermost-array): New.
3346         (-fchkp-optimize): New.
3347         (-fchkp-use-fast-string-functions): New.
3348         (-fchkp-use-nochk-string-functions): New.
3349         (-fchkp-use-static-bounds): New.
3350         (-fchkp-use-static-const-bounds): New.
3351         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
3352         (-fchkp-check-read): New.
3353         (-fchkp-check-write): New.
3354         (-fchkp-store-bounds): New.
3355         (-fchkp-instrument-calls): New.
3356         (-fchkp-instrument-marked-only): New.
3357         (-fchkp-use-wrappers): New.
3358         (-static-libmpx): New.
3359         (-static-libmpxwrappers): New.
3361 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3363         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
3364         (CHKP_SPEC): Add wrappers library.
3365         * c-family/c.opt (static-libmpxwrappers): New.
3367 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
3369         * config/i386/linux-common.h (LIBMPX_LIBS): New.
3370         (LIBMPX_SPEC): New.
3371         (CHKP_SPEC): New.
3372         * gcc.c (CHKP_SPEC): New.
3373         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
3374         * c-family/c.opt (static-libmpx): New.
3376 2015-03-10  Richard Biener  <rguenther@suse.de>
3378         PR middle-end/44563
3379         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
3380         for compare_type.
3381         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
3382         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
3383         (cgraph_add_edge_to_call_site_hash): Likewise.
3384         (cgraph_node::get_edge): Likewise.
3385         (cgraph_edge::set_call_stmt): Likewise.
3386         (cgraph_edge::remove_caller): Likewise.
3388 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
3390         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
3391         (callee_saved_gpr_regs_size): ... this.
3392         (callee_saved_regs_first_regno): Rename to ...
3393         (callee_saved_first_gpr_regno): ... this.
3394         (callee_saved_regs_last_regno) Rename to ...
3395         (callee_saved_last_gpr_regno): ... this.
3396         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
3397         variables.
3398         (nds32_initial_elimination_offset): Likewise.
3399         (nds32_expand_prologue): Likewise.
3400         (nds32_expand_epilogue): Likewise.
3401         (nds32_expand_prologue_v3push): Likewise.
3402         (nds32_expand_epilogue_v3pop): Likewise.
3403         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
3404         Adjust renamed variables.
3405         (nds32_output_stack_pop): Likewise.
3407 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3409         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
3410         code in comment.
3412 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
3414         PR rtl-optimization/65321
3415         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
3416         than shift mode.
3417         * var-tracking.c (use_narrower_mode): Likewise.
3419 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
3421         PR tree-optimization/65355
3422         * varasm.c (notice_global_symbol): Do not produce RTL.
3423         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
3424         anchor.
3425         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
3426         check for section anchors.
3428 2015-03-10  Alan Modra  <amodra@gmail.com>
3430         PR target/65286
3431         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
3432         to be single-arch by default.  Set cpu_is_64bit for powerpc64
3433         given --with-cpu=native.
3434         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
3435         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
3436         and powerpc64le.
3437         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
3438         rs6000_isa_flags rather than TARGET_64BIT.
3440 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
3441             Kaz Kojima  <kkojima@gcc.gnu.org>
3443         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
3445 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
3447         PR lto/65361
3448         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
3449         on a TREE_BINFO, instead use BINFO_TYPE.
3451 2015-03-09  Richard Biener  <rguenther@suse.de>
3453         PR middle-end/65270
3454         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
3455         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
3456         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
3457         of that.  When comparing dereferences compare alignment.
3458         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
3460 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
3462         * ipa-inline-analysis.c (check_callers): Check
3463         node->can_remove_if_no_direct_calls_and_refs_p.
3464         (growth_likely_positive): Reorganize to call
3465         can_remove_if_no_direct_calls_p later.
3466         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
3467         will_be_removed_from_program_if_no_direct_calls_p): Add
3468         will_inline parameter.
3469         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
3470         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3471         Handle inliner case correctly.
3473 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3475         PR tree-optimization/63743
3476         * cfgexpand.c (reorder_operands): Also reorder if only second operand
3477         had its definition forwarded by TER.
3479 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
3481         PR lto/65316
3482         * ipa-utils.h (types_odr_comparable): Add strict argument.
3483         * ipa-devirt.c: Fix whitespace;
3484         (odr_hasher): Remove.
3485         (odr_name_hasher, odr_vtable_hasher): New hashers.
3486         (can_be_name_hashed_p): New predicate.
3487         (hash_type_name): remove.
3488         (hash_odr_name): New.
3489         (odr_name_hasher::hash): new.
3490         (can_be_vtable_hashed_p): New.
3491         (hash_odr_vtable): New.
3492         (odr_vtable_hasher::hash): New.
3493         (types_same_for_odr): Add strict parameter.
3494         (types_odr_comparable): Likewise.
3495         (odr_name_hasher::equal): New.
3496         (odr_vtable_hasher::equal): New.
3497         (odr_name_hasher::remove): New.
3498         (odr_hash_type): Change to hash_table<odr_name_hasher>.
3499         (odr_vtable_hash_type): New.
3500         (odr_vtable_hash): New.
3501         (odr_subtypes_equivalent_p): Do strict comparsion.
3502         (add_type_duplicate): Merge type names; cleanup; avoid type
3503         duplicates.
3504         (register_odr_type): Initialize vtable hash.
3505         (build_type_inheritance_graph): Likewise
3506         (get_odr_type): Reorg to use two hashes.
3507         (dump_possible_polymorphic_call_targets): Move sanity check after debug
3508         output.
3509         (ipa_devirt): Dump type_inheritance_graph.
3510         (types_same_for_odr): Add strict mode.
3512 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3514         PR ipa/65334
3515         * cgraph.h (symtab_node): Add definition_alignment,
3516         can_increase_alignment_p and increase_alignment.
3517         * symtab.c (symtab_node::can_increase_alignment_p,
3518         increase_alignment_1, symtab_node::increase_alignment,
3519         symtab_node::definition_alignment): New.
3520         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
3521         can_increase_alignment_p.
3522         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
3523         * tree-vect-stmts.c (ensure_base_align): Likewise.
3524         * varasm.c (function_section_1): Use definition_alignment.
3525         (assemble_start_function): Likewise.
3526         (emit_local): likewise.
3527         (build_constant_desc): Likewsie.
3528         (output_constant_def_contents): Likewise.
3529         (place_block_symbol): Likewise.
3530         (output_object_block): Likewise.
3532 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3534         PR ipa/65316
3535         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
3536         when outputting debug.
3538 2015-03-07  Marek Polacek  <polacek@redhat.com>
3539             Martin Uecker  <uecker@eecs.berkeley.edu>
3541         PR sanitizer/65280
3542         * doc/invoke.texi: Update description of -fsanitize=bounds.
3544 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
3546         * tree-ssa-phiopt.c (neg_replacement): Remove.
3547         (tree_ssa_phiopt_worker): Remove negate optimization.
3549 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3551         PR ipa/65302
3552         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
3554 2015-03-06  Richard Biener  <rguenther@suse.de>
3556         PR middle-end/64928
3557         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
3558         and liveout_obstack members.
3559         (calculate_live_on_exit): Remove.
3560         (calculate_live_ranges): Change declaration.
3561         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
3562         (new_tree_live_info): Adjust.
3563         (calculate_live_ranges): Delete livein when not wanted.
3564         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
3565         Deal with partly deleted live info.
3566         (loe_visit_block): Remove temporary bitmap by using
3567         bitmap_ior_and_compl_into.
3568         (live_worklist): Adjust accordingly.
3569         (calculate_live_on_exit): Make static.
3570         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
3571         we do not need livein.
3573 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
3575         * real.c (real_from_string): Fix typo in assertion.
3577 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
3579         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
3580         the patch.
3582 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
3584         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
3586 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
3588         PR target/64342
3589         * lra-assigns.c (find_hard_regno_for): Rename to
3590         find_hard_regno_for_1.  Add a new parameter.
3591         (find_hard_regno_for): New function using find_hard_regno_for_1.
3593 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3595         PR rtl-optimization/65067
3596         * expmed.c (store_bit_field, extract_bit_field): Reworked the
3597         strict volatile bitfield handling.
3599 2015-03-05  Martin Liska  <mliska@suse.cz>
3601         PR ipa/65318
3602         * ipa-icf.c (sem_variable::equals): Compare variables types.
3604 2015-03-05  Richard Henderson  <rth@redhat.com>
3606         PR target/65121
3607         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
3608         correctly check weak symbol binding.
3610 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
3612         PR middle-end/65315
3613         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
3614         needed alignment.
3616 2015-03-05  Martin Liska  <mliska@suse.cz>
3618         * ipa-inline.c (inline_small_functions): Set default value to
3619         prevent warning during bootstrap.
3620         * tree.h: Add pragma guard that ignores false positives during
3621         bootstrap.
3623 2015-03-05  Richard Biener  <rguenther@suse.de>
3625         PR tree-optimization/65310
3626         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3627         Properly preserve alignment of the base of the access.
3629 2015-03-05  Richard Biener  <rguenther@suse.de>
3631         PR ipa/65270
3632         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
3633         Compare dependence info.
3635 2015-03-05  Richard Biener  <rguenther@suse.de>
3637         PR middle-end/65233
3638         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
3639         tree-into-ssa.h.
3640         (walk_ssa_copies): Revert last chage.  Instead do not walk
3641         SSA names registered for SSA update.
3643 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
3645         PR ipa/65270
3646         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
3647         vtable references for their containing type.
3648         (sem_function::equals_wpa): Compare TYPE_RESTRICT
3649         and type attributes.
3651 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
3653         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
3654         before negating it.
3655         * stor-layout.c (finalize_record_size): Revert latest change.
3657 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
3659         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
3661 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
3663         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
3664         for correct comdat handling.
3665         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
3666         Likewise.
3667         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
3668         (used_from_object_file_p_worker): Remove.
3669         (cgraph_node::only_called_directly_or_alised): Add
3670         used_from_object_file_p.
3671         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
3672         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
3673         can_remove_if_no_direct_calls_and_refs_p.
3675 2015-03-04  Nick Clifton  <nickc@redhat.com>
3677         * config/rl78/rl78.h (enum reg_class): Remove real registers from
3678         General register class.
3679         * config/rl78/rl78-real.md: Replace general register constraints
3680         with real+virtual register constraints.
3682 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3684         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
3685         from checking for -mhtm option.
3687 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
3689         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
3690         (struct ipa_sra_check_caller_data): Add has_thunk field.
3691         (ipa_sra_check_caller): Check for thunk.
3692         (ipa_sra_preliminary_function_checks): Give up on function with
3693         thunks.
3694         (ipa_early_sra): Use call_for_symbol_and_aliases.
3696 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3698         PR target/65249
3699         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
3700         called for __stack_chk_guard symbol.
3702 2015-03-03  DJ Delorie  <dj@redhat.com>
3704         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
3705         inc/dec.
3706         (*addhi3_real): Likewise.
3707         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
3708         pattern to match incrementing memory.
3709         * config/rl78/predicates.md (rl78_1_2_operand): New.
3710         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
3711         it's the same and only mem.
3712         (rl78_alloc_physical_registers_op2): If there's effectively only
3713         one MEM, transcode it into HL.
3714         (rl78_far_p): Reject addresses that aren't legitimate.
3716 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
3718         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
3719         negating it.
3721         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
3723 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
3725         Implement call0 ABI for xtensa
3726         * config/xtensa/constraints.md ("a" constraint): Include stack
3727         pointer in case of call0 ABI.
3728         ("q" constraint): Make empty in case of call0 ABI.
3729         ("D" constraint): Include stack pointer in case of call0 ABI.
3730         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
3731         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
3732         prototypes.
3733         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
3734         variable.
3735         (xtensa_regno_to_class): Make it a local variable in the
3736         function xtensa_regno_to_class.
3737         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
3738         macro, function prototype and implementation.
3739         (reg_nonleaf_alloc_order): Make it a local variable in the
3740         function order_regs_for_local_alloc.
3741         (xtensa_conditional_register_usage): New function.
3742         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
3743         (xtensa_valid_move): Allow direct moves to stack pointer
3744         register in call0 ABI.
3745         (xtensa_setup_frame_addresses): Only spill register windows in
3746         windowed ABI.
3747         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
3748         call0 ABI respectively.
3749         (xtensa_function_arg_1): Only mark a7 register for copying in
3750         windowed ABI.
3751         (xtensa_call_save_reg): New function.
3752         (compute_frame_size): Add space for callee saved register
3753         storage to the frame size in call0 ABI.
3754         (xtensa_expand_prologue): Generate code to set up stack frame
3755         and save callee-saved registers in call0 ABI.
3756         (xtensa_expand_epilogue): New function.
3757         (xtensa_set_return_address): New function.
3758         (xtensa_return_addr): Calculate return address in call0 ABI.
3759         (xtensa_builtin_saveregs): Only mark a7 register for copying and
3760         emit copying code in windowed ABI.
3761         (order_regs_for_local_alloc): Add preferred register allocation
3762         order for non-leaf function in call0 ABI.
3763         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
3764         (xtensa_asm_trampoline_template): Add trampoline generation for
3765         call0 ABI.
3766         (xtensa_trampoline_init): Add trampoline initialization for
3767         call0 ABI.
3768         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
3769         functions.
3770         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
3771         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
3772         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
3773         ABI call-used registers.
3774         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
3775         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
3776         call0 ABI.
3777         (REG_CLASS_CONTENTS): Include all registers into the preferred
3778         reload registers set, adjust the set in the
3779         xtensa_conditional_register_usage.
3780         (xtensa_regno_to_class): Drop variable declaration.
3781         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
3782         function.
3783         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
3784         respectively.
3785         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
3786         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
3787         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
3788         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
3789         location in call0 ABI.
3790         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
3791         stack adjustment size when handling exception.
3792         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
3793         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
3794         definitions.
3795         ("return" pattern): Generate ret.n/ret in call0 ABI.
3796         ("epilogue" pattern): Expand epilogue.
3797         ("nonlocal_goto" pattern): Use default in call0 ABI.
3798         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
3799         emit eh_set_a0_* depending on ABI.
3800         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
3801         ("eh_set_a0_call0", "blockage"): New patterns.
3803 2015-03-03  Martin Liska  <mliska@suse.cz>
3805         PR ipa/65287
3806         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
3808 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3810         PR 65138/target
3811         * config/rs6000/rs6000-tables.opt: Regenerate table.
3813 2015-03-03  Renlin Li  <renlin.li@arm.com>
3815         * doc/md.texi (@item ^): Change ? into ^.
3817 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
3819         * doc/tm.texi: Regenerated.
3821 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
3823         * builtins.c (expand_builtin_return_addr): Add
3824         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
3825         surrounding #ifdef.
3826         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
3827         definition to 1.
3828         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
3829         Likewise.
3830         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
3831         undefined.
3832         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
3833         paragraph.
3835 2015-03-03  Martin Jambor  <mjambor@suse.cz>
3836             Eric Botcazou  <ebotcazou@adacore.com>
3838         * tree-sra.c (ipa_sra_check_caller_data): New type.
3839         (has_caller_p): Removed.
3840         (ipa_sra_check_caller): New function.
3841         (ipa_sra_preliminary_function_checks): Use it.
3843 2015-03-03  Martin Liska  <mliska@suse.cz>
3845         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
3846         instead of if branch.
3848 2015-03-03  Martin Liska  <mliska@suse.cz>
3850         PR ipa/65282
3851         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
3853 2015-03-23  Jeff Law  <law@redhat.com>
3855         PR tree-optimization/65241
3856         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
3857         hash table if INSERT is true.
3859 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
3861         PR target/65296
3862         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
3864 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
3866         PR target/64331
3867         * config/avr/avr.c (context.h, tree-pass.h): Include them.
3868         (avr_pass_data_recompute_notes): New static variable.
3869         (avr_pass_recompute_notes): New class.
3870         (avr_register_passes): New static function.
3871         (avr_option_override): Call it.
3873 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
3875         Fix various problems with specs file generation.
3877         PR target/65296
3878         * config.gcc (extra_gcc_objs) [avr]: Remove.
3879         * config/avr/driver-avr.c: Remove file.
3880         * config/avr/t-avr (driver-avr.o): Remove rule.
3881         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
3882         INCLUDES to build.  Depend on TM_H.
3883         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
3884         build warnings.  Fix non-matching types and non-existing %-codes.
3885         (tm.h): Include.
3886         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
3887         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
3888         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
3889         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
3890         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
3891         (LIBGCC_SPEC): Remove definitions.
3893 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
3895         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
3896         to create a register in testing mode.
3898 2015-03-03  Martin Liska  <mliska@suse.cz>
3899             Jan Hubicka  <hubicka@ucw.cz>
3901         PR ipa/65263
3902         * cgraph.c (cgraph_node::has_thunk_p): New function.
3903         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
3904         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
3905         (sem_function::merge): Assert is changed.
3907 2015-03-03  Martin Liska  <mliska@suse.cz>
3908             Martin Jambor  <mjambor@suse.cz>
3910         PR ipa/65087
3911         * ipa-icf.c (sem_item_optimizer::execute): Change function
3912         return value to boolean.
3913         (sem_item_optimizer::merge_classes): Likewise.
3914         (ipa_icf_driver): Return TODO_remove_functions in case there's
3915         a merge operation processed.
3916         * ipa-icf.h: Change function return value to boolean.
3918 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3920         PR 65138/target
3921         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
3922         processor type for 64-bit little endian PowerPC.
3924         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
3925         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
3926         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
3927         printing built-in mask so it does not pass NULL pointers.
3929         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
3930         -mcpu=powerpc64le.
3932 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
3934         PR target/58158
3935         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
3936         !ISA_HAS_FP_CONDMOVE.
3938 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
3940         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
3941         reload_completed.
3943 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
3945         * doc/invoke.texi (Options for Code Generation Conventions):
3946         Fix URL of DSO paper.
3948 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
3950         PR ipa/65130
3951         * ipa-inline.c (check_callers): Looks for recursion.
3952         (inline_to_all_callers): Give up on uninlinable or recursive edges.
3953         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
3954         summary of inline clones.
3955         (do_estimate_growth_1): Fix recursion check.
3957 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
3959         PR ipa/64988
3960         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
3961         comdat groups.
3963 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
3964             Aldy Hernandez  <aldyh@redhat.com>
3966         PR lto/65276
3967         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
3968         when checking TYPE_BINFO.
3970 2015-03-02  Richard Biener  <rguenther@suse.de>
3972         PR ipa/65270
3973         * ipa-icf-gimple.c: Include builtins.h.
3974         (func_checker::compare_memory_operand): Compare base alignment.
3976 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
3978         PR target/65184
3979         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
3980         are never passed by reference.
3982 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
3984         PR target/65183
3985         * tree-chkp.c (chkp_check_lower): Don't check against
3986         zero bounds for already instrumented functions.
3987         (chkp_check_upper): Likewise.
3988         (chkp_fini): Clean pass local data to avoid wrong reusage.
3990 2015-02-28  Martin Liska  <mliska@suse.cz>
3991             Jan Hubicka  <hubicka@ucw.cz>
3993         * ipa-icf.c (sem_variable::equals): Improve debug output;
3994         get variable constructor.
3995         (sem_variable::parse): Do not filter out too early; give up on
3996         volatile and register vars.
3997         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
3998         variables.
3999         * ipa-icf.h (sem_variable::init): Do not set ctor.
4000         (sem_variable::ctor): Remove.
4002 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
4004         PR middle-end/65233
4005         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
4007 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4009         * ipa-icf.c: Include stor-layout.h
4010         (sem_function::compare_cgraph_references): Rename to ...
4011         (sem_item::compare_cgraph_references): ... this one.
4012         (sem_variable::equals_wpa): New function
4013         (sem_variable::equals): Do not check stuff already verified by
4014         equals_wpa.
4015         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
4016         * ipa-icf.h (sem_item): Add compare_cgraph_references.
4017         (sem_function): Remove compare_cgraph_references.
4018         (sem_variable): Turns equals_wpa into non-inline.
4020 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4022         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
4023         (sem_item::add_expr): New function.
4024         (sem_function::hash_stmt): Handle operands of most statements.
4025         (sem_variable::get_hash): Hash the actual constructor.
4026         * ipa-icf.h (sem_item): Add add_expr.
4027         (sem_function): Update prototype of hash_stmt
4029 2015-02-28  Martin Liska  <mliska@suse.cz>
4030             Jan Hubicka  <hubicka@ucw.cz>
4032         PR ipa/65245
4033         * ipa-icf-gimple.c (func_checker::compare_function_decl):
4034         Remove.
4035         (func_checker::compare_variable_decl): Skip symtab vars.
4036         (func_checker::compare_cst_or_decl): Update.
4037         * ipa-icf.c (sem_function::parse): Do not consider aliases.
4038         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
4039         use correct symtab predicates.
4040         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
4041         (sem_variable::parse):  Update comment.
4042         (sem_item_optimizer::build_graph): Consider ultimate aliases
4043         for references.
4045 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4047         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
4048         of OBJ_TYPE_REF.
4050 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4052         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
4053         (sem_variable::merge) Likewise.
4055 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4057         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
4058         target; also match flag_ipa_devirt.
4060 2015-03-01  Martin Liska  <mliska@suse.cz>
4061             Jan Hubicka  <hubicka@ucw.cz>
4063         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
4064         Validate variable alignment.
4065         * ipa-icf.c (sem_function::equals_private): Be more precise
4066         about non-common function attributes.
4067         (sem_variable::equals): Likewise.
4069 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4071         PR ipa/65237
4072         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
4073         across COMDAT group boundary.
4075 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4077         PR ipa/65232
4078         * ipa-icf.c (clear_decl_rtl): New function.
4079         (sem_function::merge): Clear RTL before forming alias.
4080         (sem_variable::merge): Clear RTL before forming alias.
4082 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4084         PR ipa/65236
4085         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
4087 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
4089         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
4090         to neon_to_gp<q>.
4092 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
4094         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
4095         a typo in the description.
4097 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
4099         PR target/64317
4100         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4101         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
4102         * lra-constraints.c: Include "params.h".
4103         (EBB_PROBABILITY_CUTOFF): Use
4104         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
4105         (lra_inheritance): Use '<' instead of '<=' for
4106         EBB_PROBABILITY_CUTOFF.
4107         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
4108         Document change.
4110 2015-02-27  Martin Liska  <mliska@suse.cz>
4112         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
4113         vector length condition.
4115 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
4117         * doc/extend.texi (x86 transactional memory intrinsics):
4118         Reorganize discussion of _xbegin.  Clarify that the return
4119         value is a bit mask.  Expand example and move to end of section.
4121 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
4122             Aldy Hernandez  <aldyh@redhat.com>
4124         PR rtl-optimization/65220
4125         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
4127 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
4129         PR target/65032
4130         * lra-remat.c (update_scratch_ops): New.
4131         (do_remat): Call it.
4132         * lra.c (lra_register_new_scratch_op): New. Take code from ...
4133         (remove_scratches): ... here.
4134         * lra-int.h (lra_register_new_scratch_op): New prototype.
4136 2015-02-27  Marek Polacek  <polacek@redhat.com>
4138         PR c/65040
4139         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
4140         -Wformat-signedness anymore.
4142 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4144         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
4145         function.
4146         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
4148 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4150         * config/s390/s390.c (enum s390_builtin):
4151         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
4152         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
4153         (s390_init_builtins): Generate new builtin functions.
4154         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
4155         (s390_sfpc, s390_efpc): New pattern definitions.
4157 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4159         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
4160         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
4161         (s390_builtin_decls): New array.
4162         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
4163         (s390_builtin_decl): New function.
4164         (TARGET_BUILTIN_DECL): Define macro.
4166 2015-02-27  Richard Biener  <rguenther@suse.de>
4168         PR middle-end/63175
4169         * builtins.c (get_object_alignment_2): Make sure to re-apply
4170         the ANDed mask after recursing to its operand gets us a new
4171         misalignment bit position.
4173 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
4174             Martin Liska  <mliska@suse.cz>
4176         PR bootstrap/65150
4177         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
4178         Use address_matters_p.
4179         (redirect_all_callers, set_addressable): New functions.
4180         (sem_function::merge): Reorganize and fix merging issues.
4181         (sem_variable::merge): Likewise.
4182         (sem_variable::compare_sections): Remove.
4183         * common.opt (fmerge-all-constants, fmerge-constants): Remove
4184         Optimization flag.
4185         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
4186         redirect them.
4187         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
4188         decl is used.
4189         (address_matters_1): New function.
4190         (symtab_node::address_matters_p): New function.
4191         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
4192         check for merged flag.
4193         * cgraph.h (address_matters_p): Declare.
4194         (symtab_node::address_taken_from_non_vtable_p): Remove.
4195         (symtab_node::address_can_be_compared_p): New method.
4196         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
4197         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
4198         Remove.
4199         (comdat_can_be_unshared_p_1) Use address_matters_p.
4200         (update_vtable_references): Fix formating.
4201         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
4202         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
4203         * cgraphclones.c: Preserve merged and icf_merged flags.
4205 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
4207         * doc/extend.texi (Function Attributes): Fix spelling and typos.
4208         (Label Attributes): Likewise.
4209         (Cilk Plus Builtins): Likewise.
4210         (ARC SIMD Built-in Functions): Likewise.
4211         (ARM C Language Extensions (ACLE)): Likewise.
4212         (PowerPC Built-in Functions): Likewise.
4213         (PowerPC Hardware Transactional Memory Built-in Functions):
4214         Likewise.
4216 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
4218         PR tree-optimization/65216
4219         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
4220         new stmt and new SSA_NAME for lhs whenever the arguments have
4221         changed and weren't just swapped.  Fix comment typo.
4223         PR tree-optimization/65215
4224         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
4225         for PDP endian targets.
4226         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
4227         Fix up formatting issues.
4228         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
4229         size is smaller than the original, adjust MEM_REF offset by the
4230         difference of sizes.  Use is_gimple_mem_ref_addr instead of
4231         is_gimple_min_invariant test to avoid adding address temporaries.
4233 2015-02-26  Martin Liska  <mliska@suse.cz>
4234             Jan Hubicka  <hubicka@ucw.cz>
4236         PR ipa/64693
4237         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
4238         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
4239         (sem_item_optimizer::process_cong_reduction): Include division by
4240         sensitive references.
4241         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
4242         * ipa-ref.c (ipa_ref::address_matters_p): New function.
4243         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
4245 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
4247         PR target/65192
4248         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
4249         Remove.
4250         * config/avr/avr.c: Same.
4251         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
4252         Refuse any constant address not in 0..0xbf.
4253         * config/avr/avr.md (*mov<mode>, *movsf): Remove
4254         tiny_valid_direct_memory_access_range from insn conditions.
4255         (mov<mode>): Don't special-case expansion of avrtiny addresses.
4257 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
4259         PR target/61142
4260         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
4261         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
4262         * config/sh/predicates.md (const_logical_operand): New predicate.
4263         * config/sh/sh.md: Add new peephole2 patterns.
4265 2015-02-26  Marek Polacek  <polacek@redhat.com>
4267         PR ipa/65008
4268         * ipa-inline.c (early_inliner): Recompute inline parameters.
4270 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4272         PR target/65171
4273         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
4274         instructions with TImode operands are included in the analysis.
4276 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
4278         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
4279         of an EDGE_FSM_THREAD.
4281 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4283         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
4285 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
4287         PR debug/46102
4288         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
4290 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
4292         PR tree-optimization/65048
4293         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
4294         (thread_through_all_blocks): Call valid_jump_thread_path.
4295         Remove invalid FSM jump-thread paths.
4297 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
4299         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
4300         (ipa_write_optimization_summaries): Likewise.
4301         * tree-streamer.h: Include data-streamer.h.
4302         (streamer_mode_table): Declare extern variable.
4303         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
4304         * lto-streamer-out.c (lto_output_init_mode_table,
4305         lto_write_mode_table): New functions.
4306         (produce_asm_for_decls): Call lto_write_mode_table when streaming
4307         offloading LTO.
4308         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
4309         (lto_create_simple_input_block): Add mode_table argument to the
4310         lto_input_block constructors.
4311         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
4312         Likewise.
4313         * data-streamer-in.c (string_for_index): Likewise.
4314         * ipa-inline-analysis.c (inline_read_section): Likewise.
4315         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
4316         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
4317         * lto-streamer-in.c (lto_read_body_or_constructor,
4318         lto_input_toplevel_asms): Likewise.
4319         (lto_input_mode_table): New function.
4320         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
4321         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
4322         Use bp_pack_machine_mode.
4323         * real.h (struct real_format): Add name field.
4324         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
4325         (class lto_input_block): Add mode_table member.
4326         (lto_input_block::lto_input_block): Add mode_table_ argument,
4327         initialize mode_table.
4328         (struct lto_file_decl_data): Add mode_table field.
4329         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
4330         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
4331         unpack_ts_decl_common_value_fields,
4332         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
4333         * tree-streamer.c (streamer_mode_table): New variable.
4334         * real.c (ieee_single_format, mips_single_format,
4335         motorola_single_format, spu_single_format, ieee_double_format,
4336         mips_double_format, motorola_double_format,
4337         ieee_extended_motorola_format, ieee_extended_intel_96_format,
4338         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
4339         ibm_extended_format, mips_extended_format, ieee_quad_format,
4340         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
4341         decimal_single_format, decimal_double_format, decimal_quad_format,
4342         ieee_half_format, arm_half_format, real_internal_format): Add name
4343         field.
4344         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4346 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
4348         PR target/65161
4349         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
4350         reordering for selective scheduling.
4352 2015-02-26  Terry Guo  <terry.guo@arm.com>
4354         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
4355         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
4356         (arm_arch_no_volatile_ce): Declare new global variable.
4357         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
4358         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
4359         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
4360         (TARGET_NO_VOLATILE_CE): New macro.
4361         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
4362         volatile memory access in IT block
4364 2015-02-25  Kai Tietz  <ktietz@redhat.com>
4366         PR tree-optimization/61917
4367         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
4368         that reduc_def_stmt is null.
4370 2015-02-25  Martin Liska  <mliska@suse.cz>
4372         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
4373         hard register variables.
4375 2015-02-25  Kai Tietz  <ktietz@redhat.com>
4377         PR target/64212
4378         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
4379         (symtab::noninterposable_alias): Likewise.
4381 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
4383         PR target/65167
4384         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
4385         bounds registers.
4386         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
4388 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
4390         PR target/64997
4391         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
4392         as split condition; force split via '#' in output pattern.
4394 2015-02-25  Richard Biener  <rguenther@suse.de>
4395             Kai Tietz  <ktietz@redhat.com>
4397         PR tree-optimization/61917
4398         * tree-vect-loop.c (vectorizable_reduction): Allow
4399         vect_internal_def without reduction to exit graceful.
4401 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
4403         PR target/65196
4404         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
4405         only with NONDEBUG_INSN_P.
4407 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
4409         Use variadic macros with avr-log.c.
4411         * config/avr/avr-protos.h (avr_vdump): New prototype.
4412         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
4413         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
4414         * config/avr/avr-log.c: Adjust comments.
4415         (avr_vdump): New function.
4416         (avr_vadump): Pass caller as 2nd argument instead of format string.
4417         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
4418         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
4420 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
4422         PR lto/64374
4423         * target.def (target_option_stream_in): New target hook.
4424         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
4425         targetm.target_option.post_stream_in if non-NULL.
4426         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
4427         * doc/tm.texi: Updated.
4428         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
4429         function.
4430         (TARGET_OPTION_POST_STREAM_IN): Redefine.
4432 2015-02-24  Jeff Law  <law@redhat.com>
4434         PR target/65117
4435         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
4436         of operand 0 and operand 2.
4437         (zero_cost_loop_end, loop_end): Similarly.
4439 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
4441         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
4442         CXX_MEM_STAT_INFO.
4444 2015-02-24  DJ Delorie  <dj@redhat.com>
4446         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
4447         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
4448         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
4449         instead of hardcoding SImode.
4451 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
4453         * omp-low.c (create_omp_child_function): Tag entrypoint
4454         functions with a special attribute.
4456 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4458         PR target/65058
4459         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
4461 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
4463         PR rtl-optimization/65123
4464         * lra-remat.c (operand_to_remat): Check hard regs in insn
4465         definition too.
4467 2015-02-24  Nick Clifton  <nickc@redhat.com>
4469         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
4470         to the assembler.
4472 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
4474         PR libgomp/64625
4475         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
4476         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
4477         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
4478         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
4479         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
4480         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
4481         (BUILT_IN_GOACC_PARALLEL): Specify as
4482         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
4483         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
4484         * builtin-types.def
4485         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4486         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4487         Remove function types.
4488         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
4489         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4490         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4491         New function types.
4493 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
4495         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
4497 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
4499         PR tree-optimization/65170
4500         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
4501         if val[1] < 0, clear also val[2] and return 3.
4503 2015-02-24  Alan Modra  <amodra@gmail.com>
4505         PR target/65172
4506         * config/rs6000/rs6000.c (get_memref_parts): Only return true
4507         when *base is a reg.  Handle nested plus addresses.  Simplify
4508         pre_modify test.
4510 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
4512         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
4513         use natural alignment when optimizing for size.
4515 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
4517         PR target/65153
4518         * config/sh/sh.md (movsicc_true+3): Remove peephole.
4519         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
4520         * config/sh/sh.c (replace_n_hard_rtx): Remove.
4522 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
4524         PR fortran/63427
4525         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
4526         too big for a wide_int.  Implement missing wrapping operation.
4528 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
4530         PR target/65163
4531         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
4532         instead of const_int 4294901760.
4534 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
4536         * config/avr/t-avr: Fix typo in comment.
4538 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
4540         * doc/rtl.texi (fma): Clarify documentation.
4542 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
4544         PR debug/58123
4545         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
4546         over input_location.
4548 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
4550         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
4551         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
4552         restrict alignments to absolute_biggest_alignment.
4553         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
4554         Define.
4555         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
4556         * doc/tm.texi: Regenerate.
4557         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
4559 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
4561         PR target/64172
4562         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
4564 2015-02-20  Richard Biener  <rguenther@suse.de>
4566         PR tree-optimization/65136
4567         * tree-ssa-propagate.c: Include cfgloop.h.
4568         (replace_phi_args_in): Avoid replacing loop latch edge PHI
4569         arguments with constants.
4571 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
4572             Martin Liska  <mliska@suse.cz>
4574         PR target/63892
4575         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
4576         don't try to create_thunk if stdarg_p.  If
4577         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
4578         redirect_callers if possible.
4579         (sem_item_optimizer::execute): Call unregister_hooks here...
4580         (ipa_icf_driver): ... instead of here.
4582 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4584         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
4585         Mark operand 0 as earlyclobber in 2nd alternative.
4586         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
4587         Write negated shift amount into QI lowpart operand 0 and use it
4588         in the shift step.
4589         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4591 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
4593         * cgraph.h (clone_function_name_1): Declare.
4594         * cgraphclones.c (clone_function_name_1): New function.
4595         (clone_function_name): Use it.
4596         * lto-partition.c: Include "stringpool.h".
4597         (must_not_rename, maybe_rewrite_identifier)
4598         (validize_symbol_for_target): New static functions.
4599         (privatize_symbol_name): Use must_not_rename.
4600         (promote_symbol): Call validize_symbol_for_target.
4601         (lto_promote_cross_file_statics): Likewise.
4602         (lto_promote_statics_nonwpa): Likewise.
4604 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
4606         PR target/64452
4607         * config/avr/avr.md (pushhi_insn): New insn.
4608         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
4610 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
4611             Jakub Jelinek  <jakub@redhat.com>
4613         * tree-streamer.c (preload_common_nodes): Don't preload
4614         TI_VA_LIST* for offloading.
4615         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
4616         in_lto_p.
4618 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
4620         * config/pa/pa.c (pa_emit_move_sequence): Always force
4621         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
4622         note on insn.
4624         * config/pa/pa.c (pa_reloc_rw_mask): New function.
4625         (TARGET_ASM_RELOC_RW_MASK): Define.
4626         (pa_cannot_force_const_mem): Revert previous change.
4628 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
4629             Jan Hubicka  <hubicka@ucw.cz>
4631         PR ipa/65028
4632         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
4633         across jump functions.
4635 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
4637         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
4639 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
4641         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
4643 2015-02-19  Richard Henderson  <rth@redhat.com>
4645         PR middle-end/65074
4646         * varasm.c (default_binds_local_p_2): Don't test node->definition;
4647         test DECL_EXTERNAL independent of symtab_node.
4649 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
4651         PR lto/65012
4652         * varpool.c (varpool_node::get_constructor): Return early
4653         if this->lto_file_data is NULL.
4655 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4657         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
4658         (rank_for_schedule_debug): Update.
4659         (ready_sort): Make static.  Move sorting logic to ...
4660         (ready_sort_debug, ready_sort_real): New static functions.
4661         (schedule_block): Sort both debug insns and real insns in preparation
4662         for ready list trimming.  Improve debug output.
4663         * sched-int.h (ready_sort): Remove global declaration.
4665 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
4667         * ipa-icf.c (sem_function::equals_private): Adjust.
4668         (sem_function::bb_dict_test): Take a vec<int> * instead of
4669         auto_vec<int>.
4670         * ipa-icf.h (bb_dict_test): Likewise.
4672 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
4674         PR gcov-profile/64634
4675         * tree-eh.c (frob_into_branch_around): Fix up typos
4676         in function comment.
4677         (lower_catch): Put eh_seq resulting from EH lowering of
4678         the cleanup sequence after the cleanup rather than before it.
4680 2015-02-18  Tom de Vries  <tom@codesourcery.com>
4682         * common.opt (fstdarg-opt): New option.
4683         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
4684         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
4685         (@item -fstdarg-opt): New item.
4687 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
4689         PR target/65064
4690         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
4691         for common symbols.
4693 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
4695         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
4696         insn-modes.h.
4697         (ALL_HOST_OBJS): Add mkoffload.o.
4698         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
4700 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
4702         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
4703         (compare_virtual_tables): Be smarter about skipping typeinfos;
4704         do sane output on virtual table table mismatch.
4705         (warn_odr): Be ready for forward declarations of enums;
4706         output sane info on base mismatch and virtual table mismatch.
4707         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
4708         when only one type is polymorphic.
4709         (get_odr_type): Fix hashtable corruption.
4710         (dump_odr_type): Dump mangled names.
4712 2015-02-18  Richard Biener  <rguenther@suse.de>
4714         PR tree-optimization/65063
4715         * tree-predcom.c (determine_unroll_factor): Return 1 if we
4716         have replaced looparound PHIs.
4718 2015-02-18  Martin Liska  <mliska@suse.cz>
4720         * lto-streamer.c (lto_streamer_init): Encapsulate
4721         streamer_check_handled_ts_structures with checking macro.
4723 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
4725         PR ipa/65087
4726         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
4727         section if !implicit_section.
4728         (cgraph_node::create_version_clone_with_body): Likewise.
4729         * trans-mem.c (ipa_tm_create_version): Likewise.
4731 2015-02-18  Richard Biener  <rguenther@suse.de>
4733         PR tree-optimization/62217
4734         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
4735         into BIVs.
4737 2015-02-18  Marek Polacek  <polacek@redhat.com>
4739         PR sanitizer/65081
4740         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
4741         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
4742         is in range [-16K, -1].  Don't issue run-time error if
4743         (ptr > ptr + offset).
4745 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
4747         * doc/install.texi (nvptx-*-none): New section.
4748         * doc/invoke.texi (Nvidia PTX Options): Likewise.
4749         * config/nvptx/nvptx.opt: Update.
4751         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
4752         (access_check): New functions, copied from
4753         config/i386/intelmic-mkoffload.c.
4754         (main): For non-installed testing, look in all COMPILER_PATHs for
4755         GCC_INSTALL_NAME.
4757         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
4759 2015-02-18  Andrew Pinski  <apinski@cavium.com>
4760             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4762         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
4763         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
4765 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
4767         * ipa-visibility.c (function_and_variable_visibility): Only
4768         check locality if node is not already local.
4769         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
4770         call_for_symbol_and_aliases instead of
4771         call_for_symbol_thunks_and_aliases.
4772         (ipa_inline): Likewise.
4773         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4774         first walk aliases.
4775         * ipa.c (symbol_table::remove_unreachable_nodes): Use
4776         call_for_symbol_and_aliases.
4777         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
4778         (ipa_propagate_frequency_1): Use it; use opt_for_fn
4779         (ipa_propagate_frequency): Update.
4780         (ipa_profile): Add opt_for_fn gueards.
4782 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
4784         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
4785         * doc/invoke.texi (SH options): Document it.
4786         * config/sh/sh.c (sh_insn_length_adjustment): Check
4787         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
4789 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
4791         * common.opt (fipa-cp-alignment): New.
4792         * ipa-cp.c (ipcp_store_alignment_results): Check
4793         flag_ipa_cp_alignment.
4794         * opts.c (default_options_table): Enable -fipa-cp-alignment for
4795         -O2.
4796         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
4797         * doc/invoke.texi: Document -fipa-cp-alignment.
4799 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
4801         PR target/64793
4802         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
4803         to nil.  Adjust comments.
4805 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
4807         * ipa-visibility.c (function_and_variable_visibility): Only
4808         check locality if node is not already local.
4809         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
4810         call_for_symbol_and_aliases instead of
4811         call_for_symbol_thunks_and_aliases.
4812         (ipa_inline): Likewise.
4813         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
4814         first walk aliases.
4815         * ipa.c (symbol_table::remove_unreachable_nodes): Use
4816         call_for_symbol_and_aliases.
4817         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
4818         (ipa_propagate_frequency_1): Use it; use opt_for_fn
4819         (ipa_propagate_frequency): Update.
4820         (ipa_profile): Add opt_for_fn guards.
4822 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
4824         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
4825         skipping of "strange" tokens.
4827 2015-02-17  Jeff Law  <law@redhat.com>
4829         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
4830         obsolete comment.
4832 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
4834         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
4835         as forcing a HARD_DEP between instructions, thereby
4836         disallowing rewriting to break dependencies.
4838 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
4840         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
4841         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
4842         variables in boundary that have no inlitalizer encoded and are
4843         not aliases.
4844         * varasm.c (default_binds_local_p_2): External definitions do not
4845         count as definitions here.
4847 2015-02-16  Jeff Law  <law@redhat.com>
4849         PR tree-optimization/64823
4850         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
4851         statements.
4852         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
4853         threading through blocks with PHIs, but no statements.
4854         (thread_through_normal_block): Distinguish between blocks where
4855         we did not process all the statements and blocks with no statements.
4857 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
4858             James Greenhalgh  <james.greenhalgh@arm.com>
4860         PR ipa/64963
4861         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
4862         section if not linkonce.  Fix up formatting.
4863         (cgraph_node::create_version_clone_with_body): Copy section.
4864         * trans-mem.c (ipa_tm_create_version): Likewise.
4866 2015-02-16  Richard Biener  <rguenther@suse.de>
4868         PR tree-optimization/65077
4869         * tree-ssa-structalias.c (get_constraint_for_1): Handle
4870         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
4871         (find_func_aliases): Allow float values to carry pointers again.
4873 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
4875         * doc/install.texi (Specific): Reorder targets list to put
4876         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
4877         from the top menu.
4879 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
4880             David Edelsohn  <dje.gcc@gmail.com>
4882         PR target/65058
4883         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
4884         mapping class to external variable or function reference.
4885         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
4886         mapping class.
4888 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
4890         PR target/53348
4891         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
4892         ASM_WEAKEN_DECL if defined.
4894 2015-02-16  Richard Biener  <rguenther@suse.de>
4896         PR lto/65015
4897         * varasm.c (default_file_start): For LTO produced units
4898         emit <artificial> as file directive.
4900 2015-02-16  Richard Biener  <rguenther@suse.de>
4902         PR tree-optimization/63593
4903         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
4904         stmts and releasing SSA names until...
4905         (execute_pred_commoning): ... after processing all chains.
4907 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
4909         PR ipa/65059
4910         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
4911         external functions.
4913 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
4915         * doc/bugreport.texi: Adjust section titles throughout the file
4916         to use "Title Case".
4917         * doc/extend.texi: Likewise.
4918         * doc/gcov.texi: Likewise.
4919         * doc/implement-c.texi: Likewise.
4920         * doc/implement-cxx.texi: Likewise.
4921         * doc/invoke.texi: Likewise.
4922         * doc/objc.texi: Likewise.
4923         * doc/standards.texi: Likewise.
4924         * doc/trouble.texi: Likewise.
4926 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
4928         * cgraph.h (symtab_node::has_aliases_p): Simplify.
4929         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
4930         * tree.c (lookup_binfo_at_offset): Make static.
4931         (get_binfo_at_offset): Do not shadow offset; add explanatory
4932         comment.
4934 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
4936         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
4937         for all floading point loads and stores except those using a register
4938         index address.
4939         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
4940         to a register.
4942 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
4944         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
4945         (do_estimate_growth_1): Record if any uninlinable edge was seen.
4946         (estimate_growth): Handle uninlinable edges correctly.
4947         (check_callers): New.
4948         (growth_likely_positive): Handle aliases correctly.
4950 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
4952         * ipa-chkp.c: Use iterate_direct_aliases.
4953         * symtab.c (resolution_used_from_other_file_p): Move inline.
4954         (symtab_node::create_reference): Fix formating.
4955         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
4956         (symtab_node::iterate_reference): Move inline.
4957         (symtab_node::iterate_referring): Move inline.
4958         (symtab_node::iterate_direct_aliases): Move inline.
4959         (symtab_node::used_from_object_file_p_worker): Inline into ...
4960         (symtab_node::used_from_object_file_p): ... this one; move inline.
4961         (symtab_node::call_for_symbol_and_aliases): Move inline;
4962         use iterate_direct_aliases.
4963         (symtab_node::call_for_symbol_and_aliases_1): New method.
4964         (cgraph_node::call_for_symbol_and_aliases): Move inline;
4965         use iterate_direct_aliases.
4966         (cgraph_node::call_for_symbol_and_aliases_1): New method.
4967         (varpool_node::call_for_node_and_aliases): Rename to ...
4968         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
4969         use iterate_direct_aliases.
4970         (varpool_node::call_for_symbol_and_aliases_1): New method.
4971         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
4972         (ipa_discover_readonly_nonaddressable_var): Update.
4973         * ipa-devirt.c: Fix formating.
4974         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
4975         Move inline.
4976         (cgraph_node::call_for_symbol_and_aliases): Move inline.
4977         (cgraph_node::call_for_symbol_and_aliases_1): New function..
4978         * cgraph.h (used_from_object_file_p_worker): Remove.
4979         (resolution_used_from_other_file_p): Move inline.
4980         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
4981         (symtab_node::iterate_reference): Move inline.
4982         (symtab_node::iterate_referring): Move inline.
4983         (symtab_node::iterate_direct_aliases): Move inline.
4984         (symtab_node::used_from_object_file_p_worker): Inline into ...
4985         (symtab_node::used_from_object_file_p): Move inline.
4986         * tree-emutls.c (ipa_lower_emutls): Update.
4987         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
4988         (varpool_node::call_for_node_and_aliases): Remove.
4990 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
4992         PR tree-optimization/62209
4993         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
4994         op == range->exp, insert seq and gimplified code after labels
4995         instead of after the phi.
4997 2015-02-13  Jeff Law  <law@redhat.com>
4999         PR bootstrap/65060
5000         Revert my change for tree-optimization/64823.
5002 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
5004         PR tree-optimization/65053
5005         * tree-ssa-phiopt.c (value_replacement): When moving assign before
5006         cond, either reset VR on lhs or set it to phi result VR.
5008 2015-02-13  Jeff Law  <law@redhat.com>
5010         PR tree-optimization/64823
5011         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
5012         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5013         threading through blocks with PHIs, but no statements.
5014         (thread_through_normal_block): Distinguish between blocks where
5015         we did not process all the statements and blocks with no statements.
5017         PR rtl-optimization/47477
5018         * match.pd (convert (plus/minus (convert @0) (convert @1): New
5019         simplifier to narrow arithmetic.
5021 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
5023         PR ipa/65028
5024         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
5025         polymorphic call info when type is not known to be preserved.
5027 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
5029         PR ipa/65028
5030         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
5031         (inline_call): Use it.
5033 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
5035         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
5036         GOMP_DEVICE_NVIDIA_PTX.
5038 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
5040         PR ipa/65034
5041         * stmt.c (emit_case_nodes): Use void_type_node instead of
5042         NULL_TREE as LABEL_DECL type.
5044 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
5046         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
5047         constraints.
5048         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
5049         symbolic references to data to be forced to constant memory on the
5050         SOM target.
5052 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5054         PR tree-optimization/65002
5055         * tree-cfg.c (pass_data_fixup_cfg): Don't update
5056         SSA on start.
5057         * tree-sra.c (some_callers_have_no_vuse_p): New.
5058         (ipa_early_sra): Reject functions whose callers
5059         assume function is read only.
5061 2015-02-13  Richard Biener  <rguenther@suse.de>
5063         PR lto/65015
5064         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
5065         for LTO produced CUs.
5067 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
5069         PR tree-optimization/64705
5070         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
5071         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
5072         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
5073         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
5074         expand_simple_operations.
5076 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
5077             Richard Henderson  <rth@redhat.com>
5079         PR rtl/32219
5080         * cgraphunit.c (cgraph_node::finalize_function): Set definition
5081         before notice_global_symbol.
5082         (varpool_node::finalize_decl): Likewise.
5083         * varasm.c (default_binds_local_p_2): Rename from
5084         default_binds_local_p_1, add weak_dominate argument.  Use direct
5085         returns instead of assigning to local variable.  Unify varpool and
5086         cgraph paths via symtab_node.  Reject undef weak variables before
5087         testing visibility.  Reorder tests for simplicity.
5088         (default_binds_local_p): Use default_binds_local_p_2.
5089         (default_binds_local_p_1): Likewise.
5090         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
5091         via symtab_node.
5092         (default_elf_asm_output_external): Emit visibility when specified.
5094 2015-02-13  Alan Modra  <amodra@gmail.com>
5096         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
5097         code setting up r11 for out-of-line fp restore.
5099 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
5101         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
5102         (muser-mode): Likewise.
5104 2015-02-13  Alan Modra  <amodra@gmail.com>
5106         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
5107         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
5109 2015-02-12  David Howells  <dhowells@redhat.com>
5111         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
5112         warning.
5113         * tree-ssa-uninit.c (dump_predicates): Likewise.
5114         * opts.c (print_filtered_help): Likewise.
5116 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
5118         * dwarf2out.c (output_die): Use "%s", name instead of name to
5119         avoid -Wformat-security warning.
5121         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
5122         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5123         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
5124         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
5126 2015-02-12  Jason Merrill  <jason@redhat.com>
5128         * common.opt (-flifetime-dse): New.
5130 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
5132         PR sanitizer/65019
5133         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
5135         PR tree-optimization/65014
5136         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
5137         use original second operand of arg0 or arg1 instead of
5138         that adjusted by STRIP_NOPS.
5140 2015-02-11  Jeff Law  <law@redhat.com>
5142         PR target/63347
5143         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
5144         that needs to be queued, just queue it for a single cycle.
5146 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
5148         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
5149         bodies of thunks; comment on why.
5150         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
5151         symbols are extern.
5153 2015-02-11  Richard Henderson  <rth@redhat.com>
5155         PR sanitize/65000
5156         * tree-eh.c (mark_reachable_handlers): Mark source and destination
5157         regions of __builtin_eh_copy_values.
5159 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
5161         PR middle-end/65003
5162         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
5163         ultimate alias is MEM with SYMBOL_REF satisfying
5164         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
5165         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
5167 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
5169         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
5170         "diagnostic-core.h".
5171         (main): Initialize progname, and call diagnostic_initialize.
5173         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
5174         instead of __OPENMP_TARGET__.
5176         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
5177         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
5178         hard-coding PTX_ID.
5180 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
5182         * doc/sourcebuild.texi (pie_enabled): Document.
5184 2015-02-11  Martin Liska  <mliska@suse.cz>
5186         PR ipa/64813
5187         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
5188         a return value for call to a function that is noreturn.
5190 2015-02-11  Richard Biener  <rguenther@suse.de>
5192         PR lto/65015
5193         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
5194         and -fresolution.
5196 2015-02-11  Andrew Pinski  <apinski@cavium.com>
5198         PR target/64893
5199         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5200         Change the first argument type to size_type_node and add another
5201         size_type_node.
5202         (aarch64_simd_expand_builtin): Handle the new argument to
5203         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
5204         print an out when the first two arguments are not
5205         nonzero integer constants.
5206         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
5207         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
5209 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
5211         PR target/61925
5212         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
5213         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
5214         (ix86_set_current_function): Rewritten.
5215         (ix86_add_new_builtins): Temporarily clear current_target_pragma
5216         when creating builtin fndecls.
5218 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
5220         PR ipa/65005
5221         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
5222         function.
5223         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
5224         have no comdat group.
5225         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
5226         (lto_output_varpool_node): Always output alias info.
5227         (output_refs): Output refs of boundary aliases, too.
5228         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
5229         (output_symtab): Output call eges in thunks in boundary.
5230         (get_alias_symbol): Remove.
5231         (input_node, input_varpool_node): Do not special case weakrefs.
5232         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
5233         alias and thunks targets in the boundary; do not take removed symbols
5234         from their comdat groups.
5235         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
5236         (cgraph_node::global_info): Remove.
5237         (cgraph_node::rtl_info): Look through aliases and thunks.
5238         * cgrpah.h (global_info): Remove.
5239         (non_local_p): Remove.
5241 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
5242             Sandra Loosemore  <sandra@codesourcery.com>
5244         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
5245         to inline asm.  List dialects in proper order.
5247 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
5248             Sandra Loosemore  <sandra@codesourcery.com>
5250         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
5252 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
5254         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
5255         modified) reference to Solaris.
5257 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
5259         * doc/extend.texi (Extended Asm): Fix typos.
5261 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
5263         PR sanitizer/65004
5264         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
5266 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
5268         PR target/64661
5269         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
5270         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
5271         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
5272         * config/sh/constraints.md (Ara, Add): New constraints.
5273         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
5274         predicates.
5275         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
5276         atomic_mem_operand_0.  Don't use force_reg on the memory address.
5277         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
5278         Sra constraint.  Convert to insn_and_split.  Add workaround for
5279         PR 64974.
5280         (atomic_compare_and_swap<mode>_hard): Copy to
5281         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
5282         Use atomic_mem_operand_0 predicate.
5283         (atomic_compare_and_swap<mode>_soft_gusa,
5284         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
5285         AraAdd constraints.
5286         (atomic_compare_and_swap<mode>_soft_tcb,
5287         atomic_compare_and_swap<mode>_soft_imask,
5288         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
5289         atomic_mem_operand_0 predicate and SraSdd constraints.
5290         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
5291         constraint.
5292         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
5293         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
5294         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
5295         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
5296         force_reg on the memory address.
5297         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
5298         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
5299         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
5300         atomic_mem_operand_1 predicate and Sra constraint.
5301         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
5302         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
5303         Use atomic_mem_operand_1 predicate.
5304         (atomic_<fetchop_name><mode>_hard): Copy to
5305         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
5306         Use atomic_mem_operand_1 predicate.
5307         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
5308         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
5309         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
5310         insn_and_split.  Use atomic_mem_operand_1 predicate.
5311         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
5312         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
5313         Use atomic_mem_operand_1 predicate.
5314         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
5315         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
5316         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
5317         in generated insn with original mem operand before emitting the insn.
5318         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
5319         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
5320         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
5321         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
5322         Use atomic_mem_operand_1 predicate and AraAdd constraints.
5323         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
5324         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
5325         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
5326         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
5327         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
5328         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
5329         atomic_not_fetch<mode>_soft_tcb,
5330         atomic_<fetchop_name>_fetch<mode>_soft_imask,
5331         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
5332         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
5333         Use atomic_mem_operand_1 predicate and SraSdd constraints.
5335 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
5337         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
5338         and 3 earlyclobber operands.
5340 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
5342         * common.opt (fstack-reuse): Mark as optimization.
5344 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
5346         PR ipa/64982
5347         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
5349 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
5351         PR tree-optimization/64326
5352         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
5354 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
5356         PR gcov-profile/61889
5357         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
5359 2015-02-10  Richard Biener  <rguenther@suse.de>
5361         PR tree-optimization/64995
5362         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
5363         value we use is final.
5364         (visit_reference_op_store): Always valueize op.
5365         (visit_use): Properly valueize vuses.
5367 2015-02-10  Richard Biener  <rguenther@suse.de>
5369         PR tree-optimization/64909
5370         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
5371         pass a scalar-stmt count estimate to the cost model.
5372         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
5374 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
5376         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
5377         enabled by default together with var-tracking.
5379 2015-02-10  Nick Clifton  <nickc@redhat.com>
5381         * config/rl78/rl78.c: Remove DIV attribute code accidentally
5382         included in previous rl78 commit.
5384 2015-02-10  Richard Biener  <rguenther@suse.de>
5386         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
5387         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
5388         return the bitpack.
5390 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
5392         PR gcov-profile/61889
5393         * config.in: regenerate.
5394         * configure.in: Likewise.
5395         * configure.ac: Check for ftw.h.
5396         * gcov-tool.c: Check for ftw.h before using nftw.
5398 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
5400         PR lto/64076
5401         * ipa-visibility.c (update_visibility_by_resolution_info): Only
5402         assert when not in lto mode.
5404 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5406         * ira-color.c (setup_left_conflict_sizes_p): Simplify
5407         initialization/assignment of conflict_size.
5409 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
5411         PR ipa/64978
5412         * ipa-cp.c (gather_caller_stats): Skip thunks.
5413         (propagate_constants_topo): Skip aliases.
5415 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5417         PR target/64761
5418         * config/sh/sh.c (sh_option_override): Don't change
5419         -freorder-blocks-and-partition to -freorder-blocks even when
5420         unwinding is enabled.
5421         (sh_can_follow_jump): Return false if the followee jump is
5422         a crossing jump when -freorder-blocks-and-partition is specified.
5423         * config/sh/sh.md (*jump_compact_crossing): New insn.
5425 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5426             Kaz Kojima  <kkojima@gcc.gnu.org>
5428         PR target/64761
5429         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
5430         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
5431         (sh_can_redirect_branch): Rename to ...
5432         (sh_can_follow_jump): ... this.  Constify argument types.
5433         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
5434         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
5435         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
5436         * doc/tm.texi: Regenerate.
5438 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
5440         PR sanitizer/64981
5441         * builtins.c (expand_builtin): Call targetm.expand_builtin
5442         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
5444 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5446         PR ipa/61548
5447         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
5449 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5451         PR ipa/63566
5452         * ipa-icf.c (set_local): New function.
5453         (sem_function::merge): Use it.
5455 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5457         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
5458         (add_type_duplicate): Fix comparison of BINFOs.
5460 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5462         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
5463         on getting VOID pointer.
5465 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
5467         PR target/64979
5468         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
5469         va_list escapes.
5471 2015-02-09  Richard Biener  <rguenther@suse.de>
5473         * genmatch.c (replace_id): Copy expr_type.
5475 2015-02-09  Richard Biener  <rguenther@suse.de>
5477         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
5478         (streamer_write_tree_bitfields): Declare.
5479         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
5480         properly unpack padding.
5481         (unpack_value_fields): Inline ...
5482         (streamer_read_tree_bitfields): ... here.
5483         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
5484         and properly add padding bits.
5485         (streamer_pack_tree_bitfields): Fold into ...
5486         (streamer_write_tree_bitfields): ... this new function,
5487         exposing the bitpack object.
5488         * lto-streamer-out.c (lto_write_tree_1): Call
5489         streamer_write_tree_bitfields.
5491 2015-02-09  Richard Biener  <rguenther@suse.de>
5493         PR tree-optimization/54000
5494         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
5495         (struct ivopts_data): Add loop_loc member.
5496         (tree_ssa_iv_optimize_loop): Dump loop location.
5497         (create_new_ivs): Likewise, also dump number of IVs generated.
5499 2015-02-09  Martin Liska  <mliska@suse.cz>
5501         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
5502         just if not yet registered.
5503         (ipa_icf_generate_summary): Register callgraph hooks.
5505 2015-02-08  Andrew Pinski  <apinski@cavium.com>
5507         * config/aarch64/aarch64.c (gty_dummy): Delete.
5509 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5511         PR ipa/63566
5512         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
5513         (cgraph_node::local_p): Remove thunk related FIXME.
5515 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5517         PR ipa/63566
5518         * i386.c (ix86_function_regparm): Look through aliases to see if callee
5519         is local and optimized.
5520         (ix86_function_sseregparm): Likewise; also use target's SSE math
5521         settings; error out instead of silently generating wrong code
5522         on mismatches.
5523         (init_cumulative_args): Look through aliases.
5525 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5527         PR ipa/63566
5528         * ipa-split.c (execute_split_functions): Split if function has aliases.
5530 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
5532         PR ipa/63566
5533         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
5534         aliases before trying to expand it.
5535         (cgraph_node::expand_thunk): Fix formating.
5537 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
5539         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
5540         (Using Assembly Language with C): Expand introduction.
5541         (Basic Asm): Copy-edit.  Add more information about uses of
5542         basic asm.
5543         (Extended Asm): Copy-edit.  Document new escape syntax and
5544         %l[label] syntax.
5545         (Global Reg Vars): Copy-edit.
5546         (Local Reg Vars): Likewise.
5548 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
5550         PR debug/2714
5551         PR bootstrap/64256
5552         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
5553         (DBX_CONTIN_CHAR): Define.
5555 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
5556             Brian Rzycki  <b.rzycki@samsung.com>
5558         PR tree-optimization/64878
5559         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
5560         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
5561         Stop recursion at loop phi nodes after having visited a loop phi node.
5563 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
5565         * toplev.c (process_options): Change flag_ipa_ra before creating
5566         optimization_{default,current}_node.
5568         PR ipa/64896
5569         * cgraphunit.c (cgraph_node::expand_thunk): If
5570         restype is not is_gimple_reg_type nor the thunk_fndecl
5571         returns aggregate_value_p, set restmp to a temporary variable
5572         instead of resdecl.
5574 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
5576         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
5578 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5580         PR target/64205
5581         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
5582         add a general secondary reload handler for SDmode, unless we have
5583         both read/write support for SDmode.
5585 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
5587         PR middle-end/64937
5588         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
5589         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
5590         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
5591         1 before, push it to abstract_vec.
5592         (dwarf2out_abstract_function): Adjust caller.  Don't call
5593         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
5594         DECL_ABSTRACT_P flags for all abstract_vec elts.
5596 2015-02-06  Renlin Li  <renlin.li@arm.com>
5598         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
5599         complex gimple.
5600         * tree-ssa.c (execute_update_addresses_taken): Likewise.
5602 2015-02-06  Jeff Law  <law@redhat.com>
5604         PR target/64889
5605         * config/h8300/h8300.c (push): New argument "in_prologue".
5606         Pass "in_prologue" along to "F".
5607         (h8300_push_pop): Corresponding changes.
5608         (h8300_expand_prologue): Likewise.
5609         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
5611 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
5613         PR rtl-optimization/64957
5614         PR debug/64817
5615         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
5616         IOR rather than for AND.
5618 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
5620         PR target/62631
5621         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
5622         of shift-add and (add + shift) operations.  Rename local variable.
5624 2015-02-05  Jeff Law  <law@redhat.com>
5626         PR target/17306
5627         * config/h8300/constraints.md (U): Correctly dectect
5628         "eightbit_data" memory addresses.
5629         * config/h8300/h8300.c (eightbit_constant_address_p): Also
5630         handle (const (plus (symbol_ref (x)))) where x is declared
5631         as an 8-bit data memory address.
5632         * config/h8300/h8300.md (call, call_value): Correctly detect
5633         "funcvec" functions.
5635         PR target/43264
5636         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
5637         24 to 28 bits for the H8/300.
5639 2015-02-06  Alan Modra  <amodra@gmail.com>
5641         PR target/64876
5642         * config/rs6000/rs6000.c (chain_already_loaded): New function.
5643         (rs6000_call_aix): Use it.
5645 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
5647         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
5648         check.
5650 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
5652         * config/h8300/constraints.md ("U" constraint): Use strict
5653         variant of REG_OK_FOR_BASE_P after reload has started.
5655 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
5657         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
5658         define to zero if !TARGET_NEON.
5659         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
5661 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5662             Trevor Saunders  <tsaunders@mozilla.com>
5664         PR ipa/61548
5665         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
5667 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5669         PR ipa/61548
5670         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
5671         when removing varpool nodes.
5673 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5675         PR ipa/61548
5676         * varpool.c (varpool_node::remove): Fix order of variables.
5678 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5680         PR ipa/64686
5681         * ipa-inline.c (inline_small_functions): Fix ordering issue between
5682         speculation resolution and key updates.
5684 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5686         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
5687         about not letting any speculative edges unupdated.
5689 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5691         PR gcov/64123
5692         * gcov-io.c (gcov_var): Export.
5694 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5696         PR middle-end/64922
5697         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
5698         edges that become speculative.
5700 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
5702         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
5703         or DW_LANG_Fortran08.
5704         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
5705         DW_LANG_Fortran08.
5706         (gen_compile_unit_die): Handle "GNU Fortran2003" and
5707         "GNU Fortran2008" language strings.
5708         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
5709         * langhooks.h (lang_GNU_Fortran): New prototype.
5710         * langhooks.c (lang_GNU_Fortran): New function.
5711         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
5712         lang_GNU_Fortran.
5714 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
5716         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
5717         (RTX_OK_FOR_OLO10_P): Likewise.
5719 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
5721         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
5723 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
5725         PR middle-end/64922
5726         * gimple.c: Include gimple-ssa.h.
5727         (maybe_remove_unused_call_args): New function.
5728         * gimple.h (maybe_remove_unused_call_args): Declare.
5729         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
5730         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
5731         * gimple-fold.c (gimple_fold_call): Likewise.
5733 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
5735         PR rtl-optimization/64905
5736         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
5737         pointer alignment if it isn't needed.
5739 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
5741         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
5742         cortex-a72.cortex-a53.
5743         * config/aarch64/aarch64-tune.md: Regenerate.
5744         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
5746 2015-02-04  Nick Clifton  <nickc@redhat.com>
5748         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
5749         inside a MEM.
5751 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
5753         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
5754         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
5755         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
5756         of DEF_BUILTIN.
5757         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
5758         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
5759         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
5760         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
5761         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
5762         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
5763         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
5764         * tree-core.h (enum built_in_function): In between
5765         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
5766         for builtins that use DEF_BUILTIN_CHKP macro.
5768 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
5770         PR debug/64817
5771         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
5772         operands for tcc_comparison exprs.  Fix typos.
5774         PR debug/64817
5775         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
5776         of two XORs that have an intervening AND or IOR.
5778         PR debug/64817
5779         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
5780         simplification of XOR of AND to not allocate new rtx before
5781         committing to a simplification.
5783 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5785         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
5786         manual swaps in all peepholes.
5788 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5790         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
5791         of manual swapping implementation.
5792         (aarch64_expand_vec_perm_const_1): Likewise.
5794 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
5796         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
5797         (generic_addrcost_table): Remove NAMED_PARAM.
5798         (cortexa57_addrcost_table): Likewise.
5799         (xgene1_addrcost_table): Likewise.
5800         (generic_regmove_table): Likewise.
5801         (cortexa53_regmove_table): Likewise.
5802         (xgene1_regmove_table): Likewise.
5803         (generic_vector_table): Likewise.
5804         (cortexa57_vector_table): Likewise.
5805         (xgene1_vector_table): Likewise.
5806         (generic_tunings): Likewise.
5807         (cortexa53_tunings): Likewise.
5808         (cortexa57_tunings): Likewise.
5809         (xgene1_tunings): Likewise.
5811 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
5813         * config/arm/arm-cores.def: Add cortex-a72 and
5814         cortex-a72.cortex-a53.
5815         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
5816         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5817         * config/arm/arm-tune.md: Regenerate.
5818         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
5819         "cortex-a72.cortex-a53".
5820         * doc/invoke.texi (ARM Options/-mtune): Likewise.
5822 2015-02-04  Nick Clifton  <nickc@redhat.com>
5824         PR target/64408
5825         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
5826         of accepted codes.
5827         (nonimmediate_di_operand): Likewise.
5829         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
5830         prefixes of known F5 using MSP430 MCUs.
5832 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5834         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
5835         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
5836         instead of __builtin_sqrt.
5838 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
5840         * varasm.c (do_assemble_alias): Follow transparent alias
5841         chain for target.
5842         (default_assemble_visibility): Follow transparent alias
5843         chain for decl name.
5845 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5847         PR middle-end/62103
5848         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
5849         to compute size of referenced value in the constant case.
5851 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
5853         PR rtl-optimization/64756
5854         * cse.c (invalidate_dest): New function.
5855         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
5856         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
5857         invalidate and do not record it.
5859 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
5861         PR target/64660
5862         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
5863         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
5864         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
5865         atomic_nand<mode>_soft_tcb): New insns.
5866         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
5867         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
5868         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
5869         Split into atomic_not_fetchsi_hard if operands[0] is unused.
5870         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
5871         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
5872         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
5873         atomic_not<mode>_hard if operands[0] is unused.
5874         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
5875         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
5876         if operands[0] is unused.
5877         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
5878         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
5879         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
5880         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
5881         unused.
5882         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
5883         into atomic_not<mode>_soft_tcb if operands[0] is unused.
5884         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
5885         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
5886         if operands[0] is unused.
5887         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
5888         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
5889         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
5890         atomic_nand_fetchsi_hard if operands[0] is unused.
5891         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
5892         atomic_nand<mode>_hard if operands[0] is unused.
5893         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
5894         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
5895         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
5896         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
5897         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
5898         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
5899         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
5900         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
5901         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
5902         atomic_not<mode>_hard if operands[0] is unused.
5903         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
5904         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
5905         unused.
5906         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
5907         into atomic_not<mode>_soft_tcb if operands[0] is unused.
5908         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
5909         atomic_nand<mode>_hard if operands[0] is unused.
5910         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
5911         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
5913 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
5915         PR jit/64810
5916         * Makefile.in (GCC_OBJS): Add gcc-main.o.
5917         * gcc-main.c: New file, containing "main" taken from gcc.c.
5918         * gcc.c (do_self_spec): Free decoded_options.
5919         (class driver): Move declaration to gcc.h.
5920         (main): Move declaration and implementation to new file
5921         gcc-main.c.
5922         (driver_get_configure_time_options): New function.
5923         * gcc.h (class driver): Move this declaration here, from
5924         gcc.c.
5925         (driver_get_configure_time_options): New declaration.
5927 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
5929         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
5930         cross-module inlining.
5931         * cgraph.h (cgraph_node): Add flag merged.
5932         * ipa-icf.c (sem_function::merge): Maintain it.
5934 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
5936         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
5937         instead of OBJECT_P.
5939 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
5941         PR target/62631
5942         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
5943         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
5944         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
5945         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
5947 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
5949         PR other/63504
5950         * combine.c (reg_n_sets_max): New variable.
5951         (can_change_dest_mode, reg_nonzero_bits_for_combine,
5952         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
5953         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
5954         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
5955         (rest_of_handle_combine): Initialize reg_n_sets_max.
5957 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
5959         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
5960         if some always_inline was inlined, apply changes before inlining
5961         heuristically.
5963 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
5965         PR jit/64810
5966         * config/arm/arm.c (arm_option_override): Set
5967         arm_selected_arch/cpu/tune to NULL on entry.
5969 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
5970             Andrew Pinski  <pinskia@gcc.gnu.org>
5971             Jakub Jelinek  <jakub@gcc.gnu.org>
5973         PR target/64231
5974         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
5975         integer typing for small model. Use IN_RANGE.
5977 2015-02-02  Richard Biener  <rguenther@suse.de>
5979         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
5980         * tree-vrp.c (vrp_valueize_1): Likewise.
5982 2015-02-02  Alan Modra  <amodra@gmail.com>
5984         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
5985         than mem for toc_restore.
5986         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
5987         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
5988         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
5990 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
5992         PR target/64047
5993         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
5994         explicit default options.
5996 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
5998         PR ipa/64872
5999         * ipa-utils.c (ipa_merge_profiles): Add release argument.
6000         * ipa-icf.c (sem_function::merge): Do not release body when merging.
6001         * ipa-utils.h (ipa_merge_profiles): Update prototype.
6003 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
6005         PR debug/64817
6006         * cfgexpand.c (deep_ter_debug_map): New variable.
6007         (avoid_deep_ter_for_debug): New function.
6008         (expand_debug_expr): If TERed SSA_NAME is in
6009         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
6010         instead of trying to expand SSA_NAME's def stmt.
6011         (expand_debug_locations): When expanding debug bind
6012         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
6013         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
6014         value.
6015         (pass_expand::execute): Call avoid_deep_ter_for_debug on
6016         all debug bind stmts.  Delete deep_ter_debug_map after
6017         expand_debug_location if non-NULL and clear it.
6019 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
6021         PR target/64851
6022         * config/sh/sync.md (atomic_fetch_notsi_hard,
6023         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
6024         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
6025         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
6026         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
6027         atomic_not_fetch<mode>_soft_imask): New insns.
6029 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
6031         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
6032         (rank_for_schedule_debug): Split from ...
6033         (rank_for_schedule): ... this.
6034         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
6035         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
6037 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
6039         * doc/md.texi (Machine Constraints): Alphabetize table by target.
6040         * doc/extend.texi (x86 Variable Attributes): Move section to
6041         correct alphabetization after renaming.
6042         (x86 Type Attributes): Likewise.
6043         (Target Builtins): Re-alphabetize menu.
6044         (x86 Built-in Functions): Move section to correct alphabetization
6045         after renaming.
6046         (x86 transactional memory intrinsics): Likewise.
6047         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
6048         and x86 Windows Options in table and menu.
6049         (x86 Options): Move section to correct alphabetization after
6050         renaming.
6051         (x86 Windows Options): Likewise.
6053 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
6055         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
6056         preferred names of the architecture and its 32- and 64-bit
6057         variants.
6058         * doc/invoke.texi: Likewise.
6059         * doc/md.texi: Likewise.
6061 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
6063         PR target/64882
6064         * config/i386/predicates.md (address_no_seg_operand): Reject
6065         non-CONST_INT_P operands in invalid mode.
6067 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
6069         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
6070         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
6071         * config/i386/predicates.md (address_no_seg_operand): Call
6072         address_operand with VOIDmode.
6073         (vsib_address_operand): Ditto.
6074         (address_mpx_no_base_operand): Ditto.
6075         (address_mpx_no_index_operand): Ditto.
6077 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
6079         PR target/64688
6080         * lra-constraints.c (original_subreg_reg_mode): New.
6081         (simplify_operand_subreg): Try to simplify subreg of const.  Use
6082         original_subreg_reg_mode for it.
6083         (swap_operands): Update original_subreg_reg_mode.
6084         (curr_insn_transform): Set up original_subreg_reg_mode.
6086 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
6088         PR target/64617
6089         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
6090         function.
6091         (process_alt_operands): Use it.
6092         (curr_insn_transform): Check the optional reload pseudo class is
6093         ok for the mode.
6095 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
6097         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
6098         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
6099         prototype.
6100         * toplev.h (init_asm_output): Update comment on use of
6101         UNKNOWN_LOCATION with fatal_error.
6102         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
6103         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
6104         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
6105         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
6106         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
6107         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
6108         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
6109         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
6110         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
6111         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
6112         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
6113         fatal_error changed to pass input_location as first argument.
6115 2015-01-30  Martin Liska  <mliska@suse.cz>
6117         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
6118         in #pragma GCC diagnostic guards.
6120 2015-01-30  Richard Biener  <rguenther@suse.de>
6122         PR tree-optimization/64829
6123         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
6124         not add a widening conversion pattern but hand off extra
6125         widenings to callers.
6126         (vect_recog_widen_mult_pattern): Handle extra widening produced
6127         by vect_handle_widen_op_by_const.
6128         (vect_recog_widen_shift_pattern): Likewise.
6129         (vect_pattern_recog_1): Remove excess vertical space in dumping.
6130         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6131         (vect_init_vector_1): Likewise.
6132         (vect_get_vec_def_for_operand): Likewise.
6133         (vect_finish_stmt_generation): Likewise.
6134         (vectorizable_load): Likewise.
6135         (vect_analyze_stmt): Likewise.
6136         (vect_is_simple_use): Likewise.
6138 2015-01-29  Jeff Law  <law@redhat.com>
6140         * combine.c (try_combine): Fix typo in comment.
6142 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
6144         PR target/64580
6145         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
6146         (rs6000_stack_info): Add assert.
6147         (rs6000_output_savres_externs): New function, split off from...
6148         (rs6000_output_function_prologue): ... here.  Do not call it for
6149         thunks.
6151 2015-01-29  Jeff Law  <law@redhat.com>
6153         PR target/15184
6154         * combine.c (try_combine): If I0 is a memory load and I3 a store
6155         to a related address, increase the "goodness" of doing a 4-insn
6156         combination with I0-I3.
6157         (make_field_assignment): Handle SUBREGs in the ior+and case.
6159 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
6161         PR tree-optimization/64746
6162         * tree-if-conv.c (mask_exists): New function.
6163         (predicate_mem_writes): Save created mask with given size for further
6164         use.
6165         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
6166         (ifcvt_repair_bool_pattern): Collect all statements that are root
6167         of bool pattern and use iterative algorithm to remove multiple uses
6168         of predicates, display number of required iterations.
6170 2015-01-29  Richard Biener  <rguenther@suse.de>
6172         PR tree-optimization/64853
6173         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
6174         stmt will get simulated again.
6175         * tree-ssa-ccp.c (valueize_op_1): Likewise.
6177 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6179         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
6180         return_in_pc.  Remove redundant assignments.
6181         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
6182         (arm_expand_epilogue): Don't compare boolean with true in if condition.
6184 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
6186         * config/i386/i386.c (ix86_mode_after): Make static.
6188 2015-01-29  Richard Biener  <rguenther@suse.de>
6190         PR tree-optimization/64844
6191         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
6192         dump cost model analysis.
6193         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6194         Do not register adjusted load/store costs here.
6196 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6197             Uros Bizjak  <ubizjak@gmail.com>
6199         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
6200         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
6201         using x86_use_pseudo_pic_reg.
6202         * config/i386/i386.c (ix86_conditional_register_usage): Remove
6203         support for fixed PIC register.
6204         (ix86_use_pseudo_pic_reg): Not static any more.
6206 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
6208         PR middle-end/64805
6209         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
6210         to avoid error in cgraph node verification.
6212 2015-01-29  Marek Polacek  <polacek@redhat.com>
6214         * doc/standards.texi: Reflect that the default for C is gnu11.
6216 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6218         PR target/64761
6219         * reorg.c (switch_text_sections_between_p): New function.
6220         (relax_delay_slots): Call it when testing if the jump insn
6221         is removable.  Use targetm.can_follow_jump when testing if
6222         the conditional branch can follow an unconditional jump.
6224 2015-01-27  Caroline Tice  <cmtice@google.com>
6226         Committing VTV Cywin/Ming patch for Patrick Wollgast
6227         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
6228         if -fvtable-verify=preinit/std is used.
6229         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
6230         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
6231         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
6232         if -fvtable-verify=preinit/std is used.
6233         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
6234         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
6235         if -fvtable-verify=preinit/std is used.
6236         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
6237         * config/i386/mingw32.h (LIB_SPEC): Likewise.
6238         * varasm.c (assemble_variable): Add code to properly set the comdat
6239         section and name for the .vtable_map_vars section in case the
6240         target is PE or COFF.
6242 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
6244         PR ipa/64801
6245         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
6246         make sane BB profile.
6247         (cgraph_node::expand_thunk): Make sane BB profile.
6248         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
6249         * cgraph.h (init_lowered_empty_function): Update prototype.
6250         * config/i386/i386.c (make_resolver_func): Update call.
6251         * predict.c (gate): Disable branch prediction pass if
6252         profile is already there.
6254 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
6256         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
6257         * opth-gen.awk: Likewise.
6258         * common.opt: Mark flag_fp_contract_mode as Optimization.
6260 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6262         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
6263         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
6265 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
6267         PR target/64659
6268         * config/sh/predicates.md (atomic_arith_operand,
6269         atomic_logical_operand): Remove.
6270         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
6271         (atomic_arith_operand_0): New predicate.
6272         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
6273         Use atomic_arith_operand_0 for input values.
6274         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
6275         atomic_compare_and_swap<mode>_soft_gusa,
6276         atomic_compare_and_swap<mode>_soft_tcb,
6277         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
6278         arith_reg_operand instead of register_operand.
6279         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
6280         atomic_arith_operand_0 for newval input.
6281         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
6282         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
6283         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
6284         arith_reg_operand instead of register_operand.
6285         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
6286         fetchop_predicate_1, fetchop_constraint_1_llcs,
6287         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
6288         fetchop_constraint_1_imask): New code iterator attributes.
6289         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
6290         register_operand.  Use fetchop_predicate_1.
6291         (atomic_fetch_<fetchop_name>si_hard,
6292         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
6293         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
6294         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
6295         and arith_reg_operand instead of register_operand.  Use
6296         fetchop_predicate_1, fetchop_constraint_1_gusa.
6297         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
6298         and arith_reg_operand instead of register_operand.  Use
6299         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
6300         to allow R0 usage.
6301         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
6302         and arith_reg_operand instead of register_operand.  Use
6303         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
6304         to allow R0 usage.
6305         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
6306         register_operand.  Use atomic_logical_operand_1.
6307         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
6308         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
6309         arith_reg_operand instead of register_operand.
6310         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
6311         Use arith_reg_dest and arith_reg_operand instead of register_operand.
6312         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
6313         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
6314         register_operand.  Use fetchop_predicate_1.
6315         (atomic_<fetchop_name>_fetchsi_hard,
6316         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
6317         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6318         fetchop_constraint_1_llcs.
6319         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
6320         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6321         fetchop_constraint_1_gusa.
6322         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
6323         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6324         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
6325         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
6326         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
6327         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
6328         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
6329         register_operand.  Use atomic_logical_operand_1.
6330         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
6331         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
6332         arith_reg_operand instead of register_operand.
6333         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
6334         arith_reg_operand instead of register_operand.  Use logical_operand
6335         and K08.  Adjust asm sequence to allow R0 usage.
6336         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
6337         arith_reg_operand instead of register_operand.  Use logical_operand
6338         and K08.
6340 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
6342         PR other/63504
6343         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
6344         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
6345         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
6346         only get_full_len HOST_WIDE_INTs from get_val () array rather than
6347         all bits in *val_wide.
6349 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
6351         * varpool.c (tls_model_names): Fix names.
6352         (varpool_node::dump): Dump tls- prefix for tls models.
6354 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
6355             Bernd Schmidt  <bernds@codesourcery.com>
6356             Nathan Sidwell  <nathan@codesourcery.com>
6358         * config/nvptx/mkoffload.c: New file.
6359         * config/nvptx/t-nvptx: Add build rules for it.
6360         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
6361         (extra_programs): Add mkoffload.
6362         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
6363         function.
6364         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
6366 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
6368         PR middle-end/64809
6369         * cfgexpand.c (reorder_operands): Skip debug gimples.
6371 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
6373         PR tree-optimization/64277
6374         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
6375         range info when possible to refine estimation.
6377 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6379         PR tree-optimization/64718
6380         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
6381         be a 16bit unsigned integer when n->range is 16.
6382         (bswap_replace): Convert src to that type if necessary for all bswap
6383         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
6384         set in pass_optimize_bswap::execute ().
6386 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
6388         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
6389         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
6390         integer and floating point variants.
6391         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
6393 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
6395         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
6396         for all vector modes.
6398 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
6400         PR bootstrap/64612
6401         * doc/sourcebuild.texi (comdat_group): Document.
6403 2015-01-28  Terry Guo  <terry.guo@arm.com>
6405         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
6407 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
6409         * toplev.c (print_version): Add param "show_global_state", and
6410         only print GGC and plugin information if it is true.
6411         (init_asm_output): Pass in "true" for the new param when calling
6412         print_version.
6413         (process_options): Likewise.
6414         (toplev::main): Likewise.
6415         * toplev.h (print_version): Add new param to decl.
6417 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
6419         PR ipa/60871
6420         PR ipa/64139
6421         * tree.c (lookup_binfo_at_offset): New function.
6422         (get_binfo_at_offset): Use it.
6424 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
6426         PR ipa/64282
6427         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
6428         on vtable being vtable.
6430 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6432         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
6433         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
6434         -mhotpatch= option.
6435         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
6436         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
6437         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
6438         Renamed.
6439         (s390_hotpatch_trampoline_halfwords_max): Renamed.
6440         (s390_hotpatch_hw_max): New name.
6441         (s390_hotpatch_trampoline_halfwords): Renamed.
6442         (s390_hotpatch_hw_before_label): New name.
6443         (get_hotpatch_attribute): Removed.
6444         (s390_hotpatch_hw_after_label): New name.
6445         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
6446         attribute.
6447         (s390_attribute_table): Ditto.
6448         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
6449         (s390_function_num_hotpatch_hw): New name.
6450         Remove special handling of inline functions and hotpatching.
6451         Return number of nops before and after the function label.
6452         (s390_can_inline_p): Removed.
6453         (s390_asm_output_function_label): Emit a configurable number of nops
6454         after the function label.
6455         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
6456         (TARGET_CAN_INLINE_P) Removed.
6457         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
6459 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6460             Jiong Wang  <jiong.wang@arm.com>
6462         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
6463         of scratch reg.
6464         (cb<optab><mode>1): Likewise.
6465         * config/aarch64/iterators.md (bcond): New define_code_attr.
6467 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6469         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
6470         memory accesses.
6472 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6474         * config/s390/s390.c (s390_register_move_cost): Increase costs for
6475         FPR->GPR moves.
6477 2015-01-27  Richard Biener  <rguenther@suse.de>
6479         * tree-vrp.c (update_value_range): Intersect the range with
6480         old recorded SSA name range information.
6482 2015-01-27  Nick Clifton  <nickc@redhat.com>
6484         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
6485         BC, DE and HL registers directly, not via AX.
6486         When decrementing the stack pointer by a large amount, transfer SP
6487         into AX and perform the subtraction there.
6488         (rl78_expand_epilogue): Perform the inverse of the above
6489         enhancements.
6491 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6493         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
6495 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6496             Yury Gribov  <y.gribov@samsung.com>
6498         PR ubsan/64741
6499         * ubsan.c (ubsan_source_location): Refactor code.
6500         (ubsan_type_descriptor): Update type size. Refactor code.
6502 2015-01-27  Richard Biener  <rguenther@suse.de>
6504         PR tree-optimization/56273
6505         PR tree-optimization/59124
6506         PR tree-optimization/64277
6507         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
6508         from the first VRP pass.
6510 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6512         PR ipa/64776
6513         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
6514         handle the first argument in the same loop as all the other arguments.
6516         PR rtl-optimization/61058
6517         * jump.c (cleanup_barriers): Update basic block boundaries
6518         if BLOCK_FOR_INSN is non-NULL on PREV.
6520 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
6522         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
6523         bounds narrowing, already instrumented calls and calls to
6524         not instrumentable functions.
6526 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
6528         PR tree-optimization/64807
6529         * wide-int.cc (wi::divmod_internal): Clear
6530         b_dividend[dividend_blocks_needed].
6532 2015-01-26  DJ Delorie  <dj@redhat.com>
6534         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
6535         volatile memory references.
6537 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
6539         PR target/49263
6540         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
6541         remove_insn.
6542         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
6543         shifts if it already fits into K08.
6545 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
6547         PR ipa/64730
6548         * ipa-inline.c (inline_small_functions): Print "unknown" even
6549         if edge->call_stmt is non-NULL, but has builtins or unknown
6550         location.
6552         PR middle-end/64421
6553         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
6554         with asterisk, skip the first character.
6556 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
6558         PR target/64806
6559         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
6560         order change.
6562 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
6564         PR target/64795
6565         * config/i386/i386.md (*movdi_internal): Also check operand 0
6566         to determine TYPE_LEA operand.
6567         (*movsi_internal): Ditto.
6569 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
6571         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
6572         OPTION_MASK_QUAD_MEMORY_ATOMIC.
6574 2015-01-26  Renlin Li  <renlin.li@arm.com>
6576         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
6577         the comment.
6578         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
6579         for higher part.
6581 2015-01-26  Richard Biener  <rguenther@suse.de>
6583         PR middle-end/64764
6584         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
6585         combining two BIT_AND_EXPR predicates.
6587 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
6589         PR bootstrap/64754
6590         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
6592 2015-01-26  Terry Guo  <terry.guo@arm.com>
6594         * config/arm/arm.c (arm_file_start): Update the assignment of
6595         Tag_ABI_HardFP_use.
6597 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
6599         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
6600         pipeline model.
6601         config/arm/arm.md: Include the new Cortex-A57 model.
6602         (generic_sched): Don't use generic_sched when tuning for
6603         Cortex-A57.
6605 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
6606             Uros Bizjak  <ubizjak@gmail.com>
6608         * config/i386/i386.c (get_builtin_code_for_version): Add
6609         support for BMI and BMI2 multiversion functions.
6611 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6613         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
6614         (extract_bit_field): Likewise.
6615         (extract_low_bits): Likewise.
6616         (expand_mult): Likewise.
6617         (expand_mult_highpart_adjust): Likewise.
6619 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6621         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
6622         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
6623         * config/i386/i386.c (processor_model): Add
6624         M_INTEL_COREI7_BROADWELL.
6625         (arch_names_table): Add "broadwell".
6627 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
6629         PR target/49263
6630         PR target/53987
6631         PR target/64345
6632         PR target/59533
6633         PR target/52933
6634         PR target/54236
6635         PR target/51244
6636         * config/sh/sh-protos.h
6637         (sh_extending_set_of_reg::can_use_as_unextended_reg,
6638         sh_extending_set_of_reg::use_as_unextended_reg,
6639         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
6640         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
6641         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
6642         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
6643         (sh_treg_insns): New class.
6644         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
6645         (scope_counter): New class.
6646         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
6647         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
6648         sh_extending_set_of_reg::can_use_as_unextended_reg,
6649         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
6650         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
6651         sh_split_treg_set_expr): New functions.
6652         (addsubcosts): Handle treg_set_expr.
6653         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
6654         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
6655         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
6656         (sh_insn_operands_modified_between_p): Make non-static.
6657         * config/sh/predicates.md (zero_extend_movu_operand): Allow
6658         simple_mem_operand in addition to displacement_mem_operand.
6659         (zero_extend_operand): Don't allow zero_extend_movu_operand.
6660         (treg_set_expr, treg_set_expr_not_const01,
6661         arith_reg_or_treg_set_expr): New predicates.
6662         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
6663         arith_or_int_operand instead of logical_operand.  Convert to
6664         insn_and_split.  Try to optimize constant operand in splitter.
6665         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
6666         (*tstqi_t_zero): Delete.
6667         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
6668         (tstsi_t_and_not): Delete.
6669         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
6670         Convert to insn_and_split.
6671         (unnamed split, tstsi_t_zero_extract_xor,
6672         tstsi_t_zero_extract_subreg_xor_little,
6673         tstsi_t_zero_extract_subreg_xor_big): Delete.
6674         (*tstsi_t_shift_mask): New insn_and_split.
6675         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
6676         to recombine with surrounding insns when splitting.
6677         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
6678         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
6679         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
6680         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
6681         (*cbranch_div0s: Delete.
6682         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
6683         Try to recombine with surrounding insns when splitting.  Add operand
6684         order variants.
6685         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
6686         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
6687         *addc_r_r_msb, *addc_2r_msb): Delete.
6688         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
6689         order variant.
6690         (*addc_negreg_t): New insn_and_split.
6691         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
6692         Try to recombine with surrounding insns when splitting.
6693         Add operand order variants.
6694         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
6695         insn_and_split patterns.
6696         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
6697         surrounding insns when splitting.
6698         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
6699         (*rotcl): Likewise.  Add zero_extract variant.
6700         (*ashrsi2_31): New insn_and_split.
6701         (*negc): Convert to insn_and_split.  Use treg_set_expr.
6702         (*zero_extend<mode>si2_disp_mem): Update comment.
6703         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
6704         condition.
6705         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
6706         with surrounding insns when splitting.
6707         (any_treg_expr_to_reg): New insn_and_split.
6708         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
6709         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
6710         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
6711         *zero_extract_2): New single bit zero extract patterns.
6712         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
6713         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
6714         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
6715         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
6716         set destination.
6717         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
6718         register_operand for set source.
6720 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
6722         * i386.opt (prefetch_sse): New targetsave.
6723         * i386.c (ix86_function_specific_save): Save prefetch_sse.
6724         (ix86_function_specific_restore): Restore prefetch_sse and initialize
6725         ix86_cost/ix86_tune_cost.
6727 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
6729         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
6730         Support the JIT by using 0 as the language type.
6732 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
6734         PR target/64317
6735         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
6736         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
6737         (mark_regno_live, process_bb_lives): Pass new parameter value to
6738         make_hard_regno_born.
6740 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6742         PR rtl-optimization/63637
6743         PR rtl-optimization/60663
6744         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
6745         if elt->cost is MAX_COST for ASM_OPERANDS.
6746         (find_sets_in_insn): Fix up comment typo.
6747         (cse_insn): Don't set src_volatile for all non-volatile
6748         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
6749         or with "memory" clobber.  Set elt->cost to MAX_COST
6750         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
6751         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
6753 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
6755         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
6756         alternative 1.
6758 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
6760         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
6761         libgcc/config/i386/elf-lib.h.
6763 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6765         PR driver/64737
6766         * gcc.c (print_configuration): Don't print a blank line at the end
6767         here...
6768         (run_attempt): ... but here unstead.
6770         PR middle-end/64734
6771         * omp-low.c (scan_sharing_clauses): Don't ignore
6772         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
6773         on target data/update constructs.
6775 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6777         PR target/50928
6778         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
6779         (DEBUG_RELOAD): Removed define.
6780         (m32c_limit_reload_class): Enable traces with if DEBUG0.
6781         (m32c_function_arg): Added a type cast.
6782         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
6783         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
6784         * config/m32c/bitops.md (andqi3_16): Likewise.
6785         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
6786         (push_a01_l): Likewise.
6788 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
6790         PR jit/64721
6791         * main.c (main): Construct toplev instances with init_signals=true.
6792         * toplev.c (general_init): Add param "init_signals", and use it to
6793         conditionalize the calls to signal and host_hooks.extra_signals.
6794         (toplev::toplev): Add param "init_signals".
6795         (toplev::main): When invoking general_init, pass m_init_signals
6796         to control whether signal-handlers are installed.
6797         * toplev.h (toplev::toplev): Add param "init_signals".
6798         (toplev::m_init_signals): New field.
6800 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
6802         PR jit/64722
6803         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
6804         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
6805         latter may be affected by the former (e.g. on i686).
6807 2015-01-23  Martin Liska  <mliska@suse.cz>
6809         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
6810         false positive during profiledbootstrap.
6812 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6814         PR libgomp/64672
6815         * lto-opts.c (lto_write_options): Output non-explicit conservative
6816         -fno-openacc.
6817         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
6818         (append_compiler_options): Pass -fopenacc through.
6820 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6822         PR libgomp/64707
6823         * lto-opts.c (lto_write_options): Output non-explicit conservative
6824         -fno-openmp.
6825         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
6826         (append_compiler_options): Pass -fopenmp through.
6828 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6830         PR debug/64511
6831         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
6832         GTY markup.
6834         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
6835         * diagnostic.def (DK_ICE_NOBT): New kind.
6836         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
6837         like DK_ICE, but never print backtrace.
6838         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
6839         (internal_error_no_backtrace): New function.
6840         * gcc.c (execute): Use internal_error_no_backtrace instead of
6841         internal_error.
6843 2015-01-22  Jeff Law  <law@redhat.com>
6845         PR target/52076
6846         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
6847         improve code density for small immediate to memory case.
6848         (insv): Better handle bitfield assignments when the field is
6849         being set to all ones.
6850         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
6851         operand predicate.
6853 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6854             Jakub Jelinek  <jakub@redhat.com>
6856         PR middle-end/64729
6857         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
6858         for !TARGET_LIBC_PROVIDES_SSP version and
6859         -fstack-protector-{all,strong,explicit} otherwise.
6860         * config/freebsd.h (LINK_SSP_SPEC): Handle
6861         -fstack-protector-{strong,explicit}.
6863 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
6864             H.J. Lu  <hongjiu.lu@intel.com>
6866         PR ipa/64694
6867         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
6868         heap.
6870 2015-01-22  Wei Mi  <wmi@google.com>
6872         PR rtl-optimization/64557
6873         * dse.c (record_store): Call get_addr for mem_addr.
6874         (check_mem_read_rtx): Likewise.
6876 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6878         * fold-const.c (const_binop): Add early return for non-tcc_binary.
6880 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
6882         * toplev.c (init_local_tick): Process the failure when read
6883         fails for random_seed.
6885         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
6886         'pretty_name' to avoid memory overflow.
6888 2015-01-22  Richard Biener  <rguenther@suse.de>
6890         PR middle-end/64728
6891         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
6892         abnormal coalescing on undefined SSA names.
6894 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
6896         PR target/64688
6897         PR target/64477
6898         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
6899         for alternative 3.
6900         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
6902 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
6904         PR middle-end/63325
6905         * fold-const.c (fold_checksum_tree): Don't include value of
6906         expr->decl_with_vis.symtab_node in the checksum.
6908 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6910         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
6912 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6914         PR driver/64690
6915         * gcc.c (insert_comments): New function.
6916         (try_generate_repro): Call it.
6917         (append_text): Removed.
6919 2015-01-22  Richard Biener  <rguenther@suse.de>
6921         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
6922         with IL incompatible options.  Properly honor user optimize
6923         attributes.
6925 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
6927         PR rtl-optimization/64682
6928         * combine.c (distribute_notes): When moving a death note for
6929         a register that is set in the new I2, make sure to put it
6930         before that new I2.
6932 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
6934         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
6935         not TARGET_DEFAULT.
6937 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
6939         PR debug/64511
6940         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
6941         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
6942         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
6944         PR sanitizer/64706
6945         * doc/invoke.texi (-fsanitize=vptr): Document.
6947         PR rtl-optimization/62078
6948         * dse.c: Include cfgcleanup.h.
6949         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
6950         anything call purge_all_dead_edges and cleanup_cfg at the end
6951         of the pass.
6953 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
6955         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
6956         edges.
6958 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6960         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
6961         decl attribute.
6963 2015-01-21  David Sherwood  <david.sherwood@arm.com>
6964             Tejas Belagod <Tejas.Belagod@arm.com>
6966         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
6967         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
6968         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
6969         Removed.
6971 2015-01-21  David Sherwood  <david.sherwood@arm.com>
6972             Tejas Belagod <Tejas.Belagod@arm.com>
6974         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
6975         (aarch64_reverse_mask): New decls.
6976         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
6977         (insn_count): New mode_attr.
6978         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
6979         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
6980         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
6981         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
6982         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
6983         (aarch64_simd_st4): New patterns.
6984         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
6985         (aarch64_reverse_mask): New functions.
6987 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
6989         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
6990         Declare.
6991         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
6992         addressing modes for BE.
6993         (aarch64_print_operand): Add 'R' specifier.
6994         (aarch64_simd_disambiguate_copy): Delete.
6995         (aarch64_simd_emit_reg_reg_move): New function.
6996         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
6997         in define_splits for structural moves.
6998         (mov<mode>): Use less restrictive predicates.
6999         (*aarch64_mov<mode>): Simplify and only allow for LE.
7000         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
7002 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
7004         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
7006 2015-01-21  Richard Henderson  <rth@redhat.com>
7008         PR target/64669
7009         * ccmp.c (used_in_cond_stmt_p): Remove.
7010         (expand_ccmp_expr): Don't use it.
7012 2015-01-21  Nick Clifton  <nickc@redhat.com>
7014         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
7015         PARALLELs.
7017 2015-01-21  Richard Biener  <rguenther@suse.de>
7019         PR middle-end/64313
7020         * tree-core.h (builtin_info, builtin_info_type): Turn from
7021         an object with two arrays into an array of an object with
7022         decl and two flags, implicit_p and declared_p.
7023         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
7024         set_builtin_decl, set_builtin_decl_implicit_p,
7025         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
7026         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
7027         * builtins.c (builtin_info): Adjust.
7028         * gimplify.c (gimplify_addr_expr): References to builtins
7029         that have been declared by the user makes them eligible for
7030         use by the compiler.  Call set_builtin_decl_implicit_p on them.
7032 2015-01-20  Jeff Law  <law@redhat.com>
7034         PR target/59946
7035         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
7036         allow pc-relative addresses in operand predicates or constraints.
7038 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
7040         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
7041         neon on aarch32 processors for stringops.
7043 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7045         PR ipa/63576
7046         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
7048 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7050         PR lto/45375
7051         * ipa-inline.c: Include lto-streamer.h
7052         (report_inline_failed_reason): Output source file differences and
7053         flags on optimization/target node mismatch.
7054         (can_inline_edge_p): Consider caller to be the outer inline function;
7055         be less restrictive about matching opimize and optimize_size attributes.
7056         (inline_account_function_p): Break out from ...
7057         (inline_small_functions): ... here.
7058         * ipa-inline-transform.c (clone_inlined_nodes): Use
7059         inline_account_function_p.
7060         (inline_call): Use optimize attribution; use inline_account_function_p.
7061         (inline_transform): Use opt_for_fn.
7062         * ipa-inline.h (inline_account_function_p): Declare.
7064 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
7066         PR debug/64663
7067         * dwarf2out.c (decl_piece_node): Don't put bitsize into
7068         mode if bitsize <= 0.
7069         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
7070         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
7071         sizes and positions.
7073 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
7075         * config/nios2/nios2.c (nios2_asm_file_end): Implement
7076         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
7077         needed.
7078         (TARGET_ASM_FILE_END): Define.
7080 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7082         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
7083         (struct tune_params): Use the enum.
7084         * arm.c (arm_*_tune): Update.
7085         (arm_option_override): Update.
7087 2015-01-20  Richard Biener  <rguenther@suse.de>
7089         PR ipa/64684
7090         * ipa-reference.c (add_static_var): Inline ...
7091         (analyze_function): ... here after splitting out from ...
7092         (is_proper_for_analysis): ... this.
7094 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
7096         PR target/64149
7097         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
7098         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
7099         replace the conditional with it's true branch.
7100         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
7101         (arm_lra_p): Remove.
7103 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
7105         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
7107 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7109         * config/tilegx/mul-tables.c: Move symtab.h include after
7110         coretypes.h include.
7111         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
7112         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
7113         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
7114         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
7115         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
7117 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
7119         PR bootstrap/64676
7120         Revert:
7121         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
7123         PR rtl-optimization/64081
7124         * loop-iv.c (def_pred_latch_p): New function.
7125         (latch_dominating_def): Allow specific cases with non-single
7126         definitions.
7127         (iv_get_reaching_def): Likewise.
7128         (check_complex_exit_p): New function.
7129         (check_simple_exit): Use check_complex_exit_p to allow certain cases
7130         with exits not executing on any iteration.
7132 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7134         PR lto/45375
7135         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
7136         to set branch cost.
7138 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7140         PR lto/45375
7141         * i386.c (gate): Check flag_expensive_optimizations and
7142         optimize_size.
7143         (ix86_option_override_internal): Drop optimize_size condition
7144         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
7145         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
7146         MASK_PREFER_AVX128.
7147         (ix86_avx256_split_vector_move_misalign,
7148         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
7149         * sse.md (all uses of TARGET_PREFER_AVX128): Add
7150         optimize_insn_for_speed_p check.
7152 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
7154         * config/mips/mips.h (FP_ASM_SPEC): New define.
7155         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
7156         instead.
7158 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
7160         PR target/53988
7161         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
7162         nullptr for insn when reaching the first insn.
7163         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
7164         (sh_insn_operands_modified_between_p): Add nullptr check.
7165         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
7166         sign extending mem load if the insn contains any UNSPEC or
7167         UNSPEC_VOLATILE.
7169 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7171         * params.def (inline-unit-growth): Drop to 15%.
7172         * invoke.texi (inline-unit-growth): Document change.
7174 2015-01-19  Martin Liska  <mliska@suse.cz>
7176         PR ipa/64668
7177         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
7178         function for second argument of OBJ_TYPE_REF.
7180 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7182         PR ipa/64218
7183         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
7184         whether function is an alias.
7186 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
7188         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
7189         cases.
7191 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
7193         PR rtl-optimization/64671
7194         * lra-remat.c (operand_to_remat): Don't consider jump and call
7195         insns.
7197 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
7199         PR target/59828
7200         * config/rs6000/default64.h: Include rs6000-cpus.def.
7201         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
7202         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
7203         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
7204         and POWER8.
7205         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
7206         POWER8.
7207         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
7208         pseudo-op to specify assembler dialect.
7210 2015-01-19  Martin Liska  <mliska@suse.cz>
7212         PR ipa/64664
7213         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
7214         Handle safe potentially removed nodes during filtering.
7216 2015-01-19  Martin Liska  <mliska@suse.cz>
7218         * doc/extend.texi (no_icf): Add new attribute description.
7219         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
7220         where the pass attempts to merge a function with no_icf attribute.
7222 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7224         PR target/64532
7225         * doc/md.texi (ARM Options): Document register constraints.
7227 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
7228             Andrew Pinski  <apinski@cavium.com>
7230         PR target/64304
7231         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
7232         (ashl<mode>3): Don't expand if operands[2] is not constant.
7234 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7236         PR target/64448
7237         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
7238         Match xor-and-xor RTL pattern.
7240 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
7242         PR rtl-optimization/64081
7243         * loop-iv.c (def_pred_latch_p): New function.
7244         (latch_dominating_def): Allow specific cases with non-single
7245         definitions.
7246         (iv_get_reaching_def): Likewise.
7247         (check_complex_exit_p): New function.
7248         (check_simple_exit): Use check_complex_exit_p to allow certain cases
7249         with exits not executing on any iteration.
7251 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
7253         * common.opt (fgraphite): Fix a typo.
7255 2015-01-19  Felix Yang  <felix.yang@huawei.com>
7257         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
7258         pattern.
7259         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
7260         uminp, smax_nanp, smin_nanp): New builtins.
7261         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
7262         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
7263         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
7264         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
7265         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
7266         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
7267         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
7268         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
7269         vpminnms_f32): Rewrite using builtin functions.
7271 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
7273         PR libgomp/64625
7274         * omp-low.c (offload_symbol_decl): Remove variable.
7275         (get_offload_symbol_decl): Remove function.
7276         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
7277         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
7278         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
7279         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
7280         BUILT_IN_GOACC_UPDATE don't pass it at all.
7282 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7284         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
7285         callers.
7287 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7289         * ipa-chkp.c (chkp_produce_thunks): Add early param
7290         to split thunks production into two passes.  Keep
7291         'always_inline' function bodies after the first pass.
7292         (pass_data_ipa_chkp_early_produce_thunks): New.
7293         (pass_ipa_chkp_early_produce_thunks): New.
7294         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
7295         chkp_produce_thunks signature.
7296         (make_pass_ipa_chkp_early_produce_thunks): New.
7297         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
7298         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
7299         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
7301 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
7303         * cgraph.c (cgraph_node::dump): Dump profile flags.
7305 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
7307         PR target/64652
7308         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
7309         reg appear first in the parallel.
7311 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
7313         * ipa-reference.c (set_reference_optimization_summary,
7314         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
7315         disabled.
7316         (ignore_module_statics): New static var.
7317         (propagate_bits): If ipa-reference is disabled, do not look into local
7318         properties.
7319         (analyze_function): Disable analysis when ipa_reference is disabled.
7320         (generate_summary): Do not dump when reference is disabled;
7321         collect vars accessed from functions with ipa-reference disabled.
7322         (get_read_write_all_from_node): When ipa-reference is disabled, use the
7323         node flags.
7324         (gate): Enable for LTO.
7325         (ignore_edge_p): New function.
7326         (propagate): Skip functions w/o ipa-reference analysis.
7327         * optc-save-gen.awk: Handle optimize_debug correctly.
7328         * opth-gen.awk: Likewise.
7329         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
7330         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
7331         fira-share-save-slots, fira-share-spill-slots,
7332         fmodulo-sched-allow-regmoves, fpartial-inlining,
7333         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
7334         ftracer, ftree-parallelize-loops, fassociative-math,
7335         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
7336         Optimization
7337         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
7338         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
7339         Optimization.
7340         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
7341         Fix for IPA.
7343 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
7345         PR ipa/64378
7346         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
7347         flag correctly.
7348         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
7350 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
7352         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
7353         Remove duplicate option listings.
7355 2015-01-18  Felix Yang  <felix.yang@huawei.com>
7357         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
7358         (autofdo_source_profile::get_callsite_total_count,
7359         function_instance::get_function_instance_by_decl,
7360         string_table::get_index, string_table::get_index_by_decl,
7361         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
7362         Fix comment typos. Reformatting and minor code rearrangement.
7364 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
7366         * config/rs6000/rs6000.md (probe_stack): Delete.
7367         (probe_stack_address): New.
7369 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
7371         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
7372         to test for 32-bit ABIs, not !TARGET_POWERPC64.
7374 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
7376         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
7377         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
7378         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
7379         snafu.
7380         (rs6000_libcall_value): Use the new function.
7382 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
7384         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
7386 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7388         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
7389         implement a more precise life analysis for it during backward scan.
7391 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7393         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
7395 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
7397         PR rtl-optimization/52773
7398         * calls.c (emit_library_call_value): When pushing arguments use
7399         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
7400         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
7401         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
7403 2015-01-17  Jeff Law  <law@redhat.com>
7405         PR rtl-optimization/32790
7406         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
7407         not ZERO_EXTEND in SET_DESTs.
7409 2015-01-17  Alan Modra  <amodra@gmail.com>
7411         * cprop.c (do_local_cprop): Revert last change.
7413 2015-01-16  DJ Delorie  <dj@redhat.com>
7414             Nick Clifton  <nickc@redhat.com>
7416         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
7417         (addhi3_real): Likewise.  Fix [HL+0] syntax.
7418         (subqi3_real): Likewise.
7419         (subhi3_real): Likewise.
7420         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
7421         (cbranchhi4_real): Likewise.
7422         (cbranchhi4_real_inverted): Likewise.
7423         (cbranchsi4_real_lt): Likewise.
7424         (cbranchsi4_real_ge): Likewise.
7425         (cbranchsi4_real_ge): Likewise.
7426         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
7427         (sub<mode>3_virt): Likewise.
7428         (cbranchqi4_virt): Likewise.
7429         (cbranchhi4_virt): Likewise.
7430         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
7431         always use '[reg+imm]' even when imm is zero.
7432         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
7433         (rl78_general_operand): New.
7434         (rl78_nonimmediate_operand): New.
7435         (rl78_nonfar_operand): Use them.
7436         (rl78_nonfar_nonimm_operand): Likewise.
7437         (rl78_stack_based_mem): Fix.
7438         * config/rl78/constraints.md (Ibqi): New.
7439         (IBqi): New.
7440         (Wsa): New.
7441         (Wsf): New.
7442         (Cs1): Fix.
7443         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
7444         (iorqi3): Likewise.
7445         (xorqi3): Likewise.
7446         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
7448         * config/rl78/constrains (Qs8): New constraint.
7449         * config/rl78/rl78.c (rl78_flags_already_set): New function.
7450         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
7451         * config/rl78/rl78-real.md (update_Z): New attribute.
7452         Update patterns to set it.
7453         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
7454         shorter compare and branch sequence can be used.
7455         (cbranchhi4_real): Likewise.
7456         (cbranchhi4_real_inverted): Likewise.
7458         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
7459         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
7460         address space.
7461         * config/rl78/rl78.c (rl78_get_name_encoding): New.
7462         (rl78_option_override): Allow -mes0 only if C.
7463         (characterize_address): Support subregs of symbol_refs.
7464         (rl78_addr_space_address_mode): Move.  Add __near.
7465         (rl78_far_p): Likewise.
7466         (rl78_addr_space_pointer_mode): Likewise.
7467         (rl78_as_legitimate_address): Likewise.
7468         (rl78_addr_space_subset_p): Likewise.
7469         (rl78_addr_space_convert): Likewise.
7470         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
7471         symbols with -mes0.
7472         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
7473         addressing.
7474         (rl78_alloc_physical_registers_op1): Change logic to prefer
7475         symbol[BC] addressing.
7476         (frodata_section): New.
7477         (rl78_asm_init_sections): Initialize it.
7478         (rl78_select_section): Put __far readonly symbols in .frodata.
7479         (rl78_make_type_far): New.
7480         (rl78_insert_attributes): Force all readonly symbols to be
7481         __far when -mes0.
7482         (rl78_asm_out_integer): New.
7483         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
7484         * config/rl78/rl78.opt (-mes0): New.
7486         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
7487         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
7488         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7489         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
7490         (rl78_saddr_p): New.
7491         (rl78_output_aligned_common): New.
7492         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
7493         (rl78_handle_saddr_attribute): New.
7494         (rl78_handle_naked_attribute): New.
7495         (rl78_attribute_table): Add saddr.
7496         (rl78_print_operand_1): Don't print '!' on saddr operands.
7497         (rl78_print_operand_1): Strip encodings.
7498         (rl78_sfr_p): New.
7499         (rl78_strip_name_encoding): New.
7500         (rl78_attrlist_to_encoding): New.
7501         (rl78_encode_section_info): New.
7502         (rl78_asm_init_sections): New.
7503         (rl78_select_section): New.
7504         (rl78_output_labelref): New.
7505         (rl78_output_aligned_common): New.
7506         (rl78_asm_out_integer): New.
7507         (rl78_asm_ctor_dtor): New.
7508         (rl78_asm_constructor): New.
7509         (rl78_asm_destructor): New.
7511         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
7512         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
7513         (transcode_memory_rtx): Update.
7514         (rl78_expand_epilogue): Use A_REG instead of 0.
7516 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7518         * config/arm/arm-protos.h (struct tune_params): New field
7519         sched_autopref_queue_depth.
7520         * config/arm/arm.c (sched-int.h): Include header.
7521         (arm_first_cycle_multipass_dfa_lookahead_guard,)
7522         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
7523         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
7524         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
7525         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
7526         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
7527         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
7528         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
7529         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
7530         * config/arm/t-arm (arm.o): Update.
7531         * haifa-sched.c (update_insn_after_change): Update.
7532         (rank_for_schedule): Use auto-prefetcher model, if requested.
7533         (autopref_multipass_init): New static function.
7534         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
7535         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
7536         variable for debug dumps.
7537         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
7538         (autopref_multipass_dfa_lookahead_guard): New global function that
7539         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
7540         (init_h_i_d): Update.
7541         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
7542         * sched-int.h (enum autopref_multipass_data_status): New const enum.
7543         (autopref_multipass_data_): Structure for auto-prefetcher data.
7544         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
7545         (struct _haifa_insn_data:autopref_multipass_data): New field.
7546         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
7547         (autopref_multipass_dfa_lookahead_guard): Declare.
7549 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7551         * rtlanal.c (get_base_term): Handle SCRATCH.
7553 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7555         * config/aarch64/aarch64.c
7556         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
7557         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7558         * config/arm/arm.c
7559         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
7560         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7562 2015-01-17  Alan Modra  <amodra@gmail.com>
7564         * cprop.c (do_local_cprop): Disallow replacement of fixed
7565         hard registers.
7567 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7569         PR target/62066
7570         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
7571         early return 0.
7573 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7575         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
7576         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
7578 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7580         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
7581         * config/arm/thumb1.md: ... Here.
7583 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7585         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
7586         TImode for TARGET_32BIT.
7588 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7590         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
7591         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
7592         as ...
7593         (rs6000_abi_word_mode): New function.
7595 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7597         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
7598         instead of UNITS_PER_WORD to describe the size of stack slots.
7600 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7602         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
7603         as rs6000_promote_function_mode.  Move comment to there.
7604         (rs6000_promote_function_mode): New function.
7606 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
7608         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
7609         -mpowerpc64 is active.
7611 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
7613         PR middle-end/64353
7614         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
7615         virtuals on start.
7617 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
7619         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
7620         introduced in revision 219724.
7622 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7623             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7625         PR target/64263
7626         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
7627         destination is not a GP reg.
7628         (*movdi_aarch64): Likewise.
7630 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
7632         PR target/64623
7633         * config/rs6000/default64.h: Revert ISA change.
7635 2015-01-16  Richard Biener  <rguenther@suse.de>
7637         PR middle-end/64614
7638         * tree-ssa-uninit.c: Include tree-cfg.h.
7639         (MAX_SWITCH_CASES): New define.
7640         (convert_control_dep_chain_into_preds): Handle switch statements.
7641         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
7642         (normalize_one_pred_1): Do not split bit-manipulations.
7643         Record (x & CST).
7645 2015-01-16  Richard Biener  <rguenther@suse.de>
7647         PR tree-optimization/64568
7648         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
7649         complex load rewriting for TARGET_MEM_REFs.
7651 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
7653         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
7655 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
7657         PR target/64149
7658         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
7659         variable.
7660         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
7661         (aarch64_lra_p): Remove.
7663 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
7665         PR target/64363
7666         * ipa-chkp.h (chkp_instrumentable_p): New.
7667         * ipa-chkp.c: Include tree-inline.h.
7668         (chkp_instrumentable_p): New.
7669         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
7670         Fix processing of not instrumentable functions.
7671         (chkp_versioning): Use chkp_instrumentable_p. Warn about
7672         not instrumentable functions.
7673         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
7674         chkp_instrumentable_p.
7675         * tree-inline.h (copy_forbidden): New.
7676         * tree-inline.c (copy_forbidden): Not static anymore.
7678 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7680         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
7681         ptr1, ptr2 unused.
7683 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7685         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
7686         type OP_OUT to OP_INOUT.
7688 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7690         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
7691         (high x) y) to y if x and y have the same base.
7693 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
7695         * config/arm/cortex-a57.md: New.
7696         * config/aarch64/aarch64.md: Include it.
7697         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
7698         * config/aarch64/aarch64-tune.md: Regenerate.
7700 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7702         PR target/64015
7703         * ccmp.c (expand_ccmp_next): New function.
7704         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
7705         and compare insn sequence.
7706         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
7707         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
7708         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
7709         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
7710         (*ccmp_ior): Changed to ccmp_ior<mode>.
7711         (cmp<mode>): New pattern.
7712         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
7713         parameters.
7714         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
7716 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
7718         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
7719         _mm256_bsrli_epi128): New.
7720         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
7722 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
7724         * expmed.c (store_bit_field_using_insv): Improve warning message.
7725         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
7727 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
7729         PR rtl-optimization/64011
7730         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
7731         there is partial overflow.
7733 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7735         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
7736         prototype.
7737         (nds32_expand_epilogue_v3pop): Likewise.
7738         * config/nds32/nds32.md (sibcall): Define this for sibling call
7739         optimization.
7740         (sibcall_register): Likewise.
7741         (sibcall_immediate): Likewise.
7742         (sibcall_value): Likewise.
7743         (sibcall_value_register): Likewise.
7744         (sibcall_value_immediate): Likewise.
7745         (sibcall_epilogue): Likewise.
7746         (epilogue): Pass false to indicate this is not a sibcall epilogue.
7747         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
7748         (nds32_expand_epilogue_v3pop): Likewise.
7750 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7752         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
7753         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
7754         (return_internal): New.
7755         (return): Define this named pattern.
7756         (simple_return): Define this named pattern.
7757         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
7758         pattern instead of unspec_volatile_func_return.
7759         (nds32_expand_epilogue_v3pop): Likewise.
7760         (nds32_can_use_return_insn): New function.
7762 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7764         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
7765         * config/nds32/nds32.md (pop25return): New.
7766         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
7767         pop25return pattern.
7769 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7771         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
7772         -mforbid-fp-as-gp, and -mex9 options.
7774 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
7776         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
7777         remove -mgp-direct option.
7779 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
7781         * doc/invoke.texi (--param early-inlining-insns): Update default value.
7782         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
7784 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
7786         * ipa-inline.c (inline_small_functions): Work around hints
7787         cache issue.
7789 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
7791         PR target/59710
7792         * doc/invoke.texi (Option Summary): Document new Nios II
7793         -mgpopt= syntax.
7794         (Nios II Options): Likewise.
7795         * config/nios2/nios2.opt: Add -mgpopt= option support.
7796         Modify existing -mgpopt and -mno-gpopt options to be aliases.
7797         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
7798         * config/nios2/nios2.c (nios2_option_override): Adjust
7799         -mgpopt defaulting.
7800         (nios2_in_small_data_p): Return true for explicit small data
7801         sections even with -G0.
7802         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
7803         option choices.
7805 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
7807         PR ipa/64612
7808         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
7809         of comdat locals.
7810         (inline_call): Fix removal of aliases.
7812 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
7814         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
7815         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
7816         * opts.c (common_handle_option): Add -fsanitize=vptr.
7817         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
7818         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
7819         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
7820         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
7821         (ubsan_expand_vptr_ifn): New prototype.
7822         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
7823         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
7824         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
7825         expand_LOOP_VECTORIZED): Make argument nameless, remove
7826         ATTRIBUTE_UNUSED.
7827         (expand_UBSAN_VPTR): New function.
7828         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
7829         in fn spec.
7830         (UBSAN_VPTR): New internal function.
7831         * sanopt.c (tree_map_traits): Renamed to ...
7832         (sanopt_tree_map_traits): ... this.
7833         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
7834         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
7835         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
7836         (maybe_optimize_ubsan_vptr_ifn): New function.
7837         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
7838         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
7839         -fsanitize=vptr.
7840         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
7841         internal calls like pure functions for aliasing, even when they
7842         have other side-effects that prevent making them ECF_PURE.
7843         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
7844         (ubsan_expand_vptr_ifn): New function.
7846 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
7848         PR rtl-optimization/64110
7849         * stmt.c (parse_output_constraint): Process '^' and '$'.
7850         (parse_input_constraint): Ditto.
7851         * lra-constraints.c (process_alt_operands): Process the new
7852         constraints.
7853         * ira-costs.c (record_reg_classes): Process the new constraint
7854         '^'.
7855         * genoutput.c (indep_constraints): Add '^' and '$'.
7856         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
7857         * doc/md.texi: Add description of the new constraints.
7859 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
7860             Bernd Schmidt  <bernds@codesourcery.com>
7861             Cesar Philippidis  <cesar@codesourcery.com>
7862             James Norris  <jnorris@codesourcery.com>
7863             Tom de Vries  <tom@codesourcery.com>
7864             Ilmir Usmanov  <i.usmanov@samsung.com>
7865             Dmitry Bocharnikov  <dmitry.b@samsung.com>
7866             Evgeny Gavrin  <e.gavrin@samsung.com>
7867             Jakub Jelinek  <jakub@redhat.com>
7869         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
7870         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
7871         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
7872         New function types.
7873         * builtins.c: Include "gomp-constants.h".
7874         (expand_builtin_acc_on_device): New function.
7875         (expand_builtin, is_inexpensive_builtin): Handle
7876         BUILT_IN_ACC_ON_DEVICE.
7877         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
7878         New macros.
7879         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
7880         flag_openmp.
7881         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
7882         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
7883         i386/intelmic-offload.h.
7884         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
7885         to libgomp and its dependencies.
7886         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
7887         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
7888         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
7889         * config/ia64/hpux.h (LIB_SPEC): Likewise.
7890         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
7891         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
7892         * doc/generic.texi: Update for OpenACC changes.
7893         * doc/gimple.texi: Likewise.
7894         * doc/invoke.texi: Likewise.
7895         * doc/sourcebuild.texi: Likewise.
7896         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
7897         GF_OMP_FOR_KIND_OACC_LOOP.
7898         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
7899         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
7900         GF_OMP_TARGET_KIND_OACC_UPDATE,
7901         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
7902         Dump more data.
7903         * gimple.c: Update comments for OpenACC changes.
7904         * gimple.def: Likewise.
7905         * gimple.h: Likewise.
7906         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
7907         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
7908         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
7909         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
7910         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
7911         appropriate place.
7912         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
7913         * gimplify.c: Include "gomp-constants.h".
7914         Update comments for OpenACC changes.
7915         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
7916         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
7917         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
7918         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
7919         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
7920         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
7921         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
7922         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
7923         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
7924         OMP_CLAUSE_SEQ.
7925         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
7926         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
7927         OMP_CLAUSE_SET_MAP_KIND.
7928         (gimplify_oacc_cache): New function.
7929         (gimplify_omp_for): Handle OACC_LOOP.
7930         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
7931         OACC_DATA.
7932         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
7933         OACC_EXIT_DATA, OACC_UPDATE.
7934         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
7935         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
7936         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
7937         (gimplify_body): Consider flag_openacc next to flag_openmp.
7938         * lto-streamer-out.c: Include "gomp-constants.h".
7939         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
7940         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
7941         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
7942         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
7943         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
7944         (BUILT_IN_ACC_ON_DEVICE): New builtins.
7945         * omp-low.c: Include "gomp-constants.h".
7946         Update comments for OpenACC changes.
7947         (struct omp_context): Add reduction_map, gwv_below, gwv_this
7948         members.
7949         (extract_omp_for_data, use_pointer_for_field, install_var_field)
7950         (new_omp_context, delete_omp_context, scan_sharing_clauses)
7951         (create_omp_child_function, scan_omp_for, scan_omp_target)
7952         (check_omp_nesting_restrictions, lower_reduction_clauses)
7953         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
7954         Update for OpenACC changes.
7955         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
7956         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
7957         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
7958         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
7959         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
7960         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
7961         OMP_CLAUSE_MAP_*.
7962         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7963         Handle GF_OMP_FOR_KIND_OACC_LOOP.
7964         (expand_omp_target, lower_omp_target): Handle
7965         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
7966         GF_OMP_TARGET_KIND_OACC_UPDATE,
7967         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
7968         GF_OMP_TARGET_KIND_OACC_DATA.
7969         (pass_expand_omp::execute, execute_lower_omp)
7970         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
7971         flag_openmp.
7972         (offload_symbol_decl): New variable.
7973         (oacc_get_reduction_array_id, oacc_max_threads)
7974         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
7975         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
7976         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
7977         (oacc_gimple_assign, oacc_initialize_reduction_data)
7978         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
7979         functions.
7980         (is_targetreg_ctx): Remove function.
7981         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
7982         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
7983         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
7984         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
7985         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
7986         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
7987         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
7988         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
7989         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
7990         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
7991         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
7992         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
7993         * tree-core.h: Update comments for OpenACC changes.
7994         (enum omp_clause_map_kind): Remove.
7995         (struct tree_omp_clause): Change type of map_kind member from enum
7996         omp_clause_map_kind to unsigned char.
7997         * tree-inline.c: Update comments for OpenACC changes.
7998         * tree-nested.c: Likewise.  Include "gomp-constants.h".
7999         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
8000         (convert_tramp_reference_stmt, convert_gimple_call): Update for
8001         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
8002         OMP_CLAUSE_SET_MAP_KIND.
8003         * tree-pretty-print.c: Include "gomp-constants.h".
8004         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
8005         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
8006         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
8007         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
8008         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8009         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
8010         instead of OMP_CLAUSE_MAP_*.
8011         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
8012         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
8013         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8014         * tree-streamer-in.c: Include "gomp-constants.h".
8015         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
8016         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
8017         * tree-streamer-out.c: Include "gomp-constants.h".
8018         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
8019         OMP_CLAUSE_MAP_*.
8020         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
8021         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
8022         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
8023         * tree.c (omp_clause_num_ops): Update accordingly.
8024         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
8025         Likewise.
8026         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
8027         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
8028         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
8029         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
8030         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
8031         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
8032         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
8033         (OMP_CLAUSE_SET_MAP_KIND): New macro.
8034         * varpool.c (varpool_node::get_create): Consider flag_openacc next
8035         to flag_openmp.
8036         * config/i386/intelmic-offload.h: New file.
8037         * config/nvptx/offload.h: Likewise.
8039 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8041         * explow.h: Remove duplicate contents.
8042         * dojump.h: Likewise.
8044 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
8046         * arm.c (arm_xgene_tune): Add default initializer for instruction
8047         fusion.
8049 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
8051         PR ipa/64068
8052         PR ipa/64559
8053         * ipa.c (symbol_table::remove_unreachable_nodes):
8054         Do not put abstract origins into boundary.
8056 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
8058         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
8059         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
8061 2015-01-15  Steve Ellcey  <sellcey@mips.com>
8063         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
8064         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
8065         builtins.def, and chkp-builtins.def.
8067 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
8069         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
8070         ISA 2.7 (POWER8).
8072 2015-01-15  Richard Biener  <rguenther@suse.de>
8074         PR tree-optimization/61743
8075         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
8076         information on PHIs for some simple cases.
8078 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8080         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
8081         Include xgene1.md.
8082         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
8083         * config/arm/arm-cores.def (xgene1): New entry.
8084         * config/arm/arm-tables.opt: Regenerate.
8085         * config/arm/arm-tune.md: Regenerate.
8086         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
8088 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
8090         * tree-if-conv.c: Include hash-map.h.
8091         (aggressive_if_conv): New variable.
8092         (fold_build_cond_expr): Add simplification of non-zero condition.
8093         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
8094         destination block is not always executed.
8095         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
8096         than two predecessors if AGGRESSIVE_IF_CONV is true.
8097         (if_convertible_stmt_p): Fix commentary.
8098         (all_preds_critical_p): New function.
8099         (has_pred_critical_p): New function.
8100         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
8101         BB can have more than two predecessors and all incoming edges can be
8102         critical.
8103         (predicate_bbs): Skip predication for loop exit block, use build2_loc
8104         to compute predicate for true edge.
8105         (find_phi_replacement_condition): Delete this function.
8106         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
8107         Allow interchange PHI arguments if EXTENDED is false.
8108         Change check that block containing reduction statement candidate
8109         is predecessor of phi-block since phi may have more than two arguments.
8110         (phi_args_hash_traits): New helper structure.
8111         (struct phi_args_hash_traits): New type.
8112         (phi_args_hash_traits::hash): New function.
8113         (phi_args_hash_traits::equal_keys): New function.
8114         (gen_phi_arg_condition): New function.
8115         (predicate_scalar_phi): Add handling of phi nodes with more than two
8116         arguments, delete COND and TRUE_BB arguments, insert body of
8117         find_phi_replacement_condition to predicate ordinary phi nodes.
8118         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
8119         delete call of find_phi_replacement_condition and invoke
8120         predicate_scalar_phi with two arguments.
8121         (insert_gimplified_predicates): Add assert that non-predicated block
8122         don't have statements to insert.
8123         (ifcvt_split_critical_edges): New function.
8124         (ifcvt_split_def_stmt): Likewise.
8125         (ifcvt_walk_pattern_tree): Likewise.
8126         (stmt_is_root_of_bool_pattern): Likewise.
8127         (ifcvt_repair_bool_pattern): Likewise.
8128         (ifcvt_local_dce): Likewise.
8129         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
8130         is copy of inner or outer loop force_vectorize field, invoke
8131         ifcvt_split_critical_edges, ifcvt_local_dce and
8132         ifcvt_repair_bool_pattern for aggressive if-conversion.
8134 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
8136         * config/aarch64/aarch64.md: Include xgene1.md.
8137         * config/aarch64/xgene1.md: New file.
8139 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8141         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
8142         xgene1 (APM XGene-1) core definition.
8143         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
8144         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
8145         * doc/invoke.texi: Document -mcpu=xgene1.
8147 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8149         * dojump.h: New header file.
8150         * explow.h: Likewise.
8151         * expr.h: Remove includes.
8152         Move expmed.c prototypes to expmed.h.
8153         Move dojump.c prototypes to dojump.h.
8154         Move alias.c prototypes to alias.h.
8155         Move explow.c prototypes to explow.h.
8156         Move calls.c prototypes to calls.h.
8157         Move emit-rtl.c prototypes to emit-rtl.h.
8158         Move varasm.c prototypes to varasm.h.
8159         Move stmt.c prototypes to stmt.h.
8160         (saved_pending_stack_adjust): Move to dojump.h.
8161         (adjust_address): Move to explow.h.
8162         (adjust_address_nv): Move to emit-rtl.h.
8163         (adjust_bitfield_address): Likewise.
8164         (adjust_bitfield_address_size): Likewise.
8165         (adjust_bitfield_address_nv): Likewise.
8166         (adjust_automodify_address_nv): Likewise.
8167         * explow.c (expr_size): Move to expr.c.
8168         (int_expr_size): Likewise.
8169         (tree_expr_size): Likewise.
8170         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8171         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8172         * genemit.c (main): Generate includes statistics.h, real.h,
8173         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
8174         stmt.h.
8175         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
8176         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
8177         explow.h, emit-rtl.h, stmt.h.
8178         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
8179         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
8180         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
8181         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
8182         emit-rtl.h, varasm.h, stmt.h.
8183         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
8184         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
8185         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
8186         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
8187         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
8188         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
8189         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
8190         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
8191         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
8192         tm.h tree.h varasm.h vec.h wide-int.h.
8193         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8194         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8195         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
8196         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
8197         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
8198         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
8199         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
8200         * loop-iv.c: Likewise.
8201         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
8202         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
8203         statistics.h stmt.h tree.h varasm.h wide-int.h.
8204         * lra-constraints.c: Likewise.
8205         * lra-eliminations.c: Likewise.
8206         * lra-lives.c: Likewise.
8207         * lra-remat.c: Likewise.
8208         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8209         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
8210         statistics.h stmt.h tree.h varasm.h wide-int.h.
8211         * hw-doloop.c: Likewise.
8212         * ira-color.c: Likewise.
8213         * ira-emit.c: Likewise.
8214         * loop-doloop.c: Likewise.
8215         * loop-invariant.c: Likewise.
8216         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8217         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
8218         statistics.h stmt.h tree.h varasm.h wide-int.h.
8219         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
8220         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
8221         statistics.h stmt.h tree.h varasm.h wide-int.h.
8222         * combine-stack-adj.c: Likewise.
8223         * cse.c: Likewise.
8224         * ddg.c: Likewise.
8225         * ifcvt.c: Likewise.
8226         * ira-costs.c: Likewise.
8227         * jump.c: Likewise.
8228         * lra-coalesce.c: Likewise.
8229         * lra-spills.c: Likewise.
8230         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8231         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
8232         stmt.h varasm.h wide-int.h.
8233         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
8234         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8235         varasm.h.
8236         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
8237         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
8238         statistics.h stmt.h varasm.h wide-int.h.
8239         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
8240         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
8241         varasm.h wide-int.h.
8242         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
8243         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8244         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
8245         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
8246         statistics.h stmt.h.
8247         * config/tilepro/tilepro.c: Likewise.
8248         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
8249         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
8250         * config/pdp11/pdp11.c: Likewise.
8251         * config/xtensa/xtensa.c: Likewise.
8252         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
8253         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
8254         varasm.h.
8255         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8256         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8257         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
8258         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8259         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
8260         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
8261         * rtl-chkp.c: Likewise.
8262         * tree-chkp-opt.c: Likewise.
8263         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
8264         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
8265         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
8266         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8267         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8268         statistics.h stmt.h.
8269         * tree-vect-data-refs.c: Likewise.
8270         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
8271         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8272         rtl.h statistics.h stmt.h varasm.h.
8273         * internal-fn.c: Likewise.
8274         * ipa-icf-gimple.c: Likewise.
8275         * lto-section-out.c: Likewise.
8276         * tree-data-ref.c: Likewise.
8277         * tree-nested.c: Likewise.
8278         * tree-outof-ssa.c: Likewise.
8279         * tree-predcom.c: Likewise.
8280         * tree-pretty-print.c: Likewise.
8281         * tree-scalar-evolution.c: Likewise.
8282         * tree-ssa-strlen.c: Likewise.
8283         * tree-vect-loop.c: Likewise.
8284         * tree-vect-patterns.c: Likewise.
8285         * tree-vect-slp.c: Likewise.
8286         * tree-vect-stmts.c: Likewise.
8287         * tsan.c: Likewise.
8288         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8289         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
8290         stmt.h.
8291         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
8292         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8293         statistics.h stmt.h varasm.h.
8294         * loop-unroll.c: Likewise.
8295         * ubsan.c: Likewise.
8296         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
8297         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
8298         stmt.h varasm.h.
8299         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8300         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
8301         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
8302         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8303         statistics.h stmt.h.
8304         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
8305         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
8306         statistics.h stmt.h varasm.h.
8307         * gimple-match-head.c: Likewise.
8308         * lto-cgraph.c: Likewise.
8309         * lto-section-in.c: Likewise.
8310         * lto-streamer-in.c: Likewise.
8311         * lto-streamer-out.c: Likewise.
8312         * tree-affine.c: Likewise.
8313         * tree-cfg.c: Likewise.
8314         * tree-cfgcleanup.c: Likewise.
8315         * tree-if-conv.c: Likewise.
8316         * tree-into-ssa.c: Likewise.
8317         * tree-ssa-alias.c: Likewise.
8318         * tree-ssa-copyrename.c: Likewise.
8319         * tree-ssa-dse.c: Likewise.
8320         * tree-ssa-forwprop.c: Likewise.
8321         * tree-ssa-live.c: Likewise.
8322         * tree-ssa-math-opts.c: Likewise.
8323         * tree-ssa-pre.c: Likewise.
8324         * tree-ssa-sccvn.c: Likewise.
8325         * tree-tailcall.c: Likewise.
8326         * tree-vect-generic.c: Likewise.
8327         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8328         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
8329         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8330         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
8331         * varasm.c: Likewise.
8332         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8333         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
8334         varasm.h.
8335         * init-regs.c: Likewise.
8336         * ira.c: Likewise.
8337         * omp-low.c: Likewise.
8338         * stack-ptr-mod.c: Likewise.
8339         * tree-ssa-reassoc.c: Likewise.
8340         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8341         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
8342         varasm.h.
8343         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8344         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
8345         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8346         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
8347         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8348         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
8349         * tree-ssa-phiopt.c: Likewise.
8350         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8351         fixed-value.h hashtab.h real.h statistics.h stmt.h.
8352         * config/fr30/fr30.c: Likewise.
8353         * config/frv/frv.c: Likewise.
8354         * expr.c: Likewise.
8355         * final.c: Likewise.
8356         * optabs.c: Likewise.
8357         * passes.c: Likewise.
8358         * simplify-rtx.c: Likewise.
8359         * stmt.c: Likewise.
8360         * toplev.c: Likewise.
8361         * var-tracking.c: Likewise.
8362         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8363         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8364         * lower-subreg.c: Likewise.
8365         * postreload-gcse.c: Likewise.
8366         * ree.c: Likewise.
8367         * reginfo.c: Likewise.
8368         * store-motion.c: Likewise.
8369         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8370         fixed-value.h hashtab.h real.h stmt.h varasm.h.
8371         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8372         fixed-value.h hashtab.h statistics.h stmt.h.
8373         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8374         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
8375         * except.c: Likewise.
8376         * explow.c: Likewise.
8377         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8378         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
8379         varasm.h.
8380         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8381         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
8382         * tree-ssa-structalias.c: Likewise.
8383         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8384         fixed-value.h insn-config.h real.h statistics.h.
8385         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8386         fixed-value.h insn-config.h real.h statistics.h stmt.h.
8387         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8388         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8389         * cfgbuild.c: Likewise.
8390         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8391         fixed-value.h real.h rtl.h statistics.h stmt.h.
8392         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8393         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8394         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8395         fixed-value.h real.h statistics.h stmt.h.
8396         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
8397         fixed-value.h real.h statistics.h stmt.h varasm.h.
8398         * cprop.c: Likewise.
8399         * modulo-sched.c: Likewise.
8400         * postreload.c: Likewise.
8401         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8402         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
8403         statistics.h stmt.h varasm.h.
8404         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
8405         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8406         rtl.h statistics.h stmt.h varasm.h.
8407         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
8408         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
8409         varasm.h.
8410         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
8411         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
8412         varasm.h.
8413         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
8414         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
8415         varasm.h.
8416         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
8417         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8418         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8419         function.h real.h statistics.h stmt.h varasm.h.
8420         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8421         insn-config.h real.h statistics.h stmt.h.
8422         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
8423         statistics.h stmt.h.
8424         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
8425         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
8426         statistics.h stmt.h varasm.h.
8427         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
8428         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
8429         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8430         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
8431         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
8432         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
8433         statistics.h stmt.h varasm.h.
8434         * ipa-polymorphic-call.c: Likewise.
8435         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
8436         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8437         statistics.h stmt.h.
8438         * config/c6x/c6x.c: Likewise.
8439         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
8440         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
8441         statistics.h stmt.h varasm.h.
8442         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
8443         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
8444         stmt.h varasm.h.
8445         * ipa-split.c: Likewise.
8446         * tree-eh.c: Likewise.
8447         * tree-ssa-dce.c: Likewise.
8448         * tree-ssa-loop-niter.c: Likewise.
8449         * tree-vrp.c: Likewise.
8450         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
8451         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
8452         stmt.h.
8453         * config/nds32/nds32-fp-as-gp.c: Likewise.
8454         * config/nds32/nds32-intrinsic.c: Likewise.
8455         * config/nds32/nds32-isr.c: Likewise.
8456         * config/nds32/nds32-md-auxiliary.c: Likewise.
8457         * config/nds32/nds32-memory-manipulation.c: Likewise.
8458         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8459         * config/nds32/nds32-predicates.c: Likewise.
8460         * config/nds32/nds32.c: Likewise.
8461         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
8462         fixed-value.h hashtab.h real.h statistics.h.
8463         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
8464         fixed-value.h hashtab.h real.h statistics.h stmt.h.
8465         * config/arm/arm.c: Likewise.
8466         * config/avr/avr.c: Likewise.
8467         * config/bfin/bfin.c: Likewise.
8468         * config/h8300/h8300.c: Likewise.
8469         * config/i386/i386.c: Likewise.
8470         * config/ia64/ia64.c: Likewise.
8471         * config/iq2000/iq2000.c: Likewise.
8472         * config/m32c/m32c.c: Likewise.
8473         * config/m32r/m32r.c: Likewise.
8474         * config/m68k/m68k.c: Likewise.
8475         * config/mcore/mcore.c: Likewise.
8476         * config/mep/mep.c: Likewise.
8477         * config/mips/mips.c: Likewise.
8478         * config/mn10300/mn10300.c: Likewise.
8479         * config/moxie/moxie.c: Likewise.
8480         * config/pa/pa.c: Likewise.
8481         * config/rl78/rl78.c: Likewise.
8482         * config/rx/rx.c: Likewise.
8483         * config/s390/s390.c: Likewise.
8484         * config/sh/sh.c: Likewise.
8485         * config/sparc/sparc.c: Likewise.
8486         * config/spu/spu.c: Likewise.
8487         * config/stormy16/stormy16.c: Likewise.
8488         * config/v850/v850.c: Likewise.
8489         * config/vax/vax.c: Likewise.
8490         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
8491         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
8492         * config/msp430/msp430.c: Likewise.
8493         * predict.c: Likewise.
8494         * value-prof.c: Likewise.
8495         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
8496         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
8497         * config/microblaze/microblaze.c: Likewise.
8498         * config/nios2/nios2.c: Likewise.
8499         * config/rs6000/rs6000.c: Likewise.
8500         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8501         insn-config.h real.h rtl.h statistics.h stmt.h.
8502         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
8503         insn-config.h real.h statistics.h stmt.h.
8504         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
8505         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
8506         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
8507         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
8508         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
8509         fixed-value.h real.h statistics.h stmt.h.
8510         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
8511         fixed-value.h statistics.h stmt.h.
8512         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
8513         stmt.h.
8515 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
8517         * gengtype.c (create_user_defined_type): Workaround
8518         -Wmaybe-uninitialized false positives.
8519         * cse.c (fold_rtx): Likewise.
8520         * loop-invariant.c (gain_for_invariant): Likewise.
8522 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
8524         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
8525         set the memory attributes in all cases but clear MEM_EXPR if need be.
8527 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
8529         PR tree-optimization/64434
8530         * cfgexpand.c (reorder_operands): New function.
8531         (expand_gimple_basic_block): Insert call of reorder_operands if
8532         optimized is true.
8534 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
8536         * config/mips/micromips.md (*swp): Remove explicit parallel.
8537         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
8538         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
8539         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
8540         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
8541         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
8542         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
8543         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
8544         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
8545         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
8546         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
8547         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
8548         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
8549         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
8550         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
8551         (mips_wrdsp): Likewise.
8552         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
8553         parallel.
8554         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
8555         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
8556         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
8557         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
8558         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
8559         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
8560         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
8561         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
8562         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
8564 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
8566         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
8567         (mips_print_operand): Support 'y' to print exact log2 in decimal
8568         of a const_int.
8569         * config/mips/mips.h (ISA_HAS_LSA): New define.
8570         (ISA_HAS_DLSA): Likewise.
8571         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
8572         * config/mips/predicates.md (const_immlsa_operand): New predicate.
8574 2015-01-15  Martin Liska  <mliska@suse.cz>
8576         PR target/64377
8577         * optc-save-gen.awk: Add support for array types.
8579 2015-01-15  Richard Biener  <rguenther@suse.de>
8581         PR middle-end/64365
8582         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
8583         for MEM_REF access functions with the same base can never partially
8584         overlap.
8586 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
8588         * common.opt: New option -fstack-protector-explicit.
8589         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
8590         (stack_protect_decl_phase): Handle stack_protect attribute for
8591         explicit stack protection requests.
8592         (expand_used_vars): Similarly.
8593         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
8594         * doc/extend.texi: Add documentation for "stack_protect" attribute.
8595         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
8597 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
8599         PR target/53988
8600         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
8601         reg-reg copies.
8602         (sh_extending_set_of_reg): New struct.
8603         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
8604         sh_remove_reg_dead_or_unused_notes): New Declarations.
8605         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
8606         sh_find_extending_set_of_reg, sh_split_tst_subregs,
8607         sh_extending_set_of_reg::use_as_extended_reg): New functions.
8608         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
8609         convert to insn_and_split and use new function sh_split_tst_subregs.
8611 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
8613         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
8614         option.
8615         (Optimization Options): Move -fuse-ld documentation to...
8616         (Link Options): ...here.
8618 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
8620         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
8621         offsets.
8622         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
8623         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
8624         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
8625         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
8626         instead of ZR for the memory operand of LL/SC.
8627         (compare_and_swap_12, sync_add<mode>): Likewise.
8628         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
8629         (sync_new_<optab>_12, sync_nand_12): Likewise.
8630         (sync_old_nand_12, sync_new_nand_12): Likewise.
8631         (sync_sub<mode>, sync_old_add<mode>): Likewise.
8632         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
8633         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
8634         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
8635         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
8636         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
8637         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
8638         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
8639         * doc/md.texi (ZC): Update description.
8641 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
8643         * builtins.c (expand_builtin_atomic_exchange): Remove error when
8644         memory model is CONSUME.
8645         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
8646         expand_builtin_atomic_store): Change invalid memory model errors to
8647         warnings.
8648         (expand_builtin_atomic_clear): Change invalid model errors to warnings
8649         and issue warning for CONSUME.
8651 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
8653         * lto-cgraph: Update function comments for
8654         lto_symtab_encoder_encode_*.
8656 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
8658         * Makefile.in (site.exp): Do not set ENABLE_LTO.
8660 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
8662         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
8663         * lto-cgraph.c (select_what_to_stream): Remove argument, use
8664         lto_stream_offload_p instead.
8665         * lto-streamer.h (select_what_to_stream): Remove argument.
8666         * passes.c (ipa_write_summaries): Likewise.
8667         * tree-pass.h (ipa_write_summaries): Likewise.
8669 2015-01-14  Richard Biener  <rguenther@suse.de>
8671         PR tree-optimization/59354
8672         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
8673         groups larger than the slp group size as having gaps.
8675 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
8677         PR middle-end/59448
8678         * builtins.c (get_memmodel): Promote consume to acquire always.
8680 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
8682         PR target/64386
8683         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
8684         V32HImode.
8686 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
8688         PR target/64393
8689         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
8690         Enable AVX512BW.
8691         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
8692         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
8693         AVX512VBMI, as it implies AVX512BW.
8695 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
8697         PR target/64387
8698         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
8699         (vec_unpacks_hi_v16sf): Ditto.
8701 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8703         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
8704         is not available.
8706 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8708         * doc/invoke.texi (mapcs): Mention deprecation.
8709         (mapcs-frame): Likewise.
8711 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8713         PR target/64453
8714         * config/arm/arm.c (callee_saved_reg_p): Define.
8715         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
8716         register is callee saved instead of !call_used_regs[reg].
8717         (thumb1_compute_save_reg_mask): Likewise.
8719 2015-01-14  Hale Wang  <hale.wang@arm.com>
8721         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
8722         Cortex-M7.
8724 2015-01-14  Richard Biener  <rguenther@suse.de>
8726         PR lto/64415
8727         * tree-inline.c (insert_debug_decl_map): Check destination
8728         function MAY_HAVE_DEBUG_STMTS.
8729         (insert_init_debug_bind): Likewise.
8730         (insert_init_stmt): Remove redundant check.
8731         (remap_gimple_stmt): Drop debug stmts if the destination
8732         function has var-tracking assignments disabled.
8734 2015-01-14  Martin Liska  <mliska@suse.cz>
8736         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
8737         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
8739 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8741         PR target/64460
8742         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
8743         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
8745 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
8747         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
8748         level from an ARCH; do not inject the default.
8749         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
8750         MIPS_ISA_LEVEL_SPEC.
8751         (MIPS_ISA_NAN2008_SPEC): Update comment.
8752         (BASE_DRIVER_SELF_SPECS): Likewise.
8753         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
8754         MIPS_DEFAULT_ISA_LEVEL_SPEC.
8755         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
8756         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
8757         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
8759 2015-01-14  Richard Biener  <rguenther@suse.de>
8761         PR tree-optimization/64493
8762         PR tree-optimization/64495
8763         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
8764         assign the proper vectorized PHI to the inner loop exit PHIs.
8766 2015-01-14  Joey Ye  <joey.ye@arm.com>
8768         * config/arm/arm.c (arm_compute_save_reg_mask):
8769         Do not save lr in case of tail call.
8770         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
8772 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
8774         * tree-vrp.c (check_array_ref): Emit more warnings
8775         for warn_array_bounds >= 2.
8776         * common.opt: New option -Warray-bounds=.
8777         * doc/invoke.texi: Document -Warray-bounds=.
8779 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
8781         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
8782         (mforbid-fp-as-gp): Remove.
8783         (mex9): Remove.
8784         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
8785         (nds32_symbol_load_store_p): Remove.
8786         (nds32_fp_as_gp_check_available): Clean up implementation.
8787         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
8788         cases.
8789         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
8790         fp-as-gp and ex9 cases.
8792 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
8794         * tree-profile.c (init_ic_make_global_vars): Drop workaround
8795         for bintuils bug 14342.
8796         (init_ic_make_global_vars): Likewise.
8797         (gimple_init_edge_profiler): Likewise.
8798         (gimple_gen_ic_func_profiler): Likewise.
8800 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8802         * ipa-inline.c (inline_small_functions): Swap the operands in
8803         enum.
8805 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
8807         PR ipa/64481
8808         * ipa-inline-analysis.c (node_growth_cache): Remove.
8809         (initialize_growth_caches): Do not initialize it.
8810         (free_growth_caches): Do not free it.
8811         (do_estimate_growth): Rename to ...
8812         (estimate_growth): ... this one; drop growth cache code.
8813         (growth_likely_positive): Always go the heuristics way.
8814         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
8815         (reset_edge_caches): Do not reset node growth.
8816         (heap_edge_removal_hook): Do not maintain cache.
8817         (inline_small_functions): Likewise; strenghten sanity check.
8818         (ipa_inline): Do not maintain caches.
8819         * ipa-inline.h (node_growth_cache): Remove.
8820         (do_estimate_growth): Remove to ...
8821         (estimate_growth): this one; remove inline version.
8822         (reset_node_growth_cache): Remove.
8824 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
8826         PR ipa/64565
8827         * ipa-inline.c (inline_small_functions): Update callee keys after
8828         resolving speculation
8829         (inline_small_functions): Always check monotonicity of the queue.
8831 2015-01-13  Marek Polacek  <polacek@redhat.com>
8833         PR middle-end/64391
8834         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
8836 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
8838         PR rtl-optimization/64286
8839         * ree.c (combine_reaching_defs): Move part of comment earlier,
8840         remove !SCALAR_INT_MODE_P check.
8841         (add_removable_extension): Don't add vector mode
8842         extensions if all uses of the source register aren't the same
8843         vector extensions.
8845 2015-01-13  Renlin Li  <renlin.li@arm.com>
8847         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
8848         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
8850 2015-01-13  Martin Liska  <mliska@suse.cz>
8852         * ipa-icf.c (sem_function::equals_private): Call new functions
8853         cl_target_option_print_diff and cl_optimization_print_diff.
8854         * optc-save-gen.awk (cl_target_option_print_diff): New function.
8855         (cl_optimization_print_diff): Likewise.
8856         * opth-gen.awk: Likewise.
8858 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
8860         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
8861         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
8862         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
8863         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
8864         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
8865         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
8867 2015-01-13  Andrew Pinski  <apinski@cavium.com>
8869         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
8870         instead of src mode.
8872 2015-01-13  Richard Biener  <rguenther@suse.de>
8874         PR lto/64373
8875         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
8876         DECL_CONTEXT.
8878 2015-01-13  Andrew Pinski  <apinski@cavium.com>
8880         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
8881         volatile mems.
8882         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
8884 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
8886         PR middle-end/63974
8887         * cfgexpand.c (expand_computed_goto): Don't call
8888         convert_memory_address here.
8890 2015-01-13  Richard Biener  <rguenther@suse.de>
8892         PR tree-optimization/64406
8893         * tree-loop-distibution.c (pass_loop_distribution::execute):
8894         Reset the SCEV hashtable if we distributed anything.
8896 2015-01-13  Richard Biener  <rguenther@suse.de>
8898         PR tree-optimization/64404
8899         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
8900         SLP types for CSEd loads.
8902 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8904         PR tree-optimization/64436
8905         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
8906         merge of two symbolic numbers for a bitwise OR to ...
8907         (perform_symbolic_merge): This. Also fix computation of the range and
8908         end of the symbolic number corresponding to the result of a bitwise OR.
8910 2015-01-13  Richard Biener  <rguenther@suse.de>
8912         PR tree-optimization/64568
8913         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
8914         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
8916 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
8918         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
8919         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
8921 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
8923         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
8924         target-specific symbol_ref flag.
8925         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
8926         resides in rodata section.
8927         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
8928         (nds32_encode_section_info): New function.
8930 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
8932         * config/nds32/nds32.md (call): Use pseudo instruction bal which
8933         clobbers TA_REGNUM if large code model is specified.
8934         (call_register): Likewise.
8935         (call_immediate): Likewise.
8936         (call_value): Likewise.
8937         (call_value_register): Likewise.
8938         (call_value_immediate): Likewise.
8940 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
8942         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
8943         (TARGET_CMODEL_MEDIUM): New macro.
8944         (TARGET_CMODEL_LARGE): New macro.
8945         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
8946         code model setting in assembly code.
8948 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
8950         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
8951         Remove MASK_GP_DIRECT flag.
8952         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
8953         one of the multilib default options.
8954         * config/nds32/nds32.opt (mgp-direct): Remove.
8955         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
8956         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
8958 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
8960         * config/nds32/nds32.opt (mcmodel): Add new option.
8961         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
8962         to describe code model.
8964 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
8966         PR target/64479
8967         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
8969 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8971         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
8972         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
8973         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
8974         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
8975         __builtin_sh_set_fpscr.
8977 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8979         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
8980         after a funtion name just to indicate it is a function.
8981         ([-fsanitize-undefined-trap-on-error]): Likewise.
8982         ([-fdbg-cnt=]): Likewise.
8983         ([-mmemcpy]): Likewise.
8984         ([-mflush-func]): Likewise.
8985         ([-msynci]): Likewise.
8987 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8989         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
8990         example.
8992 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
8994         PR tree-optimization/64563
8995         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
8996         instead of != VR_VARYING.
8998         PR target/64513
8999         * config/i386/i386.c (ix86_expand_prologue): Add
9000         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
9002         PR tree-optimization/64454
9003         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
9004         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
9005         for signed or [0, op1 - 1] for unsigned modulo.
9006         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9007         even if op1 does not satisfy integer_pow2p.
9009         PR other/64370
9010         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
9012 2015-01-12  Jeff Law  <law@redhat.com>
9014         PR target/64461
9015         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
9016         (trunchiqi2, truncsihi2): Similarly.
9018         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
9019         rather than calling F.
9021 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9023         * tsan.c (instrument_expr): Use force_gimple_operand.
9024         Use may_be_nonaddressable_p instead of is_gimple_addressable.
9026 2015-01-12  Richard Biener  <rguenther@suse.de>
9028         PR tree-optimization/64530
9029         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
9030         back dr1.
9032 2015-01-12  Richard Biener  <rguenther@suse.de>
9034         PR middle-end/64357
9035         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
9036         latches properly.
9038 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9040         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
9041         Cortex-A17 tuning parameters.
9042         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
9044 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9046         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
9047         * config/arm/arm.c (arm_macro_fusion_p): New function.
9048         (arm_macro_fusion_pair_p): Likewise.
9049         (TARGET_SCHED_MACRO_FUSION_P): Define.
9050         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
9051         (ARM_FUSE_NOTHING): Likewise.
9052         (ARM_FUSE_MOVW_MOVT): Likewise.
9053         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
9054         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
9055         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
9056         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
9057         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
9058         arm_cortex_a5_tune): Specify fuseable_ops value.
9060 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
9062         PR bootstrap/64561
9063         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
9064         test for PIE with copy reloc.
9065         * configure: Regenerated.
9067 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9069         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
9070         in gen_rtx_REG.
9071         (arm_tls_descseq_addr): Likewise.
9072         (arm_gen_movmemqi): Likewise.
9073         (arm_expand_epilogue_apcs_frame): Likewise.
9074         (arm_expand_epilogue): Likewise.
9075         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
9076         in gen_rtx_REG.
9078 2015-01-12  Martin Liska  <mliska@suse.cz>
9080         PR ipa/64550
9081         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
9082         volatility for correct operands.
9084 2015-01-12  Martin Liska  <mliska@suse.cz>
9086         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9087         that a function is not leaf.
9088         (sem_function::compare_polymorphic_p): Likewise.
9090 2015-01-12  Martin Liska  <mliska@suse.cz>
9092         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
9093         that a function is not leaf.
9094         (sem_function::compare_polymorphic_p): Likewise.
9096 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9098         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
9099         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
9100         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
9101         fold-const.h, tree-check.h.
9103 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
9105         PR ipa/63967
9106         PR ipa/64425
9107         * ipa-inline.c (compute_uninlined_call_time,
9108         compute_inlined_call_time): Use counts for extra precision when
9109         needed possible.
9110         (big_speedup_p): Fix formating.
9111         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
9112         (relative_time_benefit): Remove.
9113         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
9114         merge guessed and read profile paths.
9115         (inline_small_functions): Count only !optimize_size functions into
9116         initial size; be more lax about sanity check when profile is used;
9117         be sure to update inlined function profile when profile is read.
9119 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
9121         PR ipa/63470
9122         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
9123         cost when edge becomes direct.
9124         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
9125         is resolved or when introducing new speculation.
9127 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
9129         PR ipa/64551
9130         PR ipa/64552
9131         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
9132         '||' to fix typo issue.
9134         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
9135         accept and return NULL.
9137 2015-01-12  Martin Liska  <mliska@suse.cz>
9139         * cgraph.c (cgraph_edge::remove_callee): Move function to header
9140         file for being inlined.
9141         (cgraph_set_edge_callee): Delete.
9142         (cgraph_edge::redirect_callee): Move function to header file
9143         for being inlined.
9144         (cgraph_edge::make_direct): Use new function.
9145         (cgraph_edge::dump_edge_flags): New function created from
9146         static dump_edge_flags function.
9147         (cgraph_node::dump): Use new function.
9148         (cgraph_edge::verify_count_and_frequency): New function created
9149         from verify_edge_count_and_frequency.
9150         (cgraph_edge::verify_corresponds_to_fndecl): New function created
9151         from verify_edge_corresponds_to_fndecl.
9152         (verify_edge_corresponds_to_fndecl): Delete.
9153         (cgraph_node::verify_node): Use new function.
9154         * cgraph.h (cgraph_edge::set_callee): New function.
9155         (cgraph_edge::dump_edge_flags): Likewise.
9156         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
9158 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
9160         * ipa-utils.c (estimate_function_body_sizes): Do not
9161         free node params when called late with early=true.
9163 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
9165         * doc/md.texi (Instruction Patterns): Rewrite text for
9166         clarity.
9167         (Example): Likewise.
9169 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
9171         * doc/invoke.texi (Option Summary): Break long lines.
9172         [(-fdiagnostics-color)]: Put long literal in @smallexample
9173         instead of inline.
9174         [(-fsanitize-recover)]: Likewise.
9175         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
9176         [(-ffast-math)]: Likewise.
9177         [(--param max-inline-insns-recursive)]: Likewise.
9178         [(--param max-inline-recursive-depth)]: Likewise.
9179         [(-mno-text-section-literals)]: Likewise.
9181 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
9183         * doc/install.texi: Update for libgomp being renamed from "GNU
9184         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
9185         Runtime Library".
9186         * doc/sourcebuild.texi: Likewise.
9188 2015-01-10  Anthony Green  <green@moxielogic.com>
9190         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
9191         mul.x availability for moxiebox configuration.
9193 2015-01-09  Anthony Green  <green@moxielogic.com>
9195         * config/moxie/moxie.md: Tabify assembly output.
9197 2015-01-09  Anthony Green  <green@moxielogic.com>
9199         * config/moxie/moxie.md (CC_REG): Correct register definition.
9201 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
9203         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
9204         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
9205         of log files.
9207 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
9209         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
9211 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
9212             Jakub Jelinek  <jakub@redhat.com>
9214         PR middle-end/64412
9215         * lto-streamer.h (lto_stream_offload_p): New declaration.
9216         * lto-streamer.c (lto_stream_offload_p): New variable.
9217         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
9218         at the same time as section_name_prefix.
9219         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
9220         if lto_stream_offload_p.
9221         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
9222         stream TREE_TARGET_OPTION if lto_stream_offload_p.
9223         (write_ts_function_decl_tree_pointers): Don't
9224         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
9225         * tree-streamer-in.c (unpack_value_fields): Don't stream
9226         TREE_TARGET_OPTION in if ACCEL_COMPILER.
9227         (lto_input_ts_function_decl_tree_pointers): Don't stream
9228         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
9229         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
9230         instead of section_name_prefix string comparisons.
9232 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
9234         PR rtl-optimization/64536
9235         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
9236         tablejumps.
9238 2015-01-09  Michael Collison  <michael.collison@linaro.org>
9240         PR tree-optimization/64322
9241         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
9242         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
9244 2015-01-09  Tom de Vries  <tom@codesourcery.com>
9246         PR rtl-optimization/64539
9247         * regcprop.c (kill_clobbered_values): Factor out of ...
9248         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
9249         instead of note_stores with kill_clobbered_value.
9251 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
9253          * ginclude/unwind-arm-common.h: Revert previous commit.
9255 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
9257         * config.gcc (arm*-*-freebsd*): New configuration.
9258         * config/arm/freebsd.h: New file.
9259         * config.host: Add extra components for arm*-*-freebsd*.
9260         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
9261         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
9263 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9265         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
9266         for -mcpu=e6500.
9267         * config/rs6000/t-rtems: Add e6500 multilibs.
9269 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9271         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
9272         MPC8540.
9274 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9276         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
9277         MULTILIB_EXCEPTIONS.
9279 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9281         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
9282         MULTILIB_EXCEPTIONS.
9284 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9286         * config/arm/t-rtems-eabi: Rename to...
9287         * config/arm/t-rtems: ...this.
9288         * config/arm/rtems-eabi.h: Rename to...
9289         * config/arm/rtems.h: ...this.
9290         * config.gcc (arm*-*-rtems*): Reflect changes above.
9292 2015-01-09  Richard Biener  <rguenther@suse.de>
9294         PR tree-optimization/64410
9295         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
9296         on the LHS.
9297         (execute_update_addresses_taken): Deal with that.
9298         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
9299         loads/stores for complex variables.
9301 2015-01-09  Martin Liska  <mliska@suse.cz>
9303         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
9304         name comparison.
9305         (func_checker::compare_memory_operand): New function.
9306         (func_checker::compare_operand): Split case to newly
9307         added functions.
9308         (func_checker::compare_cst_or_decl): New function.
9309         (func_checker::compare_gimple_call): Identify
9310         memory operands.
9311         (func_checker::compare_gimple_assign): Likewise.
9312         * ipa-icf-gimple.h: New function.
9314 2015-01-09  Martin Liska  <mliska@suse.cz>
9316         PR ipa/64503
9317         * sreal.c (sreal::dump): Change unsigned format to signed for
9318         m_exp value.
9319         (sreal::to_double): Replace exp2 with scalbln.
9321 2015-01-09  Martin Liska  <mliska@suse.cz>
9323         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
9324         * ipa-icf.c (sem_function::equals_private): Add support for target and
9325         (sem_item_optimizer::merge_classes): Remove redundant function
9326         optimization flags comparison.
9327         * tree.h (target_opts_for_fn): New function.
9329 2015-01-09  Tom de Vries  <tom@codesourcery.com>
9331         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
9333 2015-01-09  Kito Cheng  <kito@0xlab.org>
9335         PR rtl-optimization/64348
9336         * lra-constraints.c (split_reg): Fix caller-save store/restore
9337         instruction generation.
9339 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
9341         PR gcov-profile/61790
9342         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
9343         long long.  Fallback to int64_t if host doesn't have long long and
9344         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
9346 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
9348         PR tree-optimization/63989
9349         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
9350         from 1000 to 10000.
9351         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
9352         (get_stridx): If we don't have a record for certain SSA_NAME,
9353         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
9354         constant offset, call get_stridx_plus_constant.
9355         (get_stridx_plus_constant): New function.
9356         (zero_length_string): Don't use get_stridx here.
9358         PR target/55023
9359         PR middle-end/64388
9360         * dse.c (struct insn_info): Mention frame_read set also
9361         before reload for tail calls on some targets.
9362         (scan_insn): Revert 2014-12-22 change.  Set frame_read
9363         also before reload for tail calls if
9364         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
9365         instead of add_non_frame_wild_read for non-const/memset
9366         tail calls after reload.
9368 2015-01-08  Jason Merrill  <jason@redhat.com>
9370         * ubsan.c (do_ubsan_in_current_function): New.
9371         (pass_ubsan::gate): Use it.
9372         * ubsan.h: Declare it.
9373         * convert.c (convert_to_integer): Use it.
9375 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
9377         PR target/64338
9378         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
9379         compare_code when it is unconditionally overwritten afterwards.
9380         Use ix86_reverse_condition instead of reverse_condition.  Don't
9381         change code if *reverse_condition* returned UNKNOWN and don't
9382         swap ct/cf and negate diff in that case.
9384 2015-01-08  Mike Stump  <mikestump@comcast.net>
9386         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
9387         (pass_tsan_O0::gate): Likewise.
9388         * extend.texi (Function Attributes): Add no_sanitize_thread
9389         documentation.
9391 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
9393         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
9394         for registering builtins.
9395         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
9396         add -fopenmp to the argv_obstack used when invoking
9397         compile_for_target.
9399         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
9400         add "-m32" or "-m64" to argv_obstack.
9401         (generate_host_descr_file): Likewise, when invoking host_compiler.
9402         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
9403         ld.
9405 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
9407         * config/sh/sh-mem.cc: Use constant as second operand when emitting
9408         tstsi_t insns.
9410 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
9412         PR target/55212
9413         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
9414         constant load if constant operand fits into I08.
9416 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
9418         PR sanitizer/64336
9419         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
9420         and TREE_THIS_VOLATILE for MEM_REFs.
9421         (build5_stat): Fix up initialization of TREE_READONLY and
9422         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
9424 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9426         PR target/64533
9427         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
9428         of r for the second alternative of the destination operand.
9430 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
9432         PR target/36557
9433         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
9435 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9437         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
9438         keywords.
9439         ([-fivar-visibility], [-fvisibility]): Likewise.
9441 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9443         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
9444         the file where @code, @command, etc is more appropriate.
9446 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
9448         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
9449         of -mrecip= documentation.
9451 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9453         PR target/64505
9454         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
9455         correct reload handler if -m32 -mpowerpc64 is used.
9457 2015-01-06  Tom de Vries  <tom@codesourcery.com>
9459         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
9461 2015-01-08  Christian Bruel  <christian.bruel@st.com>
9463         PR target/64507
9464         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
9466 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9468         PR tree-optimization/63259
9469         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
9470         if optab exists for 16bit byteswap.
9472 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
9474         * opts.c (common_handle_option): Add support for
9475         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
9476         * doc/invoke.texi: Document -fno-sanitize=all,
9477         -f{,no-}sanitize-recover=all.  Document that
9478         -fsanitize=float-cast-overflow is not enabled
9479         by -fsanitize=undefined.  Fix up documentation
9480         of -f{,no-}sanitize-recover.
9482 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
9484         * config.gcc: Add Visium support.
9485         * configure.ac: Likewise.
9486         * configure: Regenerate.
9487         * doc/extend.texi (interrupt attribute): Add Visium.
9488         * doc/invoke.texi: Document Visium options.
9489         * doc/install.texi: Document Visium target.
9490         * doc/md.texi: Document Visium constraints.
9491         * common/config/visium: New directory.
9492         * config/visium: Likewise.
9494 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
9496         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
9497         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
9499 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
9501         * combine.c (combine_validate_cost): Do not count the cost of a
9502         split I2 twice.  Do not display it twice in the dump, either.
9504 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9506         Revert parts of r219199.
9507         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
9508         <inttypes.h>.
9509         ([-Wtraditional]): Restore markup on <limits.h>.
9511 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
9513         PR c++/31397
9514         * doc/invoke.texi: Document -Wsuggest-override.
9516 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
9518         PR rtl-optimization/64287
9519         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
9520         (process_options): Disable flag_ipa_ra if profiling.
9522 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
9524         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
9526 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
9528         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
9529         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
9530         put under #if TARGET_LOOPS guard.
9532 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
9534         * config/i386/i386.c (output_387_binary_op): Use std::swap.
9536 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
9538         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
9539         * rtl.h (refers_to_regno_p): Add overload.
9540         * cse.c: Use it.
9541         * bt-load.c: Likewise.
9542         * combine.c: Likewise.
9543         * df-scan.c: Likewise.
9544         * sched-deps.c: Likewise.
9545         * config/s390/s390.c: Likewise.
9546         * config/m32r/m32r.c: Likewise.
9547         * config/rs6000/spe.md: Likewise.
9548         * config/rs6000/rs6000.c: Likewise.
9549         * config/pa/pa.c: Likewise.
9550         * config/stormy16/stormy16.c: Likewise.
9551         * config/cris/cris.c: Likewise.
9552         * config/arc/arc.md: Likewise.
9553         * config/arc/arc.c: Likewise.
9554         * config/sh/sh.md: Likewise.
9555         * config/sh/sh.c: Likewise.
9556         * config/frv/frv.c: Likewise.
9558 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9560         PR sanitizer/64265
9561         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
9562         call as cleanup of the whole body.
9563         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
9564         * tsan.c (replace_func_exit): New function.
9565         (instrument_func_exit): Moved earlier.
9566         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
9567         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
9568         been found.
9569         (tsan_pass): Don't call instrument_func_exit.
9570         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
9571         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
9572         inlining.
9574         PR sanitizer/64344
9575         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
9576         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
9577         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
9578         if the result is integer_zerop, return NULL_TREE.
9579         * convert.c (convert_to_integer): Pass expr as ARG.
9581         PR tree-optimization/64465
9582         * tree-inline.c (redirect_all_calls): During inlining
9583         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
9584         changed the stmt to a non-throwing call.
9586 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9588         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
9589         etc markup throughout the file.
9591 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9593         Enable experimental TSAN support for Ada.
9594         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
9596 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9598         PR tree-optimization/64494
9599         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
9600         clear SSA_NAME_ANTI_RANGE_P flag.
9602 2015-01-05  Marek Polacek  <polacek@redhat.com>
9604         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
9606 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
9608         Update copyright years.
9610         * gcc.c (process_command): Update copyright notice dates.
9611         * gcov-dump.c: Ditto.
9612         * gcov.c: Ditto.
9613         * doc/cpp.texi: Bump @copying's copyright year.
9614         * doc/cppinternals.texi: Ditto.
9615         * doc/gcc.texi: Ditto.
9616         * doc/gccint.texi: Ditto.
9617         * doc/gcov.texi: Ditto.
9618         * doc/install.texi: Ditto.
9619         * doc/invoke.texi: Ditto.
9621         * auto-profile.c, auto-profile.h: Fix up Copyright line.
9623 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
9625         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
9626         verb tense, etc.
9627         ([-fvtable-verify], [-fvtv-debug]): Likewise.
9628         ([-Wabi]): Likewise.
9629         ([-fmessage-length]): Likewise.
9630         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
9631         ([-Wno-discarded-qualifiers]): Likewise.
9632         ([-Wnodiscarded-array-qualifiers]): Likewise.
9633         ([-Wno-virtual-move-assign]): Likewise.
9634         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
9635         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
9636         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
9637         ([-fsanitize-undefined-trap-on-error]): Likewise.
9638         ([-floop-interchange]): Likewise.
9639         ([-ftree-coalesce-inlined-vars]): Likewise.
9640         ([-fvect-cost-model]): Likewise.
9641         ([-flto]): Likewise.
9642         ([--param]): Likewise.
9643         (Spec Files): Likewise.
9644         ([-mstrict-align]): Likewise.
9645         ([-mfix-cortex-a53-835769]): Likewise.
9646         ([-march], [-mtune]): Likewise.
9647         ([-mpic-register]): Likewise.
9648         ([-munaligned-access]): Likewise.
9649         ([-msp8]): Likewise.
9650         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
9651         (AVR Built-in Macros): Likewise.
9652         ([-mpreferred-stack-boundary]): Likewise.
9653         ([-mtune-crtl]): Likewise.
9654         ([-mashf]): Likewise.
9655         ([-mmcu=]): Likewise.
9656         ([-minrt]): Likewise.
9657         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
9658         ([-mupper-regs]): Likewise.
9659         ([-matomic-model]): Likewise.
9660         ([-mdiv]): Likewise.
9661         ([-mzdcbranch]): Likewise.
9662         ([-mdisable-callt]): Likewise.
9663         ([-msoft-float]): Likewise.
9664         ([-m8byte-align]): Likewise.
9665         ([-fstack-reuse]): Likewise.
9667 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9669         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
9670         Fix markup, light copy-editing.
9671         ([-fauto-profile]): Rewrite to fix formatting and content
9672         problems.
9674 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9676         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
9677         Copy-edit description.
9678         ([-fisolate-erroneous-paths-attribute]): Likewise.
9679         * common.opt (fisolate-erroneous-paths-dereference):
9680         Copy-edit description.
9681         (fisolate-erroneous-paths-attribute): Likewise.
9683 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9685         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
9686         tidy grammar.
9688 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9690         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
9691         ([-fvtv-debug]): Likewise.
9692         ([-Wc++-compat]): Likewise.
9693         ([-Wc++11-compat]): Likewise.
9694         ([-Wc++14-compat]): Likewise.
9695         ([-Wno-sized-deallocation]): Likewise.
9696         ([-femit-class-debug-always]): Likewise.
9697         ([-femit-struct-debug-detailed]): Likewise.
9698         ([-fno-keep-inline-dllexport]): Likewise.
9699         ([-fira-algorithm]): Likewise.
9700         ([-fira-region]): Likewise.
9701         ([-flra-remat]): Likewise.
9702         ([-fipa-ra]): Likewise.
9703         ([-fhoist-adjacent-loads]): Likewise.
9704         ([-fisolate-erroneous-paths-dereference]): Likewise.
9705         ([-fisolate-erroneous-paths-attribute]): Likewise.
9706         ([-ftree-switch-conversion]): Likewise.
9707         ([-ftree-tail-merge]): Likewise.
9708         ([-ftree-loop-if-convert]): Likewise.
9709         ([-ftree-loop-if-convert-stores]): Likewise.
9710         ([-ftree-loop-distribution]): Likewise.
9711         ([-ftree-loop-distribute-patterns]): Likewise.
9712         ([-flto-compression-level]): Likewise.
9713         ([-flto-report]): Likewise.
9714         ([-flto-report-wpa]): Likewise.
9715         ([-fuse-linker-plugin]): Likewise.
9716         ([-mfix-cortex-a53-835769]): Likewise.
9717         ([-mno-fix-cortex-a53-835769]): Likewise.
9718         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
9719         explicit listing; add a note to the discussion indicating they
9720         exist.  Reorder table to group similar options.  Add missing
9721         @opindex entries.  Add @need commands throughout the table to
9722         allow it to be split across multiple pages.
9723         ([-m8bit-idiv]): Fix @opindex.
9724         ([-mavx256-split-unaligned-load]): Likewise.
9725         ([-mavx256-split-unaligned-store]): Likewise.
9726         ([-mstack-protector-guard]): Likewise.
9727         ([-mcpu=]): Likewise.
9728         ([-mcpu]): Likewise.
9729         ([-mpointer-size=]): Likewise.
9731 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
9733         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
9734         instead of `m' constraint.  Likewise for unnamed movb comparison
9735         patterns using reg_before_reload_operand predicate.
9736         * config/pa/predicates.md (reg_before_reload_operand): Tighten
9737         predicate to reject register index and LO_SUM DLT memory forms
9738         after reload.
9740 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
9742         * doc/invoke.texi (Option Summary): Fix spelling of
9743         -fdevirtualize-at-ltrans.
9744         ([-fdevirtualize]): Fix markup.
9745         ([-fdevirtualize-speculatively]): Fix typo.
9746         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
9747         implementor-speaky.
9748         * common.opt (fdevirtualize-at-ltrans): Likewise.
9749         * ipa-devirt.c: Fix typos in comments throughout the file.
9750         (ipa_devirt): Fix typos in format strings for dump output.
9752 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
9754         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
9755         discussion of defaults, light copy-editing.
9757 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9759         * tsan.c (instrument_expr): corrected previous checkin.
9761 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9763         Instrument bit field and unaligned accesses for TSAN.
9764         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
9765         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
9766         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
9767         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
9768         unaligned memory regions.
9770 2015-01-01  Anthony Green  <green@moxielogic.com>
9772         * config/moxie/predicates.md (moxie_general_movsrc_operand):
9773         Restrict move source register offsets to 16 bits.
9775 Copyright (C) 2015 Free Software Foundation, Inc.
9777 Copying and distribution of this file, with or without modification,
9778 are permitted in any medium without royalty provided the copyright
9779 notice and this notice are preserved.