* config/rl78/rl78.c (need_to_save): Save register 22 if it is
[official-gcc.git] / gcc / ChangeLog
blob2593a3c7f99cab26d5f21216010465382e151c7f
1 2015-05-06  Nick Clifton  <nickc@redhat.com>
3         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
4         used, even if it is not being used as a frame pointer.
6 2015-05-05  Jason Merrill  <jason@redhat.com>
8         * dwarf2out.c (gen_member_die): Don't emit anything for an
9         anonymous class constructor.
11 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
13         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14         that it reflects the block structure.
15         (afdo_propagate_edge): Likewise.
16         (afdo_calculate_branch_prob): Likewise.
17         (afdo_annotate_cfg): Likewise.
18         * cfgcleanup.c (equal_different_set_p): Likewise.
19         (try_crossjump_to_edge): Likewise.
20         * cgraph.c (cgraph_node::verify_node): Likewise.
21         * cgraphunit.c (expand_all_functions): Likewise.
22         * config/i386/i386.c (ix86_expand_copysign): Likewise.
23         (exact_dependency_1): Likewise.
24         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26         * gensupport.c (process_define_subst): Likewise.
27         * lto-wrapper.c (merge_and_complain): Likewise.
28         * tree-if-conv.c (if_convertible_bb_p): Likewise.
29         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
30         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32         * tree-vect-loop.c (vectorizable_reduction): Likewise.
33         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
34         * tree-vect-stmts.c (vectorizable_shift): Likewise.
35         * tree-vrp.c (vrp_finalize): Likewise.
36         * tree.c (variably_modified_type_p): Likewise.
38 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
40         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
41         on darwin12 and later.
42         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
43         file to pass -rdynamic on darwin12 and later.
44         * config/darwin.opt (rdynamic): Add.
46 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
48         * doc/extend.texi (C Extensions): Update menu for moved Variable
49         Attributes and Type Attributes sections.
51 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
53         PR target/65990
54         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
55         if rep_8byte stringop strategy was specified for 32-bit target.
57 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
59         PR target/65915
60         * config/i386/i386.md (vector convert to float spltiter): Check for
61         xmm16+, when splitting scalar float conversion.
62         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
64 2015-05-05  Nick Clifton  <nickc@redhat.com>
66         * config/msp430/msp430-opts.h (enum msp430_regions): New.
67         * config/msp430/msp430.c (msp430_override_options): Complain if
68         -mcode-region or -mdata-region is used on a non MSP430X.
69         (msp430_section_attr): New function.  Checks lower, upper and
70         either attributes.
71         (msp430_attribute_table): Add lower, upper and either.
72         (gen_prefix): New function.  Generates a prefix for a section
73         name.
74         (msp430_select_section): New function - handles the choice of
75         section for an object.  Takes into account memory region
76         attributes and options.
77         (msp430_function_section): Use gen_prefix.
78         (TARGET_SECTION_TYPE_FLAGS): Define.
79         (msp430_section_type_flags): New function.
80         (TARGET_ASM_UNIQUE_SECTION): Define.
81         (msp430_unique_section): New function.
82         (msp430_output_aligned_decl_common): New function.
83         (msp430_do_not_relax_short_jumps): New function.
84         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
85         Define.
86         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
87         * config/msp430/msp430-protos.h
88         (msp430_do_not_relax_short_jumps): New prototype.
89         (msp430_output_aligned_decl_common): New prototype.
90         * config/msp430/msp430.md (length): New attribute.
91         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
92         then use a long code sequence for short jumps.
93         * config/msp430/msp430.opt (mcode-region): New.
94         (mdata-region): New.
95         * doc/invoke.texi: Document new options.
96         * doc/extend.texi: Document new attributes.
98 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
100         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
101         (tune_params): Add field branch_costs.
102         (aarch64_branch_cost): Declare.
103         * gcc/config/aarch64.c (generic_branch_cost): New.
104         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
105         (cortexa53_tunings): Likewise.
106         (cortexa57_tunings): Likewise.
107         (thunderx_tunings): Likewise.
108         (xgene1_tunings): Likewise.
109         (aarch64_branch_cost): Define.
110         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
112 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
114         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
115         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
116         * config/i386/i386.md: Ditto.
117         * config/i386/winnt.c: Ditto.
119 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
121         * doc/extend.texi (__atomic Builtins): Move implementation details
122         to the end of the description, rewrite opening paragraphs, state
123         difference with __sync builtins, state C11/C++11 assumptions,
124         weaken itemized descriptions, add explanation of memory model
125         behaviour, expand description of compare-exchange, simplify text.
127 2015-05-05  Renlin Li  <renlin.li@arm.com>
129         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
131 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
133         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
134         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
135         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
136         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
137         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
138         * configure: Regenerate.
139         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
140         * doc/install.texi (aarch64*-*-*): Document new
141         --enable-fix-cortex-a53-843419 option.
142         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
143         and -mno-fix-cortex-a53-843419 options.
145 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
147         PR target/65871
148         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
150 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
152         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
153         fix overactive TYPE_MIN_VALUE check and add FIXME for type
154         compatibility problems.
156 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
158         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
159         constraints.
160         (cbranchsi4_reg): New.
161         * config/microblaze/microblaze.c
162         (microblaze_expand_conditional_branch_reg): New.
163         * config/microblaze/microblaze-protos.h
164         (microblaze_expand_conditional_branch_reg): New prototype.
166 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
168         * config/microblaze/microblaze.md (peephole2): New.
170 2015-05-04  Jeff Law  <law@redhat.com>
172         Revert:
173         2015-05-04  Jeff Law  <law@redhat.com>
175         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
176         simplifier to narrow arithmetic.
177         * generic-match-head.c: (types_match, single_use): New functions.
178         * gimple-match-head.c: (types_match, single_use): New functions.
180 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
182         PR target/65987
183         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
184         (split_branches): Likewise.
186 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
188         * common.opt (fdelete-null-pointer-checks): Init to -1.
189         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
190         override flag_delete_null_pointer_checks default.
191         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
192         behavior re address zero.  Better document target-specific behavior.
193         (-fisolate-errneous-paths-dereference): Mention relationship to
194         -fdelete-null-pointer-checks.
196 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
198         PR tree-optimization/65984
199         * ubsan.c: Include tree-cfg.h.
200         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
201         stmt_could_throw_p test, rename can_throw variable to ends_bb.
203 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
205         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
206         to CONST_DOUBLE_P predicate.
207         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
208         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
209         allow only operands that satisfy standard_sse_constant_p predicate.
210         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
211         to CONST_DOUBLE_P predicate.
213 2015-05-04  Jeff Law  <law@redhat.com>
215         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
216         simplifier to narrow arithmetic.
217         * generic-match-head.c: (types_match, single_use): New functions.
218         * gimple-match-head.c: (types_match, single_use): New functions.
220 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
222         * config/arm/arm.c: Restore bootstrap.
224 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
226         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
227         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
228         as CONST_WIDE_INT, not CONST_DOUBLE.
229         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
230         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
231         (ix86_find_base_term): Do not check for CONST_DOUBLE.
232         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
233         (ix86_build_signbit_mask): Rewrite using wide ints.
234         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
235         (ix86_rtx_costs): Handle CONST_WIDE_INT.
236         (find_constant): Ditto.
237         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
238         using gen_int_mode.
239         * config/i386/predicates.md (x86_64_immediate_operand)
240         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
241         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
242         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
243         (const0_operand): Also match const_wide_int.
244         (constm1_operand): Ditto.
245         (const1_operand): Ditto.
247 2015-05-04  Richard Biener  <rguenther@suse.de>
249         PR tree-optimization/65965
250         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
251         store groups at gaps.
253 2015-05-04  Richard Biener  <rguenther@suse.de>
255         PR tree-optimization/65935
256         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
257         then make sure to apply that swapping to the IL.
259 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
261         * Makefile.in (PATCHLEVEL_c): New variable.
262         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
263         expand the same way as if DEVPHASE_c was non-empty.
265 2015-05-04  Kai Tietz  <ktietz@redhat.com>
267         PR target/65559
268         * lto-wrapper.c (run_gcc): Open filename
269         in binary-mode.
271 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
273         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
274         sections up in file, to immediately after the Function Attributes
275         section.
277 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
279         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
281 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
283         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
284         (insert_partition_copy_on_edge): Adjust.
285         (insert_rtx_to_part_on_edge): Likewise.
286         (insert_part_to_rtx_on_edge): Likewise.
288 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
290         * function.c (set_return_jump_label): Change type of argument to
291         rtx_insn *.
292         * function.h (set_return_jump_label): Adjust.
294 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
296         * reload.h (struct reg_equivs_t): Change type of init to
297         rtx_insn *.
298         * ira.c (fix_reg_equiv_init): Adjust.
299         * reload1.c (eliminate_regs_1): Likewise.
300         (init_eliminable_invariants): Likewise.
302 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
304         * cselib.c (fp_setter_insn): Take a rtx_insn *.
305         * cselib.h (fp_setter_insn): Adjust.
307 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
309         * recog.c (struct validate_replace_src_data): Change type of
310         insn field to rtx_insn *.
311         (validate_replace_src_group): Change type of argument to rtx_insn *.
312         * recog.h (validate_replace_src_group): Adjust.
314 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
316         * haifa-sched.c: Change the type of some variables to rtx_insn *.
317         * sched-deps.c: Likewise.
318         * sched-int.h: Likewise.
319         * sched-rgn.c: Likewise.
320         * sel-sched.c: Likewise.
322 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
324         to rtx_insn *.
325         * config/i386/i386.c: Change the type of some arguments to
326         rtx_insn *.
327         * config/arm/arm.c: Likewise.
329 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
331         * lra-constraints.c: Change type of some arguments to rtx_insn *.
333 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
335         * regcprop.c (kill_autoinc_value): Change type of argument to
336         rtx_insn *.
338 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
340         * genrecog.c (print_subroutine): Adjust.
341         * recog.c (get_bool_attr_mask_uncached): Likewise.
342         * recog.h (struct recog_data_d): Change the type of insn to
343         rtx_insn *.
345 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
347         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
349 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
351         * df-problems.c (df_set_note): Change type of argument to
352         rtx_insn *.
354 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
356         * builtins.c (expand_builtin_trap): Change type of local
357         variable to rtx_insn *.
358         (add_sched_insns_for_speculation): Likewise.
359         (ix86_emit_save_regs): Likewise.
360         (get_scratch_register_on_entry): Likewise.
361         (ix86_emit_restore_reg_using_pop): Likewise.
362         (ix86_emit_leave): Likewise.
363         (ix86_emit_restore_regs_using_mov): Likewise.
364         (ix86_expand_epilogue): Likewise.
365         Likewise.
366         (rl78_alloc_physical_registers_umul): Likewise.
367         * cselib.c (discard_useless_locs): Likewise.
368         (cselib_invalidate_regno): Likewise.
369         (cselib_invalidate_mem): Likewise.
370         * function.c (expand_function_start): Likewise.
371         (emit_use_return_register_into_block): Likewise.
372         * gcse.c: Likewise.
373         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
374         * ifcvt.c (noce_get_alt_condition): Likewise.
375         * loop-doloop.c (doloop_condition_get): Likewise.
376         * lra-constraints.c (inherit_in_ebb): Likewise.
377         * modulo-sched.c (sms_schedule_by_order): Likewise.
378         * recog.c (next_insn_tests_no_inequality): Likewise.
379         * reorg.c (emit_delay_sequence): Likewise.
380         (update_reg_dead_notes): Likewise.
381         (fix_reg_dead_note): Likewise.
382         (fill_slots_from_thread): Likewise.
383         (delete_computation): Likewise.
385 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
387         * doc/extend.texi (Variable Attributes): Add menu and proper
388         @nodes to subsections.  Move Microsoft Windows attributes to
389         their own subsection.
390         (Type Attributes): Reorganize introduction to remove duplicate
391         list of attributes.  Add menu and proper @nodes to subsections.
392         Alphabetize the main table of common attributes.
394 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
396         * match.pd: New simplification patterns.
397         (x + (x & 1))  -> ((x + 1) & ~1)
398         (x & ~(x & y)) -> ((x & ~y))
399         (x | ~(x | y)) -> ((x | ~y))
401 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
403         * target.def (attribute_table): Mention that struct attribute_spec
404         is defined in tree-core.h rather than tree.h
405         * doc/tm.texi: Regenerate.
407 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
409         * genrecog.c (test): Rename to rtx_test.  Update rest of file
410         accordingly.
412 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
414         PR translation/65959
415         * params.h (DEFPARAM): Rename msgid to nocmsgid.
417 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
419         * gcc/config/aarch64/aarch64-protos.h (tune_params):
420         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
421         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
422         Return value depending on target.
423         (generic_tunings): Initialize new target settings.
424         (cortexa53_tunings): Likewise.
425         (cortexa57_tunings): Likewise.
426         (thunderx_tunings): Likewise.
427         (xgene1_tunings): Likewise.
429 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
431         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
432         Make Cortex-A53 shift costs more accurate.
434 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
436         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
437         UNSIGNED_FLOAT.
439 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
441         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
442         Calculate cost of op0 and op1 in PLUS and MINUS cases.
444 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
446         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
447         Add cost of op0 in the compare-with-fpzero case.
449 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
451         * builtins.c (fold_builtin_1): Remove spurious second
452         semicolon.
453         * cgraph.h (symtab_node::get_availability): Likewise.
454         * opts.c (common_handle_option): Remove spurious second semicolon.
455         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
456         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
458 2015-04-30  Caroline Tice  <cmtice@google.com>
460         PR 65929
461         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
462         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
463         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
464         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
465         * doc/tm.texi: Regenerate.
466         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
467         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
468         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
469         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
471 2015-04-30  Marek Polacek  <polacek@redhat.com>
473         * varasm.c (handle_cache_entry): Fix logic.
475 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
477         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
478         (*extrsi5_insn_uxtw_alt): Likewise.
479         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
480         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
481         operations.
483 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
485         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
486         fabd in ABS case.
488 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
490         * config/aarch64/aarch64.md
491         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
492         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
493         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
494         appropriately.  Handle alternative EON form.
496 2015-04-30  Renlin Li  <renlin.li@arm.com>
498         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
499         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
501 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
503         PR ipa/65873
504         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
505         -fstrict-aliasing boundaries.
507 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
509         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
510         and [SU]MNEGL patterns.
512 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
514         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
515         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
516         combined arithmetic-shift ops.  Properly handle all shift and extend
517         operations that can occur in combination with PLUS/MINUS.
518         Rename maybe_fma to compound_p.
519         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
520         arithmetic and shift operations.
522 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
524         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
525         rather than arith_shift cost when costing ADD/MINUS of an
526         extended value.
528 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
530         PR lto/65948
531         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
532         to itself.
534 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
536         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
537         are for the same position.
539 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
541         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
542         vectorize_loops.
543         (vectorize_loops): Use it.
545 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
547         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
548         for aggregate types.
549         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
550         type to be non_ODR.
551         * tree.c (need_assembler_name_p): Compute mangled name for
552         non-fundamental types and integer types.
554 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
556         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
557         manual swaps.
558         * expr.c (expand_expr_real_2): Likewise.
560 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
562         * tree.c (build_common_builtin_nodes): Do not build
563         __builtin_alloca_with_align as equivalent of library alloca.
565 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
567         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
568         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
569         bugus variants.
570         * tree.c: Include print-tree.h and ipa-utils.h
571         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
572         (free_lang_data_in_cgraph): Call verify_type.
573         (verify_type_variant): New function.
574         (verify_type): New function.
575         * tree.h (verify_type): Declare.
577 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
579         * config/mips/mips-cpus.def: (mips4): Change default processor
580         from PROCESSOR_R8000 to PROCESSOR_R10000.
582 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
584         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
585         la/jalr instead of jal.
587 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
589         PR target/65871
590         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
591         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
592         (setcc+movzbl peephole2): Check also clobbered reg.
593         (setcc+andl peephole2): Ditto.
595 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
597         PR libgomp/65099
598         * config/nvptx/mkoffload.c (target_ilp32): New variable.
599         (main): Set it depending on "-foffload-abi=[...]".
600         (compile_native, main): Use it to pass "-m32" or "-m64" to the
601         compiler.
603 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
605         PR target/65770
606         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
607         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
608         Flip lane index back at assembly time for bigendian.
610 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
612         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
613         * gimplify.c (gimplify_omp_workshare): Use it.
615 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
617         * Makefile.in (build/genrecog.o): Depend on inchash.h.
618         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
619         build/inchash.o
620         * genrecog.c: Rewrite most of the code except for the third page.
622 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
624         * inchash.h, inchash.c: Include bconfig.h for build objects.
625         * Makefile.in (build/inchash.o): New rule.
627 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
629         PR target/65924
630         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
631         number in type attribute expression.
633 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
635         * loop-iv.c (canon_condition): Generalize to all types of integer
636         constant.
638 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
640         * gimple-walk.c: Prune duplicate or unneeded includes.
641         (walk_gimple_asm): Only call parse_input_constraint or
642         parse_output_constraint if their findings are used.
643         Honour parse_input_constraint and parse_output_constraint
644         result.
646 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
648         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
650 2015-04-29  Tom de Vries  <tom@codesourcery.com>
652         PR tree-optimization/65893
653         * passes.def (pass_all_optimizations): Move pass_stdarg to after
654         pass_dce.
656 2015-04-29  Richard Biener  <rguenther@suse.de>
658         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
659         compute GROUP_SIZE for basic-block SLP.
660         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
661         take into account gaps.
662         (vect_get_mask_element): Properly reject references to previous
663         vectors.
664         (vect_transform_slp_perm_load): Likewise.
666 2015-04-29  Christian Bruel  <christian.bruel@st.com>
668         PR target/64835
669         * config/i386/i386.c (ix86_default_align): New function.
670         (ix86_override_options_after_change): Call ix86_default_align.
671         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
672         (ix86_override_options_after_change): New function.
674 2015-04-28  Jeff Law  <law@redhat.com>
676         * tree-ssa-dom.c (record_equality); Fix comment typos.
678 2015-04-28  Tom de Vries  <tom@codesourcery.com>
680         PR tree-optimization/65887
681         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
683 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
685         * doc/extend.texi (Declaring Attributes of Functions): Split into
686         subsections by target.  Alphabetize the table of common attributes.
687         Rewrite some of the introductory text to reflect the new structure.
688         Update some cross-references to point to the new subsections.
689         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
690         duplicate copies in the discussion of function, label, and type
691         attributes.
693 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
695         PR bootstrap/65910
696         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
698 2015-04-28  Jason Merrill  <jason@redhat.com>
700         PR c++/65734
701         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
702         (finalize_type_size): Respect TYPE_USER_ALIGN.
703         (layout_type) [ARRAY_TYPE]: Likewise.
705 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
707         * config/arm/arm.md (*arm_movt): Fix type attribute.
708         (*cmpsi_shiftsi): Likewise.
709         (*cmpsi_shiftsi_swp): Likewise.
710         (*movsicc_insn): Likewise.
711         (*cond_move): Likewise.
712         (*if_plus_move): Likewise.
713         (*if_move_plus): Likewise.
714         (*if_arith_move): Likewise.
715         (*if_move_arith): Likewise.
716         (*if_shift_move): Likewise.
717         (*if_move_shift): Likewise.
718         (*arm_movtas_ze): Likewise.
719         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
720         redundancy and type attribute.
721         (*thumb2_movsi_insn): Fix type attribute.
722         (*thumb2_addsi_short): Likewise.
723         (thumb2_addsi3_compare0): Likewise.
724         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
725         attributes accordingly.
727 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
729         PR other/65911
730         * function.c (pad_to_arg_alignment): Add parentheses.
732 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
734         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
735         libgcc/config/frv/elf-lib.h.
737 2015-04-28  Tom de Vries  <tom@codesourcery.com>
739         * tree-call-cdce.c: Fix example in header comment.
741 2015-04-28  Richard Biener  <rguenther@suse.de>
743         PR tree-optimization/62283
744         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
745         fails fatally and we are vectorizing a basic-block simply
746         cause the child to be constructed piecewise.
747         (vect_analyze_slp_cost_1): Adjust.
748         (vect_detect_hybrid_slp_stmts): Likewise.
749         (vect_bb_slp_scalar_cost): Likewise.
750         (vect_get_constant_vectors): For piecewise constructed
751         constants place them after the last def.
752         (vect_get_slp_defs): Adjust.
753         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
754         externals for basic-block vectorization.
756 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
758         PR target/63503
759         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
760         aarch64-*-*.
761         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
762         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
763         (AARCH64_TUNE_FMA_STEERING): Likewise.
764         * config/aarch64/aarch64-cores.def: Set
765         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
766         FMUL/FMADD instructions.
767         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
768         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
769         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
770         * config/aarch64/cortex-a57-fma-steering.h: New file.
771         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
773 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
775         * gensupport.c (std_preds): Add missing codes to address_operand entry.
777 2015-04-28  Richard Biener  <rguenther@suse.de>
779         PR tree-optimization/65851
780         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
781         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
782         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
783         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
784         (ccp_visit_phi_node): Adjust.
785         (evaluate_stmt): For simplifications to SSA names return its
786         lattice value if that isn't VARYING.  Return immediately when
787         simplified to a constant.
788         (visit_assignment): Adjust.
789         (ccp_visit_stmt): Likewise.
791 2015-04-28  Tom de Vries  <tom@codesourcery.com>
793         PR tree-optimization/65818
794         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
795         evaluated.
797 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
799         * calls.c (save_fixed_argument_area): Don't check
800         ARGS_GROW_DOWNWARD with the preprocessor.
801         (restore_fixed_argument_area): Likewise.
802         (mem_overlaps_already_clobbered_arg_p): Likewise.
803         (check_sibcall_argument_overlap): Likewise.
804         (expand_call): Likewise.
805         (emit_library_call_value_1): Likewise.
806         (store_one_arg): Likewise.
807         * function.c (assign_parms): Likewise.
808         (locate_and_pad_parm): Likewise.
809         (pad_to_arg_alignment): Likewise.
810         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
812 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
814         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
815         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
816         * calls.c (save_fixed_argument_area): Don't chekc if
817         ARGS_GROW_DOWNWARD is defined.
818         (restore_fixed_argument_area): Likewise.
819         (mem_overlaps_already_clobbered_arg_p): Likewise.
820         (check_sibcall_argument_overlap): Likewise.
821         (expand_call): Likewise.
822         (emit_library_call_value_1): Likewise.
823         (store_one_arg): Likewise.
824         * function.c (assign_parms): Likewise.
825         (locate_and_pad_parm): Likewise.
826         (pad_to_arg_alignment): Likewise.
827         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
829 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
831         * defaults.h (gen_epilogue): New function.
832         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
833         defined.
834         * cfgrtl.c (cfg_layout_finalize): Likewise.
835         * df-scan.c: Likewise.
836         * function.c (thread_prologue_and_epilogue_insns): Likewise.
837         (reposition_prologue_and_epilogue_notes): Likewise.
838         * reorg.c (find_end_label): Likewise.
839         * toplev.c: Likewise.
841 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
843         * bb-reorder.c (HAVE_return): Don't check if its undefined.
844         * defaults.h (gen_simple_return): New function.
845         (gen_simple_return): Likewise.
846         (HAVE_return): Add default definition to false.
847         (HAVE_simple_return): Likewise.
848         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
849         HAVE_return and HAVE_simple_return are defined.
850         * function.c (gen_return_pattern): Likewise.
851         (convert_jumps_to_returns): Likewise.
852         (thread_prologue_and_epilogue_insns): Likewise.
853         * reorg.c (find_end_label): Likewise.
854         (dbr_schedule): Likewise.
855         * shrink-wrap.c: Likewise.
856         * shrink-wrap.h: Likewise.
858 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
860         * defaults.h (EPILOGUE_USES): Add default definition of false.
861         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
862         * resource.c (init_resource_info): Likewise.
864 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
866         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
867         to false.
868         * dwarf2out.c (field_byte_offset): REmove check if
869         PCC_BITFIELD_TYPE_MATTERS is defined.
870         * stor-layout.c (layout_decl): Likewise.
871         (update_alignment_for_field): Likewise.
872         (place_field): Likewise.
874 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
876         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
877         true.
878         * regrename.c (check_new_reg_p): Remove check if
879         HARD_REGNO_RENAME_OK is defined.
880         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
882 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
884         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
885         * cse.c (fold_rtx): Likewise.
886         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
887         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
888         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
889         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
890         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
891         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
892         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
893         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
894         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
895         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
896         * Likewise.
897         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
898         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
899         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
900         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
901         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
902         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
903         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
904         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
905         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
906         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
907         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
908         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
909         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
910         * doc/tm.texi: Regenerate.
911         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
912         either true or false.
914 2015-04-27  Jeff Law  <law@redhat.com>
916         PR tree-optimization/65217
917         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
918         of them has a single use, make sure it is the LHS of the implied
919         copy.
921 2015-04-28  Alan Modra  <amodra@gmail.com>
923         PR target/65810
924         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
925         (offsettable_ok_by_alignment): Use minimum of decl and toc
926         pointer alignment.  Replace dead code with assertion.
927         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
928         case if size exceeds toc pointer alignment.
929         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
930         (rs6000_emit_move): Likewise.
931         * configure.ac: Add linker toc pointer alignment check.
932         * configure: Regenerate.
933         * config.in: Regenerate.
935 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
937         * config.gcc: Add h8300-*-linux.
938         * config/h8300/linux.h: New.
939         * config/h8300/t-linux: New.
940         * config/h8300/h8300.c (h8300_option_override): Normal mode
941         is not supported for h8300-*-linux.
942         (h8300_file_start): Target priority change.
943         (get_shift_alg): Likewise.
944         (h8300_shift_need_scratch_p): Likewise.
945         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
946         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
948 2015-04-27  Caroline Tice  <cmtice@google.com>
950         * final.c (final_scan_insn):  Output cold_function_name as function
951         type.
952         * varasm.c (cold_function_name):  Make global.
953         (assemble_start_function):  Re-set cold_function_name.
954         (assemble_end_function): Output cold partition size.
955         * varasm.h (cold_function_name):  Declare global.
957 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
959         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
960         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
961         constraint.
962         (*movxi_internal_avx512f): Ditto.
963         (define_split): Check for xmm16+, when splitting scalar float_extend.
964         (*extendsfdf2_mixed): Use "v" constraint.
965         (define_split): Check for xmm16+, when splitting scalar float_truncate.
966         (*truncdfsf_fast_sse): Use "v" constraint.
967         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
968         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
969         (define_peephole2): Check for xmm16+, when converting scalar
970         float_truncate.
971         (define_peephole2): Check for xmm16+, when converting scalar
972         float_extend.
973         (*fop_<mode>_comm_mixed): Use "v" constraint.
974         (*fop_<mode>_comm_sse): Ditto.
975         (*fop_<mode>_1_mixed): Ditto.
976         (*sqrt<mode>2_sse): Ditto.
977         (*ieee_s<ieee_maxmin><mode>3): Ditto.
979 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
981         * combine.c (simplify_if_then_else): Use std::swap instead
982         of manually swapping.
983         (known_cond): Likewise.
984         (simplify_comparison): Likewise.
986 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
988         PR target/64579
989         * config/rs6000/htm.md: Remove all define_expands.
990         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
991         UNSPECV_HTM_TABORTWCI): Remove.
992         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
993         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
994         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
995         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
996         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
997         tabortwci_internal): Remove define_insns.
998         (tabort<wd>c, tabort<wd>ci): New define_insns.
999         (tabort): Use gpc_reg_operand.
1000         (tcheck): Remove operand.
1001         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
1002         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
1003         expected value.
1004         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
1005         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
1006         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
1007         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
1008         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
1009         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
1010         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
1011         (tcheck): Remove builtin argument.
1012         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
1013         not TARGET_64BIT.
1014         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
1015         tabortdc and tabortdci builtins when not in 64-bit mode.
1016         Modify code to handle the loss of the HTM define_expands.
1017         Emit code to copy the CR register to TARGET.
1018         (htm_init_builtins): Modify code to handle the loss of the HTM
1019         define_expands.
1020         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
1021         (RS6000_BTC_64BIT): Likewise.
1022         (RS6000_BTC_CR): New macro.
1023         * doc/extend.texi: Update documentation for htm builtins.
1025 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1027         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
1028         of manually swapping.
1029         (simplify_associative_operation): Likewise.
1030         (simplify_binary_operation): Likewise.
1031         (simplify_plus_minus): Likewise.
1032         (simplify_relational_operation): Likewise.
1033         (simplify_ternary_operation): Likewise.
1035 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
1037         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
1038         (xs_hi_nonmemory_operand): Remove error.
1039         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
1040         general_operand rather than xs_hi_general_operand.
1042 2015-04-27  Richard Biener  <rguenther@suse.de>
1044         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
1045         (record_equivalences_from_stmt): Valueize rhs.
1046         (record_equality): Canonicalize x and y order via
1047         tree_swap_operands_p.  Do not swap operands for same loop depth.
1049 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
1051         PR target/65296
1052         PR target/65895
1053         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
1054         Add hint how to use own spec file.
1056 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
1058         PR tree-optimization/65875
1059         * tree-vrp.c (update_value_range): If in is_new case setting
1060         old_vr to VR_VARYING, also set new_vr to it.  Remove
1061         old_vr->type == VR_VARYING test.
1062         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
1063         SSA_PROP_INTERESTING if update_value_range returned true,
1064         but new range is VR_VARYING.
1066 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1068         * combine.c (sign_extend_short_imm): New.
1069         (set_nonzero_bits_and_sign_copies): Use above new function for sign
1070         extension of src short immediate.
1071         (reg_nonzero_bits_for_combine): Likewise for tem.
1073 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
1075         * stor-layout.c (self_referential_component_ref_p): New predicate.
1076         (copy_self_referential_tree_r): Use it.
1077         (self_referential_size): Punt for simple operations directly involving
1078         self-referential component references.
1079         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
1081 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
1083         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
1085 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
1087         * vec.h (vec): Make splice arguments const.  Update definitions
1088         accordingly.
1090 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
1092         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
1093         alternatives.
1095 2015-04-26  Tom de Vries  <tom@codesourcery.com>
1097         PR tree-optimization/65826
1098         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
1100 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
1102         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
1103         (*madd3<mode>): Ditto.
1104         (*msub4<mode>): Ditto.
1105         (*msub3<mode>): Ditto.
1106         (*nmadd4<mode>): Ditto.
1107         (*nmadd3<mode>): Ditto.
1108         (*nmadd4<mode>_fastmath): Ditto.
1109         (*nmadd3<mode>_fastmath): Ditto.
1110         (*nmsub4<mode>): Ditto.
1111         (*nmsub3<mode>): Ditto.
1112         (*nmsub4<mode>_fastmath): Ditto.
1113         (*nmsub3<mode>_fastmath): Ditto.
1115 2015-04-24  Jason Merrill  <jason@redhat.com>
1117         PR c++/50800
1118         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
1119         down when building TYPE_CANONICAL.
1120         (build_pointer_type_for_mode): Likewise.
1122 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
1124         * genrecog.c (validate_pattern): Check matching constraint refers
1125         to a lower numbered operand.
1127 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1129         PR target/65849
1130         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
1131         save to independent variables use the Save attribute.  This will
1132         allow these options to be modified with the #pragma/attribute
1133         target support.
1134         (-mallow-movmisalign): Likewise.
1135         (-mallow-df-permute): Likewise.
1136         (-msched-groups): Likewise.
1137         (-malways-hint): Likewise.
1138         (-malign-branch-targets): Likewise.
1139         (-mvectorize-builtins): Likewise.
1140         (-msave-toc-indirect): Likewise.
1142         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
1143         can be set via the #pragma/attribute target support.
1144         (rs6000_opt_vars): Likewise.
1145         (rs6000_inner_target_options): If VSX was set, also set
1146         -mno-avoid-indexed-addresses.
1148 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1150         * config/arm/iterators.md (shiftable_ops): Rename to...
1151         (SHIFTABLE_OPS): ... This.  Update use in comments.
1152         (ior_xor): Rename to...
1153         (IOR_XOR): ... This.
1154         (vqh_ops): Rename to...
1155         (VQH_OPS): ... This.
1156         (vqhs_ops): Rename to...
1157         (VQHS_OPS): ... This.
1158         (rshifts): Rename to...
1159         (RSHIFTS): ... This.
1160         (returns): Rename to...
1161         (RETURNS): ... This.
1162         * config/arm/arm.md: Update uses of the above.
1163         * config/arm/neon.md: Likewise.
1165 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1167         * config.host (case ${host}): Add aarch64*-*-linux case.
1168         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
1169         fields to all the cores.
1170         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
1171         Add MCPU_MTUNE_NATIVE_SPECS.
1172         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
1173         field to all extensions.
1174         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
1175         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
1176         Adjust definition of AARCH64_OPT_EXTENSION.
1177         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
1178         (MCPU_MTUNE_NATIVE_SPECS): Define.
1179         * config/aarch64/driver-aarch64.c: New file.
1180         * config/aarch64/x-arch64: New file.
1181         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
1182         -mtune and -march.
1184 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
1185             Wei Mi  <wmi@google.com>
1187         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
1188         * config/i386/i386.c (extract_base_offset_in_addr): New function.
1189         (ix86_operands_ok_for_move_multiple): Ditto.
1190         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
1191         (movlpd/movhpd to movupd peephole2): Ditto.
1193 2015-04-24  Marek Polacek  <polacek@redhat.com>
1195         PR c/61534
1196         * input.h (from_macro_expansion_at): Define.
1198         PR c/63357
1199         * doc/invoke.texi: Update description of -Wlogical-op.
1201 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1203         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
1204         ternary operator in fprintf and harmonize spacing.
1206 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
1208         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
1209         Mark operand1 commutative.
1211 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
1213         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
1214         input operands in memory.
1215         (*vec_concatv2si_sse4_1): Ditto.
1216         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
1217         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
1218         register_operand.
1219         (vec_extract_hi_v32hi): Ditto.
1220         (vec_extract_hi_v64hi): Ditto.
1221         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
1223 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1224             Steven Bosscher <steven@gcc.gnu.org>
1226         PR rtl-optimization/34503
1227         * cprop.c (cprop_reg_p): New.
1228         (hash_scan_set): Use above function to check if register can be
1229         propagated.
1230         (find_avail_set): Return up to two sets, one whose source is a
1231         register and one whose source is a constant.  Sets are returned in an
1232         array passed as parameter rather than as a return value.
1233         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
1234         sets returned by find_avail_set, starting with the one whose source is
1235         a constant. Use cprop_reg_p to check if register can be propagated.
1236         (do_local_cprop): Use cprop_reg_p to check if register can be
1237         propagated.
1238         (implicit_set_cond_p): Likewise.
1240 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
1242         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
1243         (sem_function::equals): IGNORED_NODES parameter is now unused;
1244         update call of equals_private.
1245         (sem_function::equals_private): Do not call equals_wpa; skip
1246         gimple body matching if there is no body.
1247         (sem_function::init): Add logic to hash tthunk info.
1248         (sem_function::parse): Also parse thunks.
1249         * ipa-icf.h (equals_private): Update declaration.
1251 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1253         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
1254         asterisk from name so this can be generated directly.
1255         (*altivec_stvx_<mode>_internal): Likewise.
1256         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
1257         that this is never called during or after reload/lra.
1258         (rs6000_frame_related): Remove split_reg
1259         argument and logic that references it.
1260         (emit_frame_save): Remove last parameter from call to
1261         rs6000_frame_related.
1262         (rs6000_emit_prologue): Remove last parameter from eight calls to
1263         rs6000_frame_related.  Force generation of stvx instruction for
1264         Altivec register saves.  Remove split_reg handling, which is no
1265         longer needed.
1266         (rs6000_emit_epilogue):  Force generation of lvx instruction for
1267         Altivec register restores.
1269 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1271         * config/rs6000/rs6000.opt (mcrypto): Change option description to
1272         match category changes in ISA 2.07B.
1274 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1276         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
1277         iterators.
1278         (cmp_op, cmp_type): New code attributes.
1279         (NEON_VCMP, NEON_VACMP): New int iterators.
1280         (cmp_op_unsp): New int attribute.
1281         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
1282         (neon_vceq<mode>): Delete.
1283         (neon_vc<cmp_op><mode>_insn): New pattern.
1284         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
1285         (neon_vcgeu<mode>): Delete.
1286         (neon_vcle<mode>): Likewise.
1287         (neon_vclt<mode>: Likewise.
1288         (neon_vcage<mode>): Likewise.
1289         (neon_vcagt<mode>): Likewise.
1290         (neon_vca<cmp_op><mode>): New define_expand.
1291         (neon_vca<cmp_op><mode>_insn): New pattern.
1292         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
1294 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
1296         * tree.h (attribute_value_equal): Declare.
1297         * tree.c (attribute_value_equal): Export.
1299 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
1301         * ipa-icf.c (sem_item::compare_attributes): New function.
1302         (sem_item::compare_referenced_symbol_properties): Compare variable
1303         attributes.
1304         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
1305         (sem_function::param_used_p): New function.
1306         (sem_function::equals_wpa): Fix attribute comparsion; match
1307         parameter type codes; do not compare paremter flags when
1308         they are not used; compare edge flags; compare indirect calls.
1309         (sem_item::update_hash_by_addr_refs): Hash reference type.
1310         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
1311         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
1312         reference use type.
1313         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
1314         * ipa-icf.h (compare_attributes, param_used_p): Declare.
1316 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
1318         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
1319         cleanup.
1320         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
1321         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
1322         (sem_item::compare_referenced_symbol_properties): New.
1323         (sem_item::hash_referenced_symbol_properties): New.
1324         (sem_item::compare_cgraph_references): Rename to ...
1325         (sem_item::compare_symbol_references): ... this one; use
1326         compare_referenced_symbol_properties.
1327         (sem_function::equals_wpa): Do not compare
1328         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
1329         DECL_IS_OPERATOR_NEW; compare pointer sizes.
1330         (sem_item::update_hash_by_addr_refs): Call
1331         hash_referenced_symbol_properties.
1332         (sem_item::update_hash_by_local_refs): Cleanup.
1333         (sem_function::merge): Do not mix up symbol properties.
1334         (sem_variable::equals_wpa): Use compare_symbol_references.
1335         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
1336         (sem_item::hash_referenced_symbol_properties): New.
1337         (sem_item::compare_symbol_references): New.
1338         (sem_item::compare_cgraph_references): Remove.
1340 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
1342         PR target/26702
1343         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
1344         Emit size of local.
1346 2015-04-23  Nick Clifton  <nickc@redhat.com>
1348         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
1349         ATTRIBUTE_UNUSED to x parameter.
1350         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
1352 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1354         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
1355         TARGET_CRYPTO to TARGET_P8_VECTOR>
1356         (crypto_vpermxor_<mode>): Likewise.
1357         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
1358         (BU_CRYPTO_3A): Likewise.
1359         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
1360         (BU_CRYPTO_OVERLOAD_3A): New #define.
1361         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
1362         (VPMSUMH): Likewise.
1363         (VPMSUMW): Likewise.
1364         (VPMSUMD): Likewise.
1365         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
1366         (VPERMXOR_V4SI): Likewise.
1367         (VPERMXOR_V8HI): Likewise.
1368         (VPERMXOR_V16QI): Likewise.
1369         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
1370         BU_CRYPTO_OVERLOAD_2A.
1371         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
1372         BU_CRYPTO_OVERLOAD_3A.
1373         * config/rs6000/rs6000.opt (mcrypto): Change description of
1374         option.
1376 2015-04-23  Richard Biener  <rguenther@suse.de>
1378         * passes.def: Remove copy propagation passes run directly after CCP.
1379         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
1380         SSA names.
1381         (ccp_visit_phi_node): Rework to handle first executable edge
1382         specially.
1384 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
1386         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
1387         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
1388         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
1389         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
1390         (thumb_legimitimize_reload_address): Remove.
1391         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
1392         Remove.
1393         (thumb_legimitimize_reload_address): Remove.
1395 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1397         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
1399 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1401         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
1402         MAX_LDM_STM_OPS.
1403         (store_multiple): Likewise.
1405 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1407         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
1408         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
1409         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
1410         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
1411         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
1412         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
1413         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
1414         Specify issue_rate value.
1415         (arm_issue_rate): Look up issue rate from tuning structs. Remove
1416         large switch statement.
1417         (arm_marvell_pj4_tune): New struct.
1418         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
1419         struct.
1421 2015-04-23  Richard Biener  <rguenther@suse.de>
1423         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
1424         (vect_find_last_store_in_slp_instance): Rename to ...
1425         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
1426         (vect_analyze_slp_cost_1): Use vector_load for constant defs
1427         and vec_construct for external defs when estimating prologue cost.
1428         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
1429         Compute costs here only when vectorizing loops.
1430         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
1431         have been determined.
1432         (vect_schedule_slp_instance): Simplify vectorized code placement
1433         and prepare for in-BB external defs.
1434         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
1435         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
1436         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
1437         guard.
1438         (vect_model_load_cost): Likewise.
1439         (vectorizable_store): Instead add it here.
1440         (vectorizable_load): Likewise.
1441         (vect_is_simple_use): Dump def type textually.
1443 2015-04-23  Richard Biener  <rguenther@suse.de>
1445         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
1446         * cfgloop.c (verify_loop_structure): Verify the root loop node.
1447         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
1448         instead of get_eh_region_from_lp_number.
1449         * loop-init.c (fix_loop_structure): If we removed a loop, reset
1450         the SCEV cache.
1452 2015-04-23  Anton Blanchard  <anton@samba.org>
1454         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
1455         need for -mprofile-kernel to save LR to stack.
1457 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1459         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
1460         adjustments.
1461         (insn_is_swappable_p): Return 1 for a convert from double to
1462         single precision when all of its uses are splats of BE element
1463         zero.
1465 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1467         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
1469 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1471         PR target/65456
1472         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
1473         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
1474         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
1475         option.
1476         (rs6000_builtin_mask_for_load): Return 0 for targets with
1477         efficient unaligned VSX accesses so that the vectorizer will use
1478         direct unaligned loads.
1479         (rs6000_builtin_support_vector_misalignment): Always return true
1480         for targets with efficient unaligned VSX accesses.
1481         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
1482         stores on targets with efficient unaligned VSX accesses is almost
1483         always the same as the cost of an aligned load or store, so model
1484         it that way.
1485         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
1486         unaligned vectors if we have efficient unaligned VSX accesses.
1487         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
1488         undocumented option.
1490 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1492         Revert:
1493         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
1495         * config.gcc (LIBC_MUSL): New tm_defines macro.
1496         * config/linux.h (OPTION_MUSL): Define.
1497         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1498         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1499         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1501         * config/linux.opt (mmusl): New option.
1502         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
1503         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
1505         * configure: Regenerate.
1507 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
1509         * config.gcc (LIBC_MUSL): New tm_defines macro.
1510         * config/linux.h (OPTION_MUSL): Define.
1511         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
1512         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
1513         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
1515         * config/linux.opt (mmusl): New option.
1516         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
1517         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
1519         * configure: Regenerate.
1521 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
1523         * doc/invoke.texi (-fsanitize-sections): Update description.
1524         * asan.c (set_sanitized_sections): Parse incoming arg.
1525         (section_sanitized_p): Support wildcards.
1527 2015-04-22  Tom de Vries  <tom@codesourcery.com>
1529         PR tree-optimization/65823
1530         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
1531         equality between ap_copy and ap.
1533 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1535         PR target/47098
1536         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
1538 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1540         PR target/47122
1541         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
1543 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1545         PR target/55144
1546         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
1547         remove already contained t-files.
1549 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1551         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
1552         Remove unneeded forward declarations.
1553         (suitable_for_tail_call_opt_p): Commentary typo fix.
1555 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1557         * varasm.c (emit_bss): Remove redundant guard.
1559 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1561         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
1563 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1565         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
1567 2015-04-22  Hale Wang  <hale.wang@arm.com>
1568             Terry Guo  <terry.guo@arm.com>
1570         PR rtl-optimization/64818
1571         * combine.c (can_combine_p): Don't combine user-specified
1572         register if it is in an asm input.
1574 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
1576         PR ipa/65076
1577         * passes.def (early_optimizations): Add pass_dse.
1579 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1581         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
1582         * reorg.c (redundant_insn): Remove ifdef
1583         INSN_REFERENCES_ARE_DELAYED.
1584         * resource.c (mark_referenced_resources): Likewise.
1586 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1588         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
1589         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
1590         * resource.c (mark_set_resources): Likewise.
1592 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1594         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
1595         * cfgcleanup.c (flow_find_cross_jump): Likewise.
1596         (flow_find_head_matching_sequence): Likewise.
1597         (try_head_merge_bb): Likewise.
1598         * combine.c (can_combine_p): Likewise.
1599         (try_combine): Likewise.
1600         (distribute_notes): Likewise.
1601         * df-problems.c (can_move_insns_across): Likewise.
1602         * final.c (final): Likewise.
1603         * gcse.c (insert_insn_end_basic_block): Likewise.
1604         * ira.c (find_moveable_pseudos): Likewise.
1605         * reorg.c (try_merge_delay_insns): Likewise.
1606         (fill_simple_delay_slots): Likewise.
1607         (fill_slots_from_thread): Likewise.
1608         * sched-deps.c (sched_analyze_2): Likewise.
1610 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1612         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
1613         PIC_OFFSET_TABLE_REGNUM.
1615 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1617         * alias.c (init_alias_target): Remove ifdef
1618         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
1619         * df-scan.c (df_insn_refs_collect): Likewise.
1620         (df_get_regular_block_artificial_uses): Likewise.
1621         (df_get_eh_block_artificial_uses): Likewise.
1622         (df_get_entry_block_def_set): Likewise.
1623         (df_get_exit_block_use_set): Likewise.
1624         * emit-rtl.c (gen_rtx_REG): Likewise.
1625         * ira.c (ira_setup_eliminable_regset): Likewise.
1626         * reginfo.c (init_reg_sets_1): Likewise.
1627         * regrename.c (rename_chains): Likewise.
1628         * reload1.c (reload): Likewise.
1629         (eliminate_regs_in_insn): Likewise.
1630         * resource.c (mark_referenced_resources): Likewise.
1631         (init_resource_info): Likewise.
1633 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1635         * defaults.h (MASK_RETURN_ADDR): New definition.
1636         * except.c (expand_builtin_extract_return_addr): Remove ifdef
1637         MASK_RETURN_ADDR.
1639 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1641         * defaults.h (RETURN_ADDR_OFFSET): New definition.
1642         * except.c (expand_builtin_extract_return_addr): Remove ifdef
1643         RETURN_ADDR_OFFSET.
1644         (expand_builtin_frob_return_addr): Likewise.
1646 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1648         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
1649         (try_redirect_by_replacing_jump): Likewise.
1650         (rtl_tidy_fallthru_edge): Likewise.
1651         * combine.c (insn_a_feeds_b): Likewise.
1652         (find_split_point): Likewise.
1653         (simplify_set): Likewise.
1654         * cprop.c (cprop_jump): Likewise.
1655         * cse.c (cse_extended_basic_block): Likewise.
1656         * df-problems.c (can_move_insns_across): Likewise.
1657         * function.c (emit_use_return_register_into_block): Likewise.
1658         * haifa-sched.c (sched_init): Likewise.
1659         * ira.c (find_moveable_pseudos): Likewise.
1660         * loop-invariant.c (find_invariant_insn): Likewise.
1661         * lra-constraints.c (curr_insn_transform): Likewise.
1662         * postreload.c (reload_combine_recognize_const_pattern):
1663         * Likewise.
1664         * reload.c (find_reloads): Likewise.
1665         * reorg.c (delete_scheduled_jump): Likewise.
1666         (steal_delay_list_from_target): Likewise.
1667         (steal_delay_list_from_fallthrough): Likewise.
1668         (redundant_insn): Likewise.
1669         (fill_simple_delay_slots): Likewise.
1670         (fill_slots_from_thread): Likewise.
1671         (delete_computation): Likewise.
1672         * sched-rgn.c (add_branch_dependences): Likewise.
1674 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1676         * genconfig.c (main): Always define HAVE_cc0.
1677         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
1678         HAVE_cc0.
1679         * cfgcleanup.c (flow_find_cross_jump): Likewise.
1680         (flow_find_head_matching_sequence): Likewise.
1681         (try_head_merge_bb): Likewise.
1682         * cfgrtl.c (rtl_merge_blocks): Likewise.
1683         (try_redirect_by_replacing_jump): Likewise.
1684         (rtl_tidy_fallthru_edge): Likewise.
1685         * combine.c (do_SUBST_MODE): Likewise.
1686         (insn_a_feeds_b): Likewise.
1687         (combine_instructions): Likewise.
1688         (can_combine_p): Likewise.
1689         (try_combine): Likewise.
1690         (find_split_point): Likewise.
1691         (subst): Likewise.
1692         (simplify_set): Likewise.
1693         (distribute_notes): Likewise.
1694         * cprop.c (cprop_jump): Likewise.
1695         * cse.c (cse_extended_basic_block): Likewise.
1696         * df-problems.c (can_move_insns_across): Likewise.
1697         * final.c (final): Likewise.
1698         (final_scan_insn): Likewise.
1699         * function.c (emit_use_return_register_into_block): Likewise.
1700         * gcse.c (insert_insn_end_basic_block): Likewise.
1701         * haifa-sched.c (sched_init): Likewise.
1702         * ira.c (find_moveable_pseudos): Likewise.
1703         * loop-invariant.c (find_invariant_insn): Likewise.
1704         * lra-constraints.c (curr_insn_transform): Likewise.
1705         * optabs.c (prepare_cmp_insn): Likewise.
1706         * postreload.c (reload_combine_recognize_const_pattern):
1707         * Likewise.
1708         * reload.c (find_reloads): Likewise.
1709         (find_reloads_address_1): Likewise.
1710         * reorg.c (delete_scheduled_jump): Likewise.
1711         (steal_delay_list_from_target): Likewise.
1712         (steal_delay_list_from_fallthrough): Likewise.
1713         (try_merge_delay_insns): Likewise.
1714         (redundant_insn): Likewise.
1715         (fill_simple_delay_slots): Likewise.
1716         (fill_slots_from_thread): Likewise.
1717         (delete_computation): Likewise.
1718         (relax_delay_slots): Likewise.
1719         * sched-deps.c (sched_analyze_2): Likewise.
1720         * sched-rgn.c (add_branch_dependences): Likewise.
1722 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1724         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
1725         that is trivially ded on non cc0 targets.
1726         (simplify_set): Likewise.
1727         (mark_used_regs_combine): Likewise.
1728         * cse.c (new_basic_block): Likewise.
1729         (fold_rtx): Likewise.
1730         (cse_insn): Likewise.
1731         (cse_extended_basic_block): Likewise.
1732         (set_live_p): Likewise.
1733         * rtlanal.c (canonicalize_condition): Likewise.
1734         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1736 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1738         * conditions.h: Define macros even if HAVE_cc0 is undefined.
1739         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
1740         * final.c: Likewise.
1741         * jump.c: Likewise.
1742         * recog.c: Likewise.
1743         * recog.h: Declare functions even when HAVE_cc0 is undefined.
1744         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
1746 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1748         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
1749         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
1750         * builtins.c (expand_builtin): Remove check if
1751         EH_RETURN_DATA_REGNO is defined.
1752         * df-scan.c (df_bb_refs_collect): Likewise.
1753         (df_get_exit_block_use_set): Likewise.
1754         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1755         * ira-lives.c (process_bb_node_lives): Likewise.
1756         * lra-lives.c (process_bb_lives): Likewise.
1758 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
1760         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
1761         FIRST_PSEUDO_REG): New.
1762         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
1763         (ARG_POINTER_REGNUM): Define to ARGP_REG.
1764         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
1765         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
1766         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
1767         (FIRST_INT_REG): New.
1768         (LAST_INT_REG): New.
1769         (FIRST_*_REG): Define using *_REG.
1770         (LAST_*_REG): Ditto.
1771         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
1772         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
1773         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
1775 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1777         * expmed.c: (synth_mult): Only assume overlapping
1778         shift with previous steps in alg_sub_t_m2 case.
1780 2015-04-21  Richard Biener  <rguenther@suse.de>
1782         PR tree-optimization/65650
1783         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
1784         transitions involving copies.
1785         (set_lattice_value): Adjust for copy lattice state.
1786         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
1787         if that doesn't dominate the merge point.
1788         (bit_value_unop): Adjust what we treat as varying mask.
1789         (bit_value_binop): Likewise.
1790         (bit_value_assume_aligned): Likewise.
1791         (evaluate_stmt): When we simplified to a SSA name record a copy
1792         instead of dropping to varying.
1793         (visit_assignment): Simplify.
1795         * gimple-match.h (gimple_simplify): Add another callback.
1796         * gimple-fold.c (fold_stmt_1): Adjust caller.
1797         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
1798         for the 2nd callback.
1799         * gimple-match-head.c (gimple_simplify): Add a callback that is
1800         used to valueize the stmt operands and use it that way.
1802 2015-04-21  Richard Biener  <rguenther@suse.de>
1804         PR tree-optimization/65788
1805         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
1807 2015-04-21  Richard Biener  <rguenther@suse.de>
1809         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
1810         vec_construct cost by vec_stmt_cost.
1812 2015-04-21  Richard Biener  <rguenther@suse.de>
1814         * cfghooks.h (create_basic_block): Replace with two overloads
1815         for RTL and GIMPLE.
1816         (split_block): Likewise.
1817         * cfghooks.c (split_block): Rename to ...
1818         (split_block_1): ... this.
1819         (split_block): Add two type-safe overloads for RTL and GIMPLE.
1820         (split_block_after_labels): Call split_block_1.
1821         (create_basic_block): Rename to ...
1822         (create_basic_block_1): ... this.
1823         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
1824         (create_empty_bb): Call create_basic_block_1.
1825         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
1826         split_block_after_labels.
1827         * omp-low.c (expand_parallel_call): Likewise.
1828         (expand_omp_target): Likewise.
1829         (simd_clone_adjust): Likewise.
1830         * tree-chkp.c (chkp_get_entry_block): Likewise.
1831         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
1832         create_basic_block overload.
1833         (cgraph_node::expand_thunk): Likewise.
1834         * tree-cfg.c (make_blocks): Likewise.
1835         (handle_abnormal_edges): Likewise.
1836         * tree-inline.c (copy_bb): Likewise.
1838 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1840         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
1841         New pattern.
1842         (*xor_one_cmplsidi3_ze): Likewise.
1844 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1846         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
1847         use df_remove_problem rather than manually removing problems, leaving
1848         holes in df->problems_in_order[].
1850 2015-04-21  Tom de Vries  <tom@codesourcery.com>
1852         PR tree-optimization/65802
1853         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
1855 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1857         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
1858         Increase to 128.
1859         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
1860         at '.'.  Assert that there's enough space for everything.
1862 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
1864         PR tree-optimization/64950
1865         Revert:
1866         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
1868         PR target/41089
1869         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
1870         as volatile.
1872 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
1874         PR rtl-optimization/64916
1875         * cfgcleanup.c (values_equal_p): New function.
1876         (can_replace_by): Use it.
1878 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
1880         PR c++/65801
1881         * doc/invoke.texi ([-Wnarrowing]): Update.
1883 2015-04-20  Jeff Law  <law@redhat.com>
1885         PR tree-optimization/65658
1886         * tree-ssa-threadupdate.c (redirection_block_p): Remove
1887         redundant test for GIMPLE_ASSIGN in last change.
1889 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
1891         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
1892         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
1893         (legitimize_tls_address): Ditto.
1894         (ix86_expand_move): Ditto.
1895         (ix86_expand_binary_operator): Remove reload_in_progress checks.
1896         (ix86_expand_unary_operator): Ditto.
1897         * config/i386/predicates.md (index_register_operand): Ditto.
1899 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
1901         * reorg.c (try_merge_delay_insns): Improve correctness checking
1902         for targets with multiple delay slots.
1904 2015-04-20  Jeff Law  <law@redhat.com>
1906         PR tree-optimization/65658
1907         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
1908         statements too.
1910 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
1912         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
1913         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
1914         Delete.
1916 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
1918         PR debug/65807
1919         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
1921 2015-04-20  Richard Biener  <rguenther@suse.de>
1923         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
1924         * gimple-fold.c (gimple_build_valueize): New function.
1925         (gimple_build): Always use gimple_build_valueize as valueize hook.
1927 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
1929         PR target/64134
1930         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
1931         and overwrite variable parts if <= 1/2 the elements are variable.
1933 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1935         PR rtl-optimization/65805
1936         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
1937         Don't use difference of offset and previous offset if
1938         update_sp_offset is non-zero.
1939         (eliminate_regs_in_insn): Ditto.
1940         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
1941         lra_eliminate_regs_1 call.
1942         * lra-constraints.c (get_equiv_with_elimination): Ditto.
1944 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
1946         * hash-table.h: Remove version of hash_table that stored value_type *.
1947         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
1948         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
1949         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
1950         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
1951         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
1952         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
1953         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
1954         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
1955         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
1956         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
1957         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
1958         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
1959         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
1960         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
1961         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
1962         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
1964 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1965             Jakub Jelinek  <jakub@redhat.com>
1967         PR target/65787
1968         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
1969         subsequent SH_NONE operand does not overwrite an existing *special
1970         value.
1971         (adjust_extract): Handle case where a vec_extract operation is
1972         wrapped in a PARALLEL.
1974 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
1976         PR target/65780
1977         * config/i386/i386.c (ix86_binds_local_p): Define only if
1978         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
1980 2015-04-17  Jeff Law  <law@redhat.com>
1982         PR tree-optimization/47679
1983         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
1984         * tree-ssa-scopedtables.c: New file.
1985         * tree-ssa-scopedtables.h: New file.
1986         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
1987         (const_and_copies): Change name/type.
1988         (record_const_or_copy): Move into tree-ssa-scopedtables.c
1989         (record_const_or_copy_1): Similarly.
1990         (restore_vars_to_original_value): Similarly.
1991         (pass_dominator::execute): Create and destroy const_and_copies table.
1992         (thread_across_edge): Update passing of const_and_copies.
1993         (record_temporary_equivalence): Use method calls rather than
1994         manipulating const_and_copies directly.
1995         (record_equality, cprop_into_successor_phis): Similarly.
1996         (dom_opt_dom_walker::before_dom_children): Similarly.
1997         (dom_opt_dom_walker::after_dom_children): Similarly.
1998         (eliminate_redundant_computations): Similarly.
1999         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
2000         (record_temporary_equivalence): Likewise.
2001         (invalidate_equivalences): Likewise.
2002         (record_temporary_equivalences_from_phis): Update due to type
2003         change of const_and_copies.  Use method calls rather than
2004         manipulating the stack directly.
2005         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
2006         (thread_through_normal_block, thread_across_edge): Likewise.
2007         (thread_across_edge): Likewise.
2008         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
2009         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
2010         of equiv_stack.
2011         (identify_jump_threads): Update due to type change of equiv_stack.
2012         (finalize_jump_threads): Delete the equiv_stack when complete.
2014 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
2016         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
2017         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
2018         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
2020 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
2022         PR target/65535
2023         * config.gcc: Exit with a comment when we do not have a major version
2024         number for the FreeBSD target.
2026 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
2028         PR target/65689
2029         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
2030         maybe_allows_mem bitfields.
2031         (maybe_allows_none_start, maybe_allows_none_end,
2032         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
2033         maybe_allows_mem_end): New variables.
2034         (compute_maybe_allows): New function.
2035         (add_constraint): Use it to initialize maybe_allows_reg and
2036         maybe_allows_mem fields.
2037         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
2038         is_address constraints such that those that allow neither mem nor
2039         reg come first, then those that only allow reg but not mem, then
2040         those that only allow mem but not reg, then the rest.
2041         (write_allows_reg_mem_function): New function.
2042         (write_tm_preds_h): Call it.
2043         * stmt.c (parse_output_constraint, parse_input_constraint): Use
2044         the generated insn_extra_constraint_allows_reg_mem function
2045         instead of always setting *allows_reg = true; *allows_mem = true;
2046         for unknown extra constraints.
2048 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
2050         PR target/65780
2051         * output.h (default_binds_local_p_3): New.
2052         * varasm.c (default_binds_local_p_3): Make it public.  Take an
2053         argument to indicate if common symbol may be local.  If common
2054         symbol may be local, treat non-external variable as defined
2055         locally.
2056         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
2057         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
2058         * config/i386/i386.c (ix86_binds_local_p): New.
2059         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
2060         ix86_binds_local_p.
2062 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
2064         PR debug/65771
2065         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
2066         trying mem_loc_descriptor on XEXP (rtl, 0).
2068 2015-04-17  Martin Liska  <mliska@suse.cz>
2070         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
2071         Release symbol_compare_collection.
2072         * ipa-reference.c: Add TODO that a vector should be released.
2074 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
2076         PR target/65296
2077         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
2078         to new AVR-LibC file layout (bug #44574).
2079         (*avrlibc_devicelib): Same.
2080         * config/avr/avr-mcus.def: Adjust comments.
2081         * config/avr/avr.opt (nodevicelib): Adjust help.
2083 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
2085         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
2087 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
2089         PR c++/64527
2090         * gimplify.c (gimplify_init_constructor): Always emit a
2091         side-effecting constructor.
2093 2015-04-17  Tom de Vries  <tom@codesourcery.com>
2095         PR tree-optimization/64950
2096         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
2097         in cfun->curr_properties.
2098         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
2099         if we generate an IFN_VA_ARG.
2100         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
2101         function if PROP_gimple_lva is not set in src function.
2103 2015-04-17  Tom de Vries  <tom@codesourcery.com>
2104             Michael Matz  <matz@suse.de>
2106         PR tree-optimization/64950
2107         * gimple-iterator.c (update_modified_stmts): Remove static.
2108         * gimple-iterator.h (update_modified_stmts): Declare.
2109         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
2110         (gimplify_va_arg_internal): New function.
2111         (gimplify_va_arg_expr): Use IFN_VA_ARG.
2112         * gimplify.h (gimplify_va_arg_internal): Declare.
2113         * internal-fn.c (expand_VA_ARG): New unreachable function.
2114         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
2115         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
2116         (expand_ifn_va_arg): New function.
2117         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
2118         (pass_stdarg::execute): Call expand_ifn_va_arg.
2119         (pass_data_lower_vaarg): New pass_data.
2120         (pass_lower_vaarg): New gimple_opt_pass.
2121         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
2122         (make_pass_lower_vaarg): New function.
2123         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
2124         properties_required field.
2125         * passes.def (all_passes): Add pass_lower_vaarg.
2126         * tree-pass.h (PROP_gimple_lva): Add define.
2127         (make_pass_lower_vaarg): Declare.
2129 2015-04-17  Tom de Vries  <tom@codesourcery.com>
2131         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
2132         * calls.c (call_expr_flags): Same.
2134 2015-04-17  Tom de Vries  <tom@codesourcery.com>
2136         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
2137         (pass_stdarg::execute): ... here.
2139 2015-04-17  Tom de Vries  <tom@codesourcery.com>
2140             Michael Matz  <matz@suse.de>
2142         * tree-cfg.c (make_blocks_1): Factor out of ...
2143         (make_blocks): ... here.
2144         (make_edges_bb): Factor out of ...
2145         (make_edges): ... here.
2146         (gimple_find_sub_bbs): New function.
2147         * tree-cfg.h (gimple_find_sub_bbs): Declare.
2149 2015-04-17  Tom de Vries  <tom@codesourcery.com>
2151         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
2153 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
2155         * asan.c (set_sanitized_sections): New function.
2156         (section_sanitized_p): Ditto.
2157         (asan_protect_global): Optionally sanitize user-defined
2158         sections.
2159         * asan.h (set_sanitized_sections): Declare new function.
2160         * common.opt (fsanitize-sections): New option.
2161         * doc/invoke.texi (-fsanitize-sections): Document new option.
2162         * opts-global.c (handle_common_deferred_options): Handle new
2163         option.
2165 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
2167         PR debug/65771
2168         * dwarf2out.c (loc_list_from_tree): Return NULL
2169         for DEBUG_EXPR_DECL.
2171 2015-04-17  Christian Bruel  <christian.bruel@st.com>
2173         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
2174         same attributes.
2176 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
2178         * ira-color.c (setup_left_conflict_sizes_p): Do not process
2179         node itself when computing left conflict subnode size.
2181 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
2183         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
2184         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
2185         *fop_<mode>_1_sse using enabled attribute.  Use
2186         register_mixssei387nonimm_operand operand 1 predicate. Change
2187         alternative 3 constraints from "x" to "v".
2189 2015-04-16  Richard Biener  <rguenther@suse.de>
2191         PR tree-optimization/65774
2192         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
2193         bit-value tracking on.
2195 2015-04-16  Richard Biener  <rguenther@suse.de>
2197         PR tree-optimization/64277
2198         * tree-vrp.c (check_array_ref): Fix anti-range handling,
2199         simplify upper bound handling.
2200         (search_for_addr_array): Simplify.
2201         (check_array_bounds): Handle ADDR_EXPRs here.
2202         (check_all_array_refs): Simplify.
2204 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
2206         * config/i386/i386.c (print_reg): Rewrite function.
2208 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2210         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
2211         Invert the condition.
2213 2015-04-16  Renlin Li  <renlin.li@arm.com>
2215         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
2216         simplifications for UNSIGNED_FLOAT.
2218 2015-04-16  Nick Clifton  <nickc@redhat.com>
2220         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
2221         MUL_UNINIT.
2222         (enum rl78_cpu_type): New.
2223         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
2224         (umulhi3_shift_virt): Remove m constraint from operand 1.
2225         (umulqihi3_virt): Likewise.
2226         * config/rl78/rl78.c (rl78_option_override): Add code to process
2227         -mcpu and -mmul options.
2228         (rl78_alloc_physical_registers): Add code to handle divhi and
2229         divsi valloc attributes.
2230         (set_origin): Likewise.
2231         * config/rl78/rl78.h (RL78_MUL_G14): Define.
2232         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
2233         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
2234         __RL78_Gxx__.
2235         (ASM_SPEC): Pass -mcpu on to assembler.
2236         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
2237         (mulqi3_rl78): Likewise.
2238         (mulhi3_g13): Likewise.
2239         (mulhi3): Generate the G13 or G14 versions of the insn directly.
2240         (mulsi3): Likewise.
2241         (mulhi3_g14): Add clobbers of AX and BC.
2242         (mulsi3_g14): Likewise.
2243         (mulsi3_g13): Likewise.
2244         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
2245         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
2246         * config/rl78/rl78.opt (mmul): Initialise value to
2247         RL78_MUL_UNINIT.
2248         (mcpu): New option.
2249         (m13, m14, mrl78): New option aliases.
2250         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
2251         (MULTILIB_DIRNAMES): Add g13 and g14.
2252         * doc/invoke.texi: Document -mcpu and -mmul options.
2254 2015-04-16  Richard Biener  <rguenther@suse.de>
2256         * tree-ssa-ccp.c (likely_value): See if we have operands that
2257         are marked as never simulate again and return CONSTANT in this
2258         case.
2259         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
2260         not have any operands that will be simulated again as
2261         not being simulated again.
2263 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
2265         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
2266         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
2267         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
2268         attribute.
2269         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
2270         enabled attribute.
2271         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
2272         *float<SWI48:mode><MODEF:mode>2_sse.
2273         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
2274         enabled attribute.
2275         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
2276         enabled attribute.
2278 2015-04-15  Tom de Vries  <tom@codesourcery.com>
2280         PR other/65487
2281         * function.c (push_dummy_function): New function.
2282         (init_dummy_function_start): Use push_dummy_function.
2283         (pop_dummy_function): New function.  Factored out of ...
2284         (expand_dummy_function_end): ... here.
2285         * function.h (push_dummy_function, pop_dummy_function): Declare.
2286         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
2287         pop_dummy_function.
2288         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
2290 2015-04-15  Jeff Law  <law@redhat.com>
2292         PR tree-optimization/47679
2293         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
2294         need for forward declaration in upcoming changes.
2295         (record_conditions, record_edge_info): Likewise.
2297         PR rtl-optimization/42522
2298         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
2299         SIGN_EXTRACT as a whole object rather than simplifying
2300         its operand.
2302 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
2304         PR ipa/65765
2305         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
2306         and GIMPLE_PREDICT use break instead of return true. For
2307         GIMPLE_EH_DISPATCH, compare dispatch region.
2309 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
2311         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
2312         details about the implementation.  Make clear preference for
2313         __atomic builtins.  Reduce possibility of future change.
2315 2015-04-15  Nick Clifton  <nickc@redhat.com>
2317         * config/rx/rx.opt (mallow-string-insns): New option.
2318         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
2319         builtin if string instructions are denied.
2320         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
2321         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
2322         appropriate.
2323         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
2324         * config/rx/rx.md (movstr): Enable pattern only if string
2325         instructions are allowed.
2326         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
2327         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
2328         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
2329         (MULTILIB_DIRNAMES): Add no-strings.
2330         * doc/invoke.texi: Document -mno-allow-string-insns.
2332 2015-04-15  Alan Modra  <amodra@gmail.com>
2334         PR target/65408
2335         PR target/58744
2336         PR middle-end/36043
2337         * calls.c (load_register_parameters): Don't load past end of
2338         mem unless suitably aligned.
2340 2015-04-15  Nick Clifton  <nickc@redhat.com>
2342         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
2343         decrement instruction as being frame related.
2344         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
2345         based addresses.
2346         If zero extending a function address enclose the operation in
2347         %code(...).
2348         (rl78_preferred_reload_class): New function.
2349         (TARGET_PREFERRED_RELOAD_CLASS): Define.
2350         * config/rl78/rl78.md: Remove useless constraints in expanders.
2351         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
2352         (mulhi3_rl78): Likewise.
2353         (mulhi3_g13): Likewise.
2354         (mulsi3_rl78): Likewise.
2355         (es_addr): Move to before the multiply patterns.
2357 2015-04-15  Alan Modra  <amodra@gmail.com>
2359         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
2360         and sequence_stack.  Add seq.
2361         (seq_stack): Delete.
2362         * function.c (prepare_function_start): Don't access x_last_insn.
2363         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
2364         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
2365         * emit_rtl.c (start_sequence, push_topmost_sequence,
2366         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
2367         sequence accessors.
2368         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
2369         remove_insn): Likewise.  Simplify.
2370         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
2371         and pop_topmost_sequence.
2372         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
2373         debug insns.
2374         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
2376 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
2378         PR target/65729
2379         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
2380         the assertiion.
2382 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
2384         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
2385         (LEGACY_INT_REGNO_P): Ditto.
2386         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
2387         (ANY_MASK_REG_P): Remove.
2388         (BND_REG_P): Rename from ANY_BND_REG_P.
2389         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
2390         legacy integer registers.  Do not handle MMX_REG_P in a special way.
2391         Merge 64byte and 32byte SSE handling.
2393 2015-04-14  Nick Clifton  <nickc@redhat.com>
2395         * expr.c (expand_assignment): Force an address offset computation
2396         into a register before changing its mode.
2397         (expand_expr_real_1): Likewise.
2399 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
2401         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
2402         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
2403         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
2404         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
2405         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
2406         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
2407         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
2408         and __aarch64_vget_lane_any.
2410 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
2412         PR rtl-optimization/65761
2413         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
2414         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
2416 2015-04-14  Richard Biener  <rguenther@suse.de>
2418         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
2419         (graphite_can_represent_scev): Use POINTER_TYPE_P.
2421 2015-04-14  Richard Biener  <rguenther@suse.de>
2423         PR tree-optimization/65758
2424         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
2425         against -1.
2426         (ccp_lattice_meet): Likewise.
2427         (bit_value_unop): Likewise.
2428         (bit_value_binop): Likewise.
2429         (bit_value_assume_aligned): Likewise.
2431 2015-04-14  Christian Bruel  <christian.bruel@st.com>
2433         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
2434         function.
2436 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
2438         PR tree-optimization/63387
2439         * match.pd ((x unord x) | (y unord y) -> (x unord y),
2440         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
2442 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
2444         * config/i386/predicates.md (any_QIreg_operand): Rename from
2445         q_regs_operand.  Do not process subregs.
2446         (QIreg_operand): Use QI_REGNO_P predicate.
2447         (ext_QIreg_operand): Ditto.
2448         (ext_register_operand): Ditto.
2449         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
2450         (AND splitters): Ditto.
2451         (AND with -65536 splitter): Add SWI48 mode for operand 0.
2452         (AND with -256 splitter): Use any_QIreg_operand predicate and
2453         SWI248 mode for operand 0.
2454         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
2455         mode for operand 0.
2456         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
2458 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
2460         * doc/plugins.texi: Rewrite first introductory paragraph.
2462 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
2464         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
2465         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
2467 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
2469         * ipa-profie.c (ipa_profile): Check number of parameters
2470         and possible polymorphic call targets before
2471         devirtualizing.
2473 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
2475         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
2476         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
2478 2015-04-13  Richard Biener  <rguenther@suse.de>
2480         PR tree-optimization/65204
2481         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
2482         takens for bit-CCP.
2484 2015-04-13  Richard Biener  <rguenther@suse.de>
2486         PR target/65660
2487         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
2488         and cond_not_taken_branch_cost to 4 and 2.
2489         (bdver2_cost): Likewise.
2490         (bdver3_cost): Likewise.
2491         (bdver4_cost): Likewise.
2493 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
2495         * hash-table.h (hash_table constructor): Add mem stats.
2496         (alloc_entries): Likewise.
2498 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
2500         * ipa-cp.c (ipcp_driver): Relase prev_edge.
2501         * passes.c (execute_one_pass): Only add transform if pass has one.
2503 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
2505         * config/i386/i386.c (ix86_option_override_internal): Don't set
2506         -fprefetch-loop-arrays if optimizing for size.
2508 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
2509             Gerald Pfeifer  <gerald@pfeifer.com>
2511         * doc/contrib.texi (Contributors): Add Martin Jambor and
2512         Michael Matz.
2514 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
2516         * BASE-VER: Set to 6.0.0.
2518         PR tree-optimization/65747
2519         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
2520         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
2522 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
2524         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
2525         sentence.  Improve grammar.
2527 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
2529         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
2531 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
2533         PR ipa/65743
2534         * ipa-inline-transform.c (speculation_removed): Remove static var.
2535         (check_speculations): New function.
2536         (clone_inlined_nodes): Do not check spculations.
2537         (inline_call): Call check_speculations.
2538         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
2539         consider non-invariants.
2541 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
2542             Martin Liska  <mliska@suse.cz>
2544         PR ipa/65722
2545         * ipa-icf.c (sem_item::compare_cgraph_references): function and
2546         variable can not match.
2547         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
2548         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
2550 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
2552         PR tree-optimization/65735
2553         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
2554         Remove visited_phis argument, add visited_bbs, avoid recursing into the
2555         same bb rather than just into the same phi node.
2556         (thread_through_normal_block): Adjust caller.
2558 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
2560         * doc/contrib.texi (Contributors): Add Ira Rosen.
2562 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
2564         * gcov.c (find_source): Fix miswording in error message.
2565         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
2566         (ix86_expand_sse_comi_round): Fix typo in error message.
2568 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
2570         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
2572 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
2574         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
2576 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
2578         PR target/65710
2579         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
2580         Print bad_spills_num and insn_pseudos_num.
2582 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2584         PR target/65694
2585         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
2586         when creating +1 values for SImode.
2588 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
2590         PR target/65729
2591         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
2592         assert.
2594 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
2595             Iain Sandoe  <iain@codesourcery.com>
2597         PR target/65351
2598         * configure: Regenerate.
2600 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2602         PR target/65671
2603         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
2605 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
2607         * doc/contrib.texi (Contributors): Add John Marino.
2609 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
2611         PR tree-optimization/65709
2612         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
2613         TREE_TYPE (TREE_TYPE (t)).
2615 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
2617         PR target/65710
2618         * lra-int.h (lra_bad_spill_regno_start): New.
2619         * lra.c (lra_bad_spill_regno_start): New.
2620         (lra): Set up lra_bad_spill_regno_start.  Set up
2621         lra_constraint_new_regno_start unconditionally.
2622         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
2623         spill preferences.
2625 2015-04-09  Marek Polacek  <polacek@redhat.com>
2626             Jakub Jelinek  <jakub@redhat.com>
2628         PR middle-end/65554
2629         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
2630         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
2631         of STRIP_NOPS.
2633 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
2635         PR rtl-optimization/65693
2636         * combine.c (is_parallel_of_n_reg_sets): Move outside of
2637         #ifndef HAVE_cc0.
2639 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
2641         PR target/65296
2642         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
2643         device specs file if "device-specs%s" didn't resolve to a path.
2645 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
2647         PR target/65676
2648         * config/i386/i386.c (fixup_modeless_constant): New.
2649         (ix86_expand_args_builtin): Fixup modeless constant operand.
2650         (ix86_expand_round_builtin): Ditto.
2651         (ix86_expand_special_args_builtin): Ditto.
2652         (ix86_expand_builtin): Ditto.
2654 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
2656         PR target/65693
2657         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
2658         any pow2 integer in between 2 and 0x80000000U inclusive.
2660 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
2662         PR rtl-optimization/65693
2663         * combine.c (is_parallel_of_n_reg_sets): Change first argument
2664         from an rtx_insn * to an rtx.
2665         (try_combine): Adjust both callers.  Use it once more.
2667 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
2669         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
2670         (chkp_make_static_const_bounds): Search existing
2671         symbol by assembler name.  Use make_decl_one_only.
2672         (chkp_get_zero_bounds_var): Remove node search which
2673         is now performed in chkp_make_static_const_bounds.
2674         (chkp_get_none_bounds_var): Likewise.
2676 2015-04-08  Michael Witten  <mfwitten@gmail.com>
2678         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
2679         to an example.
2681 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2683         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
2685 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
2687         * doc/extend.texi (__sync Builtins): Fix grammar.
2689 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2691         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
2693 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2695         * varasm.c (emit_local): Move definition of align.
2697 2015-04-08  Julian Brown  <julian@codesourcery.com>
2699         * config/nvptx/mkoffload.c (process): Support variable mapping.
2701 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
2703         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
2704         alpha_links **.
2705         (alpha_write_one_linkage): Correct typo.
2707 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
2709         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
2711 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
2713         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
2715 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
2717         * tree-chkp.h (chkp_insert_retbnd_call): New.
2718         * tree-chkp.c (chkp_insert_retbnd_call): New.
2719         * ipa-split.c (insert_bndret_call_after): Remove.
2720         (split_function): Use chkp_insert_retbnd_call.
2721         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
2722         bounds for instrumented functions.
2724 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
2726         PR ipa/65540
2727         * calls.c (initialize_argument_information): When producing tail
2728         call also turn SSA_NAMES passed by references to original PARM_DECLs
2730 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
2732         PR target/65648
2733         * lra-remat.c (do_remat): Process input and non-input insn
2734         registers separately.
2736 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
2738         PR debug/65678
2739         * valtrack.c (debug_lowpart_subreg): New function.
2740         (dead_debug_insert_temp): Use it.
2742         PR middle-end/65680
2743         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
2744         into signed HOST_WIDE_INT the same as negative bit_offset.
2746 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
2748         * ipa-comdats.c (ipa_comdats): Visit all thunks
2749         to set proper comdat group.
2751 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2753         PR target/65489
2754         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
2755         on constants for NEON VSTRUCT modes.
2757 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
2758             Iain Sandoe  <iain@codesourcery.com>
2760         PR target/65351
2761         * configure: Regenerate.
2763 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2765         PR target/65614
2766         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
2767         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
2768         that LFD is used to load double constants instead of LFS.  Add
2769         defaults for all costs structures.  Add comments for missing
2770         initialization fields.
2771         (size32_cost): Likewise.
2772         (size64_cost): Likewise.
2773         (rs64a_cost): Likewise.
2774         (mpccore_cost): Likewise.
2775         (ppc403_cost): Likewise.
2776         (ppc405_cost): Likewise.
2777         (ppc440_cost): Likewise.
2778         (ppc476_cost): Likewise.
2779         (ppc601_cost): Likewise.
2780         (ppc603_cost): Likewise.
2781         (ppc604_cost): Likewise.
2782         (ppc604e_cost): Likewise.
2783         (ppc620_cost): Likewise.
2784         (ppc630_cost): Likewise.
2785         (ppccell_cost): Likewise.
2786         (ppc750_cost): Likewise.
2787         (ppc7450_cost): Likewise.
2788         (ppc8540_cost): Likewise.
2789         (ppce300c2c3_cost): Likewise.
2790         (ppce500mc_cost): Likewise.
2791         (ppce500mc64_cost): Likewise.
2792         (ppce5500_cost): Likewise.
2793         (ppce6500_cost): Likewise.
2794         (titan_cost): Likewise.
2795         (power4_cost): Likewise.
2796         (power6_cost): Likewise.
2797         (power7_cost): Likewise.
2798         (power8_cost): Likewise.
2799         (ppca2_cost): Likewise.
2800         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
2802         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
2803         instead of XXLOR to copy SFmode to clear out dirty bits created
2804         when SFmode denormals are generated.
2805         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
2806         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
2808 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
2810         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
2811         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
2812         * config/aarch64/aarch64-tune.md: Regenerate.
2814 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
2816         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
2817         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
2818         * config/arm/arm-cores.def (exynos-m1): New core.
2819         * config/arm/arm-tune.md: Regenerate.
2820         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
2821         * config/arm/bpabi.h: Likewise.
2823 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
2825         * ipa-cp (set_single_call_flag): Remove too
2826         restrictive assert.
2828 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
2830         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
2831         GOMP_offload_unregister from the destructor.
2833 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
2835         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
2836         flags for instrumentation thunk.
2837         (chkp_produce_thunks): Likewise.
2839 2015-04-05  Martin Liska  <mliska@suse.cz>
2841         PR ipa/65665
2842         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
2843         has computed data structure.
2844         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
2846 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
2848         * invoke.texi (inline-unit-growth): Increase growth to 20%
2849         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
2851 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
2853         PR target/65647
2854         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
2855         value checking.
2856         (lra_rematerialization_iter): New.
2857         * lra.c (lra): Initialize lra_rematerialization_iter.
2858         Stop updating lra_constraint_new_regno_start after switching of
2859         inheritance and rematerialization.
2860         * lra-remat.c (lra_rematerialization_iter): New.
2861         (lra_remat): Add printing pass iteration.  Do rematerialization
2862         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
2864 2015-04-04  Richard Biener  <rguenther@suse.de>
2866         PR tree-optimization/64909
2867         PR tree-optimization/65660
2868         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
2869         to take a cost vector for scalar iteration cost.
2870         (vect_get_single_scalar_iteration_cost): Likewise.
2871         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
2872         Compute the scalar iteration cost into a cost vector.
2873         (vect_get_known_peeling_cost): Use the scalar cost vector to
2874         account for the cost of the peeled iterations.
2875         (vect_estimate_min_profitable_iters): Likewise.
2876         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
2877         Likewise.
2879 2015-04-04  Alan Modra  <amodra@gmail.com>
2881         PR target/65576
2882         PR target/65240
2883         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
2884         0.0 constant unless TARGET_VSX.
2885         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
2886         alternative.
2888 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
2890         PR ipa/65654
2891         * ipa-inline-transform.c (inline_call): Skip sanity check to work
2892         around the ICE
2894 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
2896         PR ipa/65655
2897         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
2898         speculative indirect edges to avoid ordering issue.
2900 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
2902         PR ipa/65076
2903         * ipa-inline.c (edge_badness): Add combined size to the denominator.
2905 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
2907         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
2908         TYPE_ARTIFICIAL on the .omp_data* types.
2910 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2912         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
2913         instrumentation thunks.
2915 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2917         * config/i386/i386.c (ix86_expand_call): Avoid nested
2918         PARALLEL in returned call value.
2920 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2922         * lto-cgraph.c (input_cgraph_1): Always link instrumented
2923         assembler name with original one.
2925 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
2927         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
2929 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
2931         Revert parts of r216820.
2932         * config/i386/i386.md (movqi_internal): Correct type calculation
2933         for alternatives 3 and 5.
2935 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
2937         PR preprocessor/61977
2938         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
2939         predefine __vector/__bool/__pixel macros nor context sensitive
2940         macros for CLK_ASM.
2941         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
2943 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
2945         * config/pa/pa.c (pa_output_move_double): Directly handle register
2946         indexed memory operand.  Simplify handling of scaled register indexed
2947         memory operands.
2949 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
2951         PR driver/65444
2952         * config/i386/linux-common.h (MPX_SPEC): New.
2953         (CHKP_SPEC): Add MPX_SPEC.
2954         * doc/invoke.texi (-fcheck-pointer-boudns): Document
2955         possible issues with '-z bndplt' support in linker.
2957 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
2959         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
2960         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
2961         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
2962         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
2963         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
2965 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
2967         * config/i386/sync.md (UNSPEC_MOVA): Remove.
2968         (atomic_load<mode>): Change operand 0 predicate to
2969         nonimmediate_operand and fix up the destination when needed.
2970         Use UNSPEC_LDA.
2971         (atomic_loaddi_fpu): Use UNSPEC_LDA.
2972         (atomic_store<mode>): Change operand 1 predicate to
2973         nonimmendate_operand and move the source to register when needed.
2974         Use UNSPEC_STA.
2975         (atomic_store<mode>_1): Use UNSPEC_STA.
2976         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
2977         Fix moves from memory operand.  Use UNSPEC_STA.
2979 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2981         * expmed.c (strict_volatile_bitfield_p): Check that the access will
2982         not cross a MODESIZE boundary.
2983         (store_bit_field, extract_bit_field): Added assertions in the
2984         strict volatile bitfields code path.
2986 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2988         PR target/65624
2989         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
2990         Increase args array size by one to avoid buffer overflow.
2992 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
2994         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2995         split_part.
2996         * ipa-inline.c (edge_badness): Add wrapper penalty.
2997         (sum_callers): Move up.
2998         (inline_small_functions): Set single_caller.
2999         * ipa-inline.h (inline_summary): Add single_caller.
3000         * ipa-split.c (split_function): Set split_part.
3001         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
3002         * cgraph.h (cgraph_node): Add split_part.
3004 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
3006         PR target/58945
3007         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
3008         Do not split operands 0 and operands 2 to halfmode.
3009         (atomic_compare_and_swap<mode>): Update for
3010         atomic_compare_and_swap<dwi>_doubleword changes.
3012 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
3014         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
3015         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
3016         no caching is done.
3018 2015-03-31  Martin Liska  <mliska@suse.cz>
3020         PR ipa/65557
3021         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
3022         has already filled up function summary.
3023         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
3025 2015-03-31  Richard Biener  <rguenther@suse.de>
3027         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
3028         of types.
3030 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3032         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
3033         nested functions.
3034         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
3035         (s390_asm_output_function_label): Adapt to new signature of
3036         s390_function_num_hotpatch_hw
3037         Optimise the code generating assembler output.
3038         Add comments to assembler file.
3040 2015-03-31  Richard Biener  <rguenther@suse.de>
3042         PR middle-end/65626
3043         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
3044         of the noreturn call so it is last and cleanup_control_flow_bb
3045         can do the CFG part.
3047 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
3049         PR target/65531
3050         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
3051         same_comdat_group for external symbols.
3052         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
3053         infinite same_comdat_group traversal loop.
3055 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
3057         PR plugins/61176
3058         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
3059         automatically to $headers.
3061 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
3063         PR ipa/65610
3064         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
3065         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
3066         function.
3067         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
3068         Use it.
3069         * ipa-prop.c (param_type_may_change_p): Likewise.
3070         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
3071         (remove_unused_scope_block_p): Add in_ctor_dtor_block
3072         argument.  Before inlining, preserve
3073         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
3074         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
3075         recursive calls.
3076         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
3078 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
3080         PR ipa/65076
3081         * ipa-inline.c (edge_badness): Base denominator on callee's
3082         grwoth squared.
3084 2015-03-27  Martin Jambor  <mjambor@suse.cz>
3086         PR ipa/65478
3087         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
3088         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
3089         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
3090         node_calling_single_call.
3091         * ipa-cp.c (count_callers): New function.
3092         (set_single_call_flag): Likewise.
3093         (initialize_node_lattices): Count callers and set single_flag_call if
3094         necessary.
3095         (incorporate_penalties): New function.
3096         (good_cloning_opportunity_p): Use it, dump new flags.
3097         (propagate_constants_topo): Set node_within_scc flag if appropriate.
3098         * doc/invoke.texi (ipa-cp-recursion-penalty,
3099         ipa-cp-single-call-pentalty): Document.
3101 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
3103         PR ipa/65588
3104         * symtab.c (symtab_node::get_partitioning_class): Register vars
3105         are duplicated.
3106         * varpool.c (symbol_table::output_variables) Do not assemble unefined
3107         decls for non-symbols.
3109 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3111         PR target/65248
3112         * output.h (default_binds_local_p_2): New.
3113         * varasm.c (default_binds_local_p_2): Renamed to ...
3114         (default_binds_local_p_3): This.  Don't return true on protected
3115         data symbol if protected data may be external.
3116         (default_binds_local_p): Use default_binds_local_p_3.
3117         (default_binds_local_p_1): Likewise.
3118         (default_binds_local_p_2): New.
3119         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
3120         default_binds_local_p_2 if TARGET_MACHO is undefined.
3122 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
3124         PR target/65593
3125         * config/i386/i386.c (legitimize_pic_address): If base
3126         is SYMBOL_REF or LABEL_REF using %rip addressing, force
3127         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
3129 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
3131         PR target/65531
3132         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
3133         comdat groups.
3135 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
3137         PR ipa/65600
3138         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
3139         of optimized out indirect call.
3140         (redirect_to_unreachable): Always build symbol table node for
3141         BUILT_IN_UNREACHABLE
3143 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3145         PR target/65407
3146         * ira-costs.c (record_reg_classes): Process all constraint string
3147         containing 0-9.
3149 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
3151         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
3152         memory_operand.
3154         PR target/65052
3155         * config/c6x/constraints.md (S3): New constraint.
3156         * config/c6x/c6x.md (real_jump): Use it.
3158 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3160         PR middle-end/65595
3161         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
3162         do redirection if the call is not optimized out.
3164 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
3166         PR target/65495
3167         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
3168         (fchkp-check-incomplete-type): Add LTO.
3169         (fchkp-zero-input-bounds-for-main): Likewise.
3170         (fchkp-first-field-has-own-bounds): Likewise.
3171         (fchkp-narrow-bounds): Likewise.
3172         (fchkp-narrow-to-innermost-array): Likewise.
3173         (fchkp-use-static-bounds): Likewise.
3174         (fchkp-use-static-const-bounds): Likewise.
3175         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
3177 2015-03-27  Marek Polacek  <polacek@redhat.com>
3179         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
3181 2015-03-27  Marek Polacek  <polacek@redhat.com>
3183         PR sanitizer/65583
3184         * ubsan.c (ubsan_create_edge): New function.
3185         (instrument_bool_enum_load): Call it.
3186         (instrument_nonnull_arg): Likewise.
3187         (instrument_nonnull_return): Likewise.
3188         (instrument_object_size): Likewise.
3190 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3192         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
3193         auto_vec.
3195 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3197         PR lto/65536
3198         * lto-streamer.h (class lto_location_cache): New.
3199         (struct data_in): Add location_cache.
3200         (lto_input_location): Update prototype.
3201         (stream_input_location_now): New.
3202         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
3203         pointer to location.
3204         (stream_input_location): Update.
3205         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
3206         (warn_odr): Apply location cache before warning.
3207         (lto_input_location): Update prototype.
3208         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
3209         Use stream_input_location_now.
3210         * lto-streamer-in.c (lto_location_cache::current_cache): New static
3211         variable.
3212         (lto_location_cache::cmp_loc): New function.
3213         (lto_location_cache::apply_location_cache): New function.
3214         (lto_location_cache::accept_location_cache): New function.
3215         (lto_location_cache::revert_location_cache): New function.
3216         (lto_location_cache::input_location): New function.
3217         (lto_input_location): Do location caching.
3218         (stream_input_location_now): New function.
3219         (input_eh_region, input_struct_function_base): Use
3220         stream_input_location_now.
3221         (lto_data_in_create): use new.
3222         (lto_data_in_delete): Use delete.
3223         * tree-streamer-in.c (unpack_ts_block_value_fields,
3224         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
3225         lto_input_ts_exp_tree_pointers): Update for cached location api.
3227 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3229         PR ipa/65076
3230         * passes.def: Add pass_nothrow.
3231         * ipa-pure-const.c: (pass_data_nothrow): New.
3232         (pass_nothrow): New.
3233         (pass_nothrow::execute): New.
3234         (make_pass_nothrow): New.
3235         * tree-pass.h (make_pass_nothrow): Declare.
3237 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3239         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
3240         edge to change by speculation resolution or redirection.
3241         (edge_set_predicate): Likewise.
3242         (inline_summary_t::duplicate): Likewise.
3243         (remap_edge_summaries): Likewise.
3245 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3247         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
3248         New macros.
3249         (can_inline_edge_p): Relax option matching for always inline functions.
3251 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
3253         PR target/65561
3254         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
3255         Check operand 4 and operand 0 for equality.
3256         (avx512f_vextract<shuffletype>32x4_1_maskm):
3257         Check operand 6 and operand 0 for equality.
3258         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
3259         for equality.
3260         (vec_extract_hi_<mode>_maskm): Ditto.
3262 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3264         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
3265         dead calls back to live.
3266         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
3267         cross check to ...
3268         (cgraph_node::verify_node): ... here; verify only callee edges,
3269         not caller.
3270         * cif-code.def (CILK_SPAWN): New code.
3272 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
3274         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
3275         (edge_set_predicate): Use it to mark unreachable edges.
3276         (inline_summary_t::duplicate): Remove unnecesary code.
3277         (remap_edge_summaries): Likewise.
3278         (dump_inline_summary): Report contains_cilk_spawn.
3279         (compute_inline_parameters): Compute contains_cilk_spawn.
3280         (inline_read_section, inline_write_summary): Stream
3281         contains_cilk_spawn.
3282         * ipa-inline.c (can_inline_edge_p): Do not touch
3283         DECL_STRUCT_FUNCTION that may not be available;
3284         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
3285         remove check for callee_fun->can_throw_non_call_exceptions and
3286         replace it by optimization attribute check; check for flag_exceptions.
3287         * ipa-inline-transform.c (inline_call): Maintain
3288         DECL_FUNCTION_PERSONALITY
3289         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
3291 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
3293         PR tree-optimization/65551
3294         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
3295         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
3297 2015-03-26  Richard Biener  <rguenther@suse.de>
3299         PR middle-end/65555
3300         * tree-cfg.c (verify_gimple_call): Do not require a call to
3301         have no LHS if it wasn't recognized as control altering yet.
3303 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
3305         PR tree-optimization/64715
3306         * passes.def: Add another instance of pass_object_sizes before ccp1.
3307         * tree-object-size.c (pass_object_sizes::execute): In
3308         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
3309         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
3310         __bos result and the computed constant.  Remove redundant
3311         checks, obsoleted by gimple_call_builtin_p test.
3313         * var-tracking.c (variable_tracking_main_1): Don't track
3314         variables for targetm.no_register_allocation targets.
3316 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
3318         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
3319         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
3321 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3323         PR target/65569
3324         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
3325         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
3326         0.0 is correctly setup.
3327         (extenddftf2_internal): Likewise.
3329 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
3331         PR tree-optimization/65177
3332         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
3333         (bb_in_bbs): New.
3334         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
3335         edges not adjacent on the path to the original code.
3337 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
3339         PR bootstrap/65537
3340         * doc/install.texi (Building a native compiler): Document new
3341         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
3342         configuration assumes that the host supports the linker plugin.
3344 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
3346         PR target/65508
3347         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
3348         chain for generated call.
3350 2015-03-25  Richard Biener  <rguenther@suse.de>
3352         * passes.c (pass_manager::execute_early_local_passes): Guard
3353         execution of pass_chkp_instrumentation_passes with
3354         flag_check_pointer_bounds.
3355         (pass_chkp_instrumentation_passes::gate): Likewise.
3357 2015-03-25  Martin Liska  <mliska@suse.cz>
3359         PR tree-optimization/65538
3360         * symbol-summary.h (function_summary::~function_summary):
3361         Relese memory for allocated summaries.
3362         (function_summary::release): New function.
3364 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
3366         PR lto/65515
3367         * lto-streamer-out.c (DFS::worklist): New struct.
3368         (DFS::worklist_vec): New data member.
3369         (DFS::next_dfs_num): Remove.
3370         (DFS::DFS): Rewritten using worklist instead of recursion,
3371         using most of code from DFS::DFS_write_tree.
3372         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
3373         pass it to DFS_write_tree calls.
3374         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
3375         quick initial checks push it into worklist_vec and return.
3377 2015-03-25  Richard Biener  <rguenther@suse.de>
3379         PR middle-end/65519
3380         * genmatch.c (expr::gen_transform): Re-write to avoid
3381         using gimple_build.
3383 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
3385         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
3387 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
3389         * config/arm/arm.opt (print_tune_info): New option.
3390         * config/arm/arm.c (arm_print_tune_info): New function.
3391         (arm_file_start): Call arm_print_tune_info.
3392         * config/arm/arm-protos.h (struct tune_params): Add comment.
3393         * doc/invoke.texi (@item -mprint-tune-info): New item.
3394         (-mtune): mention it in ARM Option Summary.
3396 2015-03-25  DJ Delorie  <dj@redhat.com>
3398         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
3399         correct clause.
3401 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
3402             Martin Liska  <mliska@suse.cz>
3404         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
3405         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
3406         (sem_item::add_type): New function.
3407         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
3408         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
3409         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
3410         (sem_function::equals_wpa): Fix typo.
3411         * ipa-icf.h (sem_item::add_type): New function.
3412         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
3413         order.
3415 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
3417         PR tree-optimization/65533
3418         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
3419         with swapped operands, call vect_free_slp_tree on
3420         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
3421         vector.
3423 2015-03-24  Richard Biener  <rguenther@suse.de>
3425         PR middle-end/65517
3426         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
3427         for fixup if necessary.
3429 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
3431         * doc/extend.texi (Function Attributes): Add @cindex entries
3432         for all attributes and regularize their format.  Delete text
3433         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
3434         information about "eightbit_data", "tiny_data", and "model"
3435         variable attributes to the Variable Attributes section.  Fix
3436         some obvious typos and copy-editing issues.
3437         (Variable Attributes, Type Attributes): Likewise add/fix
3438         @cindex entries for all attributes.
3440 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
3442         PR target/65523
3443         * tree-chkp.c (chkp_build_returned_bound): Ignore
3444         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
3446 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
3448         PR target/65505
3449         * config/sh/predicates.md (simple_mem_operand,
3450         displacement_mem_operand): Add test for reg.
3451         (short_displacement_mem_operand): Test for displacement_mem_operand
3452         before invoking sh_disp_addr_displacement.
3453         * config/sh/constraints.md (Sdd, Sra): Simplify.
3454         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
3455         Remove redundant displacement_mem_operand tests.
3457 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
3459         PR target/65296
3460         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
3461         the same -mmcu=MCU more than once.
3463 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
3465         PR bootstrap/65522
3466         * ipa-devirt.c: Remove duplicate demangle.h include.
3468         PR target/65504
3469         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
3470         on the pseudo.
3471         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
3472         REG_POINTER on *destptr after adjusting it for prologue size.
3474         PR ipa/65521
3475         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
3476         ultimate_alias_target ()->order ints instead of
3477         ultimate_alias_target () pointers.
3479 2015-03-23  Richard Biener  <rguenther@suse.de>
3481         PR tree-optimization/65518
3482         * tree-vect-stmts.c (vectorizable_load): Reject single-element
3483         interleaving cases we generate absymal code for.
3485 2015-03-23  Richard Biener  <rguenther@suse.de>
3487         PR tree-optimization/65494
3488         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
3489         matches here.
3490         (vect_analyze_slp_instance): But do that here, always and once.
3492 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3494         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
3495         adding T or multiplying by T+1 and subracting T.
3497 2015-03-22  Jeff Law  <law@redhat.com>
3499         PR rtl-optimization/64317
3500         * Makefile.in (OBJS): Add gcse-common.c
3501         * gcse.c: Include gcse-common.h
3502         (struct modify_pair_s): Move structure definition to gcse-common.h
3503         (compute_transp): Move function to gcse-common.c.
3504         (canon_list_insert): Similarly.
3505         (record_last_mem_set_info): Break out some code and put it into
3506         gcse-common.c.  Call into the new common code.
3507         (compute_local_properties): Pass additional arguments to compute_transp.
3508         * postreload-gcse.c: Include gcse-common.h and df.h
3509         (modify_mem_list_set, blocks_with_calls): New variables.
3510         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
3511         (get_bb_avail_insn): Pass in the expression index too.
3512         (alloc_mem): Allocate memory for the new bitmaps and lists.
3513         (free_mem): Free memory for the new bitmaps and lists.
3514         (insert_expr_in_table): Record a bitmap index for each entry we
3515         add to the table.
3516         (record_last_mem_set_info): Call into common code in gcse-common.c.
3517         (get_bb_avail_insn): If no available insn was found in the requested
3518         BB.  If BB has a single predecessor, see if the expression is
3519         transparent in BB and available in that single predecessor.
3520         (compute_expr_transp): New wrapper for compute_transp.
3521         (eliminate_partially_redundant_load): Pass expression's bitmap_index
3522         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
3523         (gcse_after_reload_main): If there are elements in the hash table,
3524         then compute transparency for all the elements in the hash table.
3525         * gcse-common.h: New file.
3526         * gcse-common.c: New file.
3528 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
3530         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
3531         as an adjective.
3532         (System Headers): Likewise.
3533         (Ifdef): Likewise.
3534         (Traditional macros): Likewise.
3535         (Invocation): Likewise.
3536         (Option Index): Likewise.
3537         * doc/cppopts.texi (-M): Likewise.
3538         (-finput-charset): Likewise.
3539         (--help): Likewise.
3540         * doc.invoke.texi (AVR Options): Likewise.
3541         (V850 Options): Likewise.
3543 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
3545         PR ipa/65475
3546         * ipa-devirt.c: Include demangle.h
3547         (odr_type_d): Add field rtti_broken.
3548         (odr_subtypes_equivalent_p): Do not require name to match.
3549         (compare_virtual_tables): Fix typo; if type already has ODR violation,
3550         bypass the tests; be ready for function referneces in vtables that are
3551         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
3552         (warn_odr): Give up for nameless types.
3553         (warn_types_mismatch): Report mismatch in mangled names;
3554         report mismatch in anonymous namespaces; look into component types to
3555         give useful error; report when mismatch is dragged in from other ODR
3556         type.
3557         (odr_types_equivalent_p): Match types for being polymorphic; avoid
3558         duplicated diagnostics.
3559         (add_type_duplicate): Reorder checks so more informative ones come
3560         first; fix typo; do not output "the extra base is defined here" when
3561         we did not warn.
3562         (BINFO_N_BASE_BINFOS): Relax sanity check.
3564 2015-03-22  Martin Liska  <mliska@suse.cz>
3565             Jakub Jelinek  <jakub@redhat.com>
3567         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
3568         masks that can potentially include a builtin.
3569         (ix86_add_new_builtins): Introduce fast filter for isa values
3570         that cannot trigger builtin inclusion.
3572 2015-03-22  Martin Liska  <mliska@suse.cz>
3574         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
3575         (sem_item::update_hash_by_local_refs): Likewise.
3576         (sem_variable::get_hash): Empty line is fixed.
3577         (sem_item_optimizer::execute): Include adding of hash references.
3578         (sem_item_optimizer::update_hash_by_addr_refs): New function.
3579         (sem_item_optimizer::build_hash_based_classes): Use local hash.
3580         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
3581         (sem_item::update_hash_by_local_refs): Likewise.
3583 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
3585         PR ipa/65502
3586         * ipa-comdats.c (enqueue_references): Walk through thunks.
3587         (ipa_comdats): Likewise.
3588         (set_comdat_group_1): New function.
3590 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
3592         PR ipa/65475
3593         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
3594         non-polymorphic
3596 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3597             Gerald Pfeifer  <gerald@pfeifer.com>
3599         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
3601 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
3602             Sandra Loosemore  <sandra@codesourcery.com>
3604         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
3605         function parameter declaration.
3606         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
3607         Update arguments to nios2_adjust_call_address().
3608         (sibcall_internal): Rename from *sibcall.
3609         (sibcall_value_internal): Rename from *sibcall_value.
3610         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
3611         (nios2_large_got_address): Add target temp reg parameter.
3612         (nios2_got_address): Adjust call to nios2_large_got_address, add
3613         force_reg around it.
3614         (nios2_load_pic_address): Add target temp reg parameter, replace call
3615         to nios2_got_address with corresponding code.
3616         (nios2_legitimize_constant_address): Update call to
3617         nios2_load_pic_address.
3618         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
3619         to use temp reg for PIC loading purposes.
3620         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
3621         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
3622         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
3624 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
3626         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
3627         usage of "the @option{...}".
3628         (-Wopenmp-simd): Likewise.
3629         (-fsanitize-recover): Likewise.
3630         (-fsanitize-undefined-trap-on-error): Likewise.
3631         (-flto): Likewise.
3632         (tracer-dynamic-coverage-feedback): Likewise.
3633         (reorder-block-duplicate-feedback): Likewise.
3634         (loop-unroll-jam-size): Likewise.
3635         (-B): Likewise.
3636         (-I-): Likewise.
3637         (-mabs=legacy): Likewise.
3638         (-mupper-regs-df): Likewise.
3639         (-mupper-regs-sf): Likewise.
3640         (-mpointers-to-nested-functions): Likewise.
3642 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
3644         * doc/extend.texi (Cilk Plus Builtins): Add markup.
3646 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
3648         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
3649         additional index entries and cross-references.
3650         (-fchkp-check-incomplete-type): Likewise.
3651         (-fchkp-first-field-has-own-bounds): Likewise.
3652         (-fchkp-narrow-to-innermost-array): Likewise.
3653         (-fchkp-use-fast-string-functions): Likewise.
3654         (-fchkp-use-nochk-string-functions): Likewise.
3655         (-fchkp-use-static-const-bounds): Likewise.
3656         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
3657         (-fchkp-instrument-marked-only): Likewise.
3658         (-fchkp-use-wrappers): Likewise.
3659         (-static-libmpx): Likewise.
3660         (-static-libmpxwrappers): Likewise.
3661         * doc/extend.texi (bnd_legacy): Likewise.
3662         (bnd_instrument): Likewise.
3663         (bnd_variable_size): Likewise.
3664         (Pointer Bounds Checker builtins): Likewise.
3666 2015-03-21  Tom de Vries  <tom@codesourcery.com>
3668         PR tree-optimization/65458
3669         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
3670         * cgraph.h (cgraph_node): Add parallelized_function field.
3671         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
3672         (input_overwrite_node): Read parallelized_function field.
3673         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
3674         parallelized_function on cgraph_node for child_fn.
3675         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
3676         Remove include of gt-tree-parloops.h.
3677         (parallelized_functions): Remove static variable.
3678         (parallelized_function_p): Rewrite using parallelized_function field of
3679         cgraph_node.
3680         (create_loop_fn): Remove adding to parallelized_functions.
3681         * Makefile.in (GTFILES): Remove tree-parloops.c
3683 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
3685         PR rtl-optimization/64366
3686         * lra.c (lra_update_insn_regno_info): Consider regs in
3687         CALL_INSN_FUNCTION_USAGE memory.
3689 2015-03-20  Richard Biener  <rguenther@suse.de>
3691         PR middle-end/64715
3692         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
3693         for type comparison and gcc_checking_assert.
3694         (chrec_fold_plus_poly_poly): Likewise.
3695         (chrec_fold_multiply_poly_poly): Likewise.
3696         (chrec_convert_1): Likewise.
3697         * gimplify.c (gimplify_expr): Remove premature folding of
3698         &X + CST to &MEM[&X, CST].
3700 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
3702         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
3703         already is final.
3704         (ipa_inline): Recompute inline_failed codes.
3705         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
3706         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
3707         CIF_FINAL_ERROR.
3709 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
3711         PR rtl-optimization/60851
3712         * recog.c (constrain_operands): Accept a pseudo register before reload
3713         for LRA enabled targets.
3715 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
3717         PR target/65240
3718         * config/rs6000/predicates.md (easy_fp_constant): Remove special
3719         -ffast-math handling that kept non-0 constants live in the RTL
3720         until reload.  Remove logic testing the number of instructions it
3721         took to create a constant in a GPR that was never used, due to a
3722         test for soft-float earlier.
3723         (memory_fp_constant): Delete, no longer used.
3725         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
3726         alternatives for loading non-0 constants into GPRs for hard
3727         floating point that is no longer needed due to changes in
3728         easy_fp_constant.  Add support for loading 0.0 into GPRs.
3729         (mov<mode>_hardfloat32): Likewise.
3730         (mov<mode>_hardfloat64): Likewise.
3731         (mov<mode>_64bit_dm): Likewise.
3732         (movtd_64bit_nodm): Likewise.
3733         (pre-reload move FP constant define_split): Delete define_split,
3734         since it is no longer used.
3735         (extenddftf2_internal): Remove GHF constraints that are not valid
3736         for extenddftf2.
3738 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
3740         PR rtl-optimization/63491
3741         * lra-constraints.c (check_and_process_move): Use src instead of
3742         sreg.  Remove some dead code.
3744 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
3746         PR ipa/65380
3747         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
3748         (sem_variable::merge): Likewise.
3750 2015-03-19  Martin Liska  <mliska@suse.cz>
3752         PR ipa/65465
3753         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
3754         all fields of cgraph_thunk_info.
3756 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3758         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
3759         clone instrumented thunks.
3761 2015-03-19  Richard Biener  <rguenther@suse.de>
3763         Revert
3764         2015-03-10  Richard Biener  <rguenther@suse.de>
3766         PR middle-end/63155
3767         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
3768         * tree-ssa-coalesce.c: Include timevar.h.
3769         (attempt_coalesce): Handle graph being NULL.
3770         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
3771         Split out abnormal coalescing to ...
3772         (perform_abnormal_coalescing): ... this function.
3773         (coalesce_ssa_name): Perform abnormal coalescing without computing
3774         live/conflict.
3775         (verify_ssa_coalescing_worker): New function.
3776         (verify_ssa_coalescing): Likewise.
3778 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3779             Jakub Jelinek  <jakub@redhat.com>
3781         PR sanitizer/65400
3782         * tsan.c (instrument_gimple): Clear tail call flag on
3783         calls.
3785 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
3787         PR sanitizer/65400
3788         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
3789         call in the return bb.
3790         (find_split_points): Add RETURN_BB argument, don't call
3791         find_return_bb.
3792         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
3793         if true append TSAN_FUNC_EXIT internal call after the call to
3794         the split off function.
3795         (execute_split_functions): Call find_return_bb here.
3796         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
3797         Adjust find_split_points and split_function calls.
3799 2015-03-18  DJ Delorie  <dj@redhat.com>
3801         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
3802         (iorqi3_virt): Likewise.
3804 2015-03-18  Tom de Vries  <tom@codesourcery.com>
3806         * tree-parloops.c (parallelize_loops): Make static.
3807         * tree-parloops.h (parallelize_loops): Remove extern declaration.
3809 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
3811         PR middle-end/64491
3812         Revert:
3813         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
3815         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
3816         condition would be removed due to undefined behaviour.
3818 2015-03-18  Martin Liska  <mliska@suse.cz>
3820         PR ipa/65432
3821         * cgraph.c (cgraph_node::get_create): Remove unnecessary
3822         xstrdup_for_dump wrapper.
3823         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
3824         sem_item::name.
3825         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
3826         with xstrdup_for_dump.
3827         (sem_variable::equals): Likewise.
3828         (sem_item_optimizer::read_section): Use symtab_node::name instead of
3829         sem_item::name.
3830         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
3831         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
3832         symtab_node::asm_name with xstrdup_for_dump.
3833         (congruence_class::dump): Use symtab_node::name instead of
3834         sem_item::name.
3835         * ipa-icf.h (symtab_node::name): Remove.
3836         (symtab_node::asm_name): Likewise.
3838 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
3840         PR tree-optimization/65450
3841         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
3842         function.
3843         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
3844         it instead of duplicate_ssa_name_ptr_info.
3846         PR target/65222
3847         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
3849 2015-03-18  Richard Biener  <rguenther@suse.de>
3851         * tree-data-ref.h (struct access_matrix): Remove.
3852         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
3853         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
3854         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
3855         (am_vector_index_for_loop): Likewise.
3856         (struct data_reference): Remove access_matrix member.
3857         (DR_ACCESS_MATRIX): Remove.
3858         (lambda_vector_new): Add comment.
3859         (lambda_matrix_new): Use XOBNEWVEC.
3861 2015-03-18  Richard Biener  <rguenther@suse.de>
3863         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
3864         (pass_ch::execute): Cleanup the CFG only if we did sth.
3865         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
3867 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3869         * expmed.c (synth_mult): Use std::swap instead of manually
3870         swapping algorithms.
3872 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
3874         PR target/65078
3875         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
3877 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
3879         PR target/65296
3880         * config/avr/avr.opt (-nodevicelib): New option.
3881         * doc/invoke.texi (AVR Options): Document it.
3882         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
3883         libgcc.a, libc.a, libm.a.
3884         * config/avr/specs.h: Same.
3885         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
3886         which don't (directly) depend on the device.  Print more help.
3887         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
3888         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
3889         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
3890         case of an error.
3891         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
3892         for specs file name.
3893         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
3894         * config/avr/avr-mcus.def: Adjust initializers and comments.
3896 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
3898         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
3899         DECL_ONE_ONLY to check if decl is one only.
3900         * ipa-split.c (consider_split): Limit splitt of one only functions.
3902 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
3904         PR tree-optimization/65427
3905         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
3906         functions.
3907         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
3909 2015-03-16  Marek Polacek  <polacek@redhat.com>
3911         * cgraph.h (add_new_static_var): Remove declaration.
3912         * varpool.c (add_new_static_var): Remove function.
3914 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
3916         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
3917         instead of vec<tree> * with vec_alloc and release for args.
3918         Adjust all users.
3920         PR middle-end/65431
3921         * omp-low.c (delete_omp_context): Only splay_tree_delete
3922         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
3923         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
3925 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
3927         PR sanitizer/64820
3928         * cfgexpand.c (align_base): New function.
3929         (alloc_stack_frame_space): Call it.
3930         (expand_stack_vars): Align prev_frame to be sure
3931         data->asan_vec elements aligned properly.
3933 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
3935         PR middle-end/65409
3936         * expr.c (store_field): Do not do a direct block copy if the source is
3937         a PARALLEL with BLKmode.
3939 2015-03-16  Tom de Vries  <tom@codesourcery.com>
3941         PR middle-end/65414
3942         Revert:
3943         2015-03-12  Tom de Vries  <tom@codesourcery.com>
3945         PR rtl-optimization/64895
3946         * lra-lives.c (check_pseudos_live_through_calls): Use
3947         actual_call_used_reg_set instead of call_used_reg_set, if available.
3949 2015-03-16  Alan Modra  <amodra@gmail.com>
3951         PR target/63150
3952         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
3953         Modify Z->r bswapdi splitter to use dest in place of scratch.
3954         In r->Z and Z->r bswapdi splitter rename word_high, word_low
3955         to word1, word2 and rearrange logic to suit.
3956         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
3957         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
3958         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
3959         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
3960         early clobber.
3962 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
3964         PR tree-optimization/65369
3965         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
3966         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
3967         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
3969         PR tree-optimization/65418
3970         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
3971         are casts in the first PLUS_EXPR operand, ensure tbias and
3972         *totallowp are in the inner type.
3974         PR rtl-optimization/65401
3975         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
3976         argument.  If true, adjust_address_nv of x with big-endian
3977         correction for the mode widening to GET_MODE (y).
3978         (make_field_assignment): Don't do MEM mode widening here.
3979         Use MEM_P instead of GET_CODE == MEM.
3981 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
3983         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
3984         the external decls.
3986 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3988         PR target/64600
3989         * config/arm/arm.c (arm_gen_constant, AND case): Use
3990         ARM_SIGN_EXTEND when constructing AND mask.
3992 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3994         * graph.c (print_graph_cfg): Make function names visible and append
3995         parenthesis to it.  Also make groups of basic blocks belonging to the
3996         same function visible.
3998 2015-03-12  Richard Biener  <rguenther@suse.de>
4000         PR middle-end/44563
4001         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
4002         to avoid quadratic behavior with inline expansion splitting blocks.
4003         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
4004         with the successor if the predecessor will be merged with it.
4005         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
4006         entry block with its successor.
4008 2015-03-13  Richard Biener  <rguenther@suse.de>
4010         PR middle-end/44563
4011         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
4012         (cleanup_tree_cfg_1): Do not call it.
4013         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
4014         (fixup_noreturn_call): Mark the stmt as control altering.
4015         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
4016         here.
4017         (pass_data_fixup_cfg): Produce a dump file.
4018         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
4019         (need_noreturn_fixup): New global.
4020         (pass_dominator::execute): Fixup queued noreturn calls.
4021         (optimize_stmt): Queue calls that became noreturn for fixup.
4022         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
4023         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
4024         (el_to_fixup): New global.
4025         (eliminate_dom_walker::before_dom_childre): Queue calls that
4026         became noreturn for fixup.
4027         (eliminate): Fixup queued noreturn calls.
4028         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
4029         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
4030         (substitute_and_fold_dom_walker::before_dom_children): Queue
4031         alls that became noreturn for fixup.
4032         (substitute_and_fold): Fixup queued noreturn calls.
4034 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
4036         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
4037         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
4038         are building; for methods check ODR type of class they belong to if
4039         they may lead to a polymorphic call.
4040         (sem_function::compare_polymorphic_p): Be bit smarter about testing
4041         when function may lead to a polymorphic call.
4042         (sem_function::compare_type_list): Remove.
4043         (sem_variable::equals): Update use of compatible_types_p.
4044         (sem_variable::parse_tree_refs): Remove.
4045         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
4046         cdtor.
4047         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
4048         matching here.
4049         (func_checker::compatible_polymorphic_types_p): Break out from ...
4050         (unc_checker::compatible_types_p): ... here.
4051         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
4052         Declare.
4053         (unc_checker::compatible_types_p): Update.
4054         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
4055         Remove.
4057 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4059         PR rtl-optimization/65235
4060         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
4061         When first element of vec_concat is const_int, calculate its size
4062         using second element.
4064 2015-03-12  Richard Biener  <rguenther@suse.de>
4066         PR middle-end/65270
4067         * fold-const.c (operand_equal_p): Fix ordering of resetting
4068         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
4070 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4072         * config/s390/s390.c (s390_reorg): Move code to output nops after label
4073         to s390_reorg ().
4074         (s390_asm_output_function_label): Likewise.
4075         * config/s390/s390.c (s390_asm_output_function_label):
4076         Fix function label alignment with -mhtopatch.
4077         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
4078         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
4079         ("nop_2_byte"): New define_insn.
4080         ("nop_4_byte"): Likewise.
4081         ("nop_6_byte"): Likewise.
4082         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
4083         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
4085 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4087         PR target/65103
4088         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
4089         register.
4091 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
4093         PR target/65044
4094         * toplev.c (process_options): Restrict Pointer Bounds Checker
4095         usage with Address Sanitizer.
4097 2015-03-12  Richard Biener  <rguenther@suse.de>
4099         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
4100         to split on.
4101         * omp-low.c (expand_omp_taskreg): Split block before removing
4102         the stmt.
4103         (expand_omp_target): Likewise.
4104         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
4105         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
4106         stmt to split_block.
4108 2015-03-12  Tom de Vries  <tom@codesourcery.com>
4110         PR rtl-optimization/64895
4111         * lra-lives.c (check_pseudos_live_through_calls): Use
4112         actual_call_used_reg_set instead of call_used_reg_set, if available.
4114 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
4116         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
4117         (cgraph_node::remove): Likewise.
4118         (cgraph_node::get_untransformed_body): Likewise.
4119         * varpool.c (varpool_node::remove): Likewise.
4120         (varpool_node::get_constructor): Add sanity check.
4122 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
4124         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
4125         old GCC versions.
4126         (-fabi-compat-version): Likewise.
4127         (-ffriend-injection): Likewise.
4128         (-Wdeclaration-after-statement): Likewise.
4129         (-fomit-frame-pointer): Likewise.
4130         (-ftree-coalesce-inlined-vars): Likewise.
4131         (-fvisibility=): Likewise.
4132         * doc/extend.texi (Typeof): Likewise.
4133         (Zero Length): Likewise.
4134         (Escaped Newlines): Likewise.
4135         (Compound Literals): Likewise.
4136         (Function Attributes): Likewise.
4137         (Label Attributes): Likewise.
4138         (Type Attributes): Likewise.
4139         (Function Names): Likewise.
4140         (Other Builtins): Likewise.
4141         (Function Specific Option Pragmas): Likewise.
4142         (C++ Interface): Likewise.
4144 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
4146         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
4148 2015-03-11  Marek Polacek  <polacek@redhat.com>
4150         PR tree-optimization/65388
4151         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
4153 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
4155         PR target/65296
4156         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
4157         * configure: Regenerate.
4158         * config.in: Regenerate.
4159         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
4160         [-mn-flash]: Document it.
4161         [__AVR_ARCH__]: Document avrtiny.
4163         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
4164         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
4165         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
4167 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4169         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
4171 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4173         PR target/65242
4174         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
4175         allow reloads of PLUS in floating point/VSX registers.
4177 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
4179         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
4180         crypto_sha256_fast.
4181         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
4183 2015-03-11  Richard Biener  <rguenther@suse.de>
4185         PR tree-optimization/65310
4186         * tree-sra.c (build_ref_for_offset): Also preserve larger
4187         alignment.
4189 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
4191         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
4193 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
4195         PR target/65368
4196         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
4197         new define_expand.
4198         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
4200 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
4202         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
4203         (sem_function::equals_wpa): ... here.
4205 2015-03-10  Marek Polacek  <polacek@redhat.com>
4206             Jakub Jelinek  <jakub@redhat.com>
4208         PR sanitizer/65367
4209         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
4210         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
4211         separately.
4213 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
4215         PR target/65286
4216         * config/rs6000/t-linux: For powerpc64* target set
4217         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
4219 2015-03-10  Richard Biener  <rguenther@suse.de>
4221         PR middle-end/44563
4222         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
4223         for redirect_all_calls.
4225 2015-03-10  Marek Polacek  <polacek@redhat.com>
4227         * gdbinit.in (pcfun): Define and document.
4229 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
4231         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
4232         of libgomp-plugin.h.
4233         (find_target_compiler): Support a case when the path to gcc is
4234         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
4235         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
4236         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
4237         libgomp-plugin.h.
4238         (main): Use GCC_INSTALL_NAME as target_driver_name.
4239         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
4240         define.
4241         (mkoffload.o): Remove obsolete include path and defines.
4242         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
4244 2015-03-10  Richard Biener  <rguenther@suse.de>
4246         PR middle-end/63155
4247         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
4248         * tree-ssa-coalesce.c: Include timevar.h.
4249         (attempt_coalesce): Handle graph being NULL.
4250         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
4251         Split out abnormal coalescing to ...
4252         (perform_abnormal_coalescing): ... this function.
4253         (coalesce_ssa_name): Perform abnormal coalescing without computing
4254         live/conflict.
4255         (verify_ssa_coalescing_worker): New function.
4256         (verify_ssa_coalescing): Likewise.
4258 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
4260         PR target/65296
4261         * config.gcc (extra_options) [avr]: Remove.
4262         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
4263         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
4264         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
4266         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
4267         (-mmcu=): Add Var and MissingArgError properties.
4268         (-march=): Remove.
4269         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
4270         * config/avr/t-multilib: Regenerate.
4271         * config/avr/specs.h: New file.
4272         * config/avr/driver-avr.c: New file.
4273         * config/avr/genopt.sh: Remove file.
4274         * config/avr/avr-tables.opt: Remove file.
4275         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
4276         * config/avr/avr-c.c: Same.
4277         * avr-arch.h: Same.
4278         (avr_current_device): Remove proto.
4279         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
4280         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
4281         (EXTRA_SPEC_FUNCTIONS): Define.
4282         (avr_devicespecs_file): New specs function proto.
4283         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
4284         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
4285         (avr_current_device): Remove definition and usage.
4286         (avr_set_core_architecture): New static function.
4287         (avr_option_override): Use it.
4288         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
4289         (mcu_name): New static array.
4290         (comparator, avr_archs_str, avr_mcus_str): New static functions.
4291         (avr_inform_devices, avr_inform_core_architectures): New functions.
4292         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
4293         (avrlibc.h) [WITH_AVRLIBC]: Include.
4294         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
4295         (print_mcu): Rewrite from scratch.
4296         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
4297         Forward to avr-specific specs defined in device-specs file.
4298         * config/avr/t-avr (driver-avr.o): New rule.
4299         (avr-devices.o): Depend on avr-arch.h.
4300         (avr-mcus): No more depend on avr-tables.opt.
4301         (avr-tables.opt): Remove rule.
4302         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
4304 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4306         * c-family/c.opt (fchkp-use-wrappers): New.
4307         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
4308         (chkp_wrap_function): New.
4309         (chkp_build_instrumented_fndecl): Support wrapped
4310         functions.
4311         * doc/invoke.texi (-fcheck-pointer-bounds): New.
4312         (-fchkp-check-incomplete-type): New.
4313         (-fchkp-first-field-has-own-bounds): New.
4314         (-fchkp-narrow-bounds): New.
4315         (-fchkp-narrow-to-innermost-array): New.
4316         (-fchkp-optimize): New.
4317         (-fchkp-use-fast-string-functions): New.
4318         (-fchkp-use-nochk-string-functions): New.
4319         (-fchkp-use-static-bounds): New.
4320         (-fchkp-use-static-const-bounds): New.
4321         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
4322         (-fchkp-check-read): New.
4323         (-fchkp-check-write): New.
4324         (-fchkp-store-bounds): New.
4325         (-fchkp-instrument-calls): New.
4326         (-fchkp-instrument-marked-only): New.
4327         (-fchkp-use-wrappers): New.
4328         (-static-libmpx): New.
4329         (-static-libmpxwrappers): New.
4331 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4333         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
4334         (CHKP_SPEC): Add wrappers library.
4335         * c-family/c.opt (static-libmpxwrappers): New.
4337 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
4339         * config/i386/linux-common.h (LIBMPX_LIBS): New.
4340         (LIBMPX_SPEC): New.
4341         (CHKP_SPEC): New.
4342         * gcc.c (CHKP_SPEC): New.
4343         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
4344         * c-family/c.opt (static-libmpx): New.
4346 2015-03-10  Richard Biener  <rguenther@suse.de>
4348         PR middle-end/44563
4349         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
4350         for compare_type.
4351         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
4352         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
4353         (cgraph_add_edge_to_call_site_hash): Likewise.
4354         (cgraph_node::get_edge): Likewise.
4355         (cgraph_edge::set_call_stmt): Likewise.
4356         (cgraph_edge::remove_caller): Likewise.
4358 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
4360         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
4361         (callee_saved_gpr_regs_size): ... this.
4362         (callee_saved_regs_first_regno): Rename to ...
4363         (callee_saved_first_gpr_regno): ... this.
4364         (callee_saved_regs_last_regno) Rename to ...
4365         (callee_saved_last_gpr_regno): ... this.
4366         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
4367         variables.
4368         (nds32_initial_elimination_offset): Likewise.
4369         (nds32_expand_prologue): Likewise.
4370         (nds32_expand_epilogue): Likewise.
4371         (nds32_expand_prologue_v3push): Likewise.
4372         (nds32_expand_epilogue_v3pop): Likewise.
4373         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
4374         Adjust renamed variables.
4375         (nds32_output_stack_pop): Likewise.
4377 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4379         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
4380         code in comment.
4382 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
4384         PR rtl-optimization/65321
4385         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
4386         than shift mode.
4387         * var-tracking.c (use_narrower_mode): Likewise.
4389 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
4391         PR tree-optimization/65355
4392         * varasm.c (notice_global_symbol): Do not produce RTL.
4393         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
4394         anchor.
4395         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
4396         check for section anchors.
4398 2015-03-10  Alan Modra  <amodra@gmail.com>
4400         PR target/65286
4401         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
4402         to be single-arch by default.  Set cpu_is_64bit for powerpc64
4403         given --with-cpu=native.
4404         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
4405         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
4406         and powerpc64le.
4407         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
4408         rs6000_isa_flags rather than TARGET_64BIT.
4410 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
4411             Kaz Kojima  <kkojima@gcc.gnu.org>
4413         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
4415 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
4417         PR lto/65361
4418         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
4419         on a TREE_BINFO, instead use BINFO_TYPE.
4421 2015-03-09  Richard Biener  <rguenther@suse.de>
4423         PR middle-end/65270
4424         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
4425         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
4426         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
4427         of that.  When comparing dereferences compare alignment.
4428         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
4430 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
4432         * ipa-inline-analysis.c (check_callers): Check
4433         node->can_remove_if_no_direct_calls_and_refs_p.
4434         (growth_likely_positive): Reorganize to call
4435         can_remove_if_no_direct_calls_p later.
4436         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
4437         will_be_removed_from_program_if_no_direct_calls_p): Add
4438         will_inline parameter.
4439         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
4440         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
4441         Handle inliner case correctly.
4443 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4445         PR tree-optimization/63743
4446         * cfgexpand.c (reorder_operands): Also reorder if only second operand
4447         had its definition forwarded by TER.
4449 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
4451         PR lto/65316
4452         * ipa-utils.h (types_odr_comparable): Add strict argument.
4453         * ipa-devirt.c: Fix whitespace;
4454         (odr_hasher): Remove.
4455         (odr_name_hasher, odr_vtable_hasher): New hashers.
4456         (can_be_name_hashed_p): New predicate.
4457         (hash_type_name): remove.
4458         (hash_odr_name): New.
4459         (odr_name_hasher::hash): new.
4460         (can_be_vtable_hashed_p): New.
4461         (hash_odr_vtable): New.
4462         (odr_vtable_hasher::hash): New.
4463         (types_same_for_odr): Add strict parameter.
4464         (types_odr_comparable): Likewise.
4465         (odr_name_hasher::equal): New.
4466         (odr_vtable_hasher::equal): New.
4467         (odr_name_hasher::remove): New.
4468         (odr_hash_type): Change to hash_table<odr_name_hasher>.
4469         (odr_vtable_hash_type): New.
4470         (odr_vtable_hash): New.
4471         (odr_subtypes_equivalent_p): Do strict comparsion.
4472         (add_type_duplicate): Merge type names; cleanup; avoid type
4473         duplicates.
4474         (register_odr_type): Initialize vtable hash.
4475         (build_type_inheritance_graph): Likewise
4476         (get_odr_type): Reorg to use two hashes.
4477         (dump_possible_polymorphic_call_targets): Move sanity check after debug
4478         output.
4479         (ipa_devirt): Dump type_inheritance_graph.
4480         (types_same_for_odr): Add strict mode.
4482 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
4484         PR ipa/65334
4485         * cgraph.h (symtab_node): Add definition_alignment,
4486         can_increase_alignment_p and increase_alignment.
4487         * symtab.c (symtab_node::can_increase_alignment_p,
4488         increase_alignment_1, symtab_node::increase_alignment,
4489         symtab_node::definition_alignment): New.
4490         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
4491         can_increase_alignment_p.
4492         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
4493         * tree-vect-stmts.c (ensure_base_align): Likewise.
4494         * varasm.c (function_section_1): Use definition_alignment.
4495         (assemble_start_function): Likewise.
4496         (emit_local): likewise.
4497         (build_constant_desc): Likewsie.
4498         (output_constant_def_contents): Likewise.
4499         (place_block_symbol): Likewise.
4500         (output_object_block): Likewise.
4502 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
4504         PR ipa/65316
4505         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
4506         when outputting debug.
4508 2015-03-07  Marek Polacek  <polacek@redhat.com>
4509             Martin Uecker  <uecker@eecs.berkeley.edu>
4511         PR sanitizer/65280
4512         * doc/invoke.texi: Update description of -fsanitize=bounds.
4514 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4516         * tree-ssa-phiopt.c (neg_replacement): Remove.
4517         (tree_ssa_phiopt_worker): Remove negate optimization.
4519 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
4521         PR ipa/65302
4522         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
4524 2015-03-06  Richard Biener  <rguenther@suse.de>
4526         PR middle-end/64928
4527         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
4528         and liveout_obstack members.
4529         (calculate_live_on_exit): Remove.
4530         (calculate_live_ranges): Change declaration.
4531         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
4532         (new_tree_live_info): Adjust.
4533         (calculate_live_ranges): Delete livein when not wanted.
4534         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
4535         Deal with partly deleted live info.
4536         (loe_visit_block): Remove temporary bitmap by using
4537         bitmap_ior_and_compl_into.
4538         (live_worklist): Adjust accordingly.
4539         (calculate_live_on_exit): Make static.
4540         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
4541         we do not need livein.
4543 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
4545         * real.c (real_from_string): Fix typo in assertion.
4547 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
4549         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
4550         the patch.
4552 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
4554         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
4556 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
4558         PR target/64342
4559         * lra-assigns.c (find_hard_regno_for): Rename to
4560         find_hard_regno_for_1.  Add a new parameter.
4561         (find_hard_regno_for): New function using find_hard_regno_for_1.
4563 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4565         PR rtl-optimization/65067
4566         * expmed.c (store_bit_field, extract_bit_field): Reworked the
4567         strict volatile bitfield handling.
4569 2015-03-05  Martin Liska  <mliska@suse.cz>
4571         PR ipa/65318
4572         * ipa-icf.c (sem_variable::equals): Compare variables types.
4574 2015-03-05  Richard Henderson  <rth@redhat.com>
4576         PR target/65121
4577         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
4578         correctly check weak symbol binding.
4580 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
4582         PR middle-end/65315
4583         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
4584         needed alignment.
4586 2015-03-05  Martin Liska  <mliska@suse.cz>
4588         * ipa-inline.c (inline_small_functions): Set default value to
4589         prevent warning during bootstrap.
4590         * tree.h: Add pragma guard that ignores false positives during
4591         bootstrap.
4593 2015-03-05  Richard Biener  <rguenther@suse.de>
4595         PR tree-optimization/65310
4596         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4597         Properly preserve alignment of the base of the access.
4599 2015-03-05  Richard Biener  <rguenther@suse.de>
4601         PR ipa/65270
4602         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
4603         Compare dependence info.
4605 2015-03-05  Richard Biener  <rguenther@suse.de>
4607         PR middle-end/65233
4608         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
4609         tree-into-ssa.h.
4610         (walk_ssa_copies): Revert last chage.  Instead do not walk
4611         SSA names registered for SSA update.
4613 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
4615         PR ipa/65270
4616         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
4617         vtable references for their containing type.
4618         (sem_function::equals_wpa): Compare TYPE_RESTRICT
4619         and type attributes.
4621 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
4623         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
4624         before negating it.
4625         * stor-layout.c (finalize_record_size): Revert latest change.
4627 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
4629         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
4631 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
4633         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
4634         for correct comdat handling.
4635         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
4636         Likewise.
4637         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
4638         (used_from_object_file_p_worker): Remove.
4639         (cgraph_node::only_called_directly_or_alised): Add
4640         used_from_object_file_p.
4641         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
4642         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
4643         can_remove_if_no_direct_calls_and_refs_p.
4645 2015-03-04  Nick Clifton  <nickc@redhat.com>
4647         * config/rl78/rl78.h (enum reg_class): Remove real registers from
4648         General register class.
4649         * config/rl78/rl78-real.md: Replace general register constraints
4650         with real+virtual register constraints.
4652 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4654         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
4655         from checking for -mhtm option.
4657 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
4659         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
4660         (struct ipa_sra_check_caller_data): Add has_thunk field.
4661         (ipa_sra_check_caller): Check for thunk.
4662         (ipa_sra_preliminary_function_checks): Give up on function with
4663         thunks.
4664         (ipa_early_sra): Use call_for_symbol_and_aliases.
4666 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4668         PR target/65249
4669         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
4670         called for __stack_chk_guard symbol.
4672 2015-03-03  DJ Delorie  <dj@redhat.com>
4674         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
4675         inc/dec.
4676         (*addhi3_real): Likewise.
4677         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
4678         pattern to match incrementing memory.
4679         * config/rl78/predicates.md (rl78_1_2_operand): New.
4680         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
4681         it's the same and only mem.
4682         (rl78_alloc_physical_registers_op2): If there's effectively only
4683         one MEM, transcode it into HL.
4684         (rl78_far_p): Reject addresses that aren't legitimate.
4686 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
4688         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
4689         negating it.
4691         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
4693 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
4695         Implement call0 ABI for xtensa
4696         * config/xtensa/constraints.md ("a" constraint): Include stack
4697         pointer in case of call0 ABI.
4698         ("q" constraint): Make empty in case of call0 ABI.
4699         ("D" constraint): Include stack pointer in case of call0 ABI.
4700         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
4701         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
4702         prototypes.
4703         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
4704         variable.
4705         (xtensa_regno_to_class): Make it a local variable in the
4706         function xtensa_regno_to_class.
4707         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
4708         macro, function prototype and implementation.
4709         (reg_nonleaf_alloc_order): Make it a local variable in the
4710         function order_regs_for_local_alloc.
4711         (xtensa_conditional_register_usage): New function.
4712         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
4713         (xtensa_valid_move): Allow direct moves to stack pointer
4714         register in call0 ABI.
4715         (xtensa_setup_frame_addresses): Only spill register windows in
4716         windowed ABI.
4717         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
4718         call0 ABI respectively.
4719         (xtensa_function_arg_1): Only mark a7 register for copying in
4720         windowed ABI.
4721         (xtensa_call_save_reg): New function.
4722         (compute_frame_size): Add space for callee saved register
4723         storage to the frame size in call0 ABI.
4724         (xtensa_expand_prologue): Generate code to set up stack frame
4725         and save callee-saved registers in call0 ABI.
4726         (xtensa_expand_epilogue): New function.
4727         (xtensa_set_return_address): New function.
4728         (xtensa_return_addr): Calculate return address in call0 ABI.
4729         (xtensa_builtin_saveregs): Only mark a7 register for copying and
4730         emit copying code in windowed ABI.
4731         (order_regs_for_local_alloc): Add preferred register allocation
4732         order for non-leaf function in call0 ABI.
4733         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
4734         (xtensa_asm_trampoline_template): Add trampoline generation for
4735         call0 ABI.
4736         (xtensa_trampoline_init): Add trampoline initialization for
4737         call0 ABI.
4738         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
4739         functions.
4740         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
4741         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
4742         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
4743         ABI call-used registers.
4744         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
4745         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
4746         call0 ABI.
4747         (REG_CLASS_CONTENTS): Include all registers into the preferred
4748         reload registers set, adjust the set in the
4749         xtensa_conditional_register_usage.
4750         (xtensa_regno_to_class): Drop variable declaration.
4751         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
4752         function.
4753         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
4754         respectively.
4755         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
4756         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
4757         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
4758         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
4759         location in call0 ABI.
4760         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
4761         stack adjustment size when handling exception.
4762         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
4763         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
4764         definitions.
4765         ("return" pattern): Generate ret.n/ret in call0 ABI.
4766         ("epilogue" pattern): Expand epilogue.
4767         ("nonlocal_goto" pattern): Use default in call0 ABI.
4768         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
4769         emit eh_set_a0_* depending on ABI.
4770         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
4771         ("eh_set_a0_call0", "blockage"): New patterns.
4773 2015-03-03  Martin Liska  <mliska@suse.cz>
4775         PR ipa/65287
4776         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
4778 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4780         PR 65138/target
4781         * config/rs6000/rs6000-tables.opt: Regenerate table.
4783 2015-03-03  Renlin Li  <renlin.li@arm.com>
4785         * doc/md.texi (@item ^): Change ? into ^.
4787 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4789         * doc/tm.texi: Regenerated.
4791 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
4793         * builtins.c (expand_builtin_return_addr): Add
4794         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
4795         surrounding #ifdef.
4796         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
4797         definition to 1.
4798         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
4799         Likewise.
4800         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
4801         undefined.
4802         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
4803         paragraph.
4805 2015-03-03  Martin Jambor  <mjambor@suse.cz>
4806             Eric Botcazou  <ebotcazou@adacore.com>
4808         * tree-sra.c (ipa_sra_check_caller_data): New type.
4809         (has_caller_p): Removed.
4810         (ipa_sra_check_caller): New function.
4811         (ipa_sra_preliminary_function_checks): Use it.
4813 2015-03-03  Martin Liska  <mliska@suse.cz>
4815         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
4816         instead of if branch.
4818 2015-03-03  Martin Liska  <mliska@suse.cz>
4820         PR ipa/65282
4821         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
4823 2015-03-23  Jeff Law  <law@redhat.com>
4825         PR tree-optimization/65241
4826         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
4827         hash table if INSERT is true.
4829 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
4831         PR target/65296
4832         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
4834 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
4836         PR target/64331
4837         * config/avr/avr.c (context.h, tree-pass.h): Include them.
4838         (avr_pass_data_recompute_notes): New static variable.
4839         (avr_pass_recompute_notes): New class.
4840         (avr_register_passes): New static function.
4841         (avr_option_override): Call it.
4843 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
4845         Fix various problems with specs file generation.
4847         PR target/65296
4848         * config.gcc (extra_gcc_objs) [avr]: Remove.
4849         * config/avr/driver-avr.c: Remove file.
4850         * config/avr/t-avr (driver-avr.o): Remove rule.
4851         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
4852         INCLUDES to build.  Depend on TM_H.
4853         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
4854         build warnings.  Fix non-matching types and non-existing %-codes.
4855         (tm.h): Include.
4856         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
4857         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
4858         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
4859         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
4860         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
4861         (LIBGCC_SPEC): Remove definitions.
4863 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
4865         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
4866         to create a register in testing mode.
4868 2015-03-03  Martin Liska  <mliska@suse.cz>
4869             Jan Hubicka  <hubicka@ucw.cz>
4871         PR ipa/65263
4872         * cgraph.c (cgraph_node::has_thunk_p): New function.
4873         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
4874         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
4875         (sem_function::merge): Assert is changed.
4877 2015-03-03  Martin Liska  <mliska@suse.cz>
4878             Martin Jambor  <mjambor@suse.cz>
4880         PR ipa/65087
4881         * ipa-icf.c (sem_item_optimizer::execute): Change function
4882         return value to boolean.
4883         (sem_item_optimizer::merge_classes): Likewise.
4884         (ipa_icf_driver): Return TODO_remove_functions in case there's
4885         a merge operation processed.
4886         * ipa-icf.h: Change function return value to boolean.
4888 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4890         PR 65138/target
4891         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
4892         processor type for 64-bit little endian PowerPC.
4894         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4895         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
4896         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
4897         printing built-in mask so it does not pass NULL pointers.
4899         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
4900         -mcpu=powerpc64le.
4902 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
4904         PR target/58158
4905         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
4906         !ISA_HAS_FP_CONDMOVE.
4908 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
4910         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
4911         reload_completed.
4913 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
4915         * doc/invoke.texi (Options for Code Generation Conventions):
4916         Fix URL of DSO paper.
4918 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
4920         PR ipa/65130
4921         * ipa-inline.c (check_callers): Looks for recursion.
4922         (inline_to_all_callers): Give up on uninlinable or recursive edges.
4923         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
4924         summary of inline clones.
4925         (do_estimate_growth_1): Fix recursion check.
4927 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
4929         PR ipa/64988
4930         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
4931         comdat groups.
4933 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
4934             Aldy Hernandez  <aldyh@redhat.com>
4936         PR lto/65276
4937         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
4938         when checking TYPE_BINFO.
4940 2015-03-02  Richard Biener  <rguenther@suse.de>
4942         PR ipa/65270
4943         * ipa-icf-gimple.c: Include builtins.h.
4944         (func_checker::compare_memory_operand): Compare base alignment.
4946 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
4948         PR target/65184
4949         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
4950         are never passed by reference.
4952 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
4954         PR target/65183
4955         * tree-chkp.c (chkp_check_lower): Don't check against
4956         zero bounds for already instrumented functions.
4957         (chkp_check_upper): Likewise.
4958         (chkp_fini): Clean pass local data to avoid wrong reusage.
4960 2015-02-28  Martin Liska  <mliska@suse.cz>
4961             Jan Hubicka  <hubicka@ucw.cz>
4963         * ipa-icf.c (sem_variable::equals): Improve debug output;
4964         get variable constructor.
4965         (sem_variable::parse): Do not filter out too early; give up on
4966         volatile and register vars.
4967         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
4968         variables.
4969         * ipa-icf.h (sem_variable::init): Do not set ctor.
4970         (sem_variable::ctor): Remove.
4972 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
4974         PR middle-end/65233
4975         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
4977 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4979         * ipa-icf.c: Include stor-layout.h
4980         (sem_function::compare_cgraph_references): Rename to ...
4981         (sem_item::compare_cgraph_references): ... this one.
4982         (sem_variable::equals_wpa): New function
4983         (sem_variable::equals): Do not check stuff already verified by
4984         equals_wpa.
4985         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
4986         * ipa-icf.h (sem_item): Add compare_cgraph_references.
4987         (sem_function): Remove compare_cgraph_references.
4988         (sem_variable): Turns equals_wpa into non-inline.
4990 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
4992         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
4993         (sem_item::add_expr): New function.
4994         (sem_function::hash_stmt): Handle operands of most statements.
4995         (sem_variable::get_hash): Hash the actual constructor.
4996         * ipa-icf.h (sem_item): Add add_expr.
4997         (sem_function): Update prototype of hash_stmt
4999 2015-02-28  Martin Liska  <mliska@suse.cz>
5000             Jan Hubicka  <hubicka@ucw.cz>
5002         PR ipa/65245
5003         * ipa-icf-gimple.c (func_checker::compare_function_decl):
5004         Remove.
5005         (func_checker::compare_variable_decl): Skip symtab vars.
5006         (func_checker::compare_cst_or_decl): Update.
5007         * ipa-icf.c (sem_function::parse): Do not consider aliases.
5008         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
5009         use correct symtab predicates.
5010         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
5011         (sem_variable::parse):  Update comment.
5012         (sem_item_optimizer::build_graph): Consider ultimate aliases
5013         for references.
5015 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
5017         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
5018         of OBJ_TYPE_REF.
5020 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
5022         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
5023         (sem_variable::merge) Likewise.
5025 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
5027         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
5028         target; also match flag_ipa_devirt.
5030 2015-03-01  Martin Liska  <mliska@suse.cz>
5031             Jan Hubicka  <hubicka@ucw.cz>
5033         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
5034         Validate variable alignment.
5035         * ipa-icf.c (sem_function::equals_private): Be more precise
5036         about non-common function attributes.
5037         (sem_variable::equals): Likewise.
5039 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
5041         PR ipa/65237
5042         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
5043         across COMDAT group boundary.
5045 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
5047         PR ipa/65232
5048         * ipa-icf.c (clear_decl_rtl): New function.
5049         (sem_function::merge): Clear RTL before forming alias.
5050         (sem_variable::merge): Clear RTL before forming alias.
5052 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
5054         PR ipa/65236
5055         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
5057 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
5059         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
5060         to neon_to_gp<q>.
5062 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
5064         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
5065         a typo in the description.
5067 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
5069         PR target/64317
5070         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
5071         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
5072         * lra-constraints.c: Include "params.h".
5073         (EBB_PROBABILITY_CUTOFF): Use
5074         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
5075         (lra_inheritance): Use '<' instead of '<=' for
5076         EBB_PROBABILITY_CUTOFF.
5077         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
5078         Document change.
5080 2015-02-27  Martin Liska  <mliska@suse.cz>
5082         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
5083         vector length condition.
5085 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
5087         * doc/extend.texi (x86 transactional memory intrinsics):
5088         Reorganize discussion of _xbegin.  Clarify that the return
5089         value is a bit mask.  Expand example and move to end of section.
5091 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
5092             Aldy Hernandez  <aldyh@redhat.com>
5094         PR rtl-optimization/65220
5095         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
5097 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
5099         PR target/65032
5100         * lra-remat.c (update_scratch_ops): New.
5101         (do_remat): Call it.
5102         * lra.c (lra_register_new_scratch_op): New. Take code from ...
5103         (remove_scratches): ... here.
5104         * lra-int.h (lra_register_new_scratch_op): New prototype.
5106 2015-02-27  Marek Polacek  <polacek@redhat.com>
5108         PR c/65040
5109         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
5110         -Wformat-signedness anymore.
5112 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5114         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
5115         function.
5116         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
5118 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5120         * config/s390/s390.c (enum s390_builtin):
5121         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
5122         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
5123         (s390_init_builtins): Generate new builtin functions.
5124         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
5125         (s390_sfpc, s390_efpc): New pattern definitions.
5127 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5129         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
5130         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
5131         (s390_builtin_decls): New array.
5132         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
5133         (s390_builtin_decl): New function.
5134         (TARGET_BUILTIN_DECL): Define macro.
5136 2015-02-27  Richard Biener  <rguenther@suse.de>
5138         PR middle-end/63175
5139         * builtins.c (get_object_alignment_2): Make sure to re-apply
5140         the ANDed mask after recursing to its operand gets us a new
5141         misalignment bit position.
5143 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
5144             Martin Liska  <mliska@suse.cz>
5146         PR bootstrap/65150
5147         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
5148         Use address_matters_p.
5149         (redirect_all_callers, set_addressable): New functions.
5150         (sem_function::merge): Reorganize and fix merging issues.
5151         (sem_variable::merge): Likewise.
5152         (sem_variable::compare_sections): Remove.
5153         * common.opt (fmerge-all-constants, fmerge-constants): Remove
5154         Optimization flag.
5155         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
5156         redirect them.
5157         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
5158         decl is used.
5159         (address_matters_1): New function.
5160         (symtab_node::address_matters_p): New function.
5161         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
5162         check for merged flag.
5163         * cgraph.h (address_matters_p): Declare.
5164         (symtab_node::address_taken_from_non_vtable_p): Remove.
5165         (symtab_node::address_can_be_compared_p): New method.
5166         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
5167         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
5168         Remove.
5169         (comdat_can_be_unshared_p_1) Use address_matters_p.
5170         (update_vtable_references): Fix formating.
5171         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
5172         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
5173         * cgraphclones.c: Preserve merged and icf_merged flags.
5175 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
5177         * doc/extend.texi (Function Attributes): Fix spelling and typos.
5178         (Label Attributes): Likewise.
5179         (Cilk Plus Builtins): Likewise.
5180         (ARC SIMD Built-in Functions): Likewise.
5181         (ARM C Language Extensions (ACLE)): Likewise.
5182         (PowerPC Built-in Functions): Likewise.
5183         (PowerPC Hardware Transactional Memory Built-in Functions):
5184         Likewise.
5186 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
5188         PR tree-optimization/65216
5189         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
5190         new stmt and new SSA_NAME for lhs whenever the arguments have
5191         changed and weren't just swapped.  Fix comment typo.
5193         PR tree-optimization/65215
5194         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
5195         for PDP endian targets.
5196         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
5197         Fix up formatting issues.
5198         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
5199         size is smaller than the original, adjust MEM_REF offset by the
5200         difference of sizes.  Use is_gimple_mem_ref_addr instead of
5201         is_gimple_min_invariant test to avoid adding address temporaries.
5203 2015-02-26  Martin Liska  <mliska@suse.cz>
5204             Jan Hubicka  <hubicka@ucw.cz>
5206         PR ipa/64693
5207         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
5208         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
5209         (sem_item_optimizer::process_cong_reduction): Include division by
5210         sensitive references.
5211         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
5212         * ipa-ref.c (ipa_ref::address_matters_p): New function.
5213         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
5215 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
5217         PR target/65192
5218         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
5219         Remove.
5220         * config/avr/avr.c: Same.
5221         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
5222         Refuse any constant address not in 0..0xbf.
5223         * config/avr/avr.md (*mov<mode>, *movsf): Remove
5224         tiny_valid_direct_memory_access_range from insn conditions.
5225         (mov<mode>): Don't special-case expansion of avrtiny addresses.
5227 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
5229         PR target/61142
5230         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
5231         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
5232         * config/sh/predicates.md (const_logical_operand): New predicate.
5233         * config/sh/sh.md: Add new peephole2 patterns.
5235 2015-02-26  Marek Polacek  <polacek@redhat.com>
5237         PR ipa/65008
5238         * ipa-inline.c (early_inliner): Recompute inline parameters.
5240 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5242         PR target/65171
5243         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
5244         instructions with TImode operands are included in the analysis.
5246 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
5248         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
5249         of an EDGE_FSM_THREAD.
5251 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5253         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
5255 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
5257         PR debug/46102
5258         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
5260 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
5262         PR tree-optimization/65048
5263         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
5264         (thread_through_all_blocks): Call valid_jump_thread_path.
5265         Remove invalid FSM jump-thread paths.
5267 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
5269         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
5270         (ipa_write_optimization_summaries): Likewise.
5271         * tree-streamer.h: Include data-streamer.h.
5272         (streamer_mode_table): Declare extern variable.
5273         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
5274         * lto-streamer-out.c (lto_output_init_mode_table,
5275         lto_write_mode_table): New functions.
5276         (produce_asm_for_decls): Call lto_write_mode_table when streaming
5277         offloading LTO.
5278         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
5279         (lto_create_simple_input_block): Add mode_table argument to the
5280         lto_input_block constructors.
5281         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
5282         Likewise.
5283         * data-streamer-in.c (string_for_index): Likewise.
5284         * ipa-inline-analysis.c (inline_read_section): Likewise.
5285         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
5286         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
5287         * lto-streamer-in.c (lto_read_body_or_constructor,
5288         lto_input_toplevel_asms): Likewise.
5289         (lto_input_mode_table): New function.
5290         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
5291         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
5292         Use bp_pack_machine_mode.
5293         * real.h (struct real_format): Add name field.
5294         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
5295         (class lto_input_block): Add mode_table member.
5296         (lto_input_block::lto_input_block): Add mode_table_ argument,
5297         initialize mode_table.
5298         (struct lto_file_decl_data): Add mode_table field.
5299         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
5300         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
5301         unpack_ts_decl_common_value_fields,
5302         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
5303         * tree-streamer.c (streamer_mode_table): New variable.
5304         * real.c (ieee_single_format, mips_single_format,
5305         motorola_single_format, spu_single_format, ieee_double_format,
5306         mips_double_format, motorola_double_format,
5307         ieee_extended_motorola_format, ieee_extended_intel_96_format,
5308         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
5309         ibm_extended_format, mips_extended_format, ieee_quad_format,
5310         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
5311         decimal_single_format, decimal_double_format, decimal_quad_format,
5312         ieee_half_format, arm_half_format, real_internal_format): Add name
5313         field.
5314         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
5316 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
5318         PR target/65161
5319         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
5320         reordering for selective scheduling.
5322 2015-02-26  Terry Guo  <terry.guo@arm.com>
5324         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
5325         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
5326         (arm_arch_no_volatile_ce): Declare new global variable.
5327         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
5328         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
5329         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
5330         (TARGET_NO_VOLATILE_CE): New macro.
5331         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
5332         volatile memory access in IT block
5334 2015-02-25  Kai Tietz  <ktietz@redhat.com>
5336         PR tree-optimization/61917
5337         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
5338         that reduc_def_stmt is null.
5340 2015-02-25  Martin Liska  <mliska@suse.cz>
5342         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
5343         hard register variables.
5345 2015-02-25  Kai Tietz  <ktietz@redhat.com>
5347         PR target/64212
5348         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
5349         (symtab::noninterposable_alias): Likewise.
5351 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
5353         PR target/65167
5354         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
5355         bounds registers.
5356         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
5358 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
5360         PR target/64997
5361         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
5362         as split condition; force split via '#' in output pattern.
5364 2015-02-25  Richard Biener  <rguenther@suse.de>
5365             Kai Tietz  <ktietz@redhat.com>
5367         PR tree-optimization/61917
5368         * tree-vect-loop.c (vectorizable_reduction): Allow
5369         vect_internal_def without reduction to exit graceful.
5371 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
5373         PR target/65196
5374         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
5375         only with NONDEBUG_INSN_P.
5377 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
5379         Use variadic macros with avr-log.c.
5381         * config/avr/avr-protos.h (avr_vdump): New prototype.
5382         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
5383         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
5384         * config/avr/avr-log.c: Adjust comments.
5385         (avr_vdump): New function.
5386         (avr_vadump): Pass caller as 2nd argument instead of format string.
5387         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
5388         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
5390 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
5392         PR lto/64374
5393         * target.def (target_option_stream_in): New target hook.
5394         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
5395         targetm.target_option.post_stream_in if non-NULL.
5396         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
5397         * doc/tm.texi: Updated.
5398         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
5399         function.
5400         (TARGET_OPTION_POST_STREAM_IN): Redefine.
5402 2015-02-24  Jeff Law  <law@redhat.com>
5404         PR target/65117
5405         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
5406         of operand 0 and operand 2.
5407         (zero_cost_loop_end, loop_end): Similarly.
5409 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
5411         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
5412         CXX_MEM_STAT_INFO.
5414 2015-02-24  DJ Delorie  <dj@redhat.com>
5416         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
5417         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
5418         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
5419         instead of hardcoding SImode.
5421 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
5423         * omp-low.c (create_omp_child_function): Tag entrypoint
5424         functions with a special attribute.
5426 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
5428         PR target/65058
5429         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
5431 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
5433         PR rtl-optimization/65123
5434         * lra-remat.c (operand_to_remat): Check hard regs in insn
5435         definition too.
5437 2015-02-24  Nick Clifton  <nickc@redhat.com>
5439         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
5440         to the assembler.
5442 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
5444         PR libgomp/64625
5445         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
5446         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
5447         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
5448         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
5449         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
5450         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
5451         (BUILT_IN_GOACC_PARALLEL): Specify as
5452         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
5453         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
5454         * builtin-types.def
5455         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
5456         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
5457         Remove function types.
5458         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
5459         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
5460         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
5461         New function types.
5463 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
5465         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
5467 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
5469         PR tree-optimization/65170
5470         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
5471         if val[1] < 0, clear also val[2] and return 3.
5473 2015-02-24  Alan Modra  <amodra@gmail.com>
5475         PR target/65172
5476         * config/rs6000/rs6000.c (get_memref_parts): Only return true
5477         when *base is a reg.  Handle nested plus addresses.  Simplify
5478         pre_modify test.
5480 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
5482         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
5483         use natural alignment when optimizing for size.
5485 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
5487         PR target/65153
5488         * config/sh/sh.md (movsicc_true+3): Remove peephole.
5489         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
5490         * config/sh/sh.c (replace_n_hard_rtx): Remove.
5492 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
5494         PR fortran/63427
5495         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
5496         too big for a wide_int.  Implement missing wrapping operation.
5498 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
5500         PR target/65163
5501         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
5502         instead of const_int 4294901760.
5504 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
5506         * config/avr/t-avr: Fix typo in comment.
5508 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
5510         * doc/rtl.texi (fma): Clarify documentation.
5512 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
5514         PR debug/58123
5515         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
5516         over input_location.
5518 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
5520         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
5521         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
5522         restrict alignments to absolute_biggest_alignment.
5523         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
5524         Define.
5525         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
5526         * doc/tm.texi: Regenerate.
5527         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
5529 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
5531         PR target/64172
5532         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
5534 2015-02-20  Richard Biener  <rguenther@suse.de>
5536         PR tree-optimization/65136
5537         * tree-ssa-propagate.c: Include cfgloop.h.
5538         (replace_phi_args_in): Avoid replacing loop latch edge PHI
5539         arguments with constants.
5541 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
5542             Martin Liska  <mliska@suse.cz>
5544         PR target/63892
5545         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
5546         don't try to create_thunk if stdarg_p.  If
5547         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
5548         redirect_callers if possible.
5549         (sem_item_optimizer::execute): Call unregister_hooks here...
5550         (ipa_icf_driver): ... instead of here.
5552 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5554         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
5555         Mark operand 0 as earlyclobber in 2nd alternative.
5556         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
5557         Write negated shift amount into QI lowpart operand 0 and use it
5558         in the shift step.
5559         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5561 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
5563         * cgraph.h (clone_function_name_1): Declare.
5564         * cgraphclones.c (clone_function_name_1): New function.
5565         (clone_function_name): Use it.
5566         * lto-partition.c: Include "stringpool.h".
5567         (must_not_rename, maybe_rewrite_identifier)
5568         (validize_symbol_for_target): New static functions.
5569         (privatize_symbol_name): Use must_not_rename.
5570         (promote_symbol): Call validize_symbol_for_target.
5571         (lto_promote_cross_file_statics): Likewise.
5572         (lto_promote_statics_nonwpa): Likewise.
5574 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
5576         PR target/64452
5577         * config/avr/avr.md (pushhi_insn): New insn.
5578         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
5580 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
5581             Jakub Jelinek  <jakub@redhat.com>
5583         * tree-streamer.c (preload_common_nodes): Don't preload
5584         TI_VA_LIST* for offloading.
5585         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
5586         in_lto_p.
5588 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
5590         * config/pa/pa.c (pa_emit_move_sequence): Always force
5591         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
5592         note on insn.
5594         * config/pa/pa.c (pa_reloc_rw_mask): New function.
5595         (TARGET_ASM_RELOC_RW_MASK): Define.
5596         (pa_cannot_force_const_mem): Revert previous change.
5598 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
5599             Jan Hubicka  <hubicka@ucw.cz>
5601         PR ipa/65028
5602         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
5603         across jump functions.
5605 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
5607         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
5609 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
5611         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
5613 2015-02-19  Richard Henderson  <rth@redhat.com>
5615         PR middle-end/65074
5616         * varasm.c (default_binds_local_p_2): Don't test node->definition;
5617         test DECL_EXTERNAL independent of symtab_node.
5619 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
5621         PR lto/65012
5622         * varpool.c (varpool_node::get_constructor): Return early
5623         if this->lto_file_data is NULL.
5625 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
5627         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
5628         (rank_for_schedule_debug): Update.
5629         (ready_sort): Make static.  Move sorting logic to ...
5630         (ready_sort_debug, ready_sort_real): New static functions.
5631         (schedule_block): Sort both debug insns and real insns in preparation
5632         for ready list trimming.  Improve debug output.
5633         * sched-int.h (ready_sort): Remove global declaration.
5635 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
5637         * ipa-icf.c (sem_function::equals_private): Adjust.
5638         (sem_function::bb_dict_test): Take a vec<int> * instead of
5639         auto_vec<int>.
5640         * ipa-icf.h (bb_dict_test): Likewise.
5642 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
5644         PR gcov-profile/64634
5645         * tree-eh.c (frob_into_branch_around): Fix up typos
5646         in function comment.
5647         (lower_catch): Put eh_seq resulting from EH lowering of
5648         the cleanup sequence after the cleanup rather than before it.
5650 2015-02-18  Tom de Vries  <tom@codesourcery.com>
5652         * common.opt (fstdarg-opt): New option.
5653         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
5654         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
5655         (@item -fstdarg-opt): New item.
5657 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5659         PR target/65064
5660         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
5661         for common symbols.
5663 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
5665         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
5666         insn-modes.h.
5667         (ALL_HOST_OBJS): Add mkoffload.o.
5668         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
5670 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
5672         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
5673         (compare_virtual_tables): Be smarter about skipping typeinfos;
5674         do sane output on virtual table table mismatch.
5675         (warn_odr): Be ready for forward declarations of enums;
5676         output sane info on base mismatch and virtual table mismatch.
5677         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
5678         when only one type is polymorphic.
5679         (get_odr_type): Fix hashtable corruption.
5680         (dump_odr_type): Dump mangled names.
5682 2015-02-18  Richard Biener  <rguenther@suse.de>
5684         PR tree-optimization/65063
5685         * tree-predcom.c (determine_unroll_factor): Return 1 if we
5686         have replaced looparound PHIs.
5688 2015-02-18  Martin Liska  <mliska@suse.cz>
5690         * lto-streamer.c (lto_streamer_init): Encapsulate
5691         streamer_check_handled_ts_structures with checking macro.
5693 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
5695         PR ipa/65087
5696         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
5697         section if !implicit_section.
5698         (cgraph_node::create_version_clone_with_body): Likewise.
5699         * trans-mem.c (ipa_tm_create_version): Likewise.
5701 2015-02-18  Richard Biener  <rguenther@suse.de>
5703         PR tree-optimization/62217
5704         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
5705         into BIVs.
5707 2015-02-18  Marek Polacek  <polacek@redhat.com>
5709         PR sanitizer/65081
5710         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
5711         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
5712         is in range [-16K, -1].  Don't issue run-time error if
5713         (ptr > ptr + offset).
5715 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
5717         * doc/install.texi (nvptx-*-none): New section.
5718         * doc/invoke.texi (Nvidia PTX Options): Likewise.
5719         * config/nvptx/nvptx.opt: Update.
5721         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
5722         (access_check): New functions, copied from
5723         config/i386/intelmic-mkoffload.c.
5724         (main): For non-installed testing, look in all COMPILER_PATHs for
5725         GCC_INSTALL_NAME.
5727         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
5729 2015-02-18  Andrew Pinski  <apinski@cavium.com>
5730             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5732         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
5733         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
5735 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
5737         * ipa-visibility.c (function_and_variable_visibility): Only
5738         check locality if node is not already local.
5739         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5740         call_for_symbol_and_aliases instead of
5741         call_for_symbol_thunks_and_aliases.
5742         (ipa_inline): Likewise.
5743         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5744         first walk aliases.
5745         * ipa.c (symbol_table::remove_unreachable_nodes): Use
5746         call_for_symbol_and_aliases.
5747         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5748         (ipa_propagate_frequency_1): Use it; use opt_for_fn
5749         (ipa_propagate_frequency): Update.
5750         (ipa_profile): Add opt_for_fn gueards.
5752 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
5754         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
5755         * doc/invoke.texi (SH options): Document it.
5756         * config/sh/sh.c (sh_insn_length_adjustment): Check
5757         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
5759 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
5761         * common.opt (fipa-cp-alignment): New.
5762         * ipa-cp.c (ipcp_store_alignment_results): Check
5763         flag_ipa_cp_alignment.
5764         * opts.c (default_options_table): Enable -fipa-cp-alignment for
5765         -O2.
5766         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
5767         * doc/invoke.texi: Document -fipa-cp-alignment.
5769 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
5771         PR target/64793
5772         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
5773         to nil.  Adjust comments.
5775 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
5777         * ipa-visibility.c (function_and_variable_visibility): Only
5778         check locality if node is not already local.
5779         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
5780         call_for_symbol_and_aliases instead of
5781         call_for_symbol_thunks_and_aliases.
5782         (ipa_inline): Likewise.
5783         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5784         first walk aliases.
5785         * ipa.c (symbol_table::remove_unreachable_nodes): Use
5786         call_for_symbol_and_aliases.
5787         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
5788         (ipa_propagate_frequency_1): Use it; use opt_for_fn
5789         (ipa_propagate_frequency): Update.
5790         (ipa_profile): Add opt_for_fn guards.
5792 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
5794         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
5795         skipping of "strange" tokens.
5797 2015-02-17  Jeff Law  <law@redhat.com>
5799         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
5800         obsolete comment.
5802 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
5804         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
5805         as forcing a HARD_DEP between instructions, thereby
5806         disallowing rewriting to break dependencies.
5808 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
5810         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
5811         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
5812         variables in boundary that have no inlitalizer encoded and are
5813         not aliases.
5814         * varasm.c (default_binds_local_p_2): External definitions do not
5815         count as definitions here.
5817 2015-02-16  Jeff Law  <law@redhat.com>
5819         PR tree-optimization/64823
5820         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
5821         statements.
5822         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5823         threading through blocks with PHIs, but no statements.
5824         (thread_through_normal_block): Distinguish between blocks where
5825         we did not process all the statements and blocks with no statements.
5827 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
5828             James Greenhalgh  <james.greenhalgh@arm.com>
5830         PR ipa/64963
5831         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
5832         section if not linkonce.  Fix up formatting.
5833         (cgraph_node::create_version_clone_with_body): Copy section.
5834         * trans-mem.c (ipa_tm_create_version): Likewise.
5836 2015-02-16  Richard Biener  <rguenther@suse.de>
5838         PR tree-optimization/65077
5839         * tree-ssa-structalias.c (get_constraint_for_1): Handle
5840         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
5841         (find_func_aliases): Allow float values to carry pointers again.
5843 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5845         * doc/install.texi (Specific): Reorder targets list to put
5846         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
5847         from the top menu.
5849 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
5850             David Edelsohn  <dje.gcc@gmail.com>
5852         PR target/65058
5853         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
5854         mapping class to external variable or function reference.
5855         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
5856         mapping class.
5858 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
5860         PR target/53348
5861         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
5862         ASM_WEAKEN_DECL if defined.
5864 2015-02-16  Richard Biener  <rguenther@suse.de>
5866         PR lto/65015
5867         * varasm.c (default_file_start): For LTO produced units
5868         emit <artificial> as file directive.
5870 2015-02-16  Richard Biener  <rguenther@suse.de>
5872         PR tree-optimization/63593
5873         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
5874         stmts and releasing SSA names until...
5875         (execute_pred_commoning): ... after processing all chains.
5877 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
5879         PR ipa/65059
5880         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
5881         external functions.
5883 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
5885         * doc/bugreport.texi: Adjust section titles throughout the file
5886         to use "Title Case".
5887         * doc/extend.texi: Likewise.
5888         * doc/gcov.texi: Likewise.
5889         * doc/implement-c.texi: Likewise.
5890         * doc/implement-cxx.texi: Likewise.
5891         * doc/invoke.texi: Likewise.
5892         * doc/objc.texi: Likewise.
5893         * doc/standards.texi: Likewise.
5894         * doc/trouble.texi: Likewise.
5896 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
5898         * cgraph.h (symtab_node::has_aliases_p): Simplify.
5899         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
5900         * tree.c (lookup_binfo_at_offset): Make static.
5901         (get_binfo_at_offset): Do not shadow offset; add explanatory
5902         comment.
5904 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
5906         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
5907         for all floading point loads and stores except those using a register
5908         index address.
5909         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
5910         to a register.
5912 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
5914         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
5915         (do_estimate_growth_1): Record if any uninlinable edge was seen.
5916         (estimate_growth): Handle uninlinable edges correctly.
5917         (check_callers): New.
5918         (growth_likely_positive): Handle aliases correctly.
5920 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
5922         * ipa-chkp.c: Use iterate_direct_aliases.
5923         * symtab.c (resolution_used_from_other_file_p): Move inline.
5924         (symtab_node::create_reference): Fix formating.
5925         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5926         (symtab_node::iterate_reference): Move inline.
5927         (symtab_node::iterate_referring): Move inline.
5928         (symtab_node::iterate_direct_aliases): Move inline.
5929         (symtab_node::used_from_object_file_p_worker): Inline into ...
5930         (symtab_node::used_from_object_file_p): ... this one; move inline.
5931         (symtab_node::call_for_symbol_and_aliases): Move inline;
5932         use iterate_direct_aliases.
5933         (symtab_node::call_for_symbol_and_aliases_1): New method.
5934         (cgraph_node::call_for_symbol_and_aliases): Move inline;
5935         use iterate_direct_aliases.
5936         (cgraph_node::call_for_symbol_and_aliases_1): New method.
5937         (varpool_node::call_for_node_and_aliases): Rename to ...
5938         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
5939         use iterate_direct_aliases.
5940         (varpool_node::call_for_symbol_and_aliases_1): New method.
5941         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
5942         (ipa_discover_readonly_nonaddressable_var): Update.
5943         * ipa-devirt.c: Fix formating.
5944         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
5945         Move inline.
5946         (cgraph_node::call_for_symbol_and_aliases): Move inline.
5947         (cgraph_node::call_for_symbol_and_aliases_1): New function..
5948         * cgraph.h (used_from_object_file_p_worker): Remove.
5949         (resolution_used_from_other_file_p): Move inline.
5950         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
5951         (symtab_node::iterate_reference): Move inline.
5952         (symtab_node::iterate_referring): Move inline.
5953         (symtab_node::iterate_direct_aliases): Move inline.
5954         (symtab_node::used_from_object_file_p_worker): Inline into ...
5955         (symtab_node::used_from_object_file_p): Move inline.
5956         * tree-emutls.c (ipa_lower_emutls): Update.
5957         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
5958         (varpool_node::call_for_node_and_aliases): Remove.
5960 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
5962         PR tree-optimization/62209
5963         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
5964         op == range->exp, insert seq and gimplified code after labels
5965         instead of after the phi.
5967 2015-02-13  Jeff Law  <law@redhat.com>
5969         PR bootstrap/65060
5970         Revert my change for tree-optimization/64823.
5972 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
5974         PR tree-optimization/65053
5975         * tree-ssa-phiopt.c (value_replacement): When moving assign before
5976         cond, either reset VR on lhs or set it to phi result VR.
5978 2015-02-13  Jeff Law  <law@redhat.com>
5980         PR tree-optimization/64823
5981         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
5982         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
5983         threading through blocks with PHIs, but no statements.
5984         (thread_through_normal_block): Distinguish between blocks where
5985         we did not process all the statements and blocks with no statements.
5987         PR rtl-optimization/47477
5988         * match.pd (convert (plus/minus (convert @0) (convert @1): New
5989         simplifier to narrow arithmetic.
5991 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
5993         PR ipa/65028
5994         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
5995         polymorphic call info when type is not known to be preserved.
5997 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
5999         PR ipa/65028
6000         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
6001         (inline_call): Use it.
6003 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
6005         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
6006         GOMP_DEVICE_NVIDIA_PTX.
6008 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
6010         PR ipa/65034
6011         * stmt.c (emit_case_nodes): Use void_type_node instead of
6012         NULL_TREE as LABEL_DECL type.
6014 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
6016         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
6017         constraints.
6018         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
6019         symbolic references to data to be forced to constant memory on the
6020         SOM target.
6022 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6024         PR tree-optimization/65002
6025         * tree-cfg.c (pass_data_fixup_cfg): Don't update
6026         SSA on start.
6027         * tree-sra.c (some_callers_have_no_vuse_p): New.
6028         (ipa_early_sra): Reject functions whose callers
6029         assume function is read only.
6031 2015-02-13  Richard Biener  <rguenther@suse.de>
6033         PR lto/65015
6034         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
6035         for LTO produced CUs.
6037 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
6039         PR tree-optimization/64705
6040         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
6041         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
6042         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
6043         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
6044         expand_simple_operations.
6046 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6047             Richard Henderson  <rth@redhat.com>
6049         PR rtl/32219
6050         * cgraphunit.c (cgraph_node::finalize_function): Set definition
6051         before notice_global_symbol.
6052         (varpool_node::finalize_decl): Likewise.
6053         * varasm.c (default_binds_local_p_2): Rename from
6054         default_binds_local_p_1, add weak_dominate argument.  Use direct
6055         returns instead of assigning to local variable.  Unify varpool and
6056         cgraph paths via symtab_node.  Reject undef weak variables before
6057         testing visibility.  Reorder tests for simplicity.
6058         (default_binds_local_p): Use default_binds_local_p_2.
6059         (default_binds_local_p_1): Likewise.
6060         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
6061         via symtab_node.
6062         (default_elf_asm_output_external): Emit visibility when specified.
6064 2015-02-13  Alan Modra  <amodra@gmail.com>
6066         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
6067         code setting up r11 for out-of-line fp restore.
6069 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
6071         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
6072         (muser-mode): Likewise.
6074 2015-02-13  Alan Modra  <amodra@gmail.com>
6076         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
6077         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
6079 2015-02-12  David Howells  <dhowells@redhat.com>
6081         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
6082         warning.
6083         * tree-ssa-uninit.c (dump_predicates): Likewise.
6084         * opts.c (print_filtered_help): Likewise.
6086 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
6088         * dwarf2out.c (output_die): Use "%s", name instead of name to
6089         avoid -Wformat-security warning.
6091         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
6092         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
6093         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
6094         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
6096 2015-02-12  Jason Merrill  <jason@redhat.com>
6098         * common.opt (-flifetime-dse): New.
6100 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
6102         PR sanitizer/65019
6103         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
6105         PR tree-optimization/65014
6106         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
6107         use original second operand of arg0 or arg1 instead of
6108         that adjusted by STRIP_NOPS.
6110 2015-02-11  Jeff Law  <law@redhat.com>
6112         PR target/63347
6113         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
6114         that needs to be queued, just queue it for a single cycle.
6116 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
6118         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
6119         bodies of thunks; comment on why.
6120         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
6121         symbols are extern.
6123 2015-02-11  Richard Henderson  <rth@redhat.com>
6125         PR sanitize/65000
6126         * tree-eh.c (mark_reachable_handlers): Mark source and destination
6127         regions of __builtin_eh_copy_values.
6129 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
6131         PR middle-end/65003
6132         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
6133         ultimate alias is MEM with SYMBOL_REF satisfying
6134         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
6135         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
6137 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
6139         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
6140         "diagnostic-core.h".
6141         (main): Initialize progname, and call diagnostic_initialize.
6143         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
6144         instead of __OPENMP_TARGET__.
6146         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
6147         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
6148         hard-coding PTX_ID.
6150 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
6152         * doc/sourcebuild.texi (pie_enabled): Document.
6154 2015-02-11  Martin Liska  <mliska@suse.cz>
6156         PR ipa/64813
6157         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
6158         a return value for call to a function that is noreturn.
6160 2015-02-11  Richard Biener  <rguenther@suse.de>
6162         PR lto/65015
6163         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
6164         and -fresolution.
6166 2015-02-11  Andrew Pinski  <apinski@cavium.com>
6168         PR target/64893
6169         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
6170         Change the first argument type to size_type_node and add another
6171         size_type_node.
6172         (aarch64_simd_expand_builtin): Handle the new argument to
6173         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
6174         print an out when the first two arguments are not
6175         nonzero integer constants.
6176         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
6177         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
6179 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
6181         PR target/61925
6182         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
6183         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
6184         (ix86_set_current_function): Rewritten.
6185         (ix86_add_new_builtins): Temporarily clear current_target_pragma
6186         when creating builtin fndecls.
6188 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
6190         PR ipa/65005
6191         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
6192         function.
6193         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
6194         have no comdat group.
6195         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
6196         (lto_output_varpool_node): Always output alias info.
6197         (output_refs): Output refs of boundary aliases, too.
6198         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
6199         (output_symtab): Output call eges in thunks in boundary.
6200         (get_alias_symbol): Remove.
6201         (input_node, input_varpool_node): Do not special case weakrefs.
6202         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
6203         alias and thunks targets in the boundary; do not take removed symbols
6204         from their comdat groups.
6205         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
6206         (cgraph_node::global_info): Remove.
6207         (cgraph_node::rtl_info): Look through aliases and thunks.
6208         * cgrpah.h (global_info): Remove.
6209         (non_local_p): Remove.
6211 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
6212             Sandra Loosemore  <sandra@codesourcery.com>
6214         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
6215         to inline asm.  List dialects in proper order.
6217 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
6218             Sandra Loosemore  <sandra@codesourcery.com>
6220         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
6222 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
6224         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
6225         modified) reference to Solaris.
6227 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
6229         * doc/extend.texi (Extended Asm): Fix typos.
6231 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
6233         PR sanitizer/65004
6234         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
6236 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
6238         PR target/64661
6239         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6240         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6241         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
6242         * config/sh/constraints.md (Ara, Add): New constraints.
6243         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
6244         predicates.
6245         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
6246         atomic_mem_operand_0.  Don't use force_reg on the memory address.
6247         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
6248         Sra constraint.  Convert to insn_and_split.  Add workaround for
6249         PR 64974.
6250         (atomic_compare_and_swap<mode>_hard): Copy to
6251         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
6252         Use atomic_mem_operand_0 predicate.
6253         (atomic_compare_and_swap<mode>_soft_gusa,
6254         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
6255         AraAdd constraints.
6256         (atomic_compare_and_swap<mode>_soft_tcb,
6257         atomic_compare_and_swap<mode>_soft_imask,
6258         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
6259         atomic_mem_operand_0 predicate and SraSdd constraints.
6260         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
6261         constraint.
6262         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
6263         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
6264         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
6265         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
6266         force_reg on the memory address.
6267         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
6268         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
6269         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
6270         atomic_mem_operand_1 predicate and Sra constraint.
6271         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
6272         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
6273         Use atomic_mem_operand_1 predicate.
6274         (atomic_<fetchop_name><mode>_hard): Copy to
6275         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
6276         Use atomic_mem_operand_1 predicate.
6277         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
6278         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
6279         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
6280         insn_and_split.  Use atomic_mem_operand_1 predicate.
6281         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
6282         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
6283         Use atomic_mem_operand_1 predicate.
6284         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
6285         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
6286         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
6287         in generated insn with original mem operand before emitting the insn.
6288         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
6289         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
6290         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
6291         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
6292         Use atomic_mem_operand_1 predicate and AraAdd constraints.
6293         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
6294         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
6295         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
6296         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
6297         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
6298         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
6299         atomic_not_fetch<mode>_soft_tcb,
6300         atomic_<fetchop_name>_fetch<mode>_soft_imask,
6301         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
6302         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
6303         Use atomic_mem_operand_1 predicate and SraSdd constraints.
6305 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
6307         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
6308         and 3 earlyclobber operands.
6310 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
6312         * common.opt (fstack-reuse): Mark as optimization.
6314 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
6316         PR ipa/64982
6317         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
6319 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
6321         PR tree-optimization/64326
6322         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
6324 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
6326         PR gcov-profile/61889
6327         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
6329 2015-02-10  Richard Biener  <rguenther@suse.de>
6331         PR tree-optimization/64995
6332         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
6333         value we use is final.
6334         (visit_reference_op_store): Always valueize op.
6335         (visit_use): Properly valueize vuses.
6337 2015-02-10  Richard Biener  <rguenther@suse.de>
6339         PR tree-optimization/64909
6340         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
6341         pass a scalar-stmt count estimate to the cost model.
6342         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
6344 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
6346         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
6347         enabled by default together with var-tracking.
6349 2015-02-10  Nick Clifton  <nickc@redhat.com>
6351         * config/rl78/rl78.c: Remove DIV attribute code accidentally
6352         included in previous rl78 commit.
6354 2015-02-10  Richard Biener  <rguenther@suse.de>
6356         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
6357         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
6358         return the bitpack.
6360 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
6362         PR gcov-profile/61889
6363         * config.in: regenerate.
6364         * configure.in: Likewise.
6365         * configure.ac: Check for ftw.h.
6366         * gcov-tool.c: Check for ftw.h before using nftw.
6368 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
6370         PR lto/64076
6371         * ipa-visibility.c (update_visibility_by_resolution_info): Only
6372         assert when not in lto mode.
6374 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
6376         * ira-color.c (setup_left_conflict_sizes_p): Simplify
6377         initialization/assignment of conflict_size.
6379 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
6381         PR ipa/64978
6382         * ipa-cp.c (gather_caller_stats): Skip thunks.
6383         (propagate_constants_topo): Skip aliases.
6385 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
6387         PR target/64761
6388         * config/sh/sh.c (sh_option_override): Don't change
6389         -freorder-blocks-and-partition to -freorder-blocks even when
6390         unwinding is enabled.
6391         (sh_can_follow_jump): Return false if the followee jump is
6392         a crossing jump when -freorder-blocks-and-partition is specified.
6393         * config/sh/sh.md (*jump_compact_crossing): New insn.
6395 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
6396             Kaz Kojima  <kkojima@gcc.gnu.org>
6398         PR target/64761
6399         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
6400         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
6401         (sh_can_redirect_branch): Rename to ...
6402         (sh_can_follow_jump): ... this.  Constify argument types.
6403         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
6404         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
6405         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
6406         * doc/tm.texi: Regenerate.
6408 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
6410         PR sanitizer/64981
6411         * builtins.c (expand_builtin): Call targetm.expand_builtin
6412         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
6414 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6416         PR ipa/61548
6417         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
6419 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6421         PR ipa/63566
6422         * ipa-icf.c (set_local): New function.
6423         (sem_function::merge): Use it.
6425 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6427         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
6428         (add_type_duplicate): Fix comparison of BINFOs.
6430 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6432         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
6433         on getting VOID pointer.
6435 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
6437         PR target/64979
6438         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
6439         va_list escapes.
6441 2015-02-09  Richard Biener  <rguenther@suse.de>
6443         * genmatch.c (replace_id): Copy expr_type.
6445 2015-02-09  Richard Biener  <rguenther@suse.de>
6447         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
6448         (streamer_write_tree_bitfields): Declare.
6449         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
6450         properly unpack padding.
6451         (unpack_value_fields): Inline ...
6452         (streamer_read_tree_bitfields): ... here.
6453         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
6454         and properly add padding bits.
6455         (streamer_pack_tree_bitfields): Fold into ...
6456         (streamer_write_tree_bitfields): ... this new function,
6457         exposing the bitpack object.
6458         * lto-streamer-out.c (lto_write_tree_1): Call
6459         streamer_write_tree_bitfields.
6461 2015-02-09  Richard Biener  <rguenther@suse.de>
6463         PR tree-optimization/54000
6464         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
6465         (struct ivopts_data): Add loop_loc member.
6466         (tree_ssa_iv_optimize_loop): Dump loop location.
6467         (create_new_ivs): Likewise, also dump number of IVs generated.
6469 2015-02-09  Martin Liska  <mliska@suse.cz>
6471         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
6472         just if not yet registered.
6473         (ipa_icf_generate_summary): Register callgraph hooks.
6475 2015-02-08  Andrew Pinski  <apinski@cavium.com>
6477         * config/aarch64/aarch64.c (gty_dummy): Delete.
6479 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6481         PR ipa/63566
6482         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
6483         (cgraph_node::local_p): Remove thunk related FIXME.
6485 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6487         PR ipa/63566
6488         * i386.c (ix86_function_regparm): Look through aliases to see if callee
6489         is local and optimized.
6490         (ix86_function_sseregparm): Likewise; also use target's SSE math
6491         settings; error out instead of silently generating wrong code
6492         on mismatches.
6493         (init_cumulative_args): Look through aliases.
6495 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6497         PR ipa/63566
6498         * ipa-split.c (execute_split_functions): Split if function has aliases.
6500 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
6502         PR ipa/63566
6503         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
6504         aliases before trying to expand it.
6505         (cgraph_node::expand_thunk): Fix formating.
6507 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
6509         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
6510         (Using Assembly Language with C): Expand introduction.
6511         (Basic Asm): Copy-edit.  Add more information about uses of
6512         basic asm.
6513         (Extended Asm): Copy-edit.  Document new escape syntax and
6514         %l[label] syntax.
6515         (Global Reg Vars): Copy-edit.
6516         (Local Reg Vars): Likewise.
6518 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
6520         PR debug/2714
6521         PR bootstrap/64256
6522         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
6523         (DBX_CONTIN_CHAR): Define.
6525 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
6526             Brian Rzycki  <b.rzycki@samsung.com>
6528         PR tree-optimization/64878
6529         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
6530         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
6531         Stop recursion at loop phi nodes after having visited a loop phi node.
6533 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
6535         * toplev.c (process_options): Change flag_ipa_ra before creating
6536         optimization_{default,current}_node.
6538         PR ipa/64896
6539         * cgraphunit.c (cgraph_node::expand_thunk): If
6540         restype is not is_gimple_reg_type nor the thunk_fndecl
6541         returns aggregate_value_p, set restmp to a temporary variable
6542         instead of resdecl.
6544 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
6546         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
6548 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6550         PR target/64205
6551         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
6552         add a general secondary reload handler for SDmode, unless we have
6553         both read/write support for SDmode.
6555 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
6557         PR middle-end/64937
6558         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
6559         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
6560         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
6561         1 before, push it to abstract_vec.
6562         (dwarf2out_abstract_function): Adjust caller.  Don't call
6563         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
6564         DECL_ABSTRACT_P flags for all abstract_vec elts.
6566 2015-02-06  Renlin Li  <renlin.li@arm.com>
6568         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
6569         complex gimple.
6570         * tree-ssa.c (execute_update_addresses_taken): Likewise.
6572 2015-02-06  Jeff Law  <law@redhat.com>
6574         PR target/64889
6575         * config/h8300/h8300.c (push): New argument "in_prologue".
6576         Pass "in_prologue" along to "F".
6577         (h8300_push_pop): Corresponding changes.
6578         (h8300_expand_prologue): Likewise.
6579         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
6581 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
6583         PR rtl-optimization/64957
6584         PR debug/64817
6585         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
6586         IOR rather than for AND.
6588 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
6590         PR target/62631
6591         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
6592         of shift-add and (add + shift) operations.  Rename local variable.
6594 2015-02-05  Jeff Law  <law@redhat.com>
6596         PR target/17306
6597         * config/h8300/constraints.md (U): Correctly dectect
6598         "eightbit_data" memory addresses.
6599         * config/h8300/h8300.c (eightbit_constant_address_p): Also
6600         handle (const (plus (symbol_ref (x)))) where x is declared
6601         as an 8-bit data memory address.
6602         * config/h8300/h8300.md (call, call_value): Correctly detect
6603         "funcvec" functions.
6605         PR target/43264
6606         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
6607         24 to 28 bits for the H8/300.
6609 2015-02-06  Alan Modra  <amodra@gmail.com>
6611         PR target/64876
6612         * config/rs6000/rs6000.c (chain_already_loaded): New function.
6613         (rs6000_call_aix): Use it.
6615 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
6617         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
6618         check.
6620 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
6622         * config/h8300/constraints.md ("U" constraint): Use strict
6623         variant of REG_OK_FOR_BASE_P after reload has started.
6625 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
6627         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
6628         define to zero if !TARGET_NEON.
6629         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
6631 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6632             Trevor Saunders  <tsaunders@mozilla.com>
6634         PR ipa/61548
6635         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
6637 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6639         PR ipa/61548
6640         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
6641         when removing varpool nodes.
6643 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6645         PR ipa/61548
6646         * varpool.c (varpool_node::remove): Fix order of variables.
6648 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6650         PR ipa/64686
6651         * ipa-inline.c (inline_small_functions): Fix ordering issue between
6652         speculation resolution and key updates.
6654 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6656         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
6657         about not letting any speculative edges unupdated.
6659 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6661         PR gcov/64123
6662         * gcov-io.c (gcov_var): Export.
6664 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6666         PR middle-end/64922
6667         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
6668         edges that become speculative.
6670 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
6672         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
6673         or DW_LANG_Fortran08.
6674         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
6675         DW_LANG_Fortran08.
6676         (gen_compile_unit_die): Handle "GNU Fortran2003" and
6677         "GNU Fortran2008" language strings.
6678         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
6679         * langhooks.h (lang_GNU_Fortran): New prototype.
6680         * langhooks.c (lang_GNU_Fortran): New function.
6681         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
6682         lang_GNU_Fortran.
6684 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
6686         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
6687         (RTX_OK_FOR_OLO10_P): Likewise.
6689 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
6691         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
6693 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
6695         PR middle-end/64922
6696         * gimple.c: Include gimple-ssa.h.
6697         (maybe_remove_unused_call_args): New function.
6698         * gimple.h (maybe_remove_unused_call_args): Declare.
6699         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6700         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6701         * gimple-fold.c (gimple_fold_call): Likewise.
6703 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
6705         PR rtl-optimization/64905
6706         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
6707         pointer alignment if it isn't needed.
6709 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
6711         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
6712         cortex-a72.cortex-a53.
6713         * config/aarch64/aarch64-tune.md: Regenerate.
6714         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
6716 2015-02-04  Nick Clifton  <nickc@redhat.com>
6718         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
6719         inside a MEM.
6721 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
6723         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
6724         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
6725         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
6726         of DEF_BUILTIN.
6727         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
6728         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
6729         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
6730         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
6731         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
6732         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
6733         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
6734         * tree-core.h (enum built_in_function): In between
6735         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
6736         for builtins that use DEF_BUILTIN_CHKP macro.
6738 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
6740         PR debug/64817
6741         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
6742         operands for tcc_comparison exprs.  Fix typos.
6744         PR debug/64817
6745         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
6746         of two XORs that have an intervening AND or IOR.
6748         PR debug/64817
6749         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
6750         simplification of XOR of AND to not allocate new rtx before
6751         committing to a simplification.
6753 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6755         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
6756         manual swaps in all peepholes.
6758 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6760         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
6761         of manual swapping implementation.
6762         (aarch64_expand_vec_perm_const_1): Likewise.
6764 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
6766         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
6767         (generic_addrcost_table): Remove NAMED_PARAM.
6768         (cortexa57_addrcost_table): Likewise.
6769         (xgene1_addrcost_table): Likewise.
6770         (generic_regmove_table): Likewise.
6771         (cortexa53_regmove_table): Likewise.
6772         (xgene1_regmove_table): Likewise.
6773         (generic_vector_table): Likewise.
6774         (cortexa57_vector_table): Likewise.
6775         (xgene1_vector_table): Likewise.
6776         (generic_tunings): Likewise.
6777         (cortexa53_tunings): Likewise.
6778         (cortexa57_tunings): Likewise.
6779         (xgene1_tunings): Likewise.
6781 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
6783         * config/arm/arm-cores.def: Add cortex-a72 and
6784         cortex-a72.cortex-a53.
6785         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
6786         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6787         * config/arm/arm-tune.md: Regenerate.
6788         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
6789         "cortex-a72.cortex-a53".
6790         * doc/invoke.texi (ARM Options/-mtune): Likewise.
6792 2015-02-04  Nick Clifton  <nickc@redhat.com>
6794         PR target/64408
6795         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
6796         of accepted codes.
6797         (nonimmediate_di_operand): Likewise.
6799         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
6800         prefixes of known F5 using MSP430 MCUs.
6802 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6804         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
6805         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
6806         instead of __builtin_sqrt.
6808 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
6810         * varasm.c (do_assemble_alias): Follow transparent alias
6811         chain for target.
6812         (default_assemble_visibility): Follow transparent alias
6813         chain for decl name.
6815 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6817         PR middle-end/62103
6818         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
6819         to compute size of referenced value in the constant case.
6821 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
6823         PR rtl-optimization/64756
6824         * cse.c (invalidate_dest): New function.
6825         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
6826         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
6827         invalidate and do not record it.
6829 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
6831         PR target/64660
6832         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
6833         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
6834         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
6835         atomic_nand<mode>_soft_tcb): New insns.
6836         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
6837         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
6838         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
6839         Split into atomic_not_fetchsi_hard if operands[0] is unused.
6840         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
6841         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6842         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
6843         atomic_not<mode>_hard if operands[0] is unused.
6844         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
6845         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
6846         if operands[0] is unused.
6847         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
6848         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
6849         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
6850         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6851         unused.
6852         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
6853         into atomic_not<mode>_soft_tcb if operands[0] is unused.
6854         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
6855         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
6856         if operands[0] is unused.
6857         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
6858         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
6859         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
6860         atomic_nand_fetchsi_hard if operands[0] is unused.
6861         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
6862         atomic_nand<mode>_hard if operands[0] is unused.
6863         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
6864         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
6865         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
6866         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6867         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
6868         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
6869         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
6870         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
6871         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
6872         atomic_not<mode>_hard if operands[0] is unused.
6873         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
6874         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
6875         unused.
6876         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
6877         into atomic_not<mode>_soft_tcb if operands[0] is unused.
6878         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
6879         atomic_nand<mode>_hard if operands[0] is unused.
6880         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
6881         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
6883 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
6885         PR jit/64810
6886         * Makefile.in (GCC_OBJS): Add gcc-main.o.
6887         * gcc-main.c: New file, containing "main" taken from gcc.c.
6888         * gcc.c (do_self_spec): Free decoded_options.
6889         (class driver): Move declaration to gcc.h.
6890         (main): Move declaration and implementation to new file
6891         gcc-main.c.
6892         (driver_get_configure_time_options): New function.
6893         * gcc.h (class driver): Move this declaration here, from
6894         gcc.c.
6895         (driver_get_configure_time_options): New declaration.
6897 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
6899         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
6900         cross-module inlining.
6901         * cgraph.h (cgraph_node): Add flag merged.
6902         * ipa-icf.c (sem_function::merge): Maintain it.
6904 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
6906         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
6907         instead of OBJECT_P.
6909 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
6911         PR target/62631
6912         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
6913         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
6914         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
6915         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
6917 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
6919         PR other/63504
6920         * combine.c (reg_n_sets_max): New variable.
6921         (can_change_dest_mode, reg_nonzero_bits_for_combine,
6922         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
6923         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
6924         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
6925         (rest_of_handle_combine): Initialize reg_n_sets_max.
6927 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
6929         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
6930         if some always_inline was inlined, apply changes before inlining
6931         heuristically.
6933 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
6935         PR jit/64810
6936         * config/arm/arm.c (arm_option_override): Set
6937         arm_selected_arch/cpu/tune to NULL on entry.
6939 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
6940             Andrew Pinski  <pinskia@gcc.gnu.org>
6941             Jakub Jelinek  <jakub@gcc.gnu.org>
6943         PR target/64231
6944         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
6945         integer typing for small model. Use IN_RANGE.
6947 2015-02-02  Richard Biener  <rguenther@suse.de>
6949         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
6950         * tree-vrp.c (vrp_valueize_1): Likewise.
6952 2015-02-02  Alan Modra  <amodra@gmail.com>
6954         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
6955         than mem for toc_restore.
6956         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
6957         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
6958         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
6960 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
6962         PR target/64047
6963         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
6964         explicit default options.
6966 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
6968         PR ipa/64872
6969         * ipa-utils.c (ipa_merge_profiles): Add release argument.
6970         * ipa-icf.c (sem_function::merge): Do not release body when merging.
6971         * ipa-utils.h (ipa_merge_profiles): Update prototype.
6973 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
6975         PR debug/64817
6976         * cfgexpand.c (deep_ter_debug_map): New variable.
6977         (avoid_deep_ter_for_debug): New function.
6978         (expand_debug_expr): If TERed SSA_NAME is in
6979         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
6980         instead of trying to expand SSA_NAME's def stmt.
6981         (expand_debug_locations): When expanding debug bind
6982         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
6983         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
6984         value.
6985         (pass_expand::execute): Call avoid_deep_ter_for_debug on
6986         all debug bind stmts.  Delete deep_ter_debug_map after
6987         expand_debug_location if non-NULL and clear it.
6989 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
6991         PR target/64851
6992         * config/sh/sync.md (atomic_fetch_notsi_hard,
6993         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
6994         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
6995         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
6996         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
6997         atomic_not_fetch<mode>_soft_imask): New insns.
6999 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
7001         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
7002         (rank_for_schedule_debug): Split from ...
7003         (rank_for_schedule): ... this.
7004         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
7005         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
7007 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
7009         * doc/md.texi (Machine Constraints): Alphabetize table by target.
7010         * doc/extend.texi (x86 Variable Attributes): Move section to
7011         correct alphabetization after renaming.
7012         (x86 Type Attributes): Likewise.
7013         (Target Builtins): Re-alphabetize menu.
7014         (x86 Built-in Functions): Move section to correct alphabetization
7015         after renaming.
7016         (x86 transactional memory intrinsics): Likewise.
7017         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
7018         and x86 Windows Options in table and menu.
7019         (x86 Options): Move section to correct alphabetization after
7020         renaming.
7021         (x86 Windows Options): Likewise.
7023 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
7025         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
7026         preferred names of the architecture and its 32- and 64-bit
7027         variants.
7028         * doc/invoke.texi: Likewise.
7029         * doc/md.texi: Likewise.
7031 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
7033         PR target/64882
7034         * config/i386/predicates.md (address_no_seg_operand): Reject
7035         non-CONST_INT_P operands in invalid mode.
7037 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
7039         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
7040         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
7041         * config/i386/predicates.md (address_no_seg_operand): Call
7042         address_operand with VOIDmode.
7043         (vsib_address_operand): Ditto.
7044         (address_mpx_no_base_operand): Ditto.
7045         (address_mpx_no_index_operand): Ditto.
7047 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
7049         PR target/64688
7050         * lra-constraints.c (original_subreg_reg_mode): New.
7051         (simplify_operand_subreg): Try to simplify subreg of const.  Use
7052         original_subreg_reg_mode for it.
7053         (swap_operands): Update original_subreg_reg_mode.
7054         (curr_insn_transform): Set up original_subreg_reg_mode.
7056 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
7058         PR target/64617
7059         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
7060         function.
7061         (process_alt_operands): Use it.
7062         (curr_insn_transform): Check the optional reload pseudo class is
7063         ok for the mode.
7065 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
7067         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
7068         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
7069         prototype.
7070         * toplev.h (init_asm_output): Update comment on use of
7071         UNKNOWN_LOCATION with fatal_error.
7072         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
7073         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
7074         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
7075         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
7076         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
7077         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
7078         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
7079         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
7080         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
7081         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
7082         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
7083         fatal_error changed to pass input_location as first argument.
7085 2015-01-30  Martin Liska  <mliska@suse.cz>
7087         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
7088         in #pragma GCC diagnostic guards.
7090 2015-01-30  Richard Biener  <rguenther@suse.de>
7092         PR tree-optimization/64829
7093         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
7094         not add a widening conversion pattern but hand off extra
7095         widenings to callers.
7096         (vect_recog_widen_mult_pattern): Handle extra widening produced
7097         by vect_handle_widen_op_by_const.
7098         (vect_recog_widen_shift_pattern): Likewise.
7099         (vect_pattern_recog_1): Remove excess vertical space in dumping.
7100         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7101         (vect_init_vector_1): Likewise.
7102         (vect_get_vec_def_for_operand): Likewise.
7103         (vect_finish_stmt_generation): Likewise.
7104         (vectorizable_load): Likewise.
7105         (vect_analyze_stmt): Likewise.
7106         (vect_is_simple_use): Likewise.
7108 2015-01-29  Jeff Law  <law@redhat.com>
7110         * combine.c (try_combine): Fix typo in comment.
7112 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
7114         PR target/64580
7115         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
7116         (rs6000_stack_info): Add assert.
7117         (rs6000_output_savres_externs): New function, split off from...
7118         (rs6000_output_function_prologue): ... here.  Do not call it for
7119         thunks.
7121 2015-01-29  Jeff Law  <law@redhat.com>
7123         PR target/15184
7124         * combine.c (try_combine): If I0 is a memory load and I3 a store
7125         to a related address, increase the "goodness" of doing a 4-insn
7126         combination with I0-I3.
7127         (make_field_assignment): Handle SUBREGs in the ior+and case.
7129 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
7131         PR tree-optimization/64746
7132         * tree-if-conv.c (mask_exists): New function.
7133         (predicate_mem_writes): Save created mask with given size for further
7134         use.
7135         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
7136         (ifcvt_repair_bool_pattern): Collect all statements that are root
7137         of bool pattern and use iterative algorithm to remove multiple uses
7138         of predicates, display number of required iterations.
7140 2015-01-29  Richard Biener  <rguenther@suse.de>
7142         PR tree-optimization/64853
7143         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
7144         stmt will get simulated again.
7145         * tree-ssa-ccp.c (valueize_op_1): Likewise.
7147 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7149         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
7150         return_in_pc.  Remove redundant assignments.
7151         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
7152         (arm_expand_epilogue): Don't compare boolean with true in if condition.
7154 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
7156         * config/i386/i386.c (ix86_mode_after): Make static.
7158 2015-01-29  Richard Biener  <rguenther@suse.de>
7160         PR tree-optimization/64844
7161         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
7162         dump cost model analysis.
7163         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7164         Do not register adjusted load/store costs here.
7166 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7167             Uros Bizjak  <ubizjak@gmail.com>
7169         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
7170         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
7171         using x86_use_pseudo_pic_reg.
7172         * config/i386/i386.c (ix86_conditional_register_usage): Remove
7173         support for fixed PIC register.
7174         (ix86_use_pseudo_pic_reg): Not static any more.
7176 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7178         PR middle-end/64805
7179         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
7180         to avoid error in cgraph node verification.
7182 2015-01-29  Marek Polacek  <polacek@redhat.com>
7184         * doc/standards.texi: Reflect that the default for C is gnu11.
7186 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7188         PR target/64761
7189         * reorg.c (switch_text_sections_between_p): New function.
7190         (relax_delay_slots): Call it when testing if the jump insn
7191         is removable.  Use targetm.can_follow_jump when testing if
7192         the conditional branch can follow an unconditional jump.
7194 2015-01-27  Caroline Tice  <cmtice@google.com>
7196         Committing VTV Cywin/Ming patch for Patrick Wollgast
7197         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
7198         if -fvtable-verify=preinit/std is used.
7199         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
7200         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
7201         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
7202         if -fvtable-verify=preinit/std is used.
7203         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
7204         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
7205         if -fvtable-verify=preinit/std is used.
7206         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
7207         * config/i386/mingw32.h (LIB_SPEC): Likewise.
7208         * varasm.c (assemble_variable): Add code to properly set the comdat
7209         section and name for the .vtable_map_vars section in case the
7210         target is PE or COFF.
7212 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
7214         PR ipa/64801
7215         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
7216         make sane BB profile.
7217         (cgraph_node::expand_thunk): Make sane BB profile.
7218         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
7219         * cgraph.h (init_lowered_empty_function): Update prototype.
7220         * config/i386/i386.c (make_resolver_func): Update call.
7221         * predict.c (gate): Disable branch prediction pass if
7222         profile is already there.
7224 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
7226         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
7227         * opth-gen.awk: Likewise.
7228         * common.opt: Mark flag_fp_contract_mode as Optimization.
7230 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7232         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
7233         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
7235 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
7237         PR target/64659
7238         * config/sh/predicates.md (atomic_arith_operand,
7239         atomic_logical_operand): Remove.
7240         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
7241         (atomic_arith_operand_0): New predicate.
7242         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
7243         Use atomic_arith_operand_0 for input values.
7244         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
7245         atomic_compare_and_swap<mode>_soft_gusa,
7246         atomic_compare_and_swap<mode>_soft_tcb,
7247         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
7248         arith_reg_operand instead of register_operand.
7249         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
7250         atomic_arith_operand_0 for newval input.
7251         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
7252         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
7253         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
7254         arith_reg_operand instead of register_operand.
7255         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
7256         fetchop_predicate_1, fetchop_constraint_1_llcs,
7257         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
7258         fetchop_constraint_1_imask): New code iterator attributes.
7259         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
7260         register_operand.  Use fetchop_predicate_1.
7261         (atomic_fetch_<fetchop_name>si_hard,
7262         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
7263         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
7264         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
7265         and arith_reg_operand instead of register_operand.  Use
7266         fetchop_predicate_1, fetchop_constraint_1_gusa.
7267         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
7268         and arith_reg_operand instead of register_operand.  Use
7269         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
7270         to allow R0 usage.
7271         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
7272         and arith_reg_operand instead of register_operand.  Use
7273         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
7274         to allow R0 usage.
7275         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
7276         register_operand.  Use atomic_logical_operand_1.
7277         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
7278         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
7279         arith_reg_operand instead of register_operand.
7280         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
7281         Use arith_reg_dest and arith_reg_operand instead of register_operand.
7282         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
7283         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
7284         register_operand.  Use fetchop_predicate_1.
7285         (atomic_<fetchop_name>_fetchsi_hard,
7286         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
7287         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
7288         fetchop_constraint_1_llcs.
7289         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
7290         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
7291         fetchop_constraint_1_gusa.
7292         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
7293         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
7294         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
7295         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
7296         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
7297         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
7298         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
7299         register_operand.  Use atomic_logical_operand_1.
7300         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
7301         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
7302         arith_reg_operand instead of register_operand.
7303         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
7304         arith_reg_operand instead of register_operand.  Use logical_operand
7305         and K08.  Adjust asm sequence to allow R0 usage.
7306         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
7307         arith_reg_operand instead of register_operand.  Use logical_operand
7308         and K08.
7310 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
7312         PR other/63504
7313         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
7314         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
7315         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
7316         only get_full_len HOST_WIDE_INTs from get_val () array rather than
7317         all bits in *val_wide.
7319 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
7321         * varpool.c (tls_model_names): Fix names.
7322         (varpool_node::dump): Dump tls- prefix for tls models.
7324 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
7325             Bernd Schmidt  <bernds@codesourcery.com>
7326             Nathan Sidwell  <nathan@codesourcery.com>
7328         * config/nvptx/mkoffload.c: New file.
7329         * config/nvptx/t-nvptx: Add build rules for it.
7330         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
7331         (extra_programs): Add mkoffload.
7332         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
7333         function.
7334         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
7336 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
7338         PR middle-end/64809
7339         * cfgexpand.c (reorder_operands): Skip debug gimples.
7341 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
7343         PR tree-optimization/64277
7344         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
7345         range info when possible to refine estimation.
7347 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7349         PR tree-optimization/64718
7350         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
7351         be a 16bit unsigned integer when n->range is 16.
7352         (bswap_replace): Convert src to that type if necessary for all bswap
7353         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
7354         set in pass_optimize_bswap::execute ().
7356 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
7358         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
7359         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
7360         integer and floating point variants.
7361         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
7363 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
7365         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
7366         for all vector modes.
7368 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
7370         PR bootstrap/64612
7371         * doc/sourcebuild.texi (comdat_group): Document.
7373 2015-01-28  Terry Guo  <terry.guo@arm.com>
7375         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
7377 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
7379         * toplev.c (print_version): Add param "show_global_state", and
7380         only print GGC and plugin information if it is true.
7381         (init_asm_output): Pass in "true" for the new param when calling
7382         print_version.
7383         (process_options): Likewise.
7384         (toplev::main): Likewise.
7385         * toplev.h (print_version): Add new param to decl.
7387 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
7389         PR ipa/60871
7390         PR ipa/64139
7391         * tree.c (lookup_binfo_at_offset): New function.
7392         (get_binfo_at_offset): Use it.
7394 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
7396         PR ipa/64282
7397         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
7398         on vtable being vtable.
7400 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7402         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
7403         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
7404         -mhotpatch= option.
7405         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
7406         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
7407         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
7408         Renamed.
7409         (s390_hotpatch_trampoline_halfwords_max): Renamed.
7410         (s390_hotpatch_hw_max): New name.
7411         (s390_hotpatch_trampoline_halfwords): Renamed.
7412         (s390_hotpatch_hw_before_label): New name.
7413         (get_hotpatch_attribute): Removed.
7414         (s390_hotpatch_hw_after_label): New name.
7415         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
7416         attribute.
7417         (s390_attribute_table): Ditto.
7418         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
7419         (s390_function_num_hotpatch_hw): New name.
7420         Remove special handling of inline functions and hotpatching.
7421         Return number of nops before and after the function label.
7422         (s390_can_inline_p): Removed.
7423         (s390_asm_output_function_label): Emit a configurable number of nops
7424         after the function label.
7425         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
7426         (TARGET_CAN_INLINE_P) Removed.
7427         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
7429 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7430             Jiong Wang  <jiong.wang@arm.com>
7432         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
7433         of scratch reg.
7434         (cb<optab><mode>1): Likewise.
7435         * config/aarch64/iterators.md (bcond): New define_code_attr.
7437 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7439         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
7440         memory accesses.
7442 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7444         * config/s390/s390.c (s390_register_move_cost): Increase costs for
7445         FPR->GPR moves.
7447 2015-01-27  Richard Biener  <rguenther@suse.de>
7449         * tree-vrp.c (update_value_range): Intersect the range with
7450         old recorded SSA name range information.
7452 2015-01-27  Nick Clifton  <nickc@redhat.com>
7454         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
7455         BC, DE and HL registers directly, not via AX.
7456         When decrementing the stack pointer by a large amount, transfer SP
7457         into AX and perform the subtraction there.
7458         (rl78_expand_epilogue): Perform the inverse of the above
7459         enhancements.
7461 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7463         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
7465 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
7466             Yury Gribov  <y.gribov@samsung.com>
7468         PR ubsan/64741
7469         * ubsan.c (ubsan_source_location): Refactor code.
7470         (ubsan_type_descriptor): Update type size. Refactor code.
7472 2015-01-27  Richard Biener  <rguenther@suse.de>
7474         PR tree-optimization/56273
7475         PR tree-optimization/59124
7476         PR tree-optimization/64277
7477         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
7478         from the first VRP pass.
7480 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
7482         PR ipa/64776
7483         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
7484         handle the first argument in the same loop as all the other arguments.
7486         PR rtl-optimization/61058
7487         * jump.c (cleanup_barriers): Update basic block boundaries
7488         if BLOCK_FOR_INSN is non-NULL on PREV.
7490 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
7492         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
7493         bounds narrowing, already instrumented calls and calls to
7494         not instrumentable functions.
7496 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
7498         PR tree-optimization/64807
7499         * wide-int.cc (wi::divmod_internal): Clear
7500         b_dividend[dividend_blocks_needed].
7502 2015-01-26  DJ Delorie  <dj@redhat.com>
7504         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
7505         volatile memory references.
7507 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
7509         PR target/49263
7510         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
7511         remove_insn.
7512         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
7513         shifts if it already fits into K08.
7515 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
7517         PR ipa/64730
7518         * ipa-inline.c (inline_small_functions): Print "unknown" even
7519         if edge->call_stmt is non-NULL, but has builtins or unknown
7520         location.
7522         PR middle-end/64421
7523         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
7524         with asterisk, skip the first character.
7526 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
7528         PR target/64806
7529         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
7530         order change.
7532 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
7534         PR target/64795
7535         * config/i386/i386.md (*movdi_internal): Also check operand 0
7536         to determine TYPE_LEA operand.
7537         (*movsi_internal): Ditto.
7539 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
7541         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
7542         OPTION_MASK_QUAD_MEMORY_ATOMIC.
7544 2015-01-26  Renlin Li  <renlin.li@arm.com>
7546         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
7547         the comment.
7548         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
7549         for higher part.
7551 2015-01-26  Richard Biener  <rguenther@suse.de>
7553         PR middle-end/64764
7554         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
7555         combining two BIT_AND_EXPR predicates.
7557 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
7559         PR bootstrap/64754
7560         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
7562 2015-01-26  Terry Guo  <terry.guo@arm.com>
7564         * config/arm/arm.c (arm_file_start): Update the assignment of
7565         Tag_ABI_HardFP_use.
7567 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
7569         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
7570         pipeline model.
7571         config/arm/arm.md: Include the new Cortex-A57 model.
7572         (generic_sched): Don't use generic_sched when tuning for
7573         Cortex-A57.
7575 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
7576             Uros Bizjak  <ubizjak@gmail.com>
7578         * config/i386/i386.c (get_builtin_code_for_version): Add
7579         support for BMI and BMI2 multiversion functions.
7581 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7583         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
7584         (extract_bit_field): Likewise.
7585         (extract_low_bits): Likewise.
7586         (expand_mult): Likewise.
7587         (expand_mult_highpart_adjust): Likewise.
7589 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
7591         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
7592         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
7593         * config/i386/i386.c (processor_model): Add
7594         M_INTEL_COREI7_BROADWELL.
7595         (arch_names_table): Add "broadwell".
7597 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
7599         PR target/49263
7600         PR target/53987
7601         PR target/64345
7602         PR target/59533
7603         PR target/52933
7604         PR target/54236
7605         PR target/51244
7606         * config/sh/sh-protos.h
7607         (sh_extending_set_of_reg::can_use_as_unextended_reg,
7608         sh_extending_set_of_reg::use_as_unextended_reg,
7609         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
7610         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
7611         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
7612         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
7613         (sh_treg_insns): New class.
7614         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
7615         (scope_counter): New class.
7616         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
7617         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
7618         sh_extending_set_of_reg::can_use_as_unextended_reg,
7619         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
7620         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
7621         sh_split_treg_set_expr): New functions.
7622         (addsubcosts): Handle treg_set_expr.
7623         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
7624         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
7625         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
7626         (sh_insn_operands_modified_between_p): Make non-static.
7627         * config/sh/predicates.md (zero_extend_movu_operand): Allow
7628         simple_mem_operand in addition to displacement_mem_operand.
7629         (zero_extend_operand): Don't allow zero_extend_movu_operand.
7630         (treg_set_expr, treg_set_expr_not_const01,
7631         arith_reg_or_treg_set_expr): New predicates.
7632         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
7633         arith_or_int_operand instead of logical_operand.  Convert to
7634         insn_and_split.  Try to optimize constant operand in splitter.
7635         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
7636         (*tstqi_t_zero): Delete.
7637         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
7638         (tstsi_t_and_not): Delete.
7639         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
7640         Convert to insn_and_split.
7641         (unnamed split, tstsi_t_zero_extract_xor,
7642         tstsi_t_zero_extract_subreg_xor_little,
7643         tstsi_t_zero_extract_subreg_xor_big): Delete.
7644         (*tstsi_t_shift_mask): New insn_and_split.
7645         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
7646         to recombine with surrounding insns when splitting.
7647         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
7648         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
7649         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
7650         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
7651         (*cbranch_div0s: Delete.
7652         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
7653         Try to recombine with surrounding insns when splitting.  Add operand
7654         order variants.
7655         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
7656         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
7657         *addc_r_r_msb, *addc_2r_msb): Delete.
7658         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
7659         order variant.
7660         (*addc_negreg_t): New insn_and_split.
7661         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
7662         Try to recombine with surrounding insns when splitting.
7663         Add operand order variants.
7664         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
7665         insn_and_split patterns.
7666         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
7667         surrounding insns when splitting.
7668         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
7669         (*rotcl): Likewise.  Add zero_extract variant.
7670         (*ashrsi2_31): New insn_and_split.
7671         (*negc): Convert to insn_and_split.  Use treg_set_expr.
7672         (*zero_extend<mode>si2_disp_mem): Update comment.
7673         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
7674         condition.
7675         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
7676         with surrounding insns when splitting.
7677         (any_treg_expr_to_reg): New insn_and_split.
7678         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
7679         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
7680         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
7681         *zero_extract_2): New single bit zero extract patterns.
7682         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
7683         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
7684         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
7685         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
7686         set destination.
7687         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
7688         register_operand for set source.
7690 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
7692         * i386.opt (prefetch_sse): New targetsave.
7693         * i386.c (ix86_function_specific_save): Save prefetch_sse.
7694         (ix86_function_specific_restore): Restore prefetch_sse and initialize
7695         ix86_cost/ix86_tune_cost.
7697 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
7699         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7700         Support the JIT by using 0 as the language type.
7702 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
7704         PR target/64317
7705         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
7706         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
7707         (mark_regno_live, process_bb_lives): Pass new parameter value to
7708         make_hard_regno_born.
7710 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
7712         PR rtl-optimization/63637
7713         PR rtl-optimization/60663
7714         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
7715         if elt->cost is MAX_COST for ASM_OPERANDS.
7716         (find_sets_in_insn): Fix up comment typo.
7717         (cse_insn): Don't set src_volatile for all non-volatile
7718         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
7719         or with "memory" clobber.  Set elt->cost to MAX_COST
7720         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
7721         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
7723 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
7725         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
7726         alternative 1.
7728 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
7730         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
7731         libgcc/config/i386/elf-lib.h.
7733 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
7735         PR driver/64737
7736         * gcc.c (print_configuration): Don't print a blank line at the end
7737         here...
7738         (run_attempt): ... but here unstead.
7740         PR middle-end/64734
7741         * omp-low.c (scan_sharing_clauses): Don't ignore
7742         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
7743         on target data/update constructs.
7745 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7747         PR target/50928
7748         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
7749         (DEBUG_RELOAD): Removed define.
7750         (m32c_limit_reload_class): Enable traces with if DEBUG0.
7751         (m32c_function_arg): Added a type cast.
7752         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
7753         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
7754         * config/m32c/bitops.md (andqi3_16): Likewise.
7755         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
7756         (push_a01_l): Likewise.
7758 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
7760         PR jit/64721
7761         * main.c (main): Construct toplev instances with init_signals=true.
7762         * toplev.c (general_init): Add param "init_signals", and use it to
7763         conditionalize the calls to signal and host_hooks.extra_signals.
7764         (toplev::toplev): Add param "init_signals".
7765         (toplev::main): When invoking general_init, pass m_init_signals
7766         to control whether signal-handlers are installed.
7767         * toplev.h (toplev::toplev): Add param "init_signals".
7768         (toplev::m_init_signals): New field.
7770 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
7772         PR jit/64722
7773         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
7774         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
7775         latter may be affected by the former (e.g. on i686).
7777 2015-01-23  Martin Liska  <mliska@suse.cz>
7779         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
7780         false positive during profiledbootstrap.
7782 2015-01-23  Tom de Vries  <tom@codesourcery.com>
7784         PR libgomp/64672
7785         * lto-opts.c (lto_write_options): Output non-explicit conservative
7786         -fno-openacc.
7787         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
7788         (append_compiler_options): Pass -fopenacc through.
7790 2015-01-23  Tom de Vries  <tom@codesourcery.com>
7792         PR libgomp/64707
7793         * lto-opts.c (lto_write_options): Output non-explicit conservative
7794         -fno-openmp.
7795         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
7796         (append_compiler_options): Pass -fopenmp through.
7798 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
7800         PR debug/64511
7801         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
7802         GTY markup.
7804         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
7805         * diagnostic.def (DK_ICE_NOBT): New kind.
7806         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
7807         like DK_ICE, but never print backtrace.
7808         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
7809         (internal_error_no_backtrace): New function.
7810         * gcc.c (execute): Use internal_error_no_backtrace instead of
7811         internal_error.
7813 2015-01-22  Jeff Law  <law@redhat.com>
7815         PR target/52076
7816         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
7817         improve code density for small immediate to memory case.
7818         (insv): Better handle bitfield assignments when the field is
7819         being set to all ones.
7820         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
7821         operand predicate.
7823 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7824             Jakub Jelinek  <jakub@redhat.com>
7826         PR middle-end/64729
7827         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
7828         for !TARGET_LIBC_PROVIDES_SSP version and
7829         -fstack-protector-{all,strong,explicit} otherwise.
7830         * config/freebsd.h (LINK_SSP_SPEC): Handle
7831         -fstack-protector-{strong,explicit}.
7833 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
7834             H.J. Lu  <hongjiu.lu@intel.com>
7836         PR ipa/64694
7837         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
7838         heap.
7840 2015-01-22  Wei Mi  <wmi@google.com>
7842         PR rtl-optimization/64557
7843         * dse.c (record_store): Call get_addr for mem_addr.
7844         (check_mem_read_rtx): Likewise.
7846 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7848         * fold-const.c (const_binop): Add early return for non-tcc_binary.
7850 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
7852         * toplev.c (init_local_tick): Process the failure when read
7853         fails for random_seed.
7855         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
7856         'pretty_name' to avoid memory overflow.
7858 2015-01-22  Richard Biener  <rguenther@suse.de>
7860         PR middle-end/64728
7861         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
7862         abnormal coalescing on undefined SSA names.
7864 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
7866         PR target/64688
7867         PR target/64477
7868         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
7869         for alternative 3.
7870         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
7872 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
7874         PR middle-end/63325
7875         * fold-const.c (fold_checksum_tree): Don't include value of
7876         expr->decl_with_vis.symtab_node in the checksum.
7878 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7880         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
7882 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
7884         PR driver/64690
7885         * gcc.c (insert_comments): New function.
7886         (try_generate_repro): Call it.
7887         (append_text): Removed.
7889 2015-01-22  Richard Biener  <rguenther@suse.de>
7891         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
7892         with IL incompatible options.  Properly honor user optimize
7893         attributes.
7895 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
7897         PR rtl-optimization/64682
7898         * combine.c (distribute_notes): When moving a death note for
7899         a register that is set in the new I2, make sure to put it
7900         before that new I2.
7902 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
7904         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
7905         not TARGET_DEFAULT.
7907 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
7909         PR debug/64511
7910         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
7911         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
7912         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
7914         PR sanitizer/64706
7915         * doc/invoke.texi (-fsanitize=vptr): Document.
7917         PR rtl-optimization/62078
7918         * dse.c: Include cfgcleanup.h.
7919         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
7920         anything call purge_all_dead_edges and cleanup_cfg at the end
7921         of the pass.
7923 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
7925         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
7926         edges.
7928 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7930         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
7931         decl attribute.
7933 2015-01-21  David Sherwood  <david.sherwood@arm.com>
7934             Tejas Belagod <Tejas.Belagod@arm.com>
7936         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
7937         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
7938         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
7939         Removed.
7941 2015-01-21  David Sherwood  <david.sherwood@arm.com>
7942             Tejas Belagod <Tejas.Belagod@arm.com>
7944         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
7945         (aarch64_reverse_mask): New decls.
7946         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
7947         (insn_count): New mode_attr.
7948         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
7949         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
7950         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
7951         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
7952         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
7953         (aarch64_simd_st4): New patterns.
7954         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
7955         (aarch64_reverse_mask): New functions.
7957 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
7959         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
7960         Declare.
7961         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
7962         addressing modes for BE.
7963         (aarch64_print_operand): Add 'R' specifier.
7964         (aarch64_simd_disambiguate_copy): Delete.
7965         (aarch64_simd_emit_reg_reg_move): New function.
7966         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
7967         in define_splits for structural moves.
7968         (mov<mode>): Use less restrictive predicates.
7969         (*aarch64_mov<mode>): Simplify and only allow for LE.
7970         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
7972 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
7974         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
7976 2015-01-21  Richard Henderson  <rth@redhat.com>
7978         PR target/64669
7979         * ccmp.c (used_in_cond_stmt_p): Remove.
7980         (expand_ccmp_expr): Don't use it.
7982 2015-01-21  Nick Clifton  <nickc@redhat.com>
7984         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
7985         PARALLELs.
7987 2015-01-21  Richard Biener  <rguenther@suse.de>
7989         PR middle-end/64313
7990         * tree-core.h (builtin_info, builtin_info_type): Turn from
7991         an object with two arrays into an array of an object with
7992         decl and two flags, implicit_p and declared_p.
7993         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
7994         set_builtin_decl, set_builtin_decl_implicit_p,
7995         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
7996         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
7997         * builtins.c (builtin_info): Adjust.
7998         * gimplify.c (gimplify_addr_expr): References to builtins
7999         that have been declared by the user makes them eligible for
8000         use by the compiler.  Call set_builtin_decl_implicit_p on them.
8002 2015-01-20  Jeff Law  <law@redhat.com>
8004         PR target/59946
8005         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
8006         allow pc-relative addresses in operand predicates or constraints.
8008 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
8010         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
8011         neon on aarch32 processors for stringops.
8013 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8015         PR ipa/63576
8016         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
8018 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8020         PR lto/45375
8021         * ipa-inline.c: Include lto-streamer.h
8022         (report_inline_failed_reason): Output source file differences and
8023         flags on optimization/target node mismatch.
8024         (can_inline_edge_p): Consider caller to be the outer inline function;
8025         be less restrictive about matching opimize and optimize_size attributes.
8026         (inline_account_function_p): Break out from ...
8027         (inline_small_functions): ... here.
8028         * ipa-inline-transform.c (clone_inlined_nodes): Use
8029         inline_account_function_p.
8030         (inline_call): Use optimize attribution; use inline_account_function_p.
8031         (inline_transform): Use opt_for_fn.
8032         * ipa-inline.h (inline_account_function_p): Declare.
8034 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
8036         PR debug/64663
8037         * dwarf2out.c (decl_piece_node): Don't put bitsize into
8038         mode if bitsize <= 0.
8039         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
8040         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
8041         sizes and positions.
8043 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
8045         * config/nios2/nios2.c (nios2_asm_file_end): Implement
8046         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
8047         needed.
8048         (TARGET_ASM_FILE_END): Define.
8050 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8052         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
8053         (struct tune_params): Use the enum.
8054         * arm.c (arm_*_tune): Update.
8055         (arm_option_override): Update.
8057 2015-01-20  Richard Biener  <rguenther@suse.de>
8059         PR ipa/64684
8060         * ipa-reference.c (add_static_var): Inline ...
8061         (analyze_function): ... here after splitting out from ...
8062         (is_proper_for_analysis): ... this.
8064 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
8066         PR target/64149
8067         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
8068         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
8069         replace the conditional with it's true branch.
8070         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
8071         (arm_lra_p): Remove.
8073 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
8075         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
8077 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8079         * config/tilegx/mul-tables.c: Move symtab.h include after
8080         coretypes.h include.
8081         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
8082         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
8083         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
8084         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
8085         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
8087 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
8089         PR bootstrap/64676
8090         Revert:
8091         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
8093         PR rtl-optimization/64081
8094         * loop-iv.c (def_pred_latch_p): New function.
8095         (latch_dominating_def): Allow specific cases with non-single
8096         definitions.
8097         (iv_get_reaching_def): Likewise.
8098         (check_complex_exit_p): New function.
8099         (check_simple_exit): Use check_complex_exit_p to allow certain cases
8100         with exits not executing on any iteration.
8102 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8104         PR lto/45375
8105         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
8106         to set branch cost.
8108 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8110         PR lto/45375
8111         * i386.c (gate): Check flag_expensive_optimizations and
8112         optimize_size.
8113         (ix86_option_override_internal): Drop optimize_size condition
8114         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
8115         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
8116         MASK_PREFER_AVX128.
8117         (ix86_avx256_split_vector_move_misalign,
8118         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
8119         * sse.md (all uses of TARGET_PREFER_AVX128): Add
8120         optimize_insn_for_speed_p check.
8122 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
8124         * config/mips/mips.h (FP_ASM_SPEC): New define.
8125         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
8126         instead.
8128 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
8130         PR target/53988
8131         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
8132         nullptr for insn when reaching the first insn.
8133         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
8134         (sh_insn_operands_modified_between_p): Add nullptr check.
8135         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
8136         sign extending mem load if the insn contains any UNSPEC or
8137         UNSPEC_VOLATILE.
8139 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8141         * params.def (inline-unit-growth): Drop to 15%.
8142         * invoke.texi (inline-unit-growth): Document change.
8144 2015-01-19  Martin Liska  <mliska@suse.cz>
8146         PR ipa/64668
8147         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
8148         function for second argument of OBJ_TYPE_REF.
8150 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8152         PR ipa/64218
8153         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
8154         whether function is an alias.
8156 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
8158         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
8159         cases.
8161 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
8163         PR rtl-optimization/64671
8164         * lra-remat.c (operand_to_remat): Don't consider jump and call
8165         insns.
8167 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
8169         PR target/59828
8170         * config/rs6000/default64.h: Include rs6000-cpus.def.
8171         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
8172         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
8173         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
8174         and POWER8.
8175         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
8176         POWER8.
8177         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
8178         pseudo-op to specify assembler dialect.
8180 2015-01-19  Martin Liska  <mliska@suse.cz>
8182         PR ipa/64664
8183         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
8184         Handle safe potentially removed nodes during filtering.
8186 2015-01-19  Martin Liska  <mliska@suse.cz>
8188         * doc/extend.texi (no_icf): Add new attribute description.
8189         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
8190         where the pass attempts to merge a function with no_icf attribute.
8192 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8194         PR target/64532
8195         * doc/md.texi (ARM Options): Document register constraints.
8197 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
8198             Andrew Pinski  <apinski@cavium.com>
8200         PR target/64304
8201         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
8202         (ashl<mode>3): Don't expand if operands[2] is not constant.
8204 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8206         PR target/64448
8207         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
8208         Match xor-and-xor RTL pattern.
8210 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
8212         PR rtl-optimization/64081
8213         * loop-iv.c (def_pred_latch_p): New function.
8214         (latch_dominating_def): Allow specific cases with non-single
8215         definitions.
8216         (iv_get_reaching_def): Likewise.
8217         (check_complex_exit_p): New function.
8218         (check_simple_exit): Use check_complex_exit_p to allow certain cases
8219         with exits not executing on any iteration.
8221 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
8223         * common.opt (fgraphite): Fix a typo.
8225 2015-01-19  Felix Yang  <felix.yang@huawei.com>
8227         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
8228         pattern.
8229         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
8230         uminp, smax_nanp, smin_nanp): New builtins.
8231         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
8232         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
8233         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
8234         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
8235         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
8236         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
8237         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
8238         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
8239         vpminnms_f32): Rewrite using builtin functions.
8241 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
8243         PR libgomp/64625
8244         * omp-low.c (offload_symbol_decl): Remove variable.
8245         (get_offload_symbol_decl): Remove function.
8246         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
8247         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
8248         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
8249         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
8250         BUILT_IN_GOACC_UPDATE don't pass it at all.
8252 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
8254         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
8255         callers.
8257 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
8259         * ipa-chkp.c (chkp_produce_thunks): Add early param
8260         to split thunks production into two passes.  Keep
8261         'always_inline' function bodies after the first pass.
8262         (pass_data_ipa_chkp_early_produce_thunks): New.
8263         (pass_ipa_chkp_early_produce_thunks): New.
8264         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
8265         chkp_produce_thunks signature.
8266         (make_pass_ipa_chkp_early_produce_thunks): New.
8267         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
8268         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
8269         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
8271 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
8273         * cgraph.c (cgraph_node::dump): Dump profile flags.
8275 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
8277         PR target/64652
8278         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
8279         reg appear first in the parallel.
8281 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
8283         * ipa-reference.c (set_reference_optimization_summary,
8284         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
8285         disabled.
8286         (ignore_module_statics): New static var.
8287         (propagate_bits): If ipa-reference is disabled, do not look into local
8288         properties.
8289         (analyze_function): Disable analysis when ipa_reference is disabled.
8290         (generate_summary): Do not dump when reference is disabled;
8291         collect vars accessed from functions with ipa-reference disabled.
8292         (get_read_write_all_from_node): When ipa-reference is disabled, use the
8293         node flags.
8294         (gate): Enable for LTO.
8295         (ignore_edge_p): New function.
8296         (propagate): Skip functions w/o ipa-reference analysis.
8297         * optc-save-gen.awk: Handle optimize_debug correctly.
8298         * opth-gen.awk: Likewise.
8299         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
8300         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
8301         fira-share-save-slots, fira-share-spill-slots,
8302         fmodulo-sched-allow-regmoves, fpartial-inlining,
8303         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
8304         ftracer, ftree-parallelize-loops, fassociative-math,
8305         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
8306         Optimization
8307         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
8308         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
8309         Optimization.
8310         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
8311         Fix for IPA.
8313 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
8315         PR ipa/64378
8316         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
8317         flag correctly.
8318         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
8320 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
8322         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
8323         Remove duplicate option listings.
8325 2015-01-18  Felix Yang  <felix.yang@huawei.com>
8327         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
8328         (autofdo_source_profile::get_callsite_total_count,
8329         function_instance::get_function_instance_by_decl,
8330         string_table::get_index, string_table::get_index_by_decl,
8331         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
8332         Fix comment typos. Reformatting and minor code rearrangement.
8334 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
8336         * config/rs6000/rs6000.md (probe_stack): Delete.
8337         (probe_stack_address): New.
8339 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
8341         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
8342         to test for 32-bit ABIs, not !TARGET_POWERPC64.
8344 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
8346         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
8347         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
8348         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
8349         snafu.
8350         (rs6000_libcall_value): Use the new function.
8352 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
8354         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
8356 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
8358         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
8359         implement a more precise life analysis for it during backward scan.
8361 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
8363         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
8365 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
8367         PR rtl-optimization/52773
8368         * calls.c (emit_library_call_value): When pushing arguments use
8369         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
8370         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
8371         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
8373 2015-01-17  Jeff Law  <law@redhat.com>
8375         PR rtl-optimization/32790
8376         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
8377         not ZERO_EXTEND in SET_DESTs.
8379 2015-01-17  Alan Modra  <amodra@gmail.com>
8381         * cprop.c (do_local_cprop): Revert last change.
8383 2015-01-16  DJ Delorie  <dj@redhat.com>
8384             Nick Clifton  <nickc@redhat.com>
8386         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
8387         (addhi3_real): Likewise.  Fix [HL+0] syntax.
8388         (subqi3_real): Likewise.
8389         (subhi3_real): Likewise.
8390         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
8391         (cbranchhi4_real): Likewise.
8392         (cbranchhi4_real_inverted): Likewise.
8393         (cbranchsi4_real_lt): Likewise.
8394         (cbranchsi4_real_ge): Likewise.
8395         (cbranchsi4_real_ge): Likewise.
8396         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
8397         (sub<mode>3_virt): Likewise.
8398         (cbranchqi4_virt): Likewise.
8399         (cbranchhi4_virt): Likewise.
8400         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
8401         always use '[reg+imm]' even when imm is zero.
8402         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
8403         (rl78_general_operand): New.
8404         (rl78_nonimmediate_operand): New.
8405         (rl78_nonfar_operand): Use them.
8406         (rl78_nonfar_nonimm_operand): Likewise.
8407         (rl78_stack_based_mem): Fix.
8408         * config/rl78/constraints.md (Ibqi): New.
8409         (IBqi): New.
8410         (Wsa): New.
8411         (Wsf): New.
8412         (Cs1): Fix.
8413         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
8414         (iorqi3): Likewise.
8415         (xorqi3): Likewise.
8416         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
8418         * config/rl78/constrains (Qs8): New constraint.
8419         * config/rl78/rl78.c (rl78_flags_already_set): New function.
8420         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
8421         * config/rl78/rl78-real.md (update_Z): New attribute.
8422         Update patterns to set it.
8423         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
8424         shorter compare and branch sequence can be used.
8425         (cbranchhi4_real): Likewise.
8426         (cbranchhi4_real_inverted): Likewise.
8428         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
8429         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
8430         address space.
8431         * config/rl78/rl78.c (rl78_get_name_encoding): New.
8432         (rl78_option_override): Allow -mes0 only if C.
8433         (characterize_address): Support subregs of symbol_refs.
8434         (rl78_addr_space_address_mode): Move.  Add __near.
8435         (rl78_far_p): Likewise.
8436         (rl78_addr_space_pointer_mode): Likewise.
8437         (rl78_as_legitimate_address): Likewise.
8438         (rl78_addr_space_subset_p): Likewise.
8439         (rl78_addr_space_convert): Likewise.
8440         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
8441         symbols with -mes0.
8442         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
8443         addressing.
8444         (rl78_alloc_physical_registers_op1): Change logic to prefer
8445         symbol[BC] addressing.
8446         (frodata_section): New.
8447         (rl78_asm_init_sections): Initialize it.
8448         (rl78_select_section): Put __far readonly symbols in .frodata.
8449         (rl78_make_type_far): New.
8450         (rl78_insert_attributes): Force all readonly symbols to be
8451         __far when -mes0.
8452         (rl78_asm_out_integer): New.
8453         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
8454         * config/rl78/rl78.opt (-mes0): New.
8456         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
8457         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8458         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8459         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
8460         (rl78_saddr_p): New.
8461         (rl78_output_aligned_common): New.
8462         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
8463         (rl78_handle_saddr_attribute): New.
8464         (rl78_handle_naked_attribute): New.
8465         (rl78_attribute_table): Add saddr.
8466         (rl78_print_operand_1): Don't print '!' on saddr operands.
8467         (rl78_print_operand_1): Strip encodings.
8468         (rl78_sfr_p): New.
8469         (rl78_strip_name_encoding): New.
8470         (rl78_attrlist_to_encoding): New.
8471         (rl78_encode_section_info): New.
8472         (rl78_asm_init_sections): New.
8473         (rl78_select_section): New.
8474         (rl78_output_labelref): New.
8475         (rl78_output_aligned_common): New.
8476         (rl78_asm_out_integer): New.
8477         (rl78_asm_ctor_dtor): New.
8478         (rl78_asm_constructor): New.
8479         (rl78_asm_destructor): New.
8481         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
8482         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
8483         (transcode_memory_rtx): Update.
8484         (rl78_expand_epilogue): Use A_REG instead of 0.
8486 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8488         * config/arm/arm-protos.h (struct tune_params): New field
8489         sched_autopref_queue_depth.
8490         * config/arm/arm.c (sched-int.h): Include header.
8491         (arm_first_cycle_multipass_dfa_lookahead_guard,)
8492         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
8493         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
8494         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
8495         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
8496         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
8497         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
8498         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
8499         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
8500         * config/arm/t-arm (arm.o): Update.
8501         * haifa-sched.c (update_insn_after_change): Update.
8502         (rank_for_schedule): Use auto-prefetcher model, if requested.
8503         (autopref_multipass_init): New static function.
8504         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
8505         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
8506         variable for debug dumps.
8507         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
8508         (autopref_multipass_dfa_lookahead_guard): New global function that
8509         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
8510         (init_h_i_d): Update.
8511         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
8512         * sched-int.h (enum autopref_multipass_data_status): New const enum.
8513         (autopref_multipass_data_): Structure for auto-prefetcher data.
8514         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
8515         (struct _haifa_insn_data:autopref_multipass_data): New field.
8516         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
8517         (autopref_multipass_dfa_lookahead_guard): Declare.
8519 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8521         * rtlanal.c (get_base_term): Handle SCRATCH.
8523 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8525         * config/aarch64/aarch64.c
8526         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
8527         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
8528         * config/arm/arm.c
8529         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
8530         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
8532 2015-01-17  Alan Modra  <amodra@gmail.com>
8534         * cprop.c (do_local_cprop): Disallow replacement of fixed
8535         hard registers.
8537 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8539         PR target/62066
8540         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
8541         early return 0.
8543 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8545         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
8546         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
8548 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8550         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
8551         * config/arm/thumb1.md: ... Here.
8553 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
8555         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
8556         TImode for TARGET_32BIT.
8558 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
8560         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
8561         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
8562         as ...
8563         (rs6000_abi_word_mode): New function.
8565 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
8567         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
8568         instead of UNITS_PER_WORD to describe the size of stack slots.
8570 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
8572         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
8573         as rs6000_promote_function_mode.  Move comment to there.
8574         (rs6000_promote_function_mode): New function.
8576 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
8578         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
8579         -mpowerpc64 is active.
8581 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
8583         PR middle-end/64353
8584         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
8585         virtuals on start.
8587 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
8589         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
8590         introduced in revision 219724.
8592 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8593             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8595         PR target/64263
8596         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
8597         destination is not a GP reg.
8598         (*movdi_aarch64): Likewise.
8600 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
8602         PR target/64623
8603         * config/rs6000/default64.h: Revert ISA change.
8605 2015-01-16  Richard Biener  <rguenther@suse.de>
8607         PR middle-end/64614
8608         * tree-ssa-uninit.c: Include tree-cfg.h.
8609         (MAX_SWITCH_CASES): New define.
8610         (convert_control_dep_chain_into_preds): Handle switch statements.
8611         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
8612         (normalize_one_pred_1): Do not split bit-manipulations.
8613         Record (x & CST).
8615 2015-01-16  Richard Biener  <rguenther@suse.de>
8617         PR tree-optimization/64568
8618         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
8619         complex load rewriting for TARGET_MEM_REFs.
8621 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
8623         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
8625 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
8627         PR target/64149
8628         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
8629         variable.
8630         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
8631         (aarch64_lra_p): Remove.
8633 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
8635         PR target/64363
8636         * ipa-chkp.h (chkp_instrumentable_p): New.
8637         * ipa-chkp.c: Include tree-inline.h.
8638         (chkp_instrumentable_p): New.
8639         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
8640         Fix processing of not instrumentable functions.
8641         (chkp_versioning): Use chkp_instrumentable_p. Warn about
8642         not instrumentable functions.
8643         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
8644         chkp_instrumentable_p.
8645         * tree-inline.h (copy_forbidden): New.
8646         * tree-inline.c (copy_forbidden): Not static anymore.
8648 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8650         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
8651         ptr1, ptr2 unused.
8653 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
8655         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
8656         type OP_OUT to OP_INOUT.
8658 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
8660         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
8661         (high x) y) to y if x and y have the same base.
8663 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
8665         * config/arm/cortex-a57.md: New.
8666         * config/aarch64/aarch64.md: Include it.
8667         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
8668         * config/aarch64/aarch64-tune.md: Regenerate.
8670 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8672         PR target/64015
8673         * ccmp.c (expand_ccmp_next): New function.
8674         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
8675         and compare insn sequence.
8676         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
8677         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
8678         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
8679         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
8680         (*ccmp_ior): Changed to ccmp_ior<mode>.
8681         (cmp<mode>): New pattern.
8682         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
8683         parameters.
8684         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
8686 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
8688         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
8689         _mm256_bsrli_epi128): New.
8690         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
8692 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
8694         * expmed.c (store_bit_field_using_insv): Improve warning message.
8695         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
8697 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
8699         PR rtl-optimization/64011
8700         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
8701         there is partial overflow.
8703 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
8705         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
8706         prototype.
8707         (nds32_expand_epilogue_v3pop): Likewise.
8708         * config/nds32/nds32.md (sibcall): Define this for sibling call
8709         optimization.
8710         (sibcall_register): Likewise.
8711         (sibcall_immediate): Likewise.
8712         (sibcall_value): Likewise.
8713         (sibcall_value_register): Likewise.
8714         (sibcall_value_immediate): Likewise.
8715         (sibcall_epilogue): Likewise.
8716         (epilogue): Pass false to indicate this is not a sibcall epilogue.
8717         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
8718         (nds32_expand_epilogue_v3pop): Likewise.
8720 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
8722         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
8723         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
8724         (return_internal): New.
8725         (return): Define this named pattern.
8726         (simple_return): Define this named pattern.
8727         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
8728         pattern instead of unspec_volatile_func_return.
8729         (nds32_expand_epilogue_v3pop): Likewise.
8730         (nds32_can_use_return_insn): New function.
8732 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
8734         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
8735         * config/nds32/nds32.md (pop25return): New.
8736         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
8737         pop25return pattern.
8739 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
8741         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
8742         -mforbid-fp-as-gp, and -mex9 options.
8744 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
8746         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
8747         remove -mgp-direct option.
8749 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
8751         * doc/invoke.texi (--param early-inlining-insns): Update default value.
8752         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
8754 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
8756         * ipa-inline.c (inline_small_functions): Work around hints
8757         cache issue.
8759 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
8761         PR target/59710
8762         * doc/invoke.texi (Option Summary): Document new Nios II
8763         -mgpopt= syntax.
8764         (Nios II Options): Likewise.
8765         * config/nios2/nios2.opt: Add -mgpopt= option support.
8766         Modify existing -mgpopt and -mno-gpopt options to be aliases.
8767         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
8768         * config/nios2/nios2.c (nios2_option_override): Adjust
8769         -mgpopt defaulting.
8770         (nios2_in_small_data_p): Return true for explicit small data
8771         sections even with -G0.
8772         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
8773         option choices.
8775 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
8777         PR ipa/64612
8778         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
8779         of comdat locals.
8780         (inline_call): Fix removal of aliases.
8782 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
8784         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
8785         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
8786         * opts.c (common_handle_option): Add -fsanitize=vptr.
8787         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
8788         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
8789         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
8790         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
8791         (ubsan_expand_vptr_ifn): New prototype.
8792         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
8793         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
8794         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
8795         expand_LOOP_VECTORIZED): Make argument nameless, remove
8796         ATTRIBUTE_UNUSED.
8797         (expand_UBSAN_VPTR): New function.
8798         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
8799         in fn spec.
8800         (UBSAN_VPTR): New internal function.
8801         * sanopt.c (tree_map_traits): Renamed to ...
8802         (sanopt_tree_map_traits): ... this.
8803         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
8804         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
8805         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
8806         (maybe_optimize_ubsan_vptr_ifn): New function.
8807         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
8808         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
8809         -fsanitize=vptr.
8810         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
8811         internal calls like pure functions for aliasing, even when they
8812         have other side-effects that prevent making them ECF_PURE.
8813         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
8814         (ubsan_expand_vptr_ifn): New function.
8816 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8818         PR rtl-optimization/64110
8819         * stmt.c (parse_output_constraint): Process '^' and '$'.
8820         (parse_input_constraint): Ditto.
8821         * lra-constraints.c (process_alt_operands): Process the new
8822         constraints.
8823         * ira-costs.c (record_reg_classes): Process the new constraint
8824         '^'.
8825         * genoutput.c (indep_constraints): Add '^' and '$'.
8826         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
8827         * doc/md.texi: Add description of the new constraints.
8829 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
8830             Bernd Schmidt  <bernds@codesourcery.com>
8831             Cesar Philippidis  <cesar@codesourcery.com>
8832             James Norris  <jnorris@codesourcery.com>
8833             Tom de Vries  <tom@codesourcery.com>
8834             Ilmir Usmanov  <i.usmanov@samsung.com>
8835             Dmitry Bocharnikov  <dmitry.b@samsung.com>
8836             Evgeny Gavrin  <e.gavrin@samsung.com>
8837             Jakub Jelinek  <jakub@redhat.com>
8839         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
8840         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8841         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8842         New function types.
8843         * builtins.c: Include "gomp-constants.h".
8844         (expand_builtin_acc_on_device): New function.
8845         (expand_builtin, is_inexpensive_builtin): Handle
8846         BUILT_IN_ACC_ON_DEVICE.
8847         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
8848         New macros.
8849         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
8850         flag_openmp.
8851         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
8852         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
8853         i386/intelmic-offload.h.
8854         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
8855         to libgomp and its dependencies.
8856         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
8857         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8858         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8859         * config/ia64/hpux.h (LIB_SPEC): Likewise.
8860         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8861         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8862         * doc/generic.texi: Update for OpenACC changes.
8863         * doc/gimple.texi: Likewise.
8864         * doc/invoke.texi: Likewise.
8865         * doc/sourcebuild.texi: Likewise.
8866         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
8867         GF_OMP_FOR_KIND_OACC_LOOP.
8868         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
8869         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
8870         GF_OMP_TARGET_KIND_OACC_UPDATE,
8871         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8872         Dump more data.
8873         * gimple.c: Update comments for OpenACC changes.
8874         * gimple.def: Likewise.
8875         * gimple.h: Likewise.
8876         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
8877         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8878         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
8879         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
8880         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
8881         appropriate place.
8882         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
8883         * gimplify.c: Include "gomp-constants.h".
8884         Update comments for OpenACC changes.
8885         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
8886         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
8887         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8888         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
8889         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8890         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8891         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
8892         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8893         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
8894         OMP_CLAUSE_SEQ.
8895         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
8896         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
8897         OMP_CLAUSE_SET_MAP_KIND.
8898         (gimplify_oacc_cache): New function.
8899         (gimplify_omp_for): Handle OACC_LOOP.
8900         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
8901         OACC_DATA.
8902         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
8903         OACC_EXIT_DATA, OACC_UPDATE.
8904         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
8905         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
8906         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
8907         (gimplify_body): Consider flag_openacc next to flag_openmp.
8908         * lto-streamer-out.c: Include "gomp-constants.h".
8909         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
8910         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
8911         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
8912         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
8913         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
8914         (BUILT_IN_ACC_ON_DEVICE): New builtins.
8915         * omp-low.c: Include "gomp-constants.h".
8916         Update comments for OpenACC changes.
8917         (struct omp_context): Add reduction_map, gwv_below, gwv_this
8918         members.
8919         (extract_omp_for_data, use_pointer_for_field, install_var_field)
8920         (new_omp_context, delete_omp_context, scan_sharing_clauses)
8921         (create_omp_child_function, scan_omp_for, scan_omp_target)
8922         (check_omp_nesting_restrictions, lower_reduction_clauses)
8923         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
8924         Update for OpenACC changes.
8925         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
8926         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
8927         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
8928         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
8929         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
8930         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
8931         OMP_CLAUSE_MAP_*.
8932         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8933         Handle GF_OMP_FOR_KIND_OACC_LOOP.
8934         (expand_omp_target, lower_omp_target): Handle
8935         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
8936         GF_OMP_TARGET_KIND_OACC_UPDATE,
8937         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
8938         GF_OMP_TARGET_KIND_OACC_DATA.
8939         (pass_expand_omp::execute, execute_lower_omp)
8940         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
8941         flag_openmp.
8942         (offload_symbol_decl): New variable.
8943         (oacc_get_reduction_array_id, oacc_max_threads)
8944         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
8945         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
8946         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
8947         (oacc_gimple_assign, oacc_initialize_reduction_data)
8948         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
8949         functions.
8950         (is_targetreg_ctx): Remove function.
8951         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
8952         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
8953         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
8954         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
8955         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
8956         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
8957         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
8958         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
8959         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
8960         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
8961         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
8962         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
8963         * tree-core.h: Update comments for OpenACC changes.
8964         (enum omp_clause_map_kind): Remove.
8965         (struct tree_omp_clause): Change type of map_kind member from enum
8966         omp_clause_map_kind to unsigned char.
8967         * tree-inline.c: Update comments for OpenACC changes.
8968         * tree-nested.c: Likewise.  Include "gomp-constants.h".
8969         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
8970         (convert_tramp_reference_stmt, convert_gimple_call): Update for
8971         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
8972         OMP_CLAUSE_SET_MAP_KIND.
8973         * tree-pretty-print.c: Include "gomp-constants.h".
8974         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
8975         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
8976         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
8977         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
8978         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
8979         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
8980         instead of OMP_CLAUSE_MAP_*.
8981         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
8982         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
8983         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
8984         * tree-streamer-in.c: Include "gomp-constants.h".
8985         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
8986         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
8987         * tree-streamer-out.c: Include "gomp-constants.h".
8988         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
8989         OMP_CLAUSE_MAP_*.
8990         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
8991         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
8992         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
8993         * tree.c (omp_clause_num_ops): Update accordingly.
8994         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
8995         Likewise.
8996         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
8997         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
8998         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
8999         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
9000         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
9001         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
9002         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
9003         (OMP_CLAUSE_SET_MAP_KIND): New macro.
9004         * varpool.c (varpool_node::get_create): Consider flag_openacc next
9005         to flag_openmp.
9006         * config/i386/intelmic-offload.h: New file.
9007         * config/nvptx/offload.h: Likewise.
9009 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9011         * explow.h: Remove duplicate contents.
9012         * dojump.h: Likewise.
9014 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
9016         * arm.c (arm_xgene_tune): Add default initializer for instruction
9017         fusion.
9019 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
9021         PR ipa/64068
9022         PR ipa/64559
9023         * ipa.c (symbol_table::remove_unreachable_nodes):
9024         Do not put abstract origins into boundary.
9026 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
9028         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
9029         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
9031 2015-01-15  Steve Ellcey  <sellcey@mips.com>
9033         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
9034         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
9035         builtins.def, and chkp-builtins.def.
9037 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
9039         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
9040         ISA 2.7 (POWER8).
9042 2015-01-15  Richard Biener  <rguenther@suse.de>
9044         PR tree-optimization/61743
9045         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
9046         information on PHIs for some simple cases.
9048 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9050         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
9051         Include xgene1.md.
9052         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
9053         * config/arm/arm-cores.def (xgene1): New entry.
9054         * config/arm/arm-tables.opt: Regenerate.
9055         * config/arm/arm-tune.md: Regenerate.
9056         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
9058 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
9060         * tree-if-conv.c: Include hash-map.h.
9061         (aggressive_if_conv): New variable.
9062         (fold_build_cond_expr): Add simplification of non-zero condition.
9063         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
9064         destination block is not always executed.
9065         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
9066         than two predecessors if AGGRESSIVE_IF_CONV is true.
9067         (if_convertible_stmt_p): Fix commentary.
9068         (all_preds_critical_p): New function.
9069         (has_pred_critical_p): New function.
9070         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
9071         BB can have more than two predecessors and all incoming edges can be
9072         critical.
9073         (predicate_bbs): Skip predication for loop exit block, use build2_loc
9074         to compute predicate for true edge.
9075         (find_phi_replacement_condition): Delete this function.
9076         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
9077         Allow interchange PHI arguments if EXTENDED is false.
9078         Change check that block containing reduction statement candidate
9079         is predecessor of phi-block since phi may have more than two arguments.
9080         (phi_args_hash_traits): New helper structure.
9081         (struct phi_args_hash_traits): New type.
9082         (phi_args_hash_traits::hash): New function.
9083         (phi_args_hash_traits::equal_keys): New function.
9084         (gen_phi_arg_condition): New function.
9085         (predicate_scalar_phi): Add handling of phi nodes with more than two
9086         arguments, delete COND and TRUE_BB arguments, insert body of
9087         find_phi_replacement_condition to predicate ordinary phi nodes.
9088         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
9089         delete call of find_phi_replacement_condition and invoke
9090         predicate_scalar_phi with two arguments.
9091         (insert_gimplified_predicates): Add assert that non-predicated block
9092         don't have statements to insert.
9093         (ifcvt_split_critical_edges): New function.
9094         (ifcvt_split_def_stmt): Likewise.
9095         (ifcvt_walk_pattern_tree): Likewise.
9096         (stmt_is_root_of_bool_pattern): Likewise.
9097         (ifcvt_repair_bool_pattern): Likewise.
9098         (ifcvt_local_dce): Likewise.
9099         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
9100         is copy of inner or outer loop force_vectorize field, invoke
9101         ifcvt_split_critical_edges, ifcvt_local_dce and
9102         ifcvt_repair_bool_pattern for aggressive if-conversion.
9104 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
9106         * config/aarch64/aarch64.md: Include xgene1.md.
9107         * config/aarch64/xgene1.md: New file.
9109 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9111         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
9112         xgene1 (APM XGene-1) core definition.
9113         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
9114         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
9115         * doc/invoke.texi: Document -mcpu=xgene1.
9117 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9119         * dojump.h: New header file.
9120         * explow.h: Likewise.
9121         * expr.h: Remove includes.
9122         Move expmed.c prototypes to expmed.h.
9123         Move dojump.c prototypes to dojump.h.
9124         Move alias.c prototypes to alias.h.
9125         Move explow.c prototypes to explow.h.
9126         Move calls.c prototypes to calls.h.
9127         Move emit-rtl.c prototypes to emit-rtl.h.
9128         Move varasm.c prototypes to varasm.h.
9129         Move stmt.c prototypes to stmt.h.
9130         (saved_pending_stack_adjust): Move to dojump.h.
9131         (adjust_address): Move to explow.h.
9132         (adjust_address_nv): Move to emit-rtl.h.
9133         (adjust_bitfield_address): Likewise.
9134         (adjust_bitfield_address_size): Likewise.
9135         (adjust_bitfield_address_nv): Likewise.
9136         (adjust_automodify_address_nv): Likewise.
9137         * explow.c (expr_size): Move to expr.c.
9138         (int_expr_size): Likewise.
9139         (tree_expr_size): Likewise.
9140         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9141         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
9142         * genemit.c (main): Generate includes statistics.h, real.h,
9143         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
9144         stmt.h.
9145         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
9146         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
9147         explow.h, emit-rtl.h, stmt.h.
9148         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
9149         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
9150         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
9151         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
9152         emit-rtl.h, varasm.h, stmt.h.
9153         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
9154         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
9155         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
9156         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
9157         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
9158         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
9159         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
9160         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
9161         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
9162         tm.h tree.h varasm.h vec.h wide-int.h.
9163         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9164         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
9165         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
9166         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
9167         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
9168         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
9169         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
9170         * loop-iv.c: Likewise.
9171         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
9172         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
9173         statistics.h stmt.h tree.h varasm.h wide-int.h.
9174         * lra-constraints.c: Likewise.
9175         * lra-eliminations.c: Likewise.
9176         * lra-lives.c: Likewise.
9177         * lra-remat.c: Likewise.
9178         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9179         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
9180         statistics.h stmt.h tree.h varasm.h wide-int.h.
9181         * hw-doloop.c: Likewise.
9182         * ira-color.c: Likewise.
9183         * ira-emit.c: Likewise.
9184         * loop-doloop.c: Likewise.
9185         * loop-invariant.c: Likewise.
9186         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9187         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
9188         statistics.h stmt.h tree.h varasm.h wide-int.h.
9189         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
9190         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
9191         statistics.h stmt.h tree.h varasm.h wide-int.h.
9192         * combine-stack-adj.c: Likewise.
9193         * cse.c: Likewise.
9194         * ddg.c: Likewise.
9195         * ifcvt.c: Likewise.
9196         * ira-costs.c: Likewise.
9197         * jump.c: Likewise.
9198         * lra-coalesce.c: Likewise.
9199         * lra-spills.c: Likewise.
9200         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9201         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
9202         stmt.h varasm.h wide-int.h.
9203         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
9204         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
9205         varasm.h.
9206         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
9207         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
9208         statistics.h stmt.h varasm.h wide-int.h.
9209         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
9210         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
9211         varasm.h wide-int.h.
9212         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
9213         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
9214         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
9215         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
9216         statistics.h stmt.h.
9217         * config/tilepro/tilepro.c: Likewise.
9218         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
9219         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
9220         * config/pdp11/pdp11.c: Likewise.
9221         * config/xtensa/xtensa.c: Likewise.
9222         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
9223         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
9224         varasm.h.
9225         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9226         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
9227         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
9228         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9229         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
9230         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
9231         * rtl-chkp.c: Likewise.
9232         * tree-chkp-opt.c: Likewise.
9233         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
9234         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
9235         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
9236         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9237         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
9238         statistics.h stmt.h.
9239         * tree-vect-data-refs.c: Likewise.
9240         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
9241         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
9242         rtl.h statistics.h stmt.h varasm.h.
9243         * internal-fn.c: Likewise.
9244         * ipa-icf-gimple.c: Likewise.
9245         * lto-section-out.c: Likewise.
9246         * tree-data-ref.c: Likewise.
9247         * tree-nested.c: Likewise.
9248         * tree-outof-ssa.c: Likewise.
9249         * tree-predcom.c: Likewise.
9250         * tree-pretty-print.c: Likewise.
9251         * tree-scalar-evolution.c: Likewise.
9252         * tree-ssa-strlen.c: Likewise.
9253         * tree-vect-loop.c: Likewise.
9254         * tree-vect-patterns.c: Likewise.
9255         * tree-vect-slp.c: Likewise.
9256         * tree-vect-stmts.c: Likewise.
9257         * tsan.c: Likewise.
9258         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9259         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
9260         stmt.h.
9261         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
9262         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
9263         statistics.h stmt.h varasm.h.
9264         * loop-unroll.c: Likewise.
9265         * ubsan.c: Likewise.
9266         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
9267         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
9268         stmt.h varasm.h.
9269         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9270         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
9271         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
9272         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
9273         statistics.h stmt.h.
9274         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
9275         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
9276         statistics.h stmt.h varasm.h.
9277         * gimple-match-head.c: Likewise.
9278         * lto-cgraph.c: Likewise.
9279         * lto-section-in.c: Likewise.
9280         * lto-streamer-in.c: Likewise.
9281         * lto-streamer-out.c: Likewise.
9282         * tree-affine.c: Likewise.
9283         * tree-cfg.c: Likewise.
9284         * tree-cfgcleanup.c: Likewise.
9285         * tree-if-conv.c: Likewise.
9286         * tree-into-ssa.c: Likewise.
9287         * tree-ssa-alias.c: Likewise.
9288         * tree-ssa-copyrename.c: Likewise.
9289         * tree-ssa-dse.c: Likewise.
9290         * tree-ssa-forwprop.c: Likewise.
9291         * tree-ssa-live.c: Likewise.
9292         * tree-ssa-math-opts.c: Likewise.
9293         * tree-ssa-pre.c: Likewise.
9294         * tree-ssa-sccvn.c: Likewise.
9295         * tree-tailcall.c: Likewise.
9296         * tree-vect-generic.c: Likewise.
9297         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9298         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
9299         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9300         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
9301         * varasm.c: Likewise.
9302         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9303         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
9304         varasm.h.
9305         * init-regs.c: Likewise.
9306         * ira.c: Likewise.
9307         * omp-low.c: Likewise.
9308         * stack-ptr-mod.c: Likewise.
9309         * tree-ssa-reassoc.c: Likewise.
9310         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9311         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
9312         varasm.h.
9313         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9314         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
9315         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9316         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
9317         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9318         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
9319         * tree-ssa-phiopt.c: Likewise.
9320         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9321         fixed-value.h hashtab.h real.h statistics.h stmt.h.
9322         * config/fr30/fr30.c: Likewise.
9323         * config/frv/frv.c: Likewise.
9324         * expr.c: Likewise.
9325         * final.c: Likewise.
9326         * optabs.c: Likewise.
9327         * passes.c: Likewise.
9328         * simplify-rtx.c: Likewise.
9329         * stmt.c: Likewise.
9330         * toplev.c: Likewise.
9331         * var-tracking.c: Likewise.
9332         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9333         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
9334         * lower-subreg.c: Likewise.
9335         * postreload-gcse.c: Likewise.
9336         * ree.c: Likewise.
9337         * reginfo.c: Likewise.
9338         * store-motion.c: Likewise.
9339         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9340         fixed-value.h hashtab.h real.h stmt.h varasm.h.
9341         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9342         fixed-value.h hashtab.h statistics.h stmt.h.
9343         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9344         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
9345         * except.c: Likewise.
9346         * explow.c: Likewise.
9347         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9348         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
9349         varasm.h.
9350         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9351         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
9352         * tree-ssa-structalias.c: Likewise.
9353         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9354         fixed-value.h insn-config.h real.h statistics.h.
9355         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9356         fixed-value.h insn-config.h real.h statistics.h stmt.h.
9357         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9358         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
9359         * cfgbuild.c: Likewise.
9360         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9361         fixed-value.h real.h rtl.h statistics.h stmt.h.
9362         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9363         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
9364         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9365         fixed-value.h real.h statistics.h stmt.h.
9366         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
9367         fixed-value.h real.h statistics.h stmt.h varasm.h.
9368         * cprop.c: Likewise.
9369         * modulo-sched.c: Likewise.
9370         * postreload.c: Likewise.
9371         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
9372         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
9373         statistics.h stmt.h varasm.h.
9374         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
9375         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
9376         rtl.h statistics.h stmt.h varasm.h.
9377         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
9378         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
9379         varasm.h.
9380         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
9381         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
9382         varasm.h.
9383         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
9384         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
9385         varasm.h.
9386         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
9387         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
9388         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
9389         function.h real.h statistics.h stmt.h varasm.h.
9390         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
9391         insn-config.h real.h statistics.h stmt.h.
9392         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
9393         statistics.h stmt.h.
9394         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
9395         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
9396         statistics.h stmt.h varasm.h.
9397         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
9398         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
9399         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
9400         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
9401         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
9402         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
9403         statistics.h stmt.h varasm.h.
9404         * ipa-polymorphic-call.c: Likewise.
9405         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
9406         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
9407         statistics.h stmt.h.
9408         * config/c6x/c6x.c: Likewise.
9409         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
9410         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
9411         statistics.h stmt.h varasm.h.
9412         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
9413         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
9414         stmt.h varasm.h.
9415         * ipa-split.c: Likewise.
9416         * tree-eh.c: Likewise.
9417         * tree-ssa-dce.c: Likewise.
9418         * tree-ssa-loop-niter.c: Likewise.
9419         * tree-vrp.c: Likewise.
9420         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
9421         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
9422         stmt.h.
9423         * config/nds32/nds32-fp-as-gp.c: Likewise.
9424         * config/nds32/nds32-intrinsic.c: Likewise.
9425         * config/nds32/nds32-isr.c: Likewise.
9426         * config/nds32/nds32-md-auxiliary.c: Likewise.
9427         * config/nds32/nds32-memory-manipulation.c: Likewise.
9428         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9429         * config/nds32/nds32-predicates.c: Likewise.
9430         * config/nds32/nds32.c: Likewise.
9431         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
9432         fixed-value.h hashtab.h real.h statistics.h.
9433         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
9434         fixed-value.h hashtab.h real.h statistics.h stmt.h.
9435         * config/arm/arm.c: Likewise.
9436         * config/avr/avr.c: Likewise.
9437         * config/bfin/bfin.c: Likewise.
9438         * config/h8300/h8300.c: Likewise.
9439         * config/i386/i386.c: Likewise.
9440         * config/ia64/ia64.c: Likewise.
9441         * config/iq2000/iq2000.c: Likewise.
9442         * config/m32c/m32c.c: Likewise.
9443         * config/m32r/m32r.c: Likewise.
9444         * config/m68k/m68k.c: Likewise.
9445         * config/mcore/mcore.c: Likewise.
9446         * config/mep/mep.c: Likewise.
9447         * config/mips/mips.c: Likewise.
9448         * config/mn10300/mn10300.c: Likewise.
9449         * config/moxie/moxie.c: Likewise.
9450         * config/pa/pa.c: Likewise.
9451         * config/rl78/rl78.c: Likewise.
9452         * config/rx/rx.c: Likewise.
9453         * config/s390/s390.c: Likewise.
9454         * config/sh/sh.c: Likewise.
9455         * config/sparc/sparc.c: Likewise.
9456         * config/spu/spu.c: Likewise.
9457         * config/stormy16/stormy16.c: Likewise.
9458         * config/v850/v850.c: Likewise.
9459         * config/vax/vax.c: Likewise.
9460         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
9461         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
9462         * config/msp430/msp430.c: Likewise.
9463         * predict.c: Likewise.
9464         * value-prof.c: Likewise.
9465         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
9466         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
9467         * config/microblaze/microblaze.c: Likewise.
9468         * config/nios2/nios2.c: Likewise.
9469         * config/rs6000/rs6000.c: Likewise.
9470         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
9471         insn-config.h real.h rtl.h statistics.h stmt.h.
9472         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
9473         insn-config.h real.h statistics.h stmt.h.
9474         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
9475         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
9476         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
9477         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
9478         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
9479         fixed-value.h real.h statistics.h stmt.h.
9480         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
9481         fixed-value.h statistics.h stmt.h.
9482         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
9483         stmt.h.
9485 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
9487         * gengtype.c (create_user_defined_type): Workaround
9488         -Wmaybe-uninitialized false positives.
9489         * cse.c (fold_rtx): Likewise.
9490         * loop-invariant.c (gain_for_invariant): Likewise.
9492 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9494         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
9495         set the memory attributes in all cases but clear MEM_EXPR if need be.
9497 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
9499         PR tree-optimization/64434
9500         * cfgexpand.c (reorder_operands): New function.
9501         (expand_gimple_basic_block): Insert call of reorder_operands if
9502         optimized is true.
9504 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
9506         * config/mips/micromips.md (*swp): Remove explicit parallel.
9507         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
9508         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
9509         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
9510         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
9511         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
9512         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
9513         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
9514         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
9515         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
9516         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
9517         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
9518         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
9519         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
9520         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
9521         (mips_wrdsp): Likewise.
9522         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
9523         parallel.
9524         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
9525         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
9526         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
9527         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
9528         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
9529         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
9530         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
9531         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
9532         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
9534 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
9536         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
9537         (mips_print_operand): Support 'y' to print exact log2 in decimal
9538         of a const_int.
9539         * config/mips/mips.h (ISA_HAS_LSA): New define.
9540         (ISA_HAS_DLSA): Likewise.
9541         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
9542         * config/mips/predicates.md (const_immlsa_operand): New predicate.
9544 2015-01-15  Martin Liska  <mliska@suse.cz>
9546         PR target/64377
9547         * optc-save-gen.awk: Add support for array types.
9549 2015-01-15  Richard Biener  <rguenther@suse.de>
9551         PR middle-end/64365
9552         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
9553         for MEM_REF access functions with the same base can never partially
9554         overlap.
9556 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
9558         * common.opt: New option -fstack-protector-explicit.
9559         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
9560         (stack_protect_decl_phase): Handle stack_protect attribute for
9561         explicit stack protection requests.
9562         (expand_used_vars): Similarly.
9563         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
9564         * doc/extend.texi: Add documentation for "stack_protect" attribute.
9565         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
9567 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
9569         PR target/53988
9570         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
9571         reg-reg copies.
9572         (sh_extending_set_of_reg): New struct.
9573         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
9574         sh_remove_reg_dead_or_unused_notes): New Declarations.
9575         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
9576         sh_find_extending_set_of_reg, sh_split_tst_subregs,
9577         sh_extending_set_of_reg::use_as_extended_reg): New functions.
9578         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
9579         convert to insn_and_split and use new function sh_split_tst_subregs.
9581 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
9583         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
9584         option.
9585         (Optimization Options): Move -fuse-ld documentation to...
9586         (Link Options): ...here.
9588 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
9590         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
9591         offsets.
9592         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
9593         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
9594         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
9595         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
9596         instead of ZR for the memory operand of LL/SC.
9597         (compare_and_swap_12, sync_add<mode>): Likewise.
9598         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
9599         (sync_new_<optab>_12, sync_nand_12): Likewise.
9600         (sync_old_nand_12, sync_new_nand_12): Likewise.
9601         (sync_sub<mode>, sync_old_add<mode>): Likewise.
9602         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
9603         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
9604         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
9605         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
9606         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
9607         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
9608         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
9609         * doc/md.texi (ZC): Update description.
9611 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
9613         * builtins.c (expand_builtin_atomic_exchange): Remove error when
9614         memory model is CONSUME.
9615         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
9616         expand_builtin_atomic_store): Change invalid memory model errors to
9617         warnings.
9618         (expand_builtin_atomic_clear): Change invalid model errors to warnings
9619         and issue warning for CONSUME.
9621 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
9623         * lto-cgraph: Update function comments for
9624         lto_symtab_encoder_encode_*.
9626 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
9628         * Makefile.in (site.exp): Do not set ENABLE_LTO.
9630 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
9632         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
9633         * lto-cgraph.c (select_what_to_stream): Remove argument, use
9634         lto_stream_offload_p instead.
9635         * lto-streamer.h (select_what_to_stream): Remove argument.
9636         * passes.c (ipa_write_summaries): Likewise.
9637         * tree-pass.h (ipa_write_summaries): Likewise.
9639 2015-01-14  Richard Biener  <rguenther@suse.de>
9641         PR tree-optimization/59354
9642         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
9643         groups larger than the slp group size as having gaps.
9645 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
9647         PR middle-end/59448
9648         * builtins.c (get_memmodel): Promote consume to acquire always.
9650 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
9652         PR target/64386
9653         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
9654         V32HImode.
9656 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
9658         PR target/64393
9659         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
9660         Enable AVX512BW.
9661         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
9662         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
9663         AVX512VBMI, as it implies AVX512BW.
9665 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
9667         PR target/64387
9668         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
9669         (vec_unpacks_hi_v16sf): Ditto.
9671 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9673         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
9674         is not available.
9676 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9678         * doc/invoke.texi (mapcs): Mention deprecation.
9679         (mapcs-frame): Likewise.
9681 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9683         PR target/64453
9684         * config/arm/arm.c (callee_saved_reg_p): Define.
9685         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
9686         register is callee saved instead of !call_used_regs[reg].
9687         (thumb1_compute_save_reg_mask): Likewise.
9689 2015-01-14  Hale Wang  <hale.wang@arm.com>
9691         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
9692         Cortex-M7.
9694 2015-01-14  Richard Biener  <rguenther@suse.de>
9696         PR lto/64415
9697         * tree-inline.c (insert_debug_decl_map): Check destination
9698         function MAY_HAVE_DEBUG_STMTS.
9699         (insert_init_debug_bind): Likewise.
9700         (insert_init_stmt): Remove redundant check.
9701         (remap_gimple_stmt): Drop debug stmts if the destination
9702         function has var-tracking assignments disabled.
9704 2015-01-14  Martin Liska  <mliska@suse.cz>
9706         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
9707         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
9709 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9711         PR target/64460
9712         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
9713         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
9715 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
9717         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
9718         level from an ARCH; do not inject the default.
9719         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
9720         MIPS_ISA_LEVEL_SPEC.
9721         (MIPS_ISA_NAN2008_SPEC): Update comment.
9722         (BASE_DRIVER_SELF_SPECS): Likewise.
9723         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
9724         MIPS_DEFAULT_ISA_LEVEL_SPEC.
9725         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
9726         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
9727         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
9729 2015-01-14  Richard Biener  <rguenther@suse.de>
9731         PR tree-optimization/64493
9732         PR tree-optimization/64495
9733         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
9734         assign the proper vectorized PHI to the inner loop exit PHIs.
9736 2015-01-14  Joey Ye  <joey.ye@arm.com>
9738         * config/arm/arm.c (arm_compute_save_reg_mask):
9739         Do not save lr in case of tail call.
9740         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
9742 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
9744         * tree-vrp.c (check_array_ref): Emit more warnings
9745         for warn_array_bounds >= 2.
9746         * common.opt: New option -Warray-bounds=.
9747         * doc/invoke.texi: Document -Warray-bounds=.
9749 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
9751         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
9752         (mforbid-fp-as-gp): Remove.
9753         (mex9): Remove.
9754         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
9755         (nds32_symbol_load_store_p): Remove.
9756         (nds32_fp_as_gp_check_available): Clean up implementation.
9757         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
9758         cases.
9759         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
9760         fp-as-gp and ex9 cases.
9762 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
9764         * tree-profile.c (init_ic_make_global_vars): Drop workaround
9765         for bintuils bug 14342.
9766         (init_ic_make_global_vars): Likewise.
9767         (gimple_init_edge_profiler): Likewise.
9768         (gimple_gen_ic_func_profiler): Likewise.
9770 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9772         * ipa-inline.c (inline_small_functions): Swap the operands in
9773         enum.
9775 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
9777         PR ipa/64481
9778         * ipa-inline-analysis.c (node_growth_cache): Remove.
9779         (initialize_growth_caches): Do not initialize it.
9780         (free_growth_caches): Do not free it.
9781         (do_estimate_growth): Rename to ...
9782         (estimate_growth): ... this one; drop growth cache code.
9783         (growth_likely_positive): Always go the heuristics way.
9784         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
9785         (reset_edge_caches): Do not reset node growth.
9786         (heap_edge_removal_hook): Do not maintain cache.
9787         (inline_small_functions): Likewise; strenghten sanity check.
9788         (ipa_inline): Do not maintain caches.
9789         * ipa-inline.h (node_growth_cache): Remove.
9790         (do_estimate_growth): Remove to ...
9791         (estimate_growth): this one; remove inline version.
9792         (reset_node_growth_cache): Remove.
9794 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
9796         PR ipa/64565
9797         * ipa-inline.c (inline_small_functions): Update callee keys after
9798         resolving speculation
9799         (inline_small_functions): Always check monotonicity of the queue.
9801 2015-01-13  Marek Polacek  <polacek@redhat.com>
9803         PR middle-end/64391
9804         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
9806 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
9808         PR rtl-optimization/64286
9809         * ree.c (combine_reaching_defs): Move part of comment earlier,
9810         remove !SCALAR_INT_MODE_P check.
9811         (add_removable_extension): Don't add vector mode
9812         extensions if all uses of the source register aren't the same
9813         vector extensions.
9815 2015-01-13  Renlin Li  <renlin.li@arm.com>
9817         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
9818         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
9820 2015-01-13  Martin Liska  <mliska@suse.cz>
9822         * ipa-icf.c (sem_function::equals_private): Call new functions
9823         cl_target_option_print_diff and cl_optimization_print_diff.
9824         * optc-save-gen.awk (cl_target_option_print_diff): New function.
9825         (cl_optimization_print_diff): Likewise.
9826         * opth-gen.awk: Likewise.
9828 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
9830         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
9831         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
9832         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
9833         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
9834         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
9835         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
9837 2015-01-13  Andrew Pinski  <apinski@cavium.com>
9839         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
9840         instead of src mode.
9842 2015-01-13  Richard Biener  <rguenther@suse.de>
9844         PR lto/64373
9845         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
9846         DECL_CONTEXT.
9848 2015-01-13  Andrew Pinski  <apinski@cavium.com>
9850         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
9851         volatile mems.
9852         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
9854 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
9856         PR middle-end/63974
9857         * cfgexpand.c (expand_computed_goto): Don't call
9858         convert_memory_address here.
9860 2015-01-13  Richard Biener  <rguenther@suse.de>
9862         PR tree-optimization/64406
9863         * tree-loop-distibution.c (pass_loop_distribution::execute):
9864         Reset the SCEV hashtable if we distributed anything.
9866 2015-01-13  Richard Biener  <rguenther@suse.de>
9868         PR tree-optimization/64404
9869         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
9870         SLP types for CSEd loads.
9872 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9874         PR tree-optimization/64436
9875         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
9876         merge of two symbolic numbers for a bitwise OR to ...
9877         (perform_symbolic_merge): This. Also fix computation of the range and
9878         end of the symbolic number corresponding to the result of a bitwise OR.
9880 2015-01-13  Richard Biener  <rguenther@suse.de>
9882         PR tree-optimization/64568
9883         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
9884         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
9886 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9888         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
9889         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
9891 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9893         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
9894         target-specific symbol_ref flag.
9895         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
9896         resides in rodata section.
9897         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
9898         (nds32_encode_section_info): New function.
9900 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9902         * config/nds32/nds32.md (call): Use pseudo instruction bal which
9903         clobbers TA_REGNUM if large code model is specified.
9904         (call_register): Likewise.
9905         (call_immediate): Likewise.
9906         (call_value): Likewise.
9907         (call_value_register): Likewise.
9908         (call_value_immediate): Likewise.
9910 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9912         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
9913         (TARGET_CMODEL_MEDIUM): New macro.
9914         (TARGET_CMODEL_LARGE): New macro.
9915         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
9916         code model setting in assembly code.
9918 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9920         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
9921         Remove MASK_GP_DIRECT flag.
9922         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
9923         one of the multilib default options.
9924         * config/nds32/nds32.opt (mgp-direct): Remove.
9925         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
9926         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
9928 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
9930         * config/nds32/nds32.opt (mcmodel): Add new option.
9931         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
9932         to describe code model.
9934 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
9936         PR target/64479
9937         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
9939 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9941         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
9942         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
9943         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
9944         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
9945         __builtin_sh_set_fpscr.
9947 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9949         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
9950         after a funtion name just to indicate it is a function.
9951         ([-fsanitize-undefined-trap-on-error]): Likewise.
9952         ([-fdbg-cnt=]): Likewise.
9953         ([-mmemcpy]): Likewise.
9954         ([-mflush-func]): Likewise.
9955         ([-msynci]): Likewise.
9957 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9959         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
9960         example.
9962 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
9964         PR tree-optimization/64563
9965         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
9966         instead of != VR_VARYING.
9968         PR target/64513
9969         * config/i386/i386.c (ix86_expand_prologue): Add
9970         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
9972         PR tree-optimization/64454
9973         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
9974         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
9975         for signed or [0, op1 - 1] for unsigned modulo.
9976         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
9977         even if op1 does not satisfy integer_pow2p.
9979         PR other/64370
9980         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
9982 2015-01-12  Jeff Law  <law@redhat.com>
9984         PR target/64461
9985         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
9986         (trunchiqi2, truncsihi2): Similarly.
9988         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
9989         rather than calling F.
9991 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9993         * tsan.c (instrument_expr): Use force_gimple_operand.
9994         Use may_be_nonaddressable_p instead of is_gimple_addressable.
9996 2015-01-12  Richard Biener  <rguenther@suse.de>
9998         PR tree-optimization/64530
9999         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
10000         back dr1.
10002 2015-01-12  Richard Biener  <rguenther@suse.de>
10004         PR middle-end/64357
10005         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
10006         latches properly.
10008 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10010         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
10011         Cortex-A17 tuning parameters.
10012         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
10014 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10016         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
10017         * config/arm/arm.c (arm_macro_fusion_p): New function.
10018         (arm_macro_fusion_pair_p): Likewise.
10019         (TARGET_SCHED_MACRO_FUSION_P): Define.
10020         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
10021         (ARM_FUSE_NOTHING): Likewise.
10022         (ARM_FUSE_MOVW_MOVT): Likewise.
10023         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
10024         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
10025         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
10026         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
10027         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
10028         arm_cortex_a5_tune): Specify fuseable_ops value.
10030 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
10032         PR bootstrap/64561
10033         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
10034         test for PIE with copy reloc.
10035         * configure: Regenerated.
10037 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10039         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
10040         in gen_rtx_REG.
10041         (arm_tls_descseq_addr): Likewise.
10042         (arm_gen_movmemqi): Likewise.
10043         (arm_expand_epilogue_apcs_frame): Likewise.
10044         (arm_expand_epilogue): Likewise.
10045         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
10046         in gen_rtx_REG.
10048 2015-01-12  Martin Liska  <mliska@suse.cz>
10050         PR ipa/64550
10051         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
10052         volatility for correct operands.
10054 2015-01-12  Martin Liska  <mliska@suse.cz>
10056         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
10057         that a function is not leaf.
10058         (sem_function::compare_polymorphic_p): Likewise.
10060 2015-01-12  Martin Liska  <mliska@suse.cz>
10062         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
10063         that a function is not leaf.
10064         (sem_function::compare_polymorphic_p): Likewise.
10066 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10068         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
10069         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
10070         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
10071         fold-const.h, tree-check.h.
10073 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
10075         PR ipa/63967
10076         PR ipa/64425
10077         * ipa-inline.c (compute_uninlined_call_time,
10078         compute_inlined_call_time): Use counts for extra precision when
10079         needed possible.
10080         (big_speedup_p): Fix formating.
10081         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
10082         (relative_time_benefit): Remove.
10083         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
10084         merge guessed and read profile paths.
10085         (inline_small_functions): Count only !optimize_size functions into
10086         initial size; be more lax about sanity check when profile is used;
10087         be sure to update inlined function profile when profile is read.
10089 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
10091         PR ipa/63470
10092         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
10093         cost when edge becomes direct.
10094         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
10095         is resolved or when introducing new speculation.
10097 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
10099         PR ipa/64551
10100         PR ipa/64552
10101         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
10102         '||' to fix typo issue.
10104         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
10105         accept and return NULL.
10107 2015-01-12  Martin Liska  <mliska@suse.cz>
10109         * cgraph.c (cgraph_edge::remove_callee): Move function to header
10110         file for being inlined.
10111         (cgraph_set_edge_callee): Delete.
10112         (cgraph_edge::redirect_callee): Move function to header file
10113         for being inlined.
10114         (cgraph_edge::make_direct): Use new function.
10115         (cgraph_edge::dump_edge_flags): New function created from
10116         static dump_edge_flags function.
10117         (cgraph_node::dump): Use new function.
10118         (cgraph_edge::verify_count_and_frequency): New function created
10119         from verify_edge_count_and_frequency.
10120         (cgraph_edge::verify_corresponds_to_fndecl): New function created
10121         from verify_edge_corresponds_to_fndecl.
10122         (verify_edge_corresponds_to_fndecl): Delete.
10123         (cgraph_node::verify_node): Use new function.
10124         * cgraph.h (cgraph_edge::set_callee): New function.
10125         (cgraph_edge::dump_edge_flags): Likewise.
10126         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
10128 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
10130         * ipa-utils.c (estimate_function_body_sizes): Do not
10131         free node params when called late with early=true.
10133 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
10135         * doc/md.texi (Instruction Patterns): Rewrite text for
10136         clarity.
10137         (Example): Likewise.
10139 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
10141         * doc/invoke.texi (Option Summary): Break long lines.
10142         [(-fdiagnostics-color)]: Put long literal in @smallexample
10143         instead of inline.
10144         [(-fsanitize-recover)]: Likewise.
10145         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
10146         [(-ffast-math)]: Likewise.
10147         [(--param max-inline-insns-recursive)]: Likewise.
10148         [(--param max-inline-recursive-depth)]: Likewise.
10149         [(-mno-text-section-literals)]: Likewise.
10151 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
10153         * doc/install.texi: Update for libgomp being renamed from "GNU
10154         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
10155         Runtime Library".
10156         * doc/sourcebuild.texi: Likewise.
10158 2015-01-10  Anthony Green  <green@moxielogic.com>
10160         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
10161         mul.x availability for moxiebox configuration.
10163 2015-01-09  Anthony Green  <green@moxielogic.com>
10165         * config/moxie/moxie.md: Tabify assembly output.
10167 2015-01-09  Anthony Green  <green@moxielogic.com>
10169         * config/moxie/moxie.md (CC_REG): Correct register definition.
10171 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
10173         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
10174         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
10175         of log files.
10177 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
10179         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
10181 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
10182             Jakub Jelinek  <jakub@redhat.com>
10184         PR middle-end/64412
10185         * lto-streamer.h (lto_stream_offload_p): New declaration.
10186         * lto-streamer.c (lto_stream_offload_p): New variable.
10187         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
10188         at the same time as section_name_prefix.
10189         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
10190         if lto_stream_offload_p.
10191         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
10192         stream TREE_TARGET_OPTION if lto_stream_offload_p.
10193         (write_ts_function_decl_tree_pointers): Don't
10194         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
10195         * tree-streamer-in.c (unpack_value_fields): Don't stream
10196         TREE_TARGET_OPTION in if ACCEL_COMPILER.
10197         (lto_input_ts_function_decl_tree_pointers): Don't stream
10198         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
10199         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
10200         instead of section_name_prefix string comparisons.
10202 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
10204         PR rtl-optimization/64536
10205         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
10206         tablejumps.
10208 2015-01-09  Michael Collison  <michael.collison@linaro.org>
10210         PR tree-optimization/64322
10211         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
10212         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
10214 2015-01-09  Tom de Vries  <tom@codesourcery.com>
10216         PR rtl-optimization/64539
10217         * regcprop.c (kill_clobbered_values): Factor out of ...
10218         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
10219         instead of note_stores with kill_clobbered_value.
10221 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
10223          * ginclude/unwind-arm-common.h: Revert previous commit.
10225 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
10227         * config.gcc (arm*-*-freebsd*): New configuration.
10228         * config/arm/freebsd.h: New file.
10229         * config.host: Add extra components for arm*-*-freebsd*.
10230         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
10231         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
10233 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10235         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
10236         for -mcpu=e6500.
10237         * config/rs6000/t-rtems: Add e6500 multilibs.
10239 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10241         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
10242         MPC8540.
10244 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10246         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
10247         MULTILIB_EXCEPTIONS.
10249 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10251         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
10252         MULTILIB_EXCEPTIONS.
10254 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10256         * config/arm/t-rtems-eabi: Rename to...
10257         * config/arm/t-rtems: ...this.
10258         * config/arm/rtems-eabi.h: Rename to...
10259         * config/arm/rtems.h: ...this.
10260         * config.gcc (arm*-*-rtems*): Reflect changes above.
10262 2015-01-09  Richard Biener  <rguenther@suse.de>
10264         PR tree-optimization/64410
10265         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
10266         on the LHS.
10267         (execute_update_addresses_taken): Deal with that.
10268         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
10269         loads/stores for complex variables.
10271 2015-01-09  Martin Liska  <mliska@suse.cz>
10273         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
10274         name comparison.
10275         (func_checker::compare_memory_operand): New function.
10276         (func_checker::compare_operand): Split case to newly
10277         added functions.
10278         (func_checker::compare_cst_or_decl): New function.
10279         (func_checker::compare_gimple_call): Identify
10280         memory operands.
10281         (func_checker::compare_gimple_assign): Likewise.
10282         * ipa-icf-gimple.h: New function.
10284 2015-01-09  Martin Liska  <mliska@suse.cz>
10286         PR ipa/64503
10287         * sreal.c (sreal::dump): Change unsigned format to signed for
10288         m_exp value.
10289         (sreal::to_double): Replace exp2 with scalbln.
10291 2015-01-09  Martin Liska  <mliska@suse.cz>
10293         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
10294         * ipa-icf.c (sem_function::equals_private): Add support for target and
10295         (sem_item_optimizer::merge_classes): Remove redundant function
10296         optimization flags comparison.
10297         * tree.h (target_opts_for_fn): New function.
10299 2015-01-09  Tom de Vries  <tom@codesourcery.com>
10301         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
10303 2015-01-09  Kito Cheng  <kito@0xlab.org>
10305         PR rtl-optimization/64348
10306         * lra-constraints.c (split_reg): Fix caller-save store/restore
10307         instruction generation.
10309 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
10311         PR gcov-profile/61790
10312         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
10313         long long.  Fallback to int64_t if host doesn't have long long and
10314         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
10316 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
10318         PR tree-optimization/63989
10319         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
10320         from 1000 to 10000.
10321         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
10322         (get_stridx): If we don't have a record for certain SSA_NAME,
10323         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
10324         constant offset, call get_stridx_plus_constant.
10325         (get_stridx_plus_constant): New function.
10326         (zero_length_string): Don't use get_stridx here.
10328         PR target/55023
10329         PR middle-end/64388
10330         * dse.c (struct insn_info): Mention frame_read set also
10331         before reload for tail calls on some targets.
10332         (scan_insn): Revert 2014-12-22 change.  Set frame_read
10333         also before reload for tail calls if
10334         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
10335         instead of add_non_frame_wild_read for non-const/memset
10336         tail calls after reload.
10338 2015-01-08  Jason Merrill  <jason@redhat.com>
10340         * ubsan.c (do_ubsan_in_current_function): New.
10341         (pass_ubsan::gate): Use it.
10342         * ubsan.h: Declare it.
10343         * convert.c (convert_to_integer): Use it.
10345 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
10347         PR target/64338
10348         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
10349         compare_code when it is unconditionally overwritten afterwards.
10350         Use ix86_reverse_condition instead of reverse_condition.  Don't
10351         change code if *reverse_condition* returned UNKNOWN and don't
10352         swap ct/cf and negate diff in that case.
10354 2015-01-08  Mike Stump  <mikestump@comcast.net>
10356         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
10357         (pass_tsan_O0::gate): Likewise.
10358         * extend.texi (Function Attributes): Add no_sanitize_thread
10359         documentation.
10361 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
10363         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
10364         for registering builtins.
10365         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
10366         add -fopenmp to the argv_obstack used when invoking
10367         compile_for_target.
10369         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
10370         add "-m32" or "-m64" to argv_obstack.
10371         (generate_host_descr_file): Likewise, when invoking host_compiler.
10372         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
10373         ld.
10375 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
10377         * config/sh/sh-mem.cc: Use constant as second operand when emitting
10378         tstsi_t insns.
10380 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
10382         PR target/55212
10383         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
10384         constant load if constant operand fits into I08.
10386 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
10388         PR sanitizer/64336
10389         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
10390         and TREE_THIS_VOLATILE for MEM_REFs.
10391         (build5_stat): Fix up initialization of TREE_READONLY and
10392         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
10394 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10396         PR target/64533
10397         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
10398         of r for the second alternative of the destination operand.
10400 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
10402         PR target/36557
10403         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
10405 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
10407         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
10408         keywords.
10409         ([-fivar-visibility], [-fvisibility]): Likewise.
10411 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
10413         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
10414         the file where @code, @command, etc is more appropriate.
10416 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
10418         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
10419         of -mrecip= documentation.
10421 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
10423         PR target/64505
10424         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
10425         correct reload handler if -m32 -mpowerpc64 is used.
10427 2015-01-06  Tom de Vries  <tom@codesourcery.com>
10429         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
10431 2015-01-08  Christian Bruel  <christian.bruel@st.com>
10433         PR target/64507
10434         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
10436 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10438         PR tree-optimization/63259
10439         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
10440         if optab exists for 16bit byteswap.
10442 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
10444         * opts.c (common_handle_option): Add support for
10445         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
10446         * doc/invoke.texi: Document -fno-sanitize=all,
10447         -f{,no-}sanitize-recover=all.  Document that
10448         -fsanitize=float-cast-overflow is not enabled
10449         by -fsanitize=undefined.  Fix up documentation
10450         of -f{,no-}sanitize-recover.
10452 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
10454         * config.gcc: Add Visium support.
10455         * configure.ac: Likewise.
10456         * configure: Regenerate.
10457         * doc/extend.texi (interrupt attribute): Add Visium.
10458         * doc/invoke.texi: Document Visium options.
10459         * doc/install.texi: Document Visium target.
10460         * doc/md.texi: Document Visium constraints.
10461         * common/config/visium: New directory.
10462         * config/visium: Likewise.
10464 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
10466         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
10467         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
10469 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
10471         * combine.c (combine_validate_cost): Do not count the cost of a
10472         split I2 twice.  Do not display it twice in the dump, either.
10474 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
10476         Revert parts of r219199.
10477         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
10478         <inttypes.h>.
10479         ([-Wtraditional]): Restore markup on <limits.h>.
10481 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
10483         PR c++/31397
10484         * doc/invoke.texi: Document -Wsuggest-override.
10486 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
10488         PR rtl-optimization/64287
10489         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
10490         (process_options): Disable flag_ipa_ra if profiling.
10492 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
10494         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
10496 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
10498         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
10499         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
10500         put under #if TARGET_LOOPS guard.
10502 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
10504         * config/i386/i386.c (output_387_binary_op): Use std::swap.
10506 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
10508         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
10509         * rtl.h (refers_to_regno_p): Add overload.
10510         * cse.c: Use it.
10511         * bt-load.c: Likewise.
10512         * combine.c: Likewise.
10513         * df-scan.c: Likewise.
10514         * sched-deps.c: Likewise.
10515         * config/s390/s390.c: Likewise.
10516         * config/m32r/m32r.c: Likewise.
10517         * config/rs6000/spe.md: Likewise.
10518         * config/rs6000/rs6000.c: Likewise.
10519         * config/pa/pa.c: Likewise.
10520         * config/stormy16/stormy16.c: Likewise.
10521         * config/cris/cris.c: Likewise.
10522         * config/arc/arc.md: Likewise.
10523         * config/arc/arc.c: Likewise.
10524         * config/sh/sh.md: Likewise.
10525         * config/sh/sh.c: Likewise.
10526         * config/frv/frv.c: Likewise.
10528 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
10530         PR sanitizer/64265
10531         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
10532         call as cleanup of the whole body.
10533         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
10534         * tsan.c (replace_func_exit): New function.
10535         (instrument_func_exit): Moved earlier.
10536         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
10537         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
10538         been found.
10539         (tsan_pass): Don't call instrument_func_exit.
10540         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
10541         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
10542         inlining.
10544         PR sanitizer/64344
10545         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
10546         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
10547         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
10548         if the result is integer_zerop, return NULL_TREE.
10549         * convert.c (convert_to_integer): Pass expr as ARG.
10551         PR tree-optimization/64465
10552         * tree-inline.c (redirect_all_calls): During inlining
10553         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
10554         changed the stmt to a non-throwing call.
10556 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
10558         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
10559         etc markup throughout the file.
10561 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10563         Enable experimental TSAN support for Ada.
10564         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
10566 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
10568         PR tree-optimization/64494
10569         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
10570         clear SSA_NAME_ANTI_RANGE_P flag.
10572 2015-01-05  Marek Polacek  <polacek@redhat.com>
10574         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
10576 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
10578         Update copyright years.
10580         * gcc.c (process_command): Update copyright notice dates.
10581         * gcov-dump.c: Ditto.
10582         * gcov.c: Ditto.
10583         * doc/cpp.texi: Bump @copying's copyright year.
10584         * doc/cppinternals.texi: Ditto.
10585         * doc/gcc.texi: Ditto.
10586         * doc/gccint.texi: Ditto.
10587         * doc/gcov.texi: Ditto.
10588         * doc/install.texi: Ditto.
10589         * doc/invoke.texi: Ditto.
10591         * auto-profile.c, auto-profile.h: Fix up Copyright line.
10593 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
10595         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
10596         verb tense, etc.
10597         ([-fvtable-verify], [-fvtv-debug]): Likewise.
10598         ([-Wabi]): Likewise.
10599         ([-fmessage-length]): Likewise.
10600         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
10601         ([-Wno-discarded-qualifiers]): Likewise.
10602         ([-Wnodiscarded-array-qualifiers]): Likewise.
10603         ([-Wno-virtual-move-assign]): Likewise.
10604         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
10605         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
10606         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
10607         ([-fsanitize-undefined-trap-on-error]): Likewise.
10608         ([-floop-interchange]): Likewise.
10609         ([-ftree-coalesce-inlined-vars]): Likewise.
10610         ([-fvect-cost-model]): Likewise.
10611         ([-flto]): Likewise.
10612         ([--param]): Likewise.
10613         (Spec Files): Likewise.
10614         ([-mstrict-align]): Likewise.
10615         ([-mfix-cortex-a53-835769]): Likewise.
10616         ([-march], [-mtune]): Likewise.
10617         ([-mpic-register]): Likewise.
10618         ([-munaligned-access]): Likewise.
10619         ([-msp8]): Likewise.
10620         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
10621         (AVR Built-in Macros): Likewise.
10622         ([-mpreferred-stack-boundary]): Likewise.
10623         ([-mtune-crtl]): Likewise.
10624         ([-mashf]): Likewise.
10625         ([-mmcu=]): Likewise.
10626         ([-minrt]): Likewise.
10627         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
10628         ([-mupper-regs]): Likewise.
10629         ([-matomic-model]): Likewise.
10630         ([-mdiv]): Likewise.
10631         ([-mzdcbranch]): Likewise.
10632         ([-mdisable-callt]): Likewise.
10633         ([-msoft-float]): Likewise.
10634         ([-m8byte-align]): Likewise.
10635         ([-fstack-reuse]): Likewise.
10637 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
10639         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
10640         Fix markup, light copy-editing.
10641         ([-fauto-profile]): Rewrite to fix formatting and content
10642         problems.
10644 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
10646         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
10647         Copy-edit description.
10648         ([-fisolate-erroneous-paths-attribute]): Likewise.
10649         * common.opt (fisolate-erroneous-paths-dereference):
10650         Copy-edit description.
10651         (fisolate-erroneous-paths-attribute): Likewise.
10653 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
10655         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
10656         tidy grammar.
10658 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
10660         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
10661         ([-fvtv-debug]): Likewise.
10662         ([-Wc++-compat]): Likewise.
10663         ([-Wc++11-compat]): Likewise.
10664         ([-Wc++14-compat]): Likewise.
10665         ([-Wno-sized-deallocation]): Likewise.
10666         ([-femit-class-debug-always]): Likewise.
10667         ([-femit-struct-debug-detailed]): Likewise.
10668         ([-fno-keep-inline-dllexport]): Likewise.
10669         ([-fira-algorithm]): Likewise.
10670         ([-fira-region]): Likewise.
10671         ([-flra-remat]): Likewise.
10672         ([-fipa-ra]): Likewise.
10673         ([-fhoist-adjacent-loads]): Likewise.
10674         ([-fisolate-erroneous-paths-dereference]): Likewise.
10675         ([-fisolate-erroneous-paths-attribute]): Likewise.
10676         ([-ftree-switch-conversion]): Likewise.
10677         ([-ftree-tail-merge]): Likewise.
10678         ([-ftree-loop-if-convert]): Likewise.
10679         ([-ftree-loop-if-convert-stores]): Likewise.
10680         ([-ftree-loop-distribution]): Likewise.
10681         ([-ftree-loop-distribute-patterns]): Likewise.
10682         ([-flto-compression-level]): Likewise.
10683         ([-flto-report]): Likewise.
10684         ([-flto-report-wpa]): Likewise.
10685         ([-fuse-linker-plugin]): Likewise.
10686         ([-mfix-cortex-a53-835769]): Likewise.
10687         ([-mno-fix-cortex-a53-835769]): Likewise.
10688         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
10689         explicit listing; add a note to the discussion indicating they
10690         exist.  Reorder table to group similar options.  Add missing
10691         @opindex entries.  Add @need commands throughout the table to
10692         allow it to be split across multiple pages.
10693         ([-m8bit-idiv]): Fix @opindex.
10694         ([-mavx256-split-unaligned-load]): Likewise.
10695         ([-mavx256-split-unaligned-store]): Likewise.
10696         ([-mstack-protector-guard]): Likewise.
10697         ([-mcpu=]): Likewise.
10698         ([-mcpu]): Likewise.
10699         ([-mpointer-size=]): Likewise.
10701 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
10703         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
10704         instead of `m' constraint.  Likewise for unnamed movb comparison
10705         patterns using reg_before_reload_operand predicate.
10706         * config/pa/predicates.md (reg_before_reload_operand): Tighten
10707         predicate to reject register index and LO_SUM DLT memory forms
10708         after reload.
10710 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
10712         * doc/invoke.texi (Option Summary): Fix spelling of
10713         -fdevirtualize-at-ltrans.
10714         ([-fdevirtualize]): Fix markup.
10715         ([-fdevirtualize-speculatively]): Fix typo.
10716         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
10717         implementor-speaky.
10718         * common.opt (fdevirtualize-at-ltrans): Likewise.
10719         * ipa-devirt.c: Fix typos in comments throughout the file.
10720         (ipa_devirt): Fix typos in format strings for dump output.
10722 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
10724         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
10725         discussion of defaults, light copy-editing.
10727 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10729         * tsan.c (instrument_expr): corrected previous checkin.
10731 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10733         Instrument bit field and unaligned accesses for TSAN.
10734         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
10735         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
10736         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
10737         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
10738         unaligned memory regions.
10740 2015-01-01  Anthony Green  <green@moxielogic.com>
10742         * config/moxie/predicates.md (moxie_general_movsrc_operand):
10743         Restrict move source register offsets to 16 bits.
10745 Copyright (C) 2015 Free Software Foundation, Inc.
10747 Copying and distribution of this file, with or without modification,
10748 are permitted in any medium without royalty provided the copyright
10749 notice and this notice are preserved.