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