* config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
[official-gcc.git] / gcc / ChangeLog
blob5d695b59d0f935f17822096e4baf44dd13871954
1 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
3         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
4         Remove obsolete kludge.
6 2015-06-01  Richard Biener  <rguenther@suse.de>
8         * tree-ssa-reassoc.c (get_rank): Simplify.
10 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
13         * configure: Regenerated.
15 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
17         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
18         issue (add space between string literal and macro).
19         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
21 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
23         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24         implict or explicit -fPIE or -fpie.
26 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
28         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30 2015-05-28  DJ Delorie  <dj@redhat.com>
32         * expmed.c (extract_bit_field_1): Avoid clobbering a
33         yet-to-be-used base/index register.
35 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
37         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
38         (alias_stats): Add num_universal.
39         (alias_set_subset_of): Special case pointers; be ready for NULL
40         children.
41         (alias_sets_conflict_p): Special case pointers; be ready for NULL
42         children.
43         (init_alias_set_entry): Break out from ...
44         (record_alias_subset): ... here; propagate new fields;
45         allocate children only when really needed.
46         (get_alias_set): Do less generous pointer globbing.
47         (dump_alias_stats_in_alias_c): Update statistics.
49 2015-05-30  Alan Modra  <amodra@gmail.com>
51         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
52         correct block for use of r12.
53         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
55 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
57         PR target/66215
58         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
59         with -mhotpatch=.
61 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
63         PR tree-optimization/66142
64         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
65         virtual phis that feed themselves.
67 2015-05-29  Richard Biener  <rguenther@suse.de>
69         PR tree-optimization/66314
70         * tree-ssa-threadupdate.c (create_block_for_threading): Add
71         parameter that says which loop the new block belongs to.
72         (ssa_create_duplicates): Blocks duplicated for the threaded
73         path belong to the loop of the thread destination.
75 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
77         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
78         to cleanup-saved-temps.
79         * doc/sourcebuild.texi (Clean up generated test files): Expand
80         introduction.
81         (dg-keep-saved-temps): Document new proc.
82         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
83         cleanup-saved-temps): Remove.
85 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
87         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
88         gcc_AC_CHECK_DECLS.
89         * configure: Regenerate.
91 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
93         * config/nios2/linux.h (CPP_SPEC): Define.
95 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
97         * config/microblaze/linux.h (CPP_SPEC): Define.
99 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
101         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
102         -pthread is specified.
104 2015-05-28  Richard Biener  <rguenther@suse.de>
106         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
107         (vect_fixup_scalar_cycles_with_patterns): Likewise.
108         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
109         after pattern recog.
110         (vect_create_epilog_for_reduction): Properly handle reductions
111         with patterns.
112         (vectorizable_reduction): Likewise.
113         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
114         reduction chains.
115         (vect_get_constant_vectors): Create the correct number of
116         initial values for reductions.
117         (vect_schedule_slp_instance): Handle reduction chains that are
118         type changing properly.
119         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
121 2015-05-28  Richard Biener  <rguenther@suse.de>
123         PR tree-optimization/66142
124         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
125         values better in memcpy destination handling.  Handle non-aliasing
126         we discover here.
128 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
130         PR target/63810
131         * config/darwin-c.c (version_components): New global enum.
132         (parse_version, version_as_legacy_macro)
133         (version_as_modern_macro, macosx_version_as_macro): New functions.
134         (version_as_macro): Remove.
135         (darwin_cpp_builtins): Use new function.
137 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
139         * builtins.c (expand_builtin_acc_on_device): Mark parameters
140         with ATTRIBUTE_UNUSED.
142 2015-05-28  Julian Brown  <julian@codesourcery.com>
144         PR libgomp/65742
146         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
147         sequence for !ACCEL_COMPILER.
149 2015-05-28  Nick Clifton  <nickc@redhat.com>
151         * config/rx/rx.c (push_regs): New function.  Extracts code from...
152         (rx_expand_prologue): ... here.  Use push_regs to push even small
153         spans of registers.
154         (pop_regs): New function.
155         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
156         registers.
158 2015-05-28  Richard Biener  <rguenther@suse.de>
160         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
161         member.
162         (SLP_INSTANCE_BODY_COST_VEC): Remove.
163         (vect_update_slp_costs_according_to_vf): Likewise.
164         (vect_slp_analyze_operations): Update prototype.
165         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
166         vect_update_slp_costs_according_to_vf, adjust.
167         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
168         (vect_analyze_slp_cost_1): Likewise.
169         (vect_analyze_slp_cost): Likewise.  Properly deal with
170         widening reduction ops.  Commit body costs.
171         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
172         cost for loops from here.
173         (vect_slp_analyze_operations): But do it from here when
174         the vectorization factor is known and stmts are analyzed.
175         (vect_bb_vectorization_profitable_p): Simplify.
176         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
177         (vect_update_slp_costs_according_to_vf): Remove.
179 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
180             H.J. Lu  <hongjiu.lu@intel.com>
182         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
183         (BUILD_CFLAGS): Likewise.
184         (BUILD_CXXFLAGS): Likewise.
185         (LINKER): Add @NO_PIE_FLAG@.
186         (BUILD_LDFLAGS): Likewise.
187         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
188         --enable-default-pie.
189         * common.opt (fPIE): Initialize to -1.
190         (fpie): Likewise.
191         (no-pie): New option.
192         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
193         * configure.ac: Add --enable-default-pie.
194         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
195         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
196         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
197         * gcc.c (NO_PIE_SPEC): New.
198         (PIE_SPEC): Likewise.
199         (NO_FPIE1_SPEC): Likewise.
200         (FPIE1_SPEC): Likewise.
201         (NO_FPIE2_SPEC): Likewise.
202         (FPIE2_SPEC): Likewise.
203         (NO_FPIE2_SPEC): Likewise.
204         (FPIE_SPEC): Likewise.
205         (NO_FPIE_SPEC): Likewise.
206         (NO_FPIC1_SPEC): Likewise.
207         (FPIC1_SPEC): Likewise.
208         (NO_FPIC2_SPEC): Likewise.
209         (FPIC2_SPEC): Likewise.
210         (NO_FPIC2_SPEC): Likewise.
211         (FPIC_SPEC): Likewise.
212         (NO_FPIC_SPEC): Likewise.
213         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
214         (FPIE1_OR_FPIC1_SPEC): Likewise.
215         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
216         (FPIE2_OR_FPIC2_SPEC): Likewise.
217         (NO_FPIE_AND_FPIC_SPEC): Likewise.
218         (FPIE_OR_FPIC_SPEC): Likewise.
219         (LD_PIE_SPEC): Likewise.
220         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
221         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
222         * config/darwin.h (PIE_SPEC): Renamed to ...
223         (DARWIN_PIE_SPEC): This.
224         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
225         * config/darwin9.h (PIE_SPEC): Renamed to ...
226         (DARWIN_PIE_SPEC): This.
227         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
228         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
229         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
230         FPIE2_OR_FPIC2_SPEC.
231         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
232         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
233         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
234         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
235         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
236         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
237         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
238         * config/m32r/m32r.h (ASM_SPEC): Likewise.
239         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
240         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
241         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
242         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
243         * config/sparc/linux.h (ASM_SPEC): Likewise.
244         * config/sparc/linux64.h (ASM_SPEC): Likewise.
245         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
246         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
247         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
248         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
249         * config/sparc/sparc.h (ASM_SPEC): Likewise.
250         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
251         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
252         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
253         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
254         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
255         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
256         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
257         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
258         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and
259         NO_FPIC_SPEC.
260         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use
261         NO_FPIE_AND_FPIC_SPEC.
262         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
263         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
264         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
265         * config/vax/linux.h (ASM_SPEC): Likewise.
266         * doc/install.texi: Document --enable-default-pie.
267         * doc/invoke.texi: Document -no-pie.
268         * config.in: Regenerated.
269         * configure: Likewise.
271 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
273         PR rtl-optimization/66168
274         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
275         can_move_invariant_reg.
277 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
279         PR target/66148
280         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
281         REG_EQUAL note when doing insert.
283         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
284         instead of "%d" for 'o' operand.
286 2015-05-27  Nathan Sidwell  <nathan@acm.org>
288         PR c++/66270
289         * tree.c (build_pointer_type_for_mode): Canonical type does not
290         inherit can_alias_all.
291         (build_reference_type_for_mode): Likewise.
293 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
295         * expr.h (array_at_struct_end_p): Move to...
296         (array_ref_element_size): Likewise.
297         (component_ref_field_offset): Likewise.
298         * tree.h (array_ref_element_size): ...here.
299         (array_at_struct_end_p): Likewise.
300         (component_ref_field_offset): Likewise.
301         * expr.c (array_ref_element_size): Move to...
302         (array_ref_low_bound): Likewise.
303         (array_at_struct_end_p): Likewise.
304         (array_ref_up_bound): Likewise.
305         (component_ref_field_offset): Likewise.
306         * tree.c (array_ref_element_size): ...here.
307         (array_ref_low_bound): Likewise.
308         (array_ref_up_bound): Likewise.
309         (array_at_struct_end_p): Likewise.
310         (component_ref_field_offset): Likewise.
312 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
313             Szabolcs Nagy  <szabolcs.nagy@arm.com>
315         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
317 2015-05-27  Jason Merrill  <jason@redhat.com>
319         PR bootstrap/66304
320         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
321         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
322         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
324 2015-05-22 Aditya Kumar <hiraditya@msn.com>
326         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
327         is true.
329         * statistics.c (statistics_fini_pass): Print pass name.
331 2015-05-27  Richard Biener  <rguenther@suse.de>
333         PR tree-optimization/66272
334         Revert parts of
335         2014-08-15  Richard Biener  <rguenther@suse.de>
337         PR tree-optimization/62031
338         * tree-data-ref.c (dr_analyze_indices): Do not set
339         DR_UNCONSTRAINED_BASE.
340         (dr_may_alias_p): All indirect accesses have to go the
341         formerly DR_UNCONSTRAINED_BASE path.
342         * tree-data-ref.h (struct indices): Remove
343         unconstrained_base member.
344         (DR_UNCONSTRAINED_BASE): Remove.
346 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
348         * dwarf2out.c: Remove block_map.
349         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
350         (gen_lexical_block_die): Same.
351         (dwarf2out_function_decl): Remove block_map use.
352         (dwarf2out_c_finalize): Same.
353         * tree-core.h (struct tree_block): Add die field.
354         * tree.h (BLOCK_DIE): New.
356 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
358         PR target/65358
359         * expr.c (memory_load_overlap): New function.
360         (emit_push_insn): When pushing partial args to the stack would
361         clobber the register part load the overlapping part into a pseudo
362         and put it into the hard reg after pushing.  Change return type
363         to bool.  Add bool argument.
364         * expr.h (emit_push_insn): Change return type to bool.
365         Add bool argument.
366         * calls.c (expand_call): Cancel sibcall optimization when encountering
367         partial argument on targets with ARGS_GROW_DOWNWARD and
368         !STACK_GROWS_DOWNWARD.
369         (emit_library_call_value_1): Update callsite of emit_push_insn.
370         (store_one_arg): Likewise. 
372 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
374         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
376 2015-05-27  Martin Liska  <mliska@suse.cz>
378         * Makefile.in: Add additional dependencies related to memory report
379         enhancement.
380         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
381         * bitmap.c (struct bitmap_descriptor_d): Remove.
382         (struct loc): Likewise.
383         (struct bitmap_desc_hasher): Likewise.
384         (bitmap_desc_hasher::hash): Likewise.
385         (bitmap_desc_hasher::equal): Likewise.
386         (get_bitmap_descriptor): Likewise.
387         (bitmap_register): User new memory descriptor API.
388         (register_overhead): Likewise.
389         (bitmap_find_bit): Register nsearches and search_iter statistics.
390         (struct bitmap_output_info): Remove.
391         (print_statistics): Likewise.
392         (dump_bitmap_statistics): Use new memory descriptor.
393         * bitmap.h (struct bitmap_usage): New class.
394         * genmatch.c: Extend header file inclusion.
395         * genpreds.c: Likewise.
396         * ggc-common.c (struct ggc_usage): New class.
397         (struct ggc_loc_desc_hasher): Remove.
398         (ggc_loc_desc_hasher::hash): Likewise.
399         (ggc_loc_desc_hasher::equal): Likewise.
400         (struct ggc_ptr_hash_entry): Likewise.
401         (struct ptr_hash_hasher): Likewise.
402         (ptr_hash_hasher::hash): Likewise.
403         (ptr_hash_hasher::equal): Likewise.
404         (make_loc_descriptor): Likewise.
405         (ggc_prune_ptr): Likewise.
406         (dump_ggc_loc_statistics): Use new memory descriptor.
407         (ggc_record_overhead): Likewise.
408         (ggc_free_overhead): Likewise.
409         (final_cmp_statistic): Remove.
410         (cmp_statistic): Likewise.
411         (ggc_add_statistics): Liekwise.
412         (ggc_prune_overhead_list): Likewise.
413         * hash-map-traits.h: New file.
414         * hash-map.h (struct default_hashmap_traits): Move the traits to a
415         separate header file.
416         * hash-set.h: Pass memory statistics info to ctor.
417         * hash-table.c (void dump_hash_table_loc_statistics): New function.
418         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
419         (hash_table::~hash_table): Register memory release operation.
420         (hash_table::alloc_entries): Handle memory allocation operation.
421         (hash_table::expand): Likewise.
422         * inchash.c (iterative_hash_hashval_t): Move implementation to header
423         file.
424         (iterative_hash_host_wide_int): Likewise.
425         * inchash.h (class hash): Likewise.
426         * mem-stats-traits.h: New file.
427         * mem-stats.h: New file.
428         (mem_location): Add new class.
429         (mem_usage): Likewise.
430         (mem_alloc_description): Likewise.
431         * sese.c: Add new header file inclusision.
432         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
433         and hash_set.
434         * tree-sra.c: Add new header file inclusision.
435         * vec.c (struct vec_descriptor): Remove.
436         (hash_descriptor): Likewise.
437         (struct vec_usage): Likewise.
438         (struct ptr_hash_entry): Likewise.
439         (hash_ptr): Likewise.
440         (eq_ptr): Likewise.
441         (vec_prefix::register_overhead): Use new memory descriptor API.
442         (vec_prefix::release_overhead): Likewise.
443         (add_statistics): Remove.
444         (dump_vec_loc_statistics): Use new memory descriptor API.
445         * vec.h (struct vec_prefix): Likewise.
446         (va_heap::reserve): Likewise.
447         (va_heap::release): Likewise.
448         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
450 2015-05-27  Richard Biener  <rguenther@suse.de>
452         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
453         earlier and remove ??? comment.
454         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
455         and got called from loop analysis bail out.  Always pass the SLP
456         node to the vectorizable_* functions.
457         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
458         the premature SLP check here.
459         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
460         detected SLP stmts.
461         (vect_detect_hybrid_slp_1): Likewise.
463 2015-05-26  Jeff Law  <law@redhat.com>
465         * combine.c (find_split_point): Verify that the shift count is a
466         constant when choosing (plus (ashift ...)) as a split point.
468         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
469         No functional changes.
471 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
473         * ipa-polymorphic-call.c
474         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
475         case when call target is already known.
477 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
479         PR target/65979
480         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
481         take into account the case that operands[1] and operands[2]
482         are the same register.
484 2015-05-26  Michael Matz  <matz@suse.de>
486         PR middle-end/66251
488         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
489         stores.
490         (vect_create_vectorized_demotion_stmts): Always set
491         STMT_VINFO_VEC_STMT, also with SLP.
492         (vectorizable_store): Handle strided group stores.
494 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
496         PR target/66049
497         * config/aarch64/aarch64.md
498         (*adds_shift_imm_<mode>):  New pattern.
499         (*subs_shift_imm_<mode>):  Likewise.
500         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
501         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
502         (*add_uxt<mode>_shift2): Likewise.
503         (*add_uxtsi_shift2_uxtw): Likewise.
504         (*sub_uxt<mode>_shift2): Likewise.
505         (*sub_uxtsi_shift2_uxtw): Likewise.
507 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
509         * config/rs6000/constraints.md (Y, U): Use match_test.
511 2015-05-26  Christian Bruel  <christian.bruel@st.com>
513         PR target/52144
514         * config/arm/arm.c (arm_option_check_internal)
515         (arm_option_params_internal): Check opts->target_flags to set macros.
516         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
517         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
518         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
519         (builtin_define): Replaced with def_or_undef_macro.
520         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
521         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
522         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
523         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
524         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
525         (TARGET_ARM_FEATURE_LDREX_P)
526         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
527         * config/arm/arm-c.c (def_or_undef_macro): New function.
528         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
530 2015-05-26  Christian Bruel  <christian.bruel@st.com>
532         * c-common.h (builtin_define_with_int_value)
533         (builtin_define_type_sizeof): Declare.
534         * c-cppbuiltin.c (builtin_define_with_int_value)
535         (builtin_define_type_sizeof): Externalize.
536         (builtin_define_std): Cleanup declaration.
537         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
538         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
539         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
540         (builtin_define, builtin_assert): New macros.
542 2015-05-26  Richard Biener  <rguenther@suse.de>
544         PR tree-optimization/66142
545         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
546         MEM_REFs for the same base address.
548 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
550         PR ipa/66181
551         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
553 2015-05-26  Jason Merrill  <jason@redhat.com>
555         * configure.ac: Set CXXFLAGS for ISL test.
556         * configure: Regenerate.
558         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
559         strstr and basename.
560         * configure: Regenerate.
562 2015-05-26  Richard Biener  <rguenther@suse.de>
564         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
565         X % C -> X & (C - 1) for C being a power-of two to ...
566         * match.pd: ... patterns.
568 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
570         * match.pd (swapped_tcc_comparison): New operator list.
571         (-A CMP -B): New simplification.
572         * fold-const.c (fold_comparison): Remove corresponding code.
574 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
576         * caller-save.c (init_caller_save): Base temporary register numbers
577         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
578         * cfgloopanal.c (init_set_costs): Likewise.
579         * dojump.c (prefer_and_bit_test): Likewise.
580         * expr.c (init_expr_target): Likewise.
581         * ira.c (setup_prohibited_mode_move_regs): Likewise.
582         * lower-subreg.c (init_lower_subreg): Likewise.
583         * postreload.c (reload_cse_regs_1): Likewise.
585 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
587         * gensupport.h (compute_test_codes): Declare.
588         * gensupport.c (compute_predicate_codes): Rename to...
589         (compute_test_codes): ...this.  Generalize error message.
590         (process_define_predicate): Update accordingly.
591         * genpreds.c (compute_maybe_allows): Delete.
592         (add_constraint): Use compute_test_codes to determine whether
593         something can accept a SUBREG, REG or MEM.
595 2015-05-26  Torvald Riegel  <triegel@redhat.com>
597         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
598         'memory model' to align with C++11; fix description of memory orders;
599         fix a few typos.
601 2015-05-26  Richard Biener  <rguenther@suse.de>
603         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
604         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
605         detect whether we apply SLP.  Remove call to
606         vect_update_slp_costs_according_to_vf.
607         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
608         vect_update_slp_costs_according_to_vf from here.  Dispatch
609         to vect_slp_analyze_operations to analyze SLP stmts.
610         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
611         unused bb_vec_info parameter, adjust assert.
612         (vect_slp_analyze_operations): Pass in the slp instance tree
613         instead of bb_vec_info.
614         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
615         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
617 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
619         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
620         Q_REGS.  Expand comment.
621         (REG_CLASS_NAMES): Ditto.
622         (REG_CLASS_CONTENTS): Ditto.
624 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
626         PR target/66274
627         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
628         when LEGACY_INT_REGNO_P is processed.
630 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
632         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
634 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
636         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
637         register if not marked dead/unused, before return.
639 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
641         PR lto/66180
642         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
643         is set; check for assembler name at LTO time.
644         (type_in_anonymous_namespace): Remove hacks, check that all
645         anonymous types are called "<anon>"
646         (odr_type_p): Simplify; add check for "<anon>"
647         (odr_subtypes_equivalent): Add odr_type_p check.
648         * tree.c (need_assembler_name_p): Even anonymous namespace needs
649         assembler name.
651 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
653         * ipa-utils.h (method_class_type): Remove.
654         * cgraphunit.c (walk_polymorphic_call_targets): Use
655         TYPE_METHOD_BASETYPE.
656         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
657         on main variants only.
658         (method_class_type): Remove.
659         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
660         (build_type_inheritance_graph): Likewise.
661         * ipa-icf.c (sem_function::equals_wpa): Likewise.
662         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
663         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
665 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
667         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
668         is_typedef_decl, typedef_variant_p): Constify.
669         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
670         is_typedef_decl, typedef_variant_p): Constify.
672 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
674         * defaults.h (gen_tablejump): New function.
675         (HAVE_tablejump): Add default value.
676         * expr.c: Adjust.
677         * stmt.c: Likewise.
679 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
681         * defaults.h (gen_store_multiple): New function.
682         (HAVE_store_multiple): Add default value.
683         * expr.c (move_block_from_reg): Adjust.
685 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
687         * defaults.h (gen_load_multiple): New function.
688         (HAVE_load_multiple): Add default value.
689         * expr.c (move_block_to_reg): Adjust.
691 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
693         * defaults.h (gen_mem_signal_fence): New function.
694         (HAVE_mem_signal_fence): Add default value.
695         * optabs.c: Adjust.
697 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
699         * defaults.h (gen_memory_barrier): New function.
700         (HAVE_memory_barrier): Add default value.
701         * optabs.c: Adjust.
703 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
705         * defaults.h (gen_mem_thread_fence): New function.
706         (HAVE_mem_thread_fence): Add default definition.
707         * optabs.c: Adjust.
709 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
711         * combine.c (find_split_point): Check the value of HAVE_lo_sum
712         instead of if it is defined.
713         (combine_simplify_rtx): Likewise.
714         * lra-constraints.c (process_address_1): Likewise.
715         * config/darwin.c: Adjust.
716         * genconfig.c (main): Always define HAVE_lo_sum.
718 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
720         * genmatch.c (parser::parse_operation): Reject expanding
721         operator-list inside 'for'.
723 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
725         * genmatch.c (parser::parse_for): Reject iterator if used as
726         operator-list.
728 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
730         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
731         after end of id-list.
733 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
735         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
736         we do not try to compute canonical type for type that does not need
737         alias set.
738         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
739         FUNCITON_TYPE.
740         * tree.h (type_with_alias_set_p): New.
742 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
744         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
745         function attributes.
746         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
748 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
750         * Makefile.in (check_gcc_parallelize): Delete.
751         (lang_checks_parallelized): Update comment.
753 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
755         PR rtl-optimization/66237
756         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
757         location of an "as_a" cast.
759 2015-05-22  Jeff Law  <law@redhat.com>
761         * config/pa/pa.md (non-canonical shift-add insns): Remove.
762         (peepholes with non-canonical RTL sources): Remove.
763         (peepholes for indexed stores of FP regs in integer modes): Match and
764         generate canonical RTL.
766 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
768         PR tree-optimization/63387
769         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
770         ((x ord x) & (y ord y) -> (x ord y),
771         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
772         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
773         vectors like scalars.
775 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
777         * convert.c (convert_to_integer, convert_to_vector): Include the
778         types in the error message.
780 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
782         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
783         simplifications.
785 2015-05-22  Jeff Law  <law@redhat.com>
787         * config/pa/pa.md (integer_indexed_store splitters): Use
788         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
789         insns -- adjusting the constant 2nd operand accordingly.
791         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
792         (plus (ashift X log2) Y) if it is a split point.
794         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
795         out of hppa_legitimize_address to handle both forms of a multiply
796         by 2, 4 or 8.
797         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
798         Always generate the ASHIFT variant as the result is not directly
799         used in a MEM.  Update comments and refactor slightly to improve
800         readability.
802 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
804         PR target/65491
805         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
806         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
807         (aarch64_composite_type_p): Return false if given type and mode are
808         for a short vector.
810 2015-05-22  Richard Biener  <rguenther@suse.de>
812         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
813         member.
814         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
815         patterns when determining whether SLP is pure.
816         (vect_is_slp_reduction): Remove check for pattern stmts.
817         (vect_is_simple_reduction_1): Remove dead code.
818         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
819         (vect_get_and_check_slp_defs): Pass in the stmt number.
820         Allow the first def in a reduction to be not a pattern stmt when
821         the rest of the stmts def are patterns.
822         (vect_build_slp_tree_1): Allow tcc_expression codes like
823         SAD_EXPR and DOT_PROD_EXPR.
824         (vect_build_slp_tree): Adjust.
825         (vect_analyze_slp): Refactor and move BB vect error message ...
826         (vect_slp_analyze_bb_1): ... here.
828 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
830         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
831         for CSWTCH temporary.
833 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
835         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
836         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
837         unknown unspecs.
839 2015-05-22  Richard Biener  <rguenther@suse.de>
841         PR tree-optimization/66251
842         * tree-vect-stmts.c (vectorizable_conversion): Properly
843         set STMT_VINFO_VEC_STMT even for the SLP case.
845 2015-05-22  Marek Polacek  <polacek@redhat.com>
847         * doc/extend.texi: Use @pxref instead of @xref.
849 2015-05-22  hiraditya  <hiraditya@msn.com>
851         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
852         redundant if.
854 2015-05-22  Richard Biener  <rguenther@suse.de>
856         PR tree-optimization/65701
857         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
858         Move peeling cost models into one place.  Peel for alignment
859         for single loads only if an aligned load is cheaper than
860         an unaligned load.
862 2015-05-22  Marek Polacek  <polacek@redhat.com>
864         PR c/47043
865         * doc/extend.texi (Enumerator Attributes): New section.
866         Document syntax of enumerator attributes.
868 2015-05-22  Richard Biener  <rguenther@suse.de>
870         * tree-vect-loop.c (get_reduction_op): New function.
871         (vect_model_reduction_cost): Use it, add reduc_index parameter.
872         Make ready for BB reductions.
873         (vect_create_epilog_for_reduction): Use get_reduction_op.
874         (vectorizable_reduction): Init reduc_index to a valid value.
875         Adjust vect_model_reduction_cost call.
876         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
877         operand for reduction defaults.  Add SAD_EXPR support.
878         Assert we have a neutral op for SLP reductions.
879         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
880         walking pattern stmt ops only recurse to SSA names.
882 2015-05-22  Richard Biener  <rguenther@suse.de>
884         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
885         assert with guard, remove check on detected reduction.
886         (vect_recog_sad_pattern): Likewise.
887         (vect_recog_widen_sum_pattern): Likewise.
889 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
891         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
892         __always_inline__ attribute.
893         (vaesdq_u8): Likewise.
894         (vaesmcq_u8): Likewise.
895         (vaesimcq_u8): Likewise.
896         (vsha1cq_u32): Likewise.
897         (vsha1mq_u32): Likewise.
898         (vsha1pq_u32): Likewise.
899         (vsha1h_u32): Likewise.
900         (vsha1su0q_u32): Likewise.
901         (vsha1su1q_u32): Likewise.
902         (vsha256hq_u32): Likewise.
903         (vsha256h2q_u32): Likewise.
904         (vsha256su0q_u32): Likewise.
905         (vsha256su1q_u32): Likewise.
906         (vmull_p64): Likewise.
907         (vmull_high_p64): Likewise.
909 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
911         * final.c (final_scan_insn): Don't check HAVE_peephole with the
912         preprocessor.
913         * output.h: Likewise.
914         * genconfig.c (main): Alwways define HAVE_peephole.
915         * genpeep.c: Don't emit checks of HAVE_peephole.
917 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
919         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
920         check HAVE_conditional_move with the preprocessor.
922 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
924         * genconfig.c (main): Always define HAVE_conditional_move.
925         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
926         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
927         is defined.
929 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
931         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
932         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
933         and FRAME_POINTER_REGNUM with the preprocessor.
935 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
937         * defaults.h: Add default for STACK_PUSH_CODE.
938         * expr.c: Don't redefine STACK_PUSH_CODE.
939         * recog.c: Likewise.
941 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
943         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
944         sched-deps.c: Use if instead of preprocessor checks with
945         STACK_GROWS_DOWNWARD.
947 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
949         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
950         is defined.
951         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
952         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
953         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
954         * doc/tm.texi: Regenerate.
956 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
958         PR target/66232
959         * config/i386/constraints.md (Bg): New constraint for GOT memory
960         operand.
961         * config/i386/i386.md (*call_got_x32): New pattern.
962         (*call_value_got_x32): Likewise.
963         * config/i386/predicates.md (GOT_memory_operand): New predicate.
965 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
967         PR tree-optimization/66233
968         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
969         Simplify.
971 2015-05-21  Jeff Law  <law@redhat.com>
973         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
974         than MULT for shadd sequences.
976 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
978         * alias.c (alias_stats): New static var.
979         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
980         (dump_alias_stats_in_alias_c): New function.
981         * alias.h (dump_alias_stats_in_alias_c): Declare.
982         * tree-ssa-alias.c (dump_alias_stats): Call it.
984 2015-05-08  Michael Matz  <matz@suse.de>
986         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
987         to strided_p.
988         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
989         (STMT_VINFO_STRIDED_P): ... this.
990         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
991         (vect_verify_datarefs_alignment): Likewise.
992         (vect_enhance_data_refs_alignment): Likewise.
993         (vect_analyze_data_ref_access): Likewise.
994         (vect_analyze_data_refs): Accept strided stores.
995         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
996         (vect_model_load_cost): Adjust for macro rename.
997         (vectorizable_mask_load_store): Likewise.
998         (vectorizable_load): Likewise.
999         (vectorizable_store): Open code strided stores.
1001 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1003         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
1004         Document sqrt_insn.
1006 2015-05-21  Richard Biener  <rguenther@suse.de>
1008         PR c++/66211
1009         * match.pd: Guard pattern optimzing (int)(float)int
1010         conversions to apply only on GIMPLE.
1012 2015-05-21  Jeff Law  <law@redhat.com>
1014         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
1015         multiply-accumulate/shift-add insn generation.
1017 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
1019         PR target/54236
1020         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
1021         operands[1] are the same.
1023 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
1025         PR middle-end/66221
1026         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
1027         build_distinct_type_copy to copy bounds.
1029 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1031         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
1032         Change to unsigned int.
1034 2015-05-20  Jeff Law  <law@redhat.com>
1036         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
1037         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
1038         (pa_shadd_constant_p): Allow constants for shadd insns rather
1039         than valid scaling constants for memory addresses.
1040         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
1041         * config/pa/predicates.md (mem_shadd_operand): New predicate.
1042         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
1043         (shift-add insns using ASHIFT): New patterns.
1045 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
1047         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
1048         feasible.
1049         (fix_up_fall_thru_edges): Likewise.
1050         (fix_crossing_conditional_branches): Likewise. Promote jump targets
1051         from to rtx_insn to rtx_code_label where feasible.
1052         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
1053         gen_move_insn (returned type changed to rtx_insn).
1054         * builtins.c (expand_errno_check): Fix arguments of
1055         do_compare_rtx_and_jump (now expects rtx_code_label).
1056         (expand_builtin_acc_on_device): Likewise.
1057         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
1058         invert_jump (now exprects rtx_jump_insn).
1059         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
1060         (construct_init_block): Use rtx_code_label.
1061         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
1062         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
1063         calling redirect_jump.
1064         (patch_jump_insn): Likewise.
1065         (redirect_branch_edge): Likewise.
1066         (force_nonfallthru_and_redirect): Likewise.
1067         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
1068         when suitable.
1069         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
1070         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
1071         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
1072         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
1073         to store the value retured by gen_label_rtx.
1074         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
1075         rtx_jump_insn.
1076         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
1077         (split_branches): Fix calls of redirect_jump.
1078         * dojump.c (jumpifnot): Promote argument type from rtx to
1079         rtx_code_label.
1080         (jumpifnot_1): Likewise.
1081         (jumpif): Likewise.
1082         (jumpif_1): Likewise.
1083         (do_jump_1): Likewise.
1084         (do_jump): Likewise. Use rtx_code_label when feasible.
1085         (do_jump_by_parts_greater_rtx): Likewise.
1086         (do_jump_by_parts_zero_rtx): Likewise.
1087         (do_jump_by_parts_equality_rtx): Likewise.
1088         (do_compare_rtx_and_jump): Likewise.
1089         * dojump.h: Update function prototypes.
1090         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
1091         returns rtx_insn).
1092         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
1093         rtx_jump_insn.
1094         (emit_label_before): Likewise.
1095         (emit_jump_insn_after_noloc): Likewise.
1096         (emit_jump_insn_after_setloc): Likewise.
1097         (emit_jump_insn_after): Likewise
1098         (emit_jump_insn_before_setloc): Likewise.
1099         (emit_jump_insn_before): Likewise.
1100         (emit_label_before): Promote return type to rtx_code_label.
1101         (emit_label): Likewise.
1102         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
1103         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
1104         gen_move_insn.
1105         (emit_stack_restore): Likewise.
1106         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
1107         (do_cmp_and_jump): Likewise.
1108         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
1109         from rtx to rtx_code_label.
1110         (gen_move_insn_uncast): New function.
1111         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
1112         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
1113         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
1114         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
1115         invert_jump_1 and redirect_jump_1.
1116         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
1117         do_compare_rtx_and_jump.
1118         (expand_addsub_overflow): Likewise.
1119         (expand_neg_overflow): Likewise.
1120         (expand_mul_overflow): Likewise.
1121         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
1122         return value of gen_move_insn.
1123         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
1124         * loop-doloop.c (add_test): Use rtx_code_label.
1125         (doloop_modify): Likewise.
1126         (doloop_optimize): Likewise.
1127         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
1128         * lra-constraints.c (emit_spill_move): Remove cast of value returned
1129         by gen_move_insn.
1130         (inherit_reload_reg): Add cast when calling dump_insn_slim.
1131         (split_reg): Likewise.
1132         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
1133         gen_move_insn.
1134         * optabs.c (expand_binop_directly): Remove casts of values returned by
1135         maybe_gen_insn.
1136         (expand_unop_direct): Likewise.
1137         (expand_abs): Likewise.
1138         (maybe_emit_unop_insn): Likewise.
1139         (maybe_gen_insn): Promote return type to rtx_insn.
1140         * optabs.h: Update prototype of maybe_gen_insn.
1141         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
1142         redundant cast.
1143         * recog.c (struct peep2_insn_data): Promote type of insn field to
1144         rtx_insn.
1145         (peep2_reinit_state): Use NULL instead of NULL_RTX.
1146         (peep2_attempt): Remove casts of insn in peep2_insn_data.
1147         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
1148         * recog.h (struct insn_gen_fn): Promote return types of function
1149         pointers and operator ().from rtx to rtx_insn.
1150         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
1151         (fill_eager_delay_slots): Likewise.
1152         (relax_delay_slots): Likewise.
1153         (make_return_insns): Likewise.
1154         (dbr_schedule): Likewise.
1155         (optimize_skips): Likewise.
1156         (reorg_redirect_jump): Likewise.
1157         (fill_slots_from_thread): Likewise.
1158         * reorg.h: Update prototypes.
1159         * resource.c (find_dead_or_set_registers): Use dyn_cast to
1160         rtx_jump_insn instead of check.  Use it's jump_target method.
1161         * rtl.h (rtx_jump_insn::jump_label): Define new method.
1162         (rtx_jump_insn::jump_target): Define new method.
1163         (rtx_jump_insn::set_jump_target): Define new method.
1164         * rtlanal.c (tablejump_p): Promote type of one local variable.
1165         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
1166         (sched_analyze_insn): Likewise.
1167         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
1168         (print_insn): Likewise.
1169         * stmt.c (label_rtx): Promote return type to rtx_insn.
1170         (force_label_rtx): Likewise.
1171         (jump_target_rtx): Define new function.
1172         (expand_label): Use it, get rid of one cast.
1173         (expand_naked_return): Promote rtx to rtx_code_label.
1174         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
1175         (expand_case): Use rtx_code_label instread of rtx where feasible.
1176         (expand_sjlj_dispatch_table): Likewise.
1177         (emit_case_nodes): Likewise.
1178         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
1179         * store-motion.c (insert_store): Make use of new return type of
1180         gen_move_insn and remove a cast.
1181         (replace_store_insn): Likewise.
1183 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
1185         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
1186         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
1188 2015-05-20  Jeff Law  <law@redhat.com>
1190         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
1191         dispose of the jump thread path when the jump threading
1192         opportunity is cancelled.
1194 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1196         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
1197         when printing the caret character.
1199 2015-05-20  Marek Polacek  <polacek@redhat.com>
1201         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
1203 2015-05-20  Marek Polacek  <polacek@redhat.com>
1205         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
1206         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
1207         * gimple-fold.c (canonicalize_bool): Likewise.
1208         (same_bool_result_p): Likewise.
1209         * tree-if-conv.c (parse_predicate): Likewise.
1211 2015-05-20  Marek Polacek  <polacek@redhat.com>
1213         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
1214         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
1216 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1218         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
1219         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
1220         values.
1222 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
1224         * config/mips/mips.h (micromips_globals): Declare.
1226 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
1228         * timevar.def (TV_INITIALIZE_RTL): New.
1229         * toplev.c (initialize_rtl): Use an auto_timevar to account this
1230         function's time to TV_INITIALIZE_RTL.
1232 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
1234         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
1235         gimple_build_nop calls.
1236         (chkp_find_bounds_for_elem): Likewise.
1237         (chkp_get_zero_bounds): Likewise.
1238         (chkp_get_none_bounds): Likewise.
1239         (chkp_get_bounds_by_definition): Likewise.
1240         (chkp_generate_extern_var_bounds): Likewise.
1241         (chkp_get_bounds_for_decl_addr): Likewise.
1242         (chkp_get_bounds_for_string_cst): Likewise.
1244 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
1246         PR tree-optimization/65447
1247         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
1248         (dump_use, dump_uses): Support to dump sub use.
1249         (record_use): New parameters to support sub use.  Remove call to
1250         dump_use.
1251         (record_sub_use, record_group_use): New functions.
1252         (compute_max_addr_offset, split_all_small_groups): New functions.
1253         (group_address_uses, rewrite_use_address): New functions.
1254         (strip_offset): New declaration.
1255         (find_interesting_uses_address): Call record_group_use.
1256         (add_candidate): New assertion.
1257         (infinite_cost_p): Move definition forward.
1258         (add_costs): Check INFTY cost and return immediately.
1259         (get_computation_cost_at): Clear setup cost and dependent bitmap
1260         for sub uses.
1261         (determine_use_iv_cost_address): Compute cost for sub uses.
1262         (rewrite_use_address_1): Rename from old rewrite_use_address.
1263         (free_loop_data): Free sub uses.
1264         (tree_ssa_iv_optimize_loop): Call group_address_uses.
1266 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
1267             Jim Wilson  <jim.wilson@linaro.org>
1269         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
1270         new  fields loadv and storev.
1271         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
1272         Initialize loadv and storev.
1273         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
1274         (cortexa53_extra_costs): Likewise.
1275         (cortexa57_extra_costs): Likewise.
1276         (xgene1_extra_costs): Likewise.
1277         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
1278         rtx_costs.
1280 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
1282         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
1283          storev.
1284         (cortexa8_extra_costs): Likewise.
1285         (cortexa5_extra_costs): Likewise.
1286         (cortexa7_extra_costs): Likewise.
1287         (cortexa12_extra_costs): Likewise.
1288         (cortexa15_extra_costs): Likewise.
1289         (v7m_extra_costs): Likewise.
1291 2015-05-20  Jeff Law  <law@redhat.com>
1293         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
1294         instead of open-coded version.  Also delete the jump thread created
1295         within this function.
1297 2015-05-20  Alan Modra  <amodra@gmail.com>
1299         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
1300         stack adjusting insn.  Formatting.
1301         (rs6000_emit_prologue): Track stack adjusting insn, and use of
1302         r12.  If possible, emit first -fsplit-stack arg pointer insn
1303         before stack adjust.  Don't use r12 to save cr if split-stack.
1305 2015-05-20  Alan Modra  <amodra@gmail.com>
1307         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
1308         Define.
1309         (rs6000_supports_split_stack): New function.
1310         * gcc/config/rs6000/rs6000.c (machine_function): Add
1311         split_stack_arg_pointer.
1312         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
1313         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
1314         rather than virtual_incoming_args_rtx.
1315         (rs6000_va_start): Likewise.
1316         (split_stack_arg_pointer_used_p): New function.
1317         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
1318         (morestack_ref): New var.
1319         (gen_add3_const, rs6000_expand_split_stack_prologue,
1320         rs6000_internal_arg_pointer, rs6000_live_on_entry,
1321         rs6000_split_stack_space_check): New functions.
1322         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
1323         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
1324         (UNSPECV_SPLIT_STACK_RETURN): Define.
1325         (split_stack_prologue, load_split_stack_limit,
1326         load_split_stack_limit_di, load_split_stack_limit_si,
1327         split_stack_return, split_stack_space_check): New expands and insns.
1328         * gcc/config/rs6000/rs6000-protos.h
1329         (rs6000_expand_split_stack_prologue): Declare.
1330         (rs6000_split_stack_space_check): Declare.
1332 2015-05-20  Alan Modra  <amodra@gmail.com>
1334         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
1335         (rs6000_stack_info): Don't zero offsets when not saving registers.
1336         (debug_stack_info): Adjust to omit printing unused offsets,
1337         as before.
1338         (direct_return): Test vrsave_size rather than vrsave_mask.
1339         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
1340         (rs6000_emit_epilogue): Likewise.
1342 2015-05-20  Alan Modra  <amodra@gmail.com>
1344         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
1345         when not saving registers.
1346         (debug_stack_info): Adjust to omit printing unused offsets,
1347         as before.
1348         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
1349         expression.
1351 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1353         PR c++/65835
1354         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
1355         value_type to const char *.
1357 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
1359         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
1360         to build a biarch toolchain again.
1362 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
1364         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
1365         or implicit declarations.
1366         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
1367         into it.
1368         (get_odr_type): Check type has linkage before adding bases.
1369         (register_odr_type): Check that type has linkage before adding it.
1370         (type_known_to_have_no_deriavations_p): Rename to ..
1371         (type_known_to_have_no_derivations_p): This one.
1372         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
1373         (type_known_to_have_no_derivations_p): This one.
1374         * ipa-polymorphic-call.c
1375         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
1376         type has linkage.
1378 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1380         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
1381         (layout_type): Use RECORD_OR_UNION_TYPE_P.
1383 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1385         * config/s390/s390.c (s390_vector_bool_type_p): New function.
1386         (s390_invalid_binary_op): New function.
1387         (TARGET_INVALID_BINARY_OP): Define macro.
1389 2015-05-19  David Sherwood  <david.sherwood@arm.com>
1391         * loop-invariant.c (create_new_invariant): Don't calculate address cost
1392         if mode is not a scalar integer.
1393         (get_inv_cost): Increase computational cost for unused invariants.
1395 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1397         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
1398         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
1399         * config/s390/s390-builtin-types.def: New file.
1400         * config/s390/s390-builtins.def: New file.
1401         * config/s390/s390-builtins.h: New file.
1402         * config/s390/s390-c.c: New file.
1403         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
1404         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
1405         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
1406         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
1407         prototypes.
1408         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
1409         Include.
1410         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
1411         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
1412         variable definitions.
1413         (s390_const_operand_ok): New function.
1414         (s390_expand_builtin): Rewrite.
1415         (s390_init_builtins): New function.
1416         (s390_handle_vectorbool_attribute): New function.
1417         (s390_attribute_table): Add s390_vector_bool attribute.
1418         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
1419         (s390_branch_condition_mask): Generate masks for new modes.
1420         (s390_expand_vec_compare_cc): New function.
1421         (s390_mangle_type): Add mangling for vector bool types.
1422         (enum s390_builtin): Remove.
1423         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
1424         efpc builtins.
1425         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
1426         s390_cpu_cpp_builtins.
1427         (REGISTER_TARGET_PRAGMAS): New macro.
1428         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
1429         (insn_cmp mode attribute): Add new CC modes.
1430         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
1431         (lcbb): New pattern definition.
1432         * config/s390/s390intrin.h: Include vecintrin.h.
1433         * config/s390/t-s390: New file.
1434         * config/s390/vecintrin.h: New file.
1435         * config/s390/vector.md: Include vx-builtins.md.
1436         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
1437         support.
1439 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1441         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
1442         CCVFHE.
1443         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
1444         (s390_select_ccmode): Likewise.
1445         (s390_canonicalize_comparison): Swap operands if necessary.
1446         (s390_expand_vec_compare_scalar): Expand DFmode compare using
1447         single element vector instructions.
1448         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
1449         (s390_branch_condition_mask): Generate CC masks for the new modes.
1450         * config/s390/s390.md (v0, vf, vd): New mode attributes.
1451         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
1452         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
1453         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
1454         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
1455         (*extend<DSF:mode><BFP:mode>2): New insn definition.
1456         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
1457         (extend<DSF:mode><BFP:mode>2): Turn into expander.
1458         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
1459         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
1460         (sqrt<mode>2): Add vector instruction.
1462 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1464         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
1465         constraints.
1466         * config/s390/predicates.md (const0_operand, constm1_operand)
1467         (constable_operand): Accept vector operands.
1468         * config/s390/s390-modes.def: Add supported vector modes.
1469         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
1470         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
1471         (s390_bytemask_vector_p, s390_expand_vec_strlen)
1472         (s390_expand_vec_compare, s390_expand_vcond)
1473         (s390_expand_vec_init): Add prototypes.
1474         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
1475         (s390_vector_mode_supported_p): New function.
1476         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
1477         (s390_contiguous_bitmask_vector_p): New function.
1478         (s390_bytemask_vector_p): New function.
1479         (s390_split_ok_p): Vector regs don't work either.
1480         (regclass_map): Add VEC_REGS.
1481         (s390_legitimate_constant_p): Handle vector constants.
1482         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
1483         (legitimate_reload_vector_constant_p): New function.
1484         (s390_preferred_reload_class): Handle CONST_VECTOR.
1485         (s390_reload_symref_address):  Likewise.
1486         (s390_secondary_reload): Vector memory instructions only support
1487         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
1488         (s390_emit_ccraw_jump): New function.
1489         (s390_expand_vec_strlen): New function.
1490         (s390_expand_vec_compare): New function.
1491         (s390_expand_vcond): New function.
1492         (s390_expand_vec_init): New function.
1493         (s390_dwarf_frame_reg_mode): New function.
1494         (print_operand): Handle addresses with 'O' and 'R' constraints.
1495         (NR_C_MODES, constant_modes): Add vector modes.
1496         (s390_output_pool_entry): Handle vector constants.
1497         (s390_hard_regno_mode_ok): Handle vector registers.
1498         (s390_class_max_nregs): Likewise.
1499         (s390_cannot_change_mode_class): New function.
1500         (s390_invalid_arg_for_unprototyped_fn): New function.
1501         (s390_function_arg_vector): New function.
1502         (s390_function_arg_float): Remove size variable.
1503         (s390_pass_by_reference): Handle vector arguments.
1504         (s390_function_arg_advance): Likewise.
1505         (s390_function_arg): Likewise.
1506         (s390_return_in_memory): Vector values are returned in a VR if
1507         possible.
1508         (s390_function_and_libcall_value): Handle vector arguments.
1509         (s390_gimplify_va_arg): Likewise.
1510         (s390_call_saved_register_used): Consider the arguments named.
1511         (s390_conditional_register_usage): Disable v16-v31 for non-vec
1512         targets.
1513         (s390_preferred_simd_mode): New function.
1514         (s390_support_vector_misalignment): New function.
1515         (s390_vector_alignment): New function.
1516         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
1517         (TARGET_VECTOR_MODE_SUPPORTED_P)
1518         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
1519         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1520         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
1521         (TARGET_VECTOR_ALIGNMENT): Define target macro.
1522         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
1523         (FIRST_PSEUDO_REGISTER): Increase value.
1524         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
1525         (VECTOR_REG_P): Define macros.
1526         (FIXED_REGISTERS, CALL_USED_REGISTERS)
1527         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
1528         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
1529         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
1530         Add vector registers.
1531         (CANNOT_CHANGE_MODE_CLASS): Call C function.
1532         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
1533         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
1534         memory.
1535         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
1536         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
1537         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
1538         (VR*_REGNUM): New constants.
1539         (ALL): New mode iterator.
1540         (INTALL): Remove mode iterator.
1541         Include vector.md.
1542         (movti): Implement TImode moves for VRs.
1543         Disable TImode splitter for VR targets.
1544         Implement splitting TImode GPR<->VR moves.
1545         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
1546         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
1547         reload<mode>_la_in, reload<mode>_la_out.
1548         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
1549         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
1550         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
1551         (mov<mode> SF SD): Prefer lder, lde for loading.
1552         Add lrl and strl instructions.
1553         Add vector instructions.
1554         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
1555         Call s390_expand_vec_strlen on z13.
1556         (*cc_to_int): Change predicate to nonimmediate_operand.
1557         (addti3): Rename to *addti3.  New expander.
1558         (subti3): Rename to *subti3.  New expander.
1559         * config/s390/vector.md: New file.
1561 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1563         * common/config/s390/s390-common.c (processor_flags_table): Add
1564         z13.
1565         * config.gcc: Add z13.
1566         * config/s390/s390-opts.h (enum processor_type): Add
1567         PROCESSOR_2964_Z13.
1568         * config/s390/s390.c (s390_adjust_priority): Check for
1569         PROCESSOR_2964_Z13.
1570         (s390_reorg): Likewise.
1571         (s390_sched_reorder): Likewise.
1572         (s390_sched_variable_issue): Likewise.
1573         (s390_loop_unroll_adjust): Likewise.
1574         (s390_option_override): Likewise. Default to -mvx when available.
1575         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
1576         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
1577         (TARGET_VX_ABI): Define macros.
1578         macros.
1579         (TARGET_DEFAULT): Add MASK_OPT_VX.
1580         * config/s390/s390.md ("cpu" attribute): Add z13.
1581         ("cpu_facility" attribute): Add vec.
1582         * config/s390/s390.opt (processor_type): Add z13.
1583         (mvx): New options.
1584         * doc/invoke.texi: Add z13 option for -march.
1586 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1588         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
1589         mode check to make sure that only scalar integer values are
1590         accepted.
1592 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
1594         * tree.c (verify_type_variant): Fix #undef.
1595         (gimple_canonical_types_compatible_p): Move here from lto.c
1596         (verify_type): Verify TYPE_CANONICAL compatibility.
1597         * tree.h (gimple_canonical_types_compatible_p): Declare.
1599 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
1601         PR middle-end/66199
1602         * tree.h (OMP_TEAMS_COMBINED): Define.
1603         * gimplify.c (enum gimplify_omp_var_data): Add
1604         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
1605         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
1606         (omp_notice_variable): Accept both ORT_TEAMS
1607         and ORT_COMBINED_TEAMS.  Don't recurse if
1608         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
1609         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
1610         GOVD_FIRSTPRIVATE.
1611         (omp_no_lastprivate): New function.
1612         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
1613         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
1614         notice_outer and set appropriate bits, otherwise make
1615         sure default(none) combined constructs won't complain.
1616         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
1617         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
1618         omp_no_lastprivate either remove the clause or turn it
1619         into OMP_CLAUSE_PRIVATE.
1620         (gimplify_omp_for): Fix up handling of implicit
1621         lastprivate or linear iterators.
1622         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
1623         ORT_COMBINED_TEAMS.
1624         * omp-low.c (lower_omp_for_lastprivate): For combined
1625         for simd use fd.loop.n2 from the for rather than simd.
1627 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1629         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
1630         instead of gen_rtx_raw_REG.
1631         (cris_expand_epilogue): Likewise.
1632         * config/microblaze/microblaze.c (microblaze_classify_address):
1633         Likewise.
1634         * config/sparc/sparc.md: Likewise.
1636 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
1638         * config/alpha/alpha.c (alpha_legitimize_reload_address)
1639         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
1640         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
1641         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
1642         Use CASE_CONST_SCALAR_INT.
1643         (print_operand) <case 'M'>: Use mode_width_operand to check the
1644         value of the constant.
1645         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
1646         * config/alpha/predicates.md (input_operand): Use general_operand
1647         instead of match_code as operand check.
1648         (symbolic_operand): Use match_code with subexpression digits.
1649         * config/alpha/constraints.md (Q): Ditto.
1651 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1653         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
1655 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1657         * config/s390/s390.c (s390_secondary_reload): Fix check for
1658         load/store relative.
1660 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1662         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
1663         alternative_mask to uint64_t.
1665 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
1667         PR tree-optimization/66187
1668         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
1669         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
1670         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
1672 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
1674         * diagnostic.c (diagnostic_report_current_module): Strengthen
1675         local "new_map" from const line_map * to
1676         const line_map_ordinary *.
1677         * genmatch.c (error_cb): Likewise for local "map".
1678         (output_line_directive): Likewise for local "map".
1679         * input.c (expand_location_1): Likewise for local "map".
1680         Pass NULL rather than &map to
1681         linemap_unwind_to_first_non_reserved_loc, since the value is never
1682         read from there, and the value written back not read from here.
1683         (is_location_from_builtin_token): Strengthen local "map" from
1684         const line_map * to const line_map_ordinary *.
1685         (dump_location_info): Strengthen locals "map" from
1686         line_map *, one to const line_map_ordinary *, the other
1687         to const line_map_macro *.
1688         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
1689         const line_map * to const line_map_macro *.
1690         (maybe_unwind_expanded_macro_loc): Add a call to
1691         linemap_check_macro when writing to the "map" field of the
1692         loc_map_pair.
1693         Introduce local const line_map_ordinary * "ord_map", using it in
1694         place of "map" in the part of the function where we know we have
1695         an ordinary map.  Strengthen local "m" from const line_map * to
1696         const line_map_ordinary *.
1698 2015-05-19  Nick Clifton  <nickc@redhat.com>
1700         PR target/66156
1701         * config/msp430/msp430.md (zero_extendhisi2): Add support for
1702         separate source and destination registers.
1704 2015-05-19  Richard Biener  <rguenther@suse.de>
1706         PR tree-optimization/66165
1707         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
1708         for no load permutation.
1710         PR tree-optimization/66185
1711         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
1712         when building the SLP node from scalars.
1714 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
1715             Tristan Gingold  <gingold@adacore.com>
1717         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
1718         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
1719         (expand_stack_restore): Call record_new_stack_level.
1720         (expand_stack_save): Do not call do_pending_stack_adjust.
1721         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
1722         * calls.c (expand_call): Call record_new_stack_level for alloca.
1723         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
1724         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
1725         (update_sjlj_context): New global function.
1726         * except.h (update_sjlj_context): Declare.
1727         * explow.c (record_new_stack_level): New global function.
1728         (allocate_dynamic_stack_space): Call record_new_stack_level.
1729         * explow.h (record_new_stack_level): Declare.
1730         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
1731         * cfgrtl.c (duplicate_insn_chain): Likewise.
1733 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1735         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
1736         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
1737         STACK_GROWS_DOWNWARD as normal if.
1738         (expand_call): Likewise.
1740 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
1742         PR target/54236
1743         * config/sh/sh.md (*round_int_even): New insn_and_split and
1744         accompanying new unnamed split.
1746 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1748         * bitmap.c (bitmap_set_range): Handle count==1 specially.
1749         (bitmap_clear_range): Likewise.
1750         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
1751         bitmap_set_range unconditionally.
1752         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1753         * df-scan.c (df_mark_reg): Likewise.
1754         * haifa-sched.c (setup_ref_regs): Likewise.
1755         * sched-rgn.c (update_live_1): Likewise.
1757 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1759         * regs.h (END_HARD_REGNO): Delete.
1760         (END_REGNO): Move to...
1761         * rtl.h: ...here.
1762         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
1763         * caller-save.c (mark_set_regs): Likewise.
1764         * combine.c (move_deaths, distribute_notes): Likewise.
1765         * cse.c (invalidate, invalidate_for_call): Likewise.
1766         * df-scan.c (df_ref_record): Likewise.
1767         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
1768         (record_last_reg_set_info): Likewise.
1769         * reg-stack.c (convert_regs_exit): Likewise.
1770         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
1771         * resource.c (update_live_status): Likewise.
1772         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
1774 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1776         * rtl.h (reg_info): Add an nregs field.
1777         (REG_NREGS): Use it.
1778         (SET_REGNO_RAW): Delete.
1779         (set_regno_raw): New function.
1780         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
1781         (END_REGNO): Redefine in terms of REG_NREGS.
1782         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
1783         SET_REGNO_RAW.
1784         * emit-rtl.c (set_mode_and_regno): Likewise.
1785         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
1786         instead of SET_REGNO_RAW.
1788 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1790         * rtl.h (PUT_MODE_RAW): New macro.
1791         (PUT_REG_NOTE_KIND): Use it.
1792         (set_mode_and_regno): Declare.
1793         (gen_raw_REG): Change regno to "unsigned int".
1794         (gen_rtx_REG): Change "unsigned" to "unsigned int".
1795         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
1796         use set_mode_and_regno to change the mode of registers.
1797         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
1798         * emit-rtl.c (set_mode_and_regno): New function.
1799         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
1800         * caller-save.c (reg_save_code): Use set_mode_and_regno.
1801         * expr.c (init_expr_target): Likewise.
1802         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1803         * postreload.c (reload_cse_simplify_operands): Likewise.
1805 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1807         * caller-save.c (init_caller_save): Use word_mode and
1808         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
1809         * expr.c (init_expr_target): Likewise.
1810         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1811         * postreload.c (reload_cse_regs_1): Likewise.
1813 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1815         * rtl.def (REG): Change format to "r".
1816         * rtl.h (rtunion): Remove rt_reg.
1817         (reg_info): New structure.
1818         (rtx_def): Add reg field to main union.
1819         (X0REGATTR): Delete.
1820         (REG_CHECK): New macro.
1821         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
1822         * rtl.c (rtx_format): Document "r".
1823         (rtx_code_size): Handle REG specially.
1824         * gengenrtl.c (special_format): Return true for formats
1825         that include 'r'.
1826         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
1827         Deal with REG_ATTRS after the field loop.
1828         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
1829         * expmed.c (init_expmed): Call gen_raw_REG instead of
1830         gen_rtx_raw_REG.
1831         * expr.c (init_expr_target): Likewise.
1832         * regcprop.c (maybe_mode_change): Likewise.
1833         * varasm.c (make_decl_rtl): Likewise.
1834         * final.c (leaf_renumber_regs_insn): Return early after
1835         handling REGs.
1836         * genemit.c (gen_exp): Handle 'r' fields.
1837         * genpeep.c (match_rtx): Likewise.
1838         * gensupport.c (subst_pattern_match): Likewise.
1839         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
1840         (alter_constraints, subst_dup): Likewise.
1841         * read-rtl.c (read_rtx_code): Likewise.
1842         * print-rtl.c (print_rtx): Likewise.
1843         * genrecog.c (find_operand, find_matching_operand): Likewise.
1844         (validate_pattern, match_pattern_2): Likewise.
1845         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
1846         (rtx_test::regno_field): New function.
1847         (operator ==, safe_to_hoist_p, transition_parameter_type)
1848         (parameter_type_string, print_parameter_value)
1849         (print_nonbool_test, print_test): Handle new enum values.
1850         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
1851         * lra-constraints.c (operands_match_p): Likewise.
1853 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1855         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
1856         Change type of new_regno to unsigned int.
1857         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
1858         new_regno to unsigned int.
1859         (df_ref_change_reg_with_loc): Remove old_regno parameter.
1860         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
1861         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
1862         (SET_REGNO_RAW): Add space after ",".
1864 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1866         * rtl.h (REG_NREGS): New macro
1867         * alias.c (record_set): Use it.
1868         * cfgcleanup.c (mark_effect): Likewise.
1869         * combine.c (likely_spilled_retval_1): Likewise.
1870         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
1871         (move_deaths, distribute_notes): Likewise.
1872         * cselib.c (cselib_record_set): Likewise.
1873         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1874         * df-scan.c (df_mark_reg): Likewise.
1875         * dse.c (look_for_hardregs): Likewise.
1876         * dwarf2out.c (reg_loc_descriptor): Likewise.
1877         (multiple_reg_loc_descriptor): Likewise.
1878         * expr.c (write_complex_part, read_complex_part): Likewise.
1879         (emit_move_complex): Likewise.
1880         * haifa-sched.c (setup_ref_regs): Likewise.
1881         * ira-lives.c (mark_hard_reg_live): Likewise.
1882         * lra.c (lra_set_insn_recog_data): Likewise.
1883         * mode-switching.c (create_pre_exit): Likewise.
1884         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
1885         (reload_combine_recognize_pattern): Likewise.
1886         (reload_combine_note_use, move2add_record_mode): Likewise.
1887         (reload_cse_move2add): Likewise.
1888         * reg-stack.c (subst_stack_regs_pat): Likewise.
1889         * regcprop.c (kill_value, copy_value): Likewise.
1890         (copyprop_hardreg_forward_1): Likewise.
1891         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
1892         (build_def_use): Likewise.
1893         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
1894         (deps_analyze_insn): Likewise.
1895         * sched-rgn.c (check_live_1, update_live_1): Likewise.
1896         * sel-sched.c (count_occurrences_equiv): Likewise.
1897         * valtrack.c (dead_debug_insert_temp): Likewise.
1899 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
1901         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
1902         * dse.c (note_add_store): Likewise.
1903         * ira-lives.c (mark_hard_reg_dead): Likewise.
1904         * loop-invariant.c (mark_reg_store): Likewise.
1905         (mark_reg_death): Likewise.
1906         * postreload.c (reload_combine): Likewise.
1907         (reload_combine_note_store): Likewise.
1908         (reload_combine_note_use): Likewise.
1909         * recog.c (peep2_reg_dead_p): Likewise.
1911 2015-05-19  Alan Modra  <amodra@gmail.com>
1913         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
1914         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
1915         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
1916         unused predicates.
1917         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
1918         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
1919         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
1920         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
1922 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
1924         * config/mips/mips.md (JOIN_MODE): New mode iterator.
1925         (join2_load_Store<JOIN_MODE:mode>): New pattern.
1926         (join2_loadhi): Likewise.
1927         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
1928         load-load and store-stores.
1929         * config/mips/mips.opt (mload-store-pairs): New option.
1930         (TARGET_LOAD_STORE_PAIRS): New macro.
1931         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
1932         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
1933         * config/mips/mips.c (mips_load_store_bonding_p): New function.
1935 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
1937         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
1938         explicit swaps.
1939         * dojump.c (do_compare_rtx_and_jump): Likewise.
1940         * expmed.c (emit_store_flag_1): Likewise.
1941         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
1942         * final.c (sprint_ul): Use std::reverse for reversing a string.
1943         * fold-const.c (extract_muldiv_1): Use std::swap.
1944         * genmodes.c (emit_mode_int_n): Likewise.
1945         * ifcvt.c (dead_or_predicable): Likewise.
1946         * ira-build.c (ira_merge_live_ranges): Likewise.
1947         (swap_allocno_copy_ends_if_necessary): Likewise.
1948         * ira.c (ira_setup_alts): Likewise.
1949         * loop-iv.c (iv_analyze_expr): Likewise.
1950         (implies_p): Likewise.
1951         (canon_condition): Likewise.
1952         * lra-constraints.c (swap_operands): Likewise.
1953         * lra-lives.c (lra_merge_live_ranges): Likewise.
1954         * omega.c (swap): Remove.
1955         (bswap): Remove.
1956         (omega_unprotect_1): Use std::swap.
1957         (omega_solve_geq): Likewise.
1958         * optabs.c (expand_binop_directly): Likewise.
1959         (expand_binop): Likewise.
1960         (emit_conditional_move): Likewise.
1961         (emit_conditional_add): Likewise.
1962         * postreload.c (reload_cse_simplify_operands): Likewise.
1963         * reg-stack.c (emit_swap_insn): Likewise.
1964         (swap_to_top): Likewise.
1965         (compare_for_stack_reg): Likewise.
1966         (subst_asm_stack_regs): Likewise.
1967         * reload.c (find_reloads): Likewise.
1968         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
1969         * sel-sched.c (invoke_reorder_hooks): Likewise.
1970         (create_block_for_bookkeeping): Likewise.
1971         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
1972         (lambda_matrix_right_hermite): Use std::swap.
1973         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
1974         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1975         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
1976         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
1977         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1978         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
1979         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1980         * tree-vrp.c (compare_ranges): Likewise.
1981         * var-tracking.c (add_with_sets): Likewise.
1982         (vt_find_locations): Likewise.
1984 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
1986         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
1987         pie executables.
1988         (FBSD_ENDFILE_SPEC): Likewise.
1989         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
1990         config/freebsd-spec.h.
1991         (ENDFILE_SPEC): Likewise.
1993 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
1994             Richard Henderson  <rth@redhat.com>
1996         PR target/57032
1997         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
1998         Check for a memory location that is not a reference (using an AND)
1999         to an unaligned location here.
2000         * config/alpha/predicates.md (normal_memory_operand): Remove.
2002 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
2004         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
2005         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
2007 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
2009         * config/mips/mips.c (micromips_globals): New variable.
2010         (mips_set_compression_mode): Save and reinitialize target-dependent
2011         state for microMIPS.
2013 2015-05-18  Martin Liska  <mliska@suse.cz>
2015         * dbgcnt.def: Add new counter.
2016         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
2018 2015-05-18  Martin Liska  <mliska@suse.cz>
2020         * dbgcnt.def: Sort counters.
2021         * opts.c (common_handle_option): Do not compile if
2022         -fdbg-cnt-list is enabled.
2024 2015-05-18  Tom de Vries  <tom@codesourcery.com>
2026         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
2027         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
2028         address operator to va_list operand.
2029         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
2030         unconditionally.
2031         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
2032         operand.
2033         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
2034         * config/s390/s390.c (s390_gimplify_va_arg): Same.
2035         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
2037 2015-05-18  Tom de Vries  <tom@codesourcery.com>
2039         * tree-ssa-tail-merge.c: Fix whitespace.
2041 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
2043         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
2044         cortex-a17, and cortex-a17.cortex-a7.
2046 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
2048         PR target/54236
2049         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
2051 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
2053         PR target/66174
2054         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
2055         QImode inner modes for TARGET_AVX512BW.  Force mask operand
2056         to a register for AVX512F modes.
2058 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
2060         * toplev.c (emit_debug_global_declarations): Do not output debug info
2061         when doing slim LTO objects.
2063 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
2065         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
2066         odr_types_equivalent_p): Declare.
2067         (odr_type_p): Use gcc_checking_assert.
2068         (type_in_anonymous_namespace_p) Declare.
2069         (type_with_linkage_p): Declare.
2070         * common.opt (Wlto-type-mismatch): New warning.
2071         * ipa-devirt.c (compound_type_base): New function.
2072         (odr_or_derived_type_p): New function.
2073         (odr_types_equivalent_p): New function.
2074         (add_type_duplicate): Simplify.
2075         (type_with_linkage_p): Add hack to prevent false positives on C types
2076         (type_in_anonymous_namespace_p): Likewise.
2077         * tree.c (need_assembler_name_p): Use type_with_linkage.
2078         * tree.h (type_in_anonymous_namespace_p): Remove.
2079         * doc/invoke.texi (-Wlto-type-mismatch): Document
2081 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
2083         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
2084         (verify_type): Verify STRING_FLAG.
2086 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2088         PR fortran/44054
2089         * tree-pretty-print.c (percent_K_format): Replace locus pointer
2090         with accessor function.
2091         * tree-diagnostic.c (diagnostic_report_current_function): Use
2092         diagnostic_location function.
2093         (maybe_unwind_expanded_macro_loc): Likewise.
2094         (virt_loc_aware_diagnostic_finalizer): Likewise.
2095         (default_tree_printer): Replace locus pointer with accessor function.
2096         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
2097         (diagnostic_set_info_translated): Initialize second location.
2098         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
2099         (diagnostic_show_locus): Handle two locations. Call
2100         diagnostic_print_caret_line.
2101         (diagnostic_print_caret_line): New.
2102         (default_diagnostic_starter): Use diagnostic_location function.
2103         (diagnostic_report_diagnostic): Use diagnostic_location function.
2104         (verbatim): Do not set text.locus.
2105         * diagnostic.h (struct diagnostic_info): Remove location field.
2106         (struct diagnostic_context): Make caret_chars an array of two.
2107         (diagnostic_location): New inline.
2108         (diagnostic_expand_location): Handle two locations.
2109         (diagnostic_same_line): New inline.
2110         (diagnostic_print_caret_line): Declare.
2111         (CARET_LINE_MARGIN): New constant.
2112         * pretty-print.c (pp_printf): Do not set text.locus.
2113         (pp_verbatim): Do not set text.locus.
2114         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
2115         (struct text_info): Replace locus pointer with locations
2116         array. Add accessor functions.
2118 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
2119             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
2121         PR target/65768
2122         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
2123         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
2124          large constants in register instead of splitting them.
2126 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
2128         PR target/66140
2129         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
2130         replacements in memory addresses.
2131         (get_unaligned_address): Ditto.
2133 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
2135         PR tree-optimization/64454
2136         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
2137         (-1 - A -> ~A): Remove unnecessary condition.
2139 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
2141         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
2142         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2143         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
2145 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
2147         * ipa-chkp.h (chkp_wrap_function): New.
2148         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
2149         (chkp_wrap_function_name): New.
2150         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
2151         to get wrapper name.
2152         * lto-cgraph.c: Include ipa-chkp.h.
2153         (input_cgraph_1): Avoid alias chain for wrappers.
2155 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
2157         PR middle-end/66134
2158         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
2159         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
2161 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2163         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
2164         (AARCH64_FL_SLOWMUL): Delete.
2165         (AARCH64_FL_CRC): Redefine to 1<<3.
2166         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
2168 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2170         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
2171         casting.
2173 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
2175         * config/alpha/alpha.md (extendqidi2): Use general_operand
2176         instead of some_operand for operand[1] predicate.
2177         (extendhidi2): Ditto.
2178         (cbranchdi4): Use general_operand instead of some_operand
2179         for operand[1] and operands[2] predicates.
2180         (cstoredi4): Ditto.
2181         * config/alpha/predicates.md (some_operand): Remove unused predicate.
2182         (some_ni_operand): Ditto.
2184 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
2186         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
2187         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
2188         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
2189         low part of the constant using alpha_emit_set_const_1.
2190         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
2192 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
2194         * varasm.c (output_constant_pool_1): Pass down alignment from
2195         constant pool entry's descriptor to output_constant_pool_2.
2196         (output_object_block): Add comment prior to call to
2197         output_constant_pool_1.
2199 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
2201         PR rtl-optimization/65862
2202         * target.def (ira_change_pseudo_allocno_class): New hook.
2203         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
2204         value of the hook.
2205         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
2206         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
2207         hook.
2208         * ira-costs.c (find_costs_and_classes): Call the hook and change
2209         classes when it is necessary.
2210         * doc/tm.texi: Update.
2212 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
2214         * config/i386/i386.md (sibcall_memory): Check that register with
2215         callee address is not also used as one of the arguments, instead
2216         of checking that it is not live after the sibcall.
2217         (sibcall_pop_memory): Ditto.
2218         (sibcall_value_memory): Ditto.
2219         (sibcall_value_pop_memory): Ditto.
2221 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
2223         * generic-match-head.c (types_match): Handle non-types.
2224         * gimple-match-head.c (types_match): Likewise.
2225         * match.pd: Remove unnecessary TREE_TYPE for types_match.
2227 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
2229         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
2230         (csneg3<mode>_insn): Enable expansion of pattern.
2232 2015-05-14  Nick Clifton  <nickc@redhat.com>
2234         * config/rl78/rl78.c (rl78_select_section): Select the correct
2235         default section based upon the category of the decl.
2237 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
2239         PR rtl-optimization/30967
2240         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
2241         destination mode for the cost of scc patterns.
2243 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
2245         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
2246         using SWIM248 mode iterator.
2247         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
2248         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
2249         for operand[2] constraint.
2250         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
2252 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
2254         PR middle-end/66133
2255         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
2256         make sure it is never noreturn, even when the task body does not
2257         return.
2258         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
2259         right before GIMPLE_OMP_RETURN.
2260         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
2261         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
2262         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
2264 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2266         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
2267         * tree-ssa-math-opts.c: Include params.h
2268         (pow_synth_sqrt_info): New struct.
2269         (representable_as_half_series_p): New function.
2270         (get_fn_chain): Likewise.
2271         (print_nested_fn): Likewise.
2272         (dump_fractional_sqrt_sequence): Likewise.
2273         (dump_integer_part): Likewise.
2274         (expand_pow_as_sqrts): Likewise.
2275         (gimple_expand_builtin_pow): Use above to attempt to expand
2276         pow as series of square roots.  Removed now unused variables.
2278 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
2280         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
2281         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
2282         Remove *p0 and *p1 arguments.  Rewrite function.
2283         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
2284         (alpha_split_const_mov): Update calls to alpha_extract_integer and
2285         alpha_emit_set_long_const.
2286         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
2287         (alpha_output_mi_thunk_osf): Ditto.
2288         * config/alpha/alpha.md (movti): Do not check operands[1]
2289         for CONST_DOUBLE.
2291 2015-05-13  Richard Biener  <rguenther@suse.de>
2293         PR tree-optimization/66129
2294         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
2295         commutative.
2296         (vect_schedule_slp_instance): Fix typo.
2298 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
2300         * common.opt (fdump-internal-locations): New option.
2301         * input.c: Include diagnostic-core.h.
2302         (get_end_location): New function.
2303         (write_digit): New function.
2304         (write_digit_row): New function.
2305         (dump_location_range): New function.
2306         (dump_labelled_location_range): New function.
2307         (dump_location_info): New function.
2308         * input.h (dump_location_info): New prototype.
2309         * toplev.c (compile_file): Handle flag_dump_locations.
2311 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2313         * gimple-expr.h (is_gimple_constant): Reorder.
2314         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
2316 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
2318         * combine.c (simplify_set): When generating a CC set, if the
2319         source already is in the correct mode, do not wrap it in a
2320         compare.  Simplify the rest of that code.
2322 2015-05-13  Richard Biener  <rguenther@suse.de>
2324         PR tree-optimization/66123
2325         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
2326         a taken edge.
2328 2015-05-13  Richard Biener  <rguenther@suse.de>
2330         PR middle-end/66110
2331         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
2332         specially.
2333         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
2335 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
2337         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
2338         * aclocal.m4: Regenerated with automake-1.11.6.
2340 2015-05-13  Tom de Vries  <tom@codesourcery.com>
2342         PR tree-optimization/66010
2343         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
2344         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
2345         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
2346         and rval based on do_deref.
2348 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2350         PR target/65103
2351         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
2352         link time constants into adress expressions and therefore set
2353         their cost to 0.
2355 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
2357         PR target/66112
2358         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
2359         Use SWI248 iterator instead of SWI.
2360         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
2361         Use eq_attr "alternative" "0" instead of match_test in
2362         length_immediate attribute computation.
2363         (*mulvhi4, *mulvhi4_1): New define_insns.
2365         PR target/66112
2366         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
2367         SIGNED to get precision of non-negative value.
2369 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2371         PR target/66048
2372         * function.c (diddle_return_value_1): Process bounds first.
2373         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
2374         register.
2376 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2378         PR rtl-optimization/64616
2379         * loop-invariant.c (can_move_invariant_reg): New.
2380         (move_invariant_reg): Call above new function to decide whether
2381         instruction can just be moved, skipping creation of temporary
2382         register.
2384 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
2386         PR target/pr66047.c
2387         * i386.c (ix86_function_sseregparm): Only return -1 if local function
2388         with implied regparm is called from -mno-sse function.
2389         (init_cumulative_args): Output error if ix86_function_sseregparm
2390         return -1 and SSE register would be needed.
2391         (function_arg_advance_32): Likewise.
2392         (function_arg_32): Likewise.
2393         * i386.h (ix86_args): Add decl field.
2395 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
2397         PR ipa/65873
2398         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
2399         inlines across optimization boundary.
2401 2015-05-12  Jason Merrill  <jason@redhat.com>
2403         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
2404         string literal and macro name.
2406 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
2408         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
2409         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
2410         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
2412 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
2414         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
2415         (-Wmisleading-indentation): New option.
2416         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
2418 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
2420         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
2421         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
2422         (alpha_extract_integer): Ditto.
2423         (alpha_legitimate_constant_p): Ditto.
2424         (alpha_split_tmode_pair): Ditto.
2425         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
2426         (alpha_expand_mov): Ditto.
2427         (print_operand): Remove handling of 'H' modifier.
2428         <case 'm'>: Remove CONST_DOUBLE handling.
2429         (summarize_insn): Handle CONST_WIDE_INT.
2430         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
2431         (anddi3): Ditto.
2432         (movti): Handle CONST_WIDE_INT.
2433         * config/alpha/constraints.md ('H'): Remove constraint definition.
2434         ('G'): Do not match MODE_FLOAT class.
2435         * config/alpha/predicates.md (const0_operand): Also match
2436         const_wide_int.
2437         (non_add_const_operand): Ditto.
2438         (non_zero_const_operand): Ditto.
2439         (some_operand): Ditto.
2440         (input_operand): Ditto.  Handle CONST_WIDE_INT.
2441         (and_operand): Do not match const_double.
2442         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
2444 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
2446         PR target/65697
2447         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
2448         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
2449         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2450         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
2451         is_mm_seq_cst, is_mm_sync): New accessor functions.
2452         * builtins.c (expand_builtin_sync_operation,
2453         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
2454         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
2455         (get_memmodel,  expand_builtin_atomic_compare_exchange,
2456         expand_builtin_atomic_load, expand_builtin_atomic_store,
2457         expand_builtin_atomic_clear): Use new accessor routines.
2458         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
2459         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
2460         (maybe_emit_sync_lock_test_and_set): Use new accessors and
2461         MEMMODEL_SYNC_ACQUIRE.
2462         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
2463         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
2464         expand_atomic_store): Use new accessors.
2465         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
2466         * tsan.c (instrument_builtin_call): Update check for memory model beyond
2467         final enum to use MEMMODEL_LAST.
2468         * c-family/c-common.c: Use new accessor for memmodel_base.
2469         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
2470         accessors.
2471         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
2472         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
2473         mem_thread_fence, *dmb): Likewise.
2474         * config/alpha/alpha.c (alpha_split_compare_and_swap,
2475         alpha_split_compare_and_swap_12): Likewise.
2476         * config/arm/arm.c (arm_expand_compare_and_swap,
2477         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
2478         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
2479         atomic_loaddi): Likewise.
2480         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
2481         Likewise.
2482         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
2483         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
2484         use new accessors.
2485         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
2486         atomic_store<mode>, atomic_compare_and_swap<mode>,
2487         atomic_exchange<mode>): Use new accessors.
2488         * config/mips/mips.c (mips_process_sync_loop): Likewise.
2489         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
2490         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
2491         rs6000_post_atomic_barrier): Add new cases.
2492         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
2493         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
2494         (atomic_load<mode>): Add new cases and use new accessors.
2495         (store_quadpti): Add new cases.
2496         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
2497         accessors.
2498         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
2499         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
2500         model, not 8.
2502 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
2504         * ipa-devirt.c (type_with_linkage_p): New function.
2505         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
2506         type has linkage.
2507         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
2508         (can_be_name_hashed_p): Simplify.
2509         (hash_odr_name): Check that type has linkage before checking if it is
2510         anonymous.
2511         (types_same_for_odr): Likewise.
2512         (odr_name_hasher::equal): Likewise.
2513         (odr_subtypes_equivalent_p): Likewise.
2514         (warn_types_mismatch): Likewise.
2515         (get_odr_type): Likewise.
2516         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
2517         * ipa-utils.h (odr_type_p): Move offline.
2518         * tree.c (need_assembler_name_p): Fix handling of types
2519         without linkages.
2520         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
2522 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
2524         * timevar.c (timevar_enable): Delete in favor of...
2525         (g_timer): New global.
2526         (struct timevar_def): Move to timevar.h inside class timer.
2527         (struct timevar_stack_def): Likewise.
2528         (timevars): Delete global in favor of field "m_timevars" within
2529         class timer in timevar.h
2530         (stack): Likewise, in favor of field "m_stack".
2531         (unused_stack_instances): Likewise, in favor of field
2532         "m_unused_stack_instances".
2533         (start_time): Likewise, in favor of field "m_start_time".
2534         (get_time): Eliminate check for timevar_enable.
2535         (timer::timer): New function, built from part of timevar_init.
2536         (timevar_init): Rewrite idempotency test from using
2537         "timevar_enable" bool to using dynamic allocation of "g_timer".
2538         Move rest of implementation into timer's constructor.
2539         (timevar_push_1): Rename to...
2540         (timer::push): ...this, adding "m_" prefixes to variables that
2541         are now fields of timer.
2542         (timevar_pop_1): Likewise, rename to...
2543         (timer::pop): ...this, and add "m_" prefixes.
2544         (timevar_start): Replace test for "timevar_enable" with one for
2545         "g_timer", and move bulk of implementation to...
2546         (timer::start): ...here, adding "m_" prefixes.
2547         (timevar_stop): Likewise, from here...
2548         (timer::stop): ...to here.
2549         (timevar_cond_start): Likewise, from here...
2550         (timer::cond_start): ...to here.
2551         (timevar_cond_stop): Likewise, from here...
2552         (timer::cond_stop): ...to here.
2553         (validate_phases): Rename to...
2554         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
2555         locals "total" and "tv" const.
2556         (timevar_print): Rename to...
2557         (timer::print): ...this, and add "m_" prefixes.  Make locals
2558         "total" and "tv" const.  Eliminate test for timevar_enable.
2559         * timevar.h (timevar_enable): Eliminate.
2560         (g_timer): New declaration.
2561         (timevar_push_1): Eliminate.
2562         (timevar_pop_1): Eliminate.
2563         (timevar_print): Eliminate.
2564         (class timer): New class.
2565         (timevar_push): Rewrite to use g_timer.
2566         (timevar_pop): Likewise.
2567         * toplev.c (toplev::~toplev): Likewise.
2569 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
2571         * arm-protos.h (arm_sched_autopref): Delete.
2572         (tune_params): Re-organize, use enums for flag values.
2573         (FUSE_OPS): New macro.
2574         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
2575         (ARM_PREFETCH_BENEFICIAL): Likewise.
2576         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
2577         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2578         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
2579         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
2580         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
2581         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
2582         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
2583         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
2584         format.
2585         (arm_option_override, thumb2_reorg, arm_print_tune_info)
2586         (aarch_macro_fusion_pair_p): Update uses of current_tune.
2587         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
2589 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
2591         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
2592         "break".
2594 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
2595             Sandra Loosemore <sandra@codesourcery.com>
2597         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
2598         value.
2599         (REG_CLASS_NAMES): Add "IJMP_REGS".
2600         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
2601         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
2602         use new "c" register constraint.
2603         * config/nios2/constraint.md (c): New register constraint
2604         corresponding to IJMP_REGS.
2606 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
2608         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
2609         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
2610         define_splits): Delete, revamp, transmogrify into ...
2611         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2612         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2613         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2614         New.
2616 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
2618         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
2619         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
2621 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
2623         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
2624         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
2625         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
2626         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
2627         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
2628         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
2629         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
2630         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
2631         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
2632         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
2633         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
2634         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
2635         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
2636         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
2637         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
2638         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
2639         and 30 corresponding splitters): Delete.
2641 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
2643         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
2644         zero_extract.
2646 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
2648         * combine.c (recog_for_combine_1): New function, factored out
2649         from recog_for_combine.
2650         (change_zero_ext): New function.
2651         (recog_for_combine): If recog fails, try again with the pattern
2652         modified by change_zero_ext; if that still fails, restore the
2653         pattern.
2655 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
2657         * combine.c (get_undo_marker): New function.
2658         (undo_to_marker): New function, largely factored out from ...
2659         (undo_all): ... this.  Adjust.
2661 2015-05-12  Richard Biener  <rguenther@suse.de>
2663         PR tree-optimization/66101
2664         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
2665         fixup if we turn a loop exit edge to a fallthru edge.
2667 2015-05-12  Richard Biener  <rguenther@suse.de>
2669         PR tree-optimization/37021
2670         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
2671         (SLP_TREE_TWO_OPERATORS): New define.
2672         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
2673         SLP_TREE_TWO_OPERATORS.
2674         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
2675         SLP node.
2676         (vect_build_slp_tree): Adjust.
2677         (vect_analyze_slp_cost_1): Likewise.
2678         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
2679         emitting two vector stmts and mixing the results.
2681 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2683         * call.c (print_z_candidates): Remove dead code.
2685 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2687         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
2688         and zEC12_simple_fp.
2689         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
2690         to 1.
2692 2015-05-12  Tom de Vries  <tom@codesourcery.com>
2694         PR tree-optimization/66010
2695         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
2696         ifn_va_arg.
2697         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
2698         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
2699         va_lists are passed, and remove corresponding handling.
2700         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
2701         do_deref argument to ifn_va_arg.
2702         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
2703         ifn_va_arg.
2705 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2707         PR target/65955
2708         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
2709         REG before taking its REGNO.
2711 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2713         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
2714         rsp->sign_bit_copies and rsp->nonzero_bits into ...
2715         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
2716         present to get more accurate information about the number of sign bit
2717         copies and non zero bits.
2719 2015-05-12  Richard Biener  <rguenther@suse.de>
2721         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
2722         do not allow unrolling.
2724 2015-05-11  Richard Henderson  <rth@redhat.com>
2726         * config/i386/i386-modes.def (CCP): New.
2727         * config/i386/i386.c (put_condition_code): Handle it.
2728         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
2730 2015-05-11  Richard Henderson  <rth@redhat.com>
2732         * target.def (md_asm_clobbers): Replace with...
2733         (md_asm_adjust): this.
2734         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
2735         (TARGET_MD_ASM_ADJUST): New.
2736         * tm.texi: Rebuild.
2737         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
2738         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
2739         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
2741         * cfgexpand.c (check_operand_nalternatives): Accept vector of
2742         constraints instead of lists of outputs and inputs.
2743         (expand_asm_stmt): Save and restore input_location around the
2744         body of the function.  Move asm data into vectors instead of
2745         building tree lists.  Generate cleanup sequences as needed,
2746         rather than waiting til the end.  Use new md_asm_adjust hook.
2748         * config/vxworks.c: Include vec.h before target.h.
2749         * gimple.c: Likewise.
2750         * incpath.c: Likewise.
2751         * mode-switching.c: Likewise.
2753         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
2754         (cris_md_asm_adjust): this.
2755         (TARGET_MD_ASM_CLOBBERS): Remove.
2756         (TARGET_MD_ASM_ADJUST): New.
2757         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
2758         (ix86_md_asm_adjust): this.
2759         (TARGET_MD_ASM_CLOBBERS): Remove.
2760         (TARGET_MD_ASM_ADJUST): New.
2761         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
2762         (mn10300_md_asm_adjust): this.
2763         (TARGET_MD_ASM_CLOBBERS): Remove.
2764         (TARGET_MD_ASM_ADJUST): New.
2765         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
2766         (rs6000_md_asm_adjust): this.
2767         (TARGET_MD_ASM_CLOBBERS): Remove.
2768         (TARGET_MD_ASM_ADJUST): New.
2769         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
2770         (visium_md_asm_adjust): this.
2771         (TARGET_MD_ASM_CLOBBERS): Remove.
2772         (TARGET_MD_ASM_ADJUST): New.
2774 2015-05-11  Richard Henderson  <rth@redhat.com>
2776         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
2777         if noutputs is zero.
2778         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
2780         * cfgexpand.c (expand_asm_operands): Merge into...
2781         (expand_asm_stmt): ... here.
2783         * cfgexpand.c (expand_asm_operands): Don't call
2784         resolve_asm_operand_names.
2785         * stmt.c (resolve_asm_operand_names): Clarify block comment.
2787 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
2789         * dwarf2out.c (gen_member_die): Sanity check that we access
2790         TYPE_MAIN_VARIANT for TYPE_METHODS.
2791         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
2792         checking TYPE_METHODS.
2793         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
2794         if non-null.
2795         (build_distinct_type_copy): Clear TYPE_METHODS.
2796         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
2797         (verify_type): Allow TYPE_METHODS to be error_mark_node.
2798         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
2800 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
2802         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
2803         (emit_pattern_before_setloc): Likewise.
2805 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
2807         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
2808         for define_peephole2s.
2809         (get_peephole2_pattern): New function.
2810         (main): Use it.  Call validate_pattern.
2812 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2814         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
2815         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
2816         (Last callee saved reg is different for AVR_TINY architecture)
2818 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
2820         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
2821         when looking for memory references.
2823 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
2825         PR target/65753
2826         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
2827         via function pointers.
2829 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
2831         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
2832         indirect call by forcing address into a pseudo with -fno-plt.
2833         * common.opt (flag_plt): New option.
2834         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
2835         ([-fno-plt]): Document.
2837 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
2839         PR bootstrap/66105
2840         * config/rs6000/option-defaults.h: Add space between string literal
2841         and macro name.
2843 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2845         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
2846         accross ARM targets.
2848 2015-05-11  Christian Bruel  <christian.bruel@st.com>
2850         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
2851         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
2853 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
2855         PR rtl-optimization/66076
2856         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
2857         Don't grow the heap array if it is already big enough from a
2858         previous iteration.
2860 2015-05-11  Christian Bruel  <christian.bruel@st.com>
2862         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
2863         (is_called_in_ARM_mode): Remove.
2864         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
2865         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
2866         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
2867          arm_declare_function_name.
2869 2015-05-11  Christian Bruel  <christian.bruel@st.com>
2871         * config/arm/arm.c (arm_option_override): Reoganized and split into :
2872         (arm_option_params_internal); New function.
2873         (arm_option_check_internal): New function.
2874         (arm_option_override_internal): New function.
2875         (thumb_code, thumb1_code): Remove.
2876         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
2877         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
2878         (thumb_code, thumb1_code): Remove.
2879         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
2881 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
2883         * config/alpha/alpha.c (alpha_emit_set_const_1)
2884         (alpha_emit_set_long_const, alpha_extract_integer)
2885         (alpha_legitimate_constant_p, alpha_split_const_mov)
2886         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
2887         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2888         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
2889         HOST_WIDE_INT_1U.
2890         * config/alpha/predicates.md (mode_mask_operand): Do not match
2891         const_double RTX.
2892         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2893         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
2894         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
2895         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2896         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
2898 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
2900         PR target/65780
2901         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
2902         default_binds_local_p_2.
2903         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
2904         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
2906 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2908         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
2910 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2912         Patch by Richard Biener
2913         * coverage.c (coverage_obj_init): Delay building of type variant
2914         until the type is finished.
2916 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2918         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
2919         mismatch between C and C++ type; compoare correctly ARG_TYPES
2920         for non-prototypes and output correctly parameter index for METHOD_TYPE.
2921         (odr_types_equivalent_p): Fix wording of warning about attributes;
2922         it is OK to match prototype and non-prototype.
2924 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2926         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
2927         TYPE_ARG_TYPES list.
2928         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
2929         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
2931 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
2933         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
2934         * tree.h (is_lang_specific): Constify.
2936 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
2938         PR tree-optimization/64454
2939         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
2940         Rewrite.
2942 2015-05-08  Jason Merrill  <jason@redhat.com>
2944         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
2945         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
2946         config/darwin.h, config/darwin9.h, config/elfos.h,
2947         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
2948         config/microblaze/microblaze.h, config/mips/mips.h,
2949         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
2950         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
2951         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2952         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
2953         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
2954         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
2955         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
2956         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
2957         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
2958         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
2959         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
2960         between string literal and macro name.
2962 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2964         * jump.c: Change argument types to rtx_insn *.
2965         * rtl.h: Adjust.
2967 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2969         * lra-constraints.c: Change argument type to rtx_insn *.
2971 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2973         * df-problems.c: Change argument type to rtx_insn *.
2975 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2977         * combine.c: Change argument type to rtx_insn *.
2979 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2981         * rtl.h: Adjust.
2982         * rtlanal.c: Change argument type to rtx_insn *.
2984 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2986         * sched-deps.c: Change argument types to rtx_insn *.
2987         * sched-int.h: Adjust.
2989 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2991         * dwarf2cfi.c: Change argument type to rtx_insn *.
2993 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2995         * ira.c (decrease_live_ranges_number): Changetype of local
2996         variable to rtx_insn *.
2997         * recog.c: Change argument types to rtx_insn *.
2998         * recog.h: Adjust.
3000 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3002         * reorg.c: Change argument types to rtx_insn *.
3004 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3006         * ira-color.c: Change argument types to rtx_insn *.
3007         * lra-eliminations.c: Likewise.
3008         * ira.h: Adjust.
3010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3012         * gcse.c: Change argument types to rtx_insn *.
3014 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3016         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
3018 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3020         * emit-rtl.c (emit_debug_insn_before): Change argument type to
3021         rtx_insn *.
3022         * rtl.h: Adjust.
3024 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3026         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
3027         * rtl.h: Adjust.
3029 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3031         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
3032         * rtl.h: Adjust.
3034 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3036         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
3037         * rtl.h: Adjust.
3039 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3041         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
3042         * rtl.h: Adjust.
3044 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3046         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
3047         to rtx_insn *.
3048         * rtl.h: Adjust.
3050 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3052         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
3053         to rtx_insn *.
3054         * rtl.h: Likewise.
3056 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3058         * except.c (can_nonlocal_goto): Change type of argument to
3059         rtx_insn *.
3060         * rtl.h: Adjust.
3062 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3064         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
3065         * rtl.h: Adjust.
3067 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3069         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
3070         * cfgrtl.c (can_delete_label_p): Adjust.
3071         * rtl.h: likewise.
3073 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3075         * reorg.c (stop_search_p): Change argument to rtx_insn *.
3077 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3079         * except.c (make_reg_eh_region_note): Change argument to
3080         rtx_insn *.
3081         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
3082         * except.h: Adjust.
3084 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3086         * mode-switching.c (commit_mode_sets): Change type of local
3087         variable from rtx to rtx_insn *.
3089 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
3091         * doc/install.texi (--enable-languages): Add missing jit and lto info.
3092         Add ^ to grep command.
3093         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
3094         arg to last gimple_simplify declaration.  Add missing gimple_build
3095         declaration for built-in function case with four tree args.
3097 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
3098             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3100         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
3101         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
3102         (GNU_USER_DYNAMIC_LINKERN32): Update.
3104 2015-05-08  Richard Biener  <rguenther@suse.de>
3106         PR tree-optimization/66036
3107         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3108         Handle strided group loads.
3109         (vect_verify_datarefs_alignment): Likewise.
3110         (vect_enhance_data_refs_alignment): Likewise.
3111         (vect_analyze_group_access): Likewise.
3112         (vect_analyze_data_ref_access): Likewise.
3113         (vect_analyze_data_ref_accesses): Likewise.
3114         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
3115         (vectorizable_load): Likewise.
3117 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
3119         * config/rs6000/rs6000.md: Require operand inequality in one
3120         of the peepholes.
3122 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
3123             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3125         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
3126         from (set ...).
3127         * config/rx/rx.md (movdi, movdf): Likewise.
3128         Likewise for define_peephole2s.
3130 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
3132         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
3133         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
3134         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
3135         vtst_u64): Rewrite using gcc vector extensions.
3137 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
3139         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
3140         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
3142 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
3144         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
3146 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3148         * config/glibc-stdint.h (OPTION_MUSL): Define.
3149         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
3150         Change the definition based on OPTION_MUSL for 64 bit targets.
3151         * config/linux.h (OPTION_MUSL): Redefine.
3152         * config/alpha/linux.h (OPTION_MUSL): Redefine.
3153         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
3154         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
3156 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
3157             Szabolcs Nagy  <szabolcs.nagy@arm.com>
3159         * config.gcc (LIBC_MUSL): New tm_defines macro.
3160         * config/linux.h (OPTION_MUSL): Define.
3161         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
3162         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
3163         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3164         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3165         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3166         * config/linux.opt (mmusl): New option.
3167         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
3168         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
3169         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
3170         * configure: Regenerate.
3172 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3173             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3175         PR target/48904
3176         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
3177         * config/i386/knetbsd-gnu64.h: New file.
3179 2015-05-08  Marek Polacek  <polacek@redhat.com>
3181         PR c/64918
3182         * doc/invoke.texi: Document -Woverride-init-side-effects.
3184 2015-05-07  Marek Polacek  <polacek@redhat.com>
3186         PR c/65179
3187         * doc/invoke.texi: Document -Wshift-negative-value.
3189 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
3191         * gcov-tool.c (do_merge): Refactore to remove int ret.
3192         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
3193         !type == FUNC to type != FUNC.
3194         * reload.h (struct target_reload): Changee to type of
3195         x_spill_indirect_levels from bool to unsigned char.
3197 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
3199         * rtl.h (always_void_p): New function.
3200         * gengenrtl.c (always_void_p): Likewise.
3201         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
3202         with code foo are always VOIDmode.
3203         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
3204         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
3205         compare-elim.c, config/aarch64/aarch64.c,
3206         config/aarch64/aarch64.md, config/alpha/alpha.c,
3207         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
3208         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
3209         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
3210         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3211         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
3212         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
3213         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
3214         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
3215         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
3216         config/ia64/vect.md, config/iq2000/iq2000.c,
3217         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
3218         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
3219         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
3220         config/mep/mep.c, config/microblaze/microblaze.c,
3221         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
3222         config/mn10300/mn10300.c, config/msp430/msp430.c,
3223         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
3224         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
3225         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
3226         config/rs6000/altivec.md, config/rs6000/rs6000.c,
3227         config/rs6000/rs6000.md, config/rs6000/vector.md,
3228         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
3229         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
3230         config/sh/sh.md, config/sh/sh_treg_combine.cc,
3231         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
3232         config/spu/spu.md, config/stormy16/stormy16.c,
3233         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
3234         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
3235         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
3236         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
3237         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
3238         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
3239         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
3240         var-tracking.c: Update calls accordingly.
3242 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
3244         PR middle-end/192
3245         PR middle-end/54303
3246         * varasm.c (function_mergeable_rodata_prefix): New function.
3247         (mergeable_string_section): Use it.
3248         (mergeable_constant_section): Use it.
3250 2015-05-07  Jeff Law  <law@redhat.com>
3252         PR target/39726
3253         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3254         simplifier to narrow arithmetic.
3255         * generic-match-head.c: (types_match, single_use): New functions.
3256         * gimple-match-head.c: (types_match, single_use): New functions.
3258 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3260         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
3261         rtx type.
3263 2015-05-07  Richard Biener  <rguenther@suse.de>
3265         PR tree-optimization/66002
3266         * passes.def: Schedule another pass_merge_phi after ifcombine, right
3267         before phiopt.
3269 2015-05-07  Marek Polacek  <polacek@redhat.com>
3270             Martin Uecker  <uecker@eecs.berkeley.edu>
3272         * doc/invoke.texi: Document -fsanitize=bounds-strict.
3273         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
3274         into SANITIZE_NONDEFAULT.
3275         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
3277 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
3279         PR target/66015
3280         * config/alpha/alpha.c (alpha_override_options_after_change): New.
3281         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
3282         (alpha_override_options): Move align_loops, align_jumps and
3283         align_functions handling into alpha_override_options_after_change.
3285 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
3286             Chris Jones  <chrisj@nvidia.com>
3287             Joshua Conner  <jconner@nvidia.com>
3289         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
3290         linking of crtfastmath.o.
3291         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
3293 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
3295         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
3296         (cstore<mode>4_unsigned_imm): New expander.
3297         (cstore<mode>4): Remove empty constraint strings.  Use the new
3298         expanders.
3300 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
3302         PR target/64208
3303         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
3304         alternatives.
3306 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3308         * config/aarch64/geniterators.sh: Use standard BRE in sed.
3310 2015-05-06  Alan Modra  <amodra@gmail.com>
3312         PR target/66033
3313         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
3314         (UNSPEC_NOP): Define.
3315         (reload_vsx_from_gpr<mode>): Add missing DONE.
3316         (reload_gpr_from_vsx<mode>): Likewise.
3317         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
3318         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
3320 2015-05-06  Christian Bruel  <christian.bruel@st.com>
3322         PR target/66015
3323         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
3324         align_jumps, align_functions into aarch64_override_options_after_change.
3326 2015-05-06  Richard Biener  <rguenther@suse.de>
3328         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
3329         vect_transform_slp_perm_load to check if we support a permutation
3330         for basic-block vectorization.
3332 2015-05-06  Nick Clifton  <nickc@redhat.com>
3334         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
3335         used, even if it is not being used as a frame pointer.
3337 2015-05-05  Jason Merrill  <jason@redhat.com>
3339         * dwarf2out.c (gen_member_die): Don't emit anything for an
3340         anonymous class constructor.
3342 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
3344         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
3345         that it reflects the block structure.
3346         (afdo_propagate_edge): Likewise.
3347         (afdo_calculate_branch_prob): Likewise.
3348         (afdo_annotate_cfg): Likewise.
3349         * cfgcleanup.c (equal_different_set_p): Likewise.
3350         (try_crossjump_to_edge): Likewise.
3351         * cgraph.c (cgraph_node::verify_node): Likewise.
3352         * cgraphunit.c (expand_all_functions): Likewise.
3353         * config/i386/i386.c (ix86_expand_copysign): Likewise.
3354         (exact_dependency_1): Likewise.
3355         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
3356         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
3357         * gensupport.c (process_define_subst): Likewise.
3358         * lto-wrapper.c (merge_and_complain): Likewise.
3359         * tree-if-conv.c (if_convertible_bb_p): Likewise.
3360         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
3361         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
3362         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
3363         * tree-vect-loop.c (vectorizable_reduction): Likewise.
3364         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
3365         * tree-vect-stmts.c (vectorizable_shift): Likewise.
3366         * tree-vrp.c (vrp_finalize): Likewise.
3367         * tree.c (variably_modified_type_p): Likewise.
3369 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
3371         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
3372         on darwin12 and later.
3373         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
3374         file to pass -rdynamic on darwin12 and later.
3375         * config/darwin.opt (rdynamic): Add.
3377 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
3379         * doc/extend.texi (C Extensions): Update menu for moved Variable
3380         Attributes and Type Attributes sections.
3382 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
3384         PR target/65990
3385         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
3386         if rep_8byte stringop strategy was specified for 32-bit target.
3388 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
3390         PR target/65915
3391         * config/i386/i386.md (vector convert to float spltiter): Check for
3392         xmm16+, when splitting scalar float conversion.
3393         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
3395 2015-05-05  Nick Clifton  <nickc@redhat.com>
3397         * config/msp430/msp430-opts.h (enum msp430_regions): New.
3398         * config/msp430/msp430.c (msp430_override_options): Complain if
3399         -mcode-region or -mdata-region is used on a non MSP430X.
3400         (msp430_section_attr): New function.  Checks lower, upper and
3401         either attributes.
3402         (msp430_attribute_table): Add lower, upper and either.
3403         (gen_prefix): New function.  Generates a prefix for a section
3404         name.
3405         (msp430_select_section): New function - handles the choice of
3406         section for an object.  Takes into account memory region
3407         attributes and options.
3408         (msp430_function_section): Use gen_prefix.
3409         (TARGET_SECTION_TYPE_FLAGS): Define.
3410         (msp430_section_type_flags): New function.
3411         (TARGET_ASM_UNIQUE_SECTION): Define.
3412         (msp430_unique_section): New function.
3413         (msp430_output_aligned_decl_common): New function.
3414         (msp430_do_not_relax_short_jumps): New function.
3415         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
3416         Define.
3417         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3418         * config/msp430/msp430-protos.h
3419         (msp430_do_not_relax_short_jumps): New prototype.
3420         (msp430_output_aligned_decl_common): New prototype.
3421         * config/msp430/msp430.md (length): New attribute.
3422         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
3423         then use a long code sequence for short jumps.
3424         * config/msp430/msp430.opt (mcode-region): New.
3425         (mdata-region): New.
3426         * doc/invoke.texi: Document new options.
3427         * doc/extend.texi: Document new attributes.
3429 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
3431         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
3432         (tune_params): Add field branch_costs.
3433         (aarch64_branch_cost): Declare.
3434         * gcc/config/aarch64.c (generic_branch_cost): New.
3435         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
3436         (cortexa53_tunings): Likewise.
3437         (cortexa57_tunings): Likewise.
3438         (thunderx_tunings): Likewise.
3439         (xgene1_tunings): Likewise.
3440         (aarch64_branch_cost): Define.
3441         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
3443 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
3445         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
3446         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
3447         * config/i386/i386.md: Ditto.
3448         * config/i386/winnt.c: Ditto.
3450 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
3452         * doc/extend.texi (__atomic Builtins): Move implementation details
3453         to the end of the description, rewrite opening paragraphs, state
3454         difference with __sync builtins, state C11/C++11 assumptions,
3455         weaken itemized descriptions, add explanation of memory model
3456         behaviour, expand description of compare-exchange, simplify text.
3458 2015-05-05  Renlin Li  <renlin.li@arm.com>
3460         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
3462 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
3464         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
3465         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
3466         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
3467         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
3468         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
3469         * configure: Regenerate.
3470         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
3471         * doc/install.texi (aarch64*-*-*): Document new
3472         --enable-fix-cortex-a53-843419 option.
3473         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
3474         and -mno-fix-cortex-a53-843419 options.
3476 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
3478         PR target/65871
3479         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
3481 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
3483         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
3484         fix overactive TYPE_MIN_VALUE check and add FIXME for type
3485         compatibility problems.
3487 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
3489         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
3490         constraints.
3491         (cbranchsi4_reg): New.
3492         * config/microblaze/microblaze.c
3493         (microblaze_expand_conditional_branch_reg): New.
3494         * config/microblaze/microblaze-protos.h
3495         (microblaze_expand_conditional_branch_reg): New prototype.
3497 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
3499         * config/microblaze/microblaze.md (peephole2): New.
3501 2015-05-04  Jeff Law  <law@redhat.com>
3503         Revert:
3504         2015-05-04  Jeff Law  <law@redhat.com>
3506         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3507         simplifier to narrow arithmetic.
3508         * generic-match-head.c: (types_match, single_use): New functions.
3509         * gimple-match-head.c: (types_match, single_use): New functions.
3511 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3513         PR target/65987
3514         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
3515         (split_branches): Likewise.
3517 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
3519         * common.opt (fdelete-null-pointer-checks): Init to -1.
3520         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
3521         override flag_delete_null_pointer_checks default.
3522         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
3523         behavior re address zero.  Better document target-specific behavior.
3524         (-fisolate-errneous-paths-dereference): Mention relationship to
3525         -fdelete-null-pointer-checks.
3527 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
3529         PR tree-optimization/65984
3530         * ubsan.c: Include tree-cfg.h.
3531         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
3532         stmt_could_throw_p test, rename can_throw variable to ends_bb.
3534 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
3536         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
3537         to CONST_DOUBLE_P predicate.
3538         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
3539         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
3540         allow only operands that satisfy standard_sse_constant_p predicate.
3541         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
3542         to CONST_DOUBLE_P predicate.
3544 2015-05-04  Jeff Law  <law@redhat.com>
3546         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3547         simplifier to narrow arithmetic.
3548         * generic-match-head.c: (types_match, single_use): New functions.
3549         * gimple-match-head.c: (types_match, single_use): New functions.
3551 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
3553         * config/arm/arm.c: Restore bootstrap.
3555 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
3557         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
3558         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
3559         as CONST_WIDE_INT, not CONST_DOUBLE.
3560         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
3561         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
3562         (ix86_find_base_term): Do not check for CONST_DOUBLE.
3563         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
3564         (ix86_build_signbit_mask): Rewrite using wide ints.
3565         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
3566         (ix86_rtx_costs): Handle CONST_WIDE_INT.
3567         (find_constant): Ditto.
3568         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
3569         using gen_int_mode.
3570         * config/i386/predicates.md (x86_64_immediate_operand)
3571         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
3572         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
3573         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
3574         (const0_operand): Also match const_wide_int.
3575         (constm1_operand): Ditto.
3576         (const1_operand): Ditto.
3578 2015-05-04  Richard Biener  <rguenther@suse.de>
3580         PR tree-optimization/65965
3581         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3582         store groups at gaps.
3584 2015-05-04  Richard Biener  <rguenther@suse.de>
3586         PR tree-optimization/65935
3587         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
3588         then make sure to apply that swapping to the IL.
3590 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
3592         * Makefile.in (PATCHLEVEL_c): New variable.
3593         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
3594         expand the same way as if DEVPHASE_c was non-empty.
3596 2015-05-04  Kai Tietz  <ktietz@redhat.com>
3598         PR target/65559
3599         * lto-wrapper.c (run_gcc): Open filename
3600         in binary-mode.
3602 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
3604         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
3605         sections up in file, to immediately after the Function Attributes
3606         section.
3608 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
3610         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
3612 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3614         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
3615         (insert_partition_copy_on_edge): Adjust.
3616         (insert_rtx_to_part_on_edge): Likewise.
3617         (insert_part_to_rtx_on_edge): Likewise.
3619 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3621         * function.c (set_return_jump_label): Change type of argument to
3622         rtx_insn *.
3623         * function.h (set_return_jump_label): Adjust.
3625 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3627         * reload.h (struct reg_equivs_t): Change type of init to
3628         rtx_insn *.
3629         * ira.c (fix_reg_equiv_init): Adjust.
3630         * reload1.c (eliminate_regs_1): Likewise.
3631         (init_eliminable_invariants): Likewise.
3633 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3635         * cselib.c (fp_setter_insn): Take a rtx_insn *.
3636         * cselib.h (fp_setter_insn): Adjust.
3638 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3640         * recog.c (struct validate_replace_src_data): Change type of
3641         insn field to rtx_insn *.
3642         (validate_replace_src_group): Change type of argument to rtx_insn *.
3643         * recog.h (validate_replace_src_group): Adjust.
3645 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3647         * haifa-sched.c: Change the type of some variables to rtx_insn *.
3648         * sched-deps.c: Likewise.
3649         * sched-int.h: Likewise.
3650         * sched-rgn.c: Likewise.
3651         * sel-sched.c: Likewise.
3653 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3655         to rtx_insn *.
3656         * config/i386/i386.c: Change the type of some arguments to
3657         rtx_insn *.
3658         * config/arm/arm.c: Likewise.
3660 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3662         * lra-constraints.c: Change type of some arguments to rtx_insn *.
3664 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3666         * regcprop.c (kill_autoinc_value): Change type of argument to
3667         rtx_insn *.
3669 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3671         * genrecog.c (print_subroutine): Adjust.
3672         * recog.c (get_bool_attr_mask_uncached): Likewise.
3673         * recog.h (struct recog_data_d): Change the type of insn to
3674         rtx_insn *.
3676 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3678         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
3680 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3682         * df-problems.c (df_set_note): Change type of argument to
3683         rtx_insn *.
3685 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3687         * builtins.c (expand_builtin_trap): Change type of local
3688         variable to rtx_insn *.
3689         (add_sched_insns_for_speculation): Likewise.
3690         (ix86_emit_save_regs): Likewise.
3691         (get_scratch_register_on_entry): Likewise.
3692         (ix86_emit_restore_reg_using_pop): Likewise.
3693         (ix86_emit_leave): Likewise.
3694         (ix86_emit_restore_regs_using_mov): Likewise.
3695         (ix86_expand_epilogue): Likewise.
3696         Likewise.
3697         (rl78_alloc_physical_registers_umul): Likewise.
3698         * cselib.c (discard_useless_locs): Likewise.
3699         (cselib_invalidate_regno): Likewise.
3700         (cselib_invalidate_mem): Likewise.
3701         * function.c (expand_function_start): Likewise.
3702         (emit_use_return_register_into_block): Likewise.
3703         * gcse.c: Likewise.
3704         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
3705         * ifcvt.c (noce_get_alt_condition): Likewise.
3706         * loop-doloop.c (doloop_condition_get): Likewise.
3707         * lra-constraints.c (inherit_in_ebb): Likewise.
3708         * modulo-sched.c (sms_schedule_by_order): Likewise.
3709         * recog.c (next_insn_tests_no_inequality): Likewise.
3710         * reorg.c (emit_delay_sequence): Likewise.
3711         (update_reg_dead_notes): Likewise.
3712         (fix_reg_dead_note): Likewise.
3713         (fill_slots_from_thread): Likewise.
3714         (delete_computation): Likewise.
3716 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
3718         * doc/extend.texi (Variable Attributes): Add menu and proper
3719         @nodes to subsections.  Move Microsoft Windows attributes to
3720         their own subsection.
3721         (Type Attributes): Reorganize introduction to remove duplicate
3722         list of attributes.  Add menu and proper @nodes to subsections.
3723         Alphabetize the main table of common attributes.
3725 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
3727         * match.pd: New simplification patterns.
3728         (x + (x & 1))  -> ((x + 1) & ~1)
3729         (x & ~(x & y)) -> ((x & ~y))
3730         (x | ~(x | y)) -> ((x | ~y))
3732 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3734         * target.def (attribute_table): Mention that struct attribute_spec
3735         is defined in tree-core.h rather than tree.h
3736         * doc/tm.texi: Regenerate.
3738 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
3740         * genrecog.c (test): Rename to rtx_test.  Update rest of file
3741         accordingly.
3743 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3745         PR translation/65959
3746         * params.h (DEFPARAM): Rename msgid to nocmsgid.
3748 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3750         * gcc/config/aarch64/aarch64-protos.h (tune_params):
3751         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
3752         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
3753         Return value depending on target.
3754         (generic_tunings): Initialize new target settings.
3755         (cortexa53_tunings): Likewise.
3756         (cortexa57_tunings): Likewise.
3757         (thunderx_tunings): Likewise.
3758         (xgene1_tunings): Likewise.
3760 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3762         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
3763         Make Cortex-A53 shift costs more accurate.
3765 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3767         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
3768         UNSIGNED_FLOAT.
3770 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3772         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
3773         Calculate cost of op0 and op1 in PLUS and MINUS cases.
3775 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3777         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3778         Add cost of op0 in the compare-with-fpzero case.
3780 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
3782         * builtins.c (fold_builtin_1): Remove spurious second
3783         semicolon.
3784         * cgraph.h (symtab_node::get_availability): Likewise.
3785         * opts.c (common_handle_option): Remove spurious second semicolon.
3786         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3787         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3789 2015-04-30  Caroline Tice  <cmtice@google.com>
3791         PR gcov-profile/65929
3792         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
3793         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
3794         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
3795         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
3796         * doc/tm.texi: Regenerate.
3797         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
3798         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
3799         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
3800         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
3802 2015-04-30  Marek Polacek  <polacek@redhat.com>
3804         * varasm.c (handle_cache_entry): Fix logic.
3806 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3808         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
3809         (*extrsi5_insn_uxtw_alt): Likewise.
3810         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
3811         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
3812         operations.
3814 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3816         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
3817         fabd in ABS case.
3819 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3821         * config/aarch64/aarch64.md
3822         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
3823         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
3824         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
3825         appropriately.  Handle alternative EON form.
3827 2015-04-30  Renlin Li  <renlin.li@arm.com>
3829         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
3830         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
3832 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
3834         PR ipa/65873
3835         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
3836         -fstrict-aliasing boundaries.
3838 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3840         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
3841         and [SU]MNEGL patterns.
3843 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3845         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
3846         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
3847         combined arithmetic-shift ops.  Properly handle all shift and extend
3848         operations that can occur in combination with PLUS/MINUS.
3849         Rename maybe_fma to compound_p.
3850         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
3851         arithmetic and shift operations.
3853 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3855         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
3856         rather than arith_shift cost when costing ADD/MINUS of an
3857         extended value.
3859 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
3861         PR lto/65948
3862         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
3863         to itself.
3865 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
3867         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
3868         are for the same position.
3870 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
3872         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
3873         vectorize_loops.
3874         (vectorize_loops): Use it.
3876 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
3878         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
3879         for aggregate types.
3880         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
3881         type to be non_ODR.
3882         * tree.c (need_assembler_name_p): Compute mangled name for
3883         non-fundamental types and integer types.
3885 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
3887         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
3888         manual swaps.
3889         * expr.c (expand_expr_real_2): Likewise.
3891 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
3893         * tree.c (build_common_builtin_nodes): Do not build
3894         __builtin_alloca_with_align as equivalent of library alloca.
3896 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
3898         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
3899         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
3900         bugus variants.
3901         * tree.c: Include print-tree.h and ipa-utils.h
3902         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
3903         (free_lang_data_in_cgraph): Call verify_type.
3904         (verify_type_variant): New function.
3905         (verify_type): New function.
3906         * tree.h (verify_type): Declare.
3908 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
3910         * config/mips/mips-cpus.def: (mips4): Change default processor
3911         from PROCESSOR_R8000 to PROCESSOR_R10000.
3913 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
3915         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
3916         la/jalr instead of jal.
3918 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
3920         PR target/65871
3921         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
3922         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
3923         (setcc+movzbl peephole2): Check also clobbered reg.
3924         (setcc+andl peephole2): Ditto.
3926 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3928         PR libgomp/65099
3929         * config/nvptx/mkoffload.c (target_ilp32): New variable.
3930         (main): Set it depending on "-foffload-abi=[...]".
3931         (compile_native, main): Use it to pass "-m32" or "-m64" to the
3932         compiler.
3934 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
3936         PR target/65770
3937         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
3938         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
3939         Flip lane index back at assembly time for bigendian.
3941 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3943         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
3944         * gimplify.c (gimplify_omp_workshare): Use it.
3946 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3948         * Makefile.in (build/genrecog.o): Depend on inchash.h.
3949         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
3950         build/inchash.o
3951         * genrecog.c: Rewrite most of the code except for the third page.
3953 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3955         * inchash.h, inchash.c: Include bconfig.h for build objects.
3956         * Makefile.in (build/inchash.o): New rule.
3958 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
3960         PR target/65924
3961         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
3962         number in type attribute expression.
3964 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3966         * loop-iv.c (canon_condition): Generalize to all types of integer
3967         constant.
3969 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
3971         * gimple-walk.c: Prune duplicate or unneeded includes.
3972         (walk_gimple_asm): Only call parse_input_constraint or
3973         parse_output_constraint if their findings are used.
3974         Honour parse_input_constraint and parse_output_constraint
3975         result.
3977 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
3979         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
3981 2015-04-29  Tom de Vries  <tom@codesourcery.com>
3983         PR tree-optimization/65893
3984         * passes.def (pass_all_optimizations): Move pass_stdarg to after
3985         pass_dce.
3987 2015-04-29  Richard Biener  <rguenther@suse.de>
3989         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3990         compute GROUP_SIZE for basic-block SLP.
3991         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
3992         take into account gaps.
3993         (vect_get_mask_element): Properly reject references to previous
3994         vectors.
3995         (vect_transform_slp_perm_load): Likewise.
3997 2015-04-29  Christian Bruel  <christian.bruel@st.com>
3999         PR target/64835
4000         * config/i386/i386.c (ix86_default_align): New function.
4001         (ix86_override_options_after_change): Call ix86_default_align.
4002         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
4003         (ix86_override_options_after_change): New function.
4005 2015-04-28  Jeff Law  <law@redhat.com>
4007         * tree-ssa-dom.c (record_equality); Fix comment typos.
4009 2015-04-28  Tom de Vries  <tom@codesourcery.com>
4011         PR tree-optimization/65887
4012         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
4014 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
4016         * doc/extend.texi (Declaring Attributes of Functions): Split into
4017         subsections by target.  Alphabetize the table of common attributes.
4018         Rewrite some of the introductory text to reflect the new structure.
4019         Update some cross-references to point to the new subsections.
4020         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
4021         duplicate copies in the discussion of function, label, and type
4022         attributes.
4024 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
4026         PR bootstrap/65910
4027         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
4029 2015-04-28  Jason Merrill  <jason@redhat.com>
4031         PR c++/65734
4032         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
4033         (finalize_type_size): Respect TYPE_USER_ALIGN.
4034         (layout_type) [ARRAY_TYPE]: Likewise.
4036 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
4038         * config/arm/arm.md (*arm_movt): Fix type attribute.
4039         (*cmpsi_shiftsi): Likewise.
4040         (*cmpsi_shiftsi_swp): Likewise.
4041         (*movsicc_insn): Likewise.
4042         (*cond_move): Likewise.
4043         (*if_plus_move): Likewise.
4044         (*if_move_plus): Likewise.
4045         (*if_arith_move): Likewise.
4046         (*if_move_arith): Likewise.
4047         (*if_shift_move): Likewise.
4048         (*if_move_shift): Likewise.
4049         (*arm_movtas_ze): Likewise.
4050         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
4051         redundancy and type attribute.
4052         (*thumb2_movsi_insn): Fix type attribute.
4053         (*thumb2_addsi_short): Likewise.
4054         (thumb2_addsi3_compare0): Likewise.
4055         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
4056         attributes accordingly.
4058 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
4060         PR other/65911
4061         * function.c (pad_to_arg_alignment): Add parentheses.
4063 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
4065         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
4066         libgcc/config/frv/elf-lib.h.
4068 2015-04-28  Tom de Vries  <tom@codesourcery.com>
4070         * tree-call-cdce.c: Fix example in header comment.
4072 2015-04-28  Richard Biener  <rguenther@suse.de>
4074         PR tree-optimization/62283
4075         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
4076         fails fatally and we are vectorizing a basic-block simply
4077         cause the child to be constructed piecewise.
4078         (vect_analyze_slp_cost_1): Adjust.
4079         (vect_detect_hybrid_slp_stmts): Likewise.
4080         (vect_bb_slp_scalar_cost): Likewise.
4081         (vect_get_constant_vectors): For piecewise constructed
4082         constants place them after the last def.
4083         (vect_get_slp_defs): Adjust.
4084         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
4085         externals for basic-block vectorization.
4087 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4089         PR target/63503
4090         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
4091         aarch64-*-*.
4092         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
4093         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
4094         (AARCH64_TUNE_FMA_STEERING): Likewise.
4095         * config/aarch64/aarch64-cores.def: Set
4096         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
4097         FMUL/FMADD instructions.
4098         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
4099         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
4100         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
4101         * config/aarch64/cortex-a57-fma-steering.h: New file.
4102         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4104 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
4106         * gensupport.c (std_preds): Add missing codes to address_operand entry.
4108 2015-04-28  Richard Biener  <rguenther@suse.de>
4110         PR tree-optimization/65851
4111         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
4112         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
4113         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
4114         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
4115         (ccp_visit_phi_node): Adjust.
4116         (evaluate_stmt): For simplifications to SSA names return its
4117         lattice value if that isn't VARYING.  Return immediately when
4118         simplified to a constant.
4119         (visit_assignment): Adjust.
4120         (ccp_visit_stmt): Likewise.
4122 2015-04-28  Tom de Vries  <tom@codesourcery.com>
4124         PR tree-optimization/65818
4125         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
4126         evaluated.
4128 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4130         * calls.c (save_fixed_argument_area): Don't check
4131         ARGS_GROW_DOWNWARD with the preprocessor.
4132         (restore_fixed_argument_area): Likewise.
4133         (mem_overlaps_already_clobbered_arg_p): Likewise.
4134         (check_sibcall_argument_overlap): Likewise.
4135         (expand_call): Likewise.
4136         (emit_library_call_value_1): Likewise.
4137         (store_one_arg): Likewise.
4138         * function.c (assign_parms): Likewise.
4139         (locate_and_pad_parm): Likewise.
4140         (pad_to_arg_alignment): Likewise.
4141         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
4143 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4145         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
4146         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
4147         * calls.c (save_fixed_argument_area): Don't chekc if
4148         ARGS_GROW_DOWNWARD is defined.
4149         (restore_fixed_argument_area): Likewise.
4150         (mem_overlaps_already_clobbered_arg_p): Likewise.
4151         (check_sibcall_argument_overlap): Likewise.
4152         (expand_call): Likewise.
4153         (emit_library_call_value_1): Likewise.
4154         (store_one_arg): Likewise.
4155         * function.c (assign_parms): Likewise.
4156         (locate_and_pad_parm): Likewise.
4157         (pad_to_arg_alignment): Likewise.
4158         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
4160 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4162         * defaults.h (gen_epilogue): New function.
4163         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
4164         defined.
4165         * cfgrtl.c (cfg_layout_finalize): Likewise.
4166         * df-scan.c: Likewise.
4167         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4168         (reposition_prologue_and_epilogue_notes): Likewise.
4169         * reorg.c (find_end_label): Likewise.
4170         * toplev.c: Likewise.
4172 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4174         * bb-reorder.c (HAVE_return): Don't check if its undefined.
4175         * defaults.h (gen_simple_return): New function.
4176         (gen_simple_return): Likewise.
4177         (HAVE_return): Add default definition to false.
4178         (HAVE_simple_return): Likewise.
4179         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
4180         HAVE_return and HAVE_simple_return are defined.
4181         * function.c (gen_return_pattern): Likewise.
4182         (convert_jumps_to_returns): Likewise.
4183         (thread_prologue_and_epilogue_insns): Likewise.
4184         * reorg.c (find_end_label): Likewise.
4185         (dbr_schedule): Likewise.
4186         * shrink-wrap.c: Likewise.
4187         * shrink-wrap.h: Likewise.
4189 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4191         * defaults.h (EPILOGUE_USES): Add default definition of false.
4192         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
4193         * resource.c (init_resource_info): Likewise.
4195 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4197         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
4198         to false.
4199         * dwarf2out.c (field_byte_offset): REmove check if
4200         PCC_BITFIELD_TYPE_MATTERS is defined.
4201         * stor-layout.c (layout_decl): Likewise.
4202         (update_alignment_for_field): Likewise.
4203         (place_field): Likewise.
4205 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4207         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
4208         true.
4209         * regrename.c (check_new_reg_p): Remove check if
4210         HARD_REGNO_RENAME_OK is defined.
4211         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
4213 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4215         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
4216         * cse.c (fold_rtx): Likewise.
4217         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
4218         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
4219         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
4220         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
4221         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
4222         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
4223         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
4224         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
4225         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
4226         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
4227         * Likewise.
4228         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
4229         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
4230         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
4231         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
4232         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
4233         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
4234         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
4235         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
4236         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
4237         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
4238         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
4239         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
4240         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
4241         * doc/tm.texi: Regenerate.
4242         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
4243         either true or false.
4245 2015-04-27  Jeff Law  <law@redhat.com>
4247         PR tree-optimization/65217
4248         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
4249         of them has a single use, make sure it is the LHS of the implied
4250         copy.
4252 2015-04-28  Alan Modra  <amodra@gmail.com>
4254         PR target/65810
4255         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
4256         (offsettable_ok_by_alignment): Use minimum of decl and toc
4257         pointer alignment.  Replace dead code with assertion.
4258         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
4259         case if size exceeds toc pointer alignment.
4260         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
4261         (rs6000_emit_move): Likewise.
4262         * configure.ac: Add linker toc pointer alignment check.
4263         * configure: Regenerate.
4264         * config.in: Regenerate.
4266 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
4268         * config.gcc: Add h8300-*-linux.
4269         * config/h8300/linux.h: New.
4270         * config/h8300/t-linux: New.
4271         * config/h8300/h8300.c (h8300_option_override): Normal mode
4272         is not supported for h8300-*-linux.
4273         (h8300_file_start): Target priority change.
4274         (get_shift_alg): Likewise.
4275         (h8300_shift_need_scratch_p): Likewise.
4276         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4277         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
4279 2015-04-27  Caroline Tice  <cmtice@google.com>
4281         * final.c (final_scan_insn):  Output cold_function_name as function
4282         type.
4283         * varasm.c (cold_function_name):  Make global.
4284         (assemble_start_function):  Re-set cold_function_name.
4285         (assemble_end_function): Output cold partition size.
4286         * varasm.h (cold_function_name):  Declare global.
4288 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
4290         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
4291         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
4292         constraint.
4293         (*movxi_internal_avx512f): Ditto.
4294         (define_split): Check for xmm16+, when splitting scalar float_extend.
4295         (*extendsfdf2_mixed): Use "v" constraint.
4296         (define_split): Check for xmm16+, when splitting scalar float_truncate.
4297         (*truncdfsf_fast_sse): Use "v" constraint.
4298         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
4299         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
4300         (define_peephole2): Check for xmm16+, when converting scalar
4301         float_truncate.
4302         (define_peephole2): Check for xmm16+, when converting scalar
4303         float_extend.
4304         (*fop_<mode>_comm_mixed): Use "v" constraint.
4305         (*fop_<mode>_comm_sse): Ditto.
4306         (*fop_<mode>_1_mixed): Ditto.
4307         (*sqrt<mode>2_sse): Ditto.
4308         (*ieee_s<ieee_maxmin><mode>3): Ditto.
4310 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4312         * combine.c (simplify_if_then_else): Use std::swap instead
4313         of manually swapping.
4314         (known_cond): Likewise.
4315         (simplify_comparison): Likewise.
4317 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
4319         PR target/64579
4320         * config/rs6000/htm.md: Remove all define_expands.
4321         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
4322         UNSPECV_HTM_TABORTWCI): Remove.
4323         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
4324         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
4325         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
4326         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
4327         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
4328         tabortwci_internal): Remove define_insns.
4329         (tabort<wd>c, tabort<wd>ci): New define_insns.
4330         (tabort): Use gpc_reg_operand.
4331         (tcheck): Remove operand.
4332         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
4333         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
4334         expected value.
4335         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
4336         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
4337         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
4338         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
4339         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
4340         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
4341         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
4342         (tcheck): Remove builtin argument.
4343         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
4344         not TARGET_64BIT.
4345         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
4346         tabortdc and tabortdci builtins when not in 64-bit mode.
4347         Modify code to handle the loss of the HTM define_expands.
4348         Emit code to copy the CR register to TARGET.
4349         (htm_init_builtins): Modify code to handle the loss of the HTM
4350         define_expands.
4351         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
4352         (RS6000_BTC_64BIT): Likewise.
4353         (RS6000_BTC_CR): New macro.
4354         * doc/extend.texi: Update documentation for htm builtins.
4356 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4358         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
4359         of manually swapping.
4360         (simplify_associative_operation): Likewise.
4361         (simplify_binary_operation): Likewise.
4362         (simplify_plus_minus): Likewise.
4363         (simplify_relational_operation): Likewise.
4364         (simplify_ternary_operation): Likewise.
4366 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
4368         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
4369         (xs_hi_nonmemory_operand): Remove error.
4370         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
4371         general_operand rather than xs_hi_general_operand.
4373 2015-04-27  Richard Biener  <rguenther@suse.de>
4375         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
4376         (record_equivalences_from_stmt): Valueize rhs.
4377         (record_equality): Canonicalize x and y order via
4378         tree_swap_operands_p.  Do not swap operands for same loop depth.
4380 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
4382         PR target/65296
4383         PR target/65895
4384         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
4385         Add hint how to use own spec file.
4387 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
4389         PR tree-optimization/65875
4390         * tree-vrp.c (update_value_range): If in is_new case setting
4391         old_vr to VR_VARYING, also set new_vr to it.  Remove
4392         old_vr->type == VR_VARYING test.
4393         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
4394         SSA_PROP_INTERESTING if update_value_range returned true,
4395         but new range is VR_VARYING.
4397 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4399         * combine.c (sign_extend_short_imm): New.
4400         (set_nonzero_bits_and_sign_copies): Use above new function for sign
4401         extension of src short immediate.
4402         (reg_nonzero_bits_for_combine): Likewise for tem.
4404 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4406         * stor-layout.c (self_referential_component_ref_p): New predicate.
4407         (copy_self_referential_tree_r): Use it.
4408         (self_referential_size): Punt for simple operations directly involving
4409         self-referential component references.
4410         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
4412 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4414         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
4416 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
4418         * vec.h (vec): Make splice arguments const.  Update definitions
4419         accordingly.
4421 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
4423         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
4424         alternatives.
4426 2015-04-26  Tom de Vries  <tom@codesourcery.com>
4428         PR tree-optimization/65826
4429         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
4431 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
4433         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
4434         (*madd3<mode>): Ditto.
4435         (*msub4<mode>): Ditto.
4436         (*msub3<mode>): Ditto.
4437         (*nmadd4<mode>): Ditto.
4438         (*nmadd3<mode>): Ditto.
4439         (*nmadd4<mode>_fastmath): Ditto.
4440         (*nmadd3<mode>_fastmath): Ditto.
4441         (*nmsub4<mode>): Ditto.
4442         (*nmsub3<mode>): Ditto.
4443         (*nmsub4<mode>_fastmath): Ditto.
4444         (*nmsub3<mode>_fastmath): Ditto.
4446 2015-04-24  Jason Merrill  <jason@redhat.com>
4448         PR c++/50800
4449         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
4450         down when building TYPE_CANONICAL.
4451         (build_pointer_type_for_mode): Likewise.
4453 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
4455         * genrecog.c (validate_pattern): Check matching constraint refers
4456         to a lower numbered operand.
4458 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4460         PR target/65849
4461         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
4462         save to independent variables use the Save attribute.  This will
4463         allow these options to be modified with the #pragma/attribute
4464         target support.
4465         (-mallow-movmisalign): Likewise.
4466         (-mallow-df-permute): Likewise.
4467         (-msched-groups): Likewise.
4468         (-malways-hint): Likewise.
4469         (-malign-branch-targets): Likewise.
4470         (-mvectorize-builtins): Likewise.
4471         (-msave-toc-indirect): Likewise.
4473         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
4474         can be set via the #pragma/attribute target support.
4475         (rs6000_opt_vars): Likewise.
4476         (rs6000_inner_target_options): If VSX was set, also set
4477         -mno-avoid-indexed-addresses.
4479 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4481         * config/arm/iterators.md (shiftable_ops): Rename to...
4482         (SHIFTABLE_OPS): ... This.  Update use in comments.
4483         (ior_xor): Rename to...
4484         (IOR_XOR): ... This.
4485         (vqh_ops): Rename to...
4486         (VQH_OPS): ... This.
4487         (vqhs_ops): Rename to...
4488         (VQHS_OPS): ... This.
4489         (rshifts): Rename to...
4490         (RSHIFTS): ... This.
4491         (returns): Rename to...
4492         (RETURNS): ... This.
4493         * config/arm/arm.md: Update uses of the above.
4494         * config/arm/neon.md: Likewise.
4496 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4498         * config.host (case ${host}): Add aarch64*-*-linux case.
4499         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
4500         fields to all the cores.
4501         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
4502         Add MCPU_MTUNE_NATIVE_SPECS.
4503         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
4504         field to all extensions.
4505         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
4506         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
4507         Adjust definition of AARCH64_OPT_EXTENSION.
4508         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
4509         (MCPU_MTUNE_NATIVE_SPECS): Define.
4510         * config/aarch64/driver-aarch64.c: New file.
4511         * config/aarch64/x-arch64: New file.
4512         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
4513         -mtune and -march.
4515 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
4516             Wei Mi  <wmi@google.com>
4518         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
4519         * config/i386/i386.c (extract_base_offset_in_addr): New function.
4520         (ix86_operands_ok_for_move_multiple): Ditto.
4521         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
4522         (movlpd/movhpd to movupd peephole2): Ditto.
4524 2015-04-24  Marek Polacek  <polacek@redhat.com>
4526         PR c/61534
4527         * input.h (from_macro_expansion_at): Define.
4529         PR c/63357
4530         * doc/invoke.texi: Update description of -Wlogical-op.
4532 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4534         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
4535         ternary operator in fprintf and harmonize spacing.
4537 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
4539         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
4540         Mark operand1 commutative.
4542 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
4544         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
4545         input operands in memory.
4546         (*vec_concatv2si_sse4_1): Ditto.
4547         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
4548         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
4549         register_operand.
4550         (vec_extract_hi_v32hi): Ditto.
4551         (vec_extract_hi_v64hi): Ditto.
4552         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4554 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4555             Steven Bosscher <steven@gcc.gnu.org>
4557         PR rtl-optimization/34503
4558         * cprop.c (cprop_reg_p): New.
4559         (hash_scan_set): Use above function to check if register can be
4560         propagated.
4561         (find_avail_set): Return up to two sets, one whose source is a
4562         register and one whose source is a constant.  Sets are returned in an
4563         array passed as parameter rather than as a return value.
4564         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
4565         sets returned by find_avail_set, starting with the one whose source is
4566         a constant. Use cprop_reg_p to check if register can be propagated.
4567         (do_local_cprop): Use cprop_reg_p to check if register can be
4568         propagated.
4569         (implicit_set_cond_p): Likewise.
4571 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
4573         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
4574         (sem_function::equals): IGNORED_NODES parameter is now unused;
4575         update call of equals_private.
4576         (sem_function::equals_private): Do not call equals_wpa; skip
4577         gimple body matching if there is no body.
4578         (sem_function::init): Add logic to hash tthunk info.
4579         (sem_function::parse): Also parse thunks.
4580         * ipa-icf.h (equals_private): Update declaration.
4582 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4584         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
4585         asterisk from name so this can be generated directly.
4586         (*altivec_stvx_<mode>_internal): Likewise.
4587         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
4588         that this is never called during or after reload/lra.
4589         (rs6000_frame_related): Remove split_reg
4590         argument and logic that references it.
4591         (emit_frame_save): Remove last parameter from call to
4592         rs6000_frame_related.
4593         (rs6000_emit_prologue): Remove last parameter from eight calls to
4594         rs6000_frame_related.  Force generation of stvx instruction for
4595         Altivec register saves.  Remove split_reg handling, which is no
4596         longer needed.
4597         (rs6000_emit_epilogue):  Force generation of lvx instruction for
4598         Altivec register restores.
4600 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4602         * config/rs6000/rs6000.opt (mcrypto): Change option description to
4603         match category changes in ISA 2.07B.
4605 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4607         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
4608         iterators.
4609         (cmp_op, cmp_type): New code attributes.
4610         (NEON_VCMP, NEON_VACMP): New int iterators.
4611         (cmp_op_unsp): New int attribute.
4612         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
4613         (neon_vceq<mode>): Delete.
4614         (neon_vc<cmp_op><mode>_insn): New pattern.
4615         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
4616         (neon_vcgeu<mode>): Delete.
4617         (neon_vcle<mode>): Likewise.
4618         (neon_vclt<mode>: Likewise.
4619         (neon_vcage<mode>): Likewise.
4620         (neon_vcagt<mode>): Likewise.
4621         (neon_vca<cmp_op><mode>): New define_expand.
4622         (neon_vca<cmp_op><mode>_insn): New pattern.
4623         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
4625 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
4627         * tree.h (attribute_value_equal): Declare.
4628         * tree.c (attribute_value_equal): Export.
4630 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
4632         * ipa-icf.c (sem_item::compare_attributes): New function.
4633         (sem_item::compare_referenced_symbol_properties): Compare variable
4634         attributes.
4635         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
4636         (sem_function::param_used_p): New function.
4637         (sem_function::equals_wpa): Fix attribute comparsion; match
4638         parameter type codes; do not compare paremter flags when
4639         they are not used; compare edge flags; compare indirect calls.
4640         (sem_item::update_hash_by_addr_refs): Hash reference type.
4641         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
4642         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
4643         reference use type.
4644         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
4645         * ipa-icf.h (compare_attributes, param_used_p): Declare.
4647 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
4649         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
4650         cleanup.
4651         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
4652         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
4653         (sem_item::compare_referenced_symbol_properties): New.
4654         (sem_item::hash_referenced_symbol_properties): New.
4655         (sem_item::compare_cgraph_references): Rename to ...
4656         (sem_item::compare_symbol_references): ... this one; use
4657         compare_referenced_symbol_properties.
4658         (sem_function::equals_wpa): Do not compare
4659         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
4660         DECL_IS_OPERATOR_NEW; compare pointer sizes.
4661         (sem_item::update_hash_by_addr_refs): Call
4662         hash_referenced_symbol_properties.
4663         (sem_item::update_hash_by_local_refs): Cleanup.
4664         (sem_function::merge): Do not mix up symbol properties.
4665         (sem_variable::equals_wpa): Use compare_symbol_references.
4666         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
4667         (sem_item::hash_referenced_symbol_properties): New.
4668         (sem_item::compare_symbol_references): New.
4669         (sem_item::compare_cgraph_references): Remove.
4671 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
4673         PR target/26702
4674         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
4675         Emit size of local.
4677 2015-04-23  Nick Clifton  <nickc@redhat.com>
4679         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
4680         ATTRIBUTE_UNUSED to x parameter.
4681         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
4683 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4685         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
4686         TARGET_CRYPTO to TARGET_P8_VECTOR>
4687         (crypto_vpermxor_<mode>): Likewise.
4688         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
4689         (BU_CRYPTO_3A): Likewise.
4690         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
4691         (BU_CRYPTO_OVERLOAD_3A): New #define.
4692         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
4693         (VPMSUMH): Likewise.
4694         (VPMSUMW): Likewise.
4695         (VPMSUMD): Likewise.
4696         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
4697         (VPERMXOR_V4SI): Likewise.
4698         (VPERMXOR_V8HI): Likewise.
4699         (VPERMXOR_V16QI): Likewise.
4700         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
4701         BU_CRYPTO_OVERLOAD_2A.
4702         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
4703         BU_CRYPTO_OVERLOAD_3A.
4704         * config/rs6000/rs6000.opt (mcrypto): Change description of
4705         option.
4707 2015-04-23  Richard Biener  <rguenther@suse.de>
4709         * passes.def: Remove copy propagation passes run directly after CCP.
4710         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
4711         SSA names.
4712         (ccp_visit_phi_node): Rework to handle first executable edge
4713         specially.
4715 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
4717         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4718         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4719         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4720         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
4721         (thumb_legimitimize_reload_address): Remove.
4722         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
4723         Remove.
4724         (thumb_legimitimize_reload_address): Remove.
4726 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4728         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
4730 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4732         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
4733         MAX_LDM_STM_OPS.
4734         (store_multiple): Likewise.
4736 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4738         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
4739         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
4740         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
4741         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
4742         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
4743         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
4744         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
4745         Specify issue_rate value.
4746         (arm_issue_rate): Look up issue rate from tuning structs. Remove
4747         large switch statement.
4748         (arm_marvell_pj4_tune): New struct.
4749         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
4750         struct.
4752 2015-04-23  Richard Biener  <rguenther@suse.de>
4754         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
4755         (vect_find_last_store_in_slp_instance): Rename to ...
4756         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
4757         (vect_analyze_slp_cost_1): Use vector_load for constant defs
4758         and vec_construct for external defs when estimating prologue cost.
4759         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
4760         Compute costs here only when vectorizing loops.
4761         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
4762         have been determined.
4763         (vect_schedule_slp_instance): Simplify vectorized code placement
4764         and prepare for in-BB external defs.
4765         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
4766         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
4767         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
4768         guard.
4769         (vect_model_load_cost): Likewise.
4770         (vectorizable_store): Instead add it here.
4771         (vectorizable_load): Likewise.
4772         (vect_is_simple_use): Dump def type textually.
4774 2015-04-23  Richard Biener  <rguenther@suse.de>
4776         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
4777         * cfgloop.c (verify_loop_structure): Verify the root loop node.
4778         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
4779         instead of get_eh_region_from_lp_number.
4780         * loop-init.c (fix_loop_structure): If we removed a loop, reset
4781         the SCEV cache.
4783 2015-04-23  Anton Blanchard  <anton@samba.org>
4785         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
4786         need for -mprofile-kernel to save LR to stack.
4788 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4790         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
4791         adjustments.
4792         (insn_is_swappable_p): Return 1 for a convert from double to
4793         single precision when all of its uses are splats of BE element
4794         zero.
4796 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4798         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
4800 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4802         PR target/65456
4803         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
4804         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
4805         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
4806         option.
4807         (rs6000_builtin_mask_for_load): Return 0 for targets with
4808         efficient unaligned VSX accesses so that the vectorizer will use
4809         direct unaligned loads.
4810         (rs6000_builtin_support_vector_misalignment): Always return true
4811         for targets with efficient unaligned VSX accesses.
4812         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
4813         stores on targets with efficient unaligned VSX accesses is almost
4814         always the same as the cost of an aligned load or store, so model
4815         it that way.
4816         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
4817         unaligned vectors if we have efficient unaligned VSX accesses.
4818         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
4819         undocumented option.
4821 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4823         Revert:
4824         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
4826         * config.gcc (LIBC_MUSL): New tm_defines macro.
4827         * config/linux.h (OPTION_MUSL): Define.
4828         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4829         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4830         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4832         * config/linux.opt (mmusl): New option.
4833         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4834         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4836         * configure: Regenerate.
4838 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
4840         * config.gcc (LIBC_MUSL): New tm_defines macro.
4841         * config/linux.h (OPTION_MUSL): Define.
4842         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4843         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4844         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4846         * config/linux.opt (mmusl): New option.
4847         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4848         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4850         * configure: Regenerate.
4852 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
4854         * doc/invoke.texi (-fsanitize-sections): Update description.
4855         * asan.c (set_sanitized_sections): Parse incoming arg.
4856         (section_sanitized_p): Support wildcards.
4858 2015-04-22  Tom de Vries  <tom@codesourcery.com>
4860         PR tree-optimization/65823
4861         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
4862         equality between ap_copy and ap.
4864 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4866         PR target/47098
4867         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
4869 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4871         PR target/47122
4872         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
4874 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4876         PR target/55144
4877         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
4878         remove already contained t-files.
4880 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4882         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
4883         Remove unneeded forward declarations.
4884         (suitable_for_tail_call_opt_p): Commentary typo fix.
4886 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4888         * varasm.c (emit_bss): Remove redundant guard.
4890 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4892         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
4894 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4896         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
4898 2015-04-22  Hale Wang  <hale.wang@arm.com>
4899             Terry Guo  <terry.guo@arm.com>
4901         PR rtl-optimization/64818
4902         * combine.c (can_combine_p): Don't combine user-specified
4903         register if it is in an asm input.
4905 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
4907         PR ipa/65076
4908         * passes.def (early_optimizations): Add pass_dse.
4910 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4912         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
4913         * reorg.c (redundant_insn): Remove ifdef
4914         INSN_REFERENCES_ARE_DELAYED.
4915         * resource.c (mark_referenced_resources): Likewise.
4917 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4919         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
4920         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
4921         * resource.c (mark_set_resources): Likewise.
4923 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4925         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
4926         * cfgcleanup.c (flow_find_cross_jump): Likewise.
4927         (flow_find_head_matching_sequence): Likewise.
4928         (try_head_merge_bb): Likewise.
4929         * combine.c (can_combine_p): Likewise.
4930         (try_combine): Likewise.
4931         (distribute_notes): Likewise.
4932         * df-problems.c (can_move_insns_across): Likewise.
4933         * final.c (final): Likewise.
4934         * gcse.c (insert_insn_end_basic_block): Likewise.
4935         * ira.c (find_moveable_pseudos): Likewise.
4936         * reorg.c (try_merge_delay_insns): Likewise.
4937         (fill_simple_delay_slots): Likewise.
4938         (fill_slots_from_thread): Likewise.
4939         * sched-deps.c (sched_analyze_2): Likewise.
4941 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4943         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
4944         PIC_OFFSET_TABLE_REGNUM.
4946 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4948         * alias.c (init_alias_target): Remove ifdef
4949         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
4950         * df-scan.c (df_insn_refs_collect): Likewise.
4951         (df_get_regular_block_artificial_uses): Likewise.
4952         (df_get_eh_block_artificial_uses): Likewise.
4953         (df_get_entry_block_def_set): Likewise.
4954         (df_get_exit_block_use_set): Likewise.
4955         * emit-rtl.c (gen_rtx_REG): Likewise.
4956         * ira.c (ira_setup_eliminable_regset): Likewise.
4957         * reginfo.c (init_reg_sets_1): Likewise.
4958         * regrename.c (rename_chains): Likewise.
4959         * reload1.c (reload): Likewise.
4960         (eliminate_regs_in_insn): Likewise.
4961         * resource.c (mark_referenced_resources): Likewise.
4962         (init_resource_info): Likewise.
4964 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4966         * defaults.h (MASK_RETURN_ADDR): New definition.
4967         * except.c (expand_builtin_extract_return_addr): Remove ifdef
4968         MASK_RETURN_ADDR.
4970 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4972         * defaults.h (RETURN_ADDR_OFFSET): New definition.
4973         * except.c (expand_builtin_extract_return_addr): Remove ifdef
4974         RETURN_ADDR_OFFSET.
4975         (expand_builtin_frob_return_addr): Likewise.
4977 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4979         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
4980         (try_redirect_by_replacing_jump): Likewise.
4981         (rtl_tidy_fallthru_edge): Likewise.
4982         * combine.c (insn_a_feeds_b): Likewise.
4983         (find_split_point): Likewise.
4984         (simplify_set): Likewise.
4985         * cprop.c (cprop_jump): Likewise.
4986         * cse.c (cse_extended_basic_block): Likewise.
4987         * df-problems.c (can_move_insns_across): Likewise.
4988         * function.c (emit_use_return_register_into_block): Likewise.
4989         * haifa-sched.c (sched_init): Likewise.
4990         * ira.c (find_moveable_pseudos): Likewise.
4991         * loop-invariant.c (find_invariant_insn): Likewise.
4992         * lra-constraints.c (curr_insn_transform): Likewise.
4993         * postreload.c (reload_combine_recognize_const_pattern):
4994         * Likewise.
4995         * reload.c (find_reloads): Likewise.
4996         * reorg.c (delete_scheduled_jump): Likewise.
4997         (steal_delay_list_from_target): Likewise.
4998         (steal_delay_list_from_fallthrough): Likewise.
4999         (redundant_insn): Likewise.
5000         (fill_simple_delay_slots): Likewise.
5001         (fill_slots_from_thread): Likewise.
5002         (delete_computation): Likewise.
5003         * sched-rgn.c (add_branch_dependences): Likewise.
5005 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5007         * genconfig.c (main): Always define HAVE_cc0.
5008         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
5009         HAVE_cc0.
5010         * cfgcleanup.c (flow_find_cross_jump): Likewise.
5011         (flow_find_head_matching_sequence): Likewise.
5012         (try_head_merge_bb): Likewise.
5013         * cfgrtl.c (rtl_merge_blocks): Likewise.
5014         (try_redirect_by_replacing_jump): Likewise.
5015         (rtl_tidy_fallthru_edge): Likewise.
5016         * combine.c (do_SUBST_MODE): Likewise.
5017         (insn_a_feeds_b): Likewise.
5018         (combine_instructions): Likewise.
5019         (can_combine_p): Likewise.
5020         (try_combine): Likewise.
5021         (find_split_point): Likewise.
5022         (subst): Likewise.
5023         (simplify_set): Likewise.
5024         (distribute_notes): Likewise.
5025         * cprop.c (cprop_jump): Likewise.
5026         * cse.c (cse_extended_basic_block): Likewise.
5027         * df-problems.c (can_move_insns_across): Likewise.
5028         * final.c (final): Likewise.
5029         (final_scan_insn): Likewise.
5030         * function.c (emit_use_return_register_into_block): Likewise.
5031         * gcse.c (insert_insn_end_basic_block): Likewise.
5032         * haifa-sched.c (sched_init): Likewise.
5033         * ira.c (find_moveable_pseudos): Likewise.
5034         * loop-invariant.c (find_invariant_insn): Likewise.
5035         * lra-constraints.c (curr_insn_transform): Likewise.
5036         * optabs.c (prepare_cmp_insn): Likewise.
5037         * postreload.c (reload_combine_recognize_const_pattern):
5038         * Likewise.
5039         * reload.c (find_reloads): Likewise.
5040         (find_reloads_address_1): Likewise.
5041         * reorg.c (delete_scheduled_jump): Likewise.
5042         (steal_delay_list_from_target): Likewise.
5043         (steal_delay_list_from_fallthrough): Likewise.
5044         (try_merge_delay_insns): Likewise.
5045         (redundant_insn): Likewise.
5046         (fill_simple_delay_slots): Likewise.
5047         (fill_slots_from_thread): Likewise.
5048         (delete_computation): Likewise.
5049         (relax_delay_slots): Likewise.
5050         * sched-deps.c (sched_analyze_2): Likewise.
5051         * sched-rgn.c (add_branch_dependences): Likewise.
5053 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5055         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
5056         that is trivially ded on non cc0 targets.
5057         (simplify_set): Likewise.
5058         (mark_used_regs_combine): Likewise.
5059         * cse.c (new_basic_block): Likewise.
5060         (fold_rtx): Likewise.
5061         (cse_insn): Likewise.
5062         (cse_extended_basic_block): Likewise.
5063         (set_live_p): Likewise.
5064         * rtlanal.c (canonicalize_condition): Likewise.
5065         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5067 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5069         * conditions.h: Define macros even if HAVE_cc0 is undefined.
5070         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
5071         * final.c: Likewise.
5072         * jump.c: Likewise.
5073         * recog.c: Likewise.
5074         * recog.h: Declare functions even when HAVE_cc0 is undefined.
5075         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
5077 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5079         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
5080         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
5081         * builtins.c (expand_builtin): Remove check if
5082         EH_RETURN_DATA_REGNO is defined.
5083         * df-scan.c (df_bb_refs_collect): Likewise.
5084         (df_get_exit_block_use_set): Likewise.
5085         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
5086         * ira-lives.c (process_bb_node_lives): Likewise.
5087         * lra-lives.c (process_bb_lives): Likewise.
5089 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
5091         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
5092         FIRST_PSEUDO_REG): New.
5093         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
5094         (ARG_POINTER_REGNUM): Define to ARGP_REG.
5095         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
5096         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
5097         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
5098         (FIRST_INT_REG): New.
5099         (LAST_INT_REG): New.
5100         (FIRST_*_REG): Define using *_REG.
5101         (LAST_*_REG): Ditto.
5102         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
5103         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
5104         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
5106 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5108         * expmed.c: (synth_mult): Only assume overlapping
5109         shift with previous steps in alg_sub_t_m2 case.
5111 2015-04-21  Richard Biener  <rguenther@suse.de>
5113         PR tree-optimization/65650
5114         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
5115         transitions involving copies.
5116         (set_lattice_value): Adjust for copy lattice state.
5117         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
5118         if that doesn't dominate the merge point.
5119         (bit_value_unop): Adjust what we treat as varying mask.
5120         (bit_value_binop): Likewise.
5121         (bit_value_assume_aligned): Likewise.
5122         (evaluate_stmt): When we simplified to a SSA name record a copy
5123         instead of dropping to varying.
5124         (visit_assignment): Simplify.
5126         * gimple-match.h (gimple_simplify): Add another callback.
5127         * gimple-fold.c (fold_stmt_1): Adjust caller.
5128         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
5129         for the 2nd callback.
5130         * gimple-match-head.c (gimple_simplify): Add a callback that is
5131         used to valueize the stmt operands and use it that way.
5133 2015-04-21  Richard Biener  <rguenther@suse.de>
5135         PR tree-optimization/65788
5136         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
5138 2015-04-21  Richard Biener  <rguenther@suse.de>
5140         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
5141         vec_construct cost by vec_stmt_cost.
5143 2015-04-21  Richard Biener  <rguenther@suse.de>
5145         * cfghooks.h (create_basic_block): Replace with two overloads
5146         for RTL and GIMPLE.
5147         (split_block): Likewise.
5148         * cfghooks.c (split_block): Rename to ...
5149         (split_block_1): ... this.
5150         (split_block): Add two type-safe overloads for RTL and GIMPLE.
5151         (split_block_after_labels): Call split_block_1.
5152         (create_basic_block): Rename to ...
5153         (create_basic_block_1): ... this.
5154         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
5155         (create_empty_bb): Call create_basic_block_1.
5156         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
5157         split_block_after_labels.
5158         * omp-low.c (expand_parallel_call): Likewise.
5159         (expand_omp_target): Likewise.
5160         (simd_clone_adjust): Likewise.
5161         * tree-chkp.c (chkp_get_entry_block): Likewise.
5162         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
5163         create_basic_block overload.
5164         (cgraph_node::expand_thunk): Likewise.
5165         * tree-cfg.c (make_blocks): Likewise.
5166         (handle_abnormal_edges): Likewise.
5167         * tree-inline.c (copy_bb): Likewise.
5169 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5171         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
5172         New pattern.
5173         (*xor_one_cmplsidi3_ze): Likewise.
5175 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5177         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
5178         use df_remove_problem rather than manually removing problems, leaving
5179         holes in df->problems_in_order[].
5181 2015-04-21  Tom de Vries  <tom@codesourcery.com>
5183         PR tree-optimization/65802
5184         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
5186 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5188         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
5189         Increase to 128.
5190         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
5191         at '.'.  Assert that there's enough space for everything.
5193 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
5195         PR tree-optimization/64950
5196         Revert:
5197         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
5199         PR target/41089
5200         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
5201         as volatile.
5203 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
5205         PR rtl-optimization/64916
5206         * cfgcleanup.c (values_equal_p): New function.
5207         (can_replace_by): Use it.
5209 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
5211         PR c++/65801
5212         * doc/invoke.texi ([-Wnarrowing]): Update.
5214 2015-04-20  Jeff Law  <law@redhat.com>
5216         PR tree-optimization/65658
5217         * tree-ssa-threadupdate.c (redirection_block_p): Remove
5218         redundant test for GIMPLE_ASSIGN in last change.
5220 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
5222         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
5223         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
5224         (legitimize_tls_address): Ditto.
5225         (ix86_expand_move): Ditto.
5226         (ix86_expand_binary_operator): Remove reload_in_progress checks.
5227         (ix86_expand_unary_operator): Ditto.
5228         * config/i386/predicates.md (index_register_operand): Ditto.
5230 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
5232         * reorg.c (try_merge_delay_insns): Improve correctness checking
5233         for targets with multiple delay slots.
5235 2015-04-20  Jeff Law  <law@redhat.com>
5237         PR tree-optimization/65658
5238         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
5239         statements too.
5241 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
5243         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
5244         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
5245         Delete.
5247 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
5249         PR debug/65807
5250         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
5252 2015-04-20  Richard Biener  <rguenther@suse.de>
5254         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
5255         * gimple-fold.c (gimple_build_valueize): New function.
5256         (gimple_build): Always use gimple_build_valueize as valueize hook.
5258 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
5260         PR target/64134
5261         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
5262         and overwrite variable parts if <= 1/2 the elements are variable.
5264 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
5266         PR rtl-optimization/65805
5267         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
5268         Don't use difference of offset and previous offset if
5269         update_sp_offset is non-zero.
5270         (eliminate_regs_in_insn): Ditto.
5271         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
5272         lra_eliminate_regs_1 call.
5273         * lra-constraints.c (get_equiv_with_elimination): Ditto.
5275 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
5277         * hash-table.h: Remove version of hash_table that stored value_type *.
5278         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
5279         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
5280         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
5281         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
5282         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
5283         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
5284         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
5285         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
5286         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
5287         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
5288         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
5289         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
5290         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
5291         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
5292         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
5293         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
5295 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5296             Jakub Jelinek  <jakub@redhat.com>
5298         PR target/65787
5299         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
5300         subsequent SH_NONE operand does not overwrite an existing *special
5301         value.
5302         (adjust_extract): Handle case where a vec_extract operation is
5303         wrapped in a PARALLEL.
5305 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
5307         PR target/65780
5308         * config/i386/i386.c (ix86_binds_local_p): Define only if
5309         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
5311 2015-04-17  Jeff Law  <law@redhat.com>
5313         PR tree-optimization/47679
5314         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
5315         * tree-ssa-scopedtables.c: New file.
5316         * tree-ssa-scopedtables.h: New file.
5317         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
5318         (const_and_copies): Change name/type.
5319         (record_const_or_copy): Move into tree-ssa-scopedtables.c
5320         (record_const_or_copy_1): Similarly.
5321         (restore_vars_to_original_value): Similarly.
5322         (pass_dominator::execute): Create and destroy const_and_copies table.
5323         (thread_across_edge): Update passing of const_and_copies.
5324         (record_temporary_equivalence): Use method calls rather than
5325         manipulating const_and_copies directly.
5326         (record_equality, cprop_into_successor_phis): Similarly.
5327         (dom_opt_dom_walker::before_dom_children): Similarly.
5328         (dom_opt_dom_walker::after_dom_children): Similarly.
5329         (eliminate_redundant_computations): Similarly.
5330         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
5331         (record_temporary_equivalence): Likewise.
5332         (invalidate_equivalences): Likewise.
5333         (record_temporary_equivalences_from_phis): Update due to type
5334         change of const_and_copies.  Use method calls rather than
5335         manipulating the stack directly.
5336         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
5337         (thread_through_normal_block, thread_across_edge): Likewise.
5338         (thread_across_edge): Likewise.
5339         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5340         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
5341         of equiv_stack.
5342         (identify_jump_threads): Update due to type change of equiv_stack.
5343         (finalize_jump_threads): Delete the equiv_stack when complete.
5345 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
5347         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
5348         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
5349         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
5351 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
5353         PR target/65535
5354         * config.gcc: Exit with a comment when we do not have a major version
5355         number for the FreeBSD target.
5357 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
5359         PR target/65689
5360         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
5361         maybe_allows_mem bitfields.
5362         (maybe_allows_none_start, maybe_allows_none_end,
5363         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
5364         maybe_allows_mem_end): New variables.
5365         (compute_maybe_allows): New function.
5366         (add_constraint): Use it to initialize maybe_allows_reg and
5367         maybe_allows_mem fields.
5368         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
5369         is_address constraints such that those that allow neither mem nor
5370         reg come first, then those that only allow reg but not mem, then
5371         those that only allow mem but not reg, then the rest.
5372         (write_allows_reg_mem_function): New function.
5373         (write_tm_preds_h): Call it.
5374         * stmt.c (parse_output_constraint, parse_input_constraint): Use
5375         the generated insn_extra_constraint_allows_reg_mem function
5376         instead of always setting *allows_reg = true; *allows_mem = true;
5377         for unknown extra constraints.
5379 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
5381         PR target/65780
5382         * output.h (default_binds_local_p_3): New.
5383         * varasm.c (default_binds_local_p_3): Make it public.  Take an
5384         argument to indicate if common symbol may be local.  If common
5385         symbol may be local, treat non-external variable as defined
5386         locally.
5387         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
5388         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
5389         * config/i386/i386.c (ix86_binds_local_p): New.
5390         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
5391         ix86_binds_local_p.
5393 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
5395         PR debug/65771
5396         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
5397         trying mem_loc_descriptor on XEXP (rtl, 0).
5399 2015-04-17  Martin Liska  <mliska@suse.cz>
5401         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
5402         Release symbol_compare_collection.
5403         * ipa-reference.c: Add TODO that a vector should be released.
5405 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
5407         PR target/65296
5408         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
5409         to new AVR-LibC file layout (bug #44574).
5410         (*avrlibc_devicelib): Same.
5411         * config/avr/avr-mcus.def: Adjust comments.
5412         * config/avr/avr.opt (nodevicelib): Adjust help.
5414 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
5416         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
5418 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
5420         PR c++/64527
5421         * gimplify.c (gimplify_init_constructor): Always emit a
5422         side-effecting constructor.
5424 2015-04-17  Tom de Vries  <tom@codesourcery.com>
5426         PR tree-optimization/64950
5427         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
5428         in cfun->curr_properties.
5429         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
5430         if we generate an IFN_VA_ARG.
5431         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
5432         function if PROP_gimple_lva is not set in src function.
5434 2015-04-17  Tom de Vries  <tom@codesourcery.com>
5435             Michael Matz  <matz@suse.de>
5437         PR tree-optimization/64950
5438         * gimple-iterator.c (update_modified_stmts): Remove static.
5439         * gimple-iterator.h (update_modified_stmts): Declare.
5440         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
5441         (gimplify_va_arg_internal): New function.
5442         (gimplify_va_arg_expr): Use IFN_VA_ARG.
5443         * gimplify.h (gimplify_va_arg_internal): Declare.
5444         * internal-fn.c (expand_VA_ARG): New unreachable function.
5445         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
5446         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
5447         (expand_ifn_va_arg): New function.
5448         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
5449         (pass_stdarg::execute): Call expand_ifn_va_arg.
5450         (pass_data_lower_vaarg): New pass_data.
5451         (pass_lower_vaarg): New gimple_opt_pass.
5452         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
5453         (make_pass_lower_vaarg): New function.
5454         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
5455         properties_required field.
5456         * passes.def (all_passes): Add pass_lower_vaarg.
5457         * tree-pass.h (PROP_gimple_lva): Add define.
5458         (make_pass_lower_vaarg): Declare.
5460 2015-04-17  Tom de Vries  <tom@codesourcery.com>
5462         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
5463         * calls.c (call_expr_flags): Same.
5465 2015-04-17  Tom de Vries  <tom@codesourcery.com>
5467         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
5468         (pass_stdarg::execute): ... here.
5470 2015-04-17  Tom de Vries  <tom@codesourcery.com>
5471             Michael Matz  <matz@suse.de>
5473         * tree-cfg.c (make_blocks_1): Factor out of ...
5474         (make_blocks): ... here.
5475         (make_edges_bb): Factor out of ...
5476         (make_edges): ... here.
5477         (gimple_find_sub_bbs): New function.
5478         * tree-cfg.h (gimple_find_sub_bbs): Declare.
5480 2015-04-17  Tom de Vries  <tom@codesourcery.com>
5482         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
5484 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
5486         * asan.c (set_sanitized_sections): New function.
5487         (section_sanitized_p): Ditto.
5488         (asan_protect_global): Optionally sanitize user-defined
5489         sections.
5490         * asan.h (set_sanitized_sections): Declare new function.
5491         * common.opt (fsanitize-sections): New option.
5492         * doc/invoke.texi (-fsanitize-sections): Document new option.
5493         * opts-global.c (handle_common_deferred_options): Handle new
5494         option.
5496 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
5498         PR debug/65771
5499         * dwarf2out.c (loc_list_from_tree): Return NULL
5500         for DEBUG_EXPR_DECL.
5502 2015-04-17  Christian Bruel  <christian.bruel@st.com>
5504         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
5505         same attributes.
5507 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5509         * ira-color.c (setup_left_conflict_sizes_p): Do not process
5510         node itself when computing left conflict subnode size.
5512 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
5514         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
5515         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
5516         *fop_<mode>_1_sse using enabled attribute.  Use
5517         register_mixssei387nonimm_operand operand 1 predicate. Change
5518         alternative 3 constraints from "x" to "v".
5520 2015-04-16  Richard Biener  <rguenther@suse.de>
5522         PR tree-optimization/65774
5523         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
5524         bit-value tracking on.
5526 2015-04-16  Richard Biener  <rguenther@suse.de>
5528         PR tree-optimization/64277
5529         * tree-vrp.c (check_array_ref): Fix anti-range handling,
5530         simplify upper bound handling.
5531         (search_for_addr_array): Simplify.
5532         (check_array_bounds): Handle ADDR_EXPRs here.
5533         (check_all_array_refs): Simplify.
5535 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
5537         * config/i386/i386.c (print_reg): Rewrite function.
5539 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5541         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
5542         Invert the condition.
5544 2015-04-16  Renlin Li  <renlin.li@arm.com>
5546         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
5547         simplifications for UNSIGNED_FLOAT.
5549 2015-04-16  Nick Clifton  <nickc@redhat.com>
5551         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
5552         MUL_UNINIT.
5553         (enum rl78_cpu_type): New.
5554         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
5555         (umulhi3_shift_virt): Remove m constraint from operand 1.
5556         (umulqihi3_virt): Likewise.
5557         * config/rl78/rl78.c (rl78_option_override): Add code to process
5558         -mcpu and -mmul options.
5559         (rl78_alloc_physical_registers): Add code to handle divhi and
5560         divsi valloc attributes.
5561         (set_origin): Likewise.
5562         * config/rl78/rl78.h (RL78_MUL_G14): Define.
5563         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
5564         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
5565         __RL78_Gxx__.
5566         (ASM_SPEC): Pass -mcpu on to assembler.
5567         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
5568         (mulqi3_rl78): Likewise.
5569         (mulhi3_g13): Likewise.
5570         (mulhi3): Generate the G13 or G14 versions of the insn directly.
5571         (mulsi3): Likewise.
5572         (mulhi3_g14): Add clobbers of AX and BC.
5573         (mulsi3_g14): Likewise.
5574         (mulsi3_g13): Likewise.
5575         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
5576         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
5577         * config/rl78/rl78.opt (mmul): Initialise value to
5578         RL78_MUL_UNINIT.
5579         (mcpu): New option.
5580         (m13, m14, mrl78): New option aliases.
5581         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
5582         (MULTILIB_DIRNAMES): Add g13 and g14.
5583         * doc/invoke.texi: Document -mcpu and -mmul options.
5585 2015-04-16  Richard Biener  <rguenther@suse.de>
5587         * tree-ssa-ccp.c (likely_value): See if we have operands that
5588         are marked as never simulate again and return CONSTANT in this
5589         case.
5590         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
5591         not have any operands that will be simulated again as
5592         not being simulated again.
5594 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
5596         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
5597         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
5598         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
5599         attribute.
5600         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
5601         enabled attribute.
5602         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
5603         *float<SWI48:mode><MODEF:mode>2_sse.
5604         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
5605         enabled attribute.
5606         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
5607         enabled attribute.
5609 2015-04-15  Tom de Vries  <tom@codesourcery.com>
5611         PR other/65487
5612         * function.c (push_dummy_function): New function.
5613         (init_dummy_function_start): Use push_dummy_function.
5614         (pop_dummy_function): New function.  Factored out of ...
5615         (expand_dummy_function_end): ... here.
5616         * function.h (push_dummy_function, pop_dummy_function): Declare.
5617         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
5618         pop_dummy_function.
5619         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
5621 2015-04-15  Jeff Law  <law@redhat.com>
5623         PR tree-optimization/47679
5624         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
5625         need for forward declaration in upcoming changes.
5626         (record_conditions, record_edge_info): Likewise.
5628         PR rtl-optimization/42522
5629         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
5630         SIGN_EXTRACT as a whole object rather than simplifying
5631         its operand.
5633 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
5635         PR ipa/65765
5636         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
5637         and GIMPLE_PREDICT use break instead of return true. For
5638         GIMPLE_EH_DISPATCH, compare dispatch region.
5640 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
5642         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
5643         details about the implementation.  Make clear preference for
5644         __atomic builtins.  Reduce possibility of future change.
5646 2015-04-15  Nick Clifton  <nickc@redhat.com>
5648         * config/rx/rx.opt (mallow-string-insns): New option.
5649         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
5650         builtin if string instructions are denied.
5651         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
5652         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
5653         appropriate.
5654         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
5655         * config/rx/rx.md (movstr): Enable pattern only if string
5656         instructions are allowed.
5657         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
5658         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
5659         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
5660         (MULTILIB_DIRNAMES): Add no-strings.
5661         * doc/invoke.texi: Document -mno-allow-string-insns.
5663 2015-04-15  Alan Modra  <amodra@gmail.com>
5665         PR target/65408
5666         PR target/58744
5667         PR middle-end/36043
5668         * calls.c (load_register_parameters): Don't load past end of
5669         mem unless suitably aligned.
5671 2015-04-15  Nick Clifton  <nickc@redhat.com>
5673         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
5674         decrement instruction as being frame related.
5675         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
5676         based addresses.
5677         If zero extending a function address enclose the operation in
5678         %code(...).
5679         (rl78_preferred_reload_class): New function.
5680         (TARGET_PREFERRED_RELOAD_CLASS): Define.
5681         * config/rl78/rl78.md: Remove useless constraints in expanders.
5682         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
5683         (mulhi3_rl78): Likewise.
5684         (mulhi3_g13): Likewise.
5685         (mulsi3_rl78): Likewise.
5686         (es_addr): Move to before the multiply patterns.
5688 2015-04-15  Alan Modra  <amodra@gmail.com>
5690         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
5691         and sequence_stack.  Add seq.
5692         (seq_stack): Delete.
5693         * function.c (prepare_function_start): Don't access x_last_insn.
5694         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
5695         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
5696         * emit_rtl.c (start_sequence, push_topmost_sequence,
5697         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
5698         sequence accessors.
5699         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
5700         remove_insn): Likewise.  Simplify.
5701         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
5702         and pop_topmost_sequence.
5703         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
5704         debug insns.
5705         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
5707 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
5709         PR target/65729
5710         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
5711         the assertiion.
5713 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
5715         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
5716         (LEGACY_INT_REGNO_P): Ditto.
5717         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
5718         (ANY_MASK_REG_P): Remove.
5719         (BND_REG_P): Rename from ANY_BND_REG_P.
5720         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
5721         legacy integer registers.  Do not handle MMX_REG_P in a special way.
5722         Merge 64byte and 32byte SSE handling.
5724 2015-04-14  Nick Clifton  <nickc@redhat.com>
5726         * expr.c (expand_assignment): Force an address offset computation
5727         into a register before changing its mode.
5728         (expand_expr_real_1): Likewise.
5730 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
5732         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
5733         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
5734         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
5735         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
5736         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
5737         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
5738         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
5739         and __aarch64_vget_lane_any.
5741 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
5743         PR rtl-optimization/65761
5744         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
5745         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
5747 2015-04-14  Richard Biener  <rguenther@suse.de>
5749         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
5750         (graphite_can_represent_scev): Use POINTER_TYPE_P.
5752 2015-04-14  Richard Biener  <rguenther@suse.de>
5754         PR tree-optimization/65758
5755         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
5756         against -1.
5757         (ccp_lattice_meet): Likewise.
5758         (bit_value_unop): Likewise.
5759         (bit_value_binop): Likewise.
5760         (bit_value_assume_aligned): Likewise.
5762 2015-04-14  Christian Bruel  <christian.bruel@st.com>
5764         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
5765         function.
5767 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
5769         PR tree-optimization/63387
5770         * match.pd ((x unord x) | (y unord y) -> (x unord y),
5771         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
5773 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
5775         * config/i386/predicates.md (any_QIreg_operand): Rename from
5776         q_regs_operand.  Do not process subregs.
5777         (QIreg_operand): Use QI_REGNO_P predicate.
5778         (ext_QIreg_operand): Ditto.
5779         (ext_register_operand): Ditto.
5780         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
5781         (AND splitters): Ditto.
5782         (AND with -65536 splitter): Add SWI48 mode for operand 0.
5783         (AND with -256 splitter): Use any_QIreg_operand predicate and
5784         SWI248 mode for operand 0.
5785         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
5786         mode for operand 0.
5787         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
5789 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
5791         * doc/plugins.texi: Rewrite first introductory paragraph.
5793 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5795         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
5796         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
5798 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5800         * ipa-profie.c (ipa_profile): Check number of parameters
5801         and possible polymorphic call targets before
5802         devirtualizing.
5804 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
5806         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
5807         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
5809 2015-04-13  Richard Biener  <rguenther@suse.de>
5811         PR tree-optimization/65204
5812         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
5813         takens for bit-CCP.
5815 2015-04-13  Richard Biener  <rguenther@suse.de>
5817         PR target/65660
5818         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
5819         and cond_not_taken_branch_cost to 4 and 2.
5820         (bdver2_cost): Likewise.
5821         (bdver3_cost): Likewise.
5822         (bdver4_cost): Likewise.
5824 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5826         * hash-table.h (hash_table constructor): Add mem stats.
5827         (alloc_entries): Likewise.
5829 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5831         * ipa-cp.c (ipcp_driver): Relase prev_edge.
5832         * passes.c (execute_one_pass): Only add transform if pass has one.
5834 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
5836         * config/i386/i386.c (ix86_option_override_internal): Don't set
5837         -fprefetch-loop-arrays if optimizing for size.
5839 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
5840             Gerald Pfeifer  <gerald@pfeifer.com>
5842         * doc/contrib.texi (Contributors): Add Martin Jambor and
5843         Michael Matz.
5845 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
5847         * BASE-VER: Set to 6.0.0.
5849         PR tree-optimization/65747
5850         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
5851         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
5853 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
5855         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
5856         sentence.  Improve grammar.
5858 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
5860         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
5862 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
5864         PR ipa/65743
5865         * ipa-inline-transform.c (speculation_removed): Remove static var.
5866         (check_speculations): New function.
5867         (clone_inlined_nodes): Do not check spculations.
5868         (inline_call): Call check_speculations.
5869         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
5870         consider non-invariants.
5872 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
5873             Martin Liska  <mliska@suse.cz>
5875         PR ipa/65722
5876         * ipa-icf.c (sem_item::compare_cgraph_references): function and
5877         variable can not match.
5878         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
5879         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
5881 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
5883         PR tree-optimization/65735
5884         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
5885         Remove visited_phis argument, add visited_bbs, avoid recursing into the
5886         same bb rather than just into the same phi node.
5887         (thread_through_normal_block): Adjust caller.
5889 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
5891         * doc/contrib.texi (Contributors): Add Ira Rosen.
5893 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
5895         * gcov.c (find_source): Fix miswording in error message.
5896         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
5897         (ix86_expand_sse_comi_round): Fix typo in error message.
5899 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
5901         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
5903 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
5905         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
5907 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5909         PR target/65710
5910         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
5911         Print bad_spills_num and insn_pseudos_num.
5913 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5915         PR target/65694
5916         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
5917         when creating +1 values for SImode.
5919 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5921         PR target/65729
5922         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
5923         assert.
5925 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
5926             Iain Sandoe  <iain@codesourcery.com>
5928         PR target/65351
5929         * configure: Regenerate.
5931 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5933         PR target/65671
5934         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
5936 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
5938         * doc/contrib.texi (Contributors): Add John Marino.
5940 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
5942         PR tree-optimization/65709
5943         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
5944         TREE_TYPE (TREE_TYPE (t)).
5946 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5948         PR target/65710
5949         * lra-int.h (lra_bad_spill_regno_start): New.
5950         * lra.c (lra_bad_spill_regno_start): New.
5951         (lra): Set up lra_bad_spill_regno_start.  Set up
5952         lra_constraint_new_regno_start unconditionally.
5953         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
5954         spill preferences.
5956 2015-04-09  Marek Polacek  <polacek@redhat.com>
5957             Jakub Jelinek  <jakub@redhat.com>
5959         PR middle-end/65554
5960         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
5961         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
5962         of STRIP_NOPS.
5964 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
5966         PR rtl-optimization/65693
5967         * combine.c (is_parallel_of_n_reg_sets): Move outside of
5968         #ifndef HAVE_cc0.
5970 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
5972         PR target/65296
5973         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
5974         device specs file if "device-specs%s" didn't resolve to a path.
5976 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5978         PR target/65676
5979         * config/i386/i386.c (fixup_modeless_constant): New.
5980         (ix86_expand_args_builtin): Fixup modeless constant operand.
5981         (ix86_expand_round_builtin): Ditto.
5982         (ix86_expand_special_args_builtin): Ditto.
5983         (ix86_expand_builtin): Ditto.
5985 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
5987         PR target/65693
5988         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
5989         any pow2 integer in between 2 and 0x80000000U inclusive.
5991 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
5993         PR rtl-optimization/65693
5994         * combine.c (is_parallel_of_n_reg_sets): Change first argument
5995         from an rtx_insn * to an rtx.
5996         (try_combine): Adjust both callers.  Use it once more.
5998 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6000         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
6001         (chkp_make_static_const_bounds): Search existing
6002         symbol by assembler name.  Use make_decl_one_only.
6003         (chkp_get_zero_bounds_var): Remove node search which
6004         is now performed in chkp_make_static_const_bounds.
6005         (chkp_get_none_bounds_var): Likewise.
6007 2015-04-08  Michael Witten  <mfwitten@gmail.com>
6009         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
6010         to an example.
6012 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6014         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
6016 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
6018         * doc/extend.texi (__sync Builtins): Fix grammar.
6020 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6022         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
6024 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6026         * varasm.c (emit_local): Move definition of align.
6028 2015-04-08  Julian Brown  <julian@codesourcery.com>
6030         * config/nvptx/mkoffload.c (process): Support variable mapping.
6032 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
6034         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
6035         alpha_links **.
6036         (alpha_write_one_linkage): Correct typo.
6038 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6040         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
6042 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
6044         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
6046 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6048         * tree-chkp.h (chkp_insert_retbnd_call): New.
6049         * tree-chkp.c (chkp_insert_retbnd_call): New.
6050         * ipa-split.c (insert_bndret_call_after): Remove.
6051         (split_function): Use chkp_insert_retbnd_call.
6052         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
6053         bounds for instrumented functions.
6055 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
6057         PR ipa/65540
6058         * calls.c (initialize_argument_information): When producing tail
6059         call also turn SSA_NAMES passed by references to original PARM_DECLs
6061 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
6063         PR target/65648
6064         * lra-remat.c (do_remat): Process input and non-input insn
6065         registers separately.
6067 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
6069         PR debug/65678
6070         * valtrack.c (debug_lowpart_subreg): New function.
6071         (dead_debug_insert_temp): Use it.
6073         PR middle-end/65680
6074         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
6075         into signed HOST_WIDE_INT the same as negative bit_offset.
6077 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
6079         * ipa-comdats.c (ipa_comdats): Visit all thunks
6080         to set proper comdat group.
6082 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6084         PR target/65489
6085         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
6086         on constants for NEON VSTRUCT modes.
6088 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
6089             Iain Sandoe  <iain@codesourcery.com>
6091         PR target/65351
6092         * configure: Regenerate.
6094 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
6096         PR target/65614
6097         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
6098         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
6099         that LFD is used to load double constants instead of LFS.  Add
6100         defaults for all costs structures.  Add comments for missing
6101         initialization fields.
6102         (size32_cost): Likewise.
6103         (size64_cost): Likewise.
6104         (rs64a_cost): Likewise.
6105         (mpccore_cost): Likewise.
6106         (ppc403_cost): Likewise.
6107         (ppc405_cost): Likewise.
6108         (ppc440_cost): Likewise.
6109         (ppc476_cost): Likewise.
6110         (ppc601_cost): Likewise.
6111         (ppc603_cost): Likewise.
6112         (ppc604_cost): Likewise.
6113         (ppc604e_cost): Likewise.
6114         (ppc620_cost): Likewise.
6115         (ppc630_cost): Likewise.
6116         (ppccell_cost): Likewise.
6117         (ppc750_cost): Likewise.
6118         (ppc7450_cost): Likewise.
6119         (ppc8540_cost): Likewise.
6120         (ppce300c2c3_cost): Likewise.
6121         (ppce500mc_cost): Likewise.
6122         (ppce500mc64_cost): Likewise.
6123         (ppce5500_cost): Likewise.
6124         (ppce6500_cost): Likewise.
6125         (titan_cost): Likewise.
6126         (power4_cost): Likewise.
6127         (power6_cost): Likewise.
6128         (power7_cost): Likewise.
6129         (power8_cost): Likewise.
6130         (ppca2_cost): Likewise.
6131         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
6133         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
6134         instead of XXLOR to copy SFmode to clear out dirty bits created
6135         when SFmode denormals are generated.
6136         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
6137         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
6139 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
6141         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
6142         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
6143         * config/aarch64/aarch64-tune.md: Regenerate.
6145 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
6147         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
6148         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
6149         * config/arm/arm-cores.def (exynos-m1): New core.
6150         * config/arm/arm-tune.md: Regenerate.
6151         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
6152         * config/arm/bpabi.h: Likewise.
6154 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
6156         * ipa-cp (set_single_call_flag): Remove too
6157         restrictive assert.
6159 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
6161         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
6162         GOMP_offload_unregister from the destructor.
6164 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
6166         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
6167         flags for instrumentation thunk.
6168         (chkp_produce_thunks): Likewise.
6170 2015-04-05  Martin Liska  <mliska@suse.cz>
6172         PR ipa/65665
6173         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
6174         has computed data structure.
6175         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
6177 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
6179         * invoke.texi (inline-unit-growth): Increase growth to 20%
6180         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
6182 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6184         PR target/65647
6185         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
6186         value checking.
6187         (lra_rematerialization_iter): New.
6188         * lra.c (lra): Initialize lra_rematerialization_iter.
6189         Stop updating lra_constraint_new_regno_start after switching of
6190         inheritance and rematerialization.
6191         * lra-remat.c (lra_rematerialization_iter): New.
6192         (lra_remat): Add printing pass iteration.  Do rematerialization
6193         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
6195 2015-04-04  Richard Biener  <rguenther@suse.de>
6197         PR tree-optimization/64909
6198         PR tree-optimization/65660
6199         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
6200         to take a cost vector for scalar iteration cost.
6201         (vect_get_single_scalar_iteration_cost): Likewise.
6202         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
6203         Compute the scalar iteration cost into a cost vector.
6204         (vect_get_known_peeling_cost): Use the scalar cost vector to
6205         account for the cost of the peeled iterations.
6206         (vect_estimate_min_profitable_iters): Likewise.
6207         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
6208         Likewise.
6210 2015-04-04  Alan Modra  <amodra@gmail.com>
6212         PR target/65576
6213         PR target/65240
6214         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
6215         0.0 constant unless TARGET_VSX.
6216         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
6217         alternative.
6219 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
6221         PR ipa/65654
6222         * ipa-inline-transform.c (inline_call): Skip sanity check to work
6223         around the ICE
6225 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
6227         PR ipa/65655
6228         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
6229         speculative indirect edges to avoid ordering issue.
6231 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
6233         PR ipa/65076
6234         * ipa-inline.c (edge_badness): Add combined size to the denominator.
6236 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
6238         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
6239         TYPE_ARTIFICIAL on the .omp_data* types.
6241 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
6243         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
6244         instrumentation thunks.
6246 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
6248         * config/i386/i386.c (ix86_expand_call): Avoid nested
6249         PARALLEL in returned call value.
6251 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
6253         * lto-cgraph.c (input_cgraph_1): Always link instrumented
6254         assembler name with original one.
6256 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
6258         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
6260 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
6262         Revert parts of r216820.
6263         * config/i386/i386.md (movqi_internal): Correct type calculation
6264         for alternatives 3 and 5.
6266 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
6268         PR preprocessor/61977
6269         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
6270         predefine __vector/__bool/__pixel macros nor context sensitive
6271         macros for CLK_ASM.
6272         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
6274 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
6276         * config/pa/pa.c (pa_output_move_double): Directly handle register
6277         indexed memory operand.  Simplify handling of scaled register indexed
6278         memory operands.
6280 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
6282         PR driver/65444
6283         * config/i386/linux-common.h (MPX_SPEC): New.
6284         (CHKP_SPEC): Add MPX_SPEC.
6285         * doc/invoke.texi (-fcheck-pointer-boudns): Document
6286         possible issues with '-z bndplt' support in linker.
6288 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
6290         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
6291         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
6292         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
6293         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
6294         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
6296 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
6298         * config/i386/sync.md (UNSPEC_MOVA): Remove.
6299         (atomic_load<mode>): Change operand 0 predicate to
6300         nonimmediate_operand and fix up the destination when needed.
6301         Use UNSPEC_LDA.
6302         (atomic_loaddi_fpu): Use UNSPEC_LDA.
6303         (atomic_store<mode>): Change operand 1 predicate to
6304         nonimmendate_operand and move the source to register when needed.
6305         Use UNSPEC_STA.
6306         (atomic_store<mode>_1): Use UNSPEC_STA.
6307         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
6308         Fix moves from memory operand.  Use UNSPEC_STA.
6310 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6312         * expmed.c (strict_volatile_bitfield_p): Check that the access will
6313         not cross a MODESIZE boundary.
6314         (store_bit_field, extract_bit_field): Added assertions in the
6315         strict volatile bitfields code path.
6317 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6319         PR target/65624
6320         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
6321         Increase args array size by one to avoid buffer overflow.
6323 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
6325         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6326         split_part.
6327         * ipa-inline.c (edge_badness): Add wrapper penalty.
6328         (sum_callers): Move up.
6329         (inline_small_functions): Set single_caller.
6330         * ipa-inline.h (inline_summary): Add single_caller.
6331         * ipa-split.c (split_function): Set split_part.
6332         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
6333         * cgraph.h (cgraph_node): Add split_part.
6335 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
6337         PR target/58945
6338         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6339         Do not split operands 0 and operands 2 to halfmode.
6340         (atomic_compare_and_swap<mode>): Update for
6341         atomic_compare_and_swap<dwi>_doubleword changes.
6343 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
6345         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
6346         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
6347         no caching is done.
6349 2015-03-31  Martin Liska  <mliska@suse.cz>
6351         PR ipa/65557
6352         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
6353         has already filled up function summary.
6354         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
6356 2015-03-31  Richard Biener  <rguenther@suse.de>
6358         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
6359         of types.
6361 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6363         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
6364         nested functions.
6365         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
6366         (s390_asm_output_function_label): Adapt to new signature of
6367         s390_function_num_hotpatch_hw
6368         Optimise the code generating assembler output.
6369         Add comments to assembler file.
6371 2015-03-31  Richard Biener  <rguenther@suse.de>
6373         PR middle-end/65626
6374         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
6375         of the noreturn call so it is last and cleanup_control_flow_bb
6376         can do the CFG part.
6378 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
6380         PR target/65531
6381         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
6382         same_comdat_group for external symbols.
6383         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
6384         infinite same_comdat_group traversal loop.
6386 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
6388         PR plugins/61176
6389         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
6390         automatically to $headers.
6392 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
6394         PR ipa/65610
6395         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
6396         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
6397         function.
6398         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
6399         Use it.
6400         * ipa-prop.c (param_type_may_change_p): Likewise.
6401         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
6402         (remove_unused_scope_block_p): Add in_ctor_dtor_block
6403         argument.  Before inlining, preserve
6404         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
6405         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
6406         recursive calls.
6407         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
6409 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
6411         PR ipa/65076
6412         * ipa-inline.c (edge_badness): Base denominator on callee's
6413         grwoth squared.
6415 2015-03-27  Martin Jambor  <mjambor@suse.cz>
6417         PR ipa/65478
6418         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
6419         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
6420         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
6421         node_calling_single_call.
6422         * ipa-cp.c (count_callers): New function.
6423         (set_single_call_flag): Likewise.
6424         (initialize_node_lattices): Count callers and set single_flag_call if
6425         necessary.
6426         (incorporate_penalties): New function.
6427         (good_cloning_opportunity_p): Use it, dump new flags.
6428         (propagate_constants_topo): Set node_within_scc flag if appropriate.
6429         * doc/invoke.texi (ipa-cp-recursion-penalty,
6430         ipa-cp-single-call-pentalty): Document.
6432 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
6434         PR ipa/65588
6435         * symtab.c (symtab_node::get_partitioning_class): Register vars
6436         are duplicated.
6437         * varpool.c (symbol_table::output_variables) Do not assemble unefined
6438         decls for non-symbols.
6440 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
6442         PR target/65248
6443         * output.h (default_binds_local_p_2): New.
6444         * varasm.c (default_binds_local_p_2): Renamed to ...
6445         (default_binds_local_p_3): This.  Don't return true on protected
6446         data symbol if protected data may be external.
6447         (default_binds_local_p): Use default_binds_local_p_3.
6448         (default_binds_local_p_1): Likewise.
6449         (default_binds_local_p_2): New.
6450         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
6451         default_binds_local_p_2 if TARGET_MACHO is undefined.
6453 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
6455         PR target/65593
6456         * config/i386/i386.c (legitimize_pic_address): If base
6457         is SYMBOL_REF or LABEL_REF using %rip addressing, force
6458         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
6460 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
6462         PR target/65531
6463         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
6464         comdat groups.
6466 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
6468         PR ipa/65600
6469         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
6470         of optimized out indirect call.
6471         (redirect_to_unreachable): Always build symbol table node for
6472         BUILT_IN_UNREACHABLE
6474 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
6476         PR target/65407
6477         * ira-costs.c (record_reg_classes): Process all constraint string
6478         containing 0-9.
6480 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
6482         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
6483         memory_operand.
6485         PR target/65052
6486         * config/c6x/constraints.md (S3): New constraint.
6487         * config/c6x/c6x.md (real_jump): Use it.
6489 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6491         PR middle-end/65595
6492         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
6493         do redirection if the call is not optimized out.
6495 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
6497         PR target/65495
6498         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
6499         (fchkp-check-incomplete-type): Add LTO.
6500         (fchkp-zero-input-bounds-for-main): Likewise.
6501         (fchkp-first-field-has-own-bounds): Likewise.
6502         (fchkp-narrow-bounds): Likewise.
6503         (fchkp-narrow-to-innermost-array): Likewise.
6504         (fchkp-use-static-bounds): Likewise.
6505         (fchkp-use-static-const-bounds): Likewise.
6506         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6508 2015-03-27  Marek Polacek  <polacek@redhat.com>
6510         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
6512 2015-03-27  Marek Polacek  <polacek@redhat.com>
6514         PR sanitizer/65583
6515         * ubsan.c (ubsan_create_edge): New function.
6516         (instrument_bool_enum_load): Call it.
6517         (instrument_nonnull_arg): Likewise.
6518         (instrument_nonnull_return): Likewise.
6519         (instrument_object_size): Likewise.
6521 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6523         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
6524         auto_vec.
6526 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6528         PR lto/65536
6529         * lto-streamer.h (class lto_location_cache): New.
6530         (struct data_in): Add location_cache.
6531         (lto_input_location): Update prototype.
6532         (stream_input_location_now): New.
6533         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
6534         pointer to location.
6535         (stream_input_location): Update.
6536         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
6537         (warn_odr): Apply location cache before warning.
6538         (lto_input_location): Update prototype.
6539         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
6540         Use stream_input_location_now.
6541         * lto-streamer-in.c (lto_location_cache::current_cache): New static
6542         variable.
6543         (lto_location_cache::cmp_loc): New function.
6544         (lto_location_cache::apply_location_cache): New function.
6545         (lto_location_cache::accept_location_cache): New function.
6546         (lto_location_cache::revert_location_cache): New function.
6547         (lto_location_cache::input_location): New function.
6548         (lto_input_location): Do location caching.
6549         (stream_input_location_now): New function.
6550         (input_eh_region, input_struct_function_base): Use
6551         stream_input_location_now.
6552         (lto_data_in_create): use new.
6553         (lto_data_in_delete): Use delete.
6554         * tree-streamer-in.c (unpack_ts_block_value_fields,
6555         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
6556         lto_input_ts_exp_tree_pointers): Update for cached location api.
6558 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6560         PR ipa/65076
6561         * passes.def: Add pass_nothrow.
6562         * ipa-pure-const.c: (pass_data_nothrow): New.
6563         (pass_nothrow): New.
6564         (pass_nothrow::execute): New.
6565         (make_pass_nothrow): New.
6566         * tree-pass.h (make_pass_nothrow): Declare.
6568 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6570         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
6571         edge to change by speculation resolution or redirection.
6572         (edge_set_predicate): Likewise.
6573         (inline_summary_t::duplicate): Likewise.
6574         (remap_edge_summaries): Likewise.
6576 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6578         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
6579         New macros.
6580         (can_inline_edge_p): Relax option matching for always inline functions.
6582 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
6584         PR target/65561
6585         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
6586         Check operand 4 and operand 0 for equality.
6587         (avx512f_vextract<shuffletype>32x4_1_maskm):
6588         Check operand 6 and operand 0 for equality.
6589         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
6590         for equality.
6591         (vec_extract_hi_<mode>_maskm): Ditto.
6593 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6595         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
6596         dead calls back to live.
6597         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
6598         cross check to ...
6599         (cgraph_node::verify_node): ... here; verify only callee edges,
6600         not caller.
6601         * cif-code.def (CILK_SPAWN): New code.
6603 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
6605         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
6606         (edge_set_predicate): Use it to mark unreachable edges.
6607         (inline_summary_t::duplicate): Remove unnecesary code.
6608         (remap_edge_summaries): Likewise.
6609         (dump_inline_summary): Report contains_cilk_spawn.
6610         (compute_inline_parameters): Compute contains_cilk_spawn.
6611         (inline_read_section, inline_write_summary): Stream
6612         contains_cilk_spawn.
6613         * ipa-inline.c (can_inline_edge_p): Do not touch
6614         DECL_STRUCT_FUNCTION that may not be available;
6615         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
6616         remove check for callee_fun->can_throw_non_call_exceptions and
6617         replace it by optimization attribute check; check for flag_exceptions.
6618         * ipa-inline-transform.c (inline_call): Maintain
6619         DECL_FUNCTION_PERSONALITY
6620         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
6622 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
6624         PR tree-optimization/65551
6625         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
6626         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
6628 2015-03-26  Richard Biener  <rguenther@suse.de>
6630         PR middle-end/65555
6631         * tree-cfg.c (verify_gimple_call): Do not require a call to
6632         have no LHS if it wasn't recognized as control altering yet.
6634 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
6636         PR tree-optimization/64715
6637         * passes.def: Add another instance of pass_object_sizes before ccp1.
6638         * tree-object-size.c (pass_object_sizes::execute): In
6639         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
6640         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
6641         __bos result and the computed constant.  Remove redundant
6642         checks, obsoleted by gimple_call_builtin_p test.
6644         * var-tracking.c (variable_tracking_main_1): Don't track
6645         variables for targetm.no_register_allocation targets.
6647 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
6649         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
6650         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
6652 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
6654         PR target/65569
6655         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
6656         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
6657         0.0 is correctly setup.
6658         (extenddftf2_internal): Likewise.
6660 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
6662         PR tree-optimization/65177
6663         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
6664         (bb_in_bbs): New.
6665         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
6666         edges not adjacent on the path to the original code.
6668 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
6670         PR bootstrap/65537
6671         * doc/install.texi (Building a native compiler): Document new
6672         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
6673         configuration assumes that the host supports the linker plugin.
6675 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
6677         PR target/65508
6678         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
6679         chain for generated call.
6681 2015-03-25  Richard Biener  <rguenther@suse.de>
6683         * passes.c (pass_manager::execute_early_local_passes): Guard
6684         execution of pass_chkp_instrumentation_passes with
6685         flag_check_pointer_bounds.
6686         (pass_chkp_instrumentation_passes::gate): Likewise.
6688 2015-03-25  Martin Liska  <mliska@suse.cz>
6690         PR tree-optimization/65538
6691         * symbol-summary.h (function_summary::~function_summary):
6692         Relese memory for allocated summaries.
6693         (function_summary::release): New function.
6695 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
6697         PR lto/65515
6698         * lto-streamer-out.c (DFS::worklist): New struct.
6699         (DFS::worklist_vec): New data member.
6700         (DFS::next_dfs_num): Remove.
6701         (DFS::DFS): Rewritten using worklist instead of recursion,
6702         using most of code from DFS::DFS_write_tree.
6703         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
6704         pass it to DFS_write_tree calls.
6705         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
6706         quick initial checks push it into worklist_vec and return.
6708 2015-03-25  Richard Biener  <rguenther@suse.de>
6710         PR middle-end/65519
6711         * genmatch.c (expr::gen_transform): Re-write to avoid
6712         using gimple_build.
6714 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
6716         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
6718 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
6720         * config/arm/arm.opt (print_tune_info): New option.
6721         * config/arm/arm.c (arm_print_tune_info): New function.
6722         (arm_file_start): Call arm_print_tune_info.
6723         * config/arm/arm-protos.h (struct tune_params): Add comment.
6724         * doc/invoke.texi (@item -mprint-tune-info): New item.
6725         (-mtune): mention it in ARM Option Summary.
6727 2015-03-25  DJ Delorie  <dj@redhat.com>
6729         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
6730         correct clause.
6732 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
6733             Martin Liska  <mliska@suse.cz>
6735         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
6736         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
6737         (sem_item::add_type): New function.
6738         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
6739         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
6740         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
6741         (sem_function::equals_wpa): Fix typo.
6742         * ipa-icf.h (sem_item::add_type): New function.
6743         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
6744         order.
6746 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
6748         PR tree-optimization/65533
6749         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
6750         with swapped operands, call vect_free_slp_tree on
6751         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
6752         vector.
6754 2015-03-24  Richard Biener  <rguenther@suse.de>
6756         PR middle-end/65517
6757         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
6758         for fixup if necessary.
6760 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
6762         * doc/extend.texi (Function Attributes): Add @cindex entries
6763         for all attributes and regularize their format.  Delete text
6764         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
6765         information about "eightbit_data", "tiny_data", and "model"
6766         variable attributes to the Variable Attributes section.  Fix
6767         some obvious typos and copy-editing issues.
6768         (Variable Attributes, Type Attributes): Likewise add/fix
6769         @cindex entries for all attributes.
6771 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
6773         PR target/65523
6774         * tree-chkp.c (chkp_build_returned_bound): Ignore
6775         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
6777 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
6779         PR target/65505
6780         * config/sh/predicates.md (simple_mem_operand,
6781         displacement_mem_operand): Add test for reg.
6782         (short_displacement_mem_operand): Test for displacement_mem_operand
6783         before invoking sh_disp_addr_displacement.
6784         * config/sh/constraints.md (Sdd, Sra): Simplify.
6785         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
6786         Remove redundant displacement_mem_operand tests.
6788 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
6790         PR target/65296
6791         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
6792         the same -mmcu=MCU more than once.
6794 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
6796         PR bootstrap/65522
6797         * ipa-devirt.c: Remove duplicate demangle.h include.
6799         PR target/65504
6800         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
6801         on the pseudo.
6802         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
6803         REG_POINTER on *destptr after adjusting it for prologue size.
6805         PR ipa/65521
6806         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
6807         ultimate_alias_target ()->order ints instead of
6808         ultimate_alias_target () pointers.
6810 2015-03-23  Richard Biener  <rguenther@suse.de>
6812         PR tree-optimization/65518
6813         * tree-vect-stmts.c (vectorizable_load): Reject single-element
6814         interleaving cases we generate absymal code for.
6816 2015-03-23  Richard Biener  <rguenther@suse.de>
6818         PR tree-optimization/65494
6819         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
6820         matches here.
6821         (vect_analyze_slp_instance): But do that here, always and once.
6823 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6825         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
6826         adding T or multiplying by T+1 and subracting T.
6828 2015-03-22  Jeff Law  <law@redhat.com>
6830         PR rtl-optimization/64317
6831         * Makefile.in (OBJS): Add gcse-common.c
6832         * gcse.c: Include gcse-common.h
6833         (struct modify_pair_s): Move structure definition to gcse-common.h
6834         (compute_transp): Move function to gcse-common.c.
6835         (canon_list_insert): Similarly.
6836         (record_last_mem_set_info): Break out some code and put it into
6837         gcse-common.c.  Call into the new common code.
6838         (compute_local_properties): Pass additional arguments to compute_transp.
6839         * postreload-gcse.c: Include gcse-common.h and df.h
6840         (modify_mem_list_set, blocks_with_calls): New variables.
6841         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
6842         (get_bb_avail_insn): Pass in the expression index too.
6843         (alloc_mem): Allocate memory for the new bitmaps and lists.
6844         (free_mem): Free memory for the new bitmaps and lists.
6845         (insert_expr_in_table): Record a bitmap index for each entry we
6846         add to the table.
6847         (record_last_mem_set_info): Call into common code in gcse-common.c.
6848         (get_bb_avail_insn): If no available insn was found in the requested
6849         BB.  If BB has a single predecessor, see if the expression is
6850         transparent in BB and available in that single predecessor.
6851         (compute_expr_transp): New wrapper for compute_transp.
6852         (eliminate_partially_redundant_load): Pass expression's bitmap_index
6853         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
6854         (gcse_after_reload_main): If there are elements in the hash table,
6855         then compute transparency for all the elements in the hash table.
6856         * gcse-common.h: New file.
6857         * gcse-common.c: New file.
6859 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
6861         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
6862         as an adjective.
6863         (System Headers): Likewise.
6864         (Ifdef): Likewise.
6865         (Traditional macros): Likewise.
6866         (Invocation): Likewise.
6867         (Option Index): Likewise.
6868         * doc/cppopts.texi (-M): Likewise.
6869         (-finput-charset): Likewise.
6870         (--help): Likewise.
6871         * doc.invoke.texi (AVR Options): Likewise.
6872         (V850 Options): Likewise.
6874 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
6876         PR ipa/65475
6877         * ipa-devirt.c: Include demangle.h
6878         (odr_type_d): Add field rtti_broken.
6879         (odr_subtypes_equivalent_p): Do not require name to match.
6880         (compare_virtual_tables): Fix typo; if type already has ODR violation,
6881         bypass the tests; be ready for function referneces in vtables that are
6882         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
6883         (warn_odr): Give up for nameless types.
6884         (warn_types_mismatch): Report mismatch in mangled names;
6885         report mismatch in anonymous namespaces; look into component types to
6886         give useful error; report when mismatch is dragged in from other ODR
6887         type.
6888         (odr_types_equivalent_p): Match types for being polymorphic; avoid
6889         duplicated diagnostics.
6890         (add_type_duplicate): Reorder checks so more informative ones come
6891         first; fix typo; do not output "the extra base is defined here" when
6892         we did not warn.
6893         (BINFO_N_BASE_BINFOS): Relax sanity check.
6895 2015-03-22  Martin Liska  <mliska@suse.cz>
6896             Jakub Jelinek  <jakub@redhat.com>
6898         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
6899         masks that can potentially include a builtin.
6900         (ix86_add_new_builtins): Introduce fast filter for isa values
6901         that cannot trigger builtin inclusion.
6903 2015-03-22  Martin Liska  <mliska@suse.cz>
6905         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
6906         (sem_item::update_hash_by_local_refs): Likewise.
6907         (sem_variable::get_hash): Empty line is fixed.
6908         (sem_item_optimizer::execute): Include adding of hash references.
6909         (sem_item_optimizer::update_hash_by_addr_refs): New function.
6910         (sem_item_optimizer::build_hash_based_classes): Use local hash.
6911         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
6912         (sem_item::update_hash_by_local_refs): Likewise.
6914 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
6916         PR ipa/65502
6917         * ipa-comdats.c (enqueue_references): Walk through thunks.
6918         (ipa_comdats): Likewise.
6919         (set_comdat_group_1): New function.
6921 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
6923         PR ipa/65475
6924         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
6925         non-polymorphic
6927 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
6928             Gerald Pfeifer  <gerald@pfeifer.com>
6930         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
6932 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6933             Sandra Loosemore  <sandra@codesourcery.com>
6935         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
6936         function parameter declaration.
6937         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
6938         Update arguments to nios2_adjust_call_address().
6939         (sibcall_internal): Rename from *sibcall.
6940         (sibcall_value_internal): Rename from *sibcall_value.
6941         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
6942         (nios2_large_got_address): Add target temp reg parameter.
6943         (nios2_got_address): Adjust call to nios2_large_got_address, add
6944         force_reg around it.
6945         (nios2_load_pic_address): Add target temp reg parameter, replace call
6946         to nios2_got_address with corresponding code.
6947         (nios2_legitimize_constant_address): Update call to
6948         nios2_load_pic_address.
6949         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
6950         to use temp reg for PIC loading purposes.
6951         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
6952         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6953         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
6955 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6957         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
6958         usage of "the @option{...}".
6959         (-Wopenmp-simd): Likewise.
6960         (-fsanitize-recover): Likewise.
6961         (-fsanitize-undefined-trap-on-error): Likewise.
6962         (-flto): Likewise.
6963         (tracer-dynamic-coverage-feedback): Likewise.
6964         (reorder-block-duplicate-feedback): Likewise.
6965         (loop-unroll-jam-size): Likewise.
6966         (-B): Likewise.
6967         (-I-): Likewise.
6968         (-mabs=legacy): Likewise.
6969         (-mupper-regs-df): Likewise.
6970         (-mupper-regs-sf): Likewise.
6971         (-mpointers-to-nested-functions): Likewise.
6973 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6975         * doc/extend.texi (Cilk Plus Builtins): Add markup.
6977 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6979         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
6980         additional index entries and cross-references.
6981         (-fchkp-check-incomplete-type): Likewise.
6982         (-fchkp-first-field-has-own-bounds): Likewise.
6983         (-fchkp-narrow-to-innermost-array): Likewise.
6984         (-fchkp-use-fast-string-functions): Likewise.
6985         (-fchkp-use-nochk-string-functions): Likewise.
6986         (-fchkp-use-static-const-bounds): Likewise.
6987         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6988         (-fchkp-instrument-marked-only): Likewise.
6989         (-fchkp-use-wrappers): Likewise.
6990         (-static-libmpx): Likewise.
6991         (-static-libmpxwrappers): Likewise.
6992         * doc/extend.texi (bnd_legacy): Likewise.
6993         (bnd_instrument): Likewise.
6994         (bnd_variable_size): Likewise.
6995         (Pointer Bounds Checker builtins): Likewise.
6997 2015-03-21  Tom de Vries  <tom@codesourcery.com>
6999         PR tree-optimization/65458
7000         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
7001         * cgraph.h (cgraph_node): Add parallelized_function field.
7002         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
7003         (input_overwrite_node): Read parallelized_function field.
7004         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
7005         parallelized_function on cgraph_node for child_fn.
7006         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
7007         Remove include of gt-tree-parloops.h.
7008         (parallelized_functions): Remove static variable.
7009         (parallelized_function_p): Rewrite using parallelized_function field of
7010         cgraph_node.
7011         (create_loop_fn): Remove adding to parallelized_functions.
7012         * Makefile.in (GTFILES): Remove tree-parloops.c
7014 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
7016         PR rtl-optimization/64366
7017         * lra.c (lra_update_insn_regno_info): Consider regs in
7018         CALL_INSN_FUNCTION_USAGE memory.
7020 2015-03-20  Richard Biener  <rguenther@suse.de>
7022         PR middle-end/64715
7023         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
7024         for type comparison and gcc_checking_assert.
7025         (chrec_fold_plus_poly_poly): Likewise.
7026         (chrec_fold_multiply_poly_poly): Likewise.
7027         (chrec_convert_1): Likewise.
7028         * gimplify.c (gimplify_expr): Remove premature folding of
7029         &X + CST to &MEM[&X, CST].
7031 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
7033         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
7034         already is final.
7035         (ipa_inline): Recompute inline_failed codes.
7036         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
7037         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
7038         CIF_FINAL_ERROR.
7040 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
7042         PR rtl-optimization/60851
7043         * recog.c (constrain_operands): Accept a pseudo register before reload
7044         for LRA enabled targets.
7046 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
7048         PR target/65240
7049         * config/rs6000/predicates.md (easy_fp_constant): Remove special
7050         -ffast-math handling that kept non-0 constants live in the RTL
7051         until reload.  Remove logic testing the number of instructions it
7052         took to create a constant in a GPR that was never used, due to a
7053         test for soft-float earlier.
7054         (memory_fp_constant): Delete, no longer used.
7056         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
7057         alternatives for loading non-0 constants into GPRs for hard
7058         floating point that is no longer needed due to changes in
7059         easy_fp_constant.  Add support for loading 0.0 into GPRs.
7060         (mov<mode>_hardfloat32): Likewise.
7061         (mov<mode>_hardfloat64): Likewise.
7062         (mov<mode>_64bit_dm): Likewise.
7063         (movtd_64bit_nodm): Likewise.
7064         (pre-reload move FP constant define_split): Delete define_split,
7065         since it is no longer used.
7066         (extenddftf2_internal): Remove GHF constraints that are not valid
7067         for extenddftf2.
7069 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
7071         PR rtl-optimization/63491
7072         * lra-constraints.c (check_and_process_move): Use src instead of
7073         sreg.  Remove some dead code.
7075 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
7077         PR ipa/65380
7078         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
7079         (sem_variable::merge): Likewise.
7081 2015-03-19  Martin Liska  <mliska@suse.cz>
7083         PR ipa/65465
7084         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
7085         all fields of cgraph_thunk_info.
7087 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7089         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
7090         clone instrumented thunks.
7092 2015-03-19  Richard Biener  <rguenther@suse.de>
7094         Revert
7095         2015-03-10  Richard Biener  <rguenther@suse.de>
7097         PR middle-end/63155
7098         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
7099         * tree-ssa-coalesce.c: Include timevar.h.
7100         (attempt_coalesce): Handle graph being NULL.
7101         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
7102         Split out abnormal coalescing to ...
7103         (perform_abnormal_coalescing): ... this function.
7104         (coalesce_ssa_name): Perform abnormal coalescing without computing
7105         live/conflict.
7106         (verify_ssa_coalescing_worker): New function.
7107         (verify_ssa_coalescing): Likewise.
7109 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7110             Jakub Jelinek  <jakub@redhat.com>
7112         PR sanitizer/65400
7113         * tsan.c (instrument_gimple): Clear tail call flag on
7114         calls.
7116 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
7118         PR sanitizer/65400
7119         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
7120         call in the return bb.
7121         (find_split_points): Add RETURN_BB argument, don't call
7122         find_return_bb.
7123         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
7124         if true append TSAN_FUNC_EXIT internal call after the call to
7125         the split off function.
7126         (execute_split_functions): Call find_return_bb here.
7127         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
7128         Adjust find_split_points and split_function calls.
7130 2015-03-18  DJ Delorie  <dj@redhat.com>
7132         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
7133         (iorqi3_virt): Likewise.
7135 2015-03-18  Tom de Vries  <tom@codesourcery.com>
7137         * tree-parloops.c (parallelize_loops): Make static.
7138         * tree-parloops.h (parallelize_loops): Remove extern declaration.
7140 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
7142         PR middle-end/64491
7143         Revert:
7144         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
7146         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
7147         condition would be removed due to undefined behaviour.
7149 2015-03-18  Martin Liska  <mliska@suse.cz>
7151         PR ipa/65432
7152         * cgraph.c (cgraph_node::get_create): Remove unnecessary
7153         xstrdup_for_dump wrapper.
7154         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
7155         sem_item::name.
7156         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
7157         with xstrdup_for_dump.
7158         (sem_variable::equals): Likewise.
7159         (sem_item_optimizer::read_section): Use symtab_node::name instead of
7160         sem_item::name.
7161         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
7162         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
7163         symtab_node::asm_name with xstrdup_for_dump.
7164         (congruence_class::dump): Use symtab_node::name instead of
7165         sem_item::name.
7166         * ipa-icf.h (symtab_node::name): Remove.
7167         (symtab_node::asm_name): Likewise.
7169 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
7171         PR tree-optimization/65450
7172         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
7173         function.
7174         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
7175         it instead of duplicate_ssa_name_ptr_info.
7177         PR target/65222
7178         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
7180 2015-03-18  Richard Biener  <rguenther@suse.de>
7182         * tree-data-ref.h (struct access_matrix): Remove.
7183         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7184         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7185         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
7186         (am_vector_index_for_loop): Likewise.
7187         (struct data_reference): Remove access_matrix member.
7188         (DR_ACCESS_MATRIX): Remove.
7189         (lambda_vector_new): Add comment.
7190         (lambda_matrix_new): Use XOBNEWVEC.
7192 2015-03-18  Richard Biener  <rguenther@suse.de>
7194         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
7195         (pass_ch::execute): Cleanup the CFG only if we did sth.
7196         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
7198 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7200         * expmed.c (synth_mult): Use std::swap instead of manually
7201         swapping algorithms.
7203 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
7205         PR target/65078
7206         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
7208 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
7210         PR target/65296
7211         * config/avr/avr.opt (-nodevicelib): New option.
7212         * doc/invoke.texi (AVR Options): Document it.
7213         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
7214         libgcc.a, libc.a, libm.a.
7215         * config/avr/specs.h: Same.
7216         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
7217         which don't (directly) depend on the device.  Print more help.
7218         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
7219         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
7220         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
7221         case of an error.
7222         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
7223         for specs file name.
7224         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
7225         * config/avr/avr-mcus.def: Adjust initializers and comments.
7227 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
7229         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
7230         DECL_ONE_ONLY to check if decl is one only.
7231         * ipa-split.c (consider_split): Limit splitt of one only functions.
7233 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
7235         PR tree-optimization/65427
7236         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
7237         functions.
7238         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
7240 2015-03-16  Marek Polacek  <polacek@redhat.com>
7242         * cgraph.h (add_new_static_var): Remove declaration.
7243         * varpool.c (add_new_static_var): Remove function.
7245 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
7247         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
7248         instead of vec<tree> * with vec_alloc and release for args.
7249         Adjust all users.
7251         PR middle-end/65431
7252         * omp-low.c (delete_omp_context): Only splay_tree_delete
7253         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
7254         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
7256 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
7258         PR sanitizer/64820
7259         * cfgexpand.c (align_base): New function.
7260         (alloc_stack_frame_space): Call it.
7261         (expand_stack_vars): Align prev_frame to be sure
7262         data->asan_vec elements aligned properly.
7264 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
7266         PR middle-end/65409
7267         * expr.c (store_field): Do not do a direct block copy if the source is
7268         a PARALLEL with BLKmode.
7270 2015-03-16  Tom de Vries  <tom@codesourcery.com>
7272         PR middle-end/65414
7273         Revert:
7274         2015-03-12  Tom de Vries  <tom@codesourcery.com>
7276         PR rtl-optimization/64895
7277         * lra-lives.c (check_pseudos_live_through_calls): Use
7278         actual_call_used_reg_set instead of call_used_reg_set, if available.
7280 2015-03-16  Alan Modra  <amodra@gmail.com>
7282         PR target/63150
7283         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
7284         Modify Z->r bswapdi splitter to use dest in place of scratch.
7285         In r->Z and Z->r bswapdi splitter rename word_high, word_low
7286         to word1, word2 and rearrange logic to suit.
7287         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
7288         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
7289         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
7290         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
7291         early clobber.
7293 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
7295         PR tree-optimization/65369
7296         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
7297         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
7298         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
7300         PR tree-optimization/65418
7301         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
7302         are casts in the first PLUS_EXPR operand, ensure tbias and
7303         *totallowp are in the inner type.
7305         PR rtl-optimization/65401
7306         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
7307         argument.  If true, adjust_address_nv of x with big-endian
7308         correction for the mode widening to GET_MODE (y).
7309         (make_field_assignment): Don't do MEM mode widening here.
7310         Use MEM_P instead of GET_CODE == MEM.
7312 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
7314         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
7315         the external decls.
7317 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7319         PR target/64600
7320         * config/arm/arm.c (arm_gen_constant, AND case): Use
7321         ARM_SIGN_EXTEND when constructing AND mask.
7323 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7325         * graph.c (print_graph_cfg): Make function names visible and append
7326         parenthesis to it.  Also make groups of basic blocks belonging to the
7327         same function visible.
7329 2015-03-12  Richard Biener  <rguenther@suse.de>
7331         PR middle-end/44563
7332         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
7333         to avoid quadratic behavior with inline expansion splitting blocks.
7334         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
7335         with the successor if the predecessor will be merged with it.
7336         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
7337         entry block with its successor.
7339 2015-03-13  Richard Biener  <rguenther@suse.de>
7341         PR middle-end/44563
7342         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
7343         (cleanup_tree_cfg_1): Do not call it.
7344         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
7345         (fixup_noreturn_call): Mark the stmt as control altering.
7346         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
7347         here.
7348         (pass_data_fixup_cfg): Produce a dump file.
7349         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
7350         (need_noreturn_fixup): New global.
7351         (pass_dominator::execute): Fixup queued noreturn calls.
7352         (optimize_stmt): Queue calls that became noreturn for fixup.
7353         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
7354         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
7355         (el_to_fixup): New global.
7356         (eliminate_dom_walker::before_dom_childre): Queue calls that
7357         became noreturn for fixup.
7358         (eliminate): Fixup queued noreturn calls.
7359         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
7360         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
7361         (substitute_and_fold_dom_walker::before_dom_children): Queue
7362         alls that became noreturn for fixup.
7363         (substitute_and_fold): Fixup queued noreturn calls.
7365 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
7367         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
7368         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
7369         are building; for methods check ODR type of class they belong to if
7370         they may lead to a polymorphic call.
7371         (sem_function::compare_polymorphic_p): Be bit smarter about testing
7372         when function may lead to a polymorphic call.
7373         (sem_function::compare_type_list): Remove.
7374         (sem_variable::equals): Update use of compatible_types_p.
7375         (sem_variable::parse_tree_refs): Remove.
7376         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
7377         cdtor.
7378         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
7379         matching here.
7380         (func_checker::compatible_polymorphic_types_p): Break out from ...
7381         (unc_checker::compatible_types_p): ... here.
7382         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
7383         Declare.
7384         (unc_checker::compatible_types_p): Update.
7385         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
7386         Remove.
7388 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7390         PR rtl-optimization/65235
7391         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
7392         When first element of vec_concat is const_int, calculate its size
7393         using second element.
7395 2015-03-12  Richard Biener  <rguenther@suse.de>
7397         PR middle-end/65270
7398         * fold-const.c (operand_equal_p): Fix ordering of resetting
7399         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
7401 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7403         * config/s390/s390.c (s390_reorg): Move code to output nops after label
7404         to s390_reorg ().
7405         (s390_asm_output_function_label): Likewise.
7406         * config/s390/s390.c (s390_asm_output_function_label):
7407         Fix function label alignment with -mhtopatch.
7408         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
7409         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
7410         ("nop_2_byte"): New define_insn.
7411         ("nop_4_byte"): Likewise.
7412         ("nop_6_byte"): Likewise.
7413         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
7414         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
7416 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
7418         PR target/65103
7419         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
7420         register.
7422 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
7424         PR target/65044
7425         * toplev.c (process_options): Restrict Pointer Bounds Checker
7426         usage with Address Sanitizer.
7428 2015-03-12  Richard Biener  <rguenther@suse.de>
7430         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
7431         to split on.
7432         * omp-low.c (expand_omp_taskreg): Split block before removing
7433         the stmt.
7434         (expand_omp_target): Likewise.
7435         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
7436         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
7437         stmt to split_block.
7439 2015-03-12  Tom de Vries  <tom@codesourcery.com>
7441         PR rtl-optimization/64895
7442         * lra-lives.c (check_pseudos_live_through_calls): Use
7443         actual_call_used_reg_set instead of call_used_reg_set, if available.
7445 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
7447         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
7448         (cgraph_node::remove): Likewise.
7449         (cgraph_node::get_untransformed_body): Likewise.
7450         * varpool.c (varpool_node::remove): Likewise.
7451         (varpool_node::get_constructor): Add sanity check.
7453 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
7455         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
7456         old GCC versions.
7457         (-fabi-compat-version): Likewise.
7458         (-ffriend-injection): Likewise.
7459         (-Wdeclaration-after-statement): Likewise.
7460         (-fomit-frame-pointer): Likewise.
7461         (-ftree-coalesce-inlined-vars): Likewise.
7462         (-fvisibility=): Likewise.
7463         * doc/extend.texi (Typeof): Likewise.
7464         (Zero Length): Likewise.
7465         (Escaped Newlines): Likewise.
7466         (Compound Literals): Likewise.
7467         (Function Attributes): Likewise.
7468         (Label Attributes): Likewise.
7469         (Type Attributes): Likewise.
7470         (Function Names): Likewise.
7471         (Other Builtins): Likewise.
7472         (Function Specific Option Pragmas): Likewise.
7473         (C++ Interface): Likewise.
7475 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
7477         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
7479 2015-03-11  Marek Polacek  <polacek@redhat.com>
7481         PR tree-optimization/65388
7482         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
7484 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
7486         PR target/65296
7487         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
7488         * configure: Regenerate.
7489         * config.in: Regenerate.
7490         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
7491         [-mn-flash]: Document it.
7492         [__AVR_ARCH__]: Document avrtiny.
7494         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
7495         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
7496         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
7498 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7500         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
7502 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7504         PR target/65242
7505         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
7506         allow reloads of PLUS in floating point/VSX registers.
7508 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
7510         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
7511         crypto_sha256_fast.
7512         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
7514 2015-03-11  Richard Biener  <rguenther@suse.de>
7516         PR tree-optimization/65310
7517         * tree-sra.c (build_ref_for_offset): Also preserve larger
7518         alignment.
7520 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
7522         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
7524 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
7526         PR target/65368
7527         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
7528         new define_expand.
7529         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
7531 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
7533         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
7534         (sem_function::equals_wpa): ... here.
7536 2015-03-10  Marek Polacek  <polacek@redhat.com>
7537             Jakub Jelinek  <jakub@redhat.com>
7539         PR sanitizer/65367
7540         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
7541         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
7542         separately.
7544 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
7546         PR target/65286
7547         * config/rs6000/t-linux: For powerpc64* target set
7548         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
7550 2015-03-10  Richard Biener  <rguenther@suse.de>
7552         PR middle-end/44563
7553         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
7554         for redirect_all_calls.
7556 2015-03-10  Marek Polacek  <polacek@redhat.com>
7558         * gdbinit.in (pcfun): Define and document.
7560 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
7562         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
7563         of libgomp-plugin.h.
7564         (find_target_compiler): Support a case when the path to gcc is
7565         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
7566         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
7567         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
7568         libgomp-plugin.h.
7569         (main): Use GCC_INSTALL_NAME as target_driver_name.
7570         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
7571         define.
7572         (mkoffload.o): Remove obsolete include path and defines.
7573         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
7575 2015-03-10  Richard Biener  <rguenther@suse.de>
7577         PR middle-end/63155
7578         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
7579         * tree-ssa-coalesce.c: Include timevar.h.
7580         (attempt_coalesce): Handle graph being NULL.
7581         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
7582         Split out abnormal coalescing to ...
7583         (perform_abnormal_coalescing): ... this function.
7584         (coalesce_ssa_name): Perform abnormal coalescing without computing
7585         live/conflict.
7586         (verify_ssa_coalescing_worker): New function.
7587         (verify_ssa_coalescing): Likewise.
7589 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
7591         PR target/65296
7592         * config.gcc (extra_options) [avr]: Remove.
7593         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
7594         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
7595         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
7597         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
7598         (-mmcu=): Add Var and MissingArgError properties.
7599         (-march=): Remove.
7600         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
7601         * config/avr/t-multilib: Regenerate.
7602         * config/avr/specs.h: New file.
7603         * config/avr/driver-avr.c: New file.
7604         * config/avr/genopt.sh: Remove file.
7605         * config/avr/avr-tables.opt: Remove file.
7606         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
7607         * config/avr/avr-c.c: Same.
7608         * avr-arch.h: Same.
7609         (avr_current_device): Remove proto.
7610         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
7611         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
7612         (EXTRA_SPEC_FUNCTIONS): Define.
7613         (avr_devicespecs_file): New specs function proto.
7614         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
7615         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
7616         (avr_current_device): Remove definition and usage.
7617         (avr_set_core_architecture): New static function.
7618         (avr_option_override): Use it.
7619         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
7620         (mcu_name): New static array.
7621         (comparator, avr_archs_str, avr_mcus_str): New static functions.
7622         (avr_inform_devices, avr_inform_core_architectures): New functions.
7623         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
7624         (avrlibc.h) [WITH_AVRLIBC]: Include.
7625         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
7626         (print_mcu): Rewrite from scratch.
7627         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
7628         Forward to avr-specific specs defined in device-specs file.
7629         * config/avr/t-avr (driver-avr.o): New rule.
7630         (avr-devices.o): Depend on avr-arch.h.
7631         (avr-mcus): No more depend on avr-tables.opt.
7632         (avr-tables.opt): Remove rule.
7633         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
7635 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7637         * c-family/c.opt (fchkp-use-wrappers): New.
7638         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
7639         (chkp_wrap_function): New.
7640         (chkp_build_instrumented_fndecl): Support wrapped
7641         functions.
7642         * doc/invoke.texi (-fcheck-pointer-bounds): New.
7643         (-fchkp-check-incomplete-type): New.
7644         (-fchkp-first-field-has-own-bounds): New.
7645         (-fchkp-narrow-bounds): New.
7646         (-fchkp-narrow-to-innermost-array): New.
7647         (-fchkp-optimize): New.
7648         (-fchkp-use-fast-string-functions): New.
7649         (-fchkp-use-nochk-string-functions): New.
7650         (-fchkp-use-static-bounds): New.
7651         (-fchkp-use-static-const-bounds): New.
7652         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
7653         (-fchkp-check-read): New.
7654         (-fchkp-check-write): New.
7655         (-fchkp-store-bounds): New.
7656         (-fchkp-instrument-calls): New.
7657         (-fchkp-instrument-marked-only): New.
7658         (-fchkp-use-wrappers): New.
7659         (-static-libmpx): New.
7660         (-static-libmpxwrappers): New.
7662 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7664         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
7665         (CHKP_SPEC): Add wrappers library.
7666         * c-family/c.opt (static-libmpxwrappers): New.
7668 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7670         * config/i386/linux-common.h (LIBMPX_LIBS): New.
7671         (LIBMPX_SPEC): New.
7672         (CHKP_SPEC): New.
7673         * gcc.c (CHKP_SPEC): New.
7674         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
7675         * c-family/c.opt (static-libmpx): New.
7677 2015-03-10  Richard Biener  <rguenther@suse.de>
7679         PR middle-end/44563
7680         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
7681         for compare_type.
7682         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
7683         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
7684         (cgraph_add_edge_to_call_site_hash): Likewise.
7685         (cgraph_node::get_edge): Likewise.
7686         (cgraph_edge::set_call_stmt): Likewise.
7687         (cgraph_edge::remove_caller): Likewise.
7689 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
7691         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
7692         (callee_saved_gpr_regs_size): ... this.
7693         (callee_saved_regs_first_regno): Rename to ...
7694         (callee_saved_first_gpr_regno): ... this.
7695         (callee_saved_regs_last_regno) Rename to ...
7696         (callee_saved_last_gpr_regno): ... this.
7697         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
7698         variables.
7699         (nds32_initial_elimination_offset): Likewise.
7700         (nds32_expand_prologue): Likewise.
7701         (nds32_expand_epilogue): Likewise.
7702         (nds32_expand_prologue_v3push): Likewise.
7703         (nds32_expand_epilogue_v3pop): Likewise.
7704         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7705         Adjust renamed variables.
7706         (nds32_output_stack_pop): Likewise.
7708 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7710         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
7711         code in comment.
7713 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
7715         PR rtl-optimization/65321
7716         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
7717         than shift mode.
7718         * var-tracking.c (use_narrower_mode): Likewise.
7720 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
7722         PR tree-optimization/65355
7723         * varasm.c (notice_global_symbol): Do not produce RTL.
7724         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
7725         anchor.
7726         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
7727         check for section anchors.
7729 2015-03-10  Alan Modra  <amodra@gmail.com>
7731         PR target/65286
7732         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
7733         to be single-arch by default.  Set cpu_is_64bit for powerpc64
7734         given --with-cpu=native.
7735         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
7736         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
7737         and powerpc64le.
7738         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
7739         rs6000_isa_flags rather than TARGET_64BIT.
7741 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
7742             Kaz Kojima  <kkojima@gcc.gnu.org>
7744         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
7746 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
7748         PR lto/65361
7749         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
7750         on a TREE_BINFO, instead use BINFO_TYPE.
7752 2015-03-09  Richard Biener  <rguenther@suse.de>
7754         PR middle-end/65270
7755         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
7756         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
7757         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
7758         of that.  When comparing dereferences compare alignment.
7759         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
7761 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
7763         * ipa-inline-analysis.c (check_callers): Check
7764         node->can_remove_if_no_direct_calls_and_refs_p.
7765         (growth_likely_positive): Reorganize to call
7766         can_remove_if_no_direct_calls_p later.
7767         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
7768         will_be_removed_from_program_if_no_direct_calls_p): Add
7769         will_inline parameter.
7770         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
7771         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7772         Handle inliner case correctly.
7774 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7776         PR tree-optimization/63743
7777         * cfgexpand.c (reorder_operands): Also reorder if only second operand
7778         had its definition forwarded by TER.
7780 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
7782         PR lto/65316
7783         * ipa-utils.h (types_odr_comparable): Add strict argument.
7784         * ipa-devirt.c: Fix whitespace;
7785         (odr_hasher): Remove.
7786         (odr_name_hasher, odr_vtable_hasher): New hashers.
7787         (can_be_name_hashed_p): New predicate.
7788         (hash_type_name): remove.
7789         (hash_odr_name): New.
7790         (odr_name_hasher::hash): new.
7791         (can_be_vtable_hashed_p): New.
7792         (hash_odr_vtable): New.
7793         (odr_vtable_hasher::hash): New.
7794         (types_same_for_odr): Add strict parameter.
7795         (types_odr_comparable): Likewise.
7796         (odr_name_hasher::equal): New.
7797         (odr_vtable_hasher::equal): New.
7798         (odr_name_hasher::remove): New.
7799         (odr_hash_type): Change to hash_table<odr_name_hasher>.
7800         (odr_vtable_hash_type): New.
7801         (odr_vtable_hash): New.
7802         (odr_subtypes_equivalent_p): Do strict comparsion.
7803         (add_type_duplicate): Merge type names; cleanup; avoid type
7804         duplicates.
7805         (register_odr_type): Initialize vtable hash.
7806         (build_type_inheritance_graph): Likewise
7807         (get_odr_type): Reorg to use two hashes.
7808         (dump_possible_polymorphic_call_targets): Move sanity check after debug
7809         output.
7810         (ipa_devirt): Dump type_inheritance_graph.
7811         (types_same_for_odr): Add strict mode.
7813 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7815         PR ipa/65334
7816         * cgraph.h (symtab_node): Add definition_alignment,
7817         can_increase_alignment_p and increase_alignment.
7818         * symtab.c (symtab_node::can_increase_alignment_p,
7819         increase_alignment_1, symtab_node::increase_alignment,
7820         symtab_node::definition_alignment): New.
7821         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
7822         can_increase_alignment_p.
7823         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
7824         * tree-vect-stmts.c (ensure_base_align): Likewise.
7825         * varasm.c (function_section_1): Use definition_alignment.
7826         (assemble_start_function): Likewise.
7827         (emit_local): likewise.
7828         (build_constant_desc): Likewsie.
7829         (output_constant_def_contents): Likewise.
7830         (place_block_symbol): Likewise.
7831         (output_object_block): Likewise.
7833 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7835         PR ipa/65316
7836         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
7837         when outputting debug.
7839 2015-03-07  Marek Polacek  <polacek@redhat.com>
7840             Martin Uecker  <uecker@eecs.berkeley.edu>
7842         PR sanitizer/65280
7843         * doc/invoke.texi: Update description of -fsanitize=bounds.
7845 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
7847         * tree-ssa-phiopt.c (neg_replacement): Remove.
7848         (tree_ssa_phiopt_worker): Remove negate optimization.
7850 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7852         PR ipa/65302
7853         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
7855 2015-03-06  Richard Biener  <rguenther@suse.de>
7857         PR middle-end/64928
7858         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
7859         and liveout_obstack members.
7860         (calculate_live_on_exit): Remove.
7861         (calculate_live_ranges): Change declaration.
7862         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
7863         (new_tree_live_info): Adjust.
7864         (calculate_live_ranges): Delete livein when not wanted.
7865         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
7866         Deal with partly deleted live info.
7867         (loe_visit_block): Remove temporary bitmap by using
7868         bitmap_ior_and_compl_into.
7869         (live_worklist): Adjust accordingly.
7870         (calculate_live_on_exit): Make static.
7871         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
7872         we do not need livein.
7874 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
7876         * real.c (real_from_string): Fix typo in assertion.
7878 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
7880         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
7881         the patch.
7883 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
7885         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
7887 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
7889         PR target/64342
7890         * lra-assigns.c (find_hard_regno_for): Rename to
7891         find_hard_regno_for_1.  Add a new parameter.
7892         (find_hard_regno_for): New function using find_hard_regno_for_1.
7894 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7896         PR rtl-optimization/65067
7897         * expmed.c (store_bit_field, extract_bit_field): Reworked the
7898         strict volatile bitfield handling.
7900 2015-03-05  Martin Liska  <mliska@suse.cz>
7902         PR ipa/65318
7903         * ipa-icf.c (sem_variable::equals): Compare variables types.
7905 2015-03-05  Richard Henderson  <rth@redhat.com>
7907         PR target/65121
7908         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
7909         correctly check weak symbol binding.
7911 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
7913         PR middle-end/65315
7914         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
7915         needed alignment.
7917 2015-03-05  Martin Liska  <mliska@suse.cz>
7919         * ipa-inline.c (inline_small_functions): Set default value to
7920         prevent warning during bootstrap.
7921         * tree.h: Add pragma guard that ignores false positives during
7922         bootstrap.
7924 2015-03-05  Richard Biener  <rguenther@suse.de>
7926         PR tree-optimization/65310
7927         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7928         Properly preserve alignment of the base of the access.
7930 2015-03-05  Richard Biener  <rguenther@suse.de>
7932         PR ipa/65270
7933         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
7934         Compare dependence info.
7936 2015-03-05  Richard Biener  <rguenther@suse.de>
7938         PR middle-end/65233
7939         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
7940         tree-into-ssa.h.
7941         (walk_ssa_copies): Revert last chage.  Instead do not walk
7942         SSA names registered for SSA update.
7944 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7946         PR ipa/65270
7947         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
7948         vtable references for their containing type.
7949         (sem_function::equals_wpa): Compare TYPE_RESTRICT
7950         and type attributes.
7952 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
7954         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
7955         before negating it.
7956         * stor-layout.c (finalize_record_size): Revert latest change.
7958 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
7960         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
7962 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7964         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
7965         for correct comdat handling.
7966         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7967         Likewise.
7968         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
7969         (used_from_object_file_p_worker): Remove.
7970         (cgraph_node::only_called_directly_or_alised): Add
7971         used_from_object_file_p.
7972         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
7973         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
7974         can_remove_if_no_direct_calls_and_refs_p.
7976 2015-03-04  Nick Clifton  <nickc@redhat.com>
7978         * config/rl78/rl78.h (enum reg_class): Remove real registers from
7979         General register class.
7980         * config/rl78/rl78-real.md: Replace general register constraints
7981         with real+virtual register constraints.
7983 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7985         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
7986         from checking for -mhtm option.
7988 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7990         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
7991         (struct ipa_sra_check_caller_data): Add has_thunk field.
7992         (ipa_sra_check_caller): Check for thunk.
7993         (ipa_sra_preliminary_function_checks): Give up on function with
7994         thunks.
7995         (ipa_early_sra): Use call_for_symbol_and_aliases.
7997 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7999         PR target/65249
8000         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
8001         called for __stack_chk_guard symbol.
8003 2015-03-03  DJ Delorie  <dj@redhat.com>
8005         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
8006         inc/dec.
8007         (*addhi3_real): Likewise.
8008         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
8009         pattern to match incrementing memory.
8010         * config/rl78/predicates.md (rl78_1_2_operand): New.
8011         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
8012         it's the same and only mem.
8013         (rl78_alloc_physical_registers_op2): If there's effectively only
8014         one MEM, transcode it into HL.
8015         (rl78_far_p): Reject addresses that aren't legitimate.
8017 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
8019         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
8020         negating it.
8022         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
8024 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
8026         Implement call0 ABI for xtensa
8027         * config/xtensa/constraints.md ("a" constraint): Include stack
8028         pointer in case of call0 ABI.
8029         ("q" constraint): Make empty in case of call0 ABI.
8030         ("D" constraint): Include stack pointer in case of call0 ABI.
8031         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
8032         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
8033         prototypes.
8034         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
8035         variable.
8036         (xtensa_regno_to_class): Make it a local variable in the
8037         function xtensa_regno_to_class.
8038         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
8039         macro, function prototype and implementation.
8040         (reg_nonleaf_alloc_order): Make it a local variable in the
8041         function order_regs_for_local_alloc.
8042         (xtensa_conditional_register_usage): New function.
8043         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
8044         (xtensa_valid_move): Allow direct moves to stack pointer
8045         register in call0 ABI.
8046         (xtensa_setup_frame_addresses): Only spill register windows in
8047         windowed ABI.
8048         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
8049         call0 ABI respectively.
8050         (xtensa_function_arg_1): Only mark a7 register for copying in
8051         windowed ABI.
8052         (xtensa_call_save_reg): New function.
8053         (compute_frame_size): Add space for callee saved register
8054         storage to the frame size in call0 ABI.
8055         (xtensa_expand_prologue): Generate code to set up stack frame
8056         and save callee-saved registers in call0 ABI.
8057         (xtensa_expand_epilogue): New function.
8058         (xtensa_set_return_address): New function.
8059         (xtensa_return_addr): Calculate return address in call0 ABI.
8060         (xtensa_builtin_saveregs): Only mark a7 register for copying and
8061         emit copying code in windowed ABI.
8062         (order_regs_for_local_alloc): Add preferred register allocation
8063         order for non-leaf function in call0 ABI.
8064         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
8065         (xtensa_asm_trampoline_template): Add trampoline generation for
8066         call0 ABI.
8067         (xtensa_trampoline_init): Add trampoline initialization for
8068         call0 ABI.
8069         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
8070         functions.
8071         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
8072         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
8073         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
8074         ABI call-used registers.
8075         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
8076         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
8077         call0 ABI.
8078         (REG_CLASS_CONTENTS): Include all registers into the preferred
8079         reload registers set, adjust the set in the
8080         xtensa_conditional_register_usage.
8081         (xtensa_regno_to_class): Drop variable declaration.
8082         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
8083         function.
8084         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
8085         respectively.
8086         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
8087         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
8088         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
8089         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
8090         location in call0 ABI.
8091         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
8092         stack adjustment size when handling exception.
8093         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
8094         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
8095         definitions.
8096         ("return" pattern): Generate ret.n/ret in call0 ABI.
8097         ("epilogue" pattern): Expand epilogue.
8098         ("nonlocal_goto" pattern): Use default in call0 ABI.
8099         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
8100         emit eh_set_a0_* depending on ABI.
8101         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
8102         ("eh_set_a0_call0", "blockage"): New patterns.
8104 2015-03-03  Martin Liska  <mliska@suse.cz>
8106         PR ipa/65287
8107         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
8109 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
8111         PR 65138/target
8112         * config/rs6000/rs6000-tables.opt: Regenerate table.
8114 2015-03-03  Renlin Li  <renlin.li@arm.com>
8116         * doc/md.texi (@item ^): Change ? into ^.
8118 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8120         * doc/tm.texi: Regenerated.
8122 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
8124         * builtins.c (expand_builtin_return_addr): Add
8125         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
8126         surrounding #ifdef.
8127         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
8128         definition to 1.
8129         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
8130         Likewise.
8131         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
8132         undefined.
8133         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
8134         paragraph.
8136 2015-03-03  Martin Jambor  <mjambor@suse.cz>
8137             Eric Botcazou  <ebotcazou@adacore.com>
8139         * tree-sra.c (ipa_sra_check_caller_data): New type.
8140         (has_caller_p): Removed.
8141         (ipa_sra_check_caller): New function.
8142         (ipa_sra_preliminary_function_checks): Use it.
8144 2015-03-03  Martin Liska  <mliska@suse.cz>
8146         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
8147         instead of if branch.
8149 2015-03-03  Martin Liska  <mliska@suse.cz>
8151         PR ipa/65282
8152         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
8154 2015-03-23  Jeff Law  <law@redhat.com>
8156         PR tree-optimization/65241
8157         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
8158         hash table if INSERT is true.
8160 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
8162         PR target/65296
8163         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
8165 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
8167         PR target/64331
8168         * config/avr/avr.c (context.h, tree-pass.h): Include them.
8169         (avr_pass_data_recompute_notes): New static variable.
8170         (avr_pass_recompute_notes): New class.
8171         (avr_register_passes): New static function.
8172         (avr_option_override): Call it.
8174 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
8176         Fix various problems with specs file generation.
8178         PR target/65296
8179         * config.gcc (extra_gcc_objs) [avr]: Remove.
8180         * config/avr/driver-avr.c: Remove file.
8181         * config/avr/t-avr (driver-avr.o): Remove rule.
8182         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
8183         INCLUDES to build.  Depend on TM_H.
8184         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
8185         build warnings.  Fix non-matching types and non-existing %-codes.
8186         (tm.h): Include.
8187         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
8188         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
8189         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
8190         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
8191         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
8192         (LIBGCC_SPEC): Remove definitions.
8194 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
8196         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
8197         to create a register in testing mode.
8199 2015-03-03  Martin Liska  <mliska@suse.cz>
8200             Jan Hubicka  <hubicka@ucw.cz>
8202         PR ipa/65263
8203         * cgraph.c (cgraph_node::has_thunk_p): New function.
8204         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
8205         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
8206         (sem_function::merge): Assert is changed.
8208 2015-03-03  Martin Liska  <mliska@suse.cz>
8209             Martin Jambor  <mjambor@suse.cz>
8211         PR ipa/65087
8212         * ipa-icf.c (sem_item_optimizer::execute): Change function
8213         return value to boolean.
8214         (sem_item_optimizer::merge_classes): Likewise.
8215         (ipa_icf_driver): Return TODO_remove_functions in case there's
8216         a merge operation processed.
8217         * ipa-icf.h: Change function return value to boolean.
8219 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8221         PR 65138/target
8222         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
8223         processor type for 64-bit little endian PowerPC.
8225         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8226         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
8227         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
8228         printing built-in mask so it does not pass NULL pointers.
8230         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
8231         -mcpu=powerpc64le.
8233 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
8235         PR target/58158
8236         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
8237         !ISA_HAS_FP_CONDMOVE.
8239 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
8241         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
8242         reload_completed.
8244 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
8246         * doc/invoke.texi (Options for Code Generation Conventions):
8247         Fix URL of DSO paper.
8249 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
8251         PR ipa/65130
8252         * ipa-inline.c (check_callers): Looks for recursion.
8253         (inline_to_all_callers): Give up on uninlinable or recursive edges.
8254         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
8255         summary of inline clones.
8256         (do_estimate_growth_1): Fix recursion check.
8258 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
8260         PR ipa/64988
8261         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
8262         comdat groups.
8264 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
8265             Aldy Hernandez  <aldyh@redhat.com>
8267         PR lto/65276
8268         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
8269         when checking TYPE_BINFO.
8271 2015-03-02  Richard Biener  <rguenther@suse.de>
8273         PR ipa/65270
8274         * ipa-icf-gimple.c: Include builtins.h.
8275         (func_checker::compare_memory_operand): Compare base alignment.
8277 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
8279         PR target/65184
8280         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
8281         are never passed by reference.
8283 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
8285         PR target/65183
8286         * tree-chkp.c (chkp_check_lower): Don't check against
8287         zero bounds for already instrumented functions.
8288         (chkp_check_upper): Likewise.
8289         (chkp_fini): Clean pass local data to avoid wrong reusage.
8291 2015-02-28  Martin Liska  <mliska@suse.cz>
8292             Jan Hubicka  <hubicka@ucw.cz>
8294         * ipa-icf.c (sem_variable::equals): Improve debug output;
8295         get variable constructor.
8296         (sem_variable::parse): Do not filter out too early; give up on
8297         volatile and register vars.
8298         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
8299         variables.
8300         * ipa-icf.h (sem_variable::init): Do not set ctor.
8301         (sem_variable::ctor): Remove.
8303 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
8305         PR middle-end/65233
8306         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
8308 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8310         * ipa-icf.c: Include stor-layout.h
8311         (sem_function::compare_cgraph_references): Rename to ...
8312         (sem_item::compare_cgraph_references): ... this one.
8313         (sem_variable::equals_wpa): New function
8314         (sem_variable::equals): Do not check stuff already verified by
8315         equals_wpa.
8316         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
8317         * ipa-icf.h (sem_item): Add compare_cgraph_references.
8318         (sem_function): Remove compare_cgraph_references.
8319         (sem_variable): Turns equals_wpa into non-inline.
8321 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8323         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
8324         (sem_item::add_expr): New function.
8325         (sem_function::hash_stmt): Handle operands of most statements.
8326         (sem_variable::get_hash): Hash the actual constructor.
8327         * ipa-icf.h (sem_item): Add add_expr.
8328         (sem_function): Update prototype of hash_stmt
8330 2015-02-28  Martin Liska  <mliska@suse.cz>
8331             Jan Hubicka  <hubicka@ucw.cz>
8333         PR ipa/65245
8334         * ipa-icf-gimple.c (func_checker::compare_function_decl):
8335         Remove.
8336         (func_checker::compare_variable_decl): Skip symtab vars.
8337         (func_checker::compare_cst_or_decl): Update.
8338         * ipa-icf.c (sem_function::parse): Do not consider aliases.
8339         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
8340         use correct symtab predicates.
8341         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
8342         (sem_variable::parse):  Update comment.
8343         (sem_item_optimizer::build_graph): Consider ultimate aliases
8344         for references.
8346 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8348         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
8349         of OBJ_TYPE_REF.
8351 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8353         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
8354         (sem_variable::merge) Likewise.
8356 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8358         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
8359         target; also match flag_ipa_devirt.
8361 2015-03-01  Martin Liska  <mliska@suse.cz>
8362             Jan Hubicka  <hubicka@ucw.cz>
8364         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
8365         Validate variable alignment.
8366         * ipa-icf.c (sem_function::equals_private): Be more precise
8367         about non-common function attributes.
8368         (sem_variable::equals): Likewise.
8370 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8372         PR ipa/65237
8373         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
8374         across COMDAT group boundary.
8376 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8378         PR ipa/65232
8379         * ipa-icf.c (clear_decl_rtl): New function.
8380         (sem_function::merge): Clear RTL before forming alias.
8381         (sem_variable::merge): Clear RTL before forming alias.
8383 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
8385         PR ipa/65236
8386         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
8388 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
8390         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
8391         to neon_to_gp<q>.
8393 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
8395         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
8396         a typo in the description.
8398 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
8400         PR target/64317
8401         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
8402         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
8403         * lra-constraints.c: Include "params.h".
8404         (EBB_PROBABILITY_CUTOFF): Use
8405         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
8406         (lra_inheritance): Use '<' instead of '<=' for
8407         EBB_PROBABILITY_CUTOFF.
8408         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
8409         Document change.
8411 2015-02-27  Martin Liska  <mliska@suse.cz>
8413         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
8414         vector length condition.
8416 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
8418         * doc/extend.texi (x86 transactional memory intrinsics):
8419         Reorganize discussion of _xbegin.  Clarify that the return
8420         value is a bit mask.  Expand example and move to end of section.
8422 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
8423             Aldy Hernandez  <aldyh@redhat.com>
8425         PR rtl-optimization/65220
8426         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
8428 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
8430         PR target/65032
8431         * lra-remat.c (update_scratch_ops): New.
8432         (do_remat): Call it.
8433         * lra.c (lra_register_new_scratch_op): New. Take code from ...
8434         (remove_scratches): ... here.
8435         * lra-int.h (lra_register_new_scratch_op): New prototype.
8437 2015-02-27  Marek Polacek  <polacek@redhat.com>
8439         PR c/65040
8440         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
8441         -Wformat-signedness anymore.
8443 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8445         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
8446         function.
8447         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
8449 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8451         * config/s390/s390.c (enum s390_builtin):
8452         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
8453         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
8454         (s390_init_builtins): Generate new builtin functions.
8455         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
8456         (s390_sfpc, s390_efpc): New pattern definitions.
8458 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8460         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
8461         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
8462         (s390_builtin_decls): New array.
8463         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
8464         (s390_builtin_decl): New function.
8465         (TARGET_BUILTIN_DECL): Define macro.
8467 2015-02-27  Richard Biener  <rguenther@suse.de>
8469         PR middle-end/63175
8470         * builtins.c (get_object_alignment_2): Make sure to re-apply
8471         the ANDed mask after recursing to its operand gets us a new
8472         misalignment bit position.
8474 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
8475             Martin Liska  <mliska@suse.cz>
8477         PR bootstrap/65150
8478         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
8479         Use address_matters_p.
8480         (redirect_all_callers, set_addressable): New functions.
8481         (sem_function::merge): Reorganize and fix merging issues.
8482         (sem_variable::merge): Likewise.
8483         (sem_variable::compare_sections): Remove.
8484         * common.opt (fmerge-all-constants, fmerge-constants): Remove
8485         Optimization flag.
8486         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
8487         redirect them.
8488         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
8489         decl is used.
8490         (address_matters_1): New function.
8491         (symtab_node::address_matters_p): New function.
8492         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
8493         check for merged flag.
8494         * cgraph.h (address_matters_p): Declare.
8495         (symtab_node::address_taken_from_non_vtable_p): Remove.
8496         (symtab_node::address_can_be_compared_p): New method.
8497         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
8498         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
8499         Remove.
8500         (comdat_can_be_unshared_p_1) Use address_matters_p.
8501         (update_vtable_references): Fix formating.
8502         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
8503         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
8504         * cgraphclones.c: Preserve merged and icf_merged flags.
8506 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
8508         * doc/extend.texi (Function Attributes): Fix spelling and typos.
8509         (Label Attributes): Likewise.
8510         (Cilk Plus Builtins): Likewise.
8511         (ARC SIMD Built-in Functions): Likewise.
8512         (ARM C Language Extensions (ACLE)): Likewise.
8513         (PowerPC Built-in Functions): Likewise.
8514         (PowerPC Hardware Transactional Memory Built-in Functions):
8515         Likewise.
8517 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
8519         PR tree-optimization/65216
8520         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
8521         new stmt and new SSA_NAME for lhs whenever the arguments have
8522         changed and weren't just swapped.  Fix comment typo.
8524         PR tree-optimization/65215
8525         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
8526         for PDP endian targets.
8527         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
8528         Fix up formatting issues.
8529         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
8530         size is smaller than the original, adjust MEM_REF offset by the
8531         difference of sizes.  Use is_gimple_mem_ref_addr instead of
8532         is_gimple_min_invariant test to avoid adding address temporaries.
8534 2015-02-26  Martin Liska  <mliska@suse.cz>
8535             Jan Hubicka  <hubicka@ucw.cz>
8537         PR ipa/64693
8538         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
8539         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
8540         (sem_item_optimizer::process_cong_reduction): Include division by
8541         sensitive references.
8542         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
8543         * ipa-ref.c (ipa_ref::address_matters_p): New function.
8544         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
8546 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
8548         PR target/65192
8549         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
8550         Remove.
8551         * config/avr/avr.c: Same.
8552         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
8553         Refuse any constant address not in 0..0xbf.
8554         * config/avr/avr.md (*mov<mode>, *movsf): Remove
8555         tiny_valid_direct_memory_access_range from insn conditions.
8556         (mov<mode>): Don't special-case expansion of avrtiny addresses.
8558 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
8560         PR target/61142
8561         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
8562         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
8563         * config/sh/predicates.md (const_logical_operand): New predicate.
8564         * config/sh/sh.md: Add new peephole2 patterns.
8566 2015-02-26  Marek Polacek  <polacek@redhat.com>
8568         PR ipa/65008
8569         * ipa-inline.c (early_inliner): Recompute inline parameters.
8571 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8573         PR target/65171
8574         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
8575         instructions with TImode operands are included in the analysis.
8577 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
8579         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
8580         of an EDGE_FSM_THREAD.
8582 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8584         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
8586 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
8588         PR debug/46102
8589         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
8591 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
8593         PR tree-optimization/65048
8594         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
8595         (thread_through_all_blocks): Call valid_jump_thread_path.
8596         Remove invalid FSM jump-thread paths.
8598 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
8600         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
8601         (ipa_write_optimization_summaries): Likewise.
8602         * tree-streamer.h: Include data-streamer.h.
8603         (streamer_mode_table): Declare extern variable.
8604         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
8605         * lto-streamer-out.c (lto_output_init_mode_table,
8606         lto_write_mode_table): New functions.
8607         (produce_asm_for_decls): Call lto_write_mode_table when streaming
8608         offloading LTO.
8609         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
8610         (lto_create_simple_input_block): Add mode_table argument to the
8611         lto_input_block constructors.
8612         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
8613         Likewise.
8614         * data-streamer-in.c (string_for_index): Likewise.
8615         * ipa-inline-analysis.c (inline_read_section): Likewise.
8616         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
8617         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8618         * lto-streamer-in.c (lto_read_body_or_constructor,
8619         lto_input_toplevel_asms): Likewise.
8620         (lto_input_mode_table): New function.
8621         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
8622         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
8623         Use bp_pack_machine_mode.
8624         * real.h (struct real_format): Add name field.
8625         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
8626         (class lto_input_block): Add mode_table member.
8627         (lto_input_block::lto_input_block): Add mode_table_ argument,
8628         initialize mode_table.
8629         (struct lto_file_decl_data): Add mode_table field.
8630         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
8631         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
8632         unpack_ts_decl_common_value_fields,
8633         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
8634         * tree-streamer.c (streamer_mode_table): New variable.
8635         * real.c (ieee_single_format, mips_single_format,
8636         motorola_single_format, spu_single_format, ieee_double_format,
8637         mips_double_format, motorola_double_format,
8638         ieee_extended_motorola_format, ieee_extended_intel_96_format,
8639         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
8640         ibm_extended_format, mips_extended_format, ieee_quad_format,
8641         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
8642         decimal_single_format, decimal_double_format, decimal_quad_format,
8643         ieee_half_format, arm_half_format, real_internal_format): Add name
8644         field.
8645         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8647 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
8649         PR target/65161
8650         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
8651         reordering for selective scheduling.
8653 2015-02-26  Terry Guo  <terry.guo@arm.com>
8655         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
8656         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
8657         (arm_arch_no_volatile_ce): Declare new global variable.
8658         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
8659         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
8660         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
8661         (TARGET_NO_VOLATILE_CE): New macro.
8662         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
8663         volatile memory access in IT block
8665 2015-02-25  Kai Tietz  <ktietz@redhat.com>
8667         PR tree-optimization/61917
8668         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
8669         that reduc_def_stmt is null.
8671 2015-02-25  Martin Liska  <mliska@suse.cz>
8673         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
8674         hard register variables.
8676 2015-02-25  Kai Tietz  <ktietz@redhat.com>
8678         PR target/64212
8679         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
8680         (symtab::noninterposable_alias): Likewise.
8682 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
8684         PR target/65167
8685         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
8686         bounds registers.
8687         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
8689 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
8691         PR target/64997
8692         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
8693         as split condition; force split via '#' in output pattern.
8695 2015-02-25  Richard Biener  <rguenther@suse.de>
8696             Kai Tietz  <ktietz@redhat.com>
8698         PR tree-optimization/61917
8699         * tree-vect-loop.c (vectorizable_reduction): Allow
8700         vect_internal_def without reduction to exit graceful.
8702 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
8704         PR target/65196
8705         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
8706         only with NONDEBUG_INSN_P.
8708 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
8710         Use variadic macros with avr-log.c.
8712         * config/avr/avr-protos.h (avr_vdump): New prototype.
8713         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
8714         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
8715         * config/avr/avr-log.c: Adjust comments.
8716         (avr_vdump): New function.
8717         (avr_vadump): Pass caller as 2nd argument instead of format string.
8718         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
8719         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
8721 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
8723         PR lto/64374
8724         * target.def (target_option_stream_in): New target hook.
8725         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
8726         targetm.target_option.post_stream_in if non-NULL.
8727         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
8728         * doc/tm.texi: Updated.
8729         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
8730         function.
8731         (TARGET_OPTION_POST_STREAM_IN): Redefine.
8733 2015-02-24  Jeff Law  <law@redhat.com>
8735         PR target/65117
8736         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
8737         of operand 0 and operand 2.
8738         (zero_cost_loop_end, loop_end): Similarly.
8740 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
8742         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
8743         CXX_MEM_STAT_INFO.
8745 2015-02-24  DJ Delorie  <dj@redhat.com>
8747         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
8748         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
8749         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
8750         instead of hardcoding SImode.
8752 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
8754         * omp-low.c (create_omp_child_function): Tag entrypoint
8755         functions with a special attribute.
8757 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8759         PR target/65058
8760         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
8762 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
8764         PR rtl-optimization/65123
8765         * lra-remat.c (operand_to_remat): Check hard regs in insn
8766         definition too.
8768 2015-02-24  Nick Clifton  <nickc@redhat.com>
8770         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
8771         to the assembler.
8773 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
8775         PR libgomp/64625
8776         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
8777         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
8778         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
8779         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
8780         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
8781         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
8782         (BUILT_IN_GOACC_PARALLEL): Specify as
8783         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
8784         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
8785         * builtin-types.def
8786         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8787         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8788         Remove function types.
8789         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
8790         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8791         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8792         New function types.
8794 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
8796         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
8798 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
8800         PR tree-optimization/65170
8801         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
8802         if val[1] < 0, clear also val[2] and return 3.
8804 2015-02-24  Alan Modra  <amodra@gmail.com>
8806         PR target/65172
8807         * config/rs6000/rs6000.c (get_memref_parts): Only return true
8808         when *base is a reg.  Handle nested plus addresses.  Simplify
8809         pre_modify test.
8811 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
8813         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
8814         use natural alignment when optimizing for size.
8816 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
8818         PR target/65153
8819         * config/sh/sh.md (movsicc_true+3): Remove peephole.
8820         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
8821         * config/sh/sh.c (replace_n_hard_rtx): Remove.
8823 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
8825         PR fortran/63427
8826         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
8827         too big for a wide_int.  Implement missing wrapping operation.
8829 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
8831         PR target/65163
8832         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
8833         instead of const_int 4294901760.
8835 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
8837         * config/avr/t-avr: Fix typo in comment.
8839 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
8841         * doc/rtl.texi (fma): Clarify documentation.
8843 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
8845         PR debug/58123
8846         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
8847         over input_location.
8849 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
8851         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
8852         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
8853         restrict alignments to absolute_biggest_alignment.
8854         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
8855         Define.
8856         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
8857         * doc/tm.texi: Regenerate.
8858         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
8860 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
8862         PR target/64172
8863         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
8865 2015-02-20  Richard Biener  <rguenther@suse.de>
8867         PR tree-optimization/65136
8868         * tree-ssa-propagate.c: Include cfgloop.h.
8869         (replace_phi_args_in): Avoid replacing loop latch edge PHI
8870         arguments with constants.
8872 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
8873             Martin Liska  <mliska@suse.cz>
8875         PR target/63892
8876         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
8877         don't try to create_thunk if stdarg_p.  If
8878         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
8879         redirect_callers if possible.
8880         (sem_item_optimizer::execute): Call unregister_hooks here...
8881         (ipa_icf_driver): ... instead of here.
8883 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8885         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
8886         Mark operand 0 as earlyclobber in 2nd alternative.
8887         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
8888         Write negated shift amount into QI lowpart operand 0 and use it
8889         in the shift step.
8890         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8892 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
8894         * cgraph.h (clone_function_name_1): Declare.
8895         * cgraphclones.c (clone_function_name_1): New function.
8896         (clone_function_name): Use it.
8897         * lto-partition.c: Include "stringpool.h".
8898         (must_not_rename, maybe_rewrite_identifier)
8899         (validize_symbol_for_target): New static functions.
8900         (privatize_symbol_name): Use must_not_rename.
8901         (promote_symbol): Call validize_symbol_for_target.
8902         (lto_promote_cross_file_statics): Likewise.
8903         (lto_promote_statics_nonwpa): Likewise.
8905 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
8907         PR target/64452
8908         * config/avr/avr.md (pushhi_insn): New insn.
8909         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
8911 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
8912             Jakub Jelinek  <jakub@redhat.com>
8914         * tree-streamer.c (preload_common_nodes): Don't preload
8915         TI_VA_LIST* for offloading.
8916         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
8917         in_lto_p.
8919 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
8921         * config/pa/pa.c (pa_emit_move_sequence): Always force
8922         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
8923         note on insn.
8925         * config/pa/pa.c (pa_reloc_rw_mask): New function.
8926         (TARGET_ASM_RELOC_RW_MASK): Define.
8927         (pa_cannot_force_const_mem): Revert previous change.
8929 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
8930             Jan Hubicka  <hubicka@ucw.cz>
8932         PR ipa/65028
8933         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
8934         across jump functions.
8936 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
8938         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
8940 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
8942         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
8944 2015-02-19  Richard Henderson  <rth@redhat.com>
8946         PR middle-end/65074
8947         * varasm.c (default_binds_local_p_2): Don't test node->definition;
8948         test DECL_EXTERNAL independent of symtab_node.
8950 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
8952         PR lto/65012
8953         * varpool.c (varpool_node::get_constructor): Return early
8954         if this->lto_file_data is NULL.
8956 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8958         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
8959         (rank_for_schedule_debug): Update.
8960         (ready_sort): Make static.  Move sorting logic to ...
8961         (ready_sort_debug, ready_sort_real): New static functions.
8962         (schedule_block): Sort both debug insns and real insns in preparation
8963         for ready list trimming.  Improve debug output.
8964         * sched-int.h (ready_sort): Remove global declaration.
8966 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
8968         * ipa-icf.c (sem_function::equals_private): Adjust.
8969         (sem_function::bb_dict_test): Take a vec<int> * instead of
8970         auto_vec<int>.
8971         * ipa-icf.h (bb_dict_test): Likewise.
8973 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8975         PR gcov-profile/64634
8976         * tree-eh.c (frob_into_branch_around): Fix up typos
8977         in function comment.
8978         (lower_catch): Put eh_seq resulting from EH lowering of
8979         the cleanup sequence after the cleanup rather than before it.
8981 2015-02-18  Tom de Vries  <tom@codesourcery.com>
8983         * common.opt (fstdarg-opt): New option.
8984         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
8985         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
8986         (@item -fstdarg-opt): New item.
8988 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8990         PR target/65064
8991         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
8992         for common symbols.
8994 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8996         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
8997         insn-modes.h.
8998         (ALL_HOST_OBJS): Add mkoffload.o.
8999         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
9001 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
9003         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
9004         (compare_virtual_tables): Be smarter about skipping typeinfos;
9005         do sane output on virtual table table mismatch.
9006         (warn_odr): Be ready for forward declarations of enums;
9007         output sane info on base mismatch and virtual table mismatch.
9008         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
9009         when only one type is polymorphic.
9010         (get_odr_type): Fix hashtable corruption.
9011         (dump_odr_type): Dump mangled names.
9013 2015-02-18  Richard Biener  <rguenther@suse.de>
9015         PR tree-optimization/65063
9016         * tree-predcom.c (determine_unroll_factor): Return 1 if we
9017         have replaced looparound PHIs.
9019 2015-02-18  Martin Liska  <mliska@suse.cz>
9021         * lto-streamer.c (lto_streamer_init): Encapsulate
9022         streamer_check_handled_ts_structures with checking macro.
9024 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
9026         PR ipa/65087
9027         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
9028         section if !implicit_section.
9029         (cgraph_node::create_version_clone_with_body): Likewise.
9030         * trans-mem.c (ipa_tm_create_version): Likewise.
9032 2015-02-18  Richard Biener  <rguenther@suse.de>
9034         PR tree-optimization/62217
9035         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
9036         into BIVs.
9038 2015-02-18  Marek Polacek  <polacek@redhat.com>
9040         PR sanitizer/65081
9041         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
9042         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
9043         is in range [-16K, -1].  Don't issue run-time error if
9044         (ptr > ptr + offset).
9046 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
9048         * doc/install.texi (nvptx-*-none): New section.
9049         * doc/invoke.texi (Nvidia PTX Options): Likewise.
9050         * config/nvptx/nvptx.opt: Update.
9052         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
9053         (access_check): New functions, copied from
9054         config/i386/intelmic-mkoffload.c.
9055         (main): For non-installed testing, look in all COMPILER_PATHs for
9056         GCC_INSTALL_NAME.
9058         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
9060 2015-02-18  Andrew Pinski  <apinski@cavium.com>
9061             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9063         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
9064         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
9066 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
9068         * ipa-visibility.c (function_and_variable_visibility): Only
9069         check locality if node is not already local.
9070         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
9071         call_for_symbol_and_aliases instead of
9072         call_for_symbol_thunks_and_aliases.
9073         (ipa_inline): Likewise.
9074         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9075         first walk aliases.
9076         * ipa.c (symbol_table::remove_unreachable_nodes): Use
9077         call_for_symbol_and_aliases.
9078         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
9079         (ipa_propagate_frequency_1): Use it; use opt_for_fn
9080         (ipa_propagate_frequency): Update.
9081         (ipa_profile): Add opt_for_fn gueards.
9083 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
9085         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
9086         * doc/invoke.texi (SH options): Document it.
9087         * config/sh/sh.c (sh_insn_length_adjustment): Check
9088         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
9090 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9092         * common.opt (fipa-cp-alignment): New.
9093         * ipa-cp.c (ipcp_store_alignment_results): Check
9094         flag_ipa_cp_alignment.
9095         * opts.c (default_options_table): Enable -fipa-cp-alignment for
9096         -O2.
9097         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
9098         * doc/invoke.texi: Document -fipa-cp-alignment.
9100 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
9102         PR target/64793
9103         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
9104         to nil.  Adjust comments.
9106 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
9108         * ipa-visibility.c (function_and_variable_visibility): Only
9109         check locality if node is not already local.
9110         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
9111         call_for_symbol_and_aliases instead of
9112         call_for_symbol_thunks_and_aliases.
9113         (ipa_inline): Likewise.
9114         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9115         first walk aliases.
9116         * ipa.c (symbol_table::remove_unreachable_nodes): Use
9117         call_for_symbol_and_aliases.
9118         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
9119         (ipa_propagate_frequency_1): Use it; use opt_for_fn
9120         (ipa_propagate_frequency): Update.
9121         (ipa_profile): Add opt_for_fn guards.
9123 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9125         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
9126         skipping of "strange" tokens.
9128 2015-02-17  Jeff Law  <law@redhat.com>
9130         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
9131         obsolete comment.
9133 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
9135         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
9136         as forcing a HARD_DEP between instructions, thereby
9137         disallowing rewriting to break dependencies.
9139 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
9141         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
9142         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
9143         variables in boundary that have no inlitalizer encoded and are
9144         not aliases.
9145         * varasm.c (default_binds_local_p_2): External definitions do not
9146         count as definitions here.
9148 2015-02-16  Jeff Law  <law@redhat.com>
9150         PR tree-optimization/64823
9151         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
9152         statements.
9153         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
9154         threading through blocks with PHIs, but no statements.
9155         (thread_through_normal_block): Distinguish between blocks where
9156         we did not process all the statements and blocks with no statements.
9158 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
9159             James Greenhalgh  <james.greenhalgh@arm.com>
9161         PR ipa/64963
9162         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
9163         section if not linkonce.  Fix up formatting.
9164         (cgraph_node::create_version_clone_with_body): Copy section.
9165         * trans-mem.c (ipa_tm_create_version): Likewise.
9167 2015-02-16  Richard Biener  <rguenther@suse.de>
9169         PR tree-optimization/65077
9170         * tree-ssa-structalias.c (get_constraint_for_1): Handle
9171         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
9172         (find_func_aliases): Allow float values to carry pointers again.
9174 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
9176         * doc/install.texi (Specific): Reorder targets list to put
9177         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
9178         from the top menu.
9180 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
9181             David Edelsohn  <dje.gcc@gmail.com>
9183         PR target/65058
9184         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
9185         mapping class to external variable or function reference.
9186         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
9187         mapping class.
9189 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
9191         PR target/53348
9192         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
9193         ASM_WEAKEN_DECL if defined.
9195 2015-02-16  Richard Biener  <rguenther@suse.de>
9197         PR lto/65015
9198         * varasm.c (default_file_start): For LTO produced units
9199         emit <artificial> as file directive.
9201 2015-02-16  Richard Biener  <rguenther@suse.de>
9203         PR tree-optimization/63593
9204         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
9205         stmts and releasing SSA names until...
9206         (execute_pred_commoning): ... after processing all chains.
9208 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
9210         PR ipa/65059
9211         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
9212         external functions.
9214 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
9216         * doc/bugreport.texi: Adjust section titles throughout the file
9217         to use "Title Case".
9218         * doc/extend.texi: Likewise.
9219         * doc/gcov.texi: Likewise.
9220         * doc/implement-c.texi: Likewise.
9221         * doc/implement-cxx.texi: Likewise.
9222         * doc/invoke.texi: Likewise.
9223         * doc/objc.texi: Likewise.
9224         * doc/standards.texi: Likewise.
9225         * doc/trouble.texi: Likewise.
9227 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
9229         * cgraph.h (symtab_node::has_aliases_p): Simplify.
9230         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
9231         * tree.c (lookup_binfo_at_offset): Make static.
9232         (get_binfo_at_offset): Do not shadow offset; add explanatory
9233         comment.
9235 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
9237         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
9238         for all floading point loads and stores except those using a register
9239         index address.
9240         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
9241         to a register.
9243 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
9245         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
9246         (do_estimate_growth_1): Record if any uninlinable edge was seen.
9247         (estimate_growth): Handle uninlinable edges correctly.
9248         (check_callers): New.
9249         (growth_likely_positive): Handle aliases correctly.
9251 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
9253         * ipa-chkp.c: Use iterate_direct_aliases.
9254         * symtab.c (resolution_used_from_other_file_p): Move inline.
9255         (symtab_node::create_reference): Fix formating.
9256         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
9257         (symtab_node::iterate_reference): Move inline.
9258         (symtab_node::iterate_referring): Move inline.
9259         (symtab_node::iterate_direct_aliases): Move inline.
9260         (symtab_node::used_from_object_file_p_worker): Inline into ...
9261         (symtab_node::used_from_object_file_p): ... this one; move inline.
9262         (symtab_node::call_for_symbol_and_aliases): Move inline;
9263         use iterate_direct_aliases.
9264         (symtab_node::call_for_symbol_and_aliases_1): New method.
9265         (cgraph_node::call_for_symbol_and_aliases): Move inline;
9266         use iterate_direct_aliases.
9267         (cgraph_node::call_for_symbol_and_aliases_1): New method.
9268         (varpool_node::call_for_node_and_aliases): Rename to ...
9269         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
9270         use iterate_direct_aliases.
9271         (varpool_node::call_for_symbol_and_aliases_1): New method.
9272         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
9273         (ipa_discover_readonly_nonaddressable_var): Update.
9274         * ipa-devirt.c: Fix formating.
9275         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
9276         Move inline.
9277         (cgraph_node::call_for_symbol_and_aliases): Move inline.
9278         (cgraph_node::call_for_symbol_and_aliases_1): New function..
9279         * cgraph.h (used_from_object_file_p_worker): Remove.
9280         (resolution_used_from_other_file_p): Move inline.
9281         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
9282         (symtab_node::iterate_reference): Move inline.
9283         (symtab_node::iterate_referring): Move inline.
9284         (symtab_node::iterate_direct_aliases): Move inline.
9285         (symtab_node::used_from_object_file_p_worker): Inline into ...
9286         (symtab_node::used_from_object_file_p): Move inline.
9287         * tree-emutls.c (ipa_lower_emutls): Update.
9288         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
9289         (varpool_node::call_for_node_and_aliases): Remove.
9291 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
9293         PR tree-optimization/62209
9294         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
9295         op == range->exp, insert seq and gimplified code after labels
9296         instead of after the phi.
9298 2015-02-13  Jeff Law  <law@redhat.com>
9300         PR bootstrap/65060
9301         Revert my change for tree-optimization/64823.
9303 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
9305         PR tree-optimization/65053
9306         * tree-ssa-phiopt.c (value_replacement): When moving assign before
9307         cond, either reset VR on lhs or set it to phi result VR.
9309 2015-02-13  Jeff Law  <law@redhat.com>
9311         PR tree-optimization/64823
9312         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
9313         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
9314         threading through blocks with PHIs, but no statements.
9315         (thread_through_normal_block): Distinguish between blocks where
9316         we did not process all the statements and blocks with no statements.
9318         PR rtl-optimization/47477
9319         * match.pd (convert (plus/minus (convert @0) (convert @1): New
9320         simplifier to narrow arithmetic.
9322 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
9324         PR ipa/65028
9325         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
9326         polymorphic call info when type is not known to be preserved.
9328 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
9330         PR ipa/65028
9331         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
9332         (inline_call): Use it.
9334 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
9336         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
9337         GOMP_DEVICE_NVIDIA_PTX.
9339 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
9341         PR ipa/65034
9342         * stmt.c (emit_case_nodes): Use void_type_node instead of
9343         NULL_TREE as LABEL_DECL type.
9345 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
9347         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
9348         constraints.
9349         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
9350         symbolic references to data to be forced to constant memory on the
9351         SOM target.
9353 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
9355         PR tree-optimization/65002
9356         * tree-cfg.c (pass_data_fixup_cfg): Don't update
9357         SSA on start.
9358         * tree-sra.c (some_callers_have_no_vuse_p): New.
9359         (ipa_early_sra): Reject functions whose callers
9360         assume function is read only.
9362 2015-02-13  Richard Biener  <rguenther@suse.de>
9364         PR lto/65015
9365         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
9366         for LTO produced CUs.
9368 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
9370         PR tree-optimization/64705
9371         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
9372         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
9373         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
9374         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
9375         expand_simple_operations.
9377 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
9378             Richard Henderson  <rth@redhat.com>
9380         PR rtl/32219
9381         * cgraphunit.c (cgraph_node::finalize_function): Set definition
9382         before notice_global_symbol.
9383         (varpool_node::finalize_decl): Likewise.
9384         * varasm.c (default_binds_local_p_2): Rename from
9385         default_binds_local_p_1, add weak_dominate argument.  Use direct
9386         returns instead of assigning to local variable.  Unify varpool and
9387         cgraph paths via symtab_node.  Reject undef weak variables before
9388         testing visibility.  Reorder tests for simplicity.
9389         (default_binds_local_p): Use default_binds_local_p_2.
9390         (default_binds_local_p_1): Likewise.
9391         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
9392         via symtab_node.
9393         (default_elf_asm_output_external): Emit visibility when specified.
9395 2015-02-13  Alan Modra  <amodra@gmail.com>
9397         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
9398         code setting up r11 for out-of-line fp restore.
9400 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
9402         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
9403         (muser-mode): Likewise.
9405 2015-02-13  Alan Modra  <amodra@gmail.com>
9407         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
9408         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
9410 2015-02-12  David Howells  <dhowells@redhat.com>
9412         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
9413         warning.
9414         * tree-ssa-uninit.c (dump_predicates): Likewise.
9415         * opts.c (print_filtered_help): Likewise.
9417 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
9419         * dwarf2out.c (output_die): Use "%s", name instead of name to
9420         avoid -Wformat-security warning.
9422         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
9423         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
9424         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
9425         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
9427 2015-02-12  Jason Merrill  <jason@redhat.com>
9429         * common.opt (-flifetime-dse): New.
9431 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
9433         PR sanitizer/65019
9434         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
9436         PR tree-optimization/65014
9437         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
9438         use original second operand of arg0 or arg1 instead of
9439         that adjusted by STRIP_NOPS.
9441 2015-02-11  Jeff Law  <law@redhat.com>
9443         PR target/63347
9444         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
9445         that needs to be queued, just queue it for a single cycle.
9447 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
9449         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
9450         bodies of thunks; comment on why.
9451         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
9452         symbols are extern.
9454 2015-02-11  Richard Henderson  <rth@redhat.com>
9456         PR sanitize/65000
9457         * tree-eh.c (mark_reachable_handlers): Mark source and destination
9458         regions of __builtin_eh_copy_values.
9460 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
9462         PR middle-end/65003
9463         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
9464         ultimate alias is MEM with SYMBOL_REF satisfying
9465         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
9466         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
9468 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
9470         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
9471         "diagnostic-core.h".
9472         (main): Initialize progname, and call diagnostic_initialize.
9474         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
9475         instead of __OPENMP_TARGET__.
9477         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
9478         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
9479         hard-coding PTX_ID.
9481 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
9483         * doc/sourcebuild.texi (pie_enabled): Document.
9485 2015-02-11  Martin Liska  <mliska@suse.cz>
9487         PR ipa/64813
9488         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
9489         a return value for call to a function that is noreturn.
9491 2015-02-11  Richard Biener  <rguenther@suse.de>
9493         PR lto/65015
9494         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
9495         and -fresolution.
9497 2015-02-11  Andrew Pinski  <apinski@cavium.com>
9499         PR target/64893
9500         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9501         Change the first argument type to size_type_node and add another
9502         size_type_node.
9503         (aarch64_simd_expand_builtin): Handle the new argument to
9504         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
9505         print an out when the first two arguments are not
9506         nonzero integer constants.
9507         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
9508         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
9510 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
9512         PR target/61925
9513         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
9514         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
9515         (ix86_set_current_function): Rewritten.
9516         (ix86_add_new_builtins): Temporarily clear current_target_pragma
9517         when creating builtin fndecls.
9519 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
9521         PR ipa/65005
9522         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
9523         function.
9524         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
9525         have no comdat group.
9526         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
9527         (lto_output_varpool_node): Always output alias info.
9528         (output_refs): Output refs of boundary aliases, too.
9529         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
9530         (output_symtab): Output call eges in thunks in boundary.
9531         (get_alias_symbol): Remove.
9532         (input_node, input_varpool_node): Do not special case weakrefs.
9533         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
9534         alias and thunks targets in the boundary; do not take removed symbols
9535         from their comdat groups.
9536         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
9537         (cgraph_node::global_info): Remove.
9538         (cgraph_node::rtl_info): Look through aliases and thunks.
9539         * cgrpah.h (global_info): Remove.
9540         (non_local_p): Remove.
9542 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
9543             Sandra Loosemore  <sandra@codesourcery.com>
9545         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
9546         to inline asm.  List dialects in proper order.
9548 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
9549             Sandra Loosemore  <sandra@codesourcery.com>
9551         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
9553 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
9555         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
9556         modified) reference to Solaris.
9558 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
9560         * doc/extend.texi (Extended Asm): Fix typos.
9562 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
9564         PR sanitizer/65004
9565         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
9567 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
9569         PR target/64661
9570         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9571         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9572         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
9573         * config/sh/constraints.md (Ara, Add): New constraints.
9574         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
9575         predicates.
9576         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
9577         atomic_mem_operand_0.  Don't use force_reg on the memory address.
9578         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
9579         Sra constraint.  Convert to insn_and_split.  Add workaround for
9580         PR 64974.
9581         (atomic_compare_and_swap<mode>_hard): Copy to
9582         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
9583         Use atomic_mem_operand_0 predicate.
9584         (atomic_compare_and_swap<mode>_soft_gusa,
9585         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
9586         AraAdd constraints.
9587         (atomic_compare_and_swap<mode>_soft_tcb,
9588         atomic_compare_and_swap<mode>_soft_imask,
9589         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
9590         atomic_mem_operand_0 predicate and SraSdd constraints.
9591         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
9592         constraint.
9593         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
9594         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
9595         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
9596         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
9597         force_reg on the memory address.
9598         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
9599         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
9600         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
9601         atomic_mem_operand_1 predicate and Sra constraint.
9602         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
9603         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
9604         Use atomic_mem_operand_1 predicate.
9605         (atomic_<fetchop_name><mode>_hard): Copy to
9606         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
9607         Use atomic_mem_operand_1 predicate.
9608         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
9609         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
9610         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
9611         insn_and_split.  Use atomic_mem_operand_1 predicate.
9612         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
9613         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
9614         Use atomic_mem_operand_1 predicate.
9615         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
9616         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
9617         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
9618         in generated insn with original mem operand before emitting the insn.
9619         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
9620         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
9621         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
9622         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
9623         Use atomic_mem_operand_1 predicate and AraAdd constraints.
9624         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
9625         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
9626         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
9627         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
9628         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
9629         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
9630         atomic_not_fetch<mode>_soft_tcb,
9631         atomic_<fetchop_name>_fetch<mode>_soft_imask,
9632         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
9633         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
9634         Use atomic_mem_operand_1 predicate and SraSdd constraints.
9636 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
9638         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
9639         and 3 earlyclobber operands.
9641 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
9643         * common.opt (fstack-reuse): Mark as optimization.
9645 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
9647         PR ipa/64982
9648         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
9650 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
9652         PR tree-optimization/64326
9653         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
9655 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
9657         PR gcov-profile/61889
9658         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
9660 2015-02-10  Richard Biener  <rguenther@suse.de>
9662         PR tree-optimization/64995
9663         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
9664         value we use is final.
9665         (visit_reference_op_store): Always valueize op.
9666         (visit_use): Properly valueize vuses.
9668 2015-02-10  Richard Biener  <rguenther@suse.de>
9670         PR tree-optimization/64909
9671         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
9672         pass a scalar-stmt count estimate to the cost model.
9673         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
9675 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
9677         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
9678         enabled by default together with var-tracking.
9680 2015-02-10  Nick Clifton  <nickc@redhat.com>
9682         * config/rl78/rl78.c: Remove DIV attribute code accidentally
9683         included in previous rl78 commit.
9685 2015-02-10  Richard Biener  <rguenther@suse.de>
9687         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
9688         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
9689         return the bitpack.
9691 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
9693         PR gcov-profile/61889
9694         * config.in: regenerate.
9695         * configure.in: Likewise.
9696         * configure.ac: Check for ftw.h.
9697         * gcov-tool.c: Check for ftw.h before using nftw.
9699 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
9701         PR lto/64076
9702         * ipa-visibility.c (update_visibility_by_resolution_info): Only
9703         assert when not in lto mode.
9705 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
9707         * ira-color.c (setup_left_conflict_sizes_p): Simplify
9708         initialization/assignment of conflict_size.
9710 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
9712         PR ipa/64978
9713         * ipa-cp.c (gather_caller_stats): Skip thunks.
9714         (propagate_constants_topo): Skip aliases.
9716 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
9718         PR target/64761
9719         * config/sh/sh.c (sh_option_override): Don't change
9720         -freorder-blocks-and-partition to -freorder-blocks even when
9721         unwinding is enabled.
9722         (sh_can_follow_jump): Return false if the followee jump is
9723         a crossing jump when -freorder-blocks-and-partition is specified.
9724         * config/sh/sh.md (*jump_compact_crossing): New insn.
9726 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
9727             Kaz Kojima  <kkojima@gcc.gnu.org>
9729         PR target/64761
9730         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
9731         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
9732         (sh_can_redirect_branch): Rename to ...
9733         (sh_can_follow_jump): ... this.  Constify argument types.
9734         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
9735         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
9736         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
9737         * doc/tm.texi: Regenerate.
9739 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
9741         PR sanitizer/64981
9742         * builtins.c (expand_builtin): Call targetm.expand_builtin
9743         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
9745 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9747         PR ipa/61548
9748         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
9750 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9752         PR ipa/63566
9753         * ipa-icf.c (set_local): New function.
9754         (sem_function::merge): Use it.
9756 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9758         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
9759         (add_type_duplicate): Fix comparison of BINFOs.
9761 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9763         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
9764         on getting VOID pointer.
9766 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
9768         PR target/64979
9769         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
9770         va_list escapes.
9772 2015-02-09  Richard Biener  <rguenther@suse.de>
9774         * genmatch.c (replace_id): Copy expr_type.
9776 2015-02-09  Richard Biener  <rguenther@suse.de>
9778         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
9779         (streamer_write_tree_bitfields): Declare.
9780         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
9781         properly unpack padding.
9782         (unpack_value_fields): Inline ...
9783         (streamer_read_tree_bitfields): ... here.
9784         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
9785         and properly add padding bits.
9786         (streamer_pack_tree_bitfields): Fold into ...
9787         (streamer_write_tree_bitfields): ... this new function,
9788         exposing the bitpack object.
9789         * lto-streamer-out.c (lto_write_tree_1): Call
9790         streamer_write_tree_bitfields.
9792 2015-02-09  Richard Biener  <rguenther@suse.de>
9794         PR tree-optimization/54000
9795         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
9796         (struct ivopts_data): Add loop_loc member.
9797         (tree_ssa_iv_optimize_loop): Dump loop location.
9798         (create_new_ivs): Likewise, also dump number of IVs generated.
9800 2015-02-09  Martin Liska  <mliska@suse.cz>
9802         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
9803         just if not yet registered.
9804         (ipa_icf_generate_summary): Register callgraph hooks.
9806 2015-02-08  Andrew Pinski  <apinski@cavium.com>
9808         * config/aarch64/aarch64.c (gty_dummy): Delete.
9810 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9812         PR ipa/63566
9813         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
9814         (cgraph_node::local_p): Remove thunk related FIXME.
9816 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9818         PR ipa/63566
9819         * i386.c (ix86_function_regparm): Look through aliases to see if callee
9820         is local and optimized.
9821         (ix86_function_sseregparm): Likewise; also use target's SSE math
9822         settings; error out instead of silently generating wrong code
9823         on mismatches.
9824         (init_cumulative_args): Look through aliases.
9826 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9828         PR ipa/63566
9829         * ipa-split.c (execute_split_functions): Split if function has aliases.
9831 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
9833         PR ipa/63566
9834         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
9835         aliases before trying to expand it.
9836         (cgraph_node::expand_thunk): Fix formating.
9838 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
9840         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
9841         (Using Assembly Language with C): Expand introduction.
9842         (Basic Asm): Copy-edit.  Add more information about uses of
9843         basic asm.
9844         (Extended Asm): Copy-edit.  Document new escape syntax and
9845         %l[label] syntax.
9846         (Global Reg Vars): Copy-edit.
9847         (Local Reg Vars): Likewise.
9849 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
9851         PR debug/2714
9852         PR bootstrap/64256
9853         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
9854         (DBX_CONTIN_CHAR): Define.
9856 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
9857             Brian Rzycki  <b.rzycki@samsung.com>
9859         PR tree-optimization/64878
9860         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
9861         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
9862         Stop recursion at loop phi nodes after having visited a loop phi node.
9864 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
9866         * toplev.c (process_options): Change flag_ipa_ra before creating
9867         optimization_{default,current}_node.
9869         PR ipa/64896
9870         * cgraphunit.c (cgraph_node::expand_thunk): If
9871         restype is not is_gimple_reg_type nor the thunk_fndecl
9872         returns aggregate_value_p, set restmp to a temporary variable
9873         instead of resdecl.
9875 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
9877         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
9879 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9881         PR target/64205
9882         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
9883         add a general secondary reload handler for SDmode, unless we have
9884         both read/write support for SDmode.
9886 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
9888         PR middle-end/64937
9889         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
9890         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
9891         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
9892         1 before, push it to abstract_vec.
9893         (dwarf2out_abstract_function): Adjust caller.  Don't call
9894         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
9895         DECL_ABSTRACT_P flags for all abstract_vec elts.
9897 2015-02-06  Renlin Li  <renlin.li@arm.com>
9899         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
9900         complex gimple.
9901         * tree-ssa.c (execute_update_addresses_taken): Likewise.
9903 2015-02-06  Jeff Law  <law@redhat.com>
9905         PR target/64889
9906         * config/h8300/h8300.c (push): New argument "in_prologue".
9907         Pass "in_prologue" along to "F".
9908         (h8300_push_pop): Corresponding changes.
9909         (h8300_expand_prologue): Likewise.
9910         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
9912 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
9914         PR rtl-optimization/64957
9915         PR debug/64817
9916         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
9917         IOR rather than for AND.
9919 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
9921         PR target/62631
9922         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
9923         of shift-add and (add + shift) operations.  Rename local variable.
9925 2015-02-05  Jeff Law  <law@redhat.com>
9927         PR target/17306
9928         * config/h8300/constraints.md (U): Correctly dectect
9929         "eightbit_data" memory addresses.
9930         * config/h8300/h8300.c (eightbit_constant_address_p): Also
9931         handle (const (plus (symbol_ref (x)))) where x is declared
9932         as an 8-bit data memory address.
9933         * config/h8300/h8300.md (call, call_value): Correctly detect
9934         "funcvec" functions.
9936         PR target/43264
9937         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
9938         24 to 28 bits for the H8/300.
9940 2015-02-06  Alan Modra  <amodra@gmail.com>
9942         PR target/64876
9943         * config/rs6000/rs6000.c (chain_already_loaded): New function.
9944         (rs6000_call_aix): Use it.
9946 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
9948         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
9949         check.
9951 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
9953         * config/h8300/constraints.md ("U" constraint): Use strict
9954         variant of REG_OK_FOR_BASE_P after reload has started.
9956 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
9958         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
9959         define to zero if !TARGET_NEON.
9960         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
9962 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9963             Trevor Saunders  <tsaunders@mozilla.com>
9965         PR ipa/61548
9966         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
9968 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9970         PR ipa/61548
9971         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
9972         when removing varpool nodes.
9974 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9976         PR ipa/61548
9977         * varpool.c (varpool_node::remove): Fix order of variables.
9979 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9981         PR ipa/64686
9982         * ipa-inline.c (inline_small_functions): Fix ordering issue between
9983         speculation resolution and key updates.
9985 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9987         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
9988         about not letting any speculative edges unupdated.
9990 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9992         PR gcov/64123
9993         * gcov-io.c (gcov_var): Export.
9995 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9997         PR middle-end/64922
9998         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
9999         edges that become speculative.
10001 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
10003         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
10004         or DW_LANG_Fortran08.
10005         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
10006         DW_LANG_Fortran08.
10007         (gen_compile_unit_die): Handle "GNU Fortran2003" and
10008         "GNU Fortran2008" language strings.
10009         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
10010         * langhooks.h (lang_GNU_Fortran): New prototype.
10011         * langhooks.c (lang_GNU_Fortran): New function.
10012         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
10013         lang_GNU_Fortran.
10015 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
10017         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
10018         (RTX_OK_FOR_OLO10_P): Likewise.
10020 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
10022         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
10024 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
10026         PR middle-end/64922
10027         * gimple.c: Include gimple-ssa.h.
10028         (maybe_remove_unused_call_args): New function.
10029         * gimple.h (maybe_remove_unused_call_args): Declare.
10030         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
10031         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10032         * gimple-fold.c (gimple_fold_call): Likewise.
10034 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
10036         PR rtl-optimization/64905
10037         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
10038         pointer alignment if it isn't needed.
10040 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
10042         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
10043         cortex-a72.cortex-a53.
10044         * config/aarch64/aarch64-tune.md: Regenerate.
10045         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
10047 2015-02-04  Nick Clifton  <nickc@redhat.com>
10049         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
10050         inside a MEM.
10052 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
10054         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
10055         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
10056         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
10057         of DEF_BUILTIN.
10058         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
10059         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
10060         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
10061         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
10062         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
10063         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
10064         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
10065         * tree-core.h (enum built_in_function): In between
10066         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
10067         for builtins that use DEF_BUILTIN_CHKP macro.
10069 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
10071         PR debug/64817
10072         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
10073         operands for tcc_comparison exprs.  Fix typos.
10075         PR debug/64817
10076         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
10077         of two XORs that have an intervening AND or IOR.
10079         PR debug/64817
10080         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
10081         simplification of XOR of AND to not allocate new rtx before
10082         committing to a simplification.
10084 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10086         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
10087         manual swaps in all peepholes.
10089 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10091         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
10092         of manual swapping implementation.
10093         (aarch64_expand_vec_perm_const_1): Likewise.
10095 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
10097         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
10098         (generic_addrcost_table): Remove NAMED_PARAM.
10099         (cortexa57_addrcost_table): Likewise.
10100         (xgene1_addrcost_table): Likewise.
10101         (generic_regmove_table): Likewise.
10102         (cortexa53_regmove_table): Likewise.
10103         (xgene1_regmove_table): Likewise.
10104         (generic_vector_table): Likewise.
10105         (cortexa57_vector_table): Likewise.
10106         (xgene1_vector_table): Likewise.
10107         (generic_tunings): Likewise.
10108         (cortexa53_tunings): Likewise.
10109         (cortexa57_tunings): Likewise.
10110         (xgene1_tunings): Likewise.
10112 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
10114         * config/arm/arm-cores.def: Add cortex-a72 and
10115         cortex-a72.cortex-a53.
10116         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
10117         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
10118         * config/arm/arm-tune.md: Regenerate.
10119         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
10120         "cortex-a72.cortex-a53".
10121         * doc/invoke.texi (ARM Options/-mtune): Likewise.
10123 2015-02-04  Nick Clifton  <nickc@redhat.com>
10125         PR target/64408
10126         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
10127         of accepted codes.
10128         (nonimmediate_di_operand): Likewise.
10130         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
10131         prefixes of known F5 using MSP430 MCUs.
10133 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10135         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
10136         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
10137         instead of __builtin_sqrt.
10139 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
10141         * varasm.c (do_assemble_alias): Follow transparent alias
10142         chain for target.
10143         (default_assemble_visibility): Follow transparent alias
10144         chain for decl name.
10146 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10148         PR middle-end/62103
10149         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
10150         to compute size of referenced value in the constant case.
10152 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
10154         PR rtl-optimization/64756
10155         * cse.c (invalidate_dest): New function.
10156         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
10157         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
10158         invalidate and do not record it.
10160 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
10162         PR target/64660
10163         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
10164         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
10165         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
10166         atomic_nand<mode>_soft_tcb): New insns.
10167         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
10168         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
10169         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
10170         Split into atomic_not_fetchsi_hard if operands[0] is unused.
10171         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
10172         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
10173         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
10174         atomic_not<mode>_hard if operands[0] is unused.
10175         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
10176         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
10177         if operands[0] is unused.
10178         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
10179         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
10180         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
10181         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
10182         unused.
10183         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
10184         into atomic_not<mode>_soft_tcb if operands[0] is unused.
10185         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
10186         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
10187         if operands[0] is unused.
10188         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
10189         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
10190         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
10191         atomic_nand_fetchsi_hard if operands[0] is unused.
10192         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
10193         atomic_nand<mode>_hard if operands[0] is unused.
10194         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
10195         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
10196         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
10197         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
10198         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
10199         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
10200         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
10201         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
10202         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
10203         atomic_not<mode>_hard if operands[0] is unused.
10204         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
10205         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
10206         unused.
10207         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
10208         into atomic_not<mode>_soft_tcb if operands[0] is unused.
10209         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
10210         atomic_nand<mode>_hard if operands[0] is unused.
10211         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
10212         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
10214 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
10216         PR jit/64810
10217         * Makefile.in (GCC_OBJS): Add gcc-main.o.
10218         * gcc-main.c: New file, containing "main" taken from gcc.c.
10219         * gcc.c (do_self_spec): Free decoded_options.
10220         (class driver): Move declaration to gcc.h.
10221         (main): Move declaration and implementation to new file
10222         gcc-main.c.
10223         (driver_get_configure_time_options): New function.
10224         * gcc.h (class driver): Move this declaration here, from
10225         gcc.c.
10226         (driver_get_configure_time_options): New declaration.
10228 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
10230         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
10231         cross-module inlining.
10232         * cgraph.h (cgraph_node): Add flag merged.
10233         * ipa-icf.c (sem_function::merge): Maintain it.
10235 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
10237         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
10238         instead of OBJECT_P.
10240 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
10242         PR target/62631
10243         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
10244         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
10245         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
10246         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
10248 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
10250         PR other/63504
10251         * combine.c (reg_n_sets_max): New variable.
10252         (can_change_dest_mode, reg_nonzero_bits_for_combine,
10253         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
10254         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
10255         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
10256         (rest_of_handle_combine): Initialize reg_n_sets_max.
10258 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
10260         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
10261         if some always_inline was inlined, apply changes before inlining
10262         heuristically.
10264 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
10266         PR jit/64810
10267         * config/arm/arm.c (arm_option_override): Set
10268         arm_selected_arch/cpu/tune to NULL on entry.
10270 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
10271             Andrew Pinski  <pinskia@gcc.gnu.org>
10272             Jakub Jelinek  <jakub@gcc.gnu.org>
10274         PR target/64231
10275         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
10276         integer typing for small model. Use IN_RANGE.
10278 2015-02-02  Richard Biener  <rguenther@suse.de>
10280         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
10281         * tree-vrp.c (vrp_valueize_1): Likewise.
10283 2015-02-02  Alan Modra  <amodra@gmail.com>
10285         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
10286         than mem for toc_restore.
10287         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
10288         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
10289         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
10291 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
10293         PR target/64047
10294         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
10295         explicit default options.
10297 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
10299         PR ipa/64872
10300         * ipa-utils.c (ipa_merge_profiles): Add release argument.
10301         * ipa-icf.c (sem_function::merge): Do not release body when merging.
10302         * ipa-utils.h (ipa_merge_profiles): Update prototype.
10304 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
10306         PR debug/64817
10307         * cfgexpand.c (deep_ter_debug_map): New variable.
10308         (avoid_deep_ter_for_debug): New function.
10309         (expand_debug_expr): If TERed SSA_NAME is in
10310         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
10311         instead of trying to expand SSA_NAME's def stmt.
10312         (expand_debug_locations): When expanding debug bind
10313         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
10314         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
10315         value.
10316         (pass_expand::execute): Call avoid_deep_ter_for_debug on
10317         all debug bind stmts.  Delete deep_ter_debug_map after
10318         expand_debug_location if non-NULL and clear it.
10320 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
10322         PR target/64851
10323         * config/sh/sync.md (atomic_fetch_notsi_hard,
10324         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
10325         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
10326         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
10327         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
10328         atomic_not_fetch<mode>_soft_imask): New insns.
10330 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10332         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
10333         (rank_for_schedule_debug): Split from ...
10334         (rank_for_schedule): ... this.
10335         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
10336         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
10338 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
10340         * doc/md.texi (Machine Constraints): Alphabetize table by target.
10341         * doc/extend.texi (x86 Variable Attributes): Move section to
10342         correct alphabetization after renaming.
10343         (x86 Type Attributes): Likewise.
10344         (Target Builtins): Re-alphabetize menu.
10345         (x86 Built-in Functions): Move section to correct alphabetization
10346         after renaming.
10347         (x86 transactional memory intrinsics): Likewise.
10348         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
10349         and x86 Windows Options in table and menu.
10350         (x86 Options): Move section to correct alphabetization after
10351         renaming.
10352         (x86 Windows Options): Likewise.
10354 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
10356         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
10357         preferred names of the architecture and its 32- and 64-bit
10358         variants.
10359         * doc/invoke.texi: Likewise.
10360         * doc/md.texi: Likewise.
10362 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
10364         PR target/64882
10365         * config/i386/predicates.md (address_no_seg_operand): Reject
10366         non-CONST_INT_P operands in invalid mode.
10368 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
10370         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
10371         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
10372         * config/i386/predicates.md (address_no_seg_operand): Call
10373         address_operand with VOIDmode.
10374         (vsib_address_operand): Ditto.
10375         (address_mpx_no_base_operand): Ditto.
10376         (address_mpx_no_index_operand): Ditto.
10378 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
10380         PR target/64688
10381         * lra-constraints.c (original_subreg_reg_mode): New.
10382         (simplify_operand_subreg): Try to simplify subreg of const.  Use
10383         original_subreg_reg_mode for it.
10384         (swap_operands): Update original_subreg_reg_mode.
10385         (curr_insn_transform): Set up original_subreg_reg_mode.
10387 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
10389         PR target/64617
10390         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
10391         function.
10392         (process_alt_operands): Use it.
10393         (curr_insn_transform): Check the optional reload pseudo class is
10394         ok for the mode.
10396 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
10398         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
10399         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
10400         prototype.
10401         * toplev.h (init_asm_output): Update comment on use of
10402         UNKNOWN_LOCATION with fatal_error.
10403         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
10404         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
10405         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
10406         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
10407         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
10408         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
10409         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
10410         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
10411         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
10412         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
10413         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
10414         fatal_error changed to pass input_location as first argument.
10416 2015-01-30  Martin Liska  <mliska@suse.cz>
10418         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
10419         in #pragma GCC diagnostic guards.
10421 2015-01-30  Richard Biener  <rguenther@suse.de>
10423         PR tree-optimization/64829
10424         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
10425         not add a widening conversion pattern but hand off extra
10426         widenings to callers.
10427         (vect_recog_widen_mult_pattern): Handle extra widening produced
10428         by vect_handle_widen_op_by_const.
10429         (vect_recog_widen_shift_pattern): Likewise.
10430         (vect_pattern_recog_1): Remove excess vertical space in dumping.
10431         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10432         (vect_init_vector_1): Likewise.
10433         (vect_get_vec_def_for_operand): Likewise.
10434         (vect_finish_stmt_generation): Likewise.
10435         (vectorizable_load): Likewise.
10436         (vect_analyze_stmt): Likewise.
10437         (vect_is_simple_use): Likewise.
10439 2015-01-29  Jeff Law  <law@redhat.com>
10441         * combine.c (try_combine): Fix typo in comment.
10443 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
10445         PR target/64580
10446         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
10447         (rs6000_stack_info): Add assert.
10448         (rs6000_output_savres_externs): New function, split off from...
10449         (rs6000_output_function_prologue): ... here.  Do not call it for
10450         thunks.
10452 2015-01-29  Jeff Law  <law@redhat.com>
10454         PR target/15184
10455         * combine.c (try_combine): If I0 is a memory load and I3 a store
10456         to a related address, increase the "goodness" of doing a 4-insn
10457         combination with I0-I3.
10458         (make_field_assignment): Handle SUBREGs in the ior+and case.
10460 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
10462         PR tree-optimization/64746
10463         * tree-if-conv.c (mask_exists): New function.
10464         (predicate_mem_writes): Save created mask with given size for further
10465         use.
10466         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
10467         (ifcvt_repair_bool_pattern): Collect all statements that are root
10468         of bool pattern and use iterative algorithm to remove multiple uses
10469         of predicates, display number of required iterations.
10471 2015-01-29  Richard Biener  <rguenther@suse.de>
10473         PR tree-optimization/64853
10474         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
10475         stmt will get simulated again.
10476         * tree-ssa-ccp.c (valueize_op_1): Likewise.
10478 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10480         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
10481         return_in_pc.  Remove redundant assignments.
10482         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
10483         (arm_expand_epilogue): Don't compare boolean with true in if condition.
10485 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
10487         * config/i386/i386.c (ix86_mode_after): Make static.
10489 2015-01-29  Richard Biener  <rguenther@suse.de>
10491         PR tree-optimization/64844
10492         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
10493         dump cost model analysis.
10494         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10495         Do not register adjusted load/store costs here.
10497 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10498             Uros Bizjak  <ubizjak@gmail.com>
10500         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
10501         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
10502         using x86_use_pseudo_pic_reg.
10503         * config/i386/i386.c (ix86_conditional_register_usage): Remove
10504         support for fixed PIC register.
10505         (ix86_use_pseudo_pic_reg): Not static any more.
10507 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
10509         PR middle-end/64805
10510         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
10511         to avoid error in cgraph node verification.
10513 2015-01-29  Marek Polacek  <polacek@redhat.com>
10515         * doc/standards.texi: Reflect that the default for C is gnu11.
10517 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
10519         PR target/64761
10520         * reorg.c (switch_text_sections_between_p): New function.
10521         (relax_delay_slots): Call it when testing if the jump insn
10522         is removable.  Use targetm.can_follow_jump when testing if
10523         the conditional branch can follow an unconditional jump.
10525 2015-01-27  Caroline Tice  <cmtice@google.com>
10527         Committing VTV Cywin/Ming patch for Patrick Wollgast
10528         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
10529         if -fvtable-verify=preinit/std is used.
10530         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
10531         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
10532         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
10533         if -fvtable-verify=preinit/std is used.
10534         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
10535         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
10536         if -fvtable-verify=preinit/std is used.
10537         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
10538         * config/i386/mingw32.h (LIB_SPEC): Likewise.
10539         * varasm.c (assemble_variable): Add code to properly set the comdat
10540         section and name for the .vtable_map_vars section in case the
10541         target is PE or COFF.
10543 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
10545         PR ipa/64801
10546         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
10547         make sane BB profile.
10548         (cgraph_node::expand_thunk): Make sane BB profile.
10549         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
10550         * cgraph.h (init_lowered_empty_function): Update prototype.
10551         * config/i386/i386.c (make_resolver_func): Update call.
10552         * predict.c (gate): Disable branch prediction pass if
10553         profile is already there.
10555 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
10557         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
10558         * opth-gen.awk: Likewise.
10559         * common.opt: Mark flag_fp_contract_mode as Optimization.
10561 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10563         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
10564         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
10566 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
10568         PR target/64659
10569         * config/sh/predicates.md (atomic_arith_operand,
10570         atomic_logical_operand): Remove.
10571         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
10572         (atomic_arith_operand_0): New predicate.
10573         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
10574         Use atomic_arith_operand_0 for input values.
10575         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
10576         atomic_compare_and_swap<mode>_soft_gusa,
10577         atomic_compare_and_swap<mode>_soft_tcb,
10578         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
10579         arith_reg_operand instead of register_operand.
10580         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
10581         atomic_arith_operand_0 for newval input.
10582         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
10583         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
10584         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
10585         arith_reg_operand instead of register_operand.
10586         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
10587         fetchop_predicate_1, fetchop_constraint_1_llcs,
10588         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
10589         fetchop_constraint_1_imask): New code iterator attributes.
10590         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
10591         register_operand.  Use fetchop_predicate_1.
10592         (atomic_fetch_<fetchop_name>si_hard,
10593         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
10594         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
10595         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
10596         and arith_reg_operand instead of register_operand.  Use
10597         fetchop_predicate_1, fetchop_constraint_1_gusa.
10598         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
10599         and arith_reg_operand instead of register_operand.  Use
10600         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
10601         to allow R0 usage.
10602         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
10603         and arith_reg_operand instead of register_operand.  Use
10604         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
10605         to allow R0 usage.
10606         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
10607         register_operand.  Use atomic_logical_operand_1.
10608         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
10609         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
10610         arith_reg_operand instead of register_operand.
10611         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
10612         Use arith_reg_dest and arith_reg_operand instead of register_operand.
10613         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
10614         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
10615         register_operand.  Use fetchop_predicate_1.
10616         (atomic_<fetchop_name>_fetchsi_hard,
10617         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
10618         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
10619         fetchop_constraint_1_llcs.
10620         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
10621         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
10622         fetchop_constraint_1_gusa.
10623         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
10624         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
10625         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
10626         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
10627         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
10628         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
10629         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
10630         register_operand.  Use atomic_logical_operand_1.
10631         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
10632         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
10633         arith_reg_operand instead of register_operand.
10634         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
10635         arith_reg_operand instead of register_operand.  Use logical_operand
10636         and K08.  Adjust asm sequence to allow R0 usage.
10637         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
10638         arith_reg_operand instead of register_operand.  Use logical_operand
10639         and K08.
10641 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
10643         PR other/63504
10644         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
10645         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
10646         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
10647         only get_full_len HOST_WIDE_INTs from get_val () array rather than
10648         all bits in *val_wide.
10650 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
10652         * varpool.c (tls_model_names): Fix names.
10653         (varpool_node::dump): Dump tls- prefix for tls models.
10655 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
10656             Bernd Schmidt  <bernds@codesourcery.com>
10657             Nathan Sidwell  <nathan@codesourcery.com>
10659         * config/nvptx/mkoffload.c: New file.
10660         * config/nvptx/t-nvptx: Add build rules for it.
10661         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
10662         (extra_programs): Add mkoffload.
10663         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
10664         function.
10665         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
10667 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
10669         PR middle-end/64809
10670         * cfgexpand.c (reorder_operands): Skip debug gimples.
10672 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
10674         PR tree-optimization/64277
10675         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
10676         range info when possible to refine estimation.
10678 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10680         PR tree-optimization/64718
10681         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
10682         be a 16bit unsigned integer when n->range is 16.
10683         (bswap_replace): Convert src to that type if necessary for all bswap
10684         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
10685         set in pass_optimize_bswap::execute ().
10687 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
10689         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
10690         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
10691         integer and floating point variants.
10692         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
10694 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
10696         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
10697         for all vector modes.
10699 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
10701         PR bootstrap/64612
10702         * doc/sourcebuild.texi (comdat_group): Document.
10704 2015-01-28  Terry Guo  <terry.guo@arm.com>
10706         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
10708 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
10710         * toplev.c (print_version): Add param "show_global_state", and
10711         only print GGC and plugin information if it is true.
10712         (init_asm_output): Pass in "true" for the new param when calling
10713         print_version.
10714         (process_options): Likewise.
10715         (toplev::main): Likewise.
10716         * toplev.h (print_version): Add new param to decl.
10718 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
10720         PR ipa/60871
10721         PR ipa/64139
10722         * tree.c (lookup_binfo_at_offset): New function.
10723         (get_binfo_at_offset): Use it.
10725 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
10727         PR ipa/64282
10728         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
10729         on vtable being vtable.
10731 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10733         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
10734         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
10735         -mhotpatch= option.
10736         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
10737         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
10738         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
10739         Renamed.
10740         (s390_hotpatch_trampoline_halfwords_max): Renamed.
10741         (s390_hotpatch_hw_max): New name.
10742         (s390_hotpatch_trampoline_halfwords): Renamed.
10743         (s390_hotpatch_hw_before_label): New name.
10744         (get_hotpatch_attribute): Removed.
10745         (s390_hotpatch_hw_after_label): New name.
10746         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
10747         attribute.
10748         (s390_attribute_table): Ditto.
10749         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
10750         (s390_function_num_hotpatch_hw): New name.
10751         Remove special handling of inline functions and hotpatching.
10752         Return number of nops before and after the function label.
10753         (s390_can_inline_p): Removed.
10754         (s390_asm_output_function_label): Emit a configurable number of nops
10755         after the function label.
10756         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
10757         (TARGET_CAN_INLINE_P) Removed.
10758         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
10760 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10761             Jiong Wang  <jiong.wang@arm.com>
10763         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
10764         of scratch reg.
10765         (cb<optab><mode>1): Likewise.
10766         * config/aarch64/iterators.md (bcond): New define_code_attr.
10768 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10770         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
10771         memory accesses.
10773 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10775         * config/s390/s390.c (s390_register_move_cost): Increase costs for
10776         FPR->GPR moves.
10778 2015-01-27  Richard Biener  <rguenther@suse.de>
10780         * tree-vrp.c (update_value_range): Intersect the range with
10781         old recorded SSA name range information.
10783 2015-01-27  Nick Clifton  <nickc@redhat.com>
10785         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
10786         BC, DE and HL registers directly, not via AX.
10787         When decrementing the stack pointer by a large amount, transfer SP
10788         into AX and perform the subtraction there.
10789         (rl78_expand_epilogue): Perform the inverse of the above
10790         enhancements.
10792 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10794         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
10796 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
10797             Yury Gribov  <y.gribov@samsung.com>
10799         PR ubsan/64741
10800         * ubsan.c (ubsan_source_location): Refactor code.
10801         (ubsan_type_descriptor): Update type size. Refactor code.
10803 2015-01-27  Richard Biener  <rguenther@suse.de>
10805         PR tree-optimization/56273
10806         PR tree-optimization/59124
10807         PR tree-optimization/64277
10808         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
10809         from the first VRP pass.
10811 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
10813         PR ipa/64776
10814         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
10815         handle the first argument in the same loop as all the other arguments.
10817         PR rtl-optimization/61058
10818         * jump.c (cleanup_barriers): Update basic block boundaries
10819         if BLOCK_FOR_INSN is non-NULL on PREV.
10821 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
10823         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
10824         bounds narrowing, already instrumented calls and calls to
10825         not instrumentable functions.
10827 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
10829         PR tree-optimization/64807
10830         * wide-int.cc (wi::divmod_internal): Clear
10831         b_dividend[dividend_blocks_needed].
10833 2015-01-26  DJ Delorie  <dj@redhat.com>
10835         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
10836         volatile memory references.
10838 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
10840         PR target/49263
10841         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
10842         remove_insn.
10843         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
10844         shifts if it already fits into K08.
10846 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
10848         PR ipa/64730
10849         * ipa-inline.c (inline_small_functions): Print "unknown" even
10850         if edge->call_stmt is non-NULL, but has builtins or unknown
10851         location.
10853         PR middle-end/64421
10854         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
10855         with asterisk, skip the first character.
10857 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
10859         PR target/64806
10860         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
10861         order change.
10863 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
10865         PR target/64795
10866         * config/i386/i386.md (*movdi_internal): Also check operand 0
10867         to determine TYPE_LEA operand.
10868         (*movsi_internal): Ditto.
10870 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
10872         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
10873         OPTION_MASK_QUAD_MEMORY_ATOMIC.
10875 2015-01-26  Renlin Li  <renlin.li@arm.com>
10877         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
10878         the comment.
10879         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
10880         for higher part.
10882 2015-01-26  Richard Biener  <rguenther@suse.de>
10884         PR middle-end/64764
10885         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
10886         combining two BIT_AND_EXPR predicates.
10888 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
10890         PR bootstrap/64754
10891         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
10893 2015-01-26  Terry Guo  <terry.guo@arm.com>
10895         * config/arm/arm.c (arm_file_start): Update the assignment of
10896         Tag_ABI_HardFP_use.
10898 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
10900         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
10901         pipeline model.
10902         config/arm/arm.md: Include the new Cortex-A57 model.
10903         (generic_sched): Don't use generic_sched when tuning for
10904         Cortex-A57.
10906 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
10907             Uros Bizjak  <ubizjak@gmail.com>
10909         * config/i386/i386.c (get_builtin_code_for_version): Add
10910         support for BMI and BMI2 multiversion functions.
10912 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10914         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
10915         (extract_bit_field): Likewise.
10916         (extract_low_bits): Likewise.
10917         (expand_mult): Likewise.
10918         (expand_mult_highpart_adjust): Likewise.
10920 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10922         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
10923         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
10924         * config/i386/i386.c (processor_model): Add
10925         M_INTEL_COREI7_BROADWELL.
10926         (arch_names_table): Add "broadwell".
10928 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
10930         PR target/49263
10931         PR target/53987
10932         PR target/64345
10933         PR target/59533
10934         PR target/52933
10935         PR target/54236
10936         PR target/51244
10937         * config/sh/sh-protos.h
10938         (sh_extending_set_of_reg::can_use_as_unextended_reg,
10939         sh_extending_set_of_reg::use_as_unextended_reg,
10940         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
10941         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
10942         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
10943         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
10944         (sh_treg_insns): New class.
10945         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
10946         (scope_counter): New class.
10947         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
10948         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
10949         sh_extending_set_of_reg::can_use_as_unextended_reg,
10950         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
10951         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
10952         sh_split_treg_set_expr): New functions.
10953         (addsubcosts): Handle treg_set_expr.
10954         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
10955         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
10956         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
10957         (sh_insn_operands_modified_between_p): Make non-static.
10958         * config/sh/predicates.md (zero_extend_movu_operand): Allow
10959         simple_mem_operand in addition to displacement_mem_operand.
10960         (zero_extend_operand): Don't allow zero_extend_movu_operand.
10961         (treg_set_expr, treg_set_expr_not_const01,
10962         arith_reg_or_treg_set_expr): New predicates.
10963         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
10964         arith_or_int_operand instead of logical_operand.  Convert to
10965         insn_and_split.  Try to optimize constant operand in splitter.
10966         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
10967         (*tstqi_t_zero): Delete.
10968         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
10969         (tstsi_t_and_not): Delete.
10970         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
10971         Convert to insn_and_split.
10972         (unnamed split, tstsi_t_zero_extract_xor,
10973         tstsi_t_zero_extract_subreg_xor_little,
10974         tstsi_t_zero_extract_subreg_xor_big): Delete.
10975         (*tstsi_t_shift_mask): New insn_and_split.
10976         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
10977         to recombine with surrounding insns when splitting.
10978         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
10979         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
10980         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
10981         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
10982         (*cbranch_div0s: Delete.
10983         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
10984         Try to recombine with surrounding insns when splitting.  Add operand
10985         order variants.
10986         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
10987         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
10988         *addc_r_r_msb, *addc_2r_msb): Delete.
10989         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
10990         order variant.
10991         (*addc_negreg_t): New insn_and_split.
10992         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
10993         Try to recombine with surrounding insns when splitting.
10994         Add operand order variants.
10995         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
10996         insn_and_split patterns.
10997         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
10998         surrounding insns when splitting.
10999         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
11000         (*rotcl): Likewise.  Add zero_extract variant.
11001         (*ashrsi2_31): New insn_and_split.
11002         (*negc): Convert to insn_and_split.  Use treg_set_expr.
11003         (*zero_extend<mode>si2_disp_mem): Update comment.
11004         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
11005         condition.
11006         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
11007         with surrounding insns when splitting.
11008         (any_treg_expr_to_reg): New insn_and_split.
11009         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
11010         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
11011         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
11012         *zero_extract_2): New single bit zero extract patterns.
11013         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
11014         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
11015         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
11016         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
11017         set destination.
11018         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
11019         register_operand for set source.
11021 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
11023         * i386.opt (prefetch_sse): New targetsave.
11024         * i386.c (ix86_function_specific_save): Save prefetch_sse.
11025         (ix86_function_specific_restore): Restore prefetch_sse and initialize
11026         ix86_cost/ix86_tune_cost.
11028 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
11030         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
11031         Support the JIT by using 0 as the language type.
11033 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
11035         PR target/64317
11036         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
11037         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
11038         (mark_regno_live, process_bb_lives): Pass new parameter value to
11039         make_hard_regno_born.
11041 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11043         PR rtl-optimization/63637
11044         PR rtl-optimization/60663
11045         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
11046         if elt->cost is MAX_COST for ASM_OPERANDS.
11047         (find_sets_in_insn): Fix up comment typo.
11048         (cse_insn): Don't set src_volatile for all non-volatile
11049         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
11050         or with "memory" clobber.  Set elt->cost to MAX_COST
11051         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
11052         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
11054 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
11056         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
11057         alternative 1.
11059 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
11061         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
11062         libgcc/config/i386/elf-lib.h.
11064 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11066         PR driver/64737
11067         * gcc.c (print_configuration): Don't print a blank line at the end
11068         here...
11069         (run_attempt): ... but here unstead.
11071         PR middle-end/64734
11072         * omp-low.c (scan_sharing_clauses): Don't ignore
11073         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
11074         on target data/update constructs.
11076 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11078         PR target/50928
11079         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
11080         (DEBUG_RELOAD): Removed define.
11081         (m32c_limit_reload_class): Enable traces with if DEBUG0.
11082         (m32c_function_arg): Added a type cast.
11083         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
11084         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
11085         * config/m32c/bitops.md (andqi3_16): Likewise.
11086         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
11087         (push_a01_l): Likewise.
11089 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
11091         PR jit/64721
11092         * main.c (main): Construct toplev instances with init_signals=true.
11093         * toplev.c (general_init): Add param "init_signals", and use it to
11094         conditionalize the calls to signal and host_hooks.extra_signals.
11095         (toplev::toplev): Add param "init_signals".
11096         (toplev::main): When invoking general_init, pass m_init_signals
11097         to control whether signal-handlers are installed.
11098         * toplev.h (toplev::toplev): Add param "init_signals".
11099         (toplev::m_init_signals): New field.
11101 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
11103         PR jit/64722
11104         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
11105         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
11106         latter may be affected by the former (e.g. on i686).
11108 2015-01-23  Martin Liska  <mliska@suse.cz>
11110         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
11111         false positive during profiledbootstrap.
11113 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11115         PR libgomp/64672
11116         * lto-opts.c (lto_write_options): Output non-explicit conservative
11117         -fno-openacc.
11118         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
11119         (append_compiler_options): Pass -fopenacc through.
11121 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11123         PR libgomp/64707
11124         * lto-opts.c (lto_write_options): Output non-explicit conservative
11125         -fno-openmp.
11126         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
11127         (append_compiler_options): Pass -fopenmp through.
11129 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11131         PR debug/64511
11132         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
11133         GTY markup.
11135         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
11136         * diagnostic.def (DK_ICE_NOBT): New kind.
11137         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
11138         like DK_ICE, but never print backtrace.
11139         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
11140         (internal_error_no_backtrace): New function.
11141         * gcc.c (execute): Use internal_error_no_backtrace instead of
11142         internal_error.
11144 2015-01-22  Jeff Law  <law@redhat.com>
11146         PR target/52076
11147         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
11148         improve code density for small immediate to memory case.
11149         (insv): Better handle bitfield assignments when the field is
11150         being set to all ones.
11151         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
11152         operand predicate.
11154 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11155             Jakub Jelinek  <jakub@redhat.com>
11157         PR middle-end/64729
11158         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
11159         for !TARGET_LIBC_PROVIDES_SSP version and
11160         -fstack-protector-{all,strong,explicit} otherwise.
11161         * config/freebsd.h (LINK_SSP_SPEC): Handle
11162         -fstack-protector-{strong,explicit}.
11164 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
11165             H.J. Lu  <hongjiu.lu@intel.com>
11167         PR ipa/64694
11168         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
11169         heap.
11171 2015-01-22  Wei Mi  <wmi@google.com>
11173         PR rtl-optimization/64557
11174         * dse.c (record_store): Call get_addr for mem_addr.
11175         (check_mem_read_rtx): Likewise.
11177 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
11179         * fold-const.c (const_binop): Add early return for non-tcc_binary.
11181 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
11183         * toplev.c (init_local_tick): Process the failure when read
11184         fails for random_seed.
11186         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
11187         'pretty_name' to avoid memory overflow.
11189 2015-01-22  Richard Biener  <rguenther@suse.de>
11191         PR middle-end/64728
11192         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
11193         abnormal coalescing on undefined SSA names.
11195 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
11197         PR target/64688
11198         PR target/64477
11199         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
11200         for alternative 3.
11201         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
11203 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
11205         PR middle-end/63325
11206         * fold-const.c (fold_checksum_tree): Don't include value of
11207         expr->decl_with_vis.symtab_node in the checksum.
11209 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11211         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
11213 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11215         PR driver/64690
11216         * gcc.c (insert_comments): New function.
11217         (try_generate_repro): Call it.
11218         (append_text): Removed.
11220 2015-01-22  Richard Biener  <rguenther@suse.de>
11222         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
11223         with IL incompatible options.  Properly honor user optimize
11224         attributes.
11226 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
11228         PR rtl-optimization/64682
11229         * combine.c (distribute_notes): When moving a death note for
11230         a register that is set in the new I2, make sure to put it
11231         before that new I2.
11233 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
11235         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
11236         not TARGET_DEFAULT.
11238 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
11240         PR debug/64511
11241         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
11242         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
11243         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
11245         PR sanitizer/64706
11246         * doc/invoke.texi (-fsanitize=vptr): Document.
11248         PR rtl-optimization/62078
11249         * dse.c: Include cfgcleanup.h.
11250         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
11251         anything call purge_all_dead_edges and cleanup_cfg at the end
11252         of the pass.
11254 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
11256         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
11257         edges.
11259 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11261         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
11262         decl attribute.
11264 2015-01-21  David Sherwood  <david.sherwood@arm.com>
11265             Tejas Belagod <Tejas.Belagod@arm.com>
11267         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
11268         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
11269         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
11270         Removed.
11272 2015-01-21  David Sherwood  <david.sherwood@arm.com>
11273             Tejas Belagod <Tejas.Belagod@arm.com>
11275         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
11276         (aarch64_reverse_mask): New decls.
11277         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
11278         (insn_count): New mode_attr.
11279         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
11280         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
11281         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
11282         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
11283         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
11284         (aarch64_simd_st4): New patterns.
11285         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
11286         (aarch64_reverse_mask): New functions.
11288 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
11290         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
11291         Declare.
11292         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
11293         addressing modes for BE.
11294         (aarch64_print_operand): Add 'R' specifier.
11295         (aarch64_simd_disambiguate_copy): Delete.
11296         (aarch64_simd_emit_reg_reg_move): New function.
11297         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
11298         in define_splits for structural moves.
11299         (mov<mode>): Use less restrictive predicates.
11300         (*aarch64_mov<mode>): Simplify and only allow for LE.
11301         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
11303 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
11305         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
11307 2015-01-21  Richard Henderson  <rth@redhat.com>
11309         PR target/64669
11310         * ccmp.c (used_in_cond_stmt_p): Remove.
11311         (expand_ccmp_expr): Don't use it.
11313 2015-01-21  Nick Clifton  <nickc@redhat.com>
11315         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
11316         PARALLELs.
11318 2015-01-21  Richard Biener  <rguenther@suse.de>
11320         PR middle-end/64313
11321         * tree-core.h (builtin_info, builtin_info_type): Turn from
11322         an object with two arrays into an array of an object with
11323         decl and two flags, implicit_p and declared_p.
11324         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
11325         set_builtin_decl, set_builtin_decl_implicit_p,
11326         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
11327         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
11328         * builtins.c (builtin_info): Adjust.
11329         * gimplify.c (gimplify_addr_expr): References to builtins
11330         that have been declared by the user makes them eligible for
11331         use by the compiler.  Call set_builtin_decl_implicit_p on them.
11333 2015-01-20  Jeff Law  <law@redhat.com>
11335         PR target/59946
11336         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
11337         allow pc-relative addresses in operand predicates or constraints.
11339 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
11341         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
11342         neon on aarch32 processors for stringops.
11344 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11346         PR ipa/63576
11347         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
11349 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11351         PR lto/45375
11352         * ipa-inline.c: Include lto-streamer.h
11353         (report_inline_failed_reason): Output source file differences and
11354         flags on optimization/target node mismatch.
11355         (can_inline_edge_p): Consider caller to be the outer inline function;
11356         be less restrictive about matching opimize and optimize_size attributes.
11357         (inline_account_function_p): Break out from ...
11358         (inline_small_functions): ... here.
11359         * ipa-inline-transform.c (clone_inlined_nodes): Use
11360         inline_account_function_p.
11361         (inline_call): Use optimize attribution; use inline_account_function_p.
11362         (inline_transform): Use opt_for_fn.
11363         * ipa-inline.h (inline_account_function_p): Declare.
11365 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
11367         PR debug/64663
11368         * dwarf2out.c (decl_piece_node): Don't put bitsize into
11369         mode if bitsize <= 0.
11370         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
11371         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
11372         sizes and positions.
11374 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
11376         * config/nios2/nios2.c (nios2_asm_file_end): Implement
11377         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
11378         needed.
11379         (TARGET_ASM_FILE_END): Define.
11381 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11383         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
11384         (struct tune_params): Use the enum.
11385         * arm.c (arm_*_tune): Update.
11386         (arm_option_override): Update.
11388 2015-01-20  Richard Biener  <rguenther@suse.de>
11390         PR ipa/64684
11391         * ipa-reference.c (add_static_var): Inline ...
11392         (analyze_function): ... here after splitting out from ...
11393         (is_proper_for_analysis): ... this.
11395 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
11397         PR target/64149
11398         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
11399         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
11400         replace the conditional with it's true branch.
11401         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
11402         (arm_lra_p): Remove.
11404 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
11406         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
11408 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11410         * config/tilegx/mul-tables.c: Move symtab.h include after
11411         coretypes.h include.
11412         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
11413         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
11414         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
11415         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
11416         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11418 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
11420         PR bootstrap/64676
11421         Revert:
11422         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
11424         PR rtl-optimization/64081
11425         * loop-iv.c (def_pred_latch_p): New function.
11426         (latch_dominating_def): Allow specific cases with non-single
11427         definitions.
11428         (iv_get_reaching_def): Likewise.
11429         (check_complex_exit_p): New function.
11430         (check_simple_exit): Use check_complex_exit_p to allow certain cases
11431         with exits not executing on any iteration.
11433 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11435         PR lto/45375
11436         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
11437         to set branch cost.
11439 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11441         PR lto/45375
11442         * i386.c (gate): Check flag_expensive_optimizations and
11443         optimize_size.
11444         (ix86_option_override_internal): Drop optimize_size condition
11445         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
11446         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
11447         MASK_PREFER_AVX128.
11448         (ix86_avx256_split_vector_move_misalign,
11449         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
11450         * sse.md (all uses of TARGET_PREFER_AVX128): Add
11451         optimize_insn_for_speed_p check.
11453 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
11455         * config/mips/mips.h (FP_ASM_SPEC): New define.
11456         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
11457         instead.
11459 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
11461         PR target/53988
11462         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
11463         nullptr for insn when reaching the first insn.
11464         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
11465         (sh_insn_operands_modified_between_p): Add nullptr check.
11466         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
11467         sign extending mem load if the insn contains any UNSPEC or
11468         UNSPEC_VOLATILE.
11470 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11472         * params.def (inline-unit-growth): Drop to 15%.
11473         * invoke.texi (inline-unit-growth): Document change.
11475 2015-01-19  Martin Liska  <mliska@suse.cz>
11477         PR ipa/64668
11478         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
11479         function for second argument of OBJ_TYPE_REF.
11481 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11483         PR ipa/64218
11484         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
11485         whether function is an alias.
11487 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
11489         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
11490         cases.
11492 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
11494         PR rtl-optimization/64671
11495         * lra-remat.c (operand_to_remat): Don't consider jump and call
11496         insns.
11498 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
11500         PR target/59828
11501         * config/rs6000/default64.h: Include rs6000-cpus.def.
11502         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
11503         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
11504         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
11505         and POWER8.
11506         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
11507         POWER8.
11508         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
11509         pseudo-op to specify assembler dialect.
11511 2015-01-19  Martin Liska  <mliska@suse.cz>
11513         PR ipa/64664
11514         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
11515         Handle safe potentially removed nodes during filtering.
11517 2015-01-19  Martin Liska  <mliska@suse.cz>
11519         * doc/extend.texi (no_icf): Add new attribute description.
11520         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
11521         where the pass attempts to merge a function with no_icf attribute.
11523 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11525         PR target/64532
11526         * doc/md.texi (ARM Options): Document register constraints.
11528 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
11529             Andrew Pinski  <apinski@cavium.com>
11531         PR target/64304
11532         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
11533         (ashl<mode>3): Don't expand if operands[2] is not constant.
11535 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11537         PR target/64448
11538         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
11539         Match xor-and-xor RTL pattern.
11541 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
11543         PR rtl-optimization/64081
11544         * loop-iv.c (def_pred_latch_p): New function.
11545         (latch_dominating_def): Allow specific cases with non-single
11546         definitions.
11547         (iv_get_reaching_def): Likewise.
11548         (check_complex_exit_p): New function.
11549         (check_simple_exit): Use check_complex_exit_p to allow certain cases
11550         with exits not executing on any iteration.
11552 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
11554         * common.opt (fgraphite): Fix a typo.
11556 2015-01-19  Felix Yang  <felix.yang@huawei.com>
11558         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
11559         pattern.
11560         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
11561         uminp, smax_nanp, smin_nanp): New builtins.
11562         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
11563         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
11564         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
11565         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
11566         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
11567         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
11568         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
11569         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
11570         vpminnms_f32): Rewrite using builtin functions.
11572 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11574         PR libgomp/64625
11575         * omp-low.c (offload_symbol_decl): Remove variable.
11576         (get_offload_symbol_decl): Remove function.
11577         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
11578         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
11579         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
11580         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
11581         BUILT_IN_GOACC_UPDATE don't pass it at all.
11583 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
11585         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
11586         callers.
11588 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
11590         * ipa-chkp.c (chkp_produce_thunks): Add early param
11591         to split thunks production into two passes.  Keep
11592         'always_inline' function bodies after the first pass.
11593         (pass_data_ipa_chkp_early_produce_thunks): New.
11594         (pass_ipa_chkp_early_produce_thunks): New.
11595         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
11596         chkp_produce_thunks signature.
11597         (make_pass_ipa_chkp_early_produce_thunks): New.
11598         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
11599         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
11600         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
11602 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
11604         * cgraph.c (cgraph_node::dump): Dump profile flags.
11606 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
11608         PR target/64652
11609         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
11610         reg appear first in the parallel.
11612 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
11614         * ipa-reference.c (set_reference_optimization_summary,
11615         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
11616         disabled.
11617         (ignore_module_statics): New static var.
11618         (propagate_bits): If ipa-reference is disabled, do not look into local
11619         properties.
11620         (analyze_function): Disable analysis when ipa_reference is disabled.
11621         (generate_summary): Do not dump when reference is disabled;
11622         collect vars accessed from functions with ipa-reference disabled.
11623         (get_read_write_all_from_node): When ipa-reference is disabled, use the
11624         node flags.
11625         (gate): Enable for LTO.
11626         (ignore_edge_p): New function.
11627         (propagate): Skip functions w/o ipa-reference analysis.
11628         * optc-save-gen.awk: Handle optimize_debug correctly.
11629         * opth-gen.awk: Likewise.
11630         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
11631         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
11632         fira-share-save-slots, fira-share-spill-slots,
11633         fmodulo-sched-allow-regmoves, fpartial-inlining,
11634         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
11635         ftracer, ftree-parallelize-loops, fassociative-math,
11636         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
11637         Optimization
11638         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
11639         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
11640         Optimization.
11641         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
11642         Fix for IPA.
11644 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
11646         PR ipa/64378
11647         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
11648         flag correctly.
11649         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
11651 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
11653         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
11654         Remove duplicate option listings.
11656 2015-01-18  Felix Yang  <felix.yang@huawei.com>
11658         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
11659         (autofdo_source_profile::get_callsite_total_count,
11660         function_instance::get_function_instance_by_decl,
11661         string_table::get_index, string_table::get_index_by_decl,
11662         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
11663         Fix comment typos. Reformatting and minor code rearrangement.
11665 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
11667         * config/rs6000/rs6000.md (probe_stack): Delete.
11668         (probe_stack_address): New.
11670 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
11672         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
11673         to test for 32-bit ABIs, not !TARGET_POWERPC64.
11675 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
11677         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
11678         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
11679         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
11680         snafu.
11681         (rs6000_libcall_value): Use the new function.
11683 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
11685         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
11687 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
11689         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
11690         implement a more precise life analysis for it during backward scan.
11692 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11694         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
11696 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
11698         PR rtl-optimization/52773
11699         * calls.c (emit_library_call_value): When pushing arguments use
11700         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
11701         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
11702         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
11704 2015-01-17  Jeff Law  <law@redhat.com>
11706         PR rtl-optimization/32790
11707         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
11708         not ZERO_EXTEND in SET_DESTs.
11710 2015-01-17  Alan Modra  <amodra@gmail.com>
11712         * cprop.c (do_local_cprop): Revert last change.
11714 2015-01-16  DJ Delorie  <dj@redhat.com>
11715             Nick Clifton  <nickc@redhat.com>
11717         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
11718         (addhi3_real): Likewise.  Fix [HL+0] syntax.
11719         (subqi3_real): Likewise.
11720         (subhi3_real): Likewise.
11721         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
11722         (cbranchhi4_real): Likewise.
11723         (cbranchhi4_real_inverted): Likewise.
11724         (cbranchsi4_real_lt): Likewise.
11725         (cbranchsi4_real_ge): Likewise.
11726         (cbranchsi4_real_ge): Likewise.
11727         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
11728         (sub<mode>3_virt): Likewise.
11729         (cbranchqi4_virt): Likewise.
11730         (cbranchhi4_virt): Likewise.
11731         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
11732         always use '[reg+imm]' even when imm is zero.
11733         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
11734         (rl78_general_operand): New.
11735         (rl78_nonimmediate_operand): New.
11736         (rl78_nonfar_operand): Use them.
11737         (rl78_nonfar_nonimm_operand): Likewise.
11738         (rl78_stack_based_mem): Fix.
11739         * config/rl78/constraints.md (Ibqi): New.
11740         (IBqi): New.
11741         (Wsa): New.
11742         (Wsf): New.
11743         (Cs1): Fix.
11744         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
11745         (iorqi3): Likewise.
11746         (xorqi3): Likewise.
11747         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
11749         * config/rl78/constrains (Qs8): New constraint.
11750         * config/rl78/rl78.c (rl78_flags_already_set): New function.
11751         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
11752         * config/rl78/rl78-real.md (update_Z): New attribute.
11753         Update patterns to set it.
11754         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
11755         shorter compare and branch sequence can be used.
11756         (cbranchhi4_real): Likewise.
11757         (cbranchhi4_real_inverted): Likewise.
11759         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
11760         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
11761         address space.
11762         * config/rl78/rl78.c (rl78_get_name_encoding): New.
11763         (rl78_option_override): Allow -mes0 only if C.
11764         (characterize_address): Support subregs of symbol_refs.
11765         (rl78_addr_space_address_mode): Move.  Add __near.
11766         (rl78_far_p): Likewise.
11767         (rl78_addr_space_pointer_mode): Likewise.
11768         (rl78_as_legitimate_address): Likewise.
11769         (rl78_addr_space_subset_p): Likewise.
11770         (rl78_addr_space_convert): Likewise.
11771         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
11772         symbols with -mes0.
11773         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
11774         addressing.
11775         (rl78_alloc_physical_registers_op1): Change logic to prefer
11776         symbol[BC] addressing.
11777         (frodata_section): New.
11778         (rl78_asm_init_sections): Initialize it.
11779         (rl78_select_section): Put __far readonly symbols in .frodata.
11780         (rl78_make_type_far): New.
11781         (rl78_insert_attributes): Force all readonly symbols to be
11782         __far when -mes0.
11783         (rl78_asm_out_integer): New.
11784         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
11785         * config/rl78/rl78.opt (-mes0): New.
11787         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
11788         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11789         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11790         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
11791         (rl78_saddr_p): New.
11792         (rl78_output_aligned_common): New.
11793         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
11794         (rl78_handle_saddr_attribute): New.
11795         (rl78_handle_naked_attribute): New.
11796         (rl78_attribute_table): Add saddr.
11797         (rl78_print_operand_1): Don't print '!' on saddr operands.
11798         (rl78_print_operand_1): Strip encodings.
11799         (rl78_sfr_p): New.
11800         (rl78_strip_name_encoding): New.
11801         (rl78_attrlist_to_encoding): New.
11802         (rl78_encode_section_info): New.
11803         (rl78_asm_init_sections): New.
11804         (rl78_select_section): New.
11805         (rl78_output_labelref): New.
11806         (rl78_output_aligned_common): New.
11807         (rl78_asm_out_integer): New.
11808         (rl78_asm_ctor_dtor): New.
11809         (rl78_asm_constructor): New.
11810         (rl78_asm_destructor): New.
11812         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
11813         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
11814         (transcode_memory_rtx): Update.
11815         (rl78_expand_epilogue): Use A_REG instead of 0.
11817 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11819         * config/arm/arm-protos.h (struct tune_params): New field
11820         sched_autopref_queue_depth.
11821         * config/arm/arm.c (sched-int.h): Include header.
11822         (arm_first_cycle_multipass_dfa_lookahead_guard,)
11823         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
11824         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
11825         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
11826         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
11827         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
11828         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
11829         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
11830         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
11831         * config/arm/t-arm (arm.o): Update.
11832         * haifa-sched.c (update_insn_after_change): Update.
11833         (rank_for_schedule): Use auto-prefetcher model, if requested.
11834         (autopref_multipass_init): New static function.
11835         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
11836         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
11837         variable for debug dumps.
11838         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
11839         (autopref_multipass_dfa_lookahead_guard): New global function that
11840         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
11841         (init_h_i_d): Update.
11842         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
11843         * sched-int.h (enum autopref_multipass_data_status): New const enum.
11844         (autopref_multipass_data_): Structure for auto-prefetcher data.
11845         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
11846         (struct _haifa_insn_data:autopref_multipass_data): New field.
11847         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
11848         (autopref_multipass_dfa_lookahead_guard): Declare.
11850 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11852         * rtlanal.c (get_base_term): Handle SCRATCH.
11854 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11856         * config/aarch64/aarch64.c
11857         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
11858         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11859         * config/arm/arm.c
11860         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
11861         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11863 2015-01-17  Alan Modra  <amodra@gmail.com>
11865         * cprop.c (do_local_cprop): Disallow replacement of fixed
11866         hard registers.
11868 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11870         PR target/62066
11871         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
11872         early return 0.
11874 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11876         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
11877         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
11879 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11881         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
11882         * config/arm/thumb1.md: ... Here.
11884 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11886         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
11887         TImode for TARGET_32BIT.
11889 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11891         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
11892         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
11893         as ...
11894         (rs6000_abi_word_mode): New function.
11896 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11898         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
11899         instead of UNITS_PER_WORD to describe the size of stack slots.
11901 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11903         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
11904         as rs6000_promote_function_mode.  Move comment to there.
11905         (rs6000_promote_function_mode): New function.
11907 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
11909         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
11910         -mpowerpc64 is active.
11912 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
11914         PR middle-end/64353
11915         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
11916         virtuals on start.
11918 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
11920         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
11921         introduced in revision 219724.
11923 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11924             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11926         PR target/64263
11927         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
11928         destination is not a GP reg.
11929         (*movdi_aarch64): Likewise.
11931 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
11933         PR target/64623
11934         * config/rs6000/default64.h: Revert ISA change.
11936 2015-01-16  Richard Biener  <rguenther@suse.de>
11938         PR middle-end/64614
11939         * tree-ssa-uninit.c: Include tree-cfg.h.
11940         (MAX_SWITCH_CASES): New define.
11941         (convert_control_dep_chain_into_preds): Handle switch statements.
11942         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
11943         (normalize_one_pred_1): Do not split bit-manipulations.
11944         Record (x & CST).
11946 2015-01-16  Richard Biener  <rguenther@suse.de>
11948         PR tree-optimization/64568
11949         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
11950         complex load rewriting for TARGET_MEM_REFs.
11952 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
11954         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
11956 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
11958         PR target/64149
11959         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
11960         variable.
11961         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
11962         (aarch64_lra_p): Remove.
11964 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
11966         PR target/64363
11967         * ipa-chkp.h (chkp_instrumentable_p): New.
11968         * ipa-chkp.c: Include tree-inline.h.
11969         (chkp_instrumentable_p): New.
11970         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
11971         Fix processing of not instrumentable functions.
11972         (chkp_versioning): Use chkp_instrumentable_p. Warn about
11973         not instrumentable functions.
11974         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
11975         chkp_instrumentable_p.
11976         * tree-inline.h (copy_forbidden): New.
11977         * tree-inline.c (copy_forbidden): Not static anymore.
11979 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11981         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
11982         ptr1, ptr2 unused.
11984 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
11986         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
11987         type OP_OUT to OP_INOUT.
11989 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
11991         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
11992         (high x) y) to y if x and y have the same base.
11994 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
11996         * config/arm/cortex-a57.md: New.
11997         * config/aarch64/aarch64.md: Include it.
11998         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
11999         * config/aarch64/aarch64-tune.md: Regenerate.
12001 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
12003         PR target/64015
12004         * ccmp.c (expand_ccmp_next): New function.
12005         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
12006         and compare insn sequence.
12007         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
12008         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
12009         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
12010         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
12011         (*ccmp_ior): Changed to ccmp_ior<mode>.
12012         (cmp<mode>): New pattern.
12013         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
12014         parameters.
12015         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
12017 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
12019         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
12020         _mm256_bsrli_epi128): New.
12021         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
12023 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
12025         * expmed.c (store_bit_field_using_insv): Improve warning message.
12026         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
12028 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
12030         PR rtl-optimization/64011
12031         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
12032         there is partial overflow.
12034 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
12036         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
12037         prototype.
12038         (nds32_expand_epilogue_v3pop): Likewise.
12039         * config/nds32/nds32.md (sibcall): Define this for sibling call
12040         optimization.
12041         (sibcall_register): Likewise.
12042         (sibcall_immediate): Likewise.
12043         (sibcall_value): Likewise.
12044         (sibcall_value_register): Likewise.
12045         (sibcall_value_immediate): Likewise.
12046         (sibcall_epilogue): Likewise.
12047         (epilogue): Pass false to indicate this is not a sibcall epilogue.
12048         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
12049         (nds32_expand_epilogue_v3pop): Likewise.
12051 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
12053         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
12054         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
12055         (return_internal): New.
12056         (return): Define this named pattern.
12057         (simple_return): Define this named pattern.
12058         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
12059         pattern instead of unspec_volatile_func_return.
12060         (nds32_expand_epilogue_v3pop): Likewise.
12061         (nds32_can_use_return_insn): New function.
12063 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
12065         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
12066         * config/nds32/nds32.md (pop25return): New.
12067         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
12068         pop25return pattern.
12070 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
12072         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
12073         -mforbid-fp-as-gp, and -mex9 options.
12075 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
12077         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
12078         remove -mgp-direct option.
12080 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
12082         * doc/invoke.texi (--param early-inlining-insns): Update default value.
12083         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
12085 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
12087         * ipa-inline.c (inline_small_functions): Work around hints
12088         cache issue.
12090 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
12092         PR target/59710
12093         * doc/invoke.texi (Option Summary): Document new Nios II
12094         -mgpopt= syntax.
12095         (Nios II Options): Likewise.
12096         * config/nios2/nios2.opt: Add -mgpopt= option support.
12097         Modify existing -mgpopt and -mno-gpopt options to be aliases.
12098         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
12099         * config/nios2/nios2.c (nios2_option_override): Adjust
12100         -mgpopt defaulting.
12101         (nios2_in_small_data_p): Return true for explicit small data
12102         sections even with -G0.
12103         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
12104         option choices.
12106 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
12108         PR ipa/64612
12109         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
12110         of comdat locals.
12111         (inline_call): Fix removal of aliases.
12113 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
12115         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
12116         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
12117         * opts.c (common_handle_option): Add -fsanitize=vptr.
12118         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
12119         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
12120         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
12121         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
12122         (ubsan_expand_vptr_ifn): New prototype.
12123         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
12124         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
12125         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
12126         expand_LOOP_VECTORIZED): Make argument nameless, remove
12127         ATTRIBUTE_UNUSED.
12128         (expand_UBSAN_VPTR): New function.
12129         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
12130         in fn spec.
12131         (UBSAN_VPTR): New internal function.
12132         * sanopt.c (tree_map_traits): Renamed to ...
12133         (sanopt_tree_map_traits): ... this.
12134         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
12135         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
12136         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
12137         (maybe_optimize_ubsan_vptr_ifn): New function.
12138         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
12139         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
12140         -fsanitize=vptr.
12141         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
12142         internal calls like pure functions for aliasing, even when they
12143         have other side-effects that prevent making them ECF_PURE.
12144         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
12145         (ubsan_expand_vptr_ifn): New function.
12147 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12149         PR rtl-optimization/64110
12150         * stmt.c (parse_output_constraint): Process '^' and '$'.
12151         (parse_input_constraint): Ditto.
12152         * lra-constraints.c (process_alt_operands): Process the new
12153         constraints.
12154         * ira-costs.c (record_reg_classes): Process the new constraint
12155         '^'.
12156         * genoutput.c (indep_constraints): Add '^' and '$'.
12157         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
12158         * doc/md.texi: Add description of the new constraints.
12160 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
12161             Bernd Schmidt  <bernds@codesourcery.com>
12162             Cesar Philippidis  <cesar@codesourcery.com>
12163             James Norris  <jnorris@codesourcery.com>
12164             Tom de Vries  <tom@codesourcery.com>
12165             Ilmir Usmanov  <i.usmanov@samsung.com>
12166             Dmitry Bocharnikov  <dmitry.b@samsung.com>
12167             Evgeny Gavrin  <e.gavrin@samsung.com>
12168             Jakub Jelinek  <jakub@redhat.com>
12170         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
12171         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
12172         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
12173         New function types.
12174         * builtins.c: Include "gomp-constants.h".
12175         (expand_builtin_acc_on_device): New function.
12176         (expand_builtin, is_inexpensive_builtin): Handle
12177         BUILT_IN_ACC_ON_DEVICE.
12178         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
12179         New macros.
12180         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
12181         flag_openmp.
12182         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
12183         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
12184         i386/intelmic-offload.h.
12185         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
12186         to libgomp and its dependencies.
12187         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
12188         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12189         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12190         * config/ia64/hpux.h (LIB_SPEC): Likewise.
12191         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12192         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12193         * doc/generic.texi: Update for OpenACC changes.
12194         * doc/gimple.texi: Likewise.
12195         * doc/invoke.texi: Likewise.
12196         * doc/sourcebuild.texi: Likewise.
12197         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
12198         GF_OMP_FOR_KIND_OACC_LOOP.
12199         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
12200         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
12201         GF_OMP_TARGET_KIND_OACC_UPDATE,
12202         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
12203         Dump more data.
12204         * gimple.c: Update comments for OpenACC changes.
12205         * gimple.def: Likewise.
12206         * gimple.h: Likewise.
12207         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
12208         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
12209         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
12210         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
12211         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
12212         appropriate place.
12213         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
12214         * gimplify.c: Include "gomp-constants.h".
12215         Update comments for OpenACC changes.
12216         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
12217         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
12218         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
12219         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
12220         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
12221         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
12222         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
12223         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
12224         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12225         OMP_CLAUSE_SEQ.
12226         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
12227         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
12228         OMP_CLAUSE_SET_MAP_KIND.
12229         (gimplify_oacc_cache): New function.
12230         (gimplify_omp_for): Handle OACC_LOOP.
12231         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
12232         OACC_DATA.
12233         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
12234         OACC_EXIT_DATA, OACC_UPDATE.
12235         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
12236         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
12237         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
12238         (gimplify_body): Consider flag_openacc next to flag_openmp.
12239         * lto-streamer-out.c: Include "gomp-constants.h".
12240         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
12241         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
12242         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
12243         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
12244         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
12245         (BUILT_IN_ACC_ON_DEVICE): New builtins.
12246         * omp-low.c: Include "gomp-constants.h".
12247         Update comments for OpenACC changes.
12248         (struct omp_context): Add reduction_map, gwv_below, gwv_this
12249         members.
12250         (extract_omp_for_data, use_pointer_for_field, install_var_field)
12251         (new_omp_context, delete_omp_context, scan_sharing_clauses)
12252         (create_omp_child_function, scan_omp_for, scan_omp_target)
12253         (check_omp_nesting_restrictions, lower_reduction_clauses)
12254         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
12255         Update for OpenACC changes.
12256         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
12257         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
12258         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
12259         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
12260         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
12261         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
12262         OMP_CLAUSE_MAP_*.
12263         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
12264         Handle GF_OMP_FOR_KIND_OACC_LOOP.
12265         (expand_omp_target, lower_omp_target): Handle
12266         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
12267         GF_OMP_TARGET_KIND_OACC_UPDATE,
12268         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
12269         GF_OMP_TARGET_KIND_OACC_DATA.
12270         (pass_expand_omp::execute, execute_lower_omp)
12271         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
12272         flag_openmp.
12273         (offload_symbol_decl): New variable.
12274         (oacc_get_reduction_array_id, oacc_max_threads)
12275         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
12276         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
12277         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
12278         (oacc_gimple_assign, oacc_initialize_reduction_data)
12279         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
12280         functions.
12281         (is_targetreg_ctx): Remove function.
12282         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
12283         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
12284         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
12285         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
12286         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
12287         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
12288         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
12289         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
12290         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
12291         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
12292         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
12293         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
12294         * tree-core.h: Update comments for OpenACC changes.
12295         (enum omp_clause_map_kind): Remove.
12296         (struct tree_omp_clause): Change type of map_kind member from enum
12297         omp_clause_map_kind to unsigned char.
12298         * tree-inline.c: Update comments for OpenACC changes.
12299         * tree-nested.c: Likewise.  Include "gomp-constants.h".
12300         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
12301         (convert_tramp_reference_stmt, convert_gimple_call): Update for
12302         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
12303         OMP_CLAUSE_SET_MAP_KIND.
12304         * tree-pretty-print.c: Include "gomp-constants.h".
12305         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
12306         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
12307         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
12308         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
12309         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
12310         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
12311         instead of OMP_CLAUSE_MAP_*.
12312         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
12313         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
12314         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
12315         * tree-streamer-in.c: Include "gomp-constants.h".
12316         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
12317         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
12318         * tree-streamer-out.c: Include "gomp-constants.h".
12319         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
12320         OMP_CLAUSE_MAP_*.
12321         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
12322         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
12323         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
12324         * tree.c (omp_clause_num_ops): Update accordingly.
12325         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
12326         Likewise.
12327         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
12328         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
12329         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
12330         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
12331         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
12332         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
12333         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
12334         (OMP_CLAUSE_SET_MAP_KIND): New macro.
12335         * varpool.c (varpool_node::get_create): Consider flag_openacc next
12336         to flag_openmp.
12337         * config/i386/intelmic-offload.h: New file.
12338         * config/nvptx/offload.h: Likewise.
12340 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12342         * explow.h: Remove duplicate contents.
12343         * dojump.h: Likewise.
12345 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
12347         * arm.c (arm_xgene_tune): Add default initializer for instruction
12348         fusion.
12350 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
12352         PR ipa/64068
12353         PR ipa/64559
12354         * ipa.c (symbol_table::remove_unreachable_nodes):
12355         Do not put abstract origins into boundary.
12357 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
12359         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
12360         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
12362 2015-01-15  Steve Ellcey  <sellcey@mips.com>
12364         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
12365         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
12366         builtins.def, and chkp-builtins.def.
12368 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
12370         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
12371         ISA 2.7 (POWER8).
12373 2015-01-15  Richard Biener  <rguenther@suse.de>
12375         PR tree-optimization/61743
12376         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
12377         information on PHIs for some simple cases.
12379 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12381         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
12382         Include xgene1.md.
12383         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
12384         * config/arm/arm-cores.def (xgene1): New entry.
12385         * config/arm/arm-tables.opt: Regenerate.
12386         * config/arm/arm-tune.md: Regenerate.
12387         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
12389 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
12391         * tree-if-conv.c: Include hash-map.h.
12392         (aggressive_if_conv): New variable.
12393         (fold_build_cond_expr): Add simplification of non-zero condition.
12394         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
12395         destination block is not always executed.
12396         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
12397         than two predecessors if AGGRESSIVE_IF_CONV is true.
12398         (if_convertible_stmt_p): Fix commentary.
12399         (all_preds_critical_p): New function.
12400         (has_pred_critical_p): New function.
12401         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
12402         BB can have more than two predecessors and all incoming edges can be
12403         critical.
12404         (predicate_bbs): Skip predication for loop exit block, use build2_loc
12405         to compute predicate for true edge.
12406         (find_phi_replacement_condition): Delete this function.
12407         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
12408         Allow interchange PHI arguments if EXTENDED is false.
12409         Change check that block containing reduction statement candidate
12410         is predecessor of phi-block since phi may have more than two arguments.
12411         (phi_args_hash_traits): New helper structure.
12412         (struct phi_args_hash_traits): New type.
12413         (phi_args_hash_traits::hash): New function.
12414         (phi_args_hash_traits::equal_keys): New function.
12415         (gen_phi_arg_condition): New function.
12416         (predicate_scalar_phi): Add handling of phi nodes with more than two
12417         arguments, delete COND and TRUE_BB arguments, insert body of
12418         find_phi_replacement_condition to predicate ordinary phi nodes.
12419         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
12420         delete call of find_phi_replacement_condition and invoke
12421         predicate_scalar_phi with two arguments.
12422         (insert_gimplified_predicates): Add assert that non-predicated block
12423         don't have statements to insert.
12424         (ifcvt_split_critical_edges): New function.
12425         (ifcvt_split_def_stmt): Likewise.
12426         (ifcvt_walk_pattern_tree): Likewise.
12427         (stmt_is_root_of_bool_pattern): Likewise.
12428         (ifcvt_repair_bool_pattern): Likewise.
12429         (ifcvt_local_dce): Likewise.
12430         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
12431         is copy of inner or outer loop force_vectorize field, invoke
12432         ifcvt_split_critical_edges, ifcvt_local_dce and
12433         ifcvt_repair_bool_pattern for aggressive if-conversion.
12435 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
12437         * config/aarch64/aarch64.md: Include xgene1.md.
12438         * config/aarch64/xgene1.md: New file.
12440 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12442         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
12443         xgene1 (APM XGene-1) core definition.
12444         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
12445         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
12446         * doc/invoke.texi: Document -mcpu=xgene1.
12448 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12450         * dojump.h: New header file.
12451         * explow.h: Likewise.
12452         * expr.h: Remove includes.
12453         Move expmed.c prototypes to expmed.h.
12454         Move dojump.c prototypes to dojump.h.
12455         Move alias.c prototypes to alias.h.
12456         Move explow.c prototypes to explow.h.
12457         Move calls.c prototypes to calls.h.
12458         Move emit-rtl.c prototypes to emit-rtl.h.
12459         Move varasm.c prototypes to varasm.h.
12460         Move stmt.c prototypes to stmt.h.
12461         (saved_pending_stack_adjust): Move to dojump.h.
12462         (adjust_address): Move to explow.h.
12463         (adjust_address_nv): Move to emit-rtl.h.
12464         (adjust_bitfield_address): Likewise.
12465         (adjust_bitfield_address_size): Likewise.
12466         (adjust_bitfield_address_nv): Likewise.
12467         (adjust_automodify_address_nv): Likewise.
12468         * explow.c (expr_size): Move to expr.c.
12469         (int_expr_size): Likewise.
12470         (tree_expr_size): Likewise.
12471         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12472         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
12473         * genemit.c (main): Generate includes statistics.h, real.h,
12474         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
12475         stmt.h.
12476         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
12477         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
12478         explow.h, emit-rtl.h, stmt.h.
12479         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
12480         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
12481         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
12482         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
12483         emit-rtl.h, varasm.h, stmt.h.
12484         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
12485         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
12486         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
12487         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
12488         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
12489         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
12490         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
12491         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
12492         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
12493         tm.h tree.h varasm.h vec.h wide-int.h.
12494         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12495         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
12496         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
12497         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
12498         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
12499         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
12500         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
12501         * loop-iv.c: Likewise.
12502         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
12503         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
12504         statistics.h stmt.h tree.h varasm.h wide-int.h.
12505         * lra-constraints.c: Likewise.
12506         * lra-eliminations.c: Likewise.
12507         * lra-lives.c: Likewise.
12508         * lra-remat.c: Likewise.
12509         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12510         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
12511         statistics.h stmt.h tree.h varasm.h wide-int.h.
12512         * hw-doloop.c: Likewise.
12513         * ira-color.c: Likewise.
12514         * ira-emit.c: Likewise.
12515         * loop-doloop.c: Likewise.
12516         * loop-invariant.c: Likewise.
12517         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12518         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
12519         statistics.h stmt.h tree.h varasm.h wide-int.h.
12520         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
12521         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
12522         statistics.h stmt.h tree.h varasm.h wide-int.h.
12523         * combine-stack-adj.c: Likewise.
12524         * cse.c: Likewise.
12525         * ddg.c: Likewise.
12526         * ifcvt.c: Likewise.
12527         * ira-costs.c: Likewise.
12528         * jump.c: Likewise.
12529         * lra-coalesce.c: Likewise.
12530         * lra-spills.c: Likewise.
12531         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12532         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
12533         stmt.h varasm.h wide-int.h.
12534         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12535         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
12536         varasm.h.
12537         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
12538         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
12539         statistics.h stmt.h varasm.h wide-int.h.
12540         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
12541         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
12542         varasm.h wide-int.h.
12543         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
12544         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12545         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
12546         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
12547         statistics.h stmt.h.
12548         * config/tilepro/tilepro.c: Likewise.
12549         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
12550         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
12551         * config/pdp11/pdp11.c: Likewise.
12552         * config/xtensa/xtensa.c: Likewise.
12553         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
12554         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
12555         varasm.h.
12556         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12557         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
12558         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
12559         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12560         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
12561         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
12562         * rtl-chkp.c: Likewise.
12563         * tree-chkp-opt.c: Likewise.
12564         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
12565         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
12566         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
12567         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12568         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12569         statistics.h stmt.h.
12570         * tree-vect-data-refs.c: Likewise.
12571         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
12572         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12573         rtl.h statistics.h stmt.h varasm.h.
12574         * internal-fn.c: Likewise.
12575         * ipa-icf-gimple.c: Likewise.
12576         * lto-section-out.c: Likewise.
12577         * tree-data-ref.c: Likewise.
12578         * tree-nested.c: Likewise.
12579         * tree-outof-ssa.c: Likewise.
12580         * tree-predcom.c: Likewise.
12581         * tree-pretty-print.c: Likewise.
12582         * tree-scalar-evolution.c: Likewise.
12583         * tree-ssa-strlen.c: Likewise.
12584         * tree-vect-loop.c: Likewise.
12585         * tree-vect-patterns.c: Likewise.
12586         * tree-vect-slp.c: Likewise.
12587         * tree-vect-stmts.c: Likewise.
12588         * tsan.c: Likewise.
12589         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12590         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
12591         stmt.h.
12592         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
12593         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12594         statistics.h stmt.h varasm.h.
12595         * loop-unroll.c: Likewise.
12596         * ubsan.c: Likewise.
12597         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
12598         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
12599         stmt.h varasm.h.
12600         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12601         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
12602         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
12603         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
12604         statistics.h stmt.h.
12605         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
12606         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
12607         statistics.h stmt.h varasm.h.
12608         * gimple-match-head.c: Likewise.
12609         * lto-cgraph.c: Likewise.
12610         * lto-section-in.c: Likewise.
12611         * lto-streamer-in.c: Likewise.
12612         * lto-streamer-out.c: Likewise.
12613         * tree-affine.c: Likewise.
12614         * tree-cfg.c: Likewise.
12615         * tree-cfgcleanup.c: Likewise.
12616         * tree-if-conv.c: Likewise.
12617         * tree-into-ssa.c: Likewise.
12618         * tree-ssa-alias.c: Likewise.
12619         * tree-ssa-copyrename.c: Likewise.
12620         * tree-ssa-dse.c: Likewise.
12621         * tree-ssa-forwprop.c: Likewise.
12622         * tree-ssa-live.c: Likewise.
12623         * tree-ssa-math-opts.c: Likewise.
12624         * tree-ssa-pre.c: Likewise.
12625         * tree-ssa-sccvn.c: Likewise.
12626         * tree-tailcall.c: Likewise.
12627         * tree-vect-generic.c: Likewise.
12628         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12629         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
12630         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12631         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
12632         * varasm.c: Likewise.
12633         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12634         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
12635         varasm.h.
12636         * init-regs.c: Likewise.
12637         * ira.c: Likewise.
12638         * omp-low.c: Likewise.
12639         * stack-ptr-mod.c: Likewise.
12640         * tree-ssa-reassoc.c: Likewise.
12641         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12642         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
12643         varasm.h.
12644         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12645         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
12646         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12647         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
12648         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12649         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
12650         * tree-ssa-phiopt.c: Likewise.
12651         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12652         fixed-value.h hashtab.h real.h statistics.h stmt.h.
12653         * config/fr30/fr30.c: Likewise.
12654         * config/frv/frv.c: Likewise.
12655         * expr.c: Likewise.
12656         * final.c: Likewise.
12657         * optabs.c: Likewise.
12658         * passes.c: Likewise.
12659         * simplify-rtx.c: Likewise.
12660         * stmt.c: Likewise.
12661         * toplev.c: Likewise.
12662         * var-tracking.c: Likewise.
12663         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12664         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12665         * lower-subreg.c: Likewise.
12666         * postreload-gcse.c: Likewise.
12667         * ree.c: Likewise.
12668         * reginfo.c: Likewise.
12669         * store-motion.c: Likewise.
12670         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12671         fixed-value.h hashtab.h real.h stmt.h varasm.h.
12672         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12673         fixed-value.h hashtab.h statistics.h stmt.h.
12674         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12675         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
12676         * except.c: Likewise.
12677         * explow.c: Likewise.
12678         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12679         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
12680         varasm.h.
12681         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12682         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
12683         * tree-ssa-structalias.c: Likewise.
12684         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12685         fixed-value.h insn-config.h real.h statistics.h.
12686         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12687         fixed-value.h insn-config.h real.h statistics.h stmt.h.
12688         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12689         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12690         * cfgbuild.c: Likewise.
12691         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12692         fixed-value.h real.h rtl.h statistics.h stmt.h.
12693         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12694         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12695         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12696         fixed-value.h real.h statistics.h stmt.h.
12697         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12698         fixed-value.h real.h statistics.h stmt.h varasm.h.
12699         * cprop.c: Likewise.
12700         * modulo-sched.c: Likewise.
12701         * postreload.c: Likewise.
12702         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12703         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
12704         statistics.h stmt.h varasm.h.
12705         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
12706         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12707         rtl.h statistics.h stmt.h varasm.h.
12708         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
12709         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
12710         varasm.h.
12711         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12712         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
12713         varasm.h.
12714         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
12715         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
12716         varasm.h.
12717         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
12718         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12719         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12720         function.h real.h statistics.h stmt.h varasm.h.
12721         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12722         insn-config.h real.h statistics.h stmt.h.
12723         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12724         statistics.h stmt.h.
12725         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
12726         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
12727         statistics.h stmt.h varasm.h.
12728         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
12729         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
12730         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12731         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
12732         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
12733         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12734         statistics.h stmt.h varasm.h.
12735         * ipa-polymorphic-call.c: Likewise.
12736         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
12737         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12738         statistics.h stmt.h.
12739         * config/c6x/c6x.c: Likewise.
12740         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
12741         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12742         statistics.h stmt.h varasm.h.
12743         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
12744         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
12745         stmt.h varasm.h.
12746         * ipa-split.c: Likewise.
12747         * tree-eh.c: Likewise.
12748         * tree-ssa-dce.c: Likewise.
12749         * tree-ssa-loop-niter.c: Likewise.
12750         * tree-vrp.c: Likewise.
12751         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
12752         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
12753         stmt.h.
12754         * config/nds32/nds32-fp-as-gp.c: Likewise.
12755         * config/nds32/nds32-intrinsic.c: Likewise.
12756         * config/nds32/nds32-isr.c: Likewise.
12757         * config/nds32/nds32-md-auxiliary.c: Likewise.
12758         * config/nds32/nds32-memory-manipulation.c: Likewise.
12759         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12760         * config/nds32/nds32-predicates.c: Likewise.
12761         * config/nds32/nds32.c: Likewise.
12762         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
12763         fixed-value.h hashtab.h real.h statistics.h.
12764         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
12765         fixed-value.h hashtab.h real.h statistics.h stmt.h.
12766         * config/arm/arm.c: Likewise.
12767         * config/avr/avr.c: Likewise.
12768         * config/bfin/bfin.c: Likewise.
12769         * config/h8300/h8300.c: Likewise.
12770         * config/i386/i386.c: Likewise.
12771         * config/ia64/ia64.c: Likewise.
12772         * config/iq2000/iq2000.c: Likewise.
12773         * config/m32c/m32c.c: Likewise.
12774         * config/m32r/m32r.c: Likewise.
12775         * config/m68k/m68k.c: Likewise.
12776         * config/mcore/mcore.c: Likewise.
12777         * config/mep/mep.c: Likewise.
12778         * config/mips/mips.c: Likewise.
12779         * config/mn10300/mn10300.c: Likewise.
12780         * config/moxie/moxie.c: Likewise.
12781         * config/pa/pa.c: Likewise.
12782         * config/rl78/rl78.c: Likewise.
12783         * config/rx/rx.c: Likewise.
12784         * config/s390/s390.c: Likewise.
12785         * config/sh/sh.c: Likewise.
12786         * config/sparc/sparc.c: Likewise.
12787         * config/spu/spu.c: Likewise.
12788         * config/stormy16/stormy16.c: Likewise.
12789         * config/v850/v850.c: Likewise.
12790         * config/vax/vax.c: Likewise.
12791         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
12792         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12793         * config/msp430/msp430.c: Likewise.
12794         * predict.c: Likewise.
12795         * value-prof.c: Likewise.
12796         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
12797         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
12798         * config/microblaze/microblaze.c: Likewise.
12799         * config/nios2/nios2.c: Likewise.
12800         * config/rs6000/rs6000.c: Likewise.
12801         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12802         insn-config.h real.h rtl.h statistics.h stmt.h.
12803         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12804         insn-config.h real.h statistics.h stmt.h.
12805         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
12806         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12807         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
12808         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12809         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
12810         fixed-value.h real.h statistics.h stmt.h.
12811         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
12812         fixed-value.h statistics.h stmt.h.
12813         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
12814         stmt.h.
12816 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
12818         * gengtype.c (create_user_defined_type): Workaround
12819         -Wmaybe-uninitialized false positives.
12820         * cse.c (fold_rtx): Likewise.
12821         * loop-invariant.c (gain_for_invariant): Likewise.
12823 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12825         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
12826         set the memory attributes in all cases but clear MEM_EXPR if need be.
12828 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
12830         PR tree-optimization/64434
12831         * cfgexpand.c (reorder_operands): New function.
12832         (expand_gimple_basic_block): Insert call of reorder_operands if
12833         optimized is true.
12835 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
12837         * config/mips/micromips.md (*swp): Remove explicit parallel.
12838         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
12839         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
12840         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
12841         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
12842         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
12843         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
12844         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
12845         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
12846         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
12847         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
12848         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
12849         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
12850         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
12851         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
12852         (mips_wrdsp): Likewise.
12853         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
12854         parallel.
12855         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
12856         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
12857         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
12858         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
12859         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
12860         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
12861         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
12862         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
12863         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
12865 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
12867         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
12868         (mips_print_operand): Support 'y' to print exact log2 in decimal
12869         of a const_int.
12870         * config/mips/mips.h (ISA_HAS_LSA): New define.
12871         (ISA_HAS_DLSA): Likewise.
12872         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
12873         * config/mips/predicates.md (const_immlsa_operand): New predicate.
12875 2015-01-15  Martin Liska  <mliska@suse.cz>
12877         PR target/64377
12878         * optc-save-gen.awk: Add support for array types.
12880 2015-01-15  Richard Biener  <rguenther@suse.de>
12882         PR middle-end/64365
12883         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
12884         for MEM_REF access functions with the same base can never partially
12885         overlap.
12887 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
12889         * common.opt: New option -fstack-protector-explicit.
12890         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
12891         (stack_protect_decl_phase): Handle stack_protect attribute for
12892         explicit stack protection requests.
12893         (expand_used_vars): Similarly.
12894         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
12895         * doc/extend.texi: Add documentation for "stack_protect" attribute.
12896         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
12898 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
12900         PR target/53988
12901         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
12902         reg-reg copies.
12903         (sh_extending_set_of_reg): New struct.
12904         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
12905         sh_remove_reg_dead_or_unused_notes): New Declarations.
12906         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
12907         sh_find_extending_set_of_reg, sh_split_tst_subregs,
12908         sh_extending_set_of_reg::use_as_extended_reg): New functions.
12909         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
12910         convert to insn_and_split and use new function sh_split_tst_subregs.
12912 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
12914         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
12915         option.
12916         (Optimization Options): Move -fuse-ld documentation to...
12917         (Link Options): ...here.
12919 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
12921         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
12922         offsets.
12923         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
12924         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
12925         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
12926         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
12927         instead of ZR for the memory operand of LL/SC.
12928         (compare_and_swap_12, sync_add<mode>): Likewise.
12929         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
12930         (sync_new_<optab>_12, sync_nand_12): Likewise.
12931         (sync_old_nand_12, sync_new_nand_12): Likewise.
12932         (sync_sub<mode>, sync_old_add<mode>): Likewise.
12933         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
12934         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
12935         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
12936         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
12937         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
12938         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
12939         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
12940         * doc/md.texi (ZC): Update description.
12942 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
12944         * builtins.c (expand_builtin_atomic_exchange): Remove error when
12945         memory model is CONSUME.
12946         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
12947         expand_builtin_atomic_store): Change invalid memory model errors to
12948         warnings.
12949         (expand_builtin_atomic_clear): Change invalid model errors to warnings
12950         and issue warning for CONSUME.
12952 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
12954         * lto-cgraph: Update function comments for
12955         lto_symtab_encoder_encode_*.
12957 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
12959         * Makefile.in (site.exp): Do not set ENABLE_LTO.
12961 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
12963         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
12964         * lto-cgraph.c (select_what_to_stream): Remove argument, use
12965         lto_stream_offload_p instead.
12966         * lto-streamer.h (select_what_to_stream): Remove argument.
12967         * passes.c (ipa_write_summaries): Likewise.
12968         * tree-pass.h (ipa_write_summaries): Likewise.
12970 2015-01-14  Richard Biener  <rguenther@suse.de>
12972         PR tree-optimization/59354
12973         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
12974         groups larger than the slp group size as having gaps.
12976 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
12978         PR middle-end/59448
12979         * builtins.c (get_memmodel): Promote consume to acquire always.
12981 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12983         PR target/64386
12984         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
12985         V32HImode.
12987 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12989         PR target/64393
12990         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
12991         Enable AVX512BW.
12992         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
12993         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
12994         AVX512VBMI, as it implies AVX512BW.
12996 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12998         PR target/64387
12999         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
13000         (vec_unpacks_hi_v16sf): Ditto.
13002 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13004         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
13005         is not available.
13007 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13009         * doc/invoke.texi (mapcs): Mention deprecation.
13010         (mapcs-frame): Likewise.
13012 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13014         PR target/64453
13015         * config/arm/arm.c (callee_saved_reg_p): Define.
13016         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
13017         register is callee saved instead of !call_used_regs[reg].
13018         (thumb1_compute_save_reg_mask): Likewise.
13020 2015-01-14  Hale Wang  <hale.wang@arm.com>
13022         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
13023         Cortex-M7.
13025 2015-01-14  Richard Biener  <rguenther@suse.de>
13027         PR lto/64415
13028         * tree-inline.c (insert_debug_decl_map): Check destination
13029         function MAY_HAVE_DEBUG_STMTS.
13030         (insert_init_debug_bind): Likewise.
13031         (insert_init_stmt): Remove redundant check.
13032         (remap_gimple_stmt): Drop debug stmts if the destination
13033         function has var-tracking assignments disabled.
13035 2015-01-14  Martin Liska  <mliska@suse.cz>
13037         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
13038         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
13040 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13042         PR target/64460
13043         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
13044         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
13046 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
13048         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
13049         level from an ARCH; do not inject the default.
13050         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
13051         MIPS_ISA_LEVEL_SPEC.
13052         (MIPS_ISA_NAN2008_SPEC): Update comment.
13053         (BASE_DRIVER_SELF_SPECS): Likewise.
13054         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
13055         MIPS_DEFAULT_ISA_LEVEL_SPEC.
13056         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
13057         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
13058         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
13060 2015-01-14  Richard Biener  <rguenther@suse.de>
13062         PR tree-optimization/64493
13063         PR tree-optimization/64495
13064         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
13065         assign the proper vectorized PHI to the inner loop exit PHIs.
13067 2015-01-14  Joey Ye  <joey.ye@arm.com>
13069         * config/arm/arm.c (arm_compute_save_reg_mask):
13070         Do not save lr in case of tail call.
13071         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
13073 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
13075         * tree-vrp.c (check_array_ref): Emit more warnings
13076         for warn_array_bounds >= 2.
13077         * common.opt: New option -Warray-bounds=.
13078         * doc/invoke.texi: Document -Warray-bounds=.
13080 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
13082         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
13083         (mforbid-fp-as-gp): Remove.
13084         (mex9): Remove.
13085         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
13086         (nds32_symbol_load_store_p): Remove.
13087         (nds32_fp_as_gp_check_available): Clean up implementation.
13088         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
13089         cases.
13090         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
13091         fp-as-gp and ex9 cases.
13093 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
13095         * tree-profile.c (init_ic_make_global_vars): Drop workaround
13096         for bintuils bug 14342.
13097         (init_ic_make_global_vars): Likewise.
13098         (gimple_init_edge_profiler): Likewise.
13099         (gimple_gen_ic_func_profiler): Likewise.
13101 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
13103         * ipa-inline.c (inline_small_functions): Swap the operands in
13104         enum.
13106 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
13108         PR ipa/64481
13109         * ipa-inline-analysis.c (node_growth_cache): Remove.
13110         (initialize_growth_caches): Do not initialize it.
13111         (free_growth_caches): Do not free it.
13112         (do_estimate_growth): Rename to ...
13113         (estimate_growth): ... this one; drop growth cache code.
13114         (growth_likely_positive): Always go the heuristics way.
13115         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
13116         (reset_edge_caches): Do not reset node growth.
13117         (heap_edge_removal_hook): Do not maintain cache.
13118         (inline_small_functions): Likewise; strenghten sanity check.
13119         (ipa_inline): Do not maintain caches.
13120         * ipa-inline.h (node_growth_cache): Remove.
13121         (do_estimate_growth): Remove to ...
13122         (estimate_growth): this one; remove inline version.
13123         (reset_node_growth_cache): Remove.
13125 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
13127         PR ipa/64565
13128         * ipa-inline.c (inline_small_functions): Update callee keys after
13129         resolving speculation
13130         (inline_small_functions): Always check monotonicity of the queue.
13132 2015-01-13  Marek Polacek  <polacek@redhat.com>
13134         PR middle-end/64391
13135         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
13137 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
13139         PR rtl-optimization/64286
13140         * ree.c (combine_reaching_defs): Move part of comment earlier,
13141         remove !SCALAR_INT_MODE_P check.
13142         (add_removable_extension): Don't add vector mode
13143         extensions if all uses of the source register aren't the same
13144         vector extensions.
13146 2015-01-13  Renlin Li  <renlin.li@arm.com>
13148         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
13149         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
13151 2015-01-13  Martin Liska  <mliska@suse.cz>
13153         * ipa-icf.c (sem_function::equals_private): Call new functions
13154         cl_target_option_print_diff and cl_optimization_print_diff.
13155         * optc-save-gen.awk (cl_target_option_print_diff): New function.
13156         (cl_optimization_print_diff): Likewise.
13157         * opth-gen.awk: Likewise.
13159 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
13161         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
13162         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
13163         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
13164         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
13165         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
13166         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
13168 2015-01-13  Andrew Pinski  <apinski@cavium.com>
13170         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
13171         instead of src mode.
13173 2015-01-13  Richard Biener  <rguenther@suse.de>
13175         PR lto/64373
13176         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
13177         DECL_CONTEXT.
13179 2015-01-13  Andrew Pinski  <apinski@cavium.com>
13181         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
13182         volatile mems.
13183         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13185 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
13187         PR middle-end/63974
13188         * cfgexpand.c (expand_computed_goto): Don't call
13189         convert_memory_address here.
13191 2015-01-13  Richard Biener  <rguenther@suse.de>
13193         PR tree-optimization/64406
13194         * tree-loop-distibution.c (pass_loop_distribution::execute):
13195         Reset the SCEV hashtable if we distributed anything.
13197 2015-01-13  Richard Biener  <rguenther@suse.de>
13199         PR tree-optimization/64404
13200         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
13201         SLP types for CSEd loads.
13203 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13205         PR tree-optimization/64436
13206         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
13207         merge of two symbolic numbers for a bitwise OR to ...
13208         (perform_symbolic_merge): This. Also fix computation of the range and
13209         end of the symbolic number corresponding to the result of a bitwise OR.
13211 2015-01-13  Richard Biener  <rguenther@suse.de>
13213         PR tree-optimization/64568
13214         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
13215         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
13217 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
13219         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
13220         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
13222 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
13224         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
13225         target-specific symbol_ref flag.
13226         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
13227         resides in rodata section.
13228         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
13229         (nds32_encode_section_info): New function.
13231 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
13233         * config/nds32/nds32.md (call): Use pseudo instruction bal which
13234         clobbers TA_REGNUM if large code model is specified.
13235         (call_register): Likewise.
13236         (call_immediate): Likewise.
13237         (call_value): Likewise.
13238         (call_value_register): Likewise.
13239         (call_value_immediate): Likewise.
13241 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
13243         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
13244         (TARGET_CMODEL_MEDIUM): New macro.
13245         (TARGET_CMODEL_LARGE): New macro.
13246         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
13247         code model setting in assembly code.
13249 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
13251         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
13252         Remove MASK_GP_DIRECT flag.
13253         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
13254         one of the multilib default options.
13255         * config/nds32/nds32.opt (mgp-direct): Remove.
13256         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
13257         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
13259 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
13261         * config/nds32/nds32.opt (mcmodel): Add new option.
13262         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
13263         to describe code model.
13265 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
13267         PR target/64479
13268         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
13270 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13272         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
13273         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
13274         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
13275         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
13276         __builtin_sh_set_fpscr.
13278 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
13280         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
13281         after a funtion name just to indicate it is a function.
13282         ([-fsanitize-undefined-trap-on-error]): Likewise.
13283         ([-fdbg-cnt=]): Likewise.
13284         ([-mmemcpy]): Likewise.
13285         ([-mflush-func]): Likewise.
13286         ([-msynci]): Likewise.
13288 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
13290         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
13291         example.
13293 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
13295         PR tree-optimization/64563
13296         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
13297         instead of != VR_VARYING.
13299         PR target/64513
13300         * config/i386/i386.c (ix86_expand_prologue): Add
13301         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
13303         PR tree-optimization/64454
13304         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
13305         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
13306         for signed or [0, op1 - 1] for unsigned modulo.
13307         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
13308         even if op1 does not satisfy integer_pow2p.
13310         PR other/64370
13311         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
13313 2015-01-12  Jeff Law  <law@redhat.com>
13315         PR target/64461
13316         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
13317         (trunchiqi2, truncsihi2): Similarly.
13319         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
13320         rather than calling F.
13322 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13324         * tsan.c (instrument_expr): Use force_gimple_operand.
13325         Use may_be_nonaddressable_p instead of is_gimple_addressable.
13327 2015-01-12  Richard Biener  <rguenther@suse.de>
13329         PR tree-optimization/64530
13330         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
13331         back dr1.
13333 2015-01-12  Richard Biener  <rguenther@suse.de>
13335         PR middle-end/64357
13336         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
13337         latches properly.
13339 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13341         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
13342         Cortex-A17 tuning parameters.
13343         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
13345 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13347         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
13348         * config/arm/arm.c (arm_macro_fusion_p): New function.
13349         (arm_macro_fusion_pair_p): Likewise.
13350         (TARGET_SCHED_MACRO_FUSION_P): Define.
13351         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
13352         (ARM_FUSE_NOTHING): Likewise.
13353         (ARM_FUSE_MOVW_MOVT): Likewise.
13354         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
13355         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
13356         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
13357         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
13358         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
13359         arm_cortex_a5_tune): Specify fuseable_ops value.
13361 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
13363         PR bootstrap/64561
13364         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
13365         test for PIE with copy reloc.
13366         * configure: Regenerated.
13368 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13370         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
13371         in gen_rtx_REG.
13372         (arm_tls_descseq_addr): Likewise.
13373         (arm_gen_movmemqi): Likewise.
13374         (arm_expand_epilogue_apcs_frame): Likewise.
13375         (arm_expand_epilogue): Likewise.
13376         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
13377         in gen_rtx_REG.
13379 2015-01-12  Martin Liska  <mliska@suse.cz>
13381         PR ipa/64550
13382         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
13383         volatility for correct operands.
13385 2015-01-12  Martin Liska  <mliska@suse.cz>
13387         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
13388         that a function is not leaf.
13389         (sem_function::compare_polymorphic_p): Likewise.
13391 2015-01-12  Martin Liska  <mliska@suse.cz>
13393         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
13394         that a function is not leaf.
13395         (sem_function::compare_polymorphic_p): Likewise.
13397 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13399         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
13400         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
13401         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
13402         fold-const.h, tree-check.h.
13404 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
13406         PR ipa/63967
13407         PR ipa/64425
13408         * ipa-inline.c (compute_uninlined_call_time,
13409         compute_inlined_call_time): Use counts for extra precision when
13410         needed possible.
13411         (big_speedup_p): Fix formating.
13412         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
13413         (relative_time_benefit): Remove.
13414         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
13415         merge guessed and read profile paths.
13416         (inline_small_functions): Count only !optimize_size functions into
13417         initial size; be more lax about sanity check when profile is used;
13418         be sure to update inlined function profile when profile is read.
13420 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
13422         PR ipa/63470
13423         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
13424         cost when edge becomes direct.
13425         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
13426         is resolved or when introducing new speculation.
13428 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
13430         PR ipa/64551
13431         PR ipa/64552
13432         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
13433         '||' to fix typo issue.
13435         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
13436         accept and return NULL.
13438 2015-01-12  Martin Liska  <mliska@suse.cz>
13440         * cgraph.c (cgraph_edge::remove_callee): Move function to header
13441         file for being inlined.
13442         (cgraph_set_edge_callee): Delete.
13443         (cgraph_edge::redirect_callee): Move function to header file
13444         for being inlined.
13445         (cgraph_edge::make_direct): Use new function.
13446         (cgraph_edge::dump_edge_flags): New function created from
13447         static dump_edge_flags function.
13448         (cgraph_node::dump): Use new function.
13449         (cgraph_edge::verify_count_and_frequency): New function created
13450         from verify_edge_count_and_frequency.
13451         (cgraph_edge::verify_corresponds_to_fndecl): New function created
13452         from verify_edge_corresponds_to_fndecl.
13453         (verify_edge_corresponds_to_fndecl): Delete.
13454         (cgraph_node::verify_node): Use new function.
13455         * cgraph.h (cgraph_edge::set_callee): New function.
13456         (cgraph_edge::dump_edge_flags): Likewise.
13457         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
13459 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
13461         * ipa-utils.c (estimate_function_body_sizes): Do not
13462         free node params when called late with early=true.
13464 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
13466         * doc/md.texi (Instruction Patterns): Rewrite text for
13467         clarity.
13468         (Example): Likewise.
13470 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
13472         * doc/invoke.texi (Option Summary): Break long lines.
13473         [(-fdiagnostics-color)]: Put long literal in @smallexample
13474         instead of inline.
13475         [(-fsanitize-recover)]: Likewise.
13476         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
13477         [(-ffast-math)]: Likewise.
13478         [(--param max-inline-insns-recursive)]: Likewise.
13479         [(--param max-inline-recursive-depth)]: Likewise.
13480         [(-mno-text-section-literals)]: Likewise.
13482 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
13484         * doc/install.texi: Update for libgomp being renamed from "GNU
13485         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
13486         Runtime Library".
13487         * doc/sourcebuild.texi: Likewise.
13489 2015-01-10  Anthony Green  <green@moxielogic.com>
13491         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
13492         mul.x availability for moxiebox configuration.
13494 2015-01-09  Anthony Green  <green@moxielogic.com>
13496         * config/moxie/moxie.md: Tabify assembly output.
13498 2015-01-09  Anthony Green  <green@moxielogic.com>
13500         * config/moxie/moxie.md (CC_REG): Correct register definition.
13502 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
13504         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
13505         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
13506         of log files.
13508 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
13510         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
13512 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
13513             Jakub Jelinek  <jakub@redhat.com>
13515         PR middle-end/64412
13516         * lto-streamer.h (lto_stream_offload_p): New declaration.
13517         * lto-streamer.c (lto_stream_offload_p): New variable.
13518         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
13519         at the same time as section_name_prefix.
13520         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
13521         if lto_stream_offload_p.
13522         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
13523         stream TREE_TARGET_OPTION if lto_stream_offload_p.
13524         (write_ts_function_decl_tree_pointers): Don't
13525         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
13526         * tree-streamer-in.c (unpack_value_fields): Don't stream
13527         TREE_TARGET_OPTION in if ACCEL_COMPILER.
13528         (lto_input_ts_function_decl_tree_pointers): Don't stream
13529         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
13530         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
13531         instead of section_name_prefix string comparisons.
13533 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
13535         PR rtl-optimization/64536
13536         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
13537         tablejumps.
13539 2015-01-09  Michael Collison  <michael.collison@linaro.org>
13541         PR tree-optimization/64322
13542         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
13543         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
13545 2015-01-09  Tom de Vries  <tom@codesourcery.com>
13547         PR rtl-optimization/64539
13548         * regcprop.c (kill_clobbered_values): Factor out of ...
13549         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
13550         instead of note_stores with kill_clobbered_value.
13552 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
13554          * ginclude/unwind-arm-common.h: Revert previous commit.
13556 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
13558         * config.gcc (arm*-*-freebsd*): New configuration.
13559         * config/arm/freebsd.h: New file.
13560         * config.host: Add extra components for arm*-*-freebsd*.
13561         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
13562         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
13564 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13566         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
13567         for -mcpu=e6500.
13568         * config/rs6000/t-rtems: Add e6500 multilibs.
13570 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13572         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
13573         MPC8540.
13575 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13577         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
13578         MULTILIB_EXCEPTIONS.
13580 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13582         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
13583         MULTILIB_EXCEPTIONS.
13585 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13587         * config/arm/t-rtems-eabi: Rename to...
13588         * config/arm/t-rtems: ...this.
13589         * config/arm/rtems-eabi.h: Rename to...
13590         * config/arm/rtems.h: ...this.
13591         * config.gcc (arm*-*-rtems*): Reflect changes above.
13593 2015-01-09  Richard Biener  <rguenther@suse.de>
13595         PR tree-optimization/64410
13596         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
13597         on the LHS.
13598         (execute_update_addresses_taken): Deal with that.
13599         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
13600         loads/stores for complex variables.
13602 2015-01-09  Martin Liska  <mliska@suse.cz>
13604         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
13605         name comparison.
13606         (func_checker::compare_memory_operand): New function.
13607         (func_checker::compare_operand): Split case to newly
13608         added functions.
13609         (func_checker::compare_cst_or_decl): New function.
13610         (func_checker::compare_gimple_call): Identify
13611         memory operands.
13612         (func_checker::compare_gimple_assign): Likewise.
13613         * ipa-icf-gimple.h: New function.
13615 2015-01-09  Martin Liska  <mliska@suse.cz>
13617         PR ipa/64503
13618         * sreal.c (sreal::dump): Change unsigned format to signed for
13619         m_exp value.
13620         (sreal::to_double): Replace exp2 with scalbln.
13622 2015-01-09  Martin Liska  <mliska@suse.cz>
13624         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
13625         * ipa-icf.c (sem_function::equals_private): Add support for target and
13626         (sem_item_optimizer::merge_classes): Remove redundant function
13627         optimization flags comparison.
13628         * tree.h (target_opts_for_fn): New function.
13630 2015-01-09  Tom de Vries  <tom@codesourcery.com>
13632         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
13634 2015-01-09  Kito Cheng  <kito@0xlab.org>
13636         PR rtl-optimization/64348
13637         * lra-constraints.c (split_reg): Fix caller-save store/restore
13638         instruction generation.
13640 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
13642         PR gcov-profile/61790
13643         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
13644         long long.  Fallback to int64_t if host doesn't have long long and
13645         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
13647 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
13649         PR tree-optimization/63989
13650         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
13651         from 1000 to 10000.
13652         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
13653         (get_stridx): If we don't have a record for certain SSA_NAME,
13654         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
13655         constant offset, call get_stridx_plus_constant.
13656         (get_stridx_plus_constant): New function.
13657         (zero_length_string): Don't use get_stridx here.
13659         PR target/55023
13660         PR middle-end/64388
13661         * dse.c (struct insn_info): Mention frame_read set also
13662         before reload for tail calls on some targets.
13663         (scan_insn): Revert 2014-12-22 change.  Set frame_read
13664         also before reload for tail calls if
13665         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
13666         instead of add_non_frame_wild_read for non-const/memset
13667         tail calls after reload.
13669 2015-01-08  Jason Merrill  <jason@redhat.com>
13671         * ubsan.c (do_ubsan_in_current_function): New.
13672         (pass_ubsan::gate): Use it.
13673         * ubsan.h: Declare it.
13674         * convert.c (convert_to_integer): Use it.
13676 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
13678         PR target/64338
13679         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
13680         compare_code when it is unconditionally overwritten afterwards.
13681         Use ix86_reverse_condition instead of reverse_condition.  Don't
13682         change code if *reverse_condition* returned UNKNOWN and don't
13683         swap ct/cf and negate diff in that case.
13685 2015-01-08  Mike Stump  <mikestump@comcast.net>
13687         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
13688         (pass_tsan_O0::gate): Likewise.
13689         * extend.texi (Function Attributes): Add no_sanitize_thread
13690         documentation.
13692 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
13694         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
13695         for registering builtins.
13696         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
13697         add -fopenmp to the argv_obstack used when invoking
13698         compile_for_target.
13700         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
13701         add "-m32" or "-m64" to argv_obstack.
13702         (generate_host_descr_file): Likewise, when invoking host_compiler.
13703         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
13704         ld.
13706 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
13708         * config/sh/sh-mem.cc: Use constant as second operand when emitting
13709         tstsi_t insns.
13711 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
13713         PR target/55212
13714         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
13715         constant load if constant operand fits into I08.
13717 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
13719         PR sanitizer/64336
13720         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
13721         and TREE_THIS_VOLATILE for MEM_REFs.
13722         (build5_stat): Fix up initialization of TREE_READONLY and
13723         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
13725 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13727         PR target/64533
13728         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
13729         of r for the second alternative of the destination operand.
13731 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
13733         PR target/36557
13734         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
13736 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13738         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
13739         keywords.
13740         ([-fivar-visibility], [-fvisibility]): Likewise.
13742 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13744         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
13745         the file where @code, @command, etc is more appropriate.
13747 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
13749         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
13750         of -mrecip= documentation.
13752 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
13754         PR target/64505
13755         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
13756         correct reload handler if -m32 -mpowerpc64 is used.
13758 2015-01-06  Tom de Vries  <tom@codesourcery.com>
13760         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
13762 2015-01-08  Christian Bruel  <christian.bruel@st.com>
13764         PR target/64507
13765         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
13767 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13769         PR tree-optimization/63259
13770         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
13771         if optab exists for 16bit byteswap.
13773 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
13775         * opts.c (common_handle_option): Add support for
13776         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
13777         * doc/invoke.texi: Document -fno-sanitize=all,
13778         -f{,no-}sanitize-recover=all.  Document that
13779         -fsanitize=float-cast-overflow is not enabled
13780         by -fsanitize=undefined.  Fix up documentation
13781         of -f{,no-}sanitize-recover.
13783 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13785         * config.gcc: Add Visium support.
13786         * configure.ac: Likewise.
13787         * configure: Regenerate.
13788         * doc/extend.texi (interrupt attribute): Add Visium.
13789         * doc/invoke.texi: Document Visium options.
13790         * doc/install.texi: Document Visium target.
13791         * doc/md.texi: Document Visium constraints.
13792         * common/config/visium: New directory.
13793         * config/visium: Likewise.
13795 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
13797         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
13798         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
13800 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
13802         * combine.c (combine_validate_cost): Do not count the cost of a
13803         split I2 twice.  Do not display it twice in the dump, either.
13805 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13807         Revert parts of r219199.
13808         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
13809         <inttypes.h>.
13810         ([-Wtraditional]): Restore markup on <limits.h>.
13812 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
13814         PR c++/31397
13815         * doc/invoke.texi: Document -Wsuggest-override.
13817 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
13819         PR rtl-optimization/64287
13820         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
13821         (process_options): Disable flag_ipa_ra if profiling.
13823 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13825         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
13827 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
13829         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
13830         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
13831         put under #if TARGET_LOOPS guard.
13833 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
13835         * config/i386/i386.c (output_387_binary_op): Use std::swap.
13837 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
13839         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
13840         * rtl.h (refers_to_regno_p): Add overload.
13841         * cse.c: Use it.
13842         * bt-load.c: Likewise.
13843         * combine.c: Likewise.
13844         * df-scan.c: Likewise.
13845         * sched-deps.c: Likewise.
13846         * config/s390/s390.c: Likewise.
13847         * config/m32r/m32r.c: Likewise.
13848         * config/rs6000/spe.md: Likewise.
13849         * config/rs6000/rs6000.c: Likewise.
13850         * config/pa/pa.c: Likewise.
13851         * config/stormy16/stormy16.c: Likewise.
13852         * config/cris/cris.c: Likewise.
13853         * config/arc/arc.md: Likewise.
13854         * config/arc/arc.c: Likewise.
13855         * config/sh/sh.md: Likewise.
13856         * config/sh/sh.c: Likewise.
13857         * config/frv/frv.c: Likewise.
13859 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13861         PR sanitizer/64265
13862         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
13863         call as cleanup of the whole body.
13864         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
13865         * tsan.c (replace_func_exit): New function.
13866         (instrument_func_exit): Moved earlier.
13867         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
13868         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
13869         been found.
13870         (tsan_pass): Don't call instrument_func_exit.
13871         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
13872         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
13873         inlining.
13875         PR sanitizer/64344
13876         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
13877         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
13878         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
13879         if the result is integer_zerop, return NULL_TREE.
13880         * convert.c (convert_to_integer): Pass expr as ARG.
13882         PR tree-optimization/64465
13883         * tree-inline.c (redirect_all_calls): During inlining
13884         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
13885         changed the stmt to a non-throwing call.
13887 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13889         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
13890         etc markup throughout the file.
13892 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13894         Enable experimental TSAN support for Ada.
13895         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
13897 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13899         PR tree-optimization/64494
13900         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
13901         clear SSA_NAME_ANTI_RANGE_P flag.
13903 2015-01-05  Marek Polacek  <polacek@redhat.com>
13905         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
13907 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
13909         Update copyright years.
13911         * gcc.c (process_command): Update copyright notice dates.
13912         * gcov-dump.c: Ditto.
13913         * gcov.c: Ditto.
13914         * doc/cpp.texi: Bump @copying's copyright year.
13915         * doc/cppinternals.texi: Ditto.
13916         * doc/gcc.texi: Ditto.
13917         * doc/gccint.texi: Ditto.
13918         * doc/gcov.texi: Ditto.
13919         * doc/install.texi: Ditto.
13920         * doc/invoke.texi: Ditto.
13922         * auto-profile.c, auto-profile.h: Fix up Copyright line.
13924 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
13926         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
13927         verb tense, etc.
13928         ([-fvtable-verify], [-fvtv-debug]): Likewise.
13929         ([-Wabi]): Likewise.
13930         ([-fmessage-length]): Likewise.
13931         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
13932         ([-Wno-discarded-qualifiers]): Likewise.
13933         ([-Wnodiscarded-array-qualifiers]): Likewise.
13934         ([-Wno-virtual-move-assign]): Likewise.
13935         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
13936         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
13937         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
13938         ([-fsanitize-undefined-trap-on-error]): Likewise.
13939         ([-floop-interchange]): Likewise.
13940         ([-ftree-coalesce-inlined-vars]): Likewise.
13941         ([-fvect-cost-model]): Likewise.
13942         ([-flto]): Likewise.
13943         ([--param]): Likewise.
13944         (Spec Files): Likewise.
13945         ([-mstrict-align]): Likewise.
13946         ([-mfix-cortex-a53-835769]): Likewise.
13947         ([-march], [-mtune]): Likewise.
13948         ([-mpic-register]): Likewise.
13949         ([-munaligned-access]): Likewise.
13950         ([-msp8]): Likewise.
13951         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
13952         (AVR Built-in Macros): Likewise.
13953         ([-mpreferred-stack-boundary]): Likewise.
13954         ([-mtune-crtl]): Likewise.
13955         ([-mashf]): Likewise.
13956         ([-mmcu=]): Likewise.
13957         ([-minrt]): Likewise.
13958         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
13959         ([-mupper-regs]): Likewise.
13960         ([-matomic-model]): Likewise.
13961         ([-mdiv]): Likewise.
13962         ([-mzdcbranch]): Likewise.
13963         ([-mdisable-callt]): Likewise.
13964         ([-msoft-float]): Likewise.
13965         ([-m8byte-align]): Likewise.
13966         ([-fstack-reuse]): Likewise.
13968 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13970         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
13971         Fix markup, light copy-editing.
13972         ([-fauto-profile]): Rewrite to fix formatting and content
13973         problems.
13975 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13977         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
13978         Copy-edit description.
13979         ([-fisolate-erroneous-paths-attribute]): Likewise.
13980         * common.opt (fisolate-erroneous-paths-dereference):
13981         Copy-edit description.
13982         (fisolate-erroneous-paths-attribute): Likewise.
13984 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13986         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
13987         tidy grammar.
13989 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13991         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
13992         ([-fvtv-debug]): Likewise.
13993         ([-Wc++-compat]): Likewise.
13994         ([-Wc++11-compat]): Likewise.
13995         ([-Wc++14-compat]): Likewise.
13996         ([-Wno-sized-deallocation]): Likewise.
13997         ([-femit-class-debug-always]): Likewise.
13998         ([-femit-struct-debug-detailed]): Likewise.
13999         ([-fno-keep-inline-dllexport]): Likewise.
14000         ([-fira-algorithm]): Likewise.
14001         ([-fira-region]): Likewise.
14002         ([-flra-remat]): Likewise.
14003         ([-fipa-ra]): Likewise.
14004         ([-fhoist-adjacent-loads]): Likewise.
14005         ([-fisolate-erroneous-paths-dereference]): Likewise.
14006         ([-fisolate-erroneous-paths-attribute]): Likewise.
14007         ([-ftree-switch-conversion]): Likewise.
14008         ([-ftree-tail-merge]): Likewise.
14009         ([-ftree-loop-if-convert]): Likewise.
14010         ([-ftree-loop-if-convert-stores]): Likewise.
14011         ([-ftree-loop-distribution]): Likewise.
14012         ([-ftree-loop-distribute-patterns]): Likewise.
14013         ([-flto-compression-level]): Likewise.
14014         ([-flto-report]): Likewise.
14015         ([-flto-report-wpa]): Likewise.
14016         ([-fuse-linker-plugin]): Likewise.
14017         ([-mfix-cortex-a53-835769]): Likewise.
14018         ([-mno-fix-cortex-a53-835769]): Likewise.
14019         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
14020         explicit listing; add a note to the discussion indicating they
14021         exist.  Reorder table to group similar options.  Add missing
14022         @opindex entries.  Add @need commands throughout the table to
14023         allow it to be split across multiple pages.
14024         ([-m8bit-idiv]): Fix @opindex.
14025         ([-mavx256-split-unaligned-load]): Likewise.
14026         ([-mavx256-split-unaligned-store]): Likewise.
14027         ([-mstack-protector-guard]): Likewise.
14028         ([-mcpu=]): Likewise.
14029         ([-mcpu]): Likewise.
14030         ([-mpointer-size=]): Likewise.
14032 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
14034         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
14035         instead of `m' constraint.  Likewise for unnamed movb comparison
14036         patterns using reg_before_reload_operand predicate.
14037         * config/pa/predicates.md (reg_before_reload_operand): Tighten
14038         predicate to reject register index and LO_SUM DLT memory forms
14039         after reload.
14041 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
14043         * doc/invoke.texi (Option Summary): Fix spelling of
14044         -fdevirtualize-at-ltrans.
14045         ([-fdevirtualize]): Fix markup.
14046         ([-fdevirtualize-speculatively]): Fix typo.
14047         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
14048         implementor-speaky.
14049         * common.opt (fdevirtualize-at-ltrans): Likewise.
14050         * ipa-devirt.c: Fix typos in comments throughout the file.
14051         (ipa_devirt): Fix typos in format strings for dump output.
14053 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
14055         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
14056         discussion of defaults, light copy-editing.
14058 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14060         * tsan.c (instrument_expr): corrected previous checkin.
14062 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14064         Instrument bit field and unaligned accesses for TSAN.
14065         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
14066         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
14067         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
14068         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
14069         unaligned memory regions.
14071 2015-01-01  Anthony Green  <green@moxielogic.com>
14073         * config/moxie/predicates.md (moxie_general_movsrc_operand):
14074         Restrict move source register offsets to 16 bits.
14076 Copyright (C) 2015 Free Software Foundation, Inc.
14078 Copying and distribution of this file, with or without modification,
14079 are permitted in any medium without royalty provided the copyright
14080 notice and this notice are preserved.