18ada578fd6fd337756aeb3472c857b9625729f6
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2015-03-13  Richard Biener  <rguenther@suse.de>
2
3         PR middle-end/44563
4         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
5         (cleanup_tree_cfg_1): Do not call it.
6         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
7         (fixup_noreturn_call): Mark the stmt as control altering.
8         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
9         here.
10         (pass_data_fixup_cfg): Produce a dump file.
11         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
12         (need_noreturn_fixup): New global.
13         (pass_dominator::execute): Fixup queued noreturn calls.
14         (optimize_stmt): Queue calls that became noreturn for fixup.
15         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
16         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
17         (el_to_fixup): New global.
18         (eliminate_dom_walker::before_dom_childre): Queue calls that
19         became noreturn for fixup.
20         (eliminate): Fixup queued noreturn calls.
21         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
22         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
23         (substitute_and_fold_dom_walker::before_dom_children): Queue
24         alls that became noreturn for fixup.
25         (substitute_and_fold): Fixup queued noreturn calls.
26
27 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
28
29         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
31         are building; for methods check ODR type of class they belong to if
32         they may lead to a polymorphic call.
33         (sem_function::compare_polymorphic_p): Be bit smarter about testing
34         when function may lead to a polymorphic call.
35         (sem_function::compare_type_list): Remove.
36         (sem_variable::equals): Update use of compatible_types_p.
37         (sem_variable::parse_tree_refs): Remove.
38         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
39         cdtor.
40         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
41         matching here.
42         (func_checker::compatible_polymorphic_types_p): Break out from ...
43         (unc_checker::compatible_types_p): ... here.
44         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
45         Declare.
46         (unc_checker::compatible_types_p): Update.
47         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
48         Remove.
49
50 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
51
52         PR rtl-optimization/65235
53         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
54         When first element of vec_concat is const_int, calculate its size
55         using second element.
56
57 2015-03-12  Richard Biener  <rguenther@suse.de>
58
59         PR middle-end/65270
60         * fold-const.c (operand_equal_p): Fix ordering of resetting
61         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
62
63 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
64
65         * config/s390/s390.c (s390_reorg): Move code to output nops after label
66         to s390_reorg ().
67         (s390_asm_output_function_label): Likewise.
68         * config/s390/s390.c (s390_asm_output_function_label):
69         Fix function label alignment with -mhtopatch.
70         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
71         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
72         ("nop_2_byte"): New define_insn.
73         ("nop_4_byte"): Likewise.
74         ("nop_6_byte"): Likewise.
75         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
76         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
77
78 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
79
80         PR target/65103
81         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
82         register.
83
84 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
85
86         PR target/65044
87         * toplev.c (process_options): Restrict Pointer Bounds Checker
88         usage with Address Sanitizer.
89
90 2015-03-12  Richard Biener  <rguenther@suse.de>
91
92         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
93         to split on.
94         * omp-low.c (expand_omp_taskreg): Split block before removing
95         the stmt.
96         (expand_omp_target): Likewise.
97         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
98         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
99         stmt to split_block.
100
101 2015-03-12  Tom de Vries  <tom@codesourcery.com>
102
103         PR rtl-optimization/64895
104         * lra-lives.c (check_pseudos_live_through_calls): Use
105         actual_call_used_reg_set instead of call_used_reg_set, if available.
106
107 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
108
109         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
110         (cgraph_node::remove): Likewise.
111         (cgraph_node::get_untransformed_body): Likewise.
112         * varpool.c (varpool_node::remove): Likewise.
113         (varpool_node::get_constructor): Add sanity check.
114
115 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
116
117         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
118         old GCC versions.
119         (-fabi-compat-version): Likewise.
120         (-ffriend-injection): Likewise.
121         (-Wdeclaration-after-statement): Likewise.
122         (-fomit-frame-pointer): Likewise.
123         (-ftree-coalesce-inlined-vars): Likewise.
124         (-fvisibility=): Likewise.
125         * doc/extend.texi (Typeof): Likewise.
126         (Zero Length): Likewise.
127         (Escaped Newlines): Likewise.
128         (Compound Literals): Likewise.
129         (Function Attributes): Likewise.
130         (Label Attributes): Likewise.
131         (Type Attributes): Likewise.
132         (Function Names): Likewise.
133         (Other Builtins): Likewise.
134         (Function Specific Option Pragmas): Likewise.
135         (C++ Interface): Likewise.
136
137 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
138
139         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
140
141 2015-03-11  Marek Polacek  <polacek@redhat.com>
142
143         PR tree-optimization/65388
144         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
145
146 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
147
148         PR target/65296
149         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
150         * configure: Regenerate.
151         * config.in: Regenerate.
152         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
153         [-mn-flash]: Document it.
154         [__AVR_ARCH__]: Document avrtiny.
155
156         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
157         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
158         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
159
160 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
161
162         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
163
164 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
165
166         PR target/65242
167         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
168         allow reloads of PLUS in floating point/VSX registers.
169
170 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
171
172         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
173         crypto_sha256_fast.
174         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
175
176 2015-03-11  Richard Biener  <rguenther@suse.de>
177
178         PR tree-optimization/65310
179         * tree-sra.c (build_ref_for_offset): Also preserve larger
180         alignment.
181
182 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
183
184         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
185
186 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
187
188         PR target/65368
189         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
190         new define_expand.
191         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
192
193 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
194
195         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
196         (sem_function::equals_wpa): ... here.
197
198 2015-03-10  Marek Polacek  <polacek@redhat.com>
199             Jakub Jelinek  <jakub@redhat.com>
200
201         PR sanitizer/65367
202         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
203         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
204         separately.
205
206 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
207
208         PR target/65286
209         * config/rs6000/t-linux: For powerpc64* target set
210         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
211
212 2015-03-10  Richard Biener  <rguenther@suse.de>
213
214         PR middle-end/44563
215         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
216         for redirect_all_calls.
217
218 2015-03-10  Marek Polacek  <polacek@redhat.com>
219
220         * gdbinit.in (pcfun): Define and document.
221
222 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
223
224         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
225         of libgomp-plugin.h.
226         (find_target_compiler): Support a case when the path to gcc is
227         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
228         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
229         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
230         libgomp-plugin.h.
231         (main): Use GCC_INSTALL_NAME as target_driver_name.
232         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
233         define.
234         (mkoffload.o): Remove obsolete include path and defines.
235         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
236
237 2015-03-10  Richard Biener  <rguenther@suse.de>
238
239         PR middle-end/63155
240         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
241         * tree-ssa-coalesce.c: Include timevar.h.
242         (attempt_coalesce): Handle graph being NULL.
243         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
244         Split out abnormal coalescing to ...
245         (perform_abnormal_coalescing): ... this function.
246         (coalesce_ssa_name): Perform abnormal coalescing without computing
247         live/conflict.
248         (verify_ssa_coalescing_worker): New function.
249         (verify_ssa_coalescing): Likewise.
250
251 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
252
253         PR target/65296
254         * config.gcc (extra_options) [avr]: Remove.
255         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
256         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
257         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
258
259         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
260         (-mmcu=): Add Var and MissingArgError properties.
261         (-march=): Remove.
262         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
263         * config/avr/t-multilib: Regenerate.
264         * config/avr/specs.h: New file.
265         * config/avr/driver-avr.c: New file.
266         * config/avr/genopt.sh: Remove file.
267         * config/avr/avr-tables.opt: Remove file.
268         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
269         * config/avr/avr-c.c: Same.
270         * avr-arch.h: Same.
271         (avr_current_device): Remove proto.
272         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
273         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
274         (EXTRA_SPEC_FUNCTIONS): Define.
275         (avr_devicespecs_file): New specs function proto.
276         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
277         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
278         (avr_current_device): Remove definition and usage.
279         (avr_set_core_architecture): New static function.
280         (avr_option_override): Use it.
281         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
282         (mcu_name): New static array.
283         (comparator, avr_archs_str, avr_mcus_str): New static functions.
284         (avr_inform_devices, avr_inform_core_architectures): New functions.
285         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
286         (avrlibc.h) [WITH_AVRLIBC]: Include.
287         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
288         (print_mcu): Rewrite from scratch.
289         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
290         Forward to avr-specific specs defined in device-specs file.
291         * config/avr/t-avr (driver-avr.o): New rule.
292         (avr-devices.o): Depend on avr-arch.h.
293         (avr-mcus): No more depend on avr-tables.opt.
294         (avr-tables.opt): Remove rule.
295         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
296
297 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
298
299         * c-family/c.opt (fchkp-use-wrappers): New.
300         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
301         (chkp_wrap_function): New.
302         (chkp_build_instrumented_fndecl): Support wrapped
303         functions.
304         * doc/invoke.texi (-fcheck-pointer-bounds): New.
305         (-fchkp-check-incomplete-type): New.
306         (-fchkp-first-field-has-own-bounds): New.
307         (-fchkp-narrow-bounds): New.
308         (-fchkp-narrow-to-innermost-array): New.
309         (-fchkp-optimize): New.
310         (-fchkp-use-fast-string-functions): New.
311         (-fchkp-use-nochk-string-functions): New.
312         (-fchkp-use-static-bounds): New.
313         (-fchkp-use-static-const-bounds): New.
314         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
315         (-fchkp-check-read): New.
316         (-fchkp-check-write): New.
317         (-fchkp-store-bounds): New.
318         (-fchkp-instrument-calls): New.
319         (-fchkp-instrument-marked-only): New.
320         (-fchkp-use-wrappers): New.
321         (-static-libmpx): New.
322         (-static-libmpxwrappers): New.
323
324 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
325
326         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
327         (CHKP_SPEC): Add wrappers library.
328         * c-family/c.opt (static-libmpxwrappers): New.
329
330 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
331
332         * config/i386/linux-common.h (LIBMPX_LIBS): New.
333         (LIBMPX_SPEC): New.
334         (CHKP_SPEC): New.
335         * gcc.c (CHKP_SPEC): New.
336         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
337         * c-family/c.opt (static-libmpx): New.
338
339 2015-03-10  Richard Biener  <rguenther@suse.de>
340
341         PR middle-end/44563
342         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
343         for compare_type.
344         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
345         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
346         (cgraph_add_edge_to_call_site_hash): Likewise.
347         (cgraph_node::get_edge): Likewise.
348         (cgraph_edge::set_call_stmt): Likewise.
349         (cgraph_edge::remove_caller): Likewise.
350
351 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
352
353         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
354         (callee_saved_gpr_regs_size): ... this.
355         (callee_saved_regs_first_regno): Rename to ...
356         (callee_saved_first_gpr_regno): ... this.
357         (callee_saved_regs_last_regno) Rename to ...
358         (callee_saved_last_gpr_regno): ... this.
359         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
360         variables.
361         (nds32_initial_elimination_offset): Likewise.
362         (nds32_expand_prologue): Likewise.
363         (nds32_expand_epilogue): Likewise.
364         (nds32_expand_prologue_v3push): Likewise.
365         (nds32_expand_epilogue_v3pop): Likewise.
366         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
367         Adjust renamed variables.
368         (nds32_output_stack_pop): Likewise.
369
370 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
371
372         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
373         code in comment.
374
375 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
376
377         PR rtl-optimization/65321
378         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
379         than shift mode.
380         * var-tracking.c (use_narrower_mode): Likewise.
381
382 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
383
384         PR tree-optimization/65355
385         * varasm.c (notice_global_symbol): Do not produce RTL.
386         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
387         anchor.
388         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
389         check for section anchors.
390
391 2015-03-10  Alan Modra  <amodra@gmail.com>
392
393         PR target/65286
394         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
395         to be single-arch by default.  Set cpu_is_64bit for powerpc64
396         given --with-cpu=native.
397         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
398         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
399         and powerpc64le.
400         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
401         rs6000_isa_flags rather than TARGET_64BIT.
402
403 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
404             Kaz Kojima  <kkojima@gcc.gnu.org>
405
406         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
407
408 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
409
410         PR lto/65361
411         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
412         on a TREE_BINFO, instead use BINFO_TYPE.
413
414 2015-03-09  Richard Biener  <rguenther@suse.de>
415
416         PR middle-end/65270
417         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
418         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
419         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
420         of that.  When comparing dereferences compare alignment.
421         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
422
423 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
424
425         * ipa-inline-analysis.c (check_callers): Check
426         node->can_remove_if_no_direct_calls_and_refs_p.
427         (growth_likely_positive): Reorganize to call
428         can_remove_if_no_direct_calls_p later.
429         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
430         will_be_removed_from_program_if_no_direct_calls_p): Add
431         will_inline parameter.
432         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
433         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
434         Handle inliner case correctly.
435
436 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
437
438         PR tree-optimization/63743
439         * cfgexpand.c (reorder_operands): Also reorder if only second operand
440         had its definition forwarded by TER.
441
442 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
443
444         PR lto/65316
445         * ipa-utils.h (types_odr_comparable): Add strict argument.
446         * ipa-devirt.c: Fix whitespace;
447         (odr_hasher): Remove.
448         (odr_name_hasher, odr_vtable_hasher): New hashers.
449         (can_be_name_hashed_p): New predicate.
450         (hash_type_name): remove.
451         (hash_odr_name): New.
452         (odr_name_hasher::hash): new.
453         (can_be_vtable_hashed_p): New.
454         (hash_odr_vtable): New.
455         (odr_vtable_hasher::hash): New.
456         (types_same_for_odr): Add strict parameter.
457         (types_odr_comparable): Likewise.
458         (odr_name_hasher::equal): New.
459         (odr_vtable_hasher::equal): New.
460         (odr_name_hasher::remove): New.
461         (odr_hash_type): Change to hash_table<odr_name_hasher>.
462         (odr_vtable_hash_type): New.
463         (odr_vtable_hash): New.
464         (odr_subtypes_equivalent_p): Do strict comparsion.
465         (add_type_duplicate): Merge type names; cleanup; avoid type
466         duplicates.
467         (register_odr_type): Initialize vtable hash.
468         (build_type_inheritance_graph): Likewise
469         (get_odr_type): Reorg to use two hashes.
470         (dump_possible_polymorphic_call_targets): Move sanity check after debug
471         output.
472         (ipa_devirt): Dump type_inheritance_graph.
473         (types_same_for_odr): Add strict mode.
474
475 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
476
477         PR ipa/65334
478         * cgraph.h (symtab_node): Add definition_alignment,
479         can_increase_alignment_p and increase_alignment.
480         * symtab.c (symtab_node::can_increase_alignment_p,
481         increase_alignment_1, symtab_node::increase_alignment,
482         symtab_node::definition_alignment): New.
483         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
484         can_increase_alignment_p.
485         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
486         * tree-vect-stmts.c (ensure_base_align): Likewise.
487         * varasm.c (function_section_1): Use definition_alignment.
488         (assemble_start_function): Likewise.
489         (emit_local): likewise.
490         (build_constant_desc): Likewsie.
491         (output_constant_def_contents): Likewise.
492         (place_block_symbol): Likewise.
493         (output_object_block): Likewise.
494
495 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
496
497         PR ipa/65316
498         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
499         when outputting debug.
500
501 2015-03-07  Marek Polacek  <polacek@redhat.com>
502             Martin Uecker  <uecker@eecs.berkeley.edu>
503
504         PR sanitizer/65280
505         * doc/invoke.texi: Update description of -fsanitize=bounds.
506
507 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
508
509         * tree-ssa-phiopt.c (neg_replacement): Remove.
510         (tree_ssa_phiopt_worker): Remove negate optimization.
511
512 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
513
514         PR ipa/65302
515         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
516
517 2015-03-06  Richard Biener  <rguenther@suse.de>
518
519         PR middle-end/64928
520         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
521         and liveout_obstack members.
522         (calculate_live_on_exit): Remove.
523         (calculate_live_ranges): Change declaration.
524         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
525         (new_tree_live_info): Adjust.
526         (calculate_live_ranges): Delete livein when not wanted.
527         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
528         Deal with partly deleted live info.
529         (loe_visit_block): Remove temporary bitmap by using
530         bitmap_ior_and_compl_into.
531         (live_worklist): Adjust accordingly.
532         (calculate_live_on_exit): Make static.
533         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
534         we do not need livein.
535
536 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
537
538         * real.c (real_from_string): Fix typo in assertion.
539
540 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
541
542         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
543         the patch.
544
545 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
546
547         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
548
549 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
550
551         PR target/64342
552         * lra-assigns.c (find_hard_regno_for): Rename to
553         find_hard_regno_for_1.  Add a new parameter.
554         (find_hard_regno_for): New function using find_hard_regno_for_1.
555
556 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
557
558         PR rtl-optimization/65067
559         * expmed.c (store_bit_field, extract_bit_field): Reworked the
560         strict volatile bitfield handling.
561
562 2015-03-05  Martin Liska  <mliska@suse.cz>
563
564         PR ipa/65318
565         * ipa-icf.c (sem_variable::equals): Compare variables types.
566
567 2015-03-05  Richard Henderson  <rth@redhat.com>
568
569         PR target/65121
570         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
571         correctly check weak symbol binding.
572
573 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
574
575         PR middle-end/65315
576         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
577         needed alignment.
578
579 2015-03-05  Martin Liska  <mliska@suse.cz>
580
581         * ipa-inline.c (inline_small_functions): Set default value to
582         prevent warning during bootstrap.
583         * tree.h: Add pragma guard that ignores false positives during
584         bootstrap.
585
586 2015-03-05  Richard Biener  <rguenther@suse.de>
587
588         PR tree-optimization/65310
589         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
590         Properly preserve alignment of the base of the access.
591
592 2015-03-05  Richard Biener  <rguenther@suse.de>
593
594         PR ipa/65270
595         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
596         Compare dependence info.
597
598 2015-03-05  Richard Biener  <rguenther@suse.de>
599
600         PR middle-end/65233
601         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
602         tree-into-ssa.h.
603         (walk_ssa_copies): Revert last chage.  Instead do not walk
604         SSA names registered for SSA update.
605
606 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
607
608         PR ipa/65270
609         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
610         vtable references for their containing type.
611         (sem_function::equals_wpa): Compare TYPE_RESTRICT
612         and type attributes.
613
614 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
615
616         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
617         before negating it.
618         * stor-layout.c (finalize_record_size): Revert latest change.
619
620 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
621
622         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
623
624 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
625
626         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
627         for correct comdat handling.
628         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
629         Likewise.
630         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
631         (used_from_object_file_p_worker): Remove.
632         (cgraph_node::only_called_directly_or_alised): Add
633         used_from_object_file_p.
634         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
635         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
636         can_remove_if_no_direct_calls_and_refs_p.
637
638 2015-03-04  Nick Clifton  <nickc@redhat.com>
639
640         * config/rl78/rl78.h (enum reg_class): Remove real registers from
641         General register class.
642         * config/rl78/rl78-real.md: Replace general register constraints
643         with real+virtual register constraints.
644
645 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
646
647         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
648         from checking for -mhtm option.
649
650 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
651
652         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
653         (struct ipa_sra_check_caller_data): Add has_thunk field.
654         (ipa_sra_check_caller): Check for thunk.
655         (ipa_sra_preliminary_function_checks): Give up on function with
656         thunks.
657         (ipa_early_sra): Use call_for_symbol_and_aliases.
658
659 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
660
661         PR target/65249
662         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
663         called for __stack_chk_guard symbol.
664
665 2015-03-03  DJ Delorie  <dj@redhat.com>
666
667         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
668         inc/dec.
669         (*addhi3_real): Likewise.
670         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
671         pattern to match incrementing memory.
672         * config/rl78/predicates.md (rl78_1_2_operand): New.
673         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
674         it's the same and only mem.
675         (rl78_alloc_physical_registers_op2): If there's effectively only
676         one MEM, transcode it into HL.
677         (rl78_far_p): Reject addresses that aren't legitimate.
678
679 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
680
681         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
682         negating it.
683
684         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
685
686 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
687
688         Implement call0 ABI for xtensa
689         * config/xtensa/constraints.md ("a" constraint): Include stack
690         pointer in case of call0 ABI.
691         ("q" constraint): Make empty in case of call0 ABI.
692         ("D" constraint): Include stack pointer in case of call0 ABI.
693         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
694         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
695         prototypes.
696         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
697         variable.
698         (xtensa_regno_to_class): Make it a local variable in the
699         function xtensa_regno_to_class.
700         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
701         macro, function prototype and implementation.
702         (reg_nonleaf_alloc_order): Make it a local variable in the
703         function order_regs_for_local_alloc.
704         (xtensa_conditional_register_usage): New function.
705         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
706         (xtensa_valid_move): Allow direct moves to stack pointer
707         register in call0 ABI.
708         (xtensa_setup_frame_addresses): Only spill register windows in
709         windowed ABI.
710         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
711         call0 ABI respectively.
712         (xtensa_function_arg_1): Only mark a7 register for copying in
713         windowed ABI.
714         (xtensa_call_save_reg): New function.
715         (compute_frame_size): Add space for callee saved register
716         storage to the frame size in call0 ABI.
717         (xtensa_expand_prologue): Generate code to set up stack frame
718         and save callee-saved registers in call0 ABI.
719         (xtensa_expand_epilogue): New function.
720         (xtensa_set_return_address): New function.
721         (xtensa_return_addr): Calculate return address in call0 ABI.
722         (xtensa_builtin_saveregs): Only mark a7 register for copying and
723         emit copying code in windowed ABI.
724         (order_regs_for_local_alloc): Add preferred register allocation
725         order for non-leaf function in call0 ABI.
726         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
727         (xtensa_asm_trampoline_template): Add trampoline generation for
728         call0 ABI.
729         (xtensa_trampoline_init): Add trampoline initialization for
730         call0 ABI.
731         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
732         functions.
733         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
734         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
735         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
736         ABI call-used registers.
737         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
738         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
739         call0 ABI.
740         (REG_CLASS_CONTENTS): Include all registers into the preferred
741         reload registers set, adjust the set in the
742         xtensa_conditional_register_usage.
743         (xtensa_regno_to_class): Drop variable declaration.
744         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
745         function.
746         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
747         respectively.
748         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
749         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
750         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
751         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
752         location in call0 ABI.
753         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
754         stack adjustment size when handling exception.
755         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
756         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
757         definitions.
758         ("return" pattern): Generate ret.n/ret in call0 ABI.
759         ("epilogue" pattern): Expand epilogue.
760         ("nonlocal_goto" pattern): Use default in call0 ABI.
761         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
762         emit eh_set_a0_* depending on ABI.
763         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
764         ("eh_set_a0_call0", "blockage"): New patterns.
765
766 2015-03-03  Martin Liska  <mliska@suse.cz>
767
768         PR ipa/65287
769         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
770
771 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
772
773         PR 65138/target
774         * config/rs6000/rs6000-tables.opt: Regenerate table.
775
776 2015-03-03  Renlin Li  <renlin.li@arm.com>
777
778         * doc/md.texi (@item ^): Change ? into ^.
779
780 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
781
782         * doc/tm.texi: Regenerated.
783
784 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
785
786         * builtins.c (expand_builtin_return_addr): Add
787         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
788         surrounding #ifdef.
789         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
790         definition to 1.
791         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
792         Likewise.
793         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
794         undefined.
795         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
796         paragraph.
797
798 2015-03-03  Martin Jambor  <mjambor@suse.cz>
799             Eric Botcazou  <ebotcazou@adacore.com>
800
801         * tree-sra.c (ipa_sra_check_caller_data): New type.
802         (has_caller_p): Removed.
803         (ipa_sra_check_caller): New function.
804         (ipa_sra_preliminary_function_checks): Use it.
805
806 2015-03-03  Martin Liska  <mliska@suse.cz>
807
808         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
809         instead of if branch.
810
811 2015-03-03  Martin Liska  <mliska@suse.cz>
812
813         PR ipa/65282
814         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
815
816 2015-03-23  Jeff Law  <law@redhat.com>
817
818         PR tree-optimization/65241
819         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
820         hash table if INSERT is true.
821
822 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
823
824         PR target/65296
825         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
826
827 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
828
829         PR target/64331
830         * config/avr/avr.c (context.h, tree-pass.h): Include them.
831         (avr_pass_data_recompute_notes): New static variable.
832         (avr_pass_recompute_notes): New class.
833         (avr_register_passes): New static function.
834         (avr_option_override): Call it.
835
836 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
837
838         Fix various problems with specs file generation.
839
840         PR target/65296
841         * config.gcc (extra_gcc_objs) [avr]: Remove.
842         * config/avr/driver-avr.c: Remove file.
843         * config/avr/t-avr (driver-avr.o): Remove rule.
844         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
845         INCLUDES to build.  Depend on TM_H.
846         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
847         build warnings.  Fix non-matching types and non-existing %-codes.
848         (tm.h): Include.
849         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
850         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
851         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
852         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
853         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
854         (LIBGCC_SPEC): Remove definitions.
855
856 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
857
858         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
859         to create a register in testing mode.
860
861 2015-03-03  Martin Liska  <mliska@suse.cz>
862             Jan Hubicka   <hubicka@ucw.cz>
863
864         PR ipa/65263
865         * cgraph.c (cgraph_node::has_thunk_p): New function.
866         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
867         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
868         (sem_function::merge): Assert is changed.
869
870 2015-03-03  Martin Liska  <mliska@suse.cz>
871             Martin Jambor  <mjambor@suse.cz>
872
873         PR ipa/65087
874         * ipa-icf.c (sem_item_optimizer::execute): Change function
875         return value to boolean.
876         (sem_item_optimizer::merge_classes): Likewise.
877         (ipa_icf_driver): Return TODO_remove_functions in case there's
878         a merge operation processed.
879         * ipa-icf.h: Change function return value to boolean.
880
881 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
882
883         PR 65138/target
884         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
885         processor type for 64-bit little endian PowerPC.
886
887         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
888         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
889         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
890         printing built-in mask so it does not pass NULL pointers.
891
892         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
893         -mcpu=powerpc64le.
894
895 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
896
897         PR target/58158
898         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
899         !ISA_HAS_FP_CONDMOVE.
900
901 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
902
903         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
904         reload_completed.
905
906 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
907
908         * doc/invoke.texi (Options for Code Generation Conventions):
909         Fix URL of DSO paper.
910
911 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
912
913         PR ipa/65130
914         * ipa-inline.c (check_callers): Looks for recursion.
915         (inline_to_all_callers): Give up on uninlinable or recursive edges.
916         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
917         summary of inline clones.
918         (do_estimate_growth_1): Fix recursion check.
919
920 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
921
922         PR ipa/64988
923         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
924         comdat groups.
925
926 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
927             Aldy Hernandez  <aldyh@redhat.com>
928
929         PR lto/65276
930         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
931         when checking TYPE_BINFO.
932
933 2015-03-02  Richard Biener  <rguenther@suse.de>
934
935         PR ipa/65270
936         * ipa-icf-gimple.c: Include builtins.h.
937         (func_checker::compare_memory_operand): Compare base alignment.
938
939 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
940
941         PR target/65184
942         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
943         are never passed by reference.
944
945 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
946
947         PR target/65183
948         * tree-chkp.c (chkp_check_lower): Don't check against
949         zero bounds for already instrumented functions.
950         (chkp_check_upper): Likewise.
951         (chkp_fini): Clean pass local data to avoid wrong reusage.
952
953 2015-02-28  Martin Liska  <mliska@suse.cz>
954             Jan Hubicka  <hubicka@ucw.cz>
955
956         * ipa-icf.c (sem_variable::equals): Improve debug output;
957         get variable constructor.
958         (sem_variable::parse): Do not filter out too early; give up on
959         volatile and register vars.
960         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
961         variables.
962         * ipa-icf.h (sem_variable::init): Do not set ctor.
963         (sem_variable::ctor): Remove.
964
965 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
966
967         PR middle-end/65233
968         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
969
970 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
971
972         * ipa-icf.c: Include stor-layout.h
973         (sem_function::compare_cgraph_references): Rename to ...
974         (sem_item::compare_cgraph_references): ... this one.
975         (sem_variable::equals_wpa): New function
976         (sem_variable::equals): Do not check stuff already verified by
977         equals_wpa.
978         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
979         * ipa-icf.h (sem_item): Add compare_cgraph_references.
980         (sem_function): Remove compare_cgraph_references.
981         (sem_variable): Turns equals_wpa into non-inline.
982
983 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
984
985         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
986         (sem_item::add_expr): New function.
987         (sem_function::hash_stmt): Handle operands of most statements.
988         (sem_variable::get_hash): Hash the actual constructor.
989         * ipa-icf.h (sem_item): Add add_expr.
990         (sem_function): Update prototype of hash_stmt
991
992 2015-02-28  Martin Liska  <mliska@suse.cz>
993             Jan Hubicka  <hubicka@ucw.cz>
994
995         PR ipa/65245
996         * ipa-icf-gimple.c (func_checker::compare_function_decl):
997         Remove.
998         (func_checker::compare_variable_decl): Skip symtab vars.
999         (func_checker::compare_cst_or_decl): Update.
1000         * ipa-icf.c (sem_function::parse): Do not consider aliases.
1001         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
1002         use correct symtab predicates.
1003         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
1004         (sem_variable::parse):  Update comment.
1005         (sem_item_optimizer::build_graph): Consider ultimate aliases
1006         for references.
1007
1008 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
1009
1010         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
1011         of OBJ_TYPE_REF.
1012
1013 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
1014
1015         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
1016         (sem_variable::merge) Likewise.
1017
1018 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
1019
1020         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
1021         target; also match flag_ipa_devirt.
1022
1023 2015-03-01  Martin Liska  <mliska@suse.cz>
1024             Jan Hubicka  <hubicka@ucw.cz>
1025
1026         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
1027         Validate variable alignment.
1028         * ipa-icf.c (sem_function::equals_private): Be more precise
1029         about non-common function attributes.
1030         (sem_variable::equals): Likewise.
1031
1032 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
1033
1034         PR ipa/65237
1035         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
1036         across COMDAT group boundary.
1037
1038 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
1039
1040         PR ipa/65232
1041         * ipa-icf.c (clear_decl_rtl): New function.
1042         (sem_function::merge): Clear RTL before forming alias.
1043         (sem_variable::merge): Clear RTL before forming alias.
1044
1045 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
1046
1047         PR ipa/65236
1048         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
1049
1050 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
1051
1052         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
1053         to neon_to_gp<q>.
1054
1055 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
1056
1057         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
1058         a typo in the description.
1059
1060 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
1061
1062         PR target/64317
1063         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
1064         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
1065         * lra-constraints.c: Include "params.h".
1066         (EBB_PROBABILITY_CUTOFF): Use
1067         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
1068         (lra_inheritance): Use '<' instead of '<=' for
1069         EBB_PROBABILITY_CUTOFF.
1070         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
1071         Document change.
1072
1073 2015-02-27  Martin Liska  <mliska@suse.cz>
1074
1075         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
1076         vector length condition.
1077
1078 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
1079
1080         * doc/extend.texi (x86 transactional memory intrinsics):
1081         Reorganize discussion of _xbegin.  Clarify that the return
1082         value is a bit mask.  Expand example and move to end of section.
1083
1084 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
1085             Aldy Hernandez  <aldyh@redhat.com>
1086
1087         PR rtl-optimization/65220
1088         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
1089
1090 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
1091
1092         PR target/65032
1093         * lra-remat.c (update_scratch_ops): New.
1094         (do_remat): Call it.
1095         * lra.c (lra_register_new_scratch_op): New. Take code from ...
1096         (remove_scratches): ... here.
1097         * lra-int.h (lra_register_new_scratch_op): New prototype.
1098
1099 2015-02-27  Marek Polacek  <polacek@redhat.com>
1100
1101         PR c/65040
1102         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
1103         -Wformat-signedness anymore.
1104
1105 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1106
1107         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
1108         function.
1109         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
1110
1111 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1112
1113         * config/s390/s390.c (enum s390_builtin):
1114         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
1115         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
1116         (s390_init_builtins): Generate new builtin functions.
1117         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
1118         (s390_sfpc, s390_efpc): New pattern definitions.
1119
1120 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1121
1122         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
1123         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
1124         (s390_builtin_decls): New array.
1125         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
1126         (s390_builtin_decl): New function.
1127         (TARGET_BUILTIN_DECL): Define macro.
1128
1129 2015-02-27  Richard Biener  <rguenther@suse.de>
1130
1131         PR middle-end/63175
1132         * builtins.c (get_object_alignment_2): Make sure to re-apply
1133         the ANDed mask after recursing to its operand gets us a new
1134         misalignment bit position.
1135
1136 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
1137             Martin Liska  <mliska@suse.cz>
1138
1139         PR bootstrap/65150
1140         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
1141         Use address_matters_p.
1142         (redirect_all_callers, set_addressable): New functions.
1143         (sem_function::merge): Reorganize and fix merging issues.
1144         (sem_variable::merge): Likewise.
1145         (sem_variable::compare_sections): Remove.
1146         * common.opt (fmerge-all-constants, fmerge-constants): Remove
1147         Optimization flag.
1148         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
1149         redirect them.
1150         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
1151         decl is used.
1152         (address_matters_1): New function.
1153         (symtab_node::address_matters_p): New function.
1154         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
1155         check for merged flag.
1156         * cgraph.h (address_matters_p): Declare.
1157         (symtab_node::address_taken_from_non_vtable_p): Remove.
1158         (symtab_node::address_can_be_compared_p): New method.
1159         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
1160         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
1161         Remove.
1162         (comdat_can_be_unshared_p_1) Use address_matters_p.
1163         (update_vtable_references): Fix formating.
1164         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
1165         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
1166         * cgraphclones.c: Preserve merged and icf_merged flags.
1167
1168 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
1169
1170         * doc/extend.texi (Function Attributes): Fix spelling and typos.
1171         (Label Attributes): Likewise.
1172         (Cilk Plus Builtins): Likewise.
1173         (ARC SIMD Built-in Functions): Likewise.
1174         (ARM C Language Extensions (ACLE)): Likewise.
1175         (PowerPC Built-in Functions): Likewise.
1176         (PowerPC Hardware Transactional Memory Built-in Functions):
1177         Likewise.
1178
1179 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
1180
1181         PR tree-optimization/65216
1182         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
1183         new stmt and new SSA_NAME for lhs whenever the arguments have
1184         changed and weren't just swapped.  Fix comment typo.
1185
1186         PR tree-optimization/65215
1187         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
1188         for PDP endian targets.
1189         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
1190         Fix up formatting issues.
1191         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
1192         size is smaller than the original, adjust MEM_REF offset by the
1193         difference of sizes.  Use is_gimple_mem_ref_addr instead of
1194         is_gimple_min_invariant test to avoid adding address temporaries.
1195
1196 2015-02-26  Martin Liska  <mliska@suse.cz>
1197             Jan Hubicka  <hubicka@ucw.cz>
1198
1199         PR ipa/64693
1200         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
1201         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
1202         (sem_item_optimizer::process_cong_reduction): Include division by
1203         sensitive references.
1204         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
1205         * ipa-ref.c (ipa_ref::address_matters_p): New function.
1206         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
1207
1208 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
1209
1210         PR target/65192
1211         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
1212         Remove.
1213         * config/avr/avr.c: Same.
1214         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
1215         Refuse any constant address not in 0..0xbf.
1216         * config/avr/avr.md (*mov<mode>, *movsf): Remove
1217         tiny_valid_direct_memory_access_range from insn conditions.
1218         (mov<mode>): Don't special-case expansion of avrtiny addresses.
1219
1220 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
1221
1222         PR target/61142
1223         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
1224         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
1225         * config/sh/predicates.md (const_logical_operand): New predicate.
1226         * config/sh/sh.md: Add new peephole2 patterns.
1227
1228 2015-02-26  Marek Polacek  <polacek@redhat.com>
1229
1230         PR ipa/65008
1231         * ipa-inline.c (early_inliner): Recompute inline parameters.
1232
1233 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1234
1235         PR target/65171
1236         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
1237         instructions with TImode operands are included in the analysis.
1238
1239 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
1240
1241         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
1242         of an EDGE_FSM_THREAD.
1243
1244 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1245
1246         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
1247
1248 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
1249
1250         PR debug/46102
1251         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
1252
1253 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
1254
1255         PR tree-optimization/65048
1256         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
1257         (thread_through_all_blocks): Call valid_jump_thread_path.
1258         Remove invalid FSM jump-thread paths.
1259
1260 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
1261
1262         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
1263         (ipa_write_optimization_summaries): Likewise.
1264         * tree-streamer.h: Include data-streamer.h.
1265         (streamer_mode_table): Declare extern variable.
1266         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
1267         * lto-streamer-out.c (lto_output_init_mode_table,
1268         lto_write_mode_table): New functions.
1269         (produce_asm_for_decls): Call lto_write_mode_table when streaming
1270         offloading LTO.
1271         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
1272         (lto_create_simple_input_block): Add mode_table argument to the
1273         lto_input_block constructors.
1274         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
1275         Likewise.
1276         * data-streamer-in.c (string_for_index): Likewise.
1277         * ipa-inline-analysis.c (inline_read_section): Likewise.
1278         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
1279         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
1280         * lto-streamer-in.c (lto_read_body_or_constructor,
1281         lto_input_toplevel_asms): Likewise.
1282         (lto_input_mode_table): New function.
1283         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
1284         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
1285         Use bp_pack_machine_mode.
1286         * real.h (struct real_format): Add name field.
1287         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
1288         (class lto_input_block): Add mode_table member.
1289         (lto_input_block::lto_input_block): Add mode_table_ argument,
1290         initialize mode_table.
1291         (struct lto_file_decl_data): Add mode_table field.
1292         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
1293         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
1294         unpack_ts_decl_common_value_fields,
1295         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
1296         * tree-streamer.c (streamer_mode_table): New variable.
1297         * real.c (ieee_single_format, mips_single_format,
1298         motorola_single_format, spu_single_format, ieee_double_format,
1299         mips_double_format, motorola_double_format,
1300         ieee_extended_motorola_format, ieee_extended_intel_96_format,
1301         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
1302         ibm_extended_format, mips_extended_format, ieee_quad_format,
1303         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
1304         decimal_single_format, decimal_double_format, decimal_quad_format,
1305         ieee_half_format, arm_half_format, real_internal_format): Add name
1306         field.
1307         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1308
1309 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
1310
1311         PR target/65161
1312         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
1313         reordering for selective scheduling.
1314
1315 2015-02-26  Terry Guo  <terry.guo@arm.com>
1316
1317         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
1318         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
1319         (arm_arch_no_volatile_ce): Declare new global variable.
1320         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
1321         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
1322         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
1323         (TARGET_NO_VOLATILE_CE): New macro.
1324         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
1325         volatile memory access in IT block
1326
1327 2015-02-25  Uros Bizjak  <ubizjak@gmail.com>
1328
1329         PR target/47230
1330         * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
1331         or newer are required.
1332
1333 2015-02-25  Kai Tietz  <ktietz@redhat.com>
1334
1335         PR tree-optimization/61917
1336         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
1337         that reduc_def_stmt is null.
1338
1339 2015-02-25  Martin Liska  <mliska@suse.cz>
1340
1341         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
1342         hard register variables.
1343
1344 2015-02-25  Kai Tietz  <ktietz@redhat.com>
1345
1346         PR target/64212
1347         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
1348         (symtab::noninterposable_alias): Likewise.
1349
1350 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
1351
1352         PR target/65167
1353         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
1354         bounds registers.
1355         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
1356
1357 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
1358
1359         PR target/64997
1360         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
1361         as split condition; force split via '#' in output pattern.
1362
1363 2015-02-25  Richard Biener  <rguenther@suse.de>
1364             Kai Tietz  <ktietz@redhat.com>
1365
1366         PR tree-optimization/61917
1367         * tree-vect-loop.c (vectorizable_reduction): Allow
1368         vect_internal_def without reduction to exit graceful.
1369
1370 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
1371
1372         PR target/65196
1373         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
1374         only with NONDEBUG_INSN_P.
1375
1376 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
1377
1378         Use variadic macros with avr-log.c.
1379
1380         * config/avr/avr-protos.h (avr_vdump): New prototype.
1381         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
1382         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
1383         * config/avr/avr-log.c: Adjust comments.
1384         (avr_vdump): New function.
1385         (avr_vadump): Pass caller as 2nd argument instead of format string.
1386         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
1387         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
1388
1389 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
1390
1391         PR lto/64374
1392         * target.def (target_option_stream_in): New target hook.
1393         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
1394         targetm.target_option.post_stream_in if non-NULL.
1395         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
1396         * doc/tm.texi: Updated.
1397         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
1398         function.
1399         (TARGET_OPTION_POST_STREAM_IN): Redefine.
1400
1401 2015-02-24  Jeff Law  <law@redhat.com>
1402
1403         PR target/65117
1404         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
1405         of operand 0 and operand 2.
1406         (zero_cost_loop_end, loop_end): Similarly.
1407
1408 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
1409
1410         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
1411         CXX_MEM_STAT_INFO.
1412
1413 2015-02-24  DJ Delorie  <dj@redhat.com>
1414
1415         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
1416         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
1417         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
1418         instead of hardcoding SImode.
1419
1420 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
1421
1422         * omp-low.c (create_omp_child_function): Tag entrypoint
1423         functions with a special attribute.
1424
1425 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1426
1427         PR target/65058
1428         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
1429
1430 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
1431
1432         PR rtl-optimization/65123
1433         * lra-remat.c (operand_to_remat): Check hard regs in insn
1434         definition too.
1435
1436 2015-02-24  Nick Clifton  <nickc@redhat.com>
1437
1438         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
1439         to the assembler.
1440
1441 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
1442
1443         PR libgomp/64625
1444         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
1445         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
1446         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
1447         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
1448         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
1449         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
1450         (BUILT_IN_GOACC_PARALLEL): Specify as
1451         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
1452         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
1453         * builtin-types.def
1454         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1455         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1456         Remove function types.
1457         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
1458         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
1459         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
1460         New function types.
1461
1462 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
1463
1464         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
1465
1466 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
1467
1468         PR tree-optimization/65170
1469         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
1470         if val[1] < 0, clear also val[2] and return 3.
1471
1472 2015-02-24  Alan Modra  <amodra@gmail.com>
1473
1474         PR target/65172
1475         * config/rs6000/rs6000.c (get_memref_parts): Only return true
1476         when *base is a reg.  Handle nested plus addresses.  Simplify
1477         pre_modify test.
1478
1479 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
1480
1481         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
1482         use natural alignment when optimizing for size.
1483
1484 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
1485
1486         PR target/65153
1487         * config/sh/sh.md (movsicc_true+3): Remove peephole.
1488         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
1489         * config/sh/sh.c (replace_n_hard_rtx): Remove.
1490
1491 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
1492
1493         PR fortran/63427
1494         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
1495         too big for a wide_int.  Implement missing wrapping operation.
1496
1497 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
1498
1499         PR target/65163
1500         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
1501         instead of const_int 4294901760.
1502
1503 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
1504
1505         * config/avr/t-avr: Fix typo in comment.
1506
1507 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
1508
1509         * doc/rtl.texi (fma): Clarify documentation.
1510
1511 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
1512
1513         PR debug/58123
1514         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
1515         over input_location.
1516
1517 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
1518
1519         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1520         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
1521         restrict alignments to absolute_biggest_alignment.
1522         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
1523         Define.
1524         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
1525         * doc/tm.texi: Regenerate.
1526         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
1527
1528 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
1529
1530         PR target/64172
1531         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
1532
1533 2015-02-20  Richard Biener  <rguenther@suse.de>
1534
1535         PR tree-optimization/65136
1536         * tree-ssa-propagate.c: Include cfgloop.h.
1537         (replace_phi_args_in): Avoid replacing loop latch edge PHI
1538         arguments with constants.
1539
1540 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
1541             Martin Liska  <mliska@suse.cz>
1542
1543         PR target/63892
1544         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
1545         don't try to create_thunk if stdarg_p.  If
1546         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
1547         redirect_callers if possible.
1548         (sem_item_optimizer::execute): Call unregister_hooks here...
1549         (ipa_icf_driver): ... instead of here.
1550
1551 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1552
1553         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
1554         Mark operand 0 as earlyclobber in 2nd alternative.
1555         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
1556         Write negated shift amount into QI lowpart operand 0 and use it
1557         in the shift step.
1558         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1559
1560 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
1561
1562         * cgraph.h (clone_function_name_1): Declare.
1563         * cgraphclones.c (clone_function_name_1): New function.
1564         (clone_function_name): Use it.
1565         * lto-partition.c: Include "stringpool.h".
1566         (must_not_rename, maybe_rewrite_identifier)
1567         (validize_symbol_for_target): New static functions.
1568         (privatize_symbol_name): Use must_not_rename.
1569         (promote_symbol): Call validize_symbol_for_target.
1570         (lto_promote_cross_file_statics): Likewise.
1571         (lto_promote_statics_nonwpa): Likewise.
1572
1573 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
1574
1575         PR target/64452
1576         * config/avr/avr.md (pushhi_insn): New insn.
1577         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
1578
1579 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
1580             Jakub Jelinek  <jakub@redhat.com>
1581
1582         * tree-streamer.c (preload_common_nodes): Don't preload
1583         TI_VA_LIST* for offloading.
1584         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
1585         in_lto_p.
1586
1587 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
1588
1589         * config/pa/pa.c (pa_emit_move_sequence): Always force
1590         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
1591         note on insn.
1592
1593         * config/pa/pa.c (pa_reloc_rw_mask): New function.
1594         (TARGET_ASM_RELOC_RW_MASK): Define.
1595         (pa_cannot_force_const_mem): Revert previous change.
1596
1597 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
1598             Jan Hubicka  <hubicka@ucw.cz>
1599
1600         PR ipa/65028
1601         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
1602         across jump functions.
1603
1604 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
1605
1606         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
1607
1608 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
1609
1610         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
1611
1612 2015-02-19  Richard Henderson  <rth@redhat.com>
1613
1614         PR middle-end/65074
1615         * varasm.c (default_binds_local_p_2): Don't test node->definition;
1616         test DECL_EXTERNAL independent of symtab_node.
1617
1618 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
1619
1620         PR lto/65012
1621         * varpool.c (varpool_node::get_constructor): Return early
1622         if this->lto_file_data is NULL.
1623
1624 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1625
1626         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
1627         (rank_for_schedule_debug): Update.
1628         (ready_sort): Make static.  Move sorting logic to ...
1629         (ready_sort_debug, ready_sort_real): New static functions.
1630         (schedule_block): Sort both debug insns and real insns in preparation
1631         for ready list trimming.  Improve debug output.
1632         * sched-int.h (ready_sort): Remove global declaration.
1633
1634 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
1635
1636         * ipa-icf.c (sem_function::equals_private): Adjust.
1637         (sem_function::bb_dict_test): Take a vec<int> * instead of
1638         auto_vec<int>.
1639         * ipa-icf.h (bb_dict_test): Likewise.
1640
1641 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
1642
1643         PR gcov-profile/64634
1644         * tree-eh.c (frob_into_branch_around): Fix up typos
1645         in function comment.
1646         (lower_catch): Put eh_seq resulting from EH lowering of
1647         the cleanup sequence after the cleanup rather than before it.
1648
1649 2015-02-18  Tom de Vries  <tom@codesourcery.com>
1650
1651         * common.opt (fstdarg-opt): New option.
1652         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
1653         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
1654         (@item -fstdarg-opt): New item.
1655
1656 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
1657
1658         PR target/65064
1659         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
1660         for common symbols.
1661
1662 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
1663
1664         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
1665         insn-modes.h.
1666         (ALL_HOST_OBJS): Add mkoffload.o.
1667         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
1668
1669 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
1670
1671         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
1672         (compare_virtual_tables): Be smarter about skipping typeinfos;
1673         do sane output on virtual table table mismatch.
1674         (warn_odr): Be ready for forward declarations of enums;
1675         output sane info on base mismatch and virtual table mismatch.
1676         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
1677         when only one type is polymorphic.
1678         (get_odr_type): Fix hashtable corruption.
1679         (dump_odr_type): Dump mangled names.
1680
1681 2015-02-18  Richard Biener  <rguenther@suse.de>
1682
1683         PR tree-optimization/65063
1684         * tree-predcom.c (determine_unroll_factor): Return 1 if we
1685         have replaced looparound PHIs.
1686
1687 2015-02-18  Martin Liska  <mliska@suse.cz>
1688
1689         * lto-streamer.c (lto_streamer_init): Encapsulate
1690         streamer_check_handled_ts_structures with checking macro.
1691
1692 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
1693
1694         PR ipa/65087
1695         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
1696         section if !implicit_section.
1697         (cgraph_node::create_version_clone_with_body): Likewise.
1698         * trans-mem.c (ipa_tm_create_version): Likewise.
1699
1700 2015-02-18  Richard Biener  <rguenther@suse.de>
1701
1702         PR tree-optimization/62217
1703         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
1704         into BIVs.
1705
1706 2015-02-18  Marek Polacek  <polacek@redhat.com>
1707
1708         PR sanitizer/65081
1709         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
1710         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
1711         is in range [-16K, -1].  Don't issue run-time error if
1712         (ptr > ptr + offset).
1713
1714 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
1715
1716         * doc/install.texi (nvptx-*-none): New section.
1717         * doc/invoke.texi (Nvidia PTX Options): Likewise.
1718         * config/nvptx/nvptx.opt: Update.
1719
1720         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
1721         (access_check): New functions, copied from
1722         config/i386/intelmic-mkoffload.c.
1723         (main): For non-installed testing, look in all COMPILER_PATHs for
1724         GCC_INSTALL_NAME.
1725
1726         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
1727
1728 2015-02-18  Andrew Pinski  <apinski@cavium.com>
1729             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1730
1731         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
1732         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
1733
1734 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
1735
1736         * ipa-visibility.c (function_and_variable_visibility): Only
1737         check locality if node is not already local.
1738         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1739         call_for_symbol_and_aliases instead of
1740         call_for_symbol_thunks_and_aliases.
1741         (ipa_inline): Likewise.
1742         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1743         first walk aliases.
1744         * ipa.c (symbol_table::remove_unreachable_nodes): Use
1745         call_for_symbol_and_aliases.
1746         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1747         (ipa_propagate_frequency_1): Use it; use opt_for_fn
1748         (ipa_propagate_frequency): Update.
1749         (ipa_profile): Add opt_for_fn gueards.
1750
1751 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
1752
1753         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
1754         * doc/invoke.texi (SH options): Document it.
1755         * config/sh/sh.c (sh_insn_length_adjustment): Check
1756         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
1757
1758 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
1759
1760         * common.opt (fipa-cp-alignment): New.
1761         * ipa-cp.c (ipcp_store_alignment_results): Check
1762         flag_ipa_cp_alignment.
1763         * opts.c (default_options_table): Enable -fipa-cp-alignment for
1764         -O2.
1765         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
1766         * doc/invoke.texi: Document -fipa-cp-alignment.
1767
1768 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
1769
1770         PR target/64793
1771         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
1772         to nil.  Adjust comments.
1773
1774 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
1775
1776         * ipa-visibility.c (function_and_variable_visibility): Only
1777         check locality if node is not already local.
1778         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1779         call_for_symbol_and_aliases instead of
1780         call_for_symbol_thunks_and_aliases.
1781         (ipa_inline): Likewise.
1782         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1783         first walk aliases.
1784         * ipa.c (symbol_table::remove_unreachable_nodes): Use
1785         call_for_symbol_and_aliases.
1786         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1787         (ipa_propagate_frequency_1): Use it; use opt_for_fn
1788         (ipa_propagate_frequency): Update.
1789         (ipa_profile): Add opt_for_fn guards.
1790
1791 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
1792
1793         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
1794         skipping of "strange" tokens.
1795
1796 2015-02-17  Jeff Law  <law@redhat.com>
1797
1798         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
1799         obsolete comment.
1800
1801 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
1802
1803         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
1804         as forcing a HARD_DEP between instructions, thereby
1805         disallowing rewriting to break dependencies.
1806
1807 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
1808
1809         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
1810         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
1811         variables in boundary that have no inlitalizer encoded and are
1812         not aliases.
1813         * varasm.c (default_binds_local_p_2): External definitions do not
1814         count as definitions here.
1815
1816 2015-02-16  Jeff Law  <law@redhat.com>
1817
1818         PR tree-optimization/64823
1819         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
1820         statements.
1821         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1822         threading through blocks with PHIs, but no statements.
1823         (thread_through_normal_block): Distinguish between blocks where
1824         we did not process all the statements and blocks with no statements.
1825
1826 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
1827             James Greenhalgh  <james.greenhalgh@arm.com>
1828
1829         PR ipa/64963
1830         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
1831         section if not linkonce.  Fix up formatting.
1832         (cgraph_node::create_version_clone_with_body): Copy section.
1833         * trans-mem.c (ipa_tm_create_version): Likewise.
1834
1835 2015-02-16  Richard Biener  <rguenther@suse.de>
1836
1837         PR tree-optimization/65077
1838         * tree-ssa-structalias.c (get_constraint_for_1): Handle
1839         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
1840         (find_func_aliases): Allow float values to carry pointers again.
1841
1842 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1843
1844         * doc/install.texi (Specific): Reorder targets list to put
1845         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
1846         from the top menu.
1847
1848 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1849             David Edelsohn  <dje.gcc@gmail.com>
1850
1851         PR target/65058
1852         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
1853         mapping class to external variable or function reference.
1854         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
1855         mapping class.
1856
1857 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
1858
1859         PR target/53348
1860         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
1861         ASM_WEAKEN_DECL if defined.
1862
1863 2015-02-16  Richard Biener  <rguenther@suse.de>
1864
1865         PR lto/65015
1866         * varasm.c (default_file_start): For LTO produced units
1867         emit <artificial> as file directive.
1868
1869 2015-02-16  Richard Biener  <rguenther@suse.de>
1870
1871         PR tree-optimization/63593
1872         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
1873         stmts and releasing SSA names until...
1874         (execute_pred_commoning): ... after processing all chains.
1875
1876 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
1877
1878         PR ipa/65059
1879         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
1880         external functions.
1881
1882 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
1883
1884         * doc/bugreport.texi: Adjust section titles throughout the file
1885         to use "Title Case".
1886         * doc/extend.texi: Likewise.
1887         * doc/gcov.texi: Likewise.
1888         * doc/implement-c.texi: Likewise.
1889         * doc/implement-cxx.texi: Likewise.
1890         * doc/invoke.texi: Likewise.
1891         * doc/objc.texi: Likewise.
1892         * doc/standards.texi: Likewise.
1893         * doc/trouble.texi: Likewise.
1894
1895 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
1896
1897         * cgraph.h (symtab_node::has_aliases_p): Simplify.
1898         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
1899         * tree.c (lookup_binfo_at_offset): Make static.
1900         (get_binfo_at_offset): Do not shadow offset; add explanatory
1901         comment.
1902
1903 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
1904
1905         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
1906         for all floading point loads and stores except those using a register
1907         index address.
1908         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
1909         to a register.
1910
1911 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
1912
1913         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
1914         (do_estimate_growth_1): Record if any uninlinable edge was seen.
1915         (estimate_growth): Handle uninlinable edges correctly.
1916         (check_callers): New.
1917         (growth_likely_positive): Handle aliases correctly.
1918
1919 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
1920
1921         * ipa-chkp.c: Use iterate_direct_aliases.
1922         * symtab.c (resolution_used_from_other_file_p): Move inline.
1923         (symtab_node::create_reference): Fix formating.
1924         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1925         (symtab_node::iterate_reference): Move inline.
1926         (symtab_node::iterate_referring): Move inline.
1927         (symtab_node::iterate_direct_aliases): Move inline.
1928         (symtab_node::used_from_object_file_p_worker): Inline into ...
1929         (symtab_node::used_from_object_file_p): ... this one; move inline.
1930         (symtab_node::call_for_symbol_and_aliases): Move inline;
1931         use iterate_direct_aliases.
1932         (symtab_node::call_for_symbol_and_aliases_1): New method.
1933         (cgraph_node::call_for_symbol_and_aliases): Move inline;
1934         use iterate_direct_aliases.
1935         (cgraph_node::call_for_symbol_and_aliases_1): New method.
1936         (varpool_node::call_for_node_and_aliases): Rename to ...
1937         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
1938         use iterate_direct_aliases.
1939         (varpool_node::call_for_symbol_and_aliases_1): New method.
1940         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
1941         (ipa_discover_readonly_nonaddressable_var): Update.
1942         * ipa-devirt.c: Fix formating.
1943         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
1944         Move inline.
1945         (cgraph_node::call_for_symbol_and_aliases): Move inline.
1946         (cgraph_node::call_for_symbol_and_aliases_1): New function..
1947         * cgraph.h (used_from_object_file_p_worker): Remove.
1948         (resolution_used_from_other_file_p): Move inline.
1949         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1950         (symtab_node::iterate_reference): Move inline.
1951         (symtab_node::iterate_referring): Move inline.
1952         (symtab_node::iterate_direct_aliases): Move inline.
1953         (symtab_node::used_from_object_file_p_worker): Inline into ...
1954         (symtab_node::used_from_object_file_p): Move inline.
1955         * tree-emutls.c (ipa_lower_emutls): Update.
1956         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
1957         (varpool_node::call_for_node_and_aliases): Remove.
1958
1959 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
1960
1961         PR tree-optimization/62209
1962         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
1963         op == range->exp, insert seq and gimplified code after labels
1964         instead of after the phi.
1965
1966 2015-02-13  Jeff Law  <law@redhat.com>
1967
1968         PR bootstrap/65060
1969         Revert my change for tree-optimization/64823.
1970
1971 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
1972
1973         PR tree-optimization/65053
1974         * tree-ssa-phiopt.c (value_replacement): When moving assign before
1975         cond, either reset VR on lhs or set it to phi result VR.
1976
1977 2015-02-13  Jeff Law  <law@redhat.com>
1978
1979         PR tree-optimization/64823
1980         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
1981         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1982         threading through blocks with PHIs, but no statements.
1983         (thread_through_normal_block): Distinguish between blocks where
1984         we did not process all the statements and blocks with no statements.
1985
1986         PR rtl-optimization/47477
1987         * match.pd (convert (plus/minus (convert @0) (convert @1): New
1988         simplifier to narrow arithmetic.
1989
1990 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
1991
1992         PR ipa/65028
1993         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
1994         polymorphic call info when type is not known to be preserved.
1995
1996 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
1997
1998         PR ipa/65028
1999         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
2000         (inline_call): Use it.
2001
2002 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
2003
2004         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
2005         GOMP_DEVICE_NVIDIA_PTX.
2006
2007 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
2008
2009         PR ipa/65034
2010         * stmt.c (emit_case_nodes): Use void_type_node instead of
2011         NULL_TREE as LABEL_DECL type.
2012
2013 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
2014
2015         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
2016         constraints.
2017         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
2018         symbolic references to data to be forced to constant memory on the
2019         SOM target.
2020
2021 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2022
2023         PR tree-optimization/65002
2024         * tree-cfg.c (pass_data_fixup_cfg): Don't update
2025         SSA on start.
2026         * tree-sra.c (some_callers_have_no_vuse_p): New.
2027         (ipa_early_sra): Reject functions whose callers
2028         assume function is read only.
2029
2030 2015-02-13  Richard Biener  <rguenther@suse.de>
2031
2032         PR lto/65015
2033         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
2034         for LTO produced CUs.
2035
2036 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
2037
2038         PR tree-optimization/64705
2039         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
2040         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
2041         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
2042         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
2043         expand_simple_operations.
2044
2045 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
2046             Richard Henderson  <rth@redhat.com>
2047
2048         PR rtl/32219
2049         * cgraphunit.c (cgraph_node::finalize_function): Set definition
2050         before notice_global_symbol.
2051         (varpool_node::finalize_decl): Likewise.
2052         * varasm.c (default_binds_local_p_2): Rename from
2053         default_binds_local_p_1, add weak_dominate argument.  Use direct
2054         returns instead of assigning to local variable.  Unify varpool and
2055         cgraph paths via symtab_node.  Reject undef weak variables before
2056         testing visibility.  Reorder tests for simplicity.
2057         (default_binds_local_p): Use default_binds_local_p_2.
2058         (default_binds_local_p_1): Likewise.
2059         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
2060         via symtab_node.
2061         (default_elf_asm_output_external): Emit visibility when specified.
2062
2063 2015-02-13  Alan Modra  <amodra@gmail.com>
2064
2065         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
2066         code setting up r11 for out-of-line fp restore.
2067
2068 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
2069
2070         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
2071         (muser-mode): Likewise.
2072
2073 2015-02-13  Alan Modra  <amodra@gmail.com>
2074
2075         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
2076         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
2077
2078 2015-02-12  David Howells  <dhowells@redhat.com>
2079
2080         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
2081         warning.
2082         * tree-ssa-uninit.c (dump_predicates): Likewise.
2083         * opts.c (print_filtered_help): Likewise.
2084
2085 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
2086
2087         * dwarf2out.c (output_die): Use "%s", name instead of name to
2088         avoid -Wformat-security warning.
2089
2090         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
2091         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
2092         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
2093         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
2094
2095 2015-02-12  Jason Merrill  <jason@redhat.com>
2096
2097         * common.opt (-flifetime-dse): New.
2098
2099 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
2100
2101         PR sanitizer/65019
2102         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
2103
2104         PR tree-optimization/65014
2105         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
2106         use original second operand of arg0 or arg1 instead of
2107         that adjusted by STRIP_NOPS.
2108
2109 2015-02-11  Jeff Law  <law@redhat.com>
2110
2111         PR target/63347
2112         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
2113         that needs to be queued, just queue it for a single cycle.
2114
2115 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
2116
2117         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
2118         bodies of thunks; comment on why.
2119         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
2120         symbols are extern.
2121
2122 2015-02-11  Richard Henderson  <rth@redhat.com>
2123
2124         PR sanitize/65000
2125         * tree-eh.c (mark_reachable_handlers): Mark source and destination
2126         regions of __builtin_eh_copy_values.
2127
2128 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
2129
2130         PR middle-end/65003
2131         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
2132         ultimate alias is MEM with SYMBOL_REF satisfying
2133         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
2134         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
2135
2136 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
2137
2138         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
2139         "diagnostic-core.h".
2140         (main): Initialize progname, and call diagnostic_initialize.
2141
2142         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
2143         instead of __OPENMP_TARGET__.
2144
2145         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
2146         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
2147         hard-coding PTX_ID.
2148
2149 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
2150
2151         * doc/sourcebuild.texi (pie_enabled): Document.
2152
2153 2015-02-11  Martin Liska  <mliska@suse.cz>
2154
2155         PR ipa/64813
2156         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
2157         a return value for call to a function that is noreturn.
2158
2159 2015-02-11  Richard Biener  <rguenther@suse.de>
2160
2161         PR lto/65015
2162         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
2163         and -fresolution.
2164
2165 2015-02-11  Andrew Pinski  <apinski@cavium.com>
2166
2167         PR target/64893
2168         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
2169         Change the first argument type to size_type_node and add another
2170         size_type_node.
2171         (aarch64_simd_expand_builtin): Handle the new argument to
2172         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
2173         print an out when the first two arguments are not
2174         nonzero integer constants.
2175         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
2176         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
2177
2178 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
2179
2180         PR target/61925
2181         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
2182         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
2183         (ix86_set_current_function): Rewritten.
2184         (ix86_add_new_builtins): Temporarily clear current_target_pragma
2185         when creating builtin fndecls.
2186
2187 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
2188
2189         PR ipa/65005
2190         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
2191         function.
2192         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
2193         have no comdat group.
2194         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
2195         (lto_output_varpool_node): Always output alias info.
2196         (output_refs): Output refs of boundary aliases, too.
2197         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
2198         (output_symtab): Output call eges in thunks in boundary.
2199         (get_alias_symbol): Remove.
2200         (input_node, input_varpool_node): Do not special case weakrefs.
2201         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
2202         alias and thunks targets in the boundary; do not take removed symbols
2203         from their comdat groups.
2204         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
2205         (cgraph_node::global_info): Remove.
2206         (cgraph_node::rtl_info): Look through aliases and thunks.
2207         * cgrpah.h (global_info): Remove.
2208         (non_local_p): Remove.
2209
2210 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
2211             Sandra Loosemore  <sandra@codesourcery.com>
2212
2213         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
2214         to inline asm.  List dialects in proper order.
2215
2216 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
2217             Sandra Loosemore  <sandra@codesourcery.com>
2218
2219         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
2220
2221 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
2222
2223         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
2224         modified) reference to Solaris.
2225
2226 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
2227
2228         * doc/extend.texi (Extended Asm): Fix typos.
2229
2230 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
2231
2232         PR sanitizer/65004
2233         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
2234
2235 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
2236
2237         PR target/64661
2238         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2239         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2240         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
2241         * config/sh/constraints.md (Ara, Add): New constraints.
2242         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
2243         predicates.
2244         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
2245         atomic_mem_operand_0.  Don't use force_reg on the memory address.
2246         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
2247         Sra constraint.  Convert to insn_and_split.  Add workaround for
2248         PR 64974.
2249         (atomic_compare_and_swap<mode>_hard): Copy to
2250         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
2251         Use atomic_mem_operand_0 predicate.
2252         (atomic_compare_and_swap<mode>_soft_gusa,
2253         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
2254         AraAdd constraints.
2255         (atomic_compare_and_swap<mode>_soft_tcb,
2256         atomic_compare_and_swap<mode>_soft_imask,
2257         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
2258         atomic_mem_operand_0 predicate and SraSdd constraints.
2259         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
2260         constraint.
2261         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
2262         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
2263         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
2264         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
2265         force_reg on the memory address.
2266         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
2267         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
2268         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
2269         atomic_mem_operand_1 predicate and Sra constraint.
2270         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
2271         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
2272         Use atomic_mem_operand_1 predicate.
2273         (atomic_<fetchop_name><mode>_hard): Copy to
2274         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
2275         Use atomic_mem_operand_1 predicate.
2276         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
2277         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
2278         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
2279         insn_and_split.  Use atomic_mem_operand_1 predicate.
2280         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
2281         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
2282         Use atomic_mem_operand_1 predicate.
2283         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
2284         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
2285         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
2286         in generated insn with original mem operand before emitting the insn.
2287         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
2288         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
2289         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
2290         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
2291         Use atomic_mem_operand_1 predicate and AraAdd constraints.
2292         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
2293         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
2294         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
2295         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
2296         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
2297         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
2298         atomic_not_fetch<mode>_soft_tcb,
2299         atomic_<fetchop_name>_fetch<mode>_soft_imask,
2300         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
2301         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
2302         Use atomic_mem_operand_1 predicate and SraSdd constraints.
2303
2304 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
2305
2306         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
2307         and 3 earlyclobber operands.
2308
2309 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
2310
2311         * common.opt (fstack-reuse): Mark as optimization.
2312
2313 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
2314
2315         PR ipa/64982
2316         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
2317
2318 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
2319
2320         PR tree-optimization/64326
2321         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
2322
2323 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
2324
2325         PR gcov-profile/61889
2326         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
2327
2328 2015-02-10  Richard Biener  <rguenther@suse.de>
2329
2330         PR tree-optimization/64995
2331         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
2332         value we use is final.
2333         (visit_reference_op_store): Always valueize op.
2334         (visit_use): Properly valueize vuses.
2335
2336 2015-02-10  Richard Biener  <rguenther@suse.de>
2337
2338         PR tree-optimization/64909
2339         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
2340         pass a scalar-stmt count estimate to the cost model.
2341         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
2342
2343 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
2344
2345         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
2346         enabled by default together with var-tracking.
2347
2348 2015-02-10  Nick Clifton  <nickc@redhat.com>
2349
2350         * config/rl78/rl78.c: Remove DIV attribute code accidentally
2351         included in previous rl78 commit.
2352
2353 2015-02-10  Richard Biener  <rguenther@suse.de>
2354
2355         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
2356         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
2357         return the bitpack.
2358
2359 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
2360
2361         PR gcov-profile/61889
2362         * config.in: regenerate.
2363         * configure.in: Likewise.
2364         * configure.ac: Check for ftw.h.
2365         * gcov-tool.c: Check for ftw.h before using nftw.
2366
2367 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
2368
2369         PR lto/64076
2370         * ipa-visibility.c (update_visibility_by_resolution_info): Only
2371         assert when not in lto mode.
2372
2373 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
2374
2375         * ira-color.c (setup_left_conflict_sizes_p): Simplify
2376         initialization/assignment of conflict_size.
2377
2378 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
2379
2380         PR ipa/64978
2381         * ipa-cp.c (gather_caller_stats): Skip thunks.
2382         (propagate_constants_topo): Skip aliases.
2383
2384 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2385
2386         PR target/64761
2387         * config/sh/sh.c (sh_option_override): Don't change
2388         -freorder-blocks-and-partition to -freorder-blocks even when
2389         unwinding is enabled.
2390         (sh_can_follow_jump): Return false if the followee jump is
2391         a crossing jump when -freorder-blocks-and-partition is specified.
2392         * config/sh/sh.md (*jump_compact_crossing): New insn.
2393
2394 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2395             Kaz Kojima  <kkojima@gcc.gnu.org>
2396
2397         PR target/64761
2398         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
2399         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
2400         (sh_can_redirect_branch): Rename to ...
2401         (sh_can_follow_jump): ... this.  Constify argument types.
2402         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
2403         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
2404         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
2405         * doc/tm.texi: Regenerate.
2406
2407 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
2408
2409         PR sanitizer/64981
2410         * builtins.c (expand_builtin): Call targetm.expand_builtin
2411         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
2412
2413 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2414
2415         PR ipa/61548
2416         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
2417
2418 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2419
2420         PR ipa/63566
2421         * ipa-icf.c (set_local): New function.
2422         (sem_function::merge): Use it.
2423
2424 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2425
2426         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
2427         (add_type_duplicate): Fix comparison of BINFOs.
2428
2429 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2430
2431         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
2432         on getting VOID pointer.
2433
2434 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
2435
2436         PR target/64979
2437         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
2438         va_list escapes.
2439
2440 2015-02-09  Richard Biener  <rguenther@suse.de>
2441
2442         * genmatch.c (replace_id): Copy expr_type.
2443
2444 2015-02-09  Richard Biener  <rguenther@suse.de>
2445
2446         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
2447         (streamer_write_tree_bitfields): Declare.
2448         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
2449         properly unpack padding.
2450         (unpack_value_fields): Inline ...
2451         (streamer_read_tree_bitfields): ... here.
2452         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
2453         and properly add padding bits.
2454         (streamer_pack_tree_bitfields): Fold into ...
2455         (streamer_write_tree_bitfields): ... this new function,
2456         exposing the bitpack object.
2457         * lto-streamer-out.c (lto_write_tree_1): Call
2458         streamer_write_tree_bitfields.
2459
2460 2015-02-09  Richard Biener  <rguenther@suse.de>
2461
2462         PR tree-optimization/54000
2463         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
2464         (struct ivopts_data): Add loop_loc member.
2465         (tree_ssa_iv_optimize_loop): Dump loop location.
2466         (create_new_ivs): Likewise, also dump number of IVs generated.
2467
2468 2015-02-09  Martin Liska  <mliska@suse.cz>
2469
2470         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
2471         just if not yet registered.
2472         (ipa_icf_generate_summary): Register callgraph hooks.
2473
2474 2015-02-08  Andrew Pinski  <apinski@cavium.com>
2475
2476         * config/aarch64/aarch64.c (gty_dummy): Delete.
2477
2478 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2479
2480         PR ipa/63566
2481         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
2482         (cgraph_node::local_p): Remove thunk related FIXME.
2483
2484 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2485
2486         PR ipa/63566
2487         * i386.c (ix86_function_regparm): Look through aliases to see if callee
2488         is local and optimized.
2489         (ix86_function_sseregparm): Likewise; also use target's SSE math
2490         settings; error out instead of silently generating wrong code
2491         on mismatches.
2492         (init_cumulative_args): Look through aliases.
2493
2494 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2495
2496         PR ipa/63566
2497         * ipa-split.c (execute_split_functions): Split if function has aliases.
2498
2499 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2500
2501         PR ipa/63566
2502         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
2503         aliases before trying to expand it.
2504         (cgraph_node::expand_thunk): Fix formating.
2505
2506 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
2507
2508         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
2509         (Using Assembly Language with C): Expand introduction.
2510         (Basic Asm): Copy-edit.  Add more information about uses of
2511         basic asm.
2512         (Extended Asm): Copy-edit.  Document new escape syntax and
2513         %l[label] syntax.
2514         (Global Reg Vars): Copy-edit.
2515         (Local Reg Vars): Likewise.
2516
2517 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
2518
2519         PR debug/2714
2520         PR bootstrap/64256
2521         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
2522         (DBX_CONTIN_CHAR): Define.
2523
2524 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
2525             Brian Rzycki  <b.rzycki@samsung.com>
2526
2527         PR tree-optimization/64878
2528         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
2529         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
2530         Stop recursion at loop phi nodes after having visited a loop phi node.
2531
2532 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
2533
2534         * toplev.c (process_options): Change flag_ipa_ra before creating
2535         optimization_{default,current}_node.
2536
2537         PR ipa/64896
2538         * cgraphunit.c (cgraph_node::expand_thunk): If
2539         restype is not is_gimple_reg_type nor the thunk_fndecl
2540         returns aggregate_value_p, set restmp to a temporary variable
2541         instead of resdecl.
2542
2543 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
2544
2545         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
2546
2547 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2548
2549         PR target/64205
2550         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2551         add a general secondary reload handler for SDmode, unless we have
2552         both read/write support for SDmode.
2553
2554 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
2555
2556         PR middle-end/64937
2557         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
2558         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
2559         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
2560         1 before, push it to abstract_vec.
2561         (dwarf2out_abstract_function): Adjust caller.  Don't call
2562         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
2563         DECL_ABSTRACT_P flags for all abstract_vec elts.
2564
2565 2015-02-06  Renlin Li  <renlin.li@arm.com>
2566
2567         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
2568         complex gimple.
2569         * tree-ssa.c (execute_update_addresses_taken): Likewise.
2570
2571 2015-02-06  Jeff Law  <law@redhat.com>
2572
2573         PR target/64889
2574         * config/h8300/h8300.c (push): New argument "in_prologue".
2575         Pass "in_prologue" along to "F".
2576         (h8300_push_pop): Corresponding changes.
2577         (h8300_expand_prologue): Likewise.
2578         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
2579
2580 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
2581
2582         PR rtl-optimization/64957
2583         PR debug/64817
2584         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
2585         IOR rather than for AND.
2586
2587 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
2588
2589         PR target/62631
2590         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
2591         of shift-add and (add + shift) operations.  Rename local variable.
2592
2593 2015-02-05  Jeff Law  <law@redhat.com>
2594
2595         PR target/17306
2596         * config/h8300/constraints.md (U): Correctly dectect
2597         "eightbit_data" memory addresses.
2598         * config/h8300/h8300.c (eightbit_constant_address_p): Also
2599         handle (const (plus (symbol_ref (x)))) where x is declared
2600         as an 8-bit data memory address.
2601         * config/h8300/h8300.md (call, call_value): Correctly detect
2602         "funcvec" functions.
2603
2604         PR target/43264
2605         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
2606         24 to 28 bits for the H8/300.
2607
2608 2015-02-06  Alan Modra  <amodra@gmail.com>
2609
2610         PR target/64876
2611         * config/rs6000/rs6000.c (chain_already_loaded): New function.
2612         (rs6000_call_aix): Use it.
2613
2614 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
2615
2616         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
2617         check.
2618
2619 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
2620
2621         * config/h8300/constraints.md ("U" constraint): Use strict
2622         variant of REG_OK_FOR_BASE_P after reload has started.
2623
2624 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
2625
2626         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
2627         define to zero if !TARGET_NEON.
2628         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
2629
2630 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2631             Trevor Saunders  <tsaunders@mozilla.com>
2632
2633         PR ipa/61548
2634         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
2635
2636 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2637
2638         PR ipa/61548
2639         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
2640         when removing varpool nodes.
2641
2642 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2643
2644         PR ipa/61548
2645         * varpool.c (varpool_node::remove): Fix order of variables.
2646
2647 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2648
2649         PR ipa/64686
2650         * ipa-inline.c (inline_small_functions): Fix ordering issue between
2651         speculation resolution and key updates.
2652
2653 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2654
2655         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
2656         about not letting any speculative edges unupdated.
2657
2658 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2659
2660         PR gcov/64123
2661         * gcov-io.c (gcov_var): Export.
2662
2663 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2664
2665         PR middle-end/64922
2666         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
2667         edges that become speculative.
2668
2669 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2670
2671         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
2672         or DW_LANG_Fortran08.
2673         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
2674         DW_LANG_Fortran08.
2675         (gen_compile_unit_die): Handle "GNU Fortran2003" and
2676         "GNU Fortran2008" language strings.
2677         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
2678         * langhooks.h (lang_GNU_Fortran): New prototype.
2679         * langhooks.c (lang_GNU_Fortran): New function.
2680         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2681         lang_GNU_Fortran.
2682
2683 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
2684
2685         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
2686         (RTX_OK_FOR_OLO10_P): Likewise.
2687
2688 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
2689
2690         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
2691
2692 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2693
2694         PR middle-end/64922
2695         * gimple.c: Include gimple-ssa.h.
2696         (maybe_remove_unused_call_args): New function.
2697         * gimple.h (maybe_remove_unused_call_args): Declare.
2698         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2699         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
2700         * gimple-fold.c (gimple_fold_call): Likewise.
2701
2702 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
2703
2704         PR rtl-optimization/64905
2705         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
2706         pointer alignment if it isn't needed.
2707
2708 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
2709
2710         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
2711         cortex-a72.cortex-a53.
2712         * config/aarch64/aarch64-tune.md: Regenerate.
2713         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
2714
2715 2015-02-04  Nick Clifton  <nickc@redhat.com>
2716
2717         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
2718         inside a MEM.
2719
2720 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2721
2722         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
2723         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
2724         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
2725         of DEF_BUILTIN.
2726         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
2727         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
2728         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
2729         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
2730         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
2731         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
2732         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
2733         * tree-core.h (enum built_in_function): In between
2734         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
2735         for builtins that use DEF_BUILTIN_CHKP macro.
2736
2737 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
2738
2739         PR debug/64817
2740         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
2741         operands for tcc_comparison exprs.  Fix typos.
2742
2743         PR debug/64817
2744         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
2745         of two XORs that have an intervening AND or IOR.
2746
2747         PR debug/64817
2748         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
2749         simplification of XOR of AND to not allocate new rtx before
2750         committing to a simplification.
2751
2752 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2753
2754         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
2755         manual swaps in all peepholes.
2756
2757 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2758
2759         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
2760         of manual swapping implementation.
2761         (aarch64_expand_vec_perm_const_1): Likewise.
2762
2763 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
2764
2765         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
2766         (generic_addrcost_table): Remove NAMED_PARAM.
2767         (cortexa57_addrcost_table): Likewise.
2768         (xgene1_addrcost_table): Likewise.
2769         (generic_regmove_table): Likewise.
2770         (cortexa53_regmove_table): Likewise.
2771         (xgene1_regmove_table): Likewise.
2772         (generic_vector_table): Likewise.
2773         (cortexa57_vector_table): Likewise.
2774         (xgene1_vector_table): Likewise.
2775         (generic_tunings): Likewise.
2776         (cortexa53_tunings): Likewise.
2777         (cortexa57_tunings): Likewise.
2778         (xgene1_tunings): Likewise.
2779
2780 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
2781
2782         * config/arm/arm-cores.def: Add cortex-a72 and
2783         cortex-a72.cortex-a53.
2784         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
2785         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2786         * config/arm/arm-tune.md: Regenerate.
2787         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
2788         "cortex-a72.cortex-a53".
2789         * doc/invoke.texi (ARM Options/-mtune): Likewise.
2790
2791 2015-02-04  Nick Clifton  <nickc@redhat.com>
2792
2793         PR target/64408
2794         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
2795         of accepted codes.
2796         (nonimmediate_di_operand): Likewise.
2797
2798         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
2799         prefixes of known F5 using MSP430 MCUs.
2800
2801 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2802
2803         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
2804         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
2805         instead of __builtin_sqrt.
2806
2807 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
2808
2809         * varasm.c (do_assemble_alias): Follow transparent alias
2810         chain for target.
2811         (default_assemble_visibility): Follow transparent alias
2812         chain for decl name.
2813
2814 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2815
2816         PR middle-end/62103
2817         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
2818         to compute size of referenced value in the constant case.
2819
2820 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
2821
2822         PR rtl-optimization/64756
2823         * cse.c (invalidate_dest): New function.
2824         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
2825         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
2826         invalidate and do not record it.
2827
2828 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
2829
2830         PR target/64660
2831         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
2832         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
2833         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
2834         atomic_nand<mode>_soft_tcb): New insns.
2835         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
2836         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
2837         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
2838         Split into atomic_not_fetchsi_hard if operands[0] is unused.
2839         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
2840         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2841         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
2842         atomic_not<mode>_hard if operands[0] is unused.
2843         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
2844         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
2845         if operands[0] is unused.
2846         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
2847         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
2848         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
2849         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2850         unused.
2851         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
2852         into atomic_not<mode>_soft_tcb if operands[0] is unused.
2853         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
2854         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
2855         if operands[0] is unused.
2856         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
2857         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
2858         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
2859         atomic_nand_fetchsi_hard if operands[0] is unused.
2860         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
2861         atomic_nand<mode>_hard if operands[0] is unused.
2862         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
2863         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
2864         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
2865         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2866         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
2867         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
2868         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
2869         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2870         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
2871         atomic_not<mode>_hard if operands[0] is unused.
2872         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
2873         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2874         unused.
2875         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
2876         into atomic_not<mode>_soft_tcb if operands[0] is unused.
2877         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
2878         atomic_nand<mode>_hard if operands[0] is unused.
2879         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
2880         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2881
2882 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
2883
2884         PR jit/64810
2885         * Makefile.in (GCC_OBJS): Add gcc-main.o.
2886         * gcc-main.c: New file, containing "main" taken from gcc.c.
2887         * gcc.c (do_self_spec): Free decoded_options.
2888         (class driver): Move declaration to gcc.h.
2889         (main): Move declaration and implementation to new file
2890         gcc-main.c.
2891         (driver_get_configure_time_options): New function.
2892         * gcc.h (class driver): Move this declaration here, from
2893         gcc.c.
2894         (driver_get_configure_time_options): New declaration.
2895
2896 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
2897
2898         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
2899         cross-module inlining.
2900         * cgraph.h (cgraph_node): Add flag merged.
2901         * ipa-icf.c (sem_function::merge): Maintain it.
2902
2903 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
2904
2905         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
2906         instead of OBJECT_P.
2907
2908 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
2909
2910         PR target/62631
2911         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
2912         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
2913         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
2914         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
2915
2916 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
2917
2918         PR other/63504
2919         * combine.c (reg_n_sets_max): New variable.
2920         (can_change_dest_mode, reg_nonzero_bits_for_combine,
2921         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
2922         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
2923         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
2924         (rest_of_handle_combine): Initialize reg_n_sets_max.
2925
2926 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
2927
2928         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
2929         if some always_inline was inlined, apply changes before inlining
2930         heuristically.
2931
2932 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
2933
2934         PR jit/64810
2935         * config/arm/arm.c (arm_option_override): Set
2936         arm_selected_arch/cpu/tune to NULL on entry.
2937
2938 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
2939             Andrew Pinski  <pinskia@gcc.gnu.org>
2940             Jakub Jelinek  <jakub@gcc.gnu.org>
2941
2942         PR target/64231
2943         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
2944         integer typing for small model. Use IN_RANGE.
2945
2946 2015-02-02  Richard Biener  <rguenther@suse.de>
2947
2948         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
2949         * tree-vrp.c (vrp_valueize_1): Likewise.
2950
2951 2015-02-02  Alan Modra  <amodra@gmail.com>
2952
2953         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
2954         than mem for toc_restore.
2955         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
2956         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
2957         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
2958
2959 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
2960
2961         PR target/64047
2962         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
2963         explicit default options.
2964
2965 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
2966
2967         PR ipa/64872
2968         * ipa-utils.c (ipa_merge_profiles): Add release argument.
2969         * ipa-icf.c (sem_function::merge): Do not release body when merging.
2970         * ipa-utils.h (ipa_merge_profiles): Update prototype.
2971
2972 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
2973
2974         PR debug/64817
2975         * cfgexpand.c (deep_ter_debug_map): New variable.
2976         (avoid_deep_ter_for_debug): New function.
2977         (expand_debug_expr): If TERed SSA_NAME is in
2978         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
2979         instead of trying to expand SSA_NAME's def stmt.
2980         (expand_debug_locations): When expanding debug bind
2981         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
2982         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
2983         value.
2984         (pass_expand::execute): Call avoid_deep_ter_for_debug on
2985         all debug bind stmts.  Delete deep_ter_debug_map after
2986         expand_debug_location if non-NULL and clear it.
2987
2988 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
2989
2990         PR target/64851
2991         * config/sh/sync.md (atomic_fetch_notsi_hard,
2992         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
2993         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
2994         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
2995         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
2996         atomic_not_fetch<mode>_soft_imask): New insns.
2997
2998 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2999
3000         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
3001         (rank_for_schedule_debug): Split from ...
3002         (rank_for_schedule): ... this.
3003         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
3004         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
3005
3006 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
3007
3008         * doc/md.texi (Machine Constraints): Alphabetize table by target.
3009         * doc/extend.texi (x86 Variable Attributes): Move section to
3010         correct alphabetization after renaming.
3011         (x86 Type Attributes): Likewise.
3012         (Target Builtins): Re-alphabetize menu.
3013         (x86 Built-in Functions): Move section to correct alphabetization
3014         after renaming.
3015         (x86 transactional memory intrinsics): Likewise.
3016         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
3017         and x86 Windows Options in table and menu.
3018         (x86 Options): Move section to correct alphabetization after
3019         renaming.
3020         (x86 Windows Options): Likewise.
3021
3022 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
3023
3024         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
3025         preferred names of the architecture and its 32- and 64-bit
3026         variants.
3027         * doc/invoke.texi: Likewise.
3028         * doc/md.texi: Likewise.
3029
3030 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
3031
3032         PR target/64882
3033         * config/i386/predicates.md (address_no_seg_operand): Reject
3034         non-CONST_INT_P operands in invalid mode.
3035
3036 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
3037
3038         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
3039         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
3040         * config/i386/predicates.md (address_no_seg_operand): Call
3041         address_operand with VOIDmode.
3042         (vsib_address_operand): Ditto.
3043         (address_mpx_no_base_operand): Ditto.
3044         (address_mpx_no_index_operand): Ditto.
3045
3046 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
3047
3048         PR target/64688
3049         * lra-constraints.c (original_subreg_reg_mode): New.
3050         (simplify_operand_subreg): Try to simplify subreg of const.  Use
3051         original_subreg_reg_mode for it.
3052         (swap_operands): Update original_subreg_reg_mode.
3053         (curr_insn_transform): Set up original_subreg_reg_mode.
3054
3055 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
3056
3057         PR target/64617
3058         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
3059         function.
3060         (process_alt_operands): Use it.
3061         (curr_insn_transform): Check the optional reload pseudo class is
3062         ok for the mode.
3063
3064 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
3065
3066         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
3067         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
3068         prototype.
3069         * toplev.h (init_asm_output): Update comment on use of
3070         UNKNOWN_LOCATION with fatal_error.
3071         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
3072         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
3073         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
3074         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
3075         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
3076         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
3077         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
3078         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
3079         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
3080         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
3081         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
3082         fatal_error changed to pass input_location as first argument.
3083
3084 2015-01-30  Martin Liska  <mliska@suse.cz>
3085
3086         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
3087         in #pragma GCC diagnostic guards.
3088
3089 2015-01-30  Richard Biener  <rguenther@suse.de>
3090
3091         PR tree-optimization/64829
3092         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
3093         not add a widening conversion pattern but hand off extra
3094         widenings to callers.
3095         (vect_recog_widen_mult_pattern): Handle extra widening produced
3096         by vect_handle_widen_op_by_const.
3097         (vect_recog_widen_shift_pattern): Likewise.
3098         (vect_pattern_recog_1): Remove excess vertical space in dumping.
3099         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
3100         (vect_init_vector_1): Likewise.
3101         (vect_get_vec_def_for_operand): Likewise.
3102         (vect_finish_stmt_generation): Likewise.
3103         (vectorizable_load): Likewise.
3104         (vect_analyze_stmt): Likewise.
3105         (vect_is_simple_use): Likewise.
3106
3107 2015-01-29  Jeff Law  <law@redhat.com>
3108
3109         * combine.c (try_combine): Fix typo in comment.
3110
3111 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
3112
3113         PR target/64580
3114         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
3115         (rs6000_stack_info): Add assert.
3116         (rs6000_output_savres_externs): New function, split off from...
3117         (rs6000_output_function_prologue): ... here.  Do not call it for
3118         thunks.
3119
3120 2015-01-29  Jeff Law  <law@redhat.com>
3121
3122         PR target/15184
3123         * combine.c (try_combine): If I0 is a memory load and I3 a store
3124         to a related address, increase the "goodness" of doing a 4-insn
3125         combination with I0-I3.
3126         (make_field_assignment): Handle SUBREGs in the ior+and case.
3127
3128 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
3129
3130         PR tree-optimization/64746
3131         * tree-if-conv.c (mask_exists): New function.
3132         (predicate_mem_writes): Save created mask with given size for further
3133         use.
3134         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
3135         (ifcvt_repair_bool_pattern): Collect all statements that are root
3136         of bool pattern and use iterative algorithm to remove multiple uses
3137         of predicates, display number of required iterations.
3138
3139 2015-01-29  Richard Biener  <rguenther@suse.de>
3140
3141         PR tree-optimization/64853
3142         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
3143         stmt will get simulated again.
3144         * tree-ssa-ccp.c (valueize_op_1): Likewise.
3145
3146 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3147
3148         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
3149         return_in_pc.  Remove redundant assignments.
3150         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
3151         (arm_expand_epilogue): Don't compare boolean with true in if condition.
3152
3153 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
3154
3155         * config/i386/i386.c (ix86_mode_after): Make static.
3156
3157 2015-01-29  Richard Biener  <rguenther@suse.de>
3158
3159         PR tree-optimization/64844
3160         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
3161         dump cost model analysis.
3162         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3163         Do not register adjusted load/store costs here.
3164
3165 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3166             Uros Bizjak  <ubizjak@gmail.com>
3167
3168         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
3169         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
3170         using x86_use_pseudo_pic_reg.
3171         * config/i386/i386.c (ix86_conditional_register_usage): Remove
3172         support for fixed PIC register.
3173         (ix86_use_pseudo_pic_reg): Not static any more.
3174
3175 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
3176
3177         PR middle-end/64805
3178         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
3179         to avoid error in cgraph node verification.
3180
3181 2015-01-29  Marek Polacek  <polacek@redhat.com>
3182
3183         * doc/standards.texi: Reflect that the default for C is gnu11.
3184
3185 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3186
3187         PR target/64761
3188         * reorg.c (switch_text_sections_between_p): New function.
3189         (relax_delay_slots): Call it when testing if the jump insn
3190         is removable.  Use targetm.can_follow_jump when testing if
3191         the conditional branch can follow an unconditional jump.
3192
3193 2015-01-27  Caroline Tice  <cmtice@google.com>
3194
3195         Committing VTV Cywin/Ming patch for Patrick Wollgast
3196         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
3197         if -fvtable-verify=preinit/std is used.
3198         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
3199         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
3200         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
3201         if -fvtable-verify=preinit/std is used.
3202         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
3203         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
3204         if -fvtable-verify=preinit/std is used.
3205         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
3206         * config/i386/mingw32.h (LIB_SPEC): Likewise.
3207         * varasm.c (assemble_variable): Add code to properly set the comdat
3208         section and name for the .vtable_map_vars section in case the
3209         target is PE or COFF.
3210
3211 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
3212
3213         PR ipa/64801
3214         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
3215         make sane BB profile.
3216         (cgraph_node::expand_thunk): Make sane BB profile.
3217         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
3218         * cgraph.h (init_lowered_empty_function): Update prototype.
3219         * config/i386/i386.c (make_resolver_func): Update call.
3220         * predict.c (gate): Disable branch prediction pass if
3221         profile is already there.
3222
3223 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
3224
3225         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
3226         * opth-gen.awk: Likewise.
3227         * common.opt: Mark flag_fp_contract_mode as Optimization.
3228
3229 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3230
3231         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
3232         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
3233
3234 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
3235
3236         PR target/64659
3237         * config/sh/predicates.md (atomic_arith_operand,
3238         atomic_logical_operand): Remove.
3239         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
3240         (atomic_arith_operand_0): New predicate.
3241         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
3242         Use atomic_arith_operand_0 for input values.
3243         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
3244         atomic_compare_and_swap<mode>_soft_gusa,
3245         atomic_compare_and_swap<mode>_soft_tcb,
3246         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
3247         arith_reg_operand instead of register_operand.
3248         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
3249         atomic_arith_operand_0 for newval input.
3250         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3251         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
3252         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
3253         arith_reg_operand instead of register_operand.
3254         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
3255         fetchop_predicate_1, fetchop_constraint_1_llcs,
3256         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
3257         fetchop_constraint_1_imask): New code iterator attributes.
3258         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
3259         register_operand.  Use fetchop_predicate_1.
3260         (atomic_fetch_<fetchop_name>si_hard,
3261         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
3262         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
3263         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
3264         and arith_reg_operand instead of register_operand.  Use
3265         fetchop_predicate_1, fetchop_constraint_1_gusa.
3266         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
3267         and arith_reg_operand instead of register_operand.  Use
3268         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
3269         to allow R0 usage.
3270         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
3271         and arith_reg_operand instead of register_operand.  Use
3272         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
3273         to allow R0 usage.
3274         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
3275         register_operand.  Use atomic_logical_operand_1.
3276         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
3277         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
3278         arith_reg_operand instead of register_operand.
3279         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
3280         Use arith_reg_dest and arith_reg_operand instead of register_operand.
3281         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
3282         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
3283         register_operand.  Use fetchop_predicate_1.
3284         (atomic_<fetchop_name>_fetchsi_hard,
3285         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
3286         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
3287         fetchop_constraint_1_llcs.
3288         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
3289         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
3290         fetchop_constraint_1_gusa.
3291         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
3292         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
3293         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
3294         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
3295         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
3296         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
3297         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
3298         register_operand.  Use atomic_logical_operand_1.
3299         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
3300         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
3301         arith_reg_operand instead of register_operand.
3302         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
3303         arith_reg_operand instead of register_operand.  Use logical_operand
3304         and K08.  Adjust asm sequence to allow R0 usage.
3305         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
3306         arith_reg_operand instead of register_operand.  Use logical_operand
3307         and K08.
3308
3309 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
3310
3311         PR other/63504
3312         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
3313         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
3314         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
3315         only get_full_len HOST_WIDE_INTs from get_val () array rather than
3316         all bits in *val_wide.
3317
3318 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
3319
3320         * varpool.c (tls_model_names): Fix names.
3321         (varpool_node::dump): Dump tls- prefix for tls models.
3322
3323 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
3324             Bernd Schmidt  <bernds@codesourcery.com>
3325             Nathan Sidwell  <nathan@codesourcery.com>
3326
3327         * config/nvptx/mkoffload.c: New file.
3328         * config/nvptx/t-nvptx: Add build rules for it.
3329         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
3330         (extra_programs): Add mkoffload.
3331         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
3332         function.
3333         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
3334
3335 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
3336
3337         PR middle-end/64809
3338         * cfgexpand.c (reorder_operands): Skip debug gimples.
3339
3340 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
3341
3342         PR tree-optimization/64277
3343         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
3344         range info when possible to refine estimation.
3345
3346 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3347
3348         PR tree-optimization/64718
3349         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
3350         be a 16bit unsigned integer when n->range is 16.
3351         (bswap_replace): Convert src to that type if necessary for all bswap
3352         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
3353         set in pass_optimize_bswap::execute ().
3354
3355 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
3356
3357         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
3358         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
3359         integer and floating point variants.
3360         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
3361
3362 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
3363
3364         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
3365         for all vector modes.
3366
3367 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
3368
3369         PR bootstrap/64612
3370         * doc/sourcebuild.texi (comdat_group): Document.
3371
3372 2015-01-28  Terry Guo  <terry.guo@arm.com>
3373
3374         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
3375
3376 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
3377
3378         * toplev.c (print_version): Add param "show_global_state", and
3379         only print GGC and plugin information if it is true.
3380         (init_asm_output): Pass in "true" for the new param when calling
3381         print_version.
3382         (process_options): Likewise.
3383         (toplev::main): Likewise.
3384         * toplev.h (print_version): Add new param to decl.
3385
3386 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
3387
3388         PR ipa/60871
3389         PR ipa/64139
3390         * tree.c (lookup_binfo_at_offset): New function.
3391         (get_binfo_at_offset): Use it.
3392
3393 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
3394
3395         PR ipa/64282
3396         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
3397         on vtable being vtable.
3398
3399 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3400
3401         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
3402         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
3403         -mhotpatch= option.
3404         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
3405         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
3406         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
3407         Renamed.
3408         (s390_hotpatch_trampoline_halfwords_max): Renamed.
3409         (s390_hotpatch_hw_max): New name.
3410         (s390_hotpatch_trampoline_halfwords): Renamed.
3411         (s390_hotpatch_hw_before_label): New name.
3412         (get_hotpatch_attribute): Removed.
3413         (s390_hotpatch_hw_after_label): New name.
3414         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
3415         attribute.
3416         (s390_attribute_table): Ditto.
3417         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
3418         (s390_function_num_hotpatch_hw): New name.
3419         Remove special handling of inline functions and hotpatching.
3420         Return number of nops before and after the function label.
3421         (s390_can_inline_p): Removed.
3422         (s390_asm_output_function_label): Emit a configurable number of nops
3423         after the function label.
3424         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
3425         (TARGET_CAN_INLINE_P) Removed.
3426         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
3427
3428 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3429             Jiong Wang  <jiong.wang@arm.com>
3430
3431         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
3432         of scratch reg.
3433         (cb<optab><mode>1): Likewise.
3434         * config/aarch64/iterators.md (bcond): New define_code_attr.
3435
3436 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3437
3438         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
3439         memory accesses.
3440
3441 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3442
3443         * config/s390/s390.c (s390_register_move_cost): Increase costs for
3444         FPR->GPR moves.
3445
3446 2015-01-27  Richard Biener  <rguenther@suse.de>
3447
3448         * tree-vrp.c (update_value_range): Intersect the range with
3449         old recorded SSA name range information.
3450
3451 2015-01-27  Nick Clifton  <nickc@redhat.com>
3452
3453         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
3454         BC, DE and HL registers directly, not via AX.
3455         When decrementing the stack pointer by a large amount, transfer SP
3456         into AX and perform the subtraction there.
3457         (rl78_expand_epilogue): Perform the inverse of the above
3458         enhancements.
3459
3460 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3461
3462         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
3463
3464 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
3465             Yury Gribov  <y.gribov@samsung.com>
3466
3467         PR ubsan/64741
3468         * ubsan.c (ubsan_source_location): Refactor code.
3469         (ubsan_type_descriptor): Update type size. Refactor code.
3470
3471 2015-01-27  Richard Biener  <rguenther@suse.de>
3472
3473         PR tree-optimization/56273
3474         PR tree-optimization/59124
3475         PR tree-optimization/64277
3476         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
3477         from the first VRP pass.
3478
3479 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
3480
3481         PR ipa/64776
3482         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
3483         handle the first argument in the same loop as all the other arguments.
3484
3485         PR rtl-optimization/61058
3486         * jump.c (cleanup_barriers): Update basic block boundaries
3487         if BLOCK_FOR_INSN is non-NULL on PREV.
3488
3489 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
3490
3491         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
3492         bounds narrowing, already instrumented calls and calls to
3493         not instrumentable functions.
3494
3495 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
3496
3497         PR tree-optimization/64807
3498         * wide-int.cc (wi::divmod_internal): Clear
3499         b_dividend[dividend_blocks_needed].
3500
3501 2015-01-26  DJ Delorie  <dj@redhat.com>
3502
3503         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
3504         volatile memory references.
3505
3506 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
3507
3508         PR target/49263
3509         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
3510         remove_insn.
3511         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
3512         shifts if it already fits into K08.
3513
3514 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
3515
3516         PR ipa/64730
3517         * ipa-inline.c (inline_small_functions): Print "unknown" even
3518         if edge->call_stmt is non-NULL, but has builtins or unknown
3519         location.
3520
3521         PR middle-end/64421
3522         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
3523         with asterisk, skip the first character.
3524
3525 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3526
3527         PR target/64806
3528         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
3529         order change.
3530
3531 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
3532
3533         PR target/64795
3534         * config/i386/i386.md (*movdi_internal): Also check operand 0
3535         to determine TYPE_LEA operand.
3536         (*movsi_internal): Ditto.
3537
3538 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
3539
3540         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
3541         OPTION_MASK_QUAD_MEMORY_ATOMIC.
3542
3543 2015-01-26  Renlin Li  <renlin.li@arm.com>
3544
3545         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
3546         the comment.
3547         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
3548         for higher part.
3549
3550 2015-01-26  Richard Biener  <rguenther@suse.de>
3551
3552         PR middle-end/64764
3553         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
3554         combining two BIT_AND_EXPR predicates.
3555
3556 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3557
3558         PR bootstrap/64754
3559         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
3560
3561 2015-01-26  Terry Guo  <terry.guo@arm.com>
3562
3563         * config/arm/arm.c (arm_file_start): Update the assignment of
3564         Tag_ABI_HardFP_use.
3565
3566 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
3567
3568         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
3569         pipeline model.
3570         config/arm/arm.md: Include the new Cortex-A57 model.
3571         (generic_sched): Don't use generic_sched when tuning for
3572         Cortex-A57.
3573
3574 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
3575             Uros Bizjak  <ubizjak@gmail.com>
3576
3577         * config/i386/i386.c (get_builtin_code_for_version): Add
3578         support for BMI and BMI2 multiversion functions.
3579
3580 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3581
3582         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
3583         (extract_bit_field): Likewise.
3584         (extract_low_bits): Likewise.
3585         (expand_mult): Likewise.
3586         (expand_mult_highpart_adjust): Likewise.
3587
3588 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3589
3590         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
3591         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
3592         * config/i386/i386.c (processor_model): Add
3593         M_INTEL_COREI7_BROADWELL.
3594         (arch_names_table): Add "broadwell".
3595
3596 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
3597
3598         PR target/49263
3599         PR target/53987
3600         PR target/64345
3601         PR target/59533
3602         PR target/52933
3603         PR target/54236
3604         PR target/51244
3605         * config/sh/sh-protos.h
3606         (sh_extending_set_of_reg::can_use_as_unextended_reg,
3607         sh_extending_set_of_reg::use_as_unextended_reg,
3608         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
3609         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
3610         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
3611         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
3612         (sh_treg_insns): New class.
3613         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
3614         (scope_counter): New class.
3615         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
3616         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
3617         sh_extending_set_of_reg::can_use_as_unextended_reg,
3618         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
3619         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
3620         sh_split_treg_set_expr): New functions.
3621         (addsubcosts): Handle treg_set_expr.
3622         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
3623         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
3624         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
3625         (sh_insn_operands_modified_between_p): Make non-static.
3626         * config/sh/predicates.md (zero_extend_movu_operand): Allow
3627         simple_mem_operand in addition to displacement_mem_operand.
3628         (zero_extend_operand): Don't allow zero_extend_movu_operand.
3629         (treg_set_expr, treg_set_expr_not_const01,
3630         arith_reg_or_treg_set_expr): New predicates.
3631         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
3632         arith_or_int_operand instead of logical_operand.  Convert to
3633         insn_and_split.  Try to optimize constant operand in splitter.
3634         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
3635         (*tstqi_t_zero): Delete.
3636         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
3637         (tstsi_t_and_not): Delete.
3638         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
3639         Convert to insn_and_split.
3640         (unnamed split, tstsi_t_zero_extract_xor,
3641         tstsi_t_zero_extract_subreg_xor_little,
3642         tstsi_t_zero_extract_subreg_xor_big): Delete.
3643         (*tstsi_t_shift_mask): New insn_and_split.
3644         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
3645         to recombine with surrounding insns when splitting.
3646         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
3647         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
3648         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
3649         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
3650         (*cbranch_div0s: Delete.
3651         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
3652         Try to recombine with surrounding insns when splitting.  Add operand
3653         order variants.
3654         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
3655         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
3656         *addc_r_r_msb, *addc_2r_msb): Delete.
3657         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
3658         order variant.
3659         (*addc_negreg_t): New insn_and_split.
3660         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
3661         Try to recombine with surrounding insns when splitting.
3662         Add operand order variants.
3663         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
3664         insn_and_split patterns.
3665         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
3666         surrounding insns when splitting.
3667         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
3668         (*rotcl): Likewise.  Add zero_extract variant.
3669         (*ashrsi2_31): New insn_and_split.
3670         (*negc): Convert to insn_and_split.  Use treg_set_expr.
3671         (*zero_extend<mode>si2_disp_mem): Update comment.
3672         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
3673         condition.
3674         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
3675         with surrounding insns when splitting.
3676         (any_treg_expr_to_reg): New insn_and_split.
3677         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
3678         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
3679         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
3680         *zero_extract_2): New single bit zero extract patterns.
3681         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
3682         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
3683         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
3684         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
3685         set destination.
3686         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
3687         register_operand for set source.
3688
3689 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
3690
3691         * i386.opt (prefetch_sse): New targetsave.
3692         * i386.c (ix86_function_specific_save): Save prefetch_sse.
3693         (ix86_function_specific_restore): Restore prefetch_sse and initialize
3694         ix86_cost/ix86_tune_cost.
3695
3696 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
3697
3698         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3699         Support the JIT by using 0 as the language type.
3700
3701 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
3702
3703         PR target/64317
3704         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
3705         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
3706         (mark_regno_live, process_bb_lives): Pass new parameter value to
3707         make_hard_regno_born.
3708
3709 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
3710
3711         PR rtl-optimization/63637
3712         PR rtl-optimization/60663
3713         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
3714         if elt->cost is MAX_COST for ASM_OPERANDS.
3715         (find_sets_in_insn): Fix up comment typo.
3716         (cse_insn): Don't set src_volatile for all non-volatile
3717         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
3718         or with "memory" clobber.  Set elt->cost to MAX_COST
3719         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
3720         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
3721
3722 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
3723
3724         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
3725         alternative 1.
3726
3727 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
3728
3729         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
3730         libgcc/config/i386/elf-lib.h.
3731
3732 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
3733
3734         PR driver/64737
3735         * gcc.c (print_configuration): Don't print a blank line at the end
3736         here...
3737         (run_attempt): ... but here unstead.
3738
3739         PR middle-end/64734
3740         * omp-low.c (scan_sharing_clauses): Don't ignore
3741         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
3742         on target data/update constructs.
3743
3744 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3745
3746         PR target/50928
3747         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
3748         (DEBUG_RELOAD): Removed define.
3749         (m32c_limit_reload_class): Enable traces with if DEBUG0.
3750         (m32c_function_arg): Added a type cast.
3751         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
3752         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
3753         * config/m32c/bitops.md (andqi3_16): Likewise.
3754         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
3755         (push_a01_l): Likewise.
3756
3757 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
3758
3759         PR jit/64721
3760         * main.c (main): Construct toplev instances with init_signals=true.
3761         * toplev.c (general_init): Add param "init_signals", and use it to
3762         conditionalize the calls to signal and host_hooks.extra_signals.
3763         (toplev::toplev): Add param "init_signals".
3764         (toplev::main): When invoking general_init, pass m_init_signals
3765         to control whether signal-handlers are installed.
3766         * toplev.h (toplev::toplev): Add param "init_signals".
3767         (toplev::m_init_signals): New field.
3768
3769 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
3770
3771         PR jit/64722
3772         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
3773         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
3774         latter may be affected by the former (e.g. on i686).
3775
3776 2015-01-23  Martin Liska  <mliska@suse.cz>
3777
3778         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
3779         false positive during profiledbootstrap.
3780
3781 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3782
3783         PR libgomp/64672
3784         * lto-opts.c (lto_write_options): Output non-explicit conservative
3785         -fno-openacc.
3786         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
3787         (append_compiler_options): Pass -fopenacc through.
3788
3789 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3790
3791         PR libgomp/64707
3792         * lto-opts.c (lto_write_options): Output non-explicit conservative
3793         -fno-openmp.
3794         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
3795         (append_compiler_options): Pass -fopenmp through.
3796
3797 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
3798
3799         PR debug/64511
3800         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
3801         GTY markup.
3802
3803         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
3804         * diagnostic.def (DK_ICE_NOBT): New kind.
3805         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
3806         like DK_ICE, but never print backtrace.
3807         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
3808         (internal_error_no_backtrace): New function.
3809         * gcc.c (execute): Use internal_error_no_backtrace instead of
3810         internal_error.
3811
3812 2015-01-22  Jeff Law  <law@redhat.com>
3813
3814         PR target/52076
3815         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
3816         improve code density for small immediate to memory case.
3817         (insv): Better handle bitfield assignments when the field is
3818         being set to all ones.
3819         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
3820         operand predicate.
3821
3822 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3823             Jakub Jelinek  <jakub@redhat.com>
3824
3825         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
3826         for !TARGET_LIBC_PROVIDES_SSP version and
3827         -fstack-protector-{all,strong,explicit} otherwise.
3828         * config/freebsd.h (LINK_SSP_SPEC): Handle
3829         -fstack-protector-{strong,explicit}.
3830
3831 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
3832             H.J. Lu  <hongjiu.lu@intel.com>
3833
3834         PR ipa/64694
3835         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
3836         heap.
3837
3838 2015-01-22  Wei Mi  <wmi@google.com>
3839
3840         PR rtl-optimization/64557
3841         * dse.c (record_store): Call get_addr for mem_addr.
3842         (check_mem_read_rtx): Likewise.
3843
3844 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3845
3846         * fold-const.c (const_binop): Add early return for non-tcc_binary.
3847
3848 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
3849
3850         * toplev.c (init_local_tick): Process the failure when read
3851         fails for random_seed.
3852
3853         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
3854         'pretty_name' to avoid memory overflow.
3855
3856 2015-01-22  Richard Biener  <rguenther@suse.de>
3857
3858         PR middle-end/64728
3859         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
3860         abnormal coalescing on undefined SSA names.
3861
3862 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
3863
3864         PR target/64688
3865         PR target/64477
3866         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
3867         for alternative 3.
3868         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
3869
3870 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
3871
3872         PR middle-end/63325
3873         * fold-const.c (fold_checksum_tree): Don't include value of
3874         expr->decl_with_vis.symtab_node in the checksum.
3875
3876 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3877
3878         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
3879
3880 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
3881
3882         PR driver/64690
3883         * gcc.c (insert_comments): New function.
3884         (try_generate_repro): Call it.
3885         (append_text): Removed.
3886
3887 2015-01-22  Richard Biener  <rguenther@suse.de>
3888
3889         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
3890         with IL incompatible options.  Properly honor user optimize
3891         attributes.
3892
3893 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
3894
3895         PR rtl-optimization/64682
3896         * combine.c (distribute_notes): When moving a death note for
3897         a register that is set in the new I2, make sure to put it
3898         before that new I2.
3899
3900 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
3901
3902         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
3903         not TARGET_DEFAULT.
3904
3905 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
3906
3907         PR debug/64511
3908         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
3909         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
3910         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
3911
3912         PR sanitizer/64706
3913         * doc/invoke.texi (-fsanitize=vptr): Document.
3914
3915         PR rtl-optimization/62078
3916         * dse.c: Include cfgcleanup.h.
3917         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
3918         anything call purge_all_dead_edges and cleanup_cfg at the end
3919         of the pass.
3920
3921 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
3922
3923         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
3924         edges.
3925
3926 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3927
3928         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
3929         decl attribute.
3930
3931 2015-01-21  David Sherwood  <david.sherwood@arm.com>
3932             Tejas Belagod <Tejas.Belagod@arm.com>
3933
3934         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
3935         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
3936         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
3937         Removed.
3938
3939 2015-01-21  David Sherwood  <david.sherwood@arm.com>
3940             Tejas Belagod <Tejas.Belagod@arm.com>
3941
3942         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
3943         (aarch64_reverse_mask): New decls.
3944         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
3945         (insn_count): New mode_attr.
3946         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
3947         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
3948         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
3949         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
3950         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
3951         (aarch64_simd_st4): New patterns.
3952         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
3953         (aarch64_reverse_mask): New functions.
3954
3955 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
3956
3957         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
3958         Declare.
3959         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
3960         addressing modes for BE.
3961         (aarch64_print_operand): Add 'R' specifier.
3962         (aarch64_simd_disambiguate_copy): Delete.
3963         (aarch64_simd_emit_reg_reg_move): New function.
3964         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
3965         in define_splits for structural moves.
3966         (mov<mode>): Use less restrictive predicates.
3967         (*aarch64_mov<mode>): Simplify and only allow for LE.
3968         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
3969
3970 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
3971
3972         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
3973
3974 2015-01-21  Richard Henderson  <rth@redhat.com>
3975
3976         PR target/64669
3977         * ccmp.c (used_in_cond_stmt_p): Remove.
3978         (expand_ccmp_expr): Don't use it.
3979
3980 2015-01-21  Nick Clifton  <nickc@redhat.com>
3981
3982         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
3983         PARALLELs.
3984
3985 2015-01-21  Richard Biener  <rguenther@suse.de>
3986
3987         PR middle-end/64313
3988         * tree-core.h (builtin_info, builtin_info_type): Turn from
3989         an object with two arrays into an array of an object with
3990         decl and two flags, implicit_p and declared_p.
3991         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
3992         set_builtin_decl, set_builtin_decl_implicit_p,
3993         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
3994         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
3995         * builtins.c (builtin_info): Adjust.
3996         * gimplify.c (gimplify_addr_expr): References to builtins
3997         that have been declared by the user makes them eligible for
3998         use by the compiler.  Call set_builtin_decl_implicit_p on them.
3999
4000 2015-01-20  Jeff Law  <law@redhat.com>
4001
4002         PR target/59946
4003         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
4004         allow pc-relative addresses in operand predicates or constraints.
4005
4006 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
4007
4008         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
4009         neon on aarch32 processors for stringops.
4010
4011 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4012
4013         PR ipa/63576
4014         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
4015
4016 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4017
4018         PR lto/45375
4019         * ipa-inline.c: Include lto-streamer.h
4020         (report_inline_failed_reason): Output source file differences and
4021         flags on optimization/target node mismatch.
4022         (can_inline_edge_p): Consider caller to be the outer inline function;
4023         be less restrictive about matching opimize and optimize_size attributes.
4024         (inline_account_function_p): Break out from ...
4025         (inline_small_functions): ... here.
4026         * ipa-inline-transform.c (clone_inlined_nodes): Use
4027         inline_account_function_p.
4028         (inline_call): Use optimize attribution; use inline_account_function_p.
4029         (inline_transform): Use opt_for_fn.
4030         * ipa-inline.h (inline_account_function_p): Declare.
4031
4032 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
4033
4034         PR debug/64663
4035         * dwarf2out.c (decl_piece_node): Don't put bitsize into
4036         mode if bitsize <= 0.
4037         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
4038         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
4039         sizes and positions.
4040
4041 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
4042
4043         * config/nios2/nios2.c (nios2_asm_file_end): Implement
4044         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
4045         needed.
4046         (TARGET_ASM_FILE_END): Define.
4047
4048 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4049
4050         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
4051         (struct tune_params): Use the enum.
4052         * arm.c (arm_*_tune): Update.
4053         (arm_option_override): Update.
4054
4055 2015-01-20  Richard Biener  <rguenther@suse.de>
4056
4057         PR ipa/64684
4058         * ipa-reference.c (add_static_var): Inline ...
4059         (analyze_function): ... here after splitting out from ...
4060         (is_proper_for_analysis): ... this.
4061
4062 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
4063
4064         PR target/64149
4065         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
4066         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
4067         replace the conditional with it's true branch.
4068         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
4069         (arm_lra_p): Remove.
4070
4071 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
4072
4073         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
4074
4075 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4076
4077         * config/tilegx/mul-tables.c: Move symtab.h include after
4078         coretypes.h include.
4079         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
4080         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
4081         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
4082         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
4083         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
4084
4085 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
4086
4087         PR bootstrap/64676
4088         Revert:
4089         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
4090
4091         PR rtl-optimization/64081
4092         * loop-iv.c (def_pred_latch_p): New function.
4093         (latch_dominating_def): Allow specific cases with non-single
4094         definitions.
4095         (iv_get_reaching_def): Likewise.
4096         (check_complex_exit_p): New function.
4097         (check_simple_exit): Use check_complex_exit_p to allow certain cases
4098         with exits not executing on any iteration.
4099
4100 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4101
4102         PR lto/45375
4103         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
4104         to set branch cost.
4105
4106 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4107
4108         PR lto/45375
4109         * i386.c (gate): Check flag_expensive_optimizations and
4110         optimize_size.
4111         (ix86_option_override_internal): Drop optimize_size condition
4112         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
4113         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
4114         MASK_PREFER_AVX128.
4115         (ix86_avx256_split_vector_move_misalign,
4116         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
4117         * sse.md (all uses of TARGET_PREFER_AVX128): Add
4118         optimize_insn_for_speed_p check.
4119
4120 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
4121
4122         * config/mips/mips.h (FP_ASM_SPEC): New define.
4123         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
4124         instead.
4125
4126 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
4127
4128         PR target/53988
4129         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
4130         nullptr for insn when reaching the first insn.
4131         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
4132         (sh_insn_operands_modified_between_p): Add nullptr check.
4133         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
4134         sign extending mem load if the insn contains any UNSPEC or
4135         UNSPEC_VOLATILE.
4136
4137 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4138
4139         * params.def (inline-unit-growth): Drop to 15%.
4140         * invoke.texi (inline-unit-growth): Document change.
4141
4142 2015-01-19  Martin Liska  <mliska@suse.cz>
4143
4144         PR ipa/64668
4145         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
4146         function for second argument of OBJ_TYPE_REF.
4147
4148 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4149
4150         PR ipa/64218
4151         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
4152         whether function is an alias.
4153
4154 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
4155
4156         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
4157         cases.
4158
4159 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
4160
4161         PR rtl-optimization/64671
4162         * lra-remat.c (operand_to_remat): Don't consider jump and call
4163         insns.
4164
4165 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
4166
4167         PR target/59828
4168         * config/rs6000/default64.h: Include rs6000-cpus.def.
4169         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
4170         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
4171         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
4172         and POWER8.
4173         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
4174         POWER8.
4175         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
4176         pseudo-op to specify assembler dialect.
4177
4178 2015-01-19  Martin Liska  <mliska@suse.cz>
4179
4180         PR ipa/64664
4181         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
4182         Handle safe potentially removed nodes during filtering.
4183
4184 2015-01-19  Martin Liska  <mliska@suse.cz>
4185
4186         * doc/extend.texi (no_icf): Add new attribute description.
4187         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
4188         where the pass attempts to merge a function with no_icf attribute.
4189
4190 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4191
4192         PR target/64532
4193         * doc/md.texi (ARM Options): Document register constraints.
4194
4195 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
4196             Andrew Pinski  <apinski@cavium.com>
4197
4198         PR target/64304
4199         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
4200         (ashl<mode>3): Don't expand if operands[2] is not constant.
4201
4202 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4203
4204         PR target/64448
4205         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
4206         Match xor-and-xor RTL pattern.
4207
4208 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
4209
4210         PR rtl-optimization/64081
4211         * loop-iv.c (def_pred_latch_p): New function.
4212         (latch_dominating_def): Allow specific cases with non-single
4213         definitions.
4214         (iv_get_reaching_def): Likewise.
4215         (check_complex_exit_p): New function.
4216         (check_simple_exit): Use check_complex_exit_p to allow certain cases
4217         with exits not executing on any iteration.
4218
4219 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
4220
4221         * common.opt (fgraphite): Fix a typo.
4222
4223 2015-01-19  Felix Yang  <felix.yang@huawei.com>
4224
4225         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
4226         pattern.
4227         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
4228         uminp, smax_nanp, smin_nanp): New builtins.
4229         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
4230         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
4231         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
4232         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
4233         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
4234         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
4235         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
4236         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
4237         vpminnms_f32): Rewrite using builtin functions.
4238
4239 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
4240
4241         PR libgomp/64625
4242         * omp-low.c (offload_symbol_decl): Remove variable.
4243         (get_offload_symbol_decl): Remove function.
4244         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
4245         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
4246         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
4247         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
4248         BUILT_IN_GOACC_UPDATE don't pass it at all.
4249
4250 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
4251
4252         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
4253         callers.
4254
4255 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
4256
4257         * ipa-chkp.c (chkp_produce_thunks): Add early param
4258         to split thunks production into two passes.  Keep
4259         'always_inline' function bodies after the first pass.
4260         (pass_data_ipa_chkp_early_produce_thunks): New.
4261         (pass_ipa_chkp_early_produce_thunks): New.
4262         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
4263         chkp_produce_thunks signature.
4264         (make_pass_ipa_chkp_early_produce_thunks): New.
4265         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
4266         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
4267         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
4268
4269 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
4270
4271         * cgraph.c (cgraph_node::dump): Dump profile flags.
4272
4273 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
4274
4275         PR target/64652
4276         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
4277         reg appear first in the parallel.
4278
4279 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
4280
4281         * ipa-reference.c (set_reference_optimization_summary,
4282         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
4283         disabled.
4284         (ignore_module_statics): New static var.
4285         (propagate_bits): If ipa-reference is disabled, do not look into local
4286         properties.
4287         (analyze_function): Disable analysis when ipa_reference is disabled.
4288         (generate_summary): Do not dump when reference is disabled;
4289         collect vars accessed from functions with ipa-reference disabled.
4290         (get_read_write_all_from_node): When ipa-reference is disabled, use the
4291         node flags.
4292         (gate): Enable for LTO.
4293         (ignore_edge_p): New function.
4294         (propagate): Skip functions w/o ipa-reference analysis.
4295         * optc-save-gen.awk: Handle optimize_debug correctly.
4296         * opth-gen.awk: Likewise.
4297         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
4298         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
4299         fira-share-save-slots, fira-share-spill-slots,
4300         fmodulo-sched-allow-regmoves, fpartial-inlining,
4301         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
4302         ftracer, ftree-parallelize-loops, fassociative-math,
4303         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
4304         Optimization
4305         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
4306         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
4307         Optimization.
4308         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
4309         Fix for IPA.
4310
4311 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
4312
4313         PR ipa/64378
4314         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
4315         flag correctly.
4316         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
4317
4318 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
4319
4320         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
4321         Remove duplicate option listings.
4322
4323 2015-01-18  Felix Yang  <felix.yang@huawei.com>
4324
4325         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
4326         (autofdo_source_profile::get_callsite_total_count,
4327         function_instance::get_function_instance_by_decl,
4328         string_table::get_index, string_table::get_index_by_decl,
4329         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
4330         Fix comment typos. Reformatting and minor code rearrangement.
4331
4332 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
4333
4334         * config/rs6000/rs6000.md (probe_stack): Delete.
4335         (probe_stack_address): New.
4336
4337 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
4338
4339         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
4340         to test for 32-bit ABIs, not !TARGET_POWERPC64.
4341
4342 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
4343
4344         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
4345         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
4346         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
4347         snafu.
4348         (rs6000_libcall_value): Use the new function.
4349
4350 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
4351
4352         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
4353
4354 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
4355
4356         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
4357         implement a more precise life analysis for it during backward scan.
4358
4359 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4360
4361         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
4362
4363 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
4364
4365         PR rtl-optimization/52773
4366         * calls.c (emit_library_call_value): When pushing arguments use
4367         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
4368         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
4369         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
4370
4371 2015-01-17  Jeff Law  <law@redhat.com>
4372
4373         PR rtl-optimization/32790
4374         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
4375         not ZERO_EXTEND in SET_DESTs.
4376
4377 2015-01-17  Alan Modra  <amodra@gmail.com>
4378
4379         * cprop.c (do_local_cprop): Revert last change.
4380
4381 2015-01-16  DJ Delorie  <dj@redhat.com>
4382             Nick Clifton  <nickc@redhat.com>
4383
4384         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
4385         (addhi3_real): Likewise.  Fix [HL+0] syntax.
4386         (subqi3_real): Likewise.
4387         (subhi3_real): Likewise.
4388         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
4389         (cbranchhi4_real): Likewise.
4390         (cbranchhi4_real_inverted): Likewise.
4391         (cbranchsi4_real_lt): Likewise.
4392         (cbranchsi4_real_ge): Likewise.
4393         (cbranchsi4_real_ge): Likewise.
4394         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
4395         (sub<mode>3_virt): Likewise.
4396         (cbranchqi4_virt): Likewise.
4397         (cbranchhi4_virt): Likewise.
4398         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
4399         always use '[reg+imm]' even when imm is zero.
4400         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
4401         (rl78_general_operand): New.
4402         (rl78_nonimmediate_operand): New.
4403         (rl78_nonfar_operand): Use them.
4404         (rl78_nonfar_nonimm_operand): Likewise.
4405         (rl78_stack_based_mem): Fix.
4406         * config/rl78/constraints.md (Ibqi): New.
4407         (IBqi): New.
4408         (Wsa): New.
4409         (Wsf): New.
4410         (Cs1): Fix.
4411         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
4412         (iorqi3): Likewise.
4413         (xorqi3): Likewise.
4414         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
4415
4416         * config/rl78/constrains (Qs8): New constraint.
4417         * config/rl78/rl78.c (rl78_flags_already_set): New function.
4418         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
4419         * config/rl78/rl78-real.md (update_Z): New attribute.
4420         Update patterns to set it.
4421         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
4422         shorter compare and branch sequence can be used.
4423         (cbranchhi4_real): Likewise.
4424         (cbranchhi4_real_inverted): Likewise.
4425
4426         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
4427         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
4428         address space.
4429         * config/rl78/rl78.c (rl78_get_name_encoding): New.
4430         (rl78_option_override): Allow -mes0 only if C.
4431         (characterize_address): Support subregs of symbol_refs.
4432         (rl78_addr_space_address_mode): Move.  Add __near.
4433         (rl78_far_p): Likewise.
4434         (rl78_addr_space_pointer_mode): Likewise.
4435         (rl78_as_legitimate_address): Likewise.
4436         (rl78_addr_space_subset_p): Likewise.
4437         (rl78_addr_space_convert): Likewise.
4438         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
4439         symbols with -mes0.
4440         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
4441         addressing.
4442         (rl78_alloc_physical_registers_op1): Change logic to prefer
4443         symbol[BC] addressing.
4444         (frodata_section): New.
4445         (rl78_asm_init_sections): Initialize it.
4446         (rl78_select_section): Put __far readonly symbols in .frodata.
4447         (rl78_make_type_far): New.
4448         (rl78_insert_attributes): Force all readonly symbols to be
4449         __far when -mes0.
4450         (rl78_asm_out_integer): New.
4451         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
4452         * config/rl78/rl78.opt (-mes0): New.
4453
4454         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
4455         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
4456         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
4457         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
4458         (rl78_saddr_p): New.
4459         (rl78_output_aligned_common): New.
4460         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
4461         (rl78_handle_saddr_attribute): New.
4462         (rl78_handle_naked_attribute): New.
4463         (rl78_attribute_table): Add saddr.
4464         (rl78_print_operand_1): Don't print '!' on saddr operands.
4465         (rl78_print_operand_1): Strip encodings.
4466         (rl78_sfr_p): New.
4467         (rl78_strip_name_encoding): New.
4468         (rl78_attrlist_to_encoding): New.
4469         (rl78_encode_section_info): New.
4470         (rl78_asm_init_sections): New.
4471         (rl78_select_section): New.
4472         (rl78_output_labelref): New.
4473         (rl78_output_aligned_common): New.
4474         (rl78_asm_out_integer): New.
4475         (rl78_asm_ctor_dtor): New.
4476         (rl78_asm_constructor): New.
4477         (rl78_asm_destructor): New.
4478
4479         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
4480         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
4481         (transcode_memory_rtx): Update.
4482         (rl78_expand_epilogue): Use A_REG instead of 0.
4483
4484 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4485
4486         * config/arm/arm-protos.h (struct tune_params): New field
4487         sched_autopref_queue_depth.
4488         * config/arm/arm.c (sched-int.h): Include header.
4489         (arm_first_cycle_multipass_dfa_lookahead_guard,)
4490         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
4491         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
4492         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
4493         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
4494         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
4495         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
4496         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
4497         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
4498         * config/arm/t-arm (arm.o): Update.
4499         * haifa-sched.c (update_insn_after_change): Update.
4500         (rank_for_schedule): Use auto-prefetcher model, if requested.
4501         (autopref_multipass_init): New static function.
4502         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
4503         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
4504         variable for debug dumps.
4505         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
4506         (autopref_multipass_dfa_lookahead_guard): New global function that
4507         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
4508         (init_h_i_d): Update.
4509         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
4510         * sched-int.h (enum autopref_multipass_data_status): New const enum.
4511         (autopref_multipass_data_): Structure for auto-prefetcher data.
4512         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
4513         (struct _haifa_insn_data:autopref_multipass_data): New field.
4514         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
4515         (autopref_multipass_dfa_lookahead_guard): Declare.
4516
4517 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4518
4519         * rtlanal.c (get_base_term): Handle SCRATCH.
4520
4521 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4522
4523         * config/aarch64/aarch64.c
4524         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
4525         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
4526         * config/arm/arm.c
4527         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
4528         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
4529
4530 2015-01-17  Alan Modra  <amodra@gmail.com>
4531
4532         * cprop.c (do_local_cprop): Disallow replacement of fixed
4533         hard registers.
4534
4535 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4536
4537         PR target/62066
4538         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
4539         early return 0.
4540
4541 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4542
4543         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
4544         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
4545
4546 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4547
4548         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
4549         * config/arm/thumb1.md: ... Here.
4550
4551 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4552
4553         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
4554         TImode for TARGET_32BIT.
4555
4556 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4557
4558         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
4559         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
4560         as ...
4561         (rs6000_abi_word_mode): New function.
4562
4563 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4564
4565         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
4566         instead of UNITS_PER_WORD to describe the size of stack slots.
4567
4568 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4569
4570         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
4571         as rs6000_promote_function_mode.  Move comment to there.
4572         (rs6000_promote_function_mode): New function.
4573
4574 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4575
4576         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
4577         -mpowerpc64 is active.
4578
4579 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
4580
4581         PR middle-end/64353
4582         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
4583         virtuals on start.
4584
4585 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
4586
4587         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
4588         introduced in revision 219724.
4589
4590 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4591             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4592
4593         PR target/64263
4594         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
4595         destination is not a GP reg.
4596         (*movdi_aarch64): Likewise.
4597
4598 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
4599
4600         PR target/64623
4601         * config/rs6000/default64.h: Revert ISA change.
4602
4603 2015-01-16  Richard Biener  <rguenther@suse.de>
4604
4605         PR middle-end/64614
4606         * tree-ssa-uninit.c: Include tree-cfg.h.
4607         (MAX_SWITCH_CASES): New define.
4608         (convert_control_dep_chain_into_preds): Handle switch statements.
4609         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
4610         (normalize_one_pred_1): Do not split bit-manipulations.
4611         Record (x & CST).
4612
4613 2015-01-16  Richard Biener  <rguenther@suse.de>
4614
4615         PR tree-optimization/64568
4616         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
4617         complex load rewriting for TARGET_MEM_REFs.
4618
4619 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
4620
4621         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
4622
4623 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
4624
4625         PR target/64149
4626         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
4627         variable.
4628         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
4629         (aarch64_lra_p): Remove.
4630
4631 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
4632
4633         PR target/64363
4634         * ipa-chkp.h (chkp_instrumentable_p): New.
4635         * ipa-chkp.c: Include tree-inline.h.
4636         (chkp_instrumentable_p): New.
4637         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
4638         Fix processing of not instrumentable functions.
4639         (chkp_versioning): Use chkp_instrumentable_p. Warn about
4640         not instrumentable functions.
4641         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
4642         chkp_instrumentable_p.
4643         * tree-inline.h (copy_forbidden): New.
4644         * tree-inline.c (copy_forbidden): Not static anymore.
4645
4646 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4647
4648         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
4649         ptr1, ptr2 unused.
4650
4651 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4652
4653         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
4654         type OP_OUT to OP_INOUT.
4655
4656 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4657
4658         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
4659         (high x) y) to y if x and y have the same base.
4660
4661 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
4662
4663         * config/arm/cortex-a57.md: New.
4664         * config/aarch64/aarch64.md: Include it.
4665         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
4666         * config/aarch64/aarch64-tune.md: Regenerate.
4667
4668 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4669
4670         PR target/64015
4671         * ccmp.c (expand_ccmp_next): New function.
4672         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
4673         and compare insn sequence.
4674         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4675         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
4676         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
4677         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
4678         (*ccmp_ior): Changed to ccmp_ior<mode>.
4679         (cmp<mode>): New pattern.
4680         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
4681         parameters.
4682         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
4683
4684 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
4685
4686         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
4687         _mm256_bsrli_epi128): New.
4688         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
4689
4690 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
4691
4692         * expmed.c (store_bit_field_using_insv): Improve warning message.
4693         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
4694
4695 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
4696
4697         PR rtl-optimization/64011
4698         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
4699         there is partial overflow.
4700
4701 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4702
4703         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
4704         prototype.
4705         (nds32_expand_epilogue_v3pop): Likewise.
4706         * config/nds32/nds32.md (sibcall): Define this for sibling call
4707         optimization.
4708         (sibcall_register): Likewise.
4709         (sibcall_immediate): Likewise.
4710         (sibcall_value): Likewise.
4711         (sibcall_value_register): Likewise.
4712         (sibcall_value_immediate): Likewise.
4713         (sibcall_epilogue): Likewise.
4714         (epilogue): Pass false to indicate this is not a sibcall epilogue.
4715         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
4716         (nds32_expand_epilogue_v3pop): Likewise.
4717
4718 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4719
4720         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
4721         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
4722         (return_internal): New.
4723         (return): Define this named pattern.
4724         (simple_return): Define this named pattern.
4725         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
4726         pattern instead of unspec_volatile_func_return.
4727         (nds32_expand_epilogue_v3pop): Likewise.
4728         (nds32_can_use_return_insn): New function.
4729
4730 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4731
4732         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
4733         * config/nds32/nds32.md (pop25return): New.
4734         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
4735         pop25return pattern.
4736
4737 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4738
4739         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
4740         -mforbid-fp-as-gp, and -mex9 options.
4741
4742 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4743
4744         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
4745         remove -mgp-direct option.
4746
4747 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4748
4749         * doc/invoke.texi (--param early-inlining-insns): Update default value.
4750         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
4751
4752 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4753
4754         * ipa-inline.c (inline_small_functions): Work around hints
4755         cache issue.
4756
4757 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
4758
4759         PR target/59710
4760         * doc/invoke.texi (Option Summary): Document new Nios II
4761         -mgpopt= syntax.
4762         (Nios II Options): Likewise.
4763         * config/nios2/nios2.opt: Add -mgpopt= option support.
4764         Modify existing -mgpopt and -mno-gpopt options to be aliases.
4765         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
4766         * config/nios2/nios2.c (nios2_option_override): Adjust
4767         -mgpopt defaulting.
4768         (nios2_in_small_data_p): Return true for explicit small data
4769         sections even with -G0.
4770         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
4771         option choices.
4772
4773 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4774
4775         PR ipa/64612
4776         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
4777         of comdat locals.
4778         (inline_call): Fix removal of aliases.
4779
4780 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
4781
4782         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
4783         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
4784         * opts.c (common_handle_option): Add -fsanitize=vptr.
4785         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
4786         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
4787         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
4788         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
4789         (ubsan_expand_vptr_ifn): New prototype.
4790         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
4791         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
4792         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
4793         expand_LOOP_VECTORIZED): Make argument nameless, remove
4794         ATTRIBUTE_UNUSED.
4795         (expand_UBSAN_VPTR): New function.
4796         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
4797         in fn spec.
4798         (UBSAN_VPTR): New internal function.
4799         * sanopt.c (tree_map_traits): Renamed to ...
4800         (sanopt_tree_map_traits): ... this.
4801         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
4802         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
4803         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
4804         (maybe_optimize_ubsan_vptr_ifn): New function.
4805         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
4806         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
4807         -fsanitize=vptr.
4808         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
4809         internal calls like pure functions for aliasing, even when they
4810         have other side-effects that prevent making them ECF_PURE.
4811         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
4812         (ubsan_expand_vptr_ifn): New function.
4813
4814 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4815
4816         PR rtl-optimization/64110
4817         * stmt.c (parse_output_constraint): Process '^' and '$'.
4818         (parse_input_constraint): Ditto.
4819         * lra-constraints.c (process_alt_operands): Process the new
4820         constraints.
4821         * ira-costs.c (record_reg_classes): Process the new constraint
4822         '^'.
4823         * genoutput.c (indep_constraints): Add '^' and '$'.
4824         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
4825         * doc/md.texi: Add description of the new constraints.
4826
4827 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
4828             Bernd Schmidt  <bernds@codesourcery.com>
4829             Cesar Philippidis  <cesar@codesourcery.com>
4830             James Norris  <jnorris@codesourcery.com>
4831             Tom de Vries  <tom@codesourcery.com>
4832             Ilmir Usmanov  <i.usmanov@samsung.com>
4833             Dmitry Bocharnikov  <dmitry.b@samsung.com>
4834             Evgeny Gavrin  <e.gavrin@samsung.com>
4835             Jakub Jelinek  <jakub@redhat.com>
4836
4837         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
4838         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4839         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4840         New function types.
4841         * builtins.c: Include "gomp-constants.h".
4842         (expand_builtin_acc_on_device): New function.
4843         (expand_builtin, is_inexpensive_builtin): Handle
4844         BUILT_IN_ACC_ON_DEVICE.
4845         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
4846         New macros.
4847         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
4848         flag_openmp.
4849         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
4850         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
4851         i386/intelmic-offload.h.
4852         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
4853         to libgomp and its dependencies.
4854         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
4855         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4856         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4857         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4858         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4859         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4860         * doc/generic.texi: Update for OpenACC changes.
4861         * doc/gimple.texi: Likewise.
4862         * doc/invoke.texi: Likewise.
4863         * doc/sourcebuild.texi: Likewise.
4864         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
4865         GF_OMP_FOR_KIND_OACC_LOOP.
4866         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
4867         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
4868         GF_OMP_TARGET_KIND_OACC_UPDATE,
4869         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4870         Dump more data.
4871         * gimple.c: Update comments for OpenACC changes.
4872         * gimple.def: Likewise.
4873         * gimple.h: Likewise.
4874         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
4875         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4876         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
4877         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4878         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
4879         appropriate place.
4880         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
4881         * gimplify.c: Include "gomp-constants.h".
4882         Update comments for OpenACC changes.
4883         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
4884         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
4885         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4886         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4887         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4888         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4889         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
4890         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4891         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4892         OMP_CLAUSE_SEQ.
4893         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
4894         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
4895         OMP_CLAUSE_SET_MAP_KIND.
4896         (gimplify_oacc_cache): New function.
4897         (gimplify_omp_for): Handle OACC_LOOP.
4898         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
4899         OACC_DATA.
4900         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
4901         OACC_EXIT_DATA, OACC_UPDATE.
4902         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
4903         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
4904         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
4905         (gimplify_body): Consider flag_openacc next to flag_openmp.
4906         * lto-streamer-out.c: Include "gomp-constants.h".
4907         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
4908         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
4909         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
4910         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
4911         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
4912         (BUILT_IN_ACC_ON_DEVICE): New builtins.
4913         * omp-low.c: Include "gomp-constants.h".
4914         Update comments for OpenACC changes.
4915         (struct omp_context): Add reduction_map, gwv_below, gwv_this
4916         members.
4917         (extract_omp_for_data, use_pointer_for_field, install_var_field)
4918         (new_omp_context, delete_omp_context, scan_sharing_clauses)
4919         (create_omp_child_function, scan_omp_for, scan_omp_target)
4920         (check_omp_nesting_restrictions, lower_reduction_clauses)
4921         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
4922         Update for OpenACC changes.
4923         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
4924         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
4925         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
4926         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4927         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
4928         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
4929         OMP_CLAUSE_MAP_*.
4930         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4931         Handle GF_OMP_FOR_KIND_OACC_LOOP.
4932         (expand_omp_target, lower_omp_target): Handle
4933         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4934         GF_OMP_TARGET_KIND_OACC_UPDATE,
4935         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
4936         GF_OMP_TARGET_KIND_OACC_DATA.
4937         (pass_expand_omp::execute, execute_lower_omp)
4938         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
4939         flag_openmp.
4940         (offload_symbol_decl): New variable.
4941         (oacc_get_reduction_array_id, oacc_max_threads)
4942         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
4943         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
4944         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
4945         (oacc_gimple_assign, oacc_initialize_reduction_data)
4946         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
4947         functions.
4948         (is_targetreg_ctx): Remove function.
4949         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
4950         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
4951         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4952         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
4953         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
4954         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
4955         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
4956         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
4957         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
4958         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
4959         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
4960         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
4961         * tree-core.h: Update comments for OpenACC changes.
4962         (enum omp_clause_map_kind): Remove.
4963         (struct tree_omp_clause): Change type of map_kind member from enum
4964         omp_clause_map_kind to unsigned char.
4965         * tree-inline.c: Update comments for OpenACC changes.
4966         * tree-nested.c: Likewise.  Include "gomp-constants.h".
4967         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
4968         (convert_tramp_reference_stmt, convert_gimple_call): Update for
4969         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
4970         OMP_CLAUSE_SET_MAP_KIND.
4971         * tree-pretty-print.c: Include "gomp-constants.h".
4972         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
4973         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
4974         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
4975         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
4976         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4977         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
4978         instead of OMP_CLAUSE_MAP_*.
4979         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
4980         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
4981         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4982         * tree-streamer-in.c: Include "gomp-constants.h".
4983         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
4984         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
4985         * tree-streamer-out.c: Include "gomp-constants.h".
4986         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
4987         OMP_CLAUSE_MAP_*.
4988         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
4989         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
4990         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
4991         * tree.c (omp_clause_num_ops): Update accordingly.
4992         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
4993         Likewise.
4994         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
4995         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
4996         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
4997         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
4998         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
4999         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
5000         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
5001         (OMP_CLAUSE_SET_MAP_KIND): New macro.
5002         * varpool.c (varpool_node::get_create): Consider flag_openacc next
5003         to flag_openmp.
5004         * config/i386/intelmic-offload.h: New file.
5005         * config/nvptx/offload.h: Likewise.
5006
5007 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5008
5009         * explow.h: Remove duplicate contents.
5010         * dojump.h: Likewise.
5011
5012 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
5013
5014         * arm.c (arm_xgene_tune): Add default initializer for instruction
5015         fusion.
5016
5017 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
5018
5019         PR ipa/64068
5020         PR ipa/64559
5021         * ipa.c (symbol_table::remove_unreachable_nodes):
5022         Do not put abstract origins into boundary.
5023
5024 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
5025
5026         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
5027         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
5028
5029 2015-01-15  Steve Ellcey  <sellcey@mips.com>
5030
5031         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
5032         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
5033         builtins.def, and chkp-builtins.def.
5034
5035 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
5036
5037         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
5038         ISA 2.7 (POWER8).
5039
5040 2015-01-15  Richard Biener  <rguenther@suse.de>
5041
5042         PR tree-optimization/61743
5043         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
5044         information on PHIs for some simple cases.
5045
5046 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5047
5048         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
5049         Include xgene1.md.
5050         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
5051         * config/arm/arm-cores.def (xgene1): New entry.
5052         * config/arm/arm-tables.opt: Regenerate.
5053         * config/arm/arm-tune.md: Regenerate.
5054         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
5055
5056 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
5057
5058         * tree-if-conv.c: Include hash-map.h.
5059         (aggressive_if_conv): New variable.
5060         (fold_build_cond_expr): Add simplification of non-zero condition.
5061         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
5062         destination block is not always executed.
5063         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
5064         than two predecessors if AGGRESSIVE_IF_CONV is true.
5065         (if_convertible_stmt_p): Fix commentary.
5066         (all_preds_critical_p): New function.
5067         (has_pred_critical_p): New function.
5068         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
5069         BB can have more than two predecessors and all incoming edges can be
5070         critical.
5071         (predicate_bbs): Skip predication for loop exit block, use build2_loc
5072         to compute predicate for true edge.
5073         (find_phi_replacement_condition): Delete this function.
5074         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
5075         Allow interchange PHI arguments if EXTENDED is false.
5076         Change check that block containing reduction statement candidate
5077         is predecessor of phi-block since phi may have more than two arguments.
5078         (phi_args_hash_traits): New helper structure.
5079         (struct phi_args_hash_traits): New type.
5080         (phi_args_hash_traits::hash): New function.
5081         (phi_args_hash_traits::equal_keys): New function.
5082         (gen_phi_arg_condition): New function.
5083         (predicate_scalar_phi): Add handling of phi nodes with more than two
5084         arguments, delete COND and TRUE_BB arguments, insert body of
5085         find_phi_replacement_condition to predicate ordinary phi nodes.
5086         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
5087         delete call of find_phi_replacement_condition and invoke
5088         predicate_scalar_phi with two arguments.
5089         (insert_gimplified_predicates): Add assert that non-predicated block
5090         don't have statements to insert.
5091         (ifcvt_split_critical_edges): New function.
5092         (ifcvt_split_def_stmt): Likewise.
5093         (ifcvt_walk_pattern_tree): Likewise.
5094         (stmt_is_root_of_bool_pattern): Likewise.
5095         (ifcvt_repair_bool_pattern): Likewise.
5096         (ifcvt_local_dce): Likewise.
5097         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
5098         is copy of inner or outer loop force_vectorize field, invoke
5099         ifcvt_split_critical_edges, ifcvt_local_dce and
5100         ifcvt_repair_bool_pattern for aggressive if-conversion.
5101
5102 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
5103
5104         * config/aarch64/aarch64.md: Include xgene1.md.
5105         * config/aarch64/xgene1.md: New file.
5106
5107 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
5108
5109         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
5110         xgene1 (APM XGene-1) core definition.
5111         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
5112         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
5113         * doc/invoke.texi: Document -mcpu=xgene1.
5114
5115 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5116
5117         * dojump.h: New header file.
5118         * explow.h: Likewise.
5119         * expr.h: Remove includes.
5120         Move expmed.c prototypes to expmed.h.
5121         Move dojump.c prototypes to dojump.h.
5122         Move alias.c prototypes to alias.h.
5123         Move explow.c prototypes to explow.h.
5124         Move calls.c prototypes to calls.h.
5125         Move emit-rtl.c prototypes to emit-rtl.h.
5126         Move varasm.c prototypes to varasm.h.
5127         Move stmt.c prototypes to stmt.h.
5128         (saved_pending_stack_adjust): Move to dojump.h.
5129         (adjust_address): Move to explow.h.
5130         (adjust_address_nv): Move to emit-rtl.h.
5131         (adjust_bitfield_address): Likewise.
5132         (adjust_bitfield_address_size): Likewise.
5133         (adjust_bitfield_address_nv): Likewise.
5134         (adjust_automodify_address_nv): Likewise.
5135         * explow.c (expr_size): Move to expr.c.
5136         (int_expr_size): Likewise.
5137         (tree_expr_size): Likewise.
5138         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5139         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
5140         * genemit.c (main): Generate includes statistics.h, real.h,
5141         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
5142         stmt.h.
5143         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
5144         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
5145         explow.h, emit-rtl.h, stmt.h.
5146         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
5147         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
5148         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
5149         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
5150         emit-rtl.h, varasm.h, stmt.h.
5151         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
5152         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
5153         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
5154         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
5155         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
5156         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
5157         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
5158         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
5159         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
5160         tm.h tree.h varasm.h vec.h wide-int.h.
5161         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
5162         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
5163         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
5164         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
5165         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
5166         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
5167         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
5168         * loop-iv.c: Likewise.
5169         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
5170         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
5171         statistics.h stmt.h tree.h varasm.h wide-int.h.
5172         * lra-constraints.c: Likewise.
5173         * lra-eliminations.c: Likewise.
5174         * lra-lives.c: Likewise.
5175         * lra-remat.c: Likewise.
5176         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
5177         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
5178         statistics.h stmt.h tree.h varasm.h wide-int.h.
5179         * hw-doloop.c: Likewise.
5180         * ira-color.c: Likewise.
5181         * ira-emit.c: Likewise.
5182         * loop-doloop.c: Likewise.
5183         * loop-invariant.c: Likewise.
5184         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
5185         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
5186         statistics.h stmt.h tree.h varasm.h wide-int.h.
5187         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
5188         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
5189         statistics.h stmt.h tree.h varasm.h wide-int.h.
5190         * combine-stack-adj.c: Likewise.
5191         * cse.c: Likewise.
5192         * ddg.c: Likewise.
5193         * ifcvt.c: Likewise.
5194         * ira-costs.c: Likewise.
5195         * jump.c: Likewise.
5196         * lra-coalesce.c: Likewise.
5197         * lra-spills.c: Likewise.
5198         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
5199         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
5200         stmt.h varasm.h wide-int.h.
5201         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
5202         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
5203         varasm.h.
5204         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
5205         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
5206         statistics.h stmt.h varasm.h wide-int.h.
5207         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
5208         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
5209         varasm.h wide-int.h.
5210         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
5211         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
5212         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
5213         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
5214         statistics.h stmt.h.
5215         * config/tilepro/tilepro.c: Likewise.
5216         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
5217         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
5218         * config/pdp11/pdp11.c: Likewise.
5219         * config/xtensa/xtensa.c: Likewise.
5220         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
5221         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
5222         varasm.h.
5223         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5224         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
5225         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
5226         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5227         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
5228         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
5229         * rtl-chkp.c: Likewise.
5230         * tree-chkp-opt.c: Likewise.
5231         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
5232         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
5233         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
5234         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5235         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
5236         statistics.h stmt.h.
5237         * tree-vect-data-refs.c: Likewise.
5238         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
5239         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
5240         rtl.h statistics.h stmt.h varasm.h.
5241         * internal-fn.c: Likewise.
5242         * ipa-icf-gimple.c: Likewise.
5243         * lto-section-out.c: Likewise.
5244         * tree-data-ref.c: Likewise.
5245         * tree-nested.c: Likewise.
5246         * tree-outof-ssa.c: Likewise.
5247         * tree-predcom.c: Likewise.
5248         * tree-pretty-print.c: Likewise.
5249         * tree-scalar-evolution.c: Likewise.
5250         * tree-ssa-strlen.c: Likewise.
5251         * tree-vect-loop.c: Likewise.
5252         * tree-vect-patterns.c: Likewise.
5253         * tree-vect-slp.c: Likewise.
5254         * tree-vect-stmts.c: Likewise.
5255         * tsan.c: Likewise.
5256         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5257         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
5258         stmt.h.
5259         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
5260         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
5261         statistics.h stmt.h varasm.h.
5262         * loop-unroll.c: Likewise.
5263         * ubsan.c: Likewise.
5264         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
5265         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
5266         stmt.h varasm.h.
5267         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5268         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
5269         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
5270         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
5271         statistics.h stmt.h.
5272         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
5273         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
5274         statistics.h stmt.h varasm.h.
5275         * gimple-match-head.c: Likewise.
5276         * lto-cgraph.c: Likewise.
5277         * lto-section-in.c: Likewise.
5278         * lto-streamer-in.c: Likewise.
5279         * lto-streamer-out.c: Likewise.
5280         * tree-affine.c: Likewise.
5281         * tree-cfg.c: Likewise.
5282         * tree-cfgcleanup.c: Likewise.
5283         * tree-if-conv.c: Likewise.
5284         * tree-into-ssa.c: Likewise.
5285         * tree-ssa-alias.c: Likewise.
5286         * tree-ssa-copyrename.c: Likewise.
5287         * tree-ssa-dse.c: Likewise.
5288         * tree-ssa-forwprop.c: Likewise.
5289         * tree-ssa-live.c: Likewise.
5290         * tree-ssa-math-opts.c: Likewise.
5291         * tree-ssa-pre.c: Likewise.
5292         * tree-ssa-sccvn.c: Likewise.
5293         * tree-tailcall.c: Likewise.
5294         * tree-vect-generic.c: Likewise.
5295         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5296         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
5297         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5298         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
5299         * varasm.c: Likewise.
5300         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5301         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
5302         varasm.h.
5303         * init-regs.c: Likewise.
5304         * ira.c: Likewise.
5305         * omp-low.c: Likewise.
5306         * stack-ptr-mod.c: Likewise.
5307         * tree-ssa-reassoc.c: Likewise.
5308         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5309         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
5310         varasm.h.
5311         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5312         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
5313         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5314         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
5315         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5316         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
5317         * tree-ssa-phiopt.c: Likewise.
5318         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5319         fixed-value.h hashtab.h real.h statistics.h stmt.h.
5320         * config/fr30/fr30.c: Likewise.
5321         * config/frv/frv.c: Likewise.
5322         * expr.c: Likewise.
5323         * final.c: Likewise.
5324         * optabs.c: Likewise.
5325         * passes.c: Likewise.
5326         * simplify-rtx.c: Likewise.
5327         * stmt.c: Likewise.
5328         * toplev.c: Likewise.
5329         * var-tracking.c: Likewise.
5330         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5331         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
5332         * lower-subreg.c: Likewise.
5333         * postreload-gcse.c: Likewise.
5334         * ree.c: Likewise.
5335         * reginfo.c: Likewise.
5336         * store-motion.c: Likewise.
5337         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5338         fixed-value.h hashtab.h real.h stmt.h varasm.h.
5339         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5340         fixed-value.h hashtab.h statistics.h stmt.h.
5341         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5342         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
5343         * except.c: Likewise.
5344         * explow.c: Likewise.
5345         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5346         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
5347         varasm.h.
5348         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5349         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
5350         * tree-ssa-structalias.c: Likewise.
5351         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5352         fixed-value.h insn-config.h real.h statistics.h.
5353         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5354         fixed-value.h insn-config.h real.h statistics.h stmt.h.
5355         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5356         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
5357         * cfgbuild.c: Likewise.
5358         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5359         fixed-value.h real.h rtl.h statistics.h stmt.h.
5360         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5361         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
5362         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5363         fixed-value.h real.h statistics.h stmt.h.
5364         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
5365         fixed-value.h real.h statistics.h stmt.h varasm.h.
5366         * cprop.c: Likewise.
5367         * modulo-sched.c: Likewise.
5368         * postreload.c: Likewise.
5369         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
5370         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
5371         statistics.h stmt.h varasm.h.
5372         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
5373         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
5374         rtl.h statistics.h stmt.h varasm.h.
5375         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
5376         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
5377         varasm.h.
5378         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
5379         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
5380         varasm.h.
5381         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
5382         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
5383         varasm.h.
5384         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
5385         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
5386         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
5387         function.h real.h statistics.h stmt.h varasm.h.
5388         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
5389         insn-config.h real.h statistics.h stmt.h.
5390         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
5391         statistics.h stmt.h.
5392         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
5393         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
5394         statistics.h stmt.h varasm.h.
5395         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
5396         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
5397         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
5398         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
5399         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
5400         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
5401         statistics.h stmt.h varasm.h.
5402         * ipa-polymorphic-call.c: Likewise.
5403         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
5404         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
5405         statistics.h stmt.h.
5406         * config/c6x/c6x.c: Likewise.
5407         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
5408         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
5409         statistics.h stmt.h varasm.h.
5410         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
5411         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
5412         stmt.h varasm.h.
5413         * ipa-split.c: Likewise.
5414         * tree-eh.c: Likewise.
5415         * tree-ssa-dce.c: Likewise.
5416         * tree-ssa-loop-niter.c: Likewise.
5417         * tree-vrp.c: Likewise.
5418         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
5419         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
5420         stmt.h.
5421         * config/nds32/nds32-fp-as-gp.c: Likewise.
5422         * config/nds32/nds32-intrinsic.c: Likewise.
5423         * config/nds32/nds32-isr.c: Likewise.
5424         * config/nds32/nds32-md-auxiliary.c: Likewise.
5425         * config/nds32/nds32-memory-manipulation.c: Likewise.
5426         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5427         * config/nds32/nds32-predicates.c: Likewise.
5428         * config/nds32/nds32.c: Likewise.
5429         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
5430         fixed-value.h hashtab.h real.h statistics.h.
5431         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
5432         fixed-value.h hashtab.h real.h statistics.h stmt.h.
5433         * config/arm/arm.c: Likewise.
5434         * config/avr/avr.c: Likewise.
5435         * config/bfin/bfin.c: Likewise.
5436         * config/h8300/h8300.c: Likewise.
5437         * config/i386/i386.c: Likewise.
5438         * config/ia64/ia64.c: Likewise.
5439         * config/iq2000/iq2000.c: Likewise.
5440         * config/m32c/m32c.c: Likewise.
5441         * config/m32r/m32r.c: Likewise.
5442         * config/m68k/m68k.c: Likewise.
5443         * config/mcore/mcore.c: Likewise.
5444         * config/mep/mep.c: Likewise.
5445         * config/mips/mips.c: Likewise.
5446         * config/mn10300/mn10300.c: Likewise.
5447         * config/moxie/moxie.c: Likewise.
5448         * config/pa/pa.c: Likewise.
5449         * config/rl78/rl78.c: Likewise.
5450         * config/rx/rx.c: Likewise.
5451         * config/s390/s390.c: Likewise.
5452         * config/sh/sh.c: Likewise.
5453         * config/sparc/sparc.c: Likewise.
5454         * config/spu/spu.c: Likewise.
5455         * config/stormy16/stormy16.c: Likewise.
5456         * config/v850/v850.c: Likewise.
5457         * config/vax/vax.c: Likewise.
5458         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
5459         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
5460         * config/msp430/msp430.c: Likewise.
5461         * predict.c: Likewise.
5462         * value-prof.c: Likewise.
5463         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
5464         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
5465         * config/microblaze/microblaze.c: Likewise.
5466         * config/nios2/nios2.c: Likewise.
5467         * config/rs6000/rs6000.c: Likewise.
5468         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
5469         insn-config.h real.h rtl.h statistics.h stmt.h.
5470         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
5471         insn-config.h real.h statistics.h stmt.h.
5472         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
5473         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
5474         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
5475         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
5476         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
5477         fixed-value.h real.h statistics.h stmt.h.
5478         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
5479         fixed-value.h statistics.h stmt.h.
5480         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
5481         stmt.h.
5482
5483 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
5484
5485         * gengtype.c (create_user_defined_type): Workaround
5486         -Wmaybe-uninitialized false positives.
5487         * cse.c (fold_rtx): Likewise.
5488         * loop-invariant.c (gain_for_invariant): Likewise.
5489
5490 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
5491
5492         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
5493         set the memory attributes in all cases but clear MEM_EXPR if need be.
5494
5495 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
5496
5497         PR tree-optimization/64434
5498         * cfgexpand.c (reorder_operands): New function.
5499         (expand_gimple_basic_block): Insert call of reorder_operands if
5500         optimized is true.
5501
5502 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5503
5504         * config/mips/micromips.md (*swp): Remove explicit parallel.
5505         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
5506         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
5507         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
5508         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
5509         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
5510         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
5511         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
5512         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
5513         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
5514         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
5515         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
5516         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
5517         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
5518         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
5519         (mips_wrdsp): Likewise.
5520         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
5521         parallel.
5522         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
5523         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
5524         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
5525         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
5526         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
5527         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
5528         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
5529         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
5530         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
5531
5532 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5533
5534         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
5535         (mips_print_operand): Support 'y' to print exact log2 in decimal
5536         of a const_int.
5537         * config/mips/mips.h (ISA_HAS_LSA): New define.
5538         (ISA_HAS_DLSA): Likewise.
5539         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
5540         * config/mips/predicates.md (const_immlsa_operand): New predicate.
5541
5542 2015-01-15  Martin Liska  <mliska@suse.cz>
5543
5544         PR target/64377
5545         * optc-save-gen.awk: Add support for array types.
5546
5547 2015-01-15  Richard Biener  <rguenther@suse.de>
5548
5549         PR middle-end/64365
5550         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
5551         for MEM_REF access functions with the same base can never partially
5552         overlap.
5553
5554 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
5555
5556         * common.opt: New option -fstack-protector-explicit.
5557         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
5558         (stack_protect_decl_phase): Handle stack_protect attribute for
5559         explicit stack protection requests.
5560         (expand_used_vars): Similarly.
5561         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
5562         * doc/extend.texi: Add documentation for "stack_protect" attribute.
5563         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
5564
5565 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
5566
5567         PR target/53988
5568         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
5569         reg-reg copies.
5570         (sh_extending_set_of_reg): New struct.
5571         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
5572         sh_remove_reg_dead_or_unused_notes): New Declarations.
5573         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
5574         sh_find_extending_set_of_reg, sh_split_tst_subregs,
5575         sh_extending_set_of_reg::use_as_extended_reg): New functions.
5576         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
5577         convert to insn_and_split and use new function sh_split_tst_subregs.
5578
5579 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
5580
5581         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
5582         option.
5583         (Optimization Options): Move -fuse-ld documentation to...
5584         (Link Options): ...here.
5585
5586 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5587
5588         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
5589         offsets.
5590         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
5591         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
5592         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
5593         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
5594         instead of ZR for the memory operand of LL/SC.
5595         (compare_and_swap_12, sync_add<mode>): Likewise.
5596         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
5597         (sync_new_<optab>_12, sync_nand_12): Likewise.
5598         (sync_old_nand_12, sync_new_nand_12): Likewise.
5599         (sync_sub<mode>, sync_old_add<mode>): Likewise.
5600         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
5601         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
5602         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
5603         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
5604         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
5605         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
5606         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
5607         * doc/md.texi (ZC): Update description.
5608
5609 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
5610
5611         * builtins.c (expand_builtin_atomic_exchange): Remove error when
5612         memory model is CONSUME.
5613         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
5614         expand_builtin_atomic_store): Change invalid memory model errors to
5615         warnings.
5616         (expand_builtin_atomic_clear): Change invalid model errors to warnings
5617         and issue warning for CONSUME.
5618
5619 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
5620
5621         * lto-cgraph: Update function comments for
5622         lto_symtab_encoder_encode_*.
5623
5624 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
5625
5626         * Makefile.in (site.exp): Do not set ENABLE_LTO.
5627
5628 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
5629
5630         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
5631         * lto-cgraph.c (select_what_to_stream): Remove argument, use
5632         lto_stream_offload_p instead.
5633         * lto-streamer.h (select_what_to_stream): Remove argument.
5634         * passes.c (ipa_write_summaries): Likewise.
5635         * tree-pass.h (ipa_write_summaries): Likewise.
5636
5637 2015-01-14  Richard Biener  <rguenther@suse.de>
5638
5639         PR tree-optimization/59354
5640         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
5641         groups larger than the slp group size as having gaps.
5642
5643 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
5644
5645         PR middle-end/59448
5646         * builtins.c (get_memmodel): Promote consume to acquire always.
5647
5648 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
5649
5650         PR target/64386
5651         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
5652         V32HImode.
5653
5654 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
5655
5656         PR target/64393
5657         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
5658         Enable AVX512BW.
5659         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
5660         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
5661         AVX512VBMI, as it implies AVX512BW.
5662
5663 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
5664
5665         PR target/64387
5666         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
5667         (vec_unpacks_hi_v16sf): Ditto.
5668
5669 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5670
5671         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
5672         is not available.
5673
5674 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5675
5676         * doc/invoke.texi (mapcs): Mention deprecation.
5677         (mapcs-frame): Likewise.
5678
5679 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5680
5681         PR target/64453
5682         * config/arm/arm.c (callee_saved_reg_p): Define.
5683         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
5684         register is callee saved instead of !call_used_regs[reg].
5685         (thumb1_compute_save_reg_mask): Likewise.
5686
5687 2015-01-14  Hale Wang  <hale.wang@arm.com>
5688
5689         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
5690         Cortex-M7.
5691
5692 2015-01-14  Richard Biener  <rguenther@suse.de>
5693
5694         PR lto/64415
5695         * tree-inline.c (insert_debug_decl_map): Check destination
5696         function MAY_HAVE_DEBUG_STMTS.
5697         (insert_init_debug_bind): Likewise.
5698         (insert_init_stmt): Remove redundant check.
5699         (remap_gimple_stmt): Drop debug stmts if the destination
5700         function has var-tracking assignments disabled.
5701
5702 2015-01-14  Martin Liska  <mliska@suse.cz>
5703
5704         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
5705         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
5706
5707 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5708
5709         PR target/64460
5710         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
5711         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
5712
5713 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5714
5715         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
5716         level from an ARCH; do not inject the default.
5717         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
5718         MIPS_ISA_LEVEL_SPEC.
5719         (MIPS_ISA_NAN2008_SPEC): Update comment.
5720         (BASE_DRIVER_SELF_SPECS): Likewise.
5721         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
5722         MIPS_DEFAULT_ISA_LEVEL_SPEC.
5723         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
5724         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
5725         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
5726
5727 2015-01-14  Richard Biener  <rguenther@suse.de>
5728
5729         PR tree-optimization/64493
5730         PR tree-optimization/64495
5731         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
5732         assign the proper vectorized PHI to the inner loop exit PHIs.
5733
5734 2015-01-14  Joey Ye  <joey.ye@arm.com>
5735
5736         * config/arm/arm.c (arm_compute_save_reg_mask):
5737         Do not save lr in case of tail call.
5738         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
5739
5740 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
5741
5742         * tree-vrp.c (check_array_ref): Emit more warnings
5743         for warn_array_bounds >= 2.
5744         * common.opt: New option -Warray-bounds=.
5745         * doc/invoke.texi: Document -Warray-bounds=.
5746
5747 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
5748
5749         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
5750         (mforbid-fp-as-gp): Remove.
5751         (mex9): Remove.
5752         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
5753         (nds32_symbol_load_store_p): Remove.
5754         (nds32_fp_as_gp_check_available): Clean up implementation.
5755         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
5756         cases.
5757         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
5758         fp-as-gp and ex9 cases.
5759
5760 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
5761
5762         * tree-profile.c (init_ic_make_global_vars): Drop workaround
5763         for bintuils bug 14342.
5764         (init_ic_make_global_vars): Likewise.
5765         (gimple_init_edge_profiler): Likewise.
5766         (gimple_gen_ic_func_profiler): Likewise.
5767
5768 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5769
5770         * ipa-inline.c (inline_small_functions): Swap the operands in
5771         enum.
5772
5773 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
5774
5775         PR ipa/64481
5776         * ipa-inline-analysis.c (node_growth_cache): Remove.
5777         (initialize_growth_caches): Do not initialize it.
5778         (free_growth_caches): Do not free it.
5779         (do_estimate_growth): Rename to ...
5780         (estimate_growth): ... this one; drop growth cache code.
5781         (growth_likely_positive): Always go the heuristics way.
5782         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
5783         (reset_edge_caches): Do not reset node growth.
5784         (heap_edge_removal_hook): Do not maintain cache.
5785         (inline_small_functions): Likewise; strenghten sanity check.
5786         (ipa_inline): Do not maintain caches.
5787         * ipa-inline.h (node_growth_cache): Remove.
5788         (do_estimate_growth): Remove to ...
5789         (estimate_growth): this one; remove inline version.
5790         (reset_node_growth_cache): Remove.
5791
5792 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
5793
5794         PR ipa/64565
5795         * ipa-inline.c (inline_small_functions): Update callee keys after
5796         resolving speculation
5797         (inline_small_functions): Always check monotonicity of the queue.
5798
5799 2015-01-13  Marek Polacek  <polacek@redhat.com>
5800
5801         PR middle-end/64391
5802         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
5803
5804 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
5805
5806         PR rtl-optimization/64286
5807         * ree.c (combine_reaching_defs): Move part of comment earlier,
5808         remove !SCALAR_INT_MODE_P check.
5809         (add_removable_extension): Don't add vector mode
5810         extensions if all uses of the source register aren't the same
5811         vector extensions.
5812
5813 2015-01-13  Renlin Li  <renlin.li@arm.com>
5814
5815         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
5816         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
5817
5818 2015-01-13  Martin Liska  <mliska@suse.cz>
5819
5820         * ipa-icf.c (sem_function::equals_private): Call new functions
5821         cl_target_option_print_diff and cl_optimization_print_diff.
5822         * optc-save-gen.awk (cl_target_option_print_diff): New function.
5823         (cl_optimization_print_diff): Likewise.
5824         * opth-gen.awk: Likewise.
5825
5826 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
5827
5828         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
5829         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
5830         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
5831         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
5832         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
5833         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
5834
5835 2015-01-13  Andrew Pinski  <apinski@cavium.com>
5836
5837         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
5838         instead of src mode.
5839
5840 2015-01-13  Richard Biener  <rguenther@suse.de>
5841
5842         PR lto/64373
5843         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
5844         DECL_CONTEXT.
5845
5846 2015-01-13  Andrew Pinski  <apinski@cavium.com>
5847
5848         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
5849         volatile mems.
5850         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5851
5852 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
5853
5854         PR middle-end/63974
5855         * cfgexpand.c (expand_computed_goto): Don't call
5856         convert_memory_address here.
5857
5858 2015-01-13  Richard Biener  <rguenther@suse.de>
5859
5860         PR tree-optimization/64406
5861         * tree-loop-distibution.c (pass_loop_distribution::execute):
5862         Reset the SCEV hashtable if we distributed anything.
5863
5864 2015-01-13  Richard Biener  <rguenther@suse.de>
5865
5866         PR tree-optimization/64404
5867         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
5868         SLP types for CSEd loads.
5869
5870 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5871
5872         PR tree-optimization/64436
5873         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
5874         merge of two symbolic numbers for a bitwise OR to ...
5875         (perform_symbolic_merge): This. Also fix computation of the range and
5876         end of the symbolic number corresponding to the result of a bitwise OR.
5877
5878 2015-01-13  Richard Biener  <rguenther@suse.de>
5879
5880         PR tree-optimization/64568
5881         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
5882         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
5883
5884 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5885
5886         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
5887         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
5888
5889 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5890
5891         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
5892         target-specific symbol_ref flag.
5893         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
5894         resides in rodata section.
5895         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
5896         (nds32_encode_section_info): New function.
5897
5898 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5899
5900         * config/nds32/nds32.md (call): Use pseudo instruction bal which
5901         clobbers TA_REGNUM if large code model is specified.
5902         (call_register): Likewise.
5903         (call_immediate): Likewise.
5904         (call_value): Likewise.
5905         (call_value_register): Likewise.
5906         (call_value_immediate): Likewise.
5907
5908 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5909
5910         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
5911         (TARGET_CMODEL_MEDIUM): New macro.
5912         (TARGET_CMODEL_LARGE): New macro.
5913         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
5914         code model setting in assembly code.
5915
5916 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5917
5918         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
5919         Remove MASK_GP_DIRECT flag.
5920         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
5921         one of the multilib default options.
5922         * config/nds32/nds32.opt (mgp-direct): Remove.
5923         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
5924         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
5925
5926 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5927
5928         * config/nds32/nds32.opt (mcmodel): Add new option.
5929         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
5930         to describe code model.
5931
5932 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
5933
5934         PR target/64479
5935         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
5936
5937 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5938
5939         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
5940         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
5941         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
5942         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
5943         __builtin_sh_set_fpscr.
5944
5945 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5946
5947         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
5948         after a funtion name just to indicate it is a function.
5949         ([-fsanitize-undefined-trap-on-error]): Likewise.
5950         ([-fdbg-cnt=]): Likewise.
5951         ([-mmemcpy]): Likewise.
5952         ([-mflush-func]): Likewise.
5953         ([-msynci]): Likewise.
5954
5955 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5956
5957         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
5958         example.
5959
5960 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
5961
5962         PR tree-optimization/64563
5963         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
5964         instead of != VR_VARYING.
5965
5966         PR target/64513
5967         * config/i386/i386.c (ix86_expand_prologue): Add
5968         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
5969
5970         PR tree-optimization/64454
5971         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
5972         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
5973         for signed or [0, op1 - 1] for unsigned modulo.
5974         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
5975         even if op1 does not satisfy integer_pow2p.
5976
5977         PR other/64370
5978         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
5979
5980 2015-01-12  Jeff Law  <law@redhat.com>
5981
5982         PR target/64461
5983         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
5984         (trunchiqi2, truncsihi2): Similarly.
5985
5986         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
5987         rather than calling F.
5988
5989 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5990
5991         * tsan.c (instrument_expr): Use force_gimple_operand.
5992         Use may_be_nonaddressable_p instead of is_gimple_addressable.
5993
5994 2015-01-12  Richard Biener  <rguenther@suse.de>
5995
5996         PR tree-optimization/64530
5997         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
5998         back dr1.
5999
6000 2015-01-12  Richard Biener  <rguenther@suse.de>
6001
6002         PR middle-end/64357
6003         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
6004         latches properly.
6005
6006 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6007
6008         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
6009         Cortex-A17 tuning parameters.
6010         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
6011
6012 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6013
6014         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
6015         * config/arm/arm.c (arm_macro_fusion_p): New function.
6016         (arm_macro_fusion_pair_p): Likewise.
6017         (TARGET_SCHED_MACRO_FUSION_P): Define.
6018         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
6019         (ARM_FUSE_NOTHING): Likewise.
6020         (ARM_FUSE_MOVW_MOVT): Likewise.
6021         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6022         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6023         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6024         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6025         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6026         arm_cortex_a5_tune): Specify fuseable_ops value.
6027
6028 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6029
6030         PR bootstrap/64561
6031         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
6032         test for PIE with copy reloc.
6033         * configure: Regenerated.
6034
6035 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6036
6037         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
6038         in gen_rtx_REG.
6039         (arm_tls_descseq_addr): Likewise.
6040         (arm_gen_movmemqi): Likewise.
6041         (arm_expand_epilogue_apcs_frame): Likewise.
6042         (arm_expand_epilogue): Likewise.
6043         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
6044         in gen_rtx_REG.
6045
6046 2015-01-12  Martin Liska  <mliska@suse.cz>
6047
6048         PR ipa/64550
6049         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
6050         volatility for correct operands.
6051
6052 2015-01-12  Martin Liska  <mliska@suse.cz>
6053
6054         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
6055         that a function is not leaf.
6056         (sem_function::compare_polymorphic_p): Likewise.
6057
6058 2015-01-12  Martin Liska  <mliska@suse.cz>
6059
6060         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
6061         that a function is not leaf.
6062         (sem_function::compare_polymorphic_p): Likewise.
6063
6064 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6065
6066         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
6067         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
6068         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
6069         fold-const.h, tree-check.h.
6070
6071 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
6072
6073         PR ipa/63967
6074         PR ipa/64425
6075         * ipa-inline.c (compute_uninlined_call_time,
6076         compute_inlined_call_time): Use counts for extra precision when
6077         needed possible.
6078         (big_speedup_p): Fix formating.
6079         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
6080         (relative_time_benefit): Remove.
6081         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
6082         merge guessed and read profile paths.
6083         (inline_small_functions): Count only !optimize_size functions into
6084         initial size; be more lax about sanity check when profile is used;
6085         be sure to update inlined function profile when profile is read.
6086
6087 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
6088
6089         PR ipa/63470
6090         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
6091         cost when edge becomes direct.
6092         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
6093         is resolved or when introducing new speculation.
6094
6095 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
6096
6097         PR ipa/64551
6098         PR ipa/64552
6099         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
6100         '||' to fix typo issue.
6101
6102         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
6103         accept and return NULL.
6104
6105 2015-01-12  Martin Liska  <mliska@suse.cz>
6106
6107         * cgraph.c (cgraph_edge::remove_callee): Move function to header
6108         file for being inlined.
6109         (cgraph_set_edge_callee): Delete.
6110         (cgraph_edge::redirect_callee): Move function to header file
6111         for being inlined.
6112         (cgraph_edge::make_direct): Use new function.
6113         (cgraph_edge::dump_edge_flags): New function created from
6114         static dump_edge_flags function.
6115         (cgraph_node::dump): Use new function.
6116         (cgraph_edge::verify_count_and_frequency): New function created
6117         from verify_edge_count_and_frequency.
6118         (cgraph_edge::verify_corresponds_to_fndecl): New function created
6119         from verify_edge_corresponds_to_fndecl.
6120         (verify_edge_corresponds_to_fndecl): Delete.
6121         (cgraph_node::verify_node): Use new function.
6122         * cgraph.h (cgraph_edge::set_callee): New function.
6123         (cgraph_edge::dump_edge_flags): Likewise.
6124         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
6125
6126 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
6127
6128         * ipa-utils.c (estimate_function_body_sizes): Do not
6129         free node params when called late with early=true.
6130
6131 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
6132
6133         * doc/md.texi (Instruction Patterns): Rewrite text for
6134         clarity.
6135         (Example): Likewise.
6136
6137 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
6138
6139         * doc/invoke.texi (Option Summary): Break long lines.
6140         [(-fdiagnostics-color)]: Put long literal in @smallexample
6141         instead of inline.
6142         [(-fsanitize-recover)]: Likewise.
6143         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
6144         [(-ffast-math)]: Likewise.
6145         [(--param max-inline-insns-recursive)]: Likewise.
6146         [(--param max-inline-recursive-depth)]: Likewise.
6147         [(-mno-text-section-literals)]: Likewise.
6148
6149 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
6150
6151         * doc/install.texi: Update for libgomp being renamed from "GNU
6152         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
6153         Runtime Library".
6154         * doc/sourcebuild.texi: Likewise.
6155
6156 2015-01-10  Anthony Green  <green@moxielogic.com>
6157
6158         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
6159         mul.x availability for moxiebox configuration.
6160
6161 2015-01-09  Anthony Green  <green@moxielogic.com>
6162
6163         * config/moxie/moxie.md: Tabify assembly output.
6164
6165 2015-01-09  Anthony Green  <green@moxielogic.com>
6166
6167         * config/moxie/moxie.md (CC_REG): Correct register definition.
6168
6169 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
6170
6171         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
6172         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
6173         of log files.
6174
6175 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
6176
6177         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
6178
6179 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
6180             Jakub Jelinek  <jakub@redhat.com>
6181
6182         PR middle-end/64412
6183         * lto-streamer.h (lto_stream_offload_p): New declaration.
6184         * lto-streamer.c (lto_stream_offload_p): New variable.
6185         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
6186         at the same time as section_name_prefix.
6187         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
6188         if lto_stream_offload_p.
6189         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
6190         stream TREE_TARGET_OPTION if lto_stream_offload_p.
6191         (write_ts_function_decl_tree_pointers): Don't
6192         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
6193         * tree-streamer-in.c (unpack_value_fields): Don't stream
6194         TREE_TARGET_OPTION in if ACCEL_COMPILER.
6195         (lto_input_ts_function_decl_tree_pointers): Don't stream
6196         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
6197         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
6198         instead of section_name_prefix string comparisons.
6199
6200 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
6201
6202         PR rtl-optimization/64536
6203         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
6204         tablejumps.
6205
6206 2015-01-09  Michael Collison  <michael.collison@linaro.org>
6207
6208         PR tree-optimization/64322
6209         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
6210         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
6211
6212 2015-01-09  Tom de Vries  <tom@codesourcery.com>
6213
6214         PR rtl-optimization/64539
6215         * regcprop.c (kill_clobbered_values): Factor out of ...
6216         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
6217         instead of note_stores with kill_clobbered_value.
6218
6219 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
6220
6221          * ginclude/unwind-arm-common.h: Revert previous commit.
6222
6223 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
6224
6225         * config.gcc (arm*-*-freebsd*): New configuration.
6226         * config/arm/freebsd.h: New file.
6227         * config.host: Add extra components for arm*-*-freebsd*.
6228         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
6229         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
6230
6231 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6232
6233         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
6234         for -mcpu=e6500.
6235         * config/rs6000/t-rtems: Add e6500 multilibs.
6236
6237 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6238
6239         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
6240         MPC8540.
6241
6242 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6243
6244         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
6245         MULTILIB_EXCEPTIONS.
6246
6247 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6248
6249         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
6250         MULTILIB_EXCEPTIONS.
6251
6252 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6253
6254         * config/arm/t-rtems-eabi: Rename to...
6255         * config/arm/t-rtems: ...this.
6256         * config/arm/rtems-eabi.h: Rename to...
6257         * config/arm/rtems.h: ...this.
6258         * config.gcc (arm*-*-rtems*): Reflect changes above.
6259
6260 2015-01-09  Richard Biener  <rguenther@suse.de>
6261
6262         PR tree-optimization/64410
6263         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
6264         on the LHS.
6265         (execute_update_addresses_taken): Deal with that.
6266         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
6267         loads/stores for complex variables.
6268
6269 2015-01-09  Martin Liska  <mliska@suse.cz>
6270
6271         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
6272         name comparison.
6273         (func_checker::compare_memory_operand): New function.
6274         (func_checker::compare_operand): Split case to newly
6275         added functions.
6276         (func_checker::compare_cst_or_decl): New function.
6277         (func_checker::compare_gimple_call): Identify
6278         memory operands.
6279         (func_checker::compare_gimple_assign): Likewise.
6280         * ipa-icf-gimple.h: New function.
6281
6282 2015-01-09  Martin Liska  <mliska@suse.cz>
6283
6284         PR ipa/64503
6285         * sreal.c (sreal::dump): Change unsigned format to signed for
6286         m_exp value.
6287         (sreal::to_double): Replace exp2 with scalbln.
6288
6289 2015-01-09  Martin Liska  <mliska@suse.cz>
6290
6291         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
6292         * ipa-icf.c (sem_function::equals_private): Add support for target and
6293         (sem_item_optimizer::merge_classes): Remove redundant function
6294         optimization flags comparison.
6295         * tree.h (target_opts_for_fn): New function.
6296
6297 2015-01-09  Tom de Vries  <tom@codesourcery.com>
6298
6299         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
6300
6301 2015-01-09  Kito Cheng  <kito@0xlab.org>
6302
6303         PR rtl-optimization/64348
6304         * lra-constraints.c (split_reg): Fix caller-save store/restore
6305         instruction generation.
6306
6307 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
6308
6309         PR gcov-profile/61790
6310         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
6311         long long.  Fallback to int64_t if host doesn't have long long and
6312         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
6313
6314 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
6315
6316         PR tree-optimization/63989
6317         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
6318         from 1000 to 10000.
6319         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
6320         (get_stridx): If we don't have a record for certain SSA_NAME,
6321         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
6322         constant offset, call get_stridx_plus_constant.
6323         (get_stridx_plus_constant): New function.
6324         (zero_length_string): Don't use get_stridx here.
6325
6326         PR target/55023
6327         PR middle-end/64388
6328         * dse.c (struct insn_info): Mention frame_read set also
6329         before reload for tail calls on some targets.
6330         (scan_insn): Revert 2014-12-22 change.  Set frame_read
6331         also before reload for tail calls if
6332         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
6333         instead of add_non_frame_wild_read for non-const/memset
6334         tail calls after reload.
6335
6336 2015-01-08  Jason Merrill  <jason@redhat.com>
6337
6338         * ubsan.c (do_ubsan_in_current_function): New.
6339         (pass_ubsan::gate): Use it.
6340         * ubsan.h: Declare it.
6341         * convert.c (convert_to_integer): Use it.
6342
6343 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
6344
6345         PR target/64338
6346         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
6347         compare_code when it is unconditionally overwritten afterwards.
6348         Use ix86_reverse_condition instead of reverse_condition.  Don't
6349         change code if *reverse_condition* returned UNKNOWN and don't
6350         swap ct/cf and negate diff in that case.
6351
6352 2015-01-08  Mike Stump  <mikestump@comcast.net>
6353
6354         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
6355         (pass_tsan_O0::gate): Likewise.
6356         * extend.texi (Function Attributes): Add no_sanitize_thread
6357         documentation.
6358
6359 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
6360
6361         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
6362         for registering builtins.
6363         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
6364         add -fopenmp to the argv_obstack used when invoking
6365         compile_for_target.
6366
6367         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
6368         add "-m32" or "-m64" to argv_obstack.
6369         (generate_host_descr_file): Likewise, when invoking host_compiler.
6370         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
6371         ld.
6372
6373 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
6374
6375         * config/sh/sh-mem.cc: Use constant as second operand when emitting
6376         tstsi_t insns.
6377
6378 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
6379
6380         PR target/55212
6381         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
6382         constant load if constant operand fits into I08.
6383
6384 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
6385
6386         PR sanitizer/64336
6387         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
6388         and TREE_THIS_VOLATILE for MEM_REFs.
6389         (build5_stat): Fix up initialization of TREE_READONLY and
6390         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
6391
6392 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6393
6394         PR target/64533
6395         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
6396         of r for the second alternative of the destination operand.
6397
6398 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
6399
6400         PR target/36557
6401         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
6402
6403 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
6404
6405         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
6406         keywords.
6407         ([-fivar-visibility], [-fvisibility]): Likewise.
6408
6409 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
6410
6411         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
6412         the file where @code, @command, etc is more appropriate.
6413
6414 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
6415
6416         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
6417         of -mrecip= documentation.
6418
6419 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6420
6421         PR target/64505
6422         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
6423         correct reload handler if -m32 -mpowerpc64 is used.
6424
6425 2015-01-06  Tom de Vries  <tom@codesourcery.com>
6426
6427         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
6428
6429 2015-01-08  Christian Bruel  <christian.bruel@st.com>
6430
6431         PR target/64507
6432         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
6433
6434 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6435
6436         PR tree-optimization/63259
6437         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
6438         if optab exists for 16bit byteswap.
6439
6440 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
6441
6442         * opts.c (common_handle_option): Add support for
6443         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
6444         * doc/invoke.texi: Document -fno-sanitize=all,
6445         -f{,no-}sanitize-recover=all.  Document that
6446         -fsanitize=float-cast-overflow is not enabled
6447         by -fsanitize=undefined.  Fix up documentation
6448         of -f{,no-}sanitize-recover.
6449
6450 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
6451
6452         * config.gcc: Add Visium support.
6453         * configure.ac: Likewise.
6454         * configure: Regenerate.
6455         * doc/extend.texi (interrupt attribute): Add Visium.
6456         * doc/invoke.texi: Document Visium options.
6457         * doc/install.texi: Document Visium target.
6458         * doc/md.texi: Document Visium constraints.
6459         * common/config/visium: New directory.
6460         * config/visium: Likewise.
6461
6462 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
6463
6464         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
6465         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
6466
6467 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
6468
6469         * combine.c (combine_validate_cost): Do not count the cost of a
6470         split I2 twice.  Do not display it twice in the dump, either.
6471
6472 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6473
6474         Revert parts of r219199.
6475         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
6476         <inttypes.h>.
6477         ([-Wtraditional]): Restore markup on <limits.h>.
6478
6479 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
6480
6481         PR c++/31397
6482         * doc/invoke.texi: Document -Wsuggest-override.
6483
6484 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
6485
6486         PR rtl-optimization/64287
6487         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
6488         (process_options): Disable flag_ipa_ra if profiling.
6489
6490 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
6491
6492         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
6493
6494 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
6495
6496         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
6497         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
6498         put under #if TARGET_LOOPS guard.
6499
6500 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
6501
6502         * config/i386/i386.c (output_387_binary_op): Use std::swap.
6503
6504 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
6505
6506         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
6507         * rtl.h (refers_to_regno_p): Add overload.
6508         * cse.c: Use it.
6509         * bt-load.c: Likewise.
6510         * combine.c: Likewise.
6511         * df-scan.c: Likewise.
6512         * sched-deps.c: Likewise.
6513         * config/s390/s390.c: Likewise.
6514         * config/m32r/m32r.c: Likewise.
6515         * config/rs6000/spe.md: Likewise.
6516         * config/rs6000/rs6000.c: Likewise.
6517         * config/pa/pa.c: Likewise.
6518         * config/stormy16/stormy16.c: Likewise.
6519         * config/cris/cris.c: Likewise.
6520         * config/arc/arc.md: Likewise.
6521         * config/arc/arc.c: Likewise.
6522         * config/sh/sh.md: Likewise.
6523         * config/sh/sh.c: Likewise.
6524         * config/frv/frv.c: Likewise.
6525
6526 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6527
6528         PR sanitizer/64265
6529         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
6530         call as cleanup of the whole body.
6531         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
6532         * tsan.c (replace_func_exit): New function.
6533         (instrument_func_exit): Moved earlier.
6534         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
6535         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
6536         been found.
6537         (tsan_pass): Don't call instrument_func_exit.
6538         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
6539         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
6540         inlining.
6541
6542         PR sanitizer/64344
6543         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
6544         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
6545         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
6546         if the result is integer_zerop, return NULL_TREE.
6547         * convert.c (convert_to_integer): Pass expr as ARG.
6548
6549         PR tree-optimization/64465
6550         * tree-inline.c (redirect_all_calls): During inlining
6551         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
6552         changed the stmt to a non-throwing call.
6553
6554 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6555
6556         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
6557         etc markup throughout the file.
6558
6559 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6560
6561         Enable experimental TSAN support for Ada.
6562         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
6563
6564 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6565
6566         PR tree-optimization/64494
6567         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
6568         clear SSA_NAME_ANTI_RANGE_P flag.
6569
6570 2015-01-05  Marek Polacek  <polacek@redhat.com>
6571
6572         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
6573
6574 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6575
6576         Update copyright years.
6577
6578         * gcc.c (process_command): Update copyright notice dates.
6579         * gcov-dump.c: Ditto.
6580         * gcov.c: Ditto.
6581         * doc/cpp.texi: Bump @copying's copyright year.
6582         * doc/cppinternals.texi: Ditto.
6583         * doc/gcc.texi: Ditto.
6584         * doc/gccint.texi: Ditto.
6585         * doc/gcov.texi: Ditto.
6586         * doc/install.texi: Ditto.
6587         * doc/invoke.texi: Ditto.
6588
6589         * auto-profile.c, auto-profile.h: Fix up Copyright line.
6590
6591 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
6592
6593         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
6594         verb tense, etc.
6595         ([-fvtable-verify], [-fvtv-debug]): Likewise.
6596         ([-Wabi]): Likewise.
6597         ([-fmessage-length]): Likewise.
6598         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
6599         ([-Wno-discarded-qualifiers]): Likewise.
6600         ([-Wnodiscarded-array-qualifiers]): Likewise.
6601         ([-Wno-virtual-move-assign]): Likewise.
6602         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
6603         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
6604         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
6605         ([-fsanitize-undefined-trap-on-error]): Likewise.
6606         ([-floop-interchange]): Likewise.
6607         ([-ftree-coalesce-inlined-vars]): Likewise.
6608         ([-fvect-cost-model]): Likewise.
6609         ([-flto]): Likewise.
6610         ([--param]): Likewise.
6611         (Spec Files): Likewise.
6612         ([-mstrict-align]): Likewise.
6613         ([-mfix-cortex-a53-835769]): Likewise.
6614         ([-march], [-mtune]): Likewise.
6615         ([-mpic-register]): Likewise.
6616         ([-munaligned-access]): Likewise.
6617         ([-msp8]): Likewise.
6618         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
6619         (AVR Built-in Macros): Likewise.
6620         ([-mpreferred-stack-boundary]): Likewise.
6621         ([-mtune-crtl]): Likewise.
6622         ([-mashf]): Likewise.
6623         ([-mmcu=]): Likewise.
6624         ([-minrt]): Likewise.
6625         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
6626         ([-mupper-regs]): Likewise.
6627         ([-matomic-model]): Likewise.
6628         ([-mdiv]): Likewise.
6629         ([-mzdcbranch]): Likewise.
6630         ([-mdisable-callt]): Likewise.
6631         ([-msoft-float]): Likewise.
6632         ([-m8byte-align]): Likewise.
6633         ([-fstack-reuse]): Likewise.
6634
6635 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6636
6637         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
6638         Fix markup, light copy-editing.
6639         ([-fauto-profile]): Rewrite to fix formatting and content
6640         problems.
6641
6642 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6643
6644         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
6645         Copy-edit description.
6646         ([-fisolate-erroneous-paths-attribute]): Likewise.
6647         * common.opt (fisolate-erroneous-paths-dereference):
6648         Copy-edit description.
6649         (fisolate-erroneous-paths-attribute): Likewise.
6650
6651 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6652
6653         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
6654         tidy grammar.
6655
6656 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6657
6658         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
6659         ([-fvtv-debug]): Likewise.
6660         ([-Wc++-compat]): Likewise.
6661         ([-Wc++11-compat]): Likewise.
6662         ([-Wc++14-compat]): Likewise.
6663         ([-Wno-sized-deallocation]): Likewise.
6664         ([-femit-class-debug-always]): Likewise.
6665         ([-femit-struct-debug-detailed]): Likewise.
6666         ([-fno-keep-inline-dllexport]): Likewise.
6667         ([-fira-algorithm]): Likewise.
6668         ([-fira-region]): Likewise.
6669         ([-flra-remat]): Likewise.
6670         ([-fipa-ra]): Likewise.
6671         ([-fhoist-adjacent-loads]): Likewise.
6672         ([-fisolate-erroneous-paths-dereference]): Likewise.
6673         ([-fisolate-erroneous-paths-attribute]): Likewise.
6674         ([-ftree-switch-conversion]): Likewise.
6675         ([-ftree-tail-merge]): Likewise.
6676         ([-ftree-loop-if-convert]): Likewise.
6677         ([-ftree-loop-if-convert-stores]): Likewise.
6678         ([-ftree-loop-distribution]): Likewise.
6679         ([-ftree-loop-distribute-patterns]): Likewise.
6680         ([-flto-compression-level]): Likewise.
6681         ([-flto-report]): Likewise.
6682         ([-flto-report-wpa]): Likewise.
6683         ([-fuse-linker-plugin]): Likewise.
6684         ([-mfix-cortex-a53-835769]): Likewise.
6685         ([-mno-fix-cortex-a53-835769]): Likewise.
6686         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
6687         explicit listing; add a note to the discussion indicating they
6688         exist.  Reorder table to group similar options.  Add missing
6689         @opindex entries.  Add @need commands throughout the table to
6690         allow it to be split across multiple pages.
6691         ([-m8bit-idiv]): Fix @opindex.
6692         ([-mavx256-split-unaligned-load]): Likewise.
6693         ([-mavx256-split-unaligned-store]): Likewise.
6694         ([-mstack-protector-guard]): Likewise.
6695         ([-mcpu=]): Likewise.
6696         ([-mcpu]): Likewise.
6697         ([-mpointer-size=]): Likewise.
6698
6699 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
6700
6701         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
6702         instead of `m' constraint.  Likewise for unnamed movb comparison
6703         patterns using reg_before_reload_operand predicate.
6704         * config/pa/predicates.md (reg_before_reload_operand): Tighten
6705         predicate to reject register index and LO_SUM DLT memory forms
6706         after reload.
6707
6708 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
6709
6710         * doc/invoke.texi (Option Summary): Fix spelling of
6711         -fdevirtualize-at-ltrans.
6712         ([-fdevirtualize]): Fix markup.
6713         ([-fdevirtualize-speculatively]): Fix typo.
6714         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
6715         implementor-speaky.
6716         * common.opt (fdevirtualize-at-ltrans): Likewise.
6717         * ipa-devirt.c: Fix typos in comments throughout the file.
6718         (ipa_devirt): Fix typos in format strings for dump output.
6719
6720 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
6721
6722         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
6723         discussion of defaults, light copy-editing.
6724
6725 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6726
6727         * tsan.c (instrument_expr): corrected previous checkin.
6728
6729 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6730
6731         Instrument bit field and unaligned accesses for TSAN.
6732         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
6733         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
6734         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
6735         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
6736         unaligned memory regions.
6737
6738 2015-01-01  Anthony Green  <green@moxielogic.com>
6739
6740         * config/moxie/predicates.md (moxie_general_movsrc_operand):
6741         Restrict move source register offsets to 16 bits.
6742 \f
6743 Copyright (C) 2015 Free Software Foundation, Inc.
6744
6745 Copying and distribution of this file, with or without modification,
6746 are permitted in any medium without royalty provided the copyright
6747 notice and this notice are preserved.