sem_function::bb_dict_test should take a vec<int> *
[official-gcc.git] / gcc / ChangeLog
blob174e5b42fdc91178f76fd3fddd7acb46af86ed47
1 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
3         * ipa-icf.c (sem_function::equals_private): Adjust.
4         (sem_function::bb_dict_test): Take a vec<int> * instead of
5         auto_vec<int>.
6         * ipa-icf.h (bb_dict_test): Likewise.
8 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
10         PR gcov-profile/64634
11         * tree-eh.c (frob_into_branch_around): Fix up typos
12         in function comment.
13         (lower_catch): Put eh_seq resulting from EH lowering of
14         the cleanup sequence after the cleanup rather than before
15         it.
17 2015-02-18  Tom de Vries  <tom@codesourcery.com>
19         * common.opt (fstdarg-opt): New option.
20         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
21         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22         (@item -fstdarg-opt): New item.
24 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26         PR target/65064
27         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28         for common symbols.
30 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
32         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33         insn-modes.h.
34         (ALL_HOST_OBJS): Add mkoffload.o.
35         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
39         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
40         (compare_virtual_tables): Be smarter about skipping typeinfos;
41         do sane output on virtual table table mismatch.
42         (warn_odr): Be ready for forward declarations of enums;
43         output sane info on base mismatch and virtual table mismatch.
44         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
45         when only one type is polymorphic.
46         (get_odr_type): Fix hashtable corruption.
47         (dump_odr_type): Dump mangled names.
49 2015-02-18  Richard Biener  <rguenther@suse.de>
51         PR tree-optimization/65063
52         * tree-predcom.c (determine_unroll_factor): Return 1 if we
53         have replaced looparound PHIs.
55 2015-02-18  Martin Liska  <mliska@suse.cz>
57         * lto-streamer.c (lto_streamer_init): Encapsulate
58         streamer_check_handled_ts_structures with checking macro.
60 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
62         PR ipa/65087
63         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
64         section if !implicit_section.
65         (cgraph_node::create_version_clone_with_body): Likewise.
66         * trans-mem.c (ipa_tm_create_version): Likewise.
68 2015-02-18  Richard Biener  <rguenther@suse.de>
70         PR tree-optimization/62217
71         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
72         into BIVs.
74 2015-02-18  Marek Polacek  <polacek@redhat.com>
76         PR sanitizer/65081
77         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
78         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
79         is in range [-16K, -1].  Don't issue run-time error if
80         (ptr > ptr + offset).
82 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
84         * doc/install.texi (nvptx-*-none): New section.
85         * doc/invoke.texi (Nvidia PTX Options): Likewise.
86         * config/nvptx/nvptx.opt: Update.
88         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
89         (access_check): New functions, copied from
90         config/i386/intelmic-mkoffload.c.
91         (main): For non-installed testing, look in all COMPILER_PATHs for
92         GCC_INSTALL_NAME.
94         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
96 2015-02-18  Andrew Pinski  <apinski@cavium.com>
97             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
99         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
100         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
102 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
104         * ipa-visibility.c (function_and_variable_visibility): Only
105         check locality if node is not already local.
106         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
107         call_for_symbol_and_aliases instead of
108         call_for_symbol_thunks_and_aliases.
109         (ipa_inline): Likewise.
110         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
111         first walk aliases.
112         * ipa.c (symbol_table::remove_unreachable_nodes): Use
113         call_for_symbol_and_aliases.
114         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
115         (ipa_propagate_frequency_1): Use it; use opt_for_fn
116         (ipa_propagate_frequency): Update.
117         (ipa_profile): Add opt_for_fn gueards.
119 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
121         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
122         * doc/invoke.texi (SH options): Document it.
123         * config/sh/sh.c (sh_insn_length_adjustment): Check
124         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
126 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
128         * common.opt (fipa-cp-alignment): New.
129         * ipa-cp.c (ipcp_store_alignment_results): Check
130         flag_ipa_cp_alignment.
131         * opts.c (default_options_table): Enable -fipa-cp-alignment for
132         -O2.
133         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
134         * doc/invoke.texi: Document -fipa-cp-alignment.
136 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
138         PR target/64793
139         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
140         to nil.  Adjust comments.
142 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
144         * ipa-visibility.c (function_and_variable_visibility): Only
145         check locality if node is not already local.
146         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
147         call_for_symbol_and_aliases instead of
148         call_for_symbol_thunks_and_aliases.
149         (ipa_inline): Likewise.
150         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
151         first walk aliases.
152         * ipa.c (symbol_table::remove_unreachable_nodes): Use
153         call_for_symbol_and_aliases.
154         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
155         (ipa_propagate_frequency_1): Use it; use opt_for_fn
156         (ipa_propagate_frequency): Update.
157         (ipa_profile): Add opt_for_fn guards.
159 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
161         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
162         skipping of "strange" tokens.
164 2015-02-17  Jeff Law  <law@redhat.com>
166         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
167         obsolete comment.
169 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
171         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
172         as forcing a HARD_DEP between instructions, thereby
173         disallowing rewriting to break dependencies.
175 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
177         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
178         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
179         variables in boundary that have no inlitalizer encoded and are
180         not aliases.
181         * varasm.c (default_binds_local_p_2): External definitions do not
182         count as definitions here.
184 2015-02-16  Jeff Law  <law@redhat.com>
186         PR tree-optimization/64823
187         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
188         statements.
189         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
190         threading through blocks with PHIs, but no statements.
191         (thread_through_normal_block): Distinguish between blocks where
192         we did not process all the statements and blocks with no statements.
194 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
195             James Greenhalgh  <james.greenhalgh@arm.com>
197         PR ipa/64963
198         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
199         section if not linkonce.  Fix up formatting.
200         (cgraph_node::create_version_clone_with_body): Copy section.
201         * trans-mem.c (ipa_tm_create_version): Likewise.
203 2015-02-16  Richard Biener  <rguenther@suse.de>
205         PR tree-optimization/65077
206         * tree-ssa-structalias.c (get_constraint_for_1): Handle
207         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
208         (find_func_aliases): Allow float values to carry pointers again.
210 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
212         * doc/install.texi (Specific): Reorder targets list to put
213         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
214         from the top menu.
216 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
217             David Edelsohn  <dje.gcc@gmail.com>
219         PR target/65058
220         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
221         mapping class to external variable or function reference.
222         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
223         mapping class.
225 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
227         PR target/53348
228         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
229         ASM_WEAKEN_DECL if defined.
231 2015-02-16  Richard Biener  <rguenther@suse.de>
233         PR lto/65015
234         * varasm.c (default_file_start): For LTO produced units
235         emit <artificial> as file directive.
237 2015-02-16  Richard Biener  <rguenther@suse.de>
239         PR tree-optimization/63593
240         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
241         stmts and releasing SSA names until...
242         (execute_pred_commoning): ... after processing all chains.
244 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
246         PR ipa/65059
247         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
248         external functions.
250 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
252         * doc/bugreport.texi: Adjust section titles throughout the file
253         to use "Title Case".
254         * doc/extend.texi: Likewise.
255         * doc/gcov.texi: Likewise.
256         * doc/implement-c.texi: Likewise.
257         * doc/implement-cxx.texi: Likewise.
258         * doc/invoke.texi: Likewise.
259         * doc/objc.texi: Likewise.
260         * doc/standards.texi: Likewise.
261         * doc/trouble.texi: Likewise.
263 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
265         * cgraph.h (symtab_node::has_aliases_p): Simplify.
266         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
267         * tree.c (lookup_binfo_at_offset): Make static.
268         (get_binfo_at_offset): Do not shadow offset; add explanatory
269         comment.
271 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
273         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
274         for all floading point loads and stores except those using a register
275         index address.
276         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
277         to a register.
279 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
281         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
282         (do_estimate_growth_1): Record if any uninlinable edge was seen.
283         (estimate_growth): Handle uninlinable edges correctly.
284         (check_callers): New.
285         (growth_likely_positive): Handle aliases correctly.
287 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
289         * ipa-chkp.c: Use iterate_direct_aliases.
290         * symtab.c (resolution_used_from_other_file_p): Move inline.
291         (symtab_node::create_reference): Fix formating.
292         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
293         (symtab_node::iterate_reference): Move inline.
294         (symtab_node::iterate_referring): Move inline.
295         (symtab_node::iterate_direct_aliases): Move inline.
296         (symtab_node::used_from_object_file_p_worker): Inline into ...
297         (symtab_node::used_from_object_file_p): ... this one; move inline.
298         (symtab_node::call_for_symbol_and_aliases): Move inline;
299         use iterate_direct_aliases.
300         (symtab_node::call_for_symbol_and_aliases_1): New method.
301         (cgraph_node::call_for_symbol_and_aliases): Move inline;
302         use iterate_direct_aliases.
303         (cgraph_node::call_for_symbol_and_aliases_1): New method.
304         (varpool_node::call_for_node_and_aliases): Rename to ...
305         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
306         use iterate_direct_aliases.
307         (varpool_node::call_for_symbol_and_aliases_1): New method.
308         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
309         (ipa_discover_readonly_nonaddressable_var): Update.
310         * ipa-devirt.c: Fix formating.
311         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
312         Move inline.
313         (cgraph_node::call_for_symbol_and_aliases): Move inline.
314         (cgraph_node::call_for_symbol_and_aliases_1): New function..
315         * cgraph.h (used_from_object_file_p_worker): Remove.
316         (resolution_used_from_other_file_p): Move inline.
317         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
318         (symtab_node::iterate_reference): Move inline.
319         (symtab_node::iterate_referring): Move inline.
320         (symtab_node::iterate_direct_aliases): Move inline.
321         (symtab_node::used_from_object_file_p_worker): Inline into ...
322         (symtab_node::used_from_object_file_p): Move inline.
323         * tree-emutls.c (ipa_lower_emutls): Update.
324         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
325         (varpool_node::call_for_node_and_aliases): Remove.
327 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
329         PR tree-optimization/62209
330         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
331         op == range->exp, insert seq and gimplified code after labels
332         instead of after the phi.
334 2015-02-13  Jeff Law  <law@redhat.com>
336         PR bootstrap/65060
337         Revert my change for tree-optimization/64823.
339 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
341         PR tree-optimization/65053
342         * tree-ssa-phiopt.c (value_replacement): When moving assign before
343         cond, either reset VR on lhs or set it to phi result VR.
345 2015-02-13  Jeff Law  <law@redhat.com>
347         PR tree-optimization/64823
348         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
349         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
350         threading through blocks with PHIs, but no statements.
351         (thread_through_normal_block): Distinguish between blocks where
352         we did not process all the statements and blocks with no statements.
354         PR rtl-optimization/47477
355         * match.pd (convert (plus/minus (convert @0) (convert @1): New
356         simplifier to narrow arithmetic.
358 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
360         PR ipa/65028
361         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
362         polymorphic call info when type is not known to be preserved.
364 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
366         PR ipa/65028
367         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
368         (inline_call): Use it.
369         
370 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
372         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
373         GOMP_DEVICE_NVIDIA_PTX.
375 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
377         PR ipa/65034
378         * stmt.c (emit_case_nodes): Use void_type_node instead of
379         NULL_TREE as LABEL_DECL type.
381 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
383         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
384         constraints.
385         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
386         symbolic references to data to be forced to constant memory on the
387         SOM target.
389 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
391         PR tree-optimization/65002
392         * tree-cfg.c (pass_data_fixup_cfg): Don't update
393         SSA on start.
394         * tree-sra.c (some_callers_have_no_vuse_p): New.
395         (ipa_early_sra): Reject functions whose callers
396         assume function is read only.
398 2015-02-13  Richard Biener  <rguenther@suse.de>
400         PR lto/65015
401         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
402         for LTO produced CUs.
404 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
406         PR tree-optimization/64705
407         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
408         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
409         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
410         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
411         expand_simple_operations.
413 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
414             Richard Henderson  <rth@redhat.com>
416         PR rtl/32219
417         * cgraphunit.c (cgraph_node::finalize_function): Set definition
418         before notice_global_symbol.
419         (varpool_node::finalize_decl): Likewise.
420         * varasm.c (default_binds_local_p_2): Rename from
421         default_binds_local_p_1, add weak_dominate argument.  Use direct
422         returns instead of assigning to local variable.  Unify varpool and
423         cgraph paths via symtab_node.  Reject undef weak variables before
424         testing visibility.  Reorder tests for simplicity.
425         (default_binds_local_p): Use default_binds_local_p_2.
426         (default_binds_local_p_1): Likewise.
427         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
428         via symtab_node.
429         (default_elf_asm_output_external): Emit visibility when specified.
431 2015-02-13  Alan Modra  <amodra@gmail.com>
433         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
434         code setting up r11 for out-of-line fp restore.
436 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
438         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
439         (muser-mode): Likewise.
441 2015-02-13  Alan Modra  <amodra@gmail.com>
443         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
444         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
446 2015-02-12  David Howells  <dhowells@redhat.com>
448         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
449         warning.
450         * tree-ssa-uninit.c (dump_predicates): Likewise.
451         * opts.c (print_filtered_help): Likewise.
453 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
455         * dwarf2out.c (output_die): Use "%s", name instead of name to
456         avoid -Wformat-security warning.
458         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
459         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
460         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
461         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
463 2015-02-12  Jason Merrill  <jason@redhat.com>
465         * common.opt (-flifetime-dse): New.
467 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
469         PR sanitizer/65019
470         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
472         PR tree-optimization/65014
473         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
474         use original second operand of arg0 or arg1 instead of
475         that adjusted by STRIP_NOPS.
477 2015-02-11  Jeff Law  <law@redhat.com>
479         PR target/63347
480         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
481         that needs to be queued, just queue it for a single cycle.
483 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
485         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
486         bodies of thunks; comment on why.
487         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
488         symbols are extern.
490 2015-02-11  Richard Henderson  <rth@redhat.com>
492         PR sanitize/65000
493         * tree-eh.c (mark_reachable_handlers): Mark source and destination
494         regions of __builtin_eh_copy_values.
496 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
498         PR middle-end/65003
499         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
500         ultimate alias is MEM with SYMBOL_REF satisfying
501         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
502         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
504 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
506         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
507         "diagnostic-core.h".
508         (main): Initialize progname, and call diagnostic_initialize.
510         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
511         instead of __OPENMP_TARGET__.
513         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
514         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
515         hard-coding PTX_ID.
517 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
519         * doc/sourcebuild.texi (pie_enabled): Document.
521 2015-02-11  Martin Liska  <mliska@suse.cz>
523         PR ipa/64813
524         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
525         a return value for call to a function that is noreturn.
527 2015-02-11  Richard Biener  <rguenther@suse.de>
529         PR lto/65015
530         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
531         and -fresolution.
533 2015-02-11  Andrew Pinski  <apinski@cavium.com>
535         PR target/64893
536         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
537         Change the first argument type to size_type_node and add another
538         size_type_node.
539         (aarch64_simd_expand_builtin): Handle the new argument to
540         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
541         print an out when the first two arguments are not
542         nonzero integer constants.
543         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
544         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
546 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
548         PR target/61925
549         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
550         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
551         (ix86_set_current_function): Rewritten.
552         (ix86_add_new_builtins): Temporarily clear current_target_pragma
553         when creating builtin fndecls.
555 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
557         PR ipa/65005
558         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
559         function.
560         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
561         have no comdat group.
562         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
563         (lto_output_varpool_node): Always output alias info.
564         (output_refs): Output refs of boundary aliases, too.
565         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
566         (output_symtab): Output call eges in thunks in boundary.
567         (get_alias_symbol): Remove.
568         (input_node, input_varpool_node): Do not special case weakrefs.
569         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
570         alias and thunks targets in the boundary; do not take removed symbols
571         from their comdat groups.
572         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
573         (cgraph_node::global_info): Remove.
574         (cgraph_node::rtl_info): Look through aliases and thunks.
575         * cgrpah.h (global_info): Remove.
576         (non_local_p): Remove.
578 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
579             Sandra Loosemore  <sandra@codesourcery.com>
581         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
582         to inline asm.  List dialects in proper order.
584 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
585             Sandra Loosemore  <sandra@codesourcery.com>
587         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
589 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
591         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
592         modified) reference to Solaris.
594 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
596         * doc/extend.texi (Extended Asm): Fix typos.
598 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
600         PR sanitizer/65004
601         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
603 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
605         PR target/64661
606         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
607         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
608         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
609         * config/sh/constraints.md (Ara, Add): New constraints.
610         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
611         predicates.
612         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
613         atomic_mem_operand_0.  Don't use force_reg on the memory address.
614         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
615         Sra constraint.  Convert to insn_and_split.  Add workaround for
616         PR 64974.
617         (atomic_compare_and_swap<mode>_hard): Copy to
618         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
619         Use atomic_mem_operand_0 predicate.
620         (atomic_compare_and_swap<mode>_soft_gusa,
621         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
622         AraAdd constraints.
623         (atomic_compare_and_swap<mode>_soft_tcb,
624         atomic_compare_and_swap<mode>_soft_imask,
625         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
626         atomic_mem_operand_0 predicate and SraSdd constraints.
627         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
628         constraint.
629         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
630         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
631         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
632         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
633         force_reg on the memory address.
634         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
635         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
636         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
637         atomic_mem_operand_1 predicate and Sra constraint.
638         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
639         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
640         Use atomic_mem_operand_1 predicate.
641         (atomic_<fetchop_name><mode>_hard): Copy to
642         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
643         Use atomic_mem_operand_1 predicate.
644         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
645         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
646         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
647         insn_and_split.  Use atomic_mem_operand_1 predicate.
648         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
649         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
650         Use atomic_mem_operand_1 predicate.
651         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
652         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
653         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
654         in generated insn with original mem operand before emitting the insn.
655         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
656         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
657         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
658         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
659         Use atomic_mem_operand_1 predicate and AraAdd constraints.
660         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
661         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
662         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
663         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
664         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
665         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
666         atomic_not_fetch<mode>_soft_tcb,
667         atomic_<fetchop_name>_fetch<mode>_soft_imask,
668         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
669         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
670         Use atomic_mem_operand_1 predicate and SraSdd constraints.
672 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
674         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
675         and 3 earlyclobber operands.
677 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
679         * common.opt (fstack-reuse): Mark as optimization.
681 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
683         PR ipa/64982
684         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
686 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
688         PR tree-optimization/64326
689         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
691 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
693         PR gcov-profile/61889
694         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
696 2015-02-10  Richard Biener  <rguenther@suse.de>
698         PR tree-optimization/64995
699         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
700         value we use is final.
701         (visit_reference_op_store): Always valueize op.
702         (visit_use): Properly valueize vuses.
704 2015-02-10  Richard Biener  <rguenther@suse.de>
706         PR tree-optimization/64909
707         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
708         pass a scalar-stmt count estimate to the cost model.
709         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
711 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
713         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
714         enabled by default together with var-tracking.
716 2015-02-10  Nick Clifton  <nickc@redhat.com>
718         * config/rl78/rl78.c: Remove DIV attribute code accidentally
719         included in previous rl78 commit.
721 2015-02-10  Richard Biener  <rguenther@suse.de>
723         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
724         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
725         return the bitpack.
727 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
729         PR gcov-profile/61889
730         * config.in: regenerate.
731         * configure.in: Likewise.
732         * configure.ac: Check for ftw.h.
733         * gcov-tool.c: Check for ftw.h before using nftw.
735 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
737         PR lto/64076
738         * ipa-visibility.c (update_visibility_by_resolution_info): Only
739         assert when not in lto mode.
741 2015-02-09  Zhouyi Zhou   <yizhouzhou@ict.ac.cn>
743         * ira-color.c (setup_left_conflict_sizes_p): Simplify
744         initialization/assignment of conflict_size.
746 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
748         PR ipa/64978
749         * ipa-cp.c (gather_caller_stats): Skip thunks.
750         (propagate_constants_topo): Skip aliases.
752 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
754         PR target/64761
755         * config/sh/sh.c (sh_option_override): Don't change
756         -freorder-blocks-and-partition to -freorder-blocks even when
757         unwinding is enabled.
758         (sh_can_follow_jump): Return false if the followee jump is
759         a crossing jump when -freorder-blocks-and-partition is specified.
760         * config/sh/sh.md (*jump_compact_crossing): New insn.
762 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
763             Kaz Kojima  <kkojima@gcc.gnu.org>
765         PR target/64761
766         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
767         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
768         (sh_can_redirect_branch): Rename to ...
769         (sh_can_follow_jump): ... this.  Constify argument types.
770         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
771         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
772         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
773         * doc/tm.texi: Regenerate.
775 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
777         PR sanitizer/64981
778         * builtins.c (expand_builtin): Call targetm.expand_builtin
779         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
781 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
783         PR ipa/61548
784         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
786 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
788         PR ipa/63566
789         * ipa-icf.c (set_local): New function.
790         (sem_function::merge): Use it.
792 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
794         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
795         (add_type_duplicate): Fix comparison of BINFOs.
797 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
799         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
800         on getting VOID pointer.
802 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
804         PR target/64979
805         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
806         va_list escapes.
808 2015-02-09  Richard Biener  <rguenther@suse.de>
810         * genmatch.c (replace_id): Copy expr_type.
812 2015-02-09  Richard Biener  <rguenther@suse.de>
814         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
815         (streamer_write_tree_bitfields): Declare.
816         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
817         properly unpack padding.
818         (unpack_value_fields): Inline ...
819         (streamer_read_tree_bitfields): ... here.
820         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
821         and properly add padding bits.
822         (streamer_pack_tree_bitfields): Fold into ...
823         (streamer_write_tree_bitfields): ... this new function,
824         exposing the bitpack object.
825         * lto-streamer-out.c (lto_write_tree_1): Call
826         streamer_write_tree_bitfields.
828 2015-02-09  Richard Biener  <rguenther@suse.de>
830         PR tree-optimization/54000
831         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
832         (struct ivopts_data): Add loop_loc member.
833         (tree_ssa_iv_optimize_loop): Dump loop location.
834         (create_new_ivs): Likewise, also dump number of IVs generated.
836 2015-02-09  Martin Liska  <mliska@suse.cz>
838         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
839         just if not yet registered.
840         (ipa_icf_generate_summary): Register callgraph hooks.
842 2015-02-08  Andrew Pinski  <apinski@cavium.com>
844         * config/aarch64/aarch64.c (gty_dummy): Delete.
846 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
848         PR ipa/63566
849         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
850         (cgraph_node::local_p): Remove thunk related FIXME.
852 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
854         PR ipa/63566
855         * i386.c (ix86_function_regparm): Look through aliases to see if callee
856         is local and optimized.
857         (ix86_function_sseregparm): Likewise; also use target's SSE math
858         settings; error out instead of silently generating wrong code
859         on mismatches.
860         (init_cumulative_args): Look through aliases.
862 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
864         PR ipa/63566
865         * ipa-split.c (execute_split_functions): Split if function has aliases.
867 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
869         PR ipa/63566
870         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
871         aliases before trying to expand it.
872         (cgraph_node::expand_thunk): Fix formating.
874 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
876         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
877         (Using Assembly Language with C): Expand introduction.
878         (Basic Asm): Copy-edit.  Add more information about uses of
879         basic asm.
880         (Extended Asm): Copy-edit.  Document new escape syntax and
881         %l[label] syntax.
882         (Global Reg Vars): Copy-edit.
883         (Local Reg Vars): Likewise.
885 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
887         PR debug/2714
888         PR bootstrap/64256
889         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
890         (DBX_CONTIN_CHAR): Define.
892 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
893             Brian Rzycki  <b.rzycki@samsung.com>
895         PR tree-optimization/64878
896         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
897         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
898         Stop recursion at loop phi nodes after having visited a loop phi node.
900 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
902         * toplev.c (process_options): Change flag_ipa_ra before creating
903         optimization_{default,current}_node.
905         PR ipa/64896
906         * cgraphunit.c (cgraph_node::expand_thunk): If
907         restype is not is_gimple_reg_type nor the thunk_fndecl
908         returns aggregate_value_p, set restmp to a temporary variable
909         instead of resdecl.
911 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
913         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
915 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
917         PR target/64205
918         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
919         add a general secondary reload handler for SDmode, unless we have
920         both read/write support for SDmode.
922 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
924         PR middle-end/64937
925         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
926         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
927         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
928         1 before, push it to abstract_vec.
929         (dwarf2out_abstract_function): Adjust caller.  Don't call
930         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
931         DECL_ABSTRACT_P flags for all abstract_vec elts.
933 2015-02-06  Renlin Li  <renlin.li@arm.com>
935         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
936         complex gimple.
937         * tree-ssa.c (execute_update_addresses_taken): Likewise.
939 2015-02-06  Jeff Law  <law@redhat.com>
941         PR target/64889
942         * config/h8300/h8300.c (push): New argument "in_prologue".
943         Pass "in_prologue" along to "F".
944         (h8300_push_pop): Corresponding changes.
945         (h8300_expand_prologue): Likewise.
946         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
948 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
950         PR rtl-optimization/64957
951         PR debug/64817
952         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
953         IOR rather than for AND.
955 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
957         PR target/62631
958         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
959         of shift-add and (add + shift) operations.  Rename local variable.
961 2015-02-05  Jeff Law  <law@redhat.com>
963         PR target/17306
964         * config/h8300/constraints.md (U): Correctly dectect
965         "eightbit_data" memory addresses.
966         * config/h8300/h8300.c (eightbit_constant_address_p): Also
967         handle (const (plus (symbol_ref (x)))) where x is declared
968         as an 8-bit data memory address.
969         * config/h8300/h8300.md (call, call_value): Correctly detect
970         "funcvec" functions.
972         PR target/43264
973         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
974         24 to 28 bits for the H8/300.
976 2015-02-06  Alan Modra  <amodra@gmail.com>
978         PR target/64876
979         * config/rs6000/rs6000.c (chain_already_loaded): New function.
980         (rs6000_call_aix): Use it.
982 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
984         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
985         check.
987 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
989         * config/h8300/constraints.md ("U" constraint): Use strict
990         variant of REG_OK_FOR_BASE_P after reload has started.
992 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
994         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
995         define to zero if !TARGET_NEON.
996         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
998 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
999             Trevor Saunders  <tsaunders@mozilla.com>
1001         PR ipa/61548
1002         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
1004 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1006         PR ipa/61548
1007         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
1008         when removing varpool nodes.
1010 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1012         PR ipa/61548
1013         * varpool.c (varpool_node::remove): Fix order of variables.
1015 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1017         PR ipa/64686
1018         * ipa-inline.c (inline_small_functions): Fix ordering issue between
1019         speculation resolution and key updates.
1021 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1023         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
1024         about not letting any speculative edges unupdated.
1026 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1028         PR gcov/64123
1029         * gcov-io.c (gcov_var): Export.
1031 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1033         PR middle-end/64922
1034         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
1035         edges that become speculative.
1037 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1039         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
1040         or DW_LANG_Fortran08.
1041         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
1042         DW_LANG_Fortran08.
1043         (gen_compile_unit_die): Handle "GNU Fortran2003" and
1044         "GNU Fortran2008" language strings.
1045         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
1046         * langhooks.h (lang_GNU_Fortran): New prototype.
1047         * langhooks.c (lang_GNU_Fortran): New function.
1048         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1049         lang_GNU_Fortran.
1051 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
1053         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
1054         (RTX_OK_FOR_OLO10_P): Likewise.
1056 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
1058         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
1060 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
1062         PR middle-end/64922
1063         * gimple.c: Include gimple-ssa.h.
1064         (maybe_remove_unused_call_args): New function.
1065         * gimple.h (maybe_remove_unused_call_args): Declare.
1066         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
1067         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
1068         * gimple-fold.c (gimple_fold_call): Likewise.
1070 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1072         PR rtl-optimization/64905
1073         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
1074         pointer alignment if it isn't needed.
1076 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1078         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
1079         cortex-a72.cortex-a53.
1080         * config/aarch64/aarch64-tune.md: Regenerate.
1081         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
1083 2015-02-04  Nick Clifton  <nickc@redhat.com>
1085         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
1086         inside a MEM.
1088 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
1090         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
1091         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
1092         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
1093         of DEF_BUILTIN.
1094         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
1095         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
1096         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
1097         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
1098         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
1099         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
1100         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
1101         * tree-core.h (enum built_in_function): In between
1102         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
1103         for builtins that use DEF_BUILTIN_CHKP macro.
1105 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
1107         PR debug/64817
1108         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
1109         operands for tcc_comparison exprs.  Fix typos.
1111         PR debug/64817
1112         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
1113         of two XORs that have an intervening AND or IOR.
1115         PR debug/64817
1116         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
1117         simplification of XOR of AND to not allocate new rtx before
1118         committing to a simplification.
1120 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1122         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
1123         manual swaps in all peepholes.
1125 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1127         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
1128         of manual swapping implementation.
1129         (aarch64_expand_vec_perm_const_1): Likewise.
1131 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
1133         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
1134         (generic_addrcost_table): Remove NAMED_PARAM.
1135         (cortexa57_addrcost_table): Likewise.
1136         (xgene1_addrcost_table): Likewise.
1137         (generic_regmove_table): Likewise.
1138         (cortexa53_regmove_table): Likewise.
1139         (xgene1_regmove_table): Likewise.
1140         (generic_vector_table): Likewise.
1141         (cortexa57_vector_table): Likewise.
1142         (xgene1_vector_table): Likewise.
1143         (generic_tunings): Likewise.
1144         (cortexa53_tunings): Likewise.
1145         (cortexa57_tunings): Likewise.
1146         (xgene1_tunings): Likewise.
1148 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
1150         * config/arm/arm-cores.def: Add cortex-a72 and
1151         cortex-a72.cortex-a53.
1152         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
1153         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
1154         * config/arm/arm-tune.md: Regenerate.
1155         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
1156         "cortex-a72.cortex-a53".
1157         * doc/invoke.texi (ARM Options/-mtune): Likewise.
1159 2015-02-04  Nick Clifton  <nickc@redhat.com>
1161         PR target/64408
1162         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
1163         of accepted codes.
1164         (nonimmediate_di_operand): Likewise.
1166         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
1167         prefixes of known F5 using MSP430 MCUs.
1169 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1171         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
1172         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
1173         instead of __builtin_sqrt.
1175 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
1177         * varasm.c (do_assemble_alias): Follow transparent alias
1178         chain for target.
1179         (default_assemble_visibility): Follow transparent alias
1180         chain for decl name.
1182 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1184         PR middle-end/62103
1185         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
1186         to compute size of referenced value in the constant case.
1188 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1190         PR rtl-optimization/64756
1191         * cse.c (invalidate_dest): New function.
1192         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
1193         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
1194         invalidate and do not record it.
1196 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
1198         PR target/64660
1199         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
1200         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
1201         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
1202         atomic_nand<mode>_soft_tcb): New insns.
1203         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
1204         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
1205         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
1206         Split into atomic_not_fetchsi_hard if operands[0] is unused.
1207         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
1208         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1209         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
1210         atomic_not<mode>_hard if operands[0] is unused.
1211         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
1212         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
1213         if operands[0] is unused.
1214         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
1215         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
1216         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
1217         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1218         unused.
1219         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
1220         into atomic_not<mode>_soft_tcb if operands[0] is unused.
1221         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
1222         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
1223         if operands[0] is unused.
1224         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
1225         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
1226         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
1227         atomic_nand_fetchsi_hard if operands[0] is unused.
1228         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
1229         atomic_nand<mode>_hard if operands[0] is unused.
1230         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
1231         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
1232         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
1233         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1234         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
1235         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
1236         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
1237         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
1238         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
1239         atomic_not<mode>_hard if operands[0] is unused.
1240         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
1241         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
1242         unused.
1243         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
1244         into atomic_not<mode>_soft_tcb if operands[0] is unused.
1245         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
1246         atomic_nand<mode>_hard if operands[0] is unused.
1247         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
1248         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
1250 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
1252         PR jit/64810
1253         * Makefile.in (GCC_OBJS): Add gcc-main.o.
1254         * gcc-main.c: New file, containing "main" taken from gcc.c.
1255         * gcc.c (do_self_spec): Free decoded_options.
1256         (class driver): Move declaration to gcc.h.
1257         (main): Move declaration and implementation to new file
1258         gcc-main.c.
1259         (driver_get_configure_time_options): New function.
1260         * gcc.h (class driver): Move this declaration here, from
1261         gcc.c.
1262         (driver_get_configure_time_options): New declaration.
1264 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
1266         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
1267         cross-module inlining.
1268         * cgraph.h (cgraph_node): Add flag merged.
1269         * ipa-icf.c (sem_function::merge): Maintain it.
1271 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
1273         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
1274         instead of OBJECT_P.
1276 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
1278         PR target/62631
1279         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
1280         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
1281         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
1282         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
1284 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
1286         PR other/63504
1287         * combine.c (reg_n_sets_max): New variable.
1288         (can_change_dest_mode, reg_nonzero_bits_for_combine,
1289         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
1290         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
1291         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
1292         (rest_of_handle_combine): Initialize reg_n_sets_max.
1294 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
1296         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
1297         if some always_inline was inlined, apply changes before inlining
1298         heuristically.
1300 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
1302         PR jit/64810
1303         * config/arm/arm.c (arm_option_override): Set
1304         arm_selected_arch/cpu/tune to NULL on entry.
1306 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
1307             Andrew Pinski  <pinskia@gcc.gnu.org>
1308             Jakub Jelinek  <jakub@gcc.gnu.org>
1310         PR target/64231
1311         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
1312         integer typing for small model. Use IN_RANGE.
1314 2015-02-02  Richard Biener  <rguenther@suse.de>
1316         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
1317         * tree-vrp.c (vrp_valueize_1): Likewise.
1319 2015-02-02  Alan Modra  <amodra@gmail.com>
1321         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
1322         than mem for toc_restore.
1323         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
1324         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
1325         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
1327 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
1329         PR target/64047
1330         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
1331         explicit default options.
1333 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
1335         PR ipa/64872
1336         * ipa-utils.c (ipa_merge_profiles): Add release argument.
1337         * ipa-icf.c (sem_function::merge): Do not release body when merging.
1338         * ipa-utils.h (ipa_merge_profiles): Update prototype.
1340 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
1342         PR debug/64817
1343         * cfgexpand.c (deep_ter_debug_map): New variable.
1344         (avoid_deep_ter_for_debug): New function.
1345         (expand_debug_expr): If TERed SSA_NAME is in
1346         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
1347         instead of trying to expand SSA_NAME's def stmt.
1348         (expand_debug_locations): When expanding debug bind
1349         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
1350         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
1351         value.
1352         (pass_expand::execute): Call avoid_deep_ter_for_debug on
1353         all debug bind stmts.  Delete deep_ter_debug_map after
1354         expand_debug_location if non-NULL and clear it.
1356 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
1358         PR target/64851
1359         * config/sh/sync.md (atomic_fetch_notsi_hard,
1360         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
1361         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
1362         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
1363         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
1364         atomic_not_fetch<mode>_soft_imask): New insns.
1366 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1368         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
1369         (rank_for_schedule_debug): Split from ...
1370         (rank_for_schedule): ... this.
1371         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
1372         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
1374 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1376         * doc/md.texi (Machine Constraints): Alphabetize table by target.
1377         * doc/extend.texi (x86 Variable Attributes): Move section to
1378         correct alphabetization after renaming.
1379         (x86 Type Attributes): Likewise.
1380         (Target Builtins): Re-alphabetize menu.
1381         (x86 Built-in Functions): Move section to correct alphabetization
1382         after renaming.
1383         (x86 transactional memory intrinsics): Likewise.
1384         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
1385         and x86 Windows Options in table and menu.
1386         (x86 Options): Move section to correct alphabetization after
1387         renaming.
1388         (x86 Windows Options): Likewise.
1390 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
1392         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
1393         preferred names of the architecture and its 32- and 64-bit
1394         variants.
1395         * doc/invoke.texi: Likewise.
1396         * doc/md.texi: Likewise.
1398 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1400         PR target/64882
1401         * config/i386/predicates.md (address_no_seg_operand): Reject
1402         non-CONST_INT_P operands in invalid mode.
1404 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
1406         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
1407         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
1408         * config/i386/predicates.md (address_no_seg_operand): Call
1409         address_operand with VOIDmode.
1410         (vsib_address_operand): Ditto.
1411         (address_mpx_no_base_operand): Ditto.
1412         (address_mpx_no_index_operand): Ditto.
1414 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1416         PR target/64688
1417         * lra-constraints.c (original_subreg_reg_mode): New.
1418         (simplify_operand_subreg): Try to simplify subreg of const.  Use
1419         original_subreg_reg_mode for it.
1420         (swap_operands): Update original_subreg_reg_mode.
1421         (curr_insn_transform): Set up original_subreg_reg_mode.
1423 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1425         PR target/64617
1426         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
1427         function.
1428         (process_alt_operands): Use it.
1429         (curr_insn_transform): Check the optional reload pseudo class is
1430         ok for the mode.
1432 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
1434         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
1435         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
1436         prototype.
1437         * toplev.h (init_asm_output): Update comment on use of
1438         UNKNOWN_LOCATION with fatal_error.
1439         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
1440         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
1441         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
1442         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
1443         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
1444         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
1445         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
1446         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
1447         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
1448         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
1449         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
1450         fatal_error changed to pass input_location as first argument.
1452 2015-01-30  Martin Liska  <mliska@suse.cz>
1454         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
1455         in #pragma GCC diagnostic guards.
1457 2015-01-30  Richard Biener  <rguenther@suse.de>
1459         PR tree-optimization/64829
1460         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
1461         not add a widening conversion pattern but hand off extra
1462         widenings to callers.
1463         (vect_recog_widen_mult_pattern): Handle extra widening produced
1464         by vect_handle_widen_op_by_const.
1465         (vect_recog_widen_shift_pattern): Likewise.
1466         (vect_pattern_recog_1): Remove excess vertical space in dumping.
1467         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1468         (vect_init_vector_1): Likewise.
1469         (vect_get_vec_def_for_operand): Likewise.
1470         (vect_finish_stmt_generation): Likewise.
1471         (vectorizable_load): Likewise.
1472         (vect_analyze_stmt): Likewise.
1473         (vect_is_simple_use): Likewise.
1475 2015-01-29  Jeff Law  <law@redhat.com>
1477         * combine.c (try_combine): Fix typo in comment.
1479 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
1481         PR target/64580
1482         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
1483         (rs6000_stack_info): Add assert.
1484         (rs6000_output_savres_externs): New function, split off from...
1485         (rs6000_output_function_prologue): ... here.  Do not call it for
1486         thunks.
1488 2015-01-29  Jeff Law  <law@redhat.com>
1490         PR target/15184
1491         * combine.c (try_combine): If I0 is a memory load and I3 a store
1492         to a related address, increase the "goodness" of doing a 4-insn
1493         combination with I0-I3.
1494         (make_field_assignment): Handle SUBREGs in the ior+and case.
1496 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
1498         PR tree-optimization/64746
1499         * tree-if-conv.c (mask_exists): New function.
1500         (predicate_mem_writes): Save created mask with given size for further
1501         use.
1502         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
1503         (ifcvt_repair_bool_pattern): Collect all statements that are root
1504         of bool pattern and use iterative algorithm to remove multiple uses
1505         of predicates, display number of required iterations.
1507 2015-01-29  Richard Biener  <rguenther@suse.de>
1509         PR tree-optimization/64853
1510         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
1511         stmt will get simulated again.
1512         * tree-ssa-ccp.c (valueize_op_1): Likewise.
1514 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1516         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
1517         return_in_pc.  Remove redundant assignments.
1518         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
1519         (arm_expand_epilogue): Don't compare boolean with true in if condition.
1521 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
1523         * config/i386/i386.c (ix86_mode_after): Make static.
1525 2015-01-29  Richard Biener  <rguenther@suse.de>
1527         PR tree-optimization/64844
1528         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
1529         dump cost model analysis.
1530         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1531         Do not register adjusted load/store costs here.
1533 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1534             Uros Bizjak  <ubizjak@gmail.com>
1536         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
1537         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
1538         using x86_use_pseudo_pic_reg.
1539         * config/i386/i386.c (ix86_conditional_register_usage): Remove
1540         support for fixed PIC register.
1541         (ix86_use_pseudo_pic_reg): Not static any more.
1543 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
1545         PR middle-end/64805
1546         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
1547         to avoid error in cgraph node verification.
1549 2015-01-29  Marek Polacek  <polacek@redhat.com>
1551         * doc/standards.texi: Reflect that the default for C is gnu11.
1553 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1555         PR target/64761
1556         * reorg.c (switch_text_sections_between_p): New function.
1557         (relax_delay_slots): Call it when testing if the jump insn
1558         is removable.  Use targetm.can_follow_jump when testing if
1559         the conditional branch can follow an unconditional jump.
1561 2015-01-27  Caroline Tice  <cmtice@google.com>
1563         Committing VTV Cywin/Ming patch for Patrick Wollgast
1564         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
1565         if -fvtable-verify=preinit/std is used.
1566         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
1567         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
1568         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
1569         if -fvtable-verify=preinit/std is used.
1570         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
1571         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
1572         if -fvtable-verify=preinit/std is used.
1573         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
1574         * config/i386/mingw32.h (LIB_SPEC): Likewise.
1575         * varasm.c (assemble_variable): Add code to properly set the comdat
1576         section and name for the .vtable_map_vars section in case the
1577         target is PE or COFF.
1579 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1581         PR ipa/64801
1582         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
1583         make sane BB profile.
1584         (cgraph_node::expand_thunk): Make sane BB profile.
1585         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
1586         * cgraph.h (init_lowered_empty_function): Update prototype.
1587         * config/i386/i386.c (make_resolver_func): Update call.
1588         * predict.c (gate): Disable branch prediction pass if
1589         profile is already there.
1591 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
1593         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
1594         * opth-gen.awk: Likewise.
1595         * common.opt: Mark flag_fp_contract_mode as Optimization.
1597 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1599         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
1600         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
1602 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
1604         PR target/64659
1605         * config/sh/predicates.md (atomic_arith_operand,
1606         atomic_logical_operand): Remove.
1607         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
1608         (atomic_arith_operand_0): New predicate.
1609         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
1610         Use atomic_arith_operand_0 for input values.
1611         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
1612         atomic_compare_and_swap<mode>_soft_gusa,
1613         atomic_compare_and_swap<mode>_soft_tcb,
1614         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
1615         arith_reg_operand instead of register_operand.
1616         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
1617         atomic_arith_operand_0 for newval input.
1618         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
1619         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
1620         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
1621         arith_reg_operand instead of register_operand.
1622         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
1623         fetchop_predicate_1, fetchop_constraint_1_llcs,
1624         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
1625         fetchop_constraint_1_imask): New code iterator attributes.
1626         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
1627         register_operand.  Use fetchop_predicate_1.
1628         (atomic_fetch_<fetchop_name>si_hard,
1629         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
1630         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
1631         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
1632         and arith_reg_operand instead of register_operand.  Use
1633         fetchop_predicate_1, fetchop_constraint_1_gusa.
1634         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
1635         and arith_reg_operand instead of register_operand.  Use
1636         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
1637         to allow R0 usage.
1638         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
1639         and arith_reg_operand instead of register_operand.  Use
1640         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
1641         to allow R0 usage.
1642         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
1643         register_operand.  Use atomic_logical_operand_1.
1644         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
1645         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
1646         arith_reg_operand instead of register_operand.
1647         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
1648         Use arith_reg_dest and arith_reg_operand instead of register_operand.
1649         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
1650         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
1651         register_operand.  Use fetchop_predicate_1.
1652         (atomic_<fetchop_name>_fetchsi_hard,
1653         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
1654         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1655         fetchop_constraint_1_llcs.
1656         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
1657         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1658         fetchop_constraint_1_gusa.
1659         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
1660         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1661         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
1662         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
1663         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
1664         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
1665         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
1666         register_operand.  Use atomic_logical_operand_1.
1667         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
1668         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
1669         arith_reg_operand instead of register_operand.
1670         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
1671         arith_reg_operand instead of register_operand.  Use logical_operand
1672         and K08.  Adjust asm sequence to allow R0 usage.
1673         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
1674         arith_reg_operand instead of register_operand.  Use logical_operand
1675         and K08.
1677 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
1679         PR other/63504
1680         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
1681         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
1682         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
1683         only get_full_len HOST_WIDE_INTs from get_val () array rather than
1684         all bits in *val_wide.
1686 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
1688         * varpool.c (tls_model_names): Fix names.
1689         (varpool_node::dump): Dump tls- prefix for tls models.
1691 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
1692             Bernd Schmidt  <bernds@codesourcery.com>
1693             Nathan Sidwell  <nathan@codesourcery.com>
1695         * config/nvptx/mkoffload.c: New file.
1696         * config/nvptx/t-nvptx: Add build rules for it.
1697         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
1698         (extra_programs): Add mkoffload.
1699         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
1700         function.
1701         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
1703 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
1705         PR middle-end/64809
1706         * cfgexpand.c (reorder_operands): Skip debug gimples.
1708 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
1710         PR tree-optimization/64277
1711         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
1712         range info when possible to refine estimation.
1714 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1716         PR tree-optimization/64718
1717         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
1718         be a 16bit unsigned integer when n->range is 16.
1719         (bswap_replace): Convert src to that type if necessary for all bswap
1720         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
1721         set in pass_optimize_bswap::execute ().
1723 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
1725         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
1726         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
1727         integer and floating point variants.
1728         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
1730 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
1732         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
1733         for all vector modes.
1735 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
1737         PR bootstrap/64612
1738         * doc/sourcebuild.texi (comdat_group): Document.
1740 2015-01-28  Terry Guo  <terry.guo@arm.com>
1742         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
1744 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
1746         * toplev.c (print_version): Add param "show_global_state", and
1747         only print GGC and plugin information if it is true.
1748         (init_asm_output): Pass in "true" for the new param when calling
1749         print_version.
1750         (process_options): Likewise.
1751         (toplev::main): Likewise.
1752         * toplev.h (print_version): Add new param to decl.
1754 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
1756         PR ipa/60871
1757         PR ipa/64139
1758         * tree.c (lookup_binfo_at_offset): New function.
1759         (get_binfo_at_offset): Use it.
1761 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
1763         PR ipa/64282
1764         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
1765         on vtable being vtable.
1767 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1769         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
1770         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
1771         -mhotpatch= option.
1772         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
1773         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
1774         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
1775         Renamed.
1776         (s390_hotpatch_trampoline_halfwords_max): Renamed.
1777         (s390_hotpatch_hw_max): New name.
1778         (s390_hotpatch_trampoline_halfwords): Renamed.
1779         (s390_hotpatch_hw_before_label): New name.
1780         (get_hotpatch_attribute): Removed.
1781         (s390_hotpatch_hw_after_label): New name.
1782         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
1783         attribute.
1784         (s390_attribute_table): Ditto.
1785         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
1786         (s390_function_num_hotpatch_hw): New name.
1787         Remove special handling of inline functions and hotpatching.
1788         Return number of nops before and after the function label.
1789         (s390_can_inline_p): Removed.
1790         (s390_asm_output_function_label): Emit a configurable number of nops
1791         after the function label.
1792         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
1793         (TARGET_CAN_INLINE_P) Removed.
1794         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
1796 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1797             Jiong Wang  <jiong.wang@arm.com>
1799         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
1800         of scratch reg.
1801         (cb<optab><mode>1): Likewise.
1802         * config/aarch64/iterators.md (bcond): New define_code_attr.
1804 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1806         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
1807         memory accesses.
1809 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1811         * config/s390/s390.c (s390_register_move_cost): Increase costs for
1812         FPR->GPR moves.
1814 2015-01-27  Richard Biener  <rguenther@suse.de>
1816         * tree-vrp.c (update_value_range): Intersect the range with
1817         old recorded SSA name range information.
1819 2015-01-27  Nick Clifton  <nickc@redhat.com>
1821         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
1822         BC, DE and HL registers directly, not via AX.
1823         When decrementing the stack pointer by a large amount, transfer SP
1824         into AX and perform the subtraction there.
1825         (rl78_expand_epilogue): Perform the inverse of the above
1826         enhancements.
1828 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1830         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
1832 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1833             Yury Gribov  <y.gribov@samsung.com>
1835         PR ubsan/64741
1836         * ubsan.c (ubsan_source_location): Refactor code.
1837         (ubsan_type_descriptor): Update type size. Refactor code.
1839 2015-01-27  Richard Biener  <rguenther@suse.de>
1841         PR tree-optimization/56273
1842         PR tree-optimization/59124
1843         PR tree-optimization/64277
1844         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
1845         from the first VRP pass.
1847 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1849         PR ipa/64776
1850         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
1851         handle the first argument in the same loop as all the other arguments.
1853         PR rtl-optimization/61058
1854         * jump.c (cleanup_barriers): Update basic block boundaries
1855         if BLOCK_FOR_INSN is non-NULL on PREV.
1857 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
1859         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
1860         bounds narrowing, already instrumented calls and calls to
1861         not instrumentable functions.
1863 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
1865         PR tree-optimization/64807
1866         * wide-int.cc (wi::divmod_internal): Clear
1867         b_dividend[dividend_blocks_needed].
1869 2015-01-26  DJ Delorie  <dj@redhat.com>
1871         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
1872         volatile memory references.
1874 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
1876         PR target/49263
1877         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
1878         remove_insn.
1879         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
1880         shifts if it already fits into K08.
1882 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
1884         PR ipa/64730
1885         * ipa-inline.c (inline_small_functions): Print "unknown" even
1886         if edge->call_stmt is non-NULL, but has builtins or unknown
1887         location.
1889         PR middle-end/64421
1890         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
1891         with asterisk, skip the first character.
1893 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1895         PR target/64806
1896         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
1897         order change.
1899 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
1901         PR target/64795
1902         * config/i386/i386.md (*movdi_internal): Also check operand 0
1903         to determine TYPE_LEA operand.
1904         (*movsi_internal): Ditto.
1906 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
1908         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
1909         OPTION_MASK_QUAD_MEMORY_ATOMIC.
1911 2015-01-26  Renlin Li  <renlin.li@arm.com>
1913         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
1914         the comment.
1915         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
1916         for higher part.
1918 2015-01-26  Richard Biener  <rguenther@suse.de>
1920         PR middle-end/64764
1921         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
1922         combining two BIT_AND_EXPR predicates.
1924 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1926         PR bootstrap/64754
1927         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
1929 2015-01-26  Terry Guo  <terry.guo@arm.com>
1931         * config/arm/arm.c (arm_file_start): Update the assignment of
1932         Tag_ABI_HardFP_use.
1934 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
1936         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
1937         pipeline model.
1938         config/arm/arm.md: Include the new Cortex-A57 model.
1939         (generic_sched): Don't use generic_sched when tuning for
1940         Cortex-A57.
1942 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
1943             Uros Bizjak  <ubizjak@gmail.com>
1945         * config/i386/i386.c (get_builtin_code_for_version): Add
1946         support for BMI and BMI2 multiversion functions.
1948 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1950         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
1951         (extract_bit_field): Likewise.
1952         (extract_low_bits): Likewise.
1953         (expand_mult): Likewise.
1954         (expand_mult_highpart_adjust): Likewise.
1956 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
1958         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
1959         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
1960         * config/i386/i386.c (processor_model): Add
1961         M_INTEL_COREI7_BROADWELL.
1962         (arch_names_table): Add "broadwell".
1964 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
1966         PR target/49263
1967         PR target/53987
1968         PR target/64345
1969         PR target/59533
1970         PR target/52933
1971         PR target/54236
1972         PR target/51244
1973         * config/sh/sh-protos.h
1974         (sh_extending_set_of_reg::can_use_as_unextended_reg,
1975         sh_extending_set_of_reg::use_as_unextended_reg,
1976         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
1977         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
1978         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
1979         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
1980         (sh_treg_insns): New class.
1981         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
1982         (scope_counter): New class.
1983         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
1984         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
1985         sh_extending_set_of_reg::can_use_as_unextended_reg,
1986         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
1987         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
1988         sh_split_treg_set_expr): New functions.
1989         (addsubcosts): Handle treg_set_expr.
1990         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
1991         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
1992         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
1993         (sh_insn_operands_modified_between_p): Make non-static.
1994         * config/sh/predicates.md (zero_extend_movu_operand): Allow
1995         simple_mem_operand in addition to displacement_mem_operand.
1996         (zero_extend_operand): Don't allow zero_extend_movu_operand.
1997         (treg_set_expr, treg_set_expr_not_const01,
1998         arith_reg_or_treg_set_expr): New predicates.
1999         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
2000         arith_or_int_operand instead of logical_operand.  Convert to
2001         insn_and_split.  Try to optimize constant operand in splitter.
2002         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
2003         (*tstqi_t_zero): Delete.
2004         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
2005         (tstsi_t_and_not): Delete.
2006         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
2007         Convert to insn_and_split.
2008         (unnamed split, tstsi_t_zero_extract_xor,
2009         tstsi_t_zero_extract_subreg_xor_little,
2010         tstsi_t_zero_extract_subreg_xor_big): Delete.
2011         (*tstsi_t_shift_mask): New insn_and_split.
2012         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
2013         to recombine with surrounding insns when splitting.
2014         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
2015         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
2016         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
2017         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
2018         (*cbranch_div0s: Delete.
2019         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
2020         Try to recombine with surrounding insns when splitting.  Add operand
2021         order variants.
2022         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
2023         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
2024         *addc_r_r_msb, *addc_2r_msb): Delete.
2025         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
2026         order variant.
2027         (*addc_negreg_t): New insn_and_split.
2028         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
2029         Try to recombine with surrounding insns when splitting.
2030         Add operand order variants.
2031         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
2032         insn_and_split patterns.
2033         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
2034         surrounding insns when splitting.
2035         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
2036         (*rotcl): Likewise.  Add zero_extract variant.
2037         (*ashrsi2_31): New insn_and_split.
2038         (*negc): Convert to insn_and_split.  Use treg_set_expr.
2039         (*zero_extend<mode>si2_disp_mem): Update comment.
2040         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
2041         condition.
2042         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
2043         with surrounding insns when splitting.
2044         (any_treg_expr_to_reg): New insn_and_split.
2045         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
2046         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
2047         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
2048         *zero_extract_2): New single bit zero extract patterns.
2049         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
2050         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
2051         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
2052         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
2053         set destination.
2054         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
2055         register_operand for set source.
2057 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
2059         * i386.opt (prefetch_sse): New targetsave.
2060         * i386.c (ix86_function_specific_save): Save prefetch_sse.
2061         (ix86_function_specific_restore): Restore prefetch_sse and initialize
2062         ix86_cost/ix86_tune_cost.
2064 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2066         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2067         Support the JIT by using 0 as the language type.
2069 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
2071         PR target/64317
2072         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
2073         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
2074         (mark_regno_live, process_bb_lives): Pass new parameter value to
2075         make_hard_regno_born.
2077 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2079         PR rtl-optimization/63637
2080         PR rtl-optimization/60663
2081         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
2082         if elt->cost is MAX_COST for ASM_OPERANDS.
2083         (find_sets_in_insn): Fix up comment typo.
2084         (cse_insn): Don't set src_volatile for all non-volatile
2085         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
2086         or with "memory" clobber.  Set elt->cost to MAX_COST
2087         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
2088         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
2090 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
2092         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
2093         alternative 1.
2095 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
2097         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
2098         libgcc/config/i386/elf-lib.h.
2100 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2102         PR driver/64737
2103         * gcc.c (print_configuration): Don't print a blank line at the end
2104         here...
2105         (run_attempt): ... but here unstead.
2107         PR middle-end/64734
2108         * omp-low.c (scan_sharing_clauses): Don't ignore
2109         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
2110         on target data/update constructs.
2112 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2114         PR target/50928
2115         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
2116         (DEBUG_RELOAD): Removed define.
2117         (m32c_limit_reload_class): Enable traces with if DEBUG0.
2118         (m32c_function_arg): Added a type cast.
2119         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
2120         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
2121         * config/m32c/bitops.md (andqi3_16): Likewise.
2122         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
2123         (push_a01_l): Likewise.
2125 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2127         PR jit/64721
2128         * main.c (main): Construct toplev instances with init_signals=true.
2129         * toplev.c (general_init): Add param "init_signals", and use it to
2130         conditionalize the calls to signal and host_hooks.extra_signals.
2131         (toplev::toplev): Add param "init_signals".
2132         (toplev::main): When invoking general_init, pass m_init_signals
2133         to control whether signal-handlers are installed.
2134         * toplev.h (toplev::toplev): Add param "init_signals".
2135         (toplev::m_init_signals): New field.
2137 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
2139         PR jit/64722
2140         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
2141         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
2142         latter may be affected by the former (e.g. on i686).
2144 2015-01-23  Martin Liska  <mliska@suse.cz>
2146         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
2147         false positive during profiledbootstrap.
2149 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2151         PR libgomp/64672
2152         * lto-opts.c (lto_write_options): Output non-explicit conservative
2153         -fno-openacc.
2154         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
2155         (append_compiler_options): Pass -fopenacc through.
2157 2015-01-23  Tom de Vries  <tom@codesourcery.com>
2159         PR libgomp/64707
2160         * lto-opts.c (lto_write_options): Output non-explicit conservative
2161         -fno-openmp.
2162         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
2163         (append_compiler_options): Pass -fopenmp through.
2165 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
2167         PR debug/64511
2168         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
2169         GTY markup.
2171         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
2172         * diagnostic.def (DK_ICE_NOBT): New kind.
2173         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
2174         like DK_ICE, but never print backtrace.
2175         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
2176         (internal_error_no_backtrace): New function.
2177         * gcc.c (execute): Use internal_error_no_backtrace instead of
2178         internal_error.
2180 2015-01-22  Jeff Law  <law@redhat.com>
2182         PR target/52076
2183         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
2184         improve code density for small immediate to memory case.
2185         (insv): Better handle bitfield assignments when the field is
2186         being set to all ones.
2187         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
2188         operand predicate.
2190 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2191             Jakub Jelinek  <jakub@redhat.com>
2193         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
2194         for !TARGET_LIBC_PROVIDES_SSP version and
2195         -fstack-protector-{all,strong,explicit} otherwise.
2196         * config/freebsd.h (LINK_SSP_SPEC): Handle
2197         -fstack-protector-{strong,explicit}.
2199 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
2200             H.J. Lu  <hongjiu.lu@intel.com>
2202         PR ipa/64694
2203         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
2204         heap.
2206 2015-01-22  Wei Mi  <wmi@google.com>
2208         PR rtl-optimization/64557
2209         * dse.c (record_store): Call get_addr for mem_addr.
2210         (check_mem_read_rtx): Likewise.
2212 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
2214         * fold-const.c (const_binop): Add early return for non-tcc_binary.
2216 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
2218         * toplev.c (init_local_tick): Process the failure when read
2219         fails for random_seed.
2221         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
2222         'pretty_name' to avoid memory overflow.
2224 2015-01-22  Richard Biener  <rguenther@suse.de>
2226         PR middle-end/64728
2227         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
2228         abnormal coalescing on undefined SSA names.
2230 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
2232         PR target/64688
2233         PR target/64477
2234         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
2235         for alternative 3.
2236         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
2238 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
2240         PR middle-end/63325
2241         * fold-const.c (fold_checksum_tree): Don't include value of
2242         expr->decl_with_vis.symtab_node in the checksum.
2244 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2246         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
2248 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2250         PR driver/64690
2251         * gcc.c (insert_comments): New function.
2252         (try_generate_repro): Call it.
2253         (append_text): Removed.
2255 2015-01-22  Richard Biener  <rguenther@suse.de>
2257         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
2258         with IL incompatible options.  Properly honor user optimize
2259         attributes.
2261 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
2263         PR rtl-optimization/64682
2264         * combine.c (distribute_notes): When moving a death note for
2265         a register that is set in the new I2, make sure to put it
2266         before that new I2.
2268 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
2270         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
2271         not TARGET_DEFAULT.
2273 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
2275         PR debug/64511
2276         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
2277         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
2278         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
2280         PR sanitizer/64706
2281         * doc/invoke.texi (-fsanitize=vptr): Document.
2283         PR rtl-optimization/62078
2284         * dse.c: Include cfgcleanup.h.
2285         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
2286         anything call purge_all_dead_edges and cleanup_cfg at the end
2287         of the pass.
2289 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
2291         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
2292         edges.
2294 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2296         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
2297         decl attribute.
2299 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2300             Tejas Belagod <Tejas.Belagod@arm.com>
2302         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
2303         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
2304         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
2305         Removed.
2307 2015-01-21  David Sherwood  <david.sherwood@arm.com>
2308             Tejas Belagod <Tejas.Belagod@arm.com>
2310         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
2311         (aarch64_reverse_mask): New decls.
2312         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
2313         (insn_count): New mode_attr.
2314         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
2315         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
2316         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
2317         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
2318         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
2319         (aarch64_simd_st4): New patterns.
2320         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
2321         (aarch64_reverse_mask): New functions.
2323 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
2325         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
2326         Declare.
2327         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
2328         addressing modes for BE.
2329         (aarch64_print_operand): Add 'R' specifier.
2330         (aarch64_simd_disambiguate_copy): Delete.
2331         (aarch64_simd_emit_reg_reg_move): New function.
2332         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
2333         in define_splits for structural moves.
2334         (mov<mode>): Use less restrictive predicates.
2335         (*aarch64_mov<mode>): Simplify and only allow for LE.
2336         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
2338 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
2340         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
2342 2015-01-21  Richard Henderson  <rth@redhat.com>
2344         PR target/64669
2345         * ccmp.c (used_in_cond_stmt_p): Remove.
2346         (expand_ccmp_expr): Don't use it.
2348 2015-01-21  Nick Clifton  <nickc@redhat.com>
2350         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
2351         PARALLELs.
2353 2015-01-21  Richard Biener  <rguenther@suse.de>
2355         PR middle-end/64313
2356         * tree-core.h (builtin_info, builtin_info_type): Turn from
2357         an object with two arrays into an array of an object with
2358         decl and two flags, implicit_p and declared_p.
2359         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
2360         set_builtin_decl, set_builtin_decl_implicit_p,
2361         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
2362         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
2363         * builtins.c (builtin_info): Adjust.
2364         * gimplify.c (gimplify_addr_expr): References to builtins
2365         that have been declared by the user makes them eligible for
2366         use by the compiler.  Call set_builtin_decl_implicit_p on them.
2368 2015-01-20  Jeff Law  <law@redhat.com>
2370         PR target/59946
2371         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
2372         allow pc-relative addresses in operand predicates or constraints.
2374 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
2376         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
2377         neon on aarch32 processors for stringops.
2379 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2381         PR ipa/63576
2382         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
2384 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2386         PR lto/45375
2387         * ipa-inline.c: Include lto-streamer.h
2388         (report_inline_failed_reason): Output source file differences and
2389         flags on optimization/target node mismatch.
2390         (can_inline_edge_p): Consider caller to be the outer inline function;
2391         be less restrictive about matching opimize and optimize_size attributes.
2392         (inline_account_function_p): Break out from ...
2393         (inline_small_functions): ... here.
2394         * ipa-inline-transform.c (clone_inlined_nodes): Use
2395         inline_account_function_p.
2396         (inline_call): Use optimize attribution; use inline_account_function_p.
2397         (inline_transform): Use opt_for_fn.
2398         * ipa-inline.h (inline_account_function_p): Declare.
2400 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
2402         PR debug/64663
2403         * dwarf2out.c (decl_piece_node): Don't put bitsize into
2404         mode if bitsize <= 0.
2405         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
2406         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
2407         sizes and positions.
2409 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
2411         * config/nios2/nios2.c (nios2_asm_file_end): Implement
2412         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
2413         needed.
2414         (TARGET_ASM_FILE_END): Define.
2416 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2418         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
2419         (struct tune_params): Use the enum.
2420         * arm.c (arm_*_tune): Update.
2421         (arm_option_override): Update.
2423 2015-01-20  Richard Biener  <rguenther@suse.de>
2425         PR ipa/64684
2426         * ipa-reference.c (add_static_var): Inline ...
2427         (analyze_function): ... here after splitting out from ...
2428         (is_proper_for_analysis): ... this.
2430 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
2432         PR target/64149
2433         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
2434         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
2435         replace the conditional with it's true branch.
2436         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
2437         (arm_lra_p): Remove.
2439 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
2441         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
2443 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2445         * config/tilegx/mul-tables.c: Move symtab.h include after
2446         coretypes.h include.
2447         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
2448         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
2449         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
2450         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
2451         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2453 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
2455         PR bootstrap/64676
2456         Revert:
2457         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2459         PR rtl-optimization/64081
2460         * loop-iv.c (def_pred_latch_p): New function.
2461         (latch_dominating_def): Allow specific cases with non-single
2462         definitions.
2463         (iv_get_reaching_def): Likewise.
2464         (check_complex_exit_p): New function.
2465         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2466         with exits not executing on any iteration.
2468 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2470         PR lto/45375
2471         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
2472         to set branch cost.
2474 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2476         PR lto/45375
2477         * i386.c (gate): Check flag_expensive_optimizations and
2478         optimize_size.
2479         (ix86_option_override_internal): Drop optimize_size condition
2480         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
2481         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
2482         MASK_PREFER_AVX128.
2483         (ix86_avx256_split_vector_move_misalign,
2484         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
2485         * sse.md (all uses of TARGET_PREFER_AVX128): Add
2486         optimize_insn_for_speed_p check.
2488 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
2490         * config/mips/mips.h (FP_ASM_SPEC): New define.
2491         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
2492         instead.
2494 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
2496         PR target/53988
2497         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
2498         nullptr for insn when reaching the first insn.
2499         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
2500         (sh_insn_operands_modified_between_p): Add nullptr check.
2501         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
2502         sign extending mem load if the insn contains any UNSPEC or
2503         UNSPEC_VOLATILE.
2505 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2507         * params.def (inline-unit-growth): Drop to 15%.
2508         * invoke.texi (inline-unit-growth): Document change.
2510 2015-01-19  Martin Liska  <mliska@suse.cz>
2512         PR ipa/64668
2513         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
2514         function for second argument of OBJ_TYPE_REF.
2516 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2518         PR ipa/64218
2519         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
2520         whether function is an alias.
2522 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
2524         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
2525         cases.
2527 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
2529         PR rtl-optimization/64671
2530         * lra-remat.c (operand_to_remat): Don't consider jump and call
2531         insns.
2533 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
2535         * config/rs6000/default64.h: Include rs6000-cpus.def.
2536         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
2537         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
2538         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
2539         and POWER8.
2540         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
2541         POWER8.
2542         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
2543         pseudo-op to specify assembler dialect.
2545 2015-01-19  Martin Liska  <mliska@suse.cz>
2547         PR ipa/64664
2548         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
2549         Handle safe potentially removed nodes during filtering.
2551 2015-01-19  Martin Liska  <mliska@suse.cz>
2553         * doc/extend.texi (no_icf): Add new attribute description.
2554         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
2555         where the pass attempts to merge a function with no_icf attribute.
2557 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2559         PR target/64532
2560         * doc/md.texi (ARM Options): Document register constraints.
2562 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
2563             Andrew Pinski  <apinski@cavium.com>
2565         PR target/64304
2566         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
2567         (ashl<mode>3): Don't expand if operands[2] is not constant.
2569 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2571         PR target/64448
2572         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
2573         Match xor-and-xor RTL pattern.
2575 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
2577         PR rtl-optimization/64081
2578         * loop-iv.c (def_pred_latch_p): New function.
2579         (latch_dominating_def): Allow specific cases with non-single
2580         definitions.
2581         (iv_get_reaching_def): Likewise.
2582         (check_complex_exit_p): New function.
2583         (check_simple_exit): Use check_complex_exit_p to allow certain cases
2584         with exits not executing on any iteration.
2586 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
2588         * common.opt (fgraphite): Fix a typo.
2590 2015-01-19  Felix Yang  <felix.yang@huawei.com>
2592         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
2593         pattern.
2594         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
2595         uminp, smax_nanp, smin_nanp): New builtins.
2596         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
2597         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
2598         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
2599         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
2600         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
2601         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
2602         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
2603         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
2604         vpminnms_f32): Rewrite using builtin functions.
2606 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
2608         PR libgomp/64625
2609         * omp-low.c (offload_symbol_decl): Remove variable.
2610         (get_offload_symbol_decl): Remove function.
2611         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
2612         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
2613         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
2614         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
2615         BUILT_IN_GOACC_UPDATE don't pass it at all.
2617 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2619         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
2620         callers.
2622 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
2624         * ipa-chkp.c (chkp_produce_thunks): Add early param
2625         to split thunks production into two passes.  Keep
2626         'always_inline' function bodies after the first pass.
2627         (pass_data_ipa_chkp_early_produce_thunks): New.
2628         (pass_ipa_chkp_early_produce_thunks): New.
2629         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
2630         chkp_produce_thunks signature.
2631         (make_pass_ipa_chkp_early_produce_thunks): New.
2632         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
2633         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
2634         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
2636 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2638         * cgraph.c (cgraph_node::dump): Dump profile flags.
2640 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
2642         PR target/64652
2643         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
2644         reg appear first in the parallel.
2646 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2648         * ipa-reference.c (set_reference_optimization_summary,
2649         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
2650         disabled.
2651         (ignore_module_statics): New static var.
2652         (propagate_bits): If ipa-reference is disabled, do not look into local
2653         properties.
2654         (analyze_function): Disable analysis when ipa_reference is disabled.
2655         (generate_summary): Do not dump when reference is disabled;
2656         collect vars accessed from functions with ipa-reference disabled.
2657         (get_read_write_all_from_node): When ipa-reference is disabled, use the
2658         node flags.
2659         (gate): Enable for LTO.
2660         (ignore_edge_p): New function.
2661         (propagate): Skip functions w/o ipa-reference analysis.
2662         * optc-save-gen.awk: Handle optimize_debug correctly.
2663         * opth-gen.awk: Likewise.
2664         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
2665         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
2666         fira-share-save-slots, fira-share-spill-slots,
2667         fmodulo-sched-allow-regmoves, fpartial-inlining,
2668         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
2669         ftracer, ftree-parallelize-loops, fassociative-math,
2670         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
2671         Optimization
2672         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
2673         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
2674         Optimization.
2675         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
2676         Fix for IPA.
2678 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
2680         PR ipa/64378
2681         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
2682         flag correctly.
2683         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
2685 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
2687         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
2688         Remove duplicate option listings.
2690 2015-01-18  Felix Yang  <felix.yang@huawei.com>
2692         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
2693         (autofdo_source_profile::get_callsite_total_count,
2694         function_instance::get_function_instance_by_decl,
2695         string_table::get_index, string_table::get_index_by_decl,
2696         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
2697         Fix comment typos. Reformatting and minor code rearrangement.
2699 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2701         * config/rs6000/rs6000.md (probe_stack): Delete.
2702         (probe_stack_address): New.
2704 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2706         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
2707         to test for 32-bit ABIs, not !TARGET_POWERPC64.
2709 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
2711         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
2712         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
2713         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
2714         snafu.
2715         (rs6000_libcall_value): Use the new function.
2717 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
2719         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
2721 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2723         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
2724         implement a more precise life analysis for it during backward scan.
2726 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
2728         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
2730 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
2732         PR rtl-optimization/52773
2733         * calls.c (emit_library_call_value): When pushing arguments use
2734         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
2735         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
2736         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
2738 2015-01-17  Jeff Law  <law@redhat.com>
2740         PR rtl-optimization/32790
2741         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
2742         not ZERO_EXTEND in SET_DESTs.
2744 2015-01-17  Alan Modra  <amodra@gmail.com>
2746         * cprop.c (do_local_cprop): Revert last change.
2748 2015-01-16  DJ Delorie  <dj@redhat.com>
2749             Nick Clifton  <nickc@redhat.com>
2751         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
2752         (addhi3_real): Likewise.  Fix [HL+0] syntax.
2753         (subqi3_real): Likewise.
2754         (subhi3_real): Likewise.
2755         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
2756         (cbranchhi4_real): Likewise.
2757         (cbranchhi4_real_inverted): Likewise.
2758         (cbranchsi4_real_lt): Likewise.
2759         (cbranchsi4_real_ge): Likewise.
2760         (cbranchsi4_real_ge): Likewise.
2761         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
2762         (sub<mode>3_virt): Likewise.
2763         (cbranchqi4_virt): Likewise.
2764         (cbranchhi4_virt): Likewise.
2765         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
2766         always use '[reg+imm]' even when imm is zero.
2767         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
2768         (rl78_general_operand): New.
2769         (rl78_nonimmediate_operand): New.
2770         (rl78_nonfar_operand): Use them.
2771         (rl78_nonfar_nonimm_operand): Likewise.
2772         (rl78_stack_based_mem): Fix.
2773         * config/rl78/constraints.md (Ibqi): New.
2774         (IBqi): New.
2775         (Wsa): New.
2776         (Wsf): New.
2777         (Cs1): Fix.
2778         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
2779         (iorqi3): Likewise.
2780         (xorqi3): Likewise.
2781         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
2783         * config/rl78/constrains (Qs8): New constraint.
2784         * config/rl78/rl78.c (rl78_flags_already_set): New function.
2785         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
2786         * config/rl78/rl78-real.md (update_Z): New attribute.
2787         Update patterns to set it.
2788         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
2789         shorter compare and branch sequence can be used.
2790         (cbranchhi4_real): Likewise.
2791         (cbranchhi4_real_inverted): Likewise.
2793         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
2794         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
2795         address space.
2796         * config/rl78/rl78.c (rl78_get_name_encoding): New.
2797         (rl78_option_override): Allow -mes0 only if C.
2798         (characterize_address): Support subregs of symbol_refs.
2799         (rl78_addr_space_address_mode): Move.  Add __near.
2800         (rl78_far_p): Likewise.
2801         (rl78_addr_space_pointer_mode): Likewise.
2802         (rl78_as_legitimate_address): Likewise.
2803         (rl78_addr_space_subset_p): Likewise.
2804         (rl78_addr_space_convert): Likewise.
2805         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
2806         symbols with -mes0.
2807         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
2808         addressing.
2809         (rl78_alloc_physical_registers_op1): Change logic to prefer
2810         symbol[BC] addressing.
2811         (frodata_section): New.
2812         (rl78_asm_init_sections): Initialize it.
2813         (rl78_select_section): Put __far readonly symbols in .frodata.
2814         (rl78_make_type_far): New.
2815         (rl78_insert_attributes): Force all readonly symbols to be
2816         __far when -mes0.
2817         (rl78_asm_out_integer): New.
2818         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
2819         * config/rl78/rl78.opt (-mes0): New.
2821         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
2822         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2823         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2824         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
2825         (rl78_saddr_p): New.
2826         (rl78_output_aligned_common): New.
2827         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
2828         (rl78_handle_saddr_attribute): New.
2829         (rl78_handle_naked_attribute): New.
2830         (rl78_attribute_table): Add saddr.
2831         (rl78_print_operand_1): Don't print '!' on saddr operands.
2832         (rl78_print_operand_1): Strip encodings.
2833         (rl78_sfr_p): New.
2834         (rl78_strip_name_encoding): New.
2835         (rl78_attrlist_to_encoding): New.
2836         (rl78_encode_section_info): New.
2837         (rl78_asm_init_sections): New.
2838         (rl78_select_section): New.
2839         (rl78_output_labelref): New.
2840         (rl78_output_aligned_common): New.
2841         (rl78_asm_out_integer): New.
2842         (rl78_asm_ctor_dtor): New.
2843         (rl78_asm_constructor): New.
2844         (rl78_asm_destructor): New.
2846         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
2847         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
2848         (transcode_memory_rtx): Update.
2849         (rl78_expand_epilogue): Use A_REG instead of 0.
2851 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2853         * config/arm/arm-protos.h (struct tune_params): New field
2854         sched_autopref_queue_depth.
2855         * config/arm/arm.c (sched-int.h): Include header.
2856         (arm_first_cycle_multipass_dfa_lookahead_guard,)
2857         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
2858         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
2859         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
2860         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
2861         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
2862         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
2863         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
2864         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
2865         * config/arm/t-arm (arm.o): Update.
2866         * haifa-sched.c (update_insn_after_change): Update.
2867         (rank_for_schedule): Use auto-prefetcher model, if requested.
2868         (autopref_multipass_init): New static function.
2869         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
2870         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
2871         variable for debug dumps.
2872         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
2873         (autopref_multipass_dfa_lookahead_guard): New global function that
2874         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
2875         (init_h_i_d): Update.
2876         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
2877         * sched-int.h (enum autopref_multipass_data_status): New const enum.
2878         (autopref_multipass_data_): Structure for auto-prefetcher data.
2879         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
2880         (struct _haifa_insn_data:autopref_multipass_data): New field.
2881         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
2882         (autopref_multipass_dfa_lookahead_guard): Declare.
2884 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2886         * rtlanal.c (get_base_term): Handle SCRATCH.
2888 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2890         * config/aarch64/aarch64.c
2891         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
2892         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2893         * config/arm/arm.c
2894         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
2895         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2897 2015-01-17  Alan Modra  <amodra@gmail.com>
2899         * cprop.c (do_local_cprop): Disallow replacement of fixed
2900         hard registers.
2902 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2904         PR target/62066
2905         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
2906         early return 0.
2908 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2910         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
2911         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
2913 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2915         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
2916         * config/arm/thumb1.md: ... Here.
2918 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2920         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
2921         TImode for TARGET_32BIT.
2923 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2925         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
2926         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
2927         as ...
2928         (rs6000_abi_word_mode): New function.
2930 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2932         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
2933         instead of UNITS_PER_WORD to describe the size of stack slots.
2935 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2937         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
2938         as rs6000_promote_function_mode.  Move comment to there.
2939         (rs6000_promote_function_mode): New function.
2941 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
2943         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
2944         -mpowerpc64 is active.
2946 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
2948         PR middle-end/64353
2949         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
2950         virtuals on start.
2952 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
2954         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
2955         introduced in revision 219724.
2957 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2958             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2960         PR target/64263
2961         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
2962         destination is not a GP reg.
2963         (*movdi_aarch64): Likewise.
2965 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
2967         PR target/64623
2968         * config/rs6000/default64.h: Revert ISA change.
2970 2015-01-16  Richard Biener  <rguenther@suse.de>
2972         PR middle-end/64614
2973         * tree-ssa-uninit.c: Include tree-cfg.h.
2974         (MAX_SWITCH_CASES): New define.
2975         (convert_control_dep_chain_into_preds): Handle switch statements.
2976         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
2977         (normalize_one_pred_1): Do not split bit-manipulations.
2978         Record (x & CST).
2980 2015-01-16  Richard Biener  <rguenther@suse.de>
2982         PR tree-optimization/64568
2983         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
2984         complex load rewriting for TARGET_MEM_REFs.
2986 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
2988         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
2990 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
2992         PR target/64149
2993         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
2994         variable.
2995         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
2996         (aarch64_lra_p): Remove.
2998 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
3000         PR target/64363
3001         * ipa-chkp.h (chkp_instrumentable_p): New.
3002         * ipa-chkp.c: Include tree-inline.h.
3003         (chkp_instrumentable_p): New.
3004         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
3005         Fix processing of not instrumentable functions.
3006         (chkp_versioning): Use chkp_instrumentable_p. Warn about
3007         not instrumentable functions.
3008         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
3009         chkp_instrumentable_p.
3010         * tree-inline.h (copy_forbidden): New.
3011         * tree-inline.c (copy_forbidden): Not static anymore.
3013 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3015         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
3016         ptr1, ptr2 unused.
3018 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3020         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
3021         type OP_OUT to OP_INOUT.
3023 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
3025         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
3026         (high x) y) to y if x and y have the same base.
3028 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
3030         * config/arm/cortex-a57.md: New.
3031         * config/aarch64/aarch64.md: Include it.
3032         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
3033         * config/aarch64/aarch64-tune.md: Regenerate.
3035 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3037         PR target/64015
3038         * ccmp.c (expand_ccmp_next): New function.
3039         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
3040         and compare insn sequence.
3041         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
3042         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
3043         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
3044         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
3045         (*ccmp_ior): Changed to ccmp_ior<mode>.
3046         (cmp<mode>): New pattern.
3047         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
3048         parameters.
3049         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
3051 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
3053         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
3054         _mm256_bsrli_epi128): New.
3055         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
3057 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
3059         * expmed.c (store_bit_field_using_insv): Improve warning message.
3060         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
3062 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
3064         PR rtl-optimization/64011
3065         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
3066         there is partial overflow.
3068 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3070         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
3071         prototype.
3072         (nds32_expand_epilogue_v3pop): Likewise.
3073         * config/nds32/nds32.md (sibcall): Define this for sibling call
3074         optimization.
3075         (sibcall_register): Likewise.
3076         (sibcall_immediate): Likewise.
3077         (sibcall_value): Likewise.
3078         (sibcall_value_register): Likewise.
3079         (sibcall_value_immediate): Likewise.
3080         (sibcall_epilogue): Likewise.
3081         (epilogue): Pass false to indicate this is not a sibcall epilogue.
3082         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
3083         (nds32_expand_epilogue_v3pop): Likewise.
3085 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3087         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
3088         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
3089         (return_internal): New.
3090         (return): Define this named pattern.
3091         (simple_return): Define this named pattern.
3092         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
3093         pattern instead of unspec_volatile_func_return.
3094         (nds32_expand_epilogue_v3pop): Likewise.
3095         (nds32_can_use_return_insn): New function.
3097 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3099         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
3100         * config/nds32/nds32.md (pop25return): New.
3101         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
3102         pop25return pattern.
3104 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3106         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
3107         -mforbid-fp-as-gp, and -mex9 options.
3109 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
3111         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
3112         remove -mgp-direct option.
3114 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3116         * doc/invoke.texi (--param early-inlining-insns): Update default value.
3117         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
3119 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3121         * ipa-inline.c (inline_small_functions): Work around hints
3122         cache issue.
3124 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
3126         PR target/59710
3127         * doc/invoke.texi (Option Summary): Document new Nios II
3128         -mgpopt= syntax.
3129         (Nios II Options): Likewise.
3130         * config/nios2/nios2.opt: Add -mgpopt= option support.
3131         Modify existing -mgpopt and -mno-gpopt options to be aliases.
3132         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
3133         * config/nios2/nios2.c (nios2_option_override): Adjust
3134         -mgpopt defaulting.
3135         (nios2_in_small_data_p): Return true for explicit small data
3136         sections even with -G0.
3137         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
3138         option choices.
3140 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3142         PR ipa/64612
3143         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
3144         of comdat locals.
3145         (inline_call): Fix removal of aliases.
3147 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
3149         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
3150         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
3151         * opts.c (common_handle_option): Add -fsanitize=vptr.
3152         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
3153         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
3154         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
3155         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
3156         (ubsan_expand_vptr_ifn): New prototype.
3157         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
3158         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
3159         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
3160         expand_LOOP_VECTORIZED): Make argument nameless, remove
3161         ATTRIBUTE_UNUSED.
3162         (expand_UBSAN_VPTR): New function.
3163         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
3164         in fn spec.
3165         (UBSAN_VPTR): New internal function.
3166         * sanopt.c (tree_map_traits): Renamed to ...
3167         (sanopt_tree_map_traits): ... this.
3168         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
3169         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
3170         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
3171         (maybe_optimize_ubsan_vptr_ifn): New function.
3172         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
3173         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
3174         -fsanitize=vptr.
3175         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
3176         internal calls like pure functions for aliasing, even when they
3177         have other side-effects that prevent making them ECF_PURE.
3178         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
3179         (ubsan_expand_vptr_ifn): New function.
3181 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
3183         PR rtl-optimization/64110
3184         * stmt.c (parse_output_constraint): Process '^' and '$'.
3185         (parse_input_constraint): Ditto.
3186         * lra-constraints.c (process_alt_operands): Process the new
3187         constraints.
3188         * ira-costs.c (record_reg_classes): Process the new constraint
3189         '^'.
3190         * genoutput.c (indep_constraints): Add '^' and '$'.
3191         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
3192         * doc/md.texi: Add description of the new constraints.
3194 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
3195             Bernd Schmidt  <bernds@codesourcery.com>
3196             Cesar Philippidis  <cesar@codesourcery.com>
3197             James Norris  <jnorris@codesourcery.com>
3198             Tom de Vries  <tom@codesourcery.com>
3199             Ilmir Usmanov  <i.usmanov@samsung.com>
3200             Dmitry Bocharnikov  <dmitry.b@samsung.com>
3201             Evgeny Gavrin  <e.gavrin@samsung.com>
3202             Jakub Jelinek  <jakub@redhat.com>
3204         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
3205         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
3206         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
3207         New function types.
3208         * builtins.c: Include "gomp-constants.h".
3209         (expand_builtin_acc_on_device): New function.
3210         (expand_builtin, is_inexpensive_builtin): Handle
3211         BUILT_IN_ACC_ON_DEVICE.
3212         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
3213         New macros.
3214         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
3215         flag_openmp.
3216         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
3217         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
3218         i386/intelmic-offload.h.
3219         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
3220         to libgomp and its dependencies.
3221         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
3222         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
3223         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
3224         * config/ia64/hpux.h (LIB_SPEC): Likewise.
3225         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
3226         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
3227         * doc/generic.texi: Update for OpenACC changes.
3228         * doc/gimple.texi: Likewise.
3229         * doc/invoke.texi: Likewise.
3230         * doc/sourcebuild.texi: Likewise.
3231         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
3232         GF_OMP_FOR_KIND_OACC_LOOP.
3233         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
3234         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
3235         GF_OMP_TARGET_KIND_OACC_UPDATE,
3236         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3237         Dump more data.
3238         * gimple.c: Update comments for OpenACC changes.
3239         * gimple.def: Likewise.
3240         * gimple.h: Likewise.
3241         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
3242         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3243         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
3244         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
3245         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
3246         appropriate place.
3247         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
3248         * gimplify.c: Include "gomp-constants.h".
3249         Update comments for OpenACC changes.
3250         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
3251         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
3252         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3253         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
3254         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3255         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3256         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
3257         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3258         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3259         OMP_CLAUSE_SEQ.
3260         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
3261         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3262         OMP_CLAUSE_SET_MAP_KIND.
3263         (gimplify_oacc_cache): New function.
3264         (gimplify_omp_for): Handle OACC_LOOP.
3265         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
3266         OACC_DATA.
3267         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
3268         OACC_EXIT_DATA, OACC_UPDATE.
3269         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
3270         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
3271         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
3272         (gimplify_body): Consider flag_openacc next to flag_openmp.
3273         * lto-streamer-out.c: Include "gomp-constants.h".
3274         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
3275         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
3276         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
3277         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
3278         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
3279         (BUILT_IN_ACC_ON_DEVICE): New builtins.
3280         * omp-low.c: Include "gomp-constants.h".
3281         Update comments for OpenACC changes.
3282         (struct omp_context): Add reduction_map, gwv_below, gwv_this
3283         members.
3284         (extract_omp_for_data, use_pointer_for_field, install_var_field)
3285         (new_omp_context, delete_omp_context, scan_sharing_clauses)
3286         (create_omp_child_function, scan_omp_for, scan_omp_target)
3287         (check_omp_nesting_restrictions, lower_reduction_clauses)
3288         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
3289         Update for OpenACC changes.
3290         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
3291         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
3292         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
3293         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
3294         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
3295         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
3296         OMP_CLAUSE_MAP_*.
3297         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3298         Handle GF_OMP_FOR_KIND_OACC_LOOP.
3299         (expand_omp_target, lower_omp_target): Handle
3300         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
3301         GF_OMP_TARGET_KIND_OACC_UPDATE,
3302         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
3303         GF_OMP_TARGET_KIND_OACC_DATA.
3304         (pass_expand_omp::execute, execute_lower_omp)
3305         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
3306         flag_openmp.
3307         (offload_symbol_decl): New variable.
3308         (oacc_get_reduction_array_id, oacc_max_threads)
3309         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
3310         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
3311         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
3312         (oacc_gimple_assign, oacc_initialize_reduction_data)
3313         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
3314         functions.
3315         (is_targetreg_ctx): Remove function.
3316         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
3317         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
3318         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3319         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
3320         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
3321         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
3322         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
3323         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
3324         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
3325         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
3326         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
3327         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
3328         * tree-core.h: Update comments for OpenACC changes.
3329         (enum omp_clause_map_kind): Remove.
3330         (struct tree_omp_clause): Change type of map_kind member from enum
3331         omp_clause_map_kind to unsigned char.
3332         * tree-inline.c: Update comments for OpenACC changes.
3333         * tree-nested.c: Likewise.  Include "gomp-constants.h".
3334         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
3335         (convert_tramp_reference_stmt, convert_gimple_call): Update for
3336         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
3337         OMP_CLAUSE_SET_MAP_KIND.
3338         * tree-pretty-print.c: Include "gomp-constants.h".
3339         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
3340         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
3341         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
3342         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
3343         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3344         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
3345         instead of OMP_CLAUSE_MAP_*.
3346         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
3347         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
3348         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
3349         * tree-streamer-in.c: Include "gomp-constants.h".
3350         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
3351         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
3352         * tree-streamer-out.c: Include "gomp-constants.h".
3353         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
3354         OMP_CLAUSE_MAP_*.
3355         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
3356         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
3357         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
3358         * tree.c (omp_clause_num_ops): Update accordingly.
3359         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
3360         Likewise.
3361         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
3362         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
3363         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
3364         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
3365         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
3366         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
3367         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
3368         (OMP_CLAUSE_SET_MAP_KIND): New macro.
3369         * varpool.c (varpool_node::get_create): Consider flag_openacc next
3370         to flag_openmp.
3371         * config/i386/intelmic-offload.h: New file.
3372         * config/nvptx/offload.h: Likewise.
3374 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3376         * explow.h: Remove duplicate contents.
3377         * dojump.h: Likewise.
3379 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
3381         * arm.c (arm_xgene_tune): Add default initializer for instruction
3382         fusion.
3384 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
3386         PR ipa/64068
3387         PR ipa/64559
3388         * ipa.c (symbol_table::remove_unreachable_nodes):
3389         Do not put abstract origins into boundary.
3391 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
3393         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
3394         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
3396 2015-01-15  Steve Ellcey  <sellcey@mips.com>
3398         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
3399         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
3400         builtins.def, and chkp-builtins.def.
3402 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
3404         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
3405         ISA 2.7 (POWER8).
3407 2015-01-15  Richard Biener  <rguenther@suse.de>
3409         PR tree-optimization/61743
3410         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
3411         information on PHIs for some simple cases.
3413 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3415         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
3416         Include xgene1.md.
3417         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
3418         * config/arm/arm-cores.def (xgene1): New entry.
3419         * config/arm/arm-tables.opt: Regenerate.
3420         * config/arm/arm-tune.md: Regenerate.
3421         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
3423 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3425         * tree-if-conv.c: Include hash-map.h.
3426         (aggressive_if_conv): New variable.
3427         (fold_build_cond_expr): Add simplification of non-zero condition.
3428         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
3429         destination block is not always executed.
3430         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
3431         than two predecessors if AGGRESSIVE_IF_CONV is true.
3432         (if_convertible_stmt_p): Fix commentary.
3433         (all_preds_critical_p): New function.
3434         (has_pred_critical_p): New function.
3435         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
3436         BB can have more than two predecessors and all incoming edges can be
3437         critical.
3438         (predicate_bbs): Skip predication for loop exit block, use build2_loc
3439         to compute predicate for true edge.
3440         (find_phi_replacement_condition): Delete this function.
3441         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
3442         Allow interchange PHI arguments if EXTENDED is false.
3443         Change check that block containing reduction statement candidate
3444         is predecessor of phi-block since phi may have more than two arguments.
3445         (phi_args_hash_traits): New helper structure.
3446         (struct phi_args_hash_traits): New type.
3447         (phi_args_hash_traits::hash): New function.
3448         (phi_args_hash_traits::equal_keys): New function.
3449         (gen_phi_arg_condition): New function.
3450         (predicate_scalar_phi): Add handling of phi nodes with more than two
3451         arguments, delete COND and TRUE_BB arguments, insert body of
3452         find_phi_replacement_condition to predicate ordinary phi nodes.
3453         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
3454         delete call of find_phi_replacement_condition and invoke
3455         predicate_scalar_phi with two arguments.
3456         (insert_gimplified_predicates): Add assert that non-predicated block
3457         don't have statements to insert.
3458         (ifcvt_split_critical_edges): New function.
3459         (ifcvt_split_def_stmt): Likewise.
3460         (ifcvt_walk_pattern_tree): Likewise.
3461         (stmt_is_root_of_bool_pattern): Likewise.
3462         (ifcvt_repair_bool_pattern): Likewise.
3463         (ifcvt_local_dce): Likewise.
3464         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
3465         is copy of inner or outer loop force_vectorize field, invoke
3466         ifcvt_split_critical_edges, ifcvt_local_dce and
3467         ifcvt_repair_bool_pattern for aggressive if-conversion.
3469 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
3471         * config/aarch64/aarch64.md: Include xgene1.md.
3472         * config/aarch64/xgene1.md: New file.
3474 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
3476         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
3477         xgene1 (APM XGene-1) core definition.
3478         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
3479         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
3480         * doc/invoke.texi: Document -mcpu=xgene1.
3482 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3484         * dojump.h: New header file.
3485         * explow.h: Likewise.
3486         * expr.h: Remove includes.
3487         Move expmed.c prototypes to expmed.h.
3488         Move dojump.c prototypes to dojump.h.
3489         Move alias.c prototypes to alias.h.
3490         Move explow.c prototypes to explow.h.
3491         Move calls.c prototypes to calls.h.
3492         Move emit-rtl.c prototypes to emit-rtl.h.
3493         Move varasm.c prototypes to varasm.h.
3494         Move stmt.c prototypes to stmt.h.
3495         (saved_pending_stack_adjust): Move to dojump.h.
3496         (adjust_address): Move to explow.h.
3497         (adjust_address_nv): Move to emit-rtl.h.
3498         (adjust_bitfield_address): Likewise.
3499         (adjust_bitfield_address_size): Likewise.
3500         (adjust_bitfield_address_nv): Likewise.
3501         (adjust_automodify_address_nv): Likewise.
3502         * explow.c (expr_size): Move to expr.c.
3503         (int_expr_size): Likewise.
3504         (tree_expr_size): Likewise.
3505         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3506         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3507         * genemit.c (main): Generate includes statistics.h, real.h,
3508         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
3509         stmt.h.
3510         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
3511         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
3512         explow.h, emit-rtl.h, stmt.h.
3513         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
3514         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
3515         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
3516         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
3517         emit-rtl.h, varasm.h, stmt.h.
3518         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
3519         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
3520         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
3521         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
3522         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3523         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
3524         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
3525         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
3526         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
3527         tm.h tree.h varasm.h vec.h wide-int.h.
3528         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3529         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3530         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
3531         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
3532         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
3533         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
3534         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
3535         * loop-iv.c: Likewise.
3536         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
3537         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
3538         statistics.h stmt.h tree.h varasm.h wide-int.h.
3539         * lra-constraints.c: Likewise.
3540         * lra-eliminations.c: Likewise.
3541         * lra-lives.c: Likewise.
3542         * lra-remat.c: Likewise.
3543         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3544         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
3545         statistics.h stmt.h tree.h varasm.h wide-int.h.
3546         * hw-doloop.c: Likewise.
3547         * ira-color.c: Likewise.
3548         * ira-emit.c: Likewise.
3549         * loop-doloop.c: Likewise.
3550         * loop-invariant.c: Likewise.
3551         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3552         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
3553         statistics.h stmt.h tree.h varasm.h wide-int.h.
3554         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
3555         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
3556         statistics.h stmt.h tree.h varasm.h wide-int.h.
3557         * combine-stack-adj.c: Likewise.
3558         * cse.c: Likewise.
3559         * ddg.c: Likewise.
3560         * ifcvt.c: Likewise.
3561         * ira-costs.c: Likewise.
3562         * jump.c: Likewise.
3563         * lra-coalesce.c: Likewise.
3564         * lra-spills.c: Likewise.
3565         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3566         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
3567         stmt.h varasm.h wide-int.h.
3568         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
3569         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3570         varasm.h.
3571         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
3572         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
3573         statistics.h stmt.h varasm.h wide-int.h.
3574         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
3575         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
3576         varasm.h wide-int.h.
3577         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
3578         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3579         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
3580         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
3581         statistics.h stmt.h.
3582         * config/tilepro/tilepro.c: Likewise.
3583         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
3584         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
3585         * config/pdp11/pdp11.c: Likewise.
3586         * config/xtensa/xtensa.c: Likewise.
3587         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
3588         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
3589         varasm.h.
3590         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3591         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3592         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
3593         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3594         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
3595         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
3596         * rtl-chkp.c: Likewise.
3597         * tree-chkp-opt.c: Likewise.
3598         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
3599         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
3600         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
3601         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3602         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3603         statistics.h stmt.h.
3604         * tree-vect-data-refs.c: Likewise.
3605         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
3606         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3607         rtl.h statistics.h stmt.h varasm.h.
3608         * internal-fn.c: Likewise.
3609         * ipa-icf-gimple.c: Likewise.
3610         * lto-section-out.c: Likewise.
3611         * tree-data-ref.c: Likewise.
3612         * tree-nested.c: Likewise.
3613         * tree-outof-ssa.c: Likewise.
3614         * tree-predcom.c: Likewise.
3615         * tree-pretty-print.c: Likewise.
3616         * tree-scalar-evolution.c: Likewise.
3617         * tree-ssa-strlen.c: Likewise.
3618         * tree-vect-loop.c: Likewise.
3619         * tree-vect-patterns.c: Likewise.
3620         * tree-vect-slp.c: Likewise.
3621         * tree-vect-stmts.c: Likewise.
3622         * tsan.c: Likewise.
3623         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3624         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
3625         stmt.h.
3626         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
3627         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3628         statistics.h stmt.h varasm.h.
3629         * loop-unroll.c: Likewise.
3630         * ubsan.c: Likewise.
3631         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
3632         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
3633         stmt.h varasm.h.
3634         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3635         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
3636         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
3637         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3638         statistics.h stmt.h.
3639         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
3640         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
3641         statistics.h stmt.h varasm.h.
3642         * gimple-match-head.c: Likewise.
3643         * lto-cgraph.c: Likewise.
3644         * lto-section-in.c: Likewise.
3645         * lto-streamer-in.c: Likewise.
3646         * lto-streamer-out.c: Likewise.
3647         * tree-affine.c: Likewise.
3648         * tree-cfg.c: Likewise.
3649         * tree-cfgcleanup.c: Likewise.
3650         * tree-if-conv.c: Likewise.
3651         * tree-into-ssa.c: Likewise.
3652         * tree-ssa-alias.c: Likewise.
3653         * tree-ssa-copyrename.c: Likewise.
3654         * tree-ssa-dse.c: Likewise.
3655         * tree-ssa-forwprop.c: Likewise.
3656         * tree-ssa-live.c: Likewise.
3657         * tree-ssa-math-opts.c: Likewise.
3658         * tree-ssa-pre.c: Likewise.
3659         * tree-ssa-sccvn.c: Likewise.
3660         * tree-tailcall.c: Likewise.
3661         * tree-vect-generic.c: Likewise.
3662         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3663         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
3664         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3665         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
3666         * varasm.c: Likewise.
3667         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3668         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
3669         varasm.h.
3670         * init-regs.c: Likewise.
3671         * ira.c: Likewise.
3672         * omp-low.c: Likewise.
3673         * stack-ptr-mod.c: Likewise.
3674         * tree-ssa-reassoc.c: Likewise.
3675         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3676         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
3677         varasm.h.
3678         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3679         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
3680         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3681         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
3682         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3683         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
3684         * tree-ssa-phiopt.c: Likewise.
3685         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3686         fixed-value.h hashtab.h real.h statistics.h stmt.h.
3687         * config/fr30/fr30.c: Likewise.
3688         * config/frv/frv.c: Likewise.
3689         * expr.c: Likewise.
3690         * final.c: Likewise.
3691         * optabs.c: Likewise.
3692         * passes.c: Likewise.
3693         * simplify-rtx.c: Likewise.
3694         * stmt.c: Likewise.
3695         * toplev.c: Likewise.
3696         * var-tracking.c: Likewise.
3697         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3698         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3699         * lower-subreg.c: Likewise.
3700         * postreload-gcse.c: Likewise.
3701         * ree.c: Likewise.
3702         * reginfo.c: Likewise.
3703         * store-motion.c: Likewise.
3704         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3705         fixed-value.h hashtab.h real.h stmt.h varasm.h.
3706         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3707         fixed-value.h hashtab.h statistics.h stmt.h.
3708         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3709         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
3710         * except.c: Likewise.
3711         * explow.c: Likewise.
3712         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3713         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
3714         varasm.h.
3715         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3716         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
3717         * tree-ssa-structalias.c: Likewise.
3718         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3719         fixed-value.h insn-config.h real.h statistics.h.
3720         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3721         fixed-value.h insn-config.h real.h statistics.h stmt.h.
3722         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3723         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3724         * cfgbuild.c: Likewise.
3725         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3726         fixed-value.h real.h rtl.h statistics.h stmt.h.
3727         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3728         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3729         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3730         fixed-value.h real.h statistics.h stmt.h.
3731         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
3732         fixed-value.h real.h statistics.h stmt.h varasm.h.
3733         * cprop.c: Likewise.
3734         * modulo-sched.c: Likewise.
3735         * postreload.c: Likewise.
3736         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3737         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
3738         statistics.h stmt.h varasm.h.
3739         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
3740         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3741         rtl.h statistics.h stmt.h varasm.h.
3742         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
3743         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
3744         varasm.h.
3745         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
3746         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
3747         varasm.h.
3748         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
3749         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
3750         varasm.h.
3751         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
3752         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3753         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3754         function.h real.h statistics.h stmt.h varasm.h.
3755         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3756         insn-config.h real.h statistics.h stmt.h.
3757         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
3758         statistics.h stmt.h.
3759         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
3760         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
3761         statistics.h stmt.h varasm.h.
3762         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
3763         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
3764         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3765         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
3766         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
3767         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
3768         statistics.h stmt.h varasm.h.
3769         * ipa-polymorphic-call.c: Likewise.
3770         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
3771         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3772         statistics.h stmt.h.
3773         * config/c6x/c6x.c: Likewise.
3774         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
3775         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
3776         statistics.h stmt.h varasm.h.
3777         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
3778         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
3779         stmt.h varasm.h.
3780         * ipa-split.c: Likewise.
3781         * tree-eh.c: Likewise.
3782         * tree-ssa-dce.c: Likewise.
3783         * tree-ssa-loop-niter.c: Likewise.
3784         * tree-vrp.c: Likewise.
3785         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
3786         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
3787         stmt.h.
3788         * config/nds32/nds32-fp-as-gp.c: Likewise.
3789         * config/nds32/nds32-intrinsic.c: Likewise.
3790         * config/nds32/nds32-isr.c: Likewise.
3791         * config/nds32/nds32-md-auxiliary.c: Likewise.
3792         * config/nds32/nds32-memory-manipulation.c: Likewise.
3793         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3794         * config/nds32/nds32-predicates.c: Likewise.
3795         * config/nds32/nds32.c: Likewise.
3796         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
3797         fixed-value.h hashtab.h real.h statistics.h.
3798         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
3799         fixed-value.h hashtab.h real.h statistics.h stmt.h.
3800         * config/arm/arm.c: Likewise.
3801         * config/avr/avr.c: Likewise.
3802         * config/bfin/bfin.c: Likewise.
3803         * config/h8300/h8300.c: Likewise.
3804         * config/i386/i386.c: Likewise.
3805         * config/ia64/ia64.c: Likewise.
3806         * config/iq2000/iq2000.c: Likewise.
3807         * config/m32c/m32c.c: Likewise.
3808         * config/m32r/m32r.c: Likewise.
3809         * config/m68k/m68k.c: Likewise.
3810         * config/mcore/mcore.c: Likewise.
3811         * config/mep/mep.c: Likewise.
3812         * config/mips/mips.c: Likewise.
3813         * config/mn10300/mn10300.c: Likewise.
3814         * config/moxie/moxie.c: Likewise.
3815         * config/pa/pa.c: Likewise.
3816         * config/rl78/rl78.c: Likewise.
3817         * config/rx/rx.c: Likewise.
3818         * config/s390/s390.c: Likewise.
3819         * config/sh/sh.c: Likewise.
3820         * config/sparc/sparc.c: Likewise.
3821         * config/spu/spu.c: Likewise.
3822         * config/stormy16/stormy16.c: Likewise.
3823         * config/v850/v850.c: Likewise.
3824         * config/vax/vax.c: Likewise.
3825         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
3826         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
3827         * config/msp430/msp430.c: Likewise.
3828         * predict.c: Likewise.
3829         * value-prof.c: Likewise.
3830         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
3831         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
3832         * config/microblaze/microblaze.c: Likewise.
3833         * config/nios2/nios2.c: Likewise.
3834         * config/rs6000/rs6000.c: Likewise.
3835         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3836         insn-config.h real.h rtl.h statistics.h stmt.h.
3837         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
3838         insn-config.h real.h statistics.h stmt.h.
3839         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
3840         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
3841         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
3842         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
3843         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
3844         fixed-value.h real.h statistics.h stmt.h.
3845         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
3846         fixed-value.h statistics.h stmt.h.
3847         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
3848         stmt.h.
3850 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
3852         * gengtype.c (create_user_defined_type): Workaround
3853         -Wmaybe-uninitialized false positives.
3854         * cse.c (fold_rtx): Likewise.
3855         * loop-invariant.c (gain_for_invariant): Likewise.
3857 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
3859         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
3860         set the memory attributes in all cases but clear MEM_EXPR if need be.
3862 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
3864         PR tree-optimization/64434
3865         * cfgexpand.c (reorder_operands): New function.
3866         (expand_gimple_basic_block): Insert call of reorder_operands if
3867         optimized is true.
3869 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
3871         * config/mips/micromips.md (*swp): Remove explicit parallel.
3872         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
3873         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
3874         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
3875         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
3876         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
3877         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
3878         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
3879         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
3880         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
3881         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
3882         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
3883         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
3884         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
3885         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
3886         (mips_wrdsp): Likewise.
3887         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
3888         parallel.
3889         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
3890         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
3891         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
3892         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
3893         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
3894         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
3895         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
3896         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
3897         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
3899 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3901         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
3902         (mips_print_operand): Support 'y' to print exact log2 in decimal
3903         of a const_int.
3904         * config/mips/mips.h (ISA_HAS_LSA): New define.
3905         (ISA_HAS_DLSA): Likewise.
3906         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
3907         * config/mips/predicates.md (const_immlsa_operand): New predicate.
3909 2015-01-15  Martin Liska  <mliska@suse.cz>
3911         PR target/64377
3912         * optc-save-gen.awk: Add support for array types.
3914 2015-01-15  Richard Biener  <rguenther@suse.de>
3916         PR middle-end/64365
3917         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
3918         for MEM_REF access functions with the same base can never partially
3919         overlap.
3921 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
3923         * common.opt: New option -fstack-protector-explicit.
3924         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
3925         (stack_protect_decl_phase): Handle stack_protect attribute for
3926         explicit stack protection requests.
3927         (expand_used_vars): Similarly.
3928         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
3929         * doc/extend.texi: Add documentation for "stack_protect" attribute.
3930         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
3932 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
3934         PR target/53988
3935         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
3936         reg-reg copies.
3937         (sh_extending_set_of_reg): New struct.
3938         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
3939         sh_remove_reg_dead_or_unused_notes): New Declarations.
3940         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
3941         sh_find_extending_set_of_reg, sh_split_tst_subregs,
3942         sh_extending_set_of_reg::use_as_extended_reg): New functions.
3943         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
3944         convert to insn_and_split and use new function sh_split_tst_subregs.
3946 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
3948         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
3949         option.
3950         (Optimization Options): Move -fuse-ld documentation to...
3951         (Link Options): ...here.
3953 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3955         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
3956         offsets.
3957         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
3958         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
3959         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
3960         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
3961         instead of ZR for the memory operand of LL/SC.
3962         (compare_and_swap_12, sync_add<mode>): Likewise.
3963         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
3964         (sync_new_<optab>_12, sync_nand_12): Likewise.
3965         (sync_old_nand_12, sync_new_nand_12): Likewise.
3966         (sync_sub<mode>, sync_old_add<mode>): Likewise.
3967         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
3968         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
3969         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
3970         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
3971         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
3972         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
3973         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
3974         * doc/md.texi (ZC): Update description.
3976 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
3978         * builtins.c (expand_builtin_atomic_exchange): Remove error when
3979         memory model is CONSUME.
3980         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
3981         expand_builtin_atomic_store): Change invalid memory model errors to
3982         warnings.
3983         (expand_builtin_atomic_clear): Change invalid model errors to warnings
3984         and issue warning for CONSUME.
3986 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
3988         * lto-cgraph: Update function comments for
3989         lto_symtab_encoder_encode_*.
3991 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
3993         * Makefile.in (site.exp): Do not set ENABLE_LTO.
3995 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
3997         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
3998         * lto-cgraph.c (select_what_to_stream): Remove argument, use
3999         lto_stream_offload_p instead.
4000         * lto-streamer.h (select_what_to_stream): Remove argument.
4001         * passes.c (ipa_write_summaries): Likewise.
4002         * tree-pass.h (ipa_write_summaries): Likewise.
4004 2015-01-14  Richard Biener  <rguenther@suse.de>
4006         PR tree-optimization/59354
4007         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
4008         groups larger than the slp group size as having gaps.
4010 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
4012         PR middle-end/59448
4013         * builtins.c (get_memmodel): Promote consume to acquire always.
4015 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4017         PR target/64386
4018         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
4019         V32HImode.
4021 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4023         PR target/64393
4024         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
4025         Enable AVX512BW.
4026         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
4027         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
4028         AVX512VBMI, as it implies AVX512BW.
4030 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
4032         PR target/64387
4033         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
4034         (vec_unpacks_hi_v16sf): Ditto.
4036 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4038         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
4039         is not available.
4041 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4043         * doc/invoke.texi (mapcs): Mention deprecation.
4044         (mapcs-frame): Likewise.
4046 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4048         PR target/64453
4049         * config/arm/arm.c (callee_saved_reg_p): Define.
4050         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
4051         register is callee saved instead of !call_used_regs[reg].
4052         (thumb1_compute_save_reg_mask): Likewise.
4054 2015-01-14  Hale Wang  <hale.wang@arm.com>
4056         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
4057         Cortex-M7.
4059 2015-01-14  Richard Biener  <rguenther@suse.de>
4061         PR lto/64415
4062         * tree-inline.c (insert_debug_decl_map): Check destination
4063         function MAY_HAVE_DEBUG_STMTS.
4064         (insert_init_debug_bind): Likewise.
4065         (insert_init_stmt): Remove redundant check.
4066         (remap_gimple_stmt): Drop debug stmts if the destination
4067         function has var-tracking assignments disabled.
4069 2015-01-14  Martin Liska  <mliska@suse.cz>
4071         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
4072         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
4074 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4076         PR target/64460
4077         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
4078         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
4080 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4082         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
4083         level from an ARCH; do not inject the default.
4084         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
4085         MIPS_ISA_LEVEL_SPEC.
4086         (MIPS_ISA_NAN2008_SPEC): Update comment.
4087         (BASE_DRIVER_SELF_SPECS): Likewise.
4088         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
4089         MIPS_DEFAULT_ISA_LEVEL_SPEC.
4090         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
4091         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
4092         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
4094 2015-01-14  Richard Biener  <rguenther@suse.de>
4096         PR tree-optimization/64493
4097         PR tree-optimization/64495
4098         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
4099         assign the proper vectorized PHI to the inner loop exit PHIs.
4101 2015-01-14  Joey Ye  <joey.ye@arm.com>
4103         * config/arm/arm.c (arm_compute_save_reg_mask):
4104         Do not save lr in case of tail call.
4105         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
4107 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
4109         * tree-vrp.c (check_array_ref): Emit more warnings
4110         for warn_array_bounds >= 2.
4111         * common.opt: New option -Warray-bounds=.
4112         * doc/invoke.texi: Document -Warray-bounds=.
4114 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
4116         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
4117         (mforbid-fp-as-gp): Remove.
4118         (mex9): Remove.
4119         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
4120         (nds32_symbol_load_store_p): Remove.
4121         (nds32_fp_as_gp_check_available): Clean up implementation.
4122         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
4123         cases.
4124         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
4125         fp-as-gp and ex9 cases.
4127 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4129         * tree-profile.c (init_ic_make_global_vars): Drop workaround
4130         for bintuils bug 14342.
4131         (init_ic_make_global_vars): Likewise.
4132         (gimple_init_edge_profiler): Likewise.
4133         (gimple_gen_ic_func_profiler): Likewise.
4135 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4137         * ipa-inline.c (inline_small_functions): Swap the operands in
4138         enum.
4140 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4142         PR ipa/64481
4143         * ipa-inline-analysis.c (node_growth_cache): Remove.
4144         (initialize_growth_caches): Do not initialize it.
4145         (free_growth_caches): Do not free it.
4146         (do_estimate_growth): Rename to ...
4147         (estimate_growth): ... this one; drop growth cache code.
4148         (growth_likely_positive): Always go the heuristics way.
4149         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
4150         (reset_edge_caches): Do not reset node growth.
4151         (heap_edge_removal_hook): Do not maintain cache.
4152         (inline_small_functions): Likewise; strenghten sanity check.
4153         (ipa_inline): Do not maintain caches.
4154         * ipa-inline.h (node_growth_cache): Remove.
4155         (do_estimate_growth): Remove to ...
4156         (estimate_growth): this one; remove inline version.
4157         (reset_node_growth_cache): Remove.
4159 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
4161         PR ipa/64565
4162         * ipa-inline.c (inline_small_functions): Update callee keys after
4163         resolving speculation
4164         (inline_small_functions): Always check monotonicity of the queue.
4166 2015-01-13  Marek Polacek  <polacek@redhat.com>
4168         PR middle-end/64391
4169         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
4171 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
4173         PR rtl-optimization/64286
4174         * ree.c (combine_reaching_defs): Move part of comment earlier,
4175         remove !SCALAR_INT_MODE_P check.
4176         (add_removable_extension): Don't add vector mode
4177         extensions if all uses of the source register aren't the same
4178         vector extensions.
4180 2015-01-13  Renlin Li  <renlin.li@arm.com>
4182         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
4183         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4185 2015-01-13  Martin Liska  <mliska@suse.cz>
4187         * ipa-icf.c (sem_function::equals_private): Call new functions
4188         cl_target_option_print_diff and cl_optimization_print_diff.
4189         * optc-save-gen.awk (cl_target_option_print_diff): New function.
4190         (cl_optimization_print_diff): Likewise.
4191         * opth-gen.awk: Likewise.
4193 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
4195         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
4196         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
4197         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
4198         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
4199         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
4200         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
4202 2015-01-13  Andrew Pinski   <apinski@cavium.com>
4204         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
4205         instead of src mode.
4207 2015-01-13  Richard Biener  <rguenther@suse.de>
4209         PR lto/64373
4210         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
4211         DECL_CONTEXT.
4213 2015-01-13  Andrew Pinski   <apinski@cavium.com>
4215         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
4216         volatile mems.
4217         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4219 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
4221         PR middle-end/63974
4222         * cfgexpand.c (expand_computed_goto): Don't call
4223         convert_memory_address here.
4225 2015-01-13  Richard Biener  <rguenther@suse.de>
4227         PR tree-optimization/64406
4228         * tree-loop-distibution.c (pass_loop_distribution::execute):
4229         Reset the SCEV hashtable if we distributed anything.
4231 2015-01-13  Richard Biener  <rguenther@suse.de>
4233         PR tree-optimization/64404
4234         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
4235         SLP types for CSEd loads.
4237 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4239         PR tree-optimization/64436
4240         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
4241         merge of two symbolic numbers for a bitwise OR to ...
4242         (perform_symbolic_merge): This. Also fix computation of the range and
4243         end of the symbolic number corresponding to the result of a bitwise OR.
4245 2015-01-13  Richard Biener  <rguenther@suse.de>
4247         PR tree-optimization/64568
4248         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
4249         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
4251 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4253         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
4254         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
4256 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4258         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
4259         target-specific symbol_ref flag.
4260         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
4261         resides in rodata section.
4262         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
4263         (nds32_encode_section_info): New function.
4265 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4267         * config/nds32/nds32.md (call): Use pseudo instruction bal which
4268         clobbers TA_REGNUM if large code model is specified.
4269         (call_register): Likewise.
4270         (call_immediate): Likewise.
4271         (call_value): Likewise.
4272         (call_value_register): Likewise.
4273         (call_value_immediate): Likewise.
4275 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4277         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
4278         (TARGET_CMODEL_MEDIUM): New macro.
4279         (TARGET_CMODEL_LARGE): New macro.
4280         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
4281         code model setting in assembly code.
4283 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4285         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
4286         Remove MASK_GP_DIRECT flag.
4287         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
4288         one of the multilib default options.
4289         * config/nds32/nds32.opt (mgp-direct): Remove.
4290         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
4291         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
4293 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
4295         * config/nds32/nds32.opt (mcmodel): Add new option.
4296         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
4297         to describe code model.
4299 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
4301         PR target/64479
4302         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
4304 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4306         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
4307         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
4308         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
4309         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
4310         __builtin_sh_set_fpscr.
4312 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4314         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
4315         after a funtion name just to indicate it is a function.
4316         ([-fsanitize-undefined-trap-on-error]): Likewise.
4317         ([-fdbg-cnt=]): Likewise.
4318         ([-mmemcpy]): Likewise.
4319         ([-mflush-func]): Likewise.
4320         ([-msynci]): Likewise.
4322 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
4324         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
4325         example.
4327 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
4329         PR tree-optimization/64563
4330         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
4331         instead of != VR_VARYING.
4333         PR target/64513
4334         * config/i386/i386.c (ix86_expand_prologue): Add
4335         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
4337         PR tree-optimization/64454
4338         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
4339         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
4340         for signed or [0, op1 - 1] for unsigned modulo.
4341         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
4342         even if op1 does not satisfy integer_pow2p.
4344         PR other/64370
4345         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
4347 2015-01-12  Jeff Law  <law@redhat.com>
4349         PR target/64461
4350         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
4351         (trunchiqi2, truncsihi2): Similarly.
4353         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
4354         rather than calling F.
4356 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4358         * tsan.c (instrument_expr): Use force_gimple_operand.
4359         Use may_be_nonaddressable_p instead of is_gimple_addressable.
4361 2015-01-12  Richard Biener  <rguenther@suse.de>
4363         PR tree-optimization/64530
4364         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
4365         back dr1.
4367 2015-01-12  Richard Biener  <rguenther@suse.de>
4369         PR middle-end/64357
4370         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
4371         latches properly.
4373 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4375         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
4376         Cortex-A17 tuning parameters.
4377         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
4379 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4381         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
4382         * config/arm/arm.c (arm_macro_fusion_p): New function.
4383         (arm_macro_fusion_pair_p): Likewise.
4384         (TARGET_SCHED_MACRO_FUSION_P): Define.
4385         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
4386         (ARM_FUSE_NOTHING): Likewise.
4387         (ARM_FUSE_MOVW_MOVT): Likewise.
4388         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
4389         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
4390         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
4391         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
4392         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
4393         arm_cortex_a5_tune): Specify fuseable_ops value.
4395 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
4397         PR bootstrap/64561
4398         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
4399         test for PIE with copy reloc.
4400         * configure: Regenerated.
4402 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4404         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
4405         in gen_rtx_REG.
4406         (arm_tls_descseq_addr): Likewise.
4407         (arm_gen_movmemqi): Likewise.
4408         (arm_expand_epilogue_apcs_frame): Likewise.
4409         (arm_expand_epilogue): Likewise.
4410         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
4411         in gen_rtx_REG.
4413 2015-01-12  Martin Liska  <mliska@suse.cz>
4415         PR ipa/64550
4416         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
4417         volatility for correct operands.
4419 2015-01-12  Martin Liska  <mliska@suse.cz>
4421         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4422         that a function is not leaf.
4423         (sem_function::compare_polymorphic_p): Likewise.
4425 2015-01-12  Martin Liska  <mliska@suse.cz>
4427         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
4428         that a function is not leaf.
4429         (sem_function::compare_polymorphic_p): Likewise.
4431 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4433         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
4434         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
4435         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
4436         fold-const.h, tree-check.h.
4438 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4440         PR ipa/63967
4441         PR ipa/64425
4442         * ipa-inline.c (compute_uninlined_call_time,
4443         compute_inlined_call_time): Use counts for extra precision when
4444         needed possible.
4445         (big_speedup_p): Fix formating.
4446         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
4447         (relative_time_benefit): Remove.
4448         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
4449         merge guessed and read profile paths.
4450         (inline_small_functions): Count only !optimize_size functions into
4451         initial size; be more lax about sanity check when profile is used;
4452         be sure to update inlined function profile when profile is read.
4454 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
4456         PR ipa/63470
4457         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
4458         cost when edge becomes direct.
4459         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
4460         is resolved or when introducing new speculation.
4462 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
4464         PR ipa/64551
4465         PR ipa/64552
4466         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
4467         '||' to fix typo issue.
4469         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
4470         accept and return NULL.
4472 2015-01-12  Martin Liska  <mliska@suse.cz>
4474         * cgraph.c (cgraph_edge::remove_callee): Move function to header
4475         file for being inlined.
4476         (cgraph_set_edge_callee): Delete.
4477         (cgraph_edge::redirect_callee): Move function to header file
4478         for being inlined.
4479         (cgraph_edge::make_direct): Use new function.
4480         (cgraph_edge::dump_edge_flags): New function created from
4481         static dump_edge_flags function.
4482         (cgraph_node::dump): Use new function.
4483         (cgraph_edge::verify_count_and_frequency): New function created
4484         from verify_edge_count_and_frequency.
4485         (cgraph_edge::verify_corresponds_to_fndecl): New function created
4486         from verify_edge_corresponds_to_fndecl.
4487         (verify_edge_corresponds_to_fndecl): Delete.
4488         (cgraph_node::verify_node): Use new function.
4489         * cgraph.h (cgraph_edge::set_callee): New function.
4490         (cgraph_edge::dump_edge_flags): Likewise.
4491         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
4493 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
4495         * ipa-utils.c (estimate_function_body_sizes): Do not
4496         free node params when called late with early=true.
4498 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
4500         * doc/md.texi (Instruction Patterns): Rewrite text for
4501         clarity.
4502         (Example): Likewise.
4504 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
4506         * doc/invoke.texi (Option Summary): Break long lines.
4507         [(-fdiagnostics-color)]: Put long literal in @smallexample
4508         instead of inline.
4509         [(-fsanitize-recover)]: Likewise.
4510         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
4511         [(-ffast-math)]: Likewise.
4512         [(--param max-inline-insns-recursive)]: Likewise.
4513         [(--param max-inline-recursive-depth)]: Likewise.
4514         [(-mno-text-section-literals)]: Likewise.
4516 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
4518         * doc/install.texi: Update for libgomp being renamed from "GNU
4519         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
4520         Runtime Library".
4521         * doc/sourcebuild.texi: Likewise.
4523 2015-01-10  Anthony Green  <green@moxielogic.com>
4525         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
4526         mul.x availability for moxiebox configuration.
4528 2015-01-09  Anthony Green  <green@moxielogic.com>
4530         * config/moxie/moxie.md: Tabify assembly output.
4532 2015-01-09  Anthony Green  <green@moxielogic.com>
4534         * config/moxie/moxie.md (CC_REG): Correct register definition.
4536 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4538         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
4539         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
4540         of log files.
4542 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4544         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
4546 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
4547             Jakub Jelinek  <jakub@redhat.com>
4549         PR middle-end/64412
4550         * lto-streamer.h (lto_stream_offload_p): New declaration.
4551         * lto-streamer.c (lto_stream_offload_p): New variable.
4552         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
4553         at the same time as section_name_prefix.
4554         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
4555         if lto_stream_offload_p.
4556         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
4557         stream TREE_TARGET_OPTION if lto_stream_offload_p.
4558         (write_ts_function_decl_tree_pointers): Don't
4559         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
4560         * tree-streamer-in.c (unpack_value_fields): Don't stream
4561         TREE_TARGET_OPTION in if ACCEL_COMPILER.
4562         (lto_input_ts_function_decl_tree_pointers): Don't stream
4563         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
4564         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
4565         instead of section_name_prefix string comparisons.
4567 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
4569         PR rtl-optimization/64536
4570         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
4571         tablejumps.
4573 2015-01-09  Michael Collison  <michael.collison@linaro.org>
4575         PR tree-optimization/64322
4576         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
4577         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
4579 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4581         PR rtl-optimization/64539
4582         * regcprop.c (kill_clobbered_values): Factor out of ...
4583         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
4584         instead of note_stores with kill_clobbered_value.
4586 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4588          * ginclude/unwind-arm-common.h: Revert previous commit.
4590 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
4592         * config.gcc (arm*-*-freebsd*): New configuration.
4593         * config/arm/freebsd.h: New file.
4594         * config.host: Add extra components for arm*-*-freebsd*.
4595         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
4596         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
4598 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4600         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
4601         for -mcpu=e6500.
4602         * config/rs6000/t-rtems: Add e6500 multilibs.
4604 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4606         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
4607         MPC8540.
4609 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4611         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
4612         MULTILIB_EXCEPTIONS.
4614 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4616         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
4617         MULTILIB_EXCEPTIONS.
4619 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4621         * config/arm/t-rtems-eabi: Rename to...
4622         * config/arm/t-rtems: ...this.
4623         * config/arm/rtems-eabi.h: Rename to...
4624         * config/arm/rtems.h: ...this.
4625         * config.gcc (arm*-*-rtems*): Reflect changes above.
4627 2015-01-09  Richard Biener  <rguenther@suse.de>
4629         PR tree-optimization/64410
4630         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
4631         on the LHS.
4632         (execute_update_addresses_taken): Deal with that.
4633         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
4634         loads/stores for complex variables.
4636 2015-01-09  Martin Liska  <mliska@suse.cz>
4638         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
4639         name comparison.
4640         (func_checker::compare_memory_operand): New function.
4641         (func_checker::compare_operand): Split case to newly
4642         added functions.
4643         (func_checker::compare_cst_or_decl): New function.
4644         (func_checker::compare_gimple_call): Identify
4645         memory operands.
4646         (func_checker::compare_gimple_assign): Likewise.
4647         * ipa-icf-gimple.h: New function.
4649 2015-01-09  Martin Liska  <mliska@suse.cz>
4651         PR ipa/64503
4652         * sreal.c (sreal::dump): Change unsigned format to signed for
4653         m_exp value.
4654         (sreal::to_double): Replace exp2 with scalbln.
4656 2015-01-09  Martin Liska  <mliska@suse.cz>
4658         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
4659         * ipa-icf.c (sem_function::equals_private): Add support for target and
4660         (sem_item_optimizer::merge_classes): Remove redundant function
4661         optimization flags comparison.
4662         * tree.h (target_opts_for_fn): New function.
4664 2015-01-09  Tom de Vries  <tom@codesourcery.com>
4666         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
4668 2015-01-09  Kito Cheng  <kito@0xlab.org>
4670         PR rtl-optimization/64348
4671         * lra-constraints.c (split_reg): Fix caller-save store/restore
4672         instruction generation.
4674 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
4676         PR gcov-profile/61790
4677         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
4678         long long.  Fallback to int64_t if host doesn't have long long and
4679         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
4681 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4683         PR tree-optimization/63989
4684         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
4685         from 1000 to 10000.
4686         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
4687         (get_stridx): If we don't have a record for certain SSA_NAME,
4688         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
4689         constant offset, call get_stridx_plus_constant.
4690         (get_stridx_plus_constant): New function.
4691         (zero_length_string): Don't use get_stridx here.
4693         PR target/55023
4694         PR middle-end/64388
4695         * dse.c (struct insn_info): Mention frame_read set also
4696         before reload for tail calls on some targets.
4697         (scan_insn): Revert 2014-12-22 change.  Set frame_read
4698         also before reload for tail calls if
4699         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
4700         instead of add_non_frame_wild_read for non-const/memset
4701         tail calls after reload.
4703 2015-01-08  Jason Merrill  <jason@redhat.com>
4705         * ubsan.c (do_ubsan_in_current_function): New.
4706         (pass_ubsan::gate): Use it.
4707         * ubsan.h: Declare it.
4708         * convert.c (convert_to_integer): Use it.
4710 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4712         PR target/64338
4713         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
4714         compare_code when it is unconditionally overwritten afterwards.
4715         Use ix86_reverse_condition instead of reverse_condition.  Don't
4716         change code if *reverse_condition* returned UNKNOWN and don't
4717         swap ct/cf and negate diff in that case.
4719 2015-01-08  Mike Stump  <mikestump@comcast.net>
4721         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
4722         (pass_tsan_O0::gate): Likewise.
4723         * extend.texi (Function Attributes): Add no_sanitize_thread
4724         documentation.
4726 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
4728         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
4729         for registering builtins.
4730         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
4731         add -fopenmp to the argv_obstack used when invoking
4732         compile_for_target.
4734         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
4735         add "-m32" or "-m64" to argv_obstack.
4736         (generate_host_descr_file): Likewise, when invoking host_compiler.
4737         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
4738         ld.
4740 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
4742         * config/sh/sh-mem.cc: Use constant as second operand when emitting
4743         tstsi_t insns.
4745 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
4747         PR target/55212
4748         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
4749         constant load if constant operand fits into I08.
4751 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
4753         PR sanitizer/64336
4754         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
4755         and TREE_THIS_VOLATILE for MEM_REFs.
4756         (build5_stat): Fix up initialization of TREE_READONLY and
4757         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
4759 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4761         PR target/64533
4762         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
4763         of r for the second alternative of the destination operand.
4765 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
4767         PR target/36557
4768         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
4770 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4772         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
4773         keywords.
4774         ([-fivar-visibility], [-fvisibility]): Likewise.
4776 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
4778         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
4779         the file where @code, @command, etc is more appropriate.
4781 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
4783         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
4784         of -mrecip= documentation.
4786 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4788         PR target/64505
4789         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
4790         correct reload handler if -m32 -mpowerpc64 is used.
4792 2015-01-06  Tom de Vries  <tom@codesourcery.com>
4794         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
4796 2015-01-08  Christian Bruel  <christian.bruel@st.com>
4798         PR target/64507
4799         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
4801 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4803         PR tree-optimization/63259
4804         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
4805         if optab exists for 16bit byteswap.
4807 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
4809         * opts.c (common_handle_option): Add support for
4810         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
4811         * doc/invoke.texi: Document -fno-sanitize=all,
4812         -f{,no-}sanitize-recover=all.  Document that
4813         -fsanitize=float-cast-overflow is not enabled
4814         by -fsanitize=undefined.  Fix up documentation
4815         of -f{,no-}sanitize-recover.
4817 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
4819         * config.gcc: Add Visium support.
4820         * configure.ac: Likewise.
4821         * configure: Regenerate.
4822         * doc/extend.texi (interrupt attribute): Add Visium.
4823         * doc/invoke.texi: Document Visium options.
4824         * doc/install.texi: Document Visium target.
4825         * doc/md.texi: Document Visium constraints.
4826         * common/config/visium: New directory.
4827         * config/visium: Likewise.
4829 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
4831         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
4832         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
4834 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
4836         * combine.c (combine_validate_cost): Do not count the cost of a
4837         split I2 twice.  Do not display it twice in the dump, either.
4839 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
4841         Revert parts of r219199.
4842         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
4843         <inttypes.h>.
4844         ([-Wtraditional]): Restore markup on <limits.h>.
4846 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
4848         PR c++/31397
4849         * doc/invoke.texi: Document -Wsuggest-override.
4851 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
4853         PR rtl-optimization/64287
4854         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
4855         (process_options): Disable flag_ipa_ra if profiling.
4857 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
4859         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
4861 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
4863         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
4864         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
4865         put under #if TARGET_LOOPS guard.
4867 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
4869         * config/i386/i386.c (output_387_binary_op): Use std::swap.
4871 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
4873         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
4874         * rtl.h (refers_to_regno_p): Add overload.
4875         * cse.c: Use it.
4876         * bt-load.c: Likewise.
4877         * combine.c: Likewise.
4878         * df-scan.c: Likewise.
4879         * sched-deps.c: Likewise.
4880         * config/s390/s390.c: Likewise.
4881         * config/m32r/m32r.c: Likewise.
4882         * config/rs6000/spe.md: Likewise.
4883         * config/rs6000/rs6000.c: Likewise.
4884         * config/pa/pa.c: Likewise.
4885         * config/stormy16/stormy16.c: Likewise.
4886         * config/cris/cris.c: Likewise.
4887         * config/arc/arc.md: Likewise.
4888         * config/arc/arc.c: Likewise.
4889         * config/sh/sh.md: Likewise.
4890         * config/sh/sh.c: Likewise.
4891         * config/frv/frv.c: Likewise.
4893 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4895         PR sanitizer/64265
4896         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
4897         call as cleanup of the whole body.
4898         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
4899         * tsan.c (replace_func_exit): New function.
4900         (instrument_func_exit): Moved earlier.
4901         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
4902         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
4903         been found.
4904         (tsan_pass): Don't call instrument_func_exit.
4905         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
4906         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
4907         inlining.
4909         PR sanitizer/64344
4910         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
4911         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
4912         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
4913         if the result is integer_zerop, return NULL_TREE.
4914         * convert.c (convert_to_integer): Pass expr as ARG.
4916         PR tree-optimization/64465
4917         * tree-inline.c (redirect_all_calls): During inlining
4918         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
4919         changed the stmt to a non-throwing call.
4921 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
4923         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
4924         etc markup throughout the file.
4926 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4928         Enable experimental TSAN support for Ada.
4929         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
4931 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4933         PR tree-optimization/64494
4934         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
4935         clear SSA_NAME_ANTI_RANGE_P flag.
4937 2015-01-05  Marek Polacek  <polacek@redhat.com>
4939         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
4941 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
4943         Update copyright years.
4945         * gcc.c (process_command): Update copyright notice dates.
4946         * gcov-dump.c: Ditto.
4947         * gcov.c: Ditto.
4948         * doc/cpp.texi: Bump @copying's copyright year.
4949         * doc/cppinternals.texi: Ditto.
4950         * doc/gcc.texi: Ditto.
4951         * doc/gccint.texi: Ditto.
4952         * doc/gcov.texi: Ditto.
4953         * doc/install.texi: Ditto.
4954         * doc/invoke.texi: Ditto.
4956         * auto-profile.c, auto-profile.h: Fix up Copyright line.
4958 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
4960         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
4961         verb tense, etc.
4962         ([-fvtable-verify], [-fvtv-debug]): Likewise.
4963         ([-Wabi]): Likewise.
4964         ([-fmessage-length]): Likewise.
4965         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
4966         ([-Wno-discarded-qualifiers]): Likewise.
4967         ([-Wnodiscarded-array-qualifiers]): Likewise.
4968         ([-Wno-virtual-move-assign]): Likewise.
4969         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
4970         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
4971         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
4972         ([-fsanitize-undefined-trap-on-error]): Likewise.
4973         ([-floop-interchange]): Likewise.
4974         ([-ftree-coalesce-inlined-vars]): Likewise.
4975         ([-fvect-cost-model]): Likewise.
4976         ([-flto]): Likewise.
4977         ([--param]): Likewise.
4978         (Spec Files): Likewise.
4979         ([-mstrict-align]): Likewise.
4980         ([-mfix-cortex-a53-835769]): Likewise.
4981         ([-march], [-mtune]): Likewise.
4982         ([-mpic-register]): Likewise.
4983         ([-munaligned-access]): Likewise.
4984         ([-msp8]): Likewise.
4985         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
4986         (AVR Built-in Macros): Likewise.
4987         ([-mpreferred-stack-boundary]): Likewise.
4988         ([-mtune-crtl]): Likewise.
4989         ([-mashf]): Likewise.
4990         ([-mmcu=]): Likewise.
4991         ([-minrt]): Likewise.
4992         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
4993         ([-mupper-regs]): Likewise.
4994         ([-matomic-model]): Likewise.
4995         ([-mdiv]): Likewise.
4996         ([-mzdcbranch]): Likewise.
4997         ([-mdisable-callt]): Likewise.
4998         ([-msoft-float]): Likewise.
4999         ([-m8byte-align]): Likewise.
5000         ([-fstack-reuse]): Likewise.
5002 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5004         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
5005         Fix markup, light copy-editing.
5006         ([-fauto-profile]): Rewrite to fix formatting and content
5007         problems.
5009 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5011         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
5012         Copy-edit description.
5013         ([-fisolate-erroneous-paths-attribute]): Likewise.
5014         * common.opt (fisolate-erroneous-paths-dereference):
5015         Copy-edit description.
5016         (fisolate-erroneous-paths-attribute): Likewise.
5018 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5020         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
5021         tidy grammar.
5023 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
5025         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
5026         ([-fvtv-debug]): Likewise.
5027         ([-Wc++-compat]): Likewise.
5028         ([-Wc++11-compat]): Likewise.
5029         ([-Wc++14-compat]): Likewise.
5030         ([-Wno-sized-deallocation]): Likewise.
5031         ([-femit-class-debug-always]): Likewise.
5032         ([-femit-struct-debug-detailed]): Likewise.
5033         ([-fno-keep-inline-dllexport]): Likewise.
5034         ([-fira-algorithm]): Likewise.
5035         ([-fira-region]): Likewise.
5036         ([-flra-remat]): Likewise.
5037         ([-fipa-ra]): Likewise.
5038         ([-fhoist-adjacent-loads]): Likewise.
5039         ([-fisolate-erroneous-paths-dereference]): Likewise.
5040         ([-fisolate-erroneous-paths-attribute]): Likewise.
5041         ([-ftree-switch-conversion]): Likewise.
5042         ([-ftree-tail-merge]): Likewise.
5043         ([-ftree-loop-if-convert]): Likewise.
5044         ([-ftree-loop-if-convert-stores]): Likewise.
5045         ([-ftree-loop-distribution]): Likewise.
5046         ([-ftree-loop-distribute-patterns]): Likewise.
5047         ([-flto-compression-level]): Likewise.
5048         ([-flto-report]): Likewise.
5049         ([-flto-report-wpa]): Likewise.
5050         ([-fuse-linker-plugin]): Likewise.
5051         ([-mfix-cortex-a53-835769]): Likewise.
5052         ([-mno-fix-cortex-a53-835769]): Likewise.
5053         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
5054         explicit listing; add a note to the discussion indicating they
5055         exist.  Reorder table to group similar options.  Add missing
5056         @opindex entries.  Add @need commands throughout the table to
5057         allow it to be split across multiple pages.
5058         ([-m8bit-idiv]): Fix @opindex.
5059         ([-mavx256-split-unaligned-load]): Likewise.
5060         ([-mavx256-split-unaligned-store]): Likewise.
5061         ([-mstack-protector-guard]): Likewise.
5062         ([-mcpu=]): Likewise.
5063         ([-mcpu]): Likewise.
5064         ([-mpointer-size=]): Likewise.
5066 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
5068         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
5069         instead of `m' constraint.  Likewise for unnamed movb comparison
5070         patterns using reg_before_reload_operand predicate.
5071         * config/pa/predicates.md (reg_before_reload_operand): Tighten
5072         predicate to reject register index and LO_SUM DLT memory forms
5073         after reload.
5075 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
5077         * doc/invoke.texi (Option Summary): Fix spelling of
5078         -fdevirtualize-at-ltrans.
5079         ([-fdevirtualize]): Fix markup.
5080         ([-fdevirtualize-speculatively]): Fix typo.
5081         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
5082         implementor-speaky.
5083         * common.opt (fdevirtualize-at-ltrans): Likewise.
5084         * ipa-devirt.c: Fix typos in comments throughout the file.
5085         (ipa_devirt): Fix typos in format strings for dump output.
5087 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
5089         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
5090         discussion of defaults, light copy-editing.
5092 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5094         * tsan.c (instrument_expr): corrected previous checkin.
5096 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5098         Instrument bit field and unaligned accesses for TSAN.
5099         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
5100         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
5101         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
5102         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
5103         unaligned memory regions.
5105 2015-01-01  Anthony Green  <green@moxielogic.com>
5107         * config/moxie/predicates.md (moxie_general_movsrc_operand):
5108         Restrict move source register offsets to 16 bits.
5110 Copyright (C) 2015 Free Software Foundation, Inc.
5112 Copying and distribution of this file, with or without modification,
5113 are permitted in any medium without royalty provided the copyright
5114 notice and this notice are preserved.