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