1 2014-01-23 Nick Clifton <nickc@redhat.com>
3 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
4 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
5 favour of mcu specific scripts.
6 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
9 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
10 Alex Velenko <Alex.Velenko@arm.com>
12 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
13 (vaddv_s16): Likewise.
14 (vaddv_s32): Likewise.
16 (vaddv_u16): Likewise.
17 (vaddv_u32): Likewise.
18 (vaddvq_s8): Likewise.
19 (vaddvq_s16): Likewise.
20 (vaddvq_s32): Likewise.
21 (vaddvq_s64): Likewise.
22 (vaddvq_u8): Likewise.
23 (vaddvq_u16): Likewise.
24 (vaddvq_u32): Likewise.
25 (vaddvq_u64): Likewise.
26 (vaddv_f32): Likewise.
27 (vaddvq_f32): Likewise.
28 (vaddvq_f64): Likewise.
29 (vmaxv_f32): Likewise.
31 (vmaxv_s16): Likewise.
32 (vmaxv_s32): Likewise.
34 (vmaxv_u16): Likewise.
35 (vmaxv_u32): Likewise.
36 (vmaxvq_f32): Likewise.
37 (vmaxvq_f64): Likewise.
38 (vmaxvq_s8): Likewise.
39 (vmaxvq_s16): Likewise.
40 (vmaxvq_s32): Likewise.
41 (vmaxvq_u8): Likewise.
42 (vmaxvq_u16): Likewise.
43 (vmaxvq_u32): Likewise.
44 (vmaxnmv_f32): Likewise.
45 (vmaxnmvq_f32): Likewise.
46 (vmaxnmvq_f64): Likewise.
47 (vminv_f32): Likewise.
49 (vminv_s16): Likewise.
50 (vminv_s32): Likewise.
52 (vminv_u16): Likewise.
53 (vminv_u32): Likewise.
54 (vminvq_f32): Likewise.
55 (vminvq_f64): Likewise.
56 (vminvq_s8): Likewise.
57 (vminvq_s16): Likewise.
58 (vminvq_s32): Likewise.
59 (vminvq_u8): Likewise.
60 (vminvq_u16): Likewise.
61 (vminvq_u32): Likewise.
62 (vminnmv_f32): Likewise.
63 (vminnmvq_f32): Likewise.
64 (vminnmvq_f64): Likewise.
66 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
68 * config/aarch64/aarch64-simd.md
69 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
70 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
71 (*aarch64_mul3_elt<mode>): Likewise.
72 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
73 (*aarch64_mul3_elt_to_64v2df): Likewise.
74 (*aarch64_mla_elt<mode>): Likewise.
75 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
76 (*aarch64_mls_elt<mode>): Likewise.
77 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
78 (*aarch64_fma4_elt<mode>): Likewise.
79 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
80 (*aarch64_fma4_elt_to_64v2df): Likewise.
81 (*aarch64_fnma4_elt<mode>): Likewise.
82 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
83 (*aarch64_fnma4_elt_to_64v2df): Likewise.
84 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
85 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
86 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
87 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
88 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
89 (aarch64_sqdmull_lane<mode>_internal): Likewise.
90 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
92 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
94 * config/aarch64/aarch64-simd.md
95 (aarch64_be_checked_get_lane<mode>): New define_expand.
96 * config/aarch64/aarch64-simd-builtins.def
97 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0):
98 New builtin definition.
99 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
100 Use new safe be builtin.
102 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
104 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
106 (aarch64_be_st1<mode>): Likewise.
107 (aarch_ld1<VALL:mode>): Define_expand modified.
108 (aarch_st1<VALL:mode>): Likewise.
109 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
110 (UNSPEC_ST1): Likewise.
112 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
114 * config/microblaze/microblaze.md: Add trap insn and attribute
116 2014-01-23 Dodji Seketeli <dodji@redhat.com>
118 PR preprocessor/58580
119 * input.h (location_get_source_line): Take an additional line_size
121 (void diagnostics_file_cache_fini): Declare new function.
122 * input.c (struct fcache): New type.
123 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
124 New static constants.
125 (diagnostic_file_cache_init, total_lines_num)
126 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
127 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
128 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
129 (get_next_line, read_next_line, goto_next_line, read_line_num):
130 New static function definitions.
131 (diagnostic_file_cache_fini): New function.
132 (location_get_source_line): Take an additional output line_len
133 parameter. Re-write using lookup_or_add_file_to_cache_tab and
135 * diagnostic.c (diagnostic_finish): Call
136 diagnostic_file_cache_fini.
137 (adjust_line): Take an additional input parameter for the length
138 of the line, rather than calculating it with strlen.
139 (diagnostic_show_locus): Adjust the use of
140 location_get_source_line and adjust_line with respect to their new
141 signature. While displaying a line now, do not stop at the first
142 null byte. Rather, display the zero byte as a space and keep
143 going until we reach the size of the line.
144 * Makefile.in: Add vec.o to OBJS-libcommon
146 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
147 Ilya Tocar <ilya.tocar@intel.com>
149 * config/i386/avx512fintrin.h (_mm512_kmov): New.
150 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
151 (__builtin_ia32_kmov16): Ditto.
152 * config/i386/i386.md (UNSPEC_KMOV): New.
155 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
157 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
158 (_mm512_storeu_si512): Ditto.
160 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
163 * rtl.h (get_referenced_operands): Declare.
164 * recog.c (get_referenced_operands): New function.
165 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
166 operands have been referenced when recording LO_SUM references.
168 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
170 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
172 2014-01-22 Jan Hubicka <jh@suse.cz>
174 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
175 Enable for generic and recent AMD targets.
177 2014-01-22 Jan Hubicka <jh@suse.cz>
179 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
180 ARG_SIZE note when adjustment was eliminated.
182 2014-01-22 Jeff Law <law@redhat.com>
184 PR tree-optimization/59597
185 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
186 in file. Accept new argument REGISTERING and use it to modify
187 dump output appropriately.
188 (register_jump_thread): Corresponding changes.
189 (mark_threaded_blocks): Reinstate code to cancel unprofitable
190 thread paths involving joiner blocks. Add code to dump cancelled
191 jump threading paths.
193 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
195 PR rtl-optimization/59477
196 * lra-constraints.c (inherit_in_ebb): Process call for living hard
197 regs. Update reloads_num and potential_reload_hard_regs for all
200 2014-01-22 Tom Tromey <tromey@redhat.com>
202 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
204 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
206 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
208 PR rtl-optimization/59896
209 * lra-constraints.c (process_alt_operands): Check unused note for
210 matched operands of insn with no output reloads.
212 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
214 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
215 (mips_move_from_gpr_cost): Likewise.
217 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
219 PR rtl-optimization/59858
220 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
221 ira_class_hard_regs_num.
222 (process_alt_operands): Increase reject for dying matched operand.
224 2014-01-21 Jakub Jelinek <jakub@redhat.com>
227 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
228 smaller than size, perform several stores or loads and stores
229 at dst + count - size to store or copy all of size bytes, rather
230 than just last modesize bytes.
232 2014-01-20 DJ Delorie <dj@redhat.com>
234 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
235 that CLOBBERs are REGs before propogating their values.
237 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
240 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
241 (cgraph_inline_failed_type): New function.
242 * cgraph.h (DEFCIFCODE): Add type.
243 (cgraph_inline_failed_type_t): New enum.
244 (cgraph_inline_failed_type): New prototype.
245 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
246 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
247 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
248 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
249 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
250 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
251 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
252 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
253 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
254 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
255 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
256 OPTIMIZATION_MISMATCH.
257 * tree-inline.c (expand_call_inline): Emit errors during
258 early_inlining if cgraph_inline_failed_type returns
261 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
264 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
265 mode attribute in insn output.
267 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
269 * output.h (output_constant): Delete.
270 * varasm.c (output_constant): Make private.
272 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
274 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
276 2014-01-20 Jakub Jelinek <jakub@redhat.com>
279 * tree.h (fold_builtin_strcat): New prototype.
280 * builtins.c (fold_builtin_strcat): No longer static. Add len
281 argument, if non-NULL, don't call c_strlen. Optimize
282 directly into __builtin_memcpy instead of __builtin_strcpy.
283 (fold_builtin_2): Adjust fold_builtin_strcat caller.
284 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
286 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
288 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
289 for SImode_address_operand operands, having only a REG argument.
291 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
293 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
294 loader name using mbig-endian.
295 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
297 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
299 * doc/invoke.texi (-march): Clarify documentation for AArch64.
303 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
305 * config/aarch64/aarch64-protos.h
306 (aarch64_cannot_change_mode_class_ptr): Declare.
307 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
308 aarch64_cannot_change_mode_class_ptr): New.
309 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
310 backend hook aarch64_cannot_change_mode_class.
312 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
314 * common/config/aarch64/aarch64-common.c
315 (aarch64_handle_option): Don't handle any option order logic here.
316 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
317 selected_cpu, warn on architecture version mismatch.
318 (aarch64_override_options): Fix parsing order for option strings.
320 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
321 Iain Sandoe <iain@codesourcery.com>
324 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
325 warning. Amend comment to reflect current functionality.
327 2014-01-20 Richard Biener <rguenther@suse.de>
330 * builtins.c (fold_builtin_strcat): Remove case better handled
331 by tree-ssa-strlen.c.
333 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
335 * config/aarch64/aarch64.opt
336 (mcpu, march, mtune): Make case-insensitive.
338 2014-01-20 Jakub Jelinek <jakub@redhat.com>
341 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
342 if operands[1] is a REG or ZERO_EXTEND of a REG.
344 2014-01-19 Jan Hubicka <jh@suse.cz>
346 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
348 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
350 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
351 long non-pic millicode calls.
353 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
355 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
357 2014-01-19 Kito Cheng <kito@0xlab.org>
359 * builtins.c (expand_movstr): Check movstr expand done or fail.
361 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
362 H.J. Lu <hongjiu.lu@intel.com>
365 * config/i386/i386.md (*lea<mode>): Zero-extend return register
366 to DImode for zero-extended addresses.
368 2014-01-19 Jakub Jelinek <jakub@redhat.com>
370 PR rtl-optimization/57763
371 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
372 on the new indirect jump_insn and increment LABEL_NUSES (label).
374 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
378 * config.gcc (x86_archs): New variable.
379 (x86_64_archs): Likewise.
380 (x86_cpus): Likewise.
381 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
382 --with-arch/--with-cpu= options.
383 Support --with-arch=/--with-cpu={nehalem,westmere,
384 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
386 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
388 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
389 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
391 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
393 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
395 2014-01-18 Jakub Jelinek <jakub@redhat.com>
398 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
399 clear cpp_get_options (parse_in)->warn_unused_macros for
400 ix86_target_macros_internal with cpp_define.
402 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
404 * jump.c (delete_related_insns): Keep (use (insn))s.
405 * reorg.c (redundant_insn): Check for barriers too.
407 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
409 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
411 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
413 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
414 call to $$dyncall when TARGET_LONG_CALLS is true.
416 2014-01-17 Jeff Law <law@redhat.com>
418 * ree.c (combine_set_extension): Temporarily disable test for
419 changing number of hard registers.
421 2014-01-17 Jan Hubicka <jh@suse.cz>
424 * ipa-inline-analysis.c (inline_free_summary):
425 Do not free summary of aliases.
427 2014-01-17 Jakub Jelinek <jakub@redhat.com>
430 * gimplify.c (gimplify_expr): Use create_tmp_var
431 instead of create_tmp_var_raw. If cond doesn't have
432 integral type, don't add the IFN_ANNOTATE builtin at all.
434 2014-01-17 Martin Jambor <mjambor@suse.cz>
437 * ipa-cp.c (prev_edge_clone): New variable.
438 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
439 Also resize prev_edge_clone vector.
440 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
441 (ipcp_edge_removal_hook): New function.
442 (ipcp_driver): Register ipcp_edge_removal_hook.
444 2014-01-17 Andrew Pinski <apinski@cavium.com>
445 Steve Ellcey <sellcey@mips.com>
448 * config/mips/mips.c (mips_print_operand): Check operand mode instead
451 2014-01-17 Jeff Law <law@redhat.com>
454 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
455 so that pass_ccp runs first.
457 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
459 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
460 (ix86_adjust_cost): Use !TARGET_XXX.
461 (do_reorder_for_imul): Likewise.
462 (swap_top_of_ready_list): Likewise.
463 (ix86_sched_reorder): Likewise.
465 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
467 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
468 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
469 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
470 (intel_memset): New. Duplicate slm_memset.
471 (intel_cost): New. Duplicate slm_cost.
472 (m_INTEL): New macro.
473 (processor_target_table): Add "intel".
474 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
475 with PROCESSOR_INTEL for "intel".
476 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
477 PROCESSOR_SILVERMONT.
478 (ix86_issue_rate): Likewise.
479 (ix86_adjust_cost): Likewise.
480 (ia32_multipass_dfa_lookahead): Likewise.
481 (swap_top_of_ready_list): Likewise.
482 (ix86_sched_reorder): Likewise.
483 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
484 instead of TARGET_OPT_AGU.
485 * config/i386/i386.h (TARGET_INTEL): New.
486 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
487 (processor_type): Add PROCESSOR_INTEL.
488 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
489 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
491 2014-01-17 Marek Polacek <polacek@redhat.com>
494 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
497 2014-01-17 Richard Biener <rguenther@suse.de>
499 PR tree-optimization/46590
500 * opts.c (default_options_table): Add entries for
501 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
502 all enabled at -O1 but not for -Og.
503 * common.opt (fbranch-count-reg): Remove Init(1).
504 (fmove-loop-invariants): Likewise.
505 (ftree-pta): Likewise.
507 2014-01-17 Jakub Jelinek <jakub@redhat.com>
509 * config/i386/i386.c (ix86_data_alignment): For compatibility with
510 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
511 decls to at least the GCC 4.8 used alignments.
514 * tree-nested.c (convert_nonlocal_reference_stmt,
515 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
516 of GIMPLE_BIND stmts, adjust associated decls.
518 2014-01-17 Richard Biener <rguenther@suse.de>
520 PR tree-optimization/46590
521 * vec.h (vec<>::bseach): New member function implementing
522 binary search according to C89 bsearch.
523 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
524 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
525 bitmap pointer again. Make accesses_in_loop a flat array.
526 (mem_ref_obstack): New global.
527 (outermost_indep_loop): Adjust for mem_ref->stored changes.
528 (mark_ref_stored): Likewise.
529 (ref_indep_loop_p_2): Likewise.
530 (set_ref_stored_in_loop): New helper function.
531 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
532 (memref_free): Adjust.
533 (record_mem_ref_loc): Simplify.
534 (gather_mem_refs_stmt): Adjust.
535 (sort_locs_in_loop_postorder_cmp): New function.
536 (analyze_memory_references): Sort accesses_in_loop after
537 loop postorder number.
538 (find_ref_loc_in_loop_cmp): New function.
539 (for_all_locs_in_loop): Find relevant cluster of locs in
540 accesses_in_loop and iterate without recursion.
541 (execute_sm): Avoid uninit warning.
542 (struct ref_always_accessed): Simplify.
543 (ref_always_accessed::operator ()): Likewise.
544 (ref_always_accessed_p): Likewise.
545 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
546 loop postorder numbers here.
547 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
550 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
553 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
554 on decls for which assemble_alias has been called.
556 2014-01-17 Nick Clifton <nickc@redhat.com>
558 * config/msp430/msp430.opt: (mcpu): New option.
559 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
560 (msp430_option_override): Parse target_cpu. If the MCU name
561 matches a generic string, clear target_mcu.
562 (msp430_attr): Allow numeric interrupt values up to 63.
563 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
564 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
566 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
568 * config/msp430/msp430.md (popm): Use %J rather than %I.
569 (addsi3): Use msp430_nonimmediate_operand for operand 2.
570 (addhi_cy_i): Use immediate_operand for operand 2.
571 * doc/invoke.texi: Document -mcpu option.
573 2014-01-17 Richard Biener <rguenther@suse.de>
575 PR rtl-optimization/38518
576 * df.h (df_analyze_loop): Declare.
577 * df-core.c: Include cfgloop.h.
578 (df_analyze_1): Split out main part of df_analyze.
579 (df_analyze): Adjust.
580 (loop_inverted_post_order_compute): New function.
581 (loop_post_order_compute): Likewise.
582 (df_analyze_loop): New function avoiding whole-function
584 * loop-invariant.c (find_defs): Use df_analyze_loop.
585 (find_invariants): Adjust.
586 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
588 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
590 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
591 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
593 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
595 * ipa-ref.c (ipa_remove_stmt_references): Fix references
596 traversal when removing references.
598 2014-01-16 Jan Hubicka <jh@suse.cz>
601 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
603 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
606 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
607 pushing a reload for an autoinc when we had previously reloaded an
608 inner part of the address.
610 2014-01-16 Jakub Jelinek <jakub@redhat.com>
612 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
614 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
615 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
616 when not giving up or versioning for alias only because of
618 (vect_analyze_data_ref_dependences): Set to true.
619 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
621 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
622 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
626 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
629 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
630 operand 0 predicate for gathers, use a new pseudo as subtarget.
632 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
635 * lra-constraints.c (process_alt_operands): Add printing debug info.
636 Check absence of input/output reloads for matched operands too.
638 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
640 PR rtl-optimization/59835
641 * ira.c (ira_init_register_move_cost): Increase cost for
644 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
646 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
648 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
651 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
652 non-register objects. Use gen_(high/low)part more consistently.
655 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
658 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
659 endian support, remove tests for WORDS_BIG_ENDIAN.
660 (p8_mfvsrd_3_<mode>): Likewise.
661 (reload_gpr_from_vsx<mode>): Likewise.
662 (reload_gpr_from_vsxsf): Likewise.
663 (p8_mfvsrd_4_disf): Likewise.
665 2014-01-16 Richard Biener <rguenther@suse.de>
667 PR rtl-optimization/46590
668 * lcm.c (compute_antinout_edge): Use postorder iteration.
669 (compute_laterin): Use inverted postorder iteration.
671 2014-01-16 Nick Clifton <nickc@redhat.com>
674 * varasm.c (output_constant): Return the number of bytes actually
676 (output_constructor_array_range): Update the field size with the
677 number of bytes emitted by output_constant.
678 (output_constructor_regular_field): Likewise. Also do not
679 complain if the total number of bytes emitted is now greater
680 than the expected fieldpos.
681 * output.h (output_constant): Update prototype and descriptive comment.
683 2014-01-16 Marek Polacek <polacek@redhat.com>
686 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
687 it is error_mark_node.
689 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
691 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
692 VALID_AVX256_REG_OR_OI_MODE.
694 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
696 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
697 current procedure should be profiled.
699 2014-01-15 Andrew Pinski <apinski@cavium.com>
701 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
702 of moving from/to the STACK_REG register class.
704 2014-01-15 Richard Henderson <rth@redhat.com>
707 * reginfo.c (global_regs_decl): Globalize.
708 * rtl.h (global_regs_decl): Declare.
709 * ira.c (do_reload): Diagnose frame_pointer_needed and it
710 reserved via global_regs.
712 2014-01-15 Teresa Johnson <tejohnson@google.com>
714 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
716 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
718 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
719 and vmulosh rather than call gen_vec_widen_smult_*.
720 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
721 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
722 (vec_widen_smult_even_v16qi): Likewise.
723 (vec_widen_umult_even_v8hi): Likewise.
724 (vec_widen_smult_even_v8hi): Likewise.
725 (vec_widen_umult_odd_v16qi): Likewise.
726 (vec_widen_smult_odd_v16qi): Likewise.
727 (vec_widen_umult_odd_v8hi): Likewise.
728 (vec_widen_smult_odd_v8hi): Likewise.
729 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
730 vmuloub rather than call gen_vec_widen_umult_*.
731 (vec_widen_umult_lo_v16qi): Likewise.
732 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
733 vmulosb rather than call gen_vec_widen_smult_*.
734 (vec_widen_smult_lo_v16qi): Likewise.
735 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
736 rather than call gen_vec_widen_umult_*.
737 (vec_widen_umult_lo_v8hi): Likewise.
738 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
739 rather than call gen_vec_widen_smult_*.
740 (vec_widen_smult_lo_v8hi): Likewise.
742 2014-01-15 Jeff Law <law@redhat.com>
744 PR tree-optimization/59747
745 * ree.c (find_and_remove_re): Properly handle case where a second
746 eliminated extension requires widening a copy created for elimination
747 of a prior extension.
748 (combine_set_extension): Ensure that the number of hard regs needed
749 for a destination register does not change when we widen it.
751 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
753 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
754 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
755 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
756 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
757 (avr-*-rtems*): Likewise.
758 (bfin*-rtems*): Likewise.
759 (moxie-*-rtems*): Likewise.
760 (h8300-*-rtems*): Likewise.
761 (i[34567]86-*-rtems*): Likewise.
762 (lm32-*-rtems*): Likewise.
763 (m32r-*-rtems*): Likewise.
764 (m68k-*-rtems*): Likewise.
765 (microblaze*-*-rtems*): Likewise.
766 (mips*-*-rtems*): Likewise.
767 (powerpc-*-rtems*): Likewise.
768 (sh-*-rtems*): Likewise.
769 (sparc-*-rtems*): Likewise.
770 (sparc64-*-rtems*): Likewise.
771 (v850-*-rtems*): Likewise.
772 (m32c-*-rtems*): Likewise.
774 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
776 PR rtl-optimization/59511
777 * ira.c (ira_init_register_move_cost): Use memory costs for some
778 cases of register move cost calculations.
779 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
780 instead of BB frequency.
781 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
782 * lra-assigns.c (find_hard_regno_for): Ditto.
784 2014-01-15 Richard Biener <rguenther@suse.de>
786 PR tree-optimization/59822
787 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
788 (vectorizable_load): Use it to hoist defs of uses of invariant
789 loads out of the loop.
791 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
792 Kugan Vivekanandarajah <kuganv@linaro.org>
795 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
798 2014-01-15 Richard Biener <rguenther@suse.de>
800 PR rtl-optimization/59802
801 * lcm.c (compute_available): Use inverted postorder to seed
802 the initial worklist.
804 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
807 * config/s390/s390.c (s390_preferred_reload_class): Don't return
808 ADDR_REGS for invalid symrefs in non-PIC code.
810 2014-01-15 Jakub Jelinek <jakub@redhat.com>
813 * builtins.c (determine_block_size): Initialize *probable_max_size
814 even if len_rtx is CONST_INT.
816 2014-01-14 Andrew Pinski <apinski@cavium.com>
818 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
819 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
820 (cortexa53_tunings): Likewise.
821 (aarch64_sched_issue_rate): New function.
822 (TARGET_SCHED_ISSUE_RATE): Define.
824 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
826 * ira-costs.c (find_costs_and_classes): Add missed
827 ira_init_register_move_cost_if_necessary.
829 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
832 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
834 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
837 * config/i386/i386.c (type_natural_mode): Add a bool parameter
838 to indicate if type is used for function return value. Warn ABI
839 change if the vector mode isn't available for function return value.
840 (ix86_function_arg_advance): Pass false to type_natural_mode.
841 (ix86_function_arg): Likewise.
842 (ix86_gimplify_va_arg): Likewise.
843 (function_arg_32): Don't warn ABI change.
844 (ix86_function_value): Pass true to type_natural_mode.
845 (ix86_return_in_memory): Likewise.
846 (ix86_struct_value_rtx): Removed.
847 (TARGET_STRUCT_VALUE_RTX): Likewise.
849 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
851 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
852 converting a conditional jump into a conditional return.
854 2014-01-14 Richard Biener <rguenther@suse.de>
856 PR tree-optimization/58921
857 PR tree-optimization/59006
858 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
859 hoisting invariant stmts.
860 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
861 invariant loads on the preheader edge if possible.
863 2014-01-14 Joey Ye <joey.ye@arm.com>
865 * doc/plugin.texi (Building GCC plugins): Update to C++.
867 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
869 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
870 (_mm_rcp28_round_ss): Ditto.
871 (_mm_rsqrt28_round_sd): Ditto.
872 (_mm_rsqrt28_round_ss): Ditto.
873 (_mm_rcp28_sd): Ditto.
874 (_mm_rcp28_ss): Ditto.
875 (_mm_rsqrt28_sd): Ditto.
876 (_mm_rsqrt28_ss): Ditto.
877 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
878 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
879 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
880 (IX86_BUILTIN_RCP28SD): Ditto.
881 (IX86_BUILTIN_RCP28SS): Ditto.
882 (IX86_BUILTIN_RSQRT28SD): Ditto.
883 (IX86_BUILTIN_RSQRT28SS): Ditto.
884 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
885 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
886 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
887 (ix86_expand_special_args_builtin): Expand new FTYPE.
888 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
889 (srcp14<mode>): Make insn unary.
890 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
891 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
892 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
893 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
894 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
895 Fix rounding: make it SAE only.
896 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
898 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
900 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
901 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
902 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
903 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
904 (round_saeonly_mask_scalar_operand4): Ditto.
905 (round_saeonly_mask_scalar_op3): Ditto.
906 (round_saeonly_mask_scalar_op4): Ditto.
908 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
910 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
911 Implement -maltivec=be for vec_insert and vec_extract.
913 2014-01-10 DJ Delorie <dj@redhat.com>
915 * config/msp430/msp430.md (call_internal): Don't allow memory
916 references with SP as the base register.
917 (call_value_internal): Likewise.
918 * config/msp430/constraints.md (Yc): New. For memory references
919 that don't use SP as a base register.
921 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
922 "an integer without a # prefix"
923 * config/msp430/msp430.md (epilogue_helper): Use it.
925 2014-01-13 Jakub Jelinek <jakub@redhat.com>
928 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
929 AVX512F gather builtins.
930 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
931 on gather decls with INTEGER_TYPE masktype.
932 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
933 directly into the builtin rather than hoisting it before loop.
935 PR tree-optimization/59387
936 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
937 (scev_const_prop): If folded_casts and type has undefined overflow,
938 use force_gimple_operand instead of force_gimple_operand_gsi and
939 for each added stmt if it is assign with
940 arith_code_with_undefined_signed_overflow, call
941 rewrite_to_defined_overflow.
942 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
943 gimple-fold.h instead.
944 (arith_code_with_undefined_signed_overflow,
945 rewrite_to_defined_overflow): Moved to ...
946 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
947 rewrite_to_defined_overflow): ... here. No longer static.
948 Include gimplify-me.h.
949 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
950 rewrite_to_defined_overflow): New prototypes.
952 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
954 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
956 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
958 * builtins.c (get_object_alignment_2): Minor tweak.
959 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
961 2014-01-13 Christian Bruel <christian.bruel@st.com>
963 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
964 optimized non constant lengths.
966 2014-01-13 Jakub Jelinek <jakub@redhat.com>
969 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
970 load as __atomic_load_N if possible.
972 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
974 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
976 (rs6000_expand_builtin): Adjust call.
978 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
981 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
982 * config/rs6000/rs6000.c: Include target-globals.h.
983 (rs6000_set_current_function): Instead of doing target_reinit
984 unconditionally, use save_target_globals_default_opts and
985 restore_target_globals.
987 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
989 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
990 (rs6000_expand_builtin): Handle mffs and mtfsf.
991 (rs6000_init_builtins): Define mffs and mtfsf.
992 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
993 (rs6000_mffs): New pattern.
994 (rs6000_mtfsf): New pattern.
996 2014-01-11 Bin Cheng <bin.cheng@arm.com>
998 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
999 Start narrowing with START. Apply candidate-use pair
1000 and check overall cost in narrowing.
1001 (iv_ca_prune): Pass new argument.
1003 2014-01-10 Jeff Law <law@redhat.com>
1006 * ree.c (combine_reaching_defs): Ensure the defining statement
1007 occurs before the extension when optimizing extensions with
1008 different source and destination hard registers.
1010 2014-01-10 Jan Hubicka <jh@suse.cz>
1013 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
1014 vtables into the type inheritance graph.
1016 2014-01-10 Jakub Jelinek <jakub@redhat.com>
1018 PR rtl-optimization/59754
1019 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
1020 modes in the REGNO != REGNO case.
1022 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1024 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
1026 2014-01-10 Jakub Jelinek <jakub@redhat.com>
1028 PR tree-optimization/59745
1029 * tree-predcom.c (tree_predictive_commoning_loop): Call
1030 free_affine_expand_cache if giving up because components is NULL.
1032 * target-globals.c (save_target_globals): Allocate < 4KB structs using
1033 GC in payload of target_globals struct instead of allocating them on
1034 the heap and the larger structs separately using GC.
1035 * target-globals.h (struct target_globals): Make regs, hard_regs,
1036 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
1037 of GTY((skip)) and change type to void *.
1038 (reset_target_globals): Cast loads from those fields to corresponding
1041 2014-01-10 Steve Ellcey <sellcey@mips.com>
1044 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
1045 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
1046 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
1048 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
1051 * aarch64-modes.def (CC_Zmode): New flags mode.
1052 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
1053 represents an equality.
1054 (aarch64_get_condition_code): Handle CC_Zmode.
1055 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
1057 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1059 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
1060 extraction in good case.
1062 2014-01-10 Richard Biener <rguenther@suse.de>
1064 PR tree-optimization/59374
1065 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
1066 checking after SLP discovery. Mark stmts not participating
1067 in any SLP instance properly.
1069 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1071 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
1072 when handling a SET rtx.
1074 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1076 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
1077 (cortex-a57): Likewise.
1078 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
1080 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1082 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
1083 non-iwmmxt builtins.
1085 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
1089 * ipa-devirt.c record_target_from_binfo): Take as argument
1090 stack of binfos and lookup matching one for virtual inheritance.
1091 (possible_polymorphic_call_targets_1): Update.
1093 2014-01-10 Huacai Chen <chenhc@lemote.com>
1095 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
1096 kernel strings for Loongson-2E/2F/3A.
1098 2014-01-10 Jakub Jelinek <jakub@redhat.com>
1101 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
1102 is_gimple_call before calling gimple_call_internal_p.
1104 2014-01-09 Steve Ellcey <sellcey@mips.com>
1106 * Makefile.in (TREE_FLOW_H): Remove.
1107 (TREE_SSA_H): Add file names from tree-flow.h.
1108 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
1109 * tree.h: Remove tree-flow.h reference.
1110 * hash-table.h: Remove tree-flow.h reference.
1111 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
1112 reference with tree-ssa-loop.h.
1114 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1116 * doc/invoke.texi: Add -maltivec={be,le} options, and document
1117 default element-order behavior for -maltivec.
1118 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
1119 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
1120 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
1121 when targeting big endian, at least for now.
1122 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
1124 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1127 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
1128 var satisfies use_register_for_decl, just take into account type
1129 alignment, rather than decl alignment.
1131 PR tree-optimization/59622
1132 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
1133 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
1134 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
1135 Don't devirtualize for inplace at all. For targets.length () == 1,
1136 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
1138 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
1140 * config/i386/i386.md (cpu): Remove the unused btver1.
1142 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
1144 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
1146 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1149 * tree-core.h (struct target_globals): New forward declaration.
1150 (struct tree_target_option): Add globals field.
1151 * tree.h (TREE_TARGET_GLOBALS): Define.
1152 (prepare_target_option_nodes_for_pch): New prototype.
1153 * target-globals.h (struct target_globals): Define even if
1155 * tree.c (prepare_target_option_node_for_pch,
1156 prepare_target_option_nodes_for_pch): New functions.
1157 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
1158 * config/i386/i386.c: Include target-globals.h.
1159 (ix86_set_current_function): Instead of doing target_reinit
1160 unconditionally, use save_target_globals_default_opts and
1161 restore_target_globals.
1163 2014-01-09 Richard Biener <rguenther@suse.de>
1165 PR tree-optimization/59715
1166 * tree-cfg.h (split_critical_edges): Declare.
1167 * tree-cfg.c (split_critical_edges): Export.
1168 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
1170 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
1172 * cfgexpand.c (expand_stack_vars): Optionally disable
1173 asan stack protection.
1174 (expand_used_vars): Likewise.
1175 (partition_stack_vars): Likewise.
1176 * asan.c (asan_emit_stack_protection): Optionally disable
1177 after return stack usage.
1178 (instrument_derefs): Optionally disable memory access instrumentation.
1179 (instrument_builtin_call): Likewise.
1180 (instrument_strlen_call): Likewise.
1181 (asan_protect_global): Optionally disable global variables protection.
1182 * doc/invoke.texi: Added doc for new options.
1183 * params.def: Added new options.
1184 * params.h: Likewise.
1186 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1188 PR rtl-optimization/59724
1189 * ifcvt.c (cond_exec_process_if_block): Don't call
1190 flow_find_head_matching_sequence with 0 longest_match.
1191 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
1192 non-active insns if !stop_after.
1193 (try_head_merge_bb): Revert 2014-01-07 changes.
1195 2014-01-08 Jeff Law <law@redhat.com>
1197 * ree.c (get_sub_rtx): New function, extracted from...
1198 (merge_def_and_ext): Here.
1199 (combine_reaching_defs): Use get_sub_rtx.
1201 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
1203 * cgraph.h (varpool_variable_node): Do not choke on null node.
1205 2014-01-08 Catherine Moore <clm@codesourcery.com>
1207 * config/mips/mips.md (simple_return): Attempt to use JRC
1209 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
1211 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
1213 PR rtl-optimization/59137
1214 * reorg.c (steal_delay_list_from_target): Call update_block for
1216 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
1218 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1220 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1221 two duplicate entries.
1223 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
1226 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
1228 * config/mips/mips.c (mips_truncated_op_cost): New function.
1229 (mips_rtx_costs): Adjust test for BADDU.
1230 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
1232 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
1234 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
1235 (*baddu_si): ...this new pattern.
1237 2014-01-08 Jakub Jelinek <jakub@redhat.com>
1240 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
1242 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
1245 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
1247 (expand_expr, expand_normal): Adjust.
1248 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
1249 inner_reference_p. Use inner_reference_p to expand inner references.
1250 (store_expr): Adjust.
1251 * cfgexpand.c (expand_call_stmt): Adjust.
1253 2014-01-08 Rong Xu <xur@google.com>
1255 * gcov-io.c (gcov_var): Move from gcov-io.h.
1256 (gcov_position): Ditto.
1257 (gcov_is_error): Ditto.
1258 (gcov_rewrite): Ditto.
1259 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
1260 only part to libgcc/libgcov.h.
1262 2014-01-08 Marek Polacek <polacek@redhat.com>
1265 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
1267 2014-01-08 Marek Polacek <polacek@redhat.com>
1270 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
1272 2014-01-08 Jakub Jelinek <jakub@redhat.com>
1274 PR rtl-optimization/59649
1275 * stor-layout.c (get_mode_bounds): For BImode return
1276 0 and STORE_FLAG_VALUE.
1278 2014-01-08 Richard Biener <rguenther@suse.de>
1281 * gimple.h (is_gimple_builtin_call): Remove.
1282 (gimple_builtin_call_types_compatible_p): New.
1283 (gimple_call_builtin_p): New overload.
1284 * gimple.c (is_gimple_builtin_call): Remove.
1285 (validate_call): Rename to ...
1286 (gimple_builtin_call_types_compatible_p): ... this and export. Also
1288 (validate_type): New static function.
1289 (gimple_call_builtin_p): New overload and adjust.
1290 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
1291 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
1292 (gimple_fold_stmt_to_constant_1): Likewise.
1293 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
1295 2014-01-08 Richard Biener <rguenther@suse.de>
1298 * gimplify.c (gimplify_expr): Gimplify register-register type
1299 VIEW_CONVERT_EXPRs to separate stmts.
1301 2014-01-07 Jeff Law <law@redhat.com>
1304 * ree.c (combine_set_extension): Handle case where source
1305 and destination registers in an extension insn are different.
1306 (combine_reaching_defs): Allow source and destination registers
1307 in extension to be different under limited circumstances.
1308 (add_removable_extension): Remove restriction that the
1309 source and destination registers in the extension are the same.
1310 (find_and_remove_re): Emit a copy from the extension's
1311 destination to its source after the defining insn if
1312 the source and destination registers are different.
1315 * ifcvt.c (merge_if_block): If we are merging a block with more than
1316 one successor with a block with no successors, remove any BARRIER
1317 after the second block.
1319 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
1321 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
1323 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
1326 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
1327 for 14-bit register offsets when INT14_OK_STRICT is false.
1329 2014-01-07 Roland Stigge <stigge@antcom.de>
1330 Michael Meissner <meissner@linux.vnet.ibm.com>
1333 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
1334 Only check TFmode for SPE constants. Don't check TImode or TDmode.
1336 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1338 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
1341 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
1343 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
1344 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
1345 rtx is const0_rtx or not.
1347 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
1350 * target-globals.c (save_target_globals): Remove this_fn_optab
1352 * toplev.c: Include optabs.h.
1353 (target_reinit): Temporarily restore the global options if another
1354 set of options are in force.
1356 2014-01-07 Jakub Jelinek <jakub@redhat.com>
1358 PR rtl-optimization/58668
1359 * cfgcleanup.c (flow_find_cross_jump): Don't count
1360 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
1361 to determine what is counted.
1362 (flow_find_head_matching_sequence): Use active_insn_p to determine
1364 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
1366 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
1367 determine what is counted.
1369 PR tree-optimization/59643
1370 * tree-predcom.c (split_data_refs_to_components): If one dr is
1371 read and one write, determine_offset fails and the write isn't
1372 in the bad component, just put the read into the bad component.
1374 2014-01-07 Mike Stump <mikestump@comcast.net>
1375 Jakub Jelinek <jakub@redhat.com>
1378 * tree-core.h (struct tree_optimization_option): Change optabs
1379 type from unsigned char * to void *.
1380 * optabs.c (init_tree_optimization_optabs): Adjust
1381 TREE_OPTIMIZATION_OPTABS initialization.
1383 2014-01-06 Jakub Jelinek <jakub@redhat.com>
1386 * config/i386/i386.h (struct machine_function): Add
1387 no_drap_save_restore field.
1388 * config/i386/i386.c (ix86_save_reg): Use
1389 !cfun->machine->no_drap_save_restore instead of
1390 crtl->stack_realign_needed.
1391 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
1392 this function clears frame_pointer_needed. Set
1393 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
1394 and DRAP reg is needed.
1396 2014-01-06 Marek Polacek <polacek@redhat.com>
1399 * doc/implement-c.texi: Mention that other integer types are
1400 permitted as bit-field types in strictly conforming mode.
1402 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
1404 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
1407 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
1409 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
1411 2014-01-06 Martin Jambor <mjambor@suse.cz>
1414 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
1416 * ipa-prop.c (ipa_print_node_params): Fix indentation.
1418 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
1422 * var-tracking.c (add_stores): Preserve the value of the source even if
1423 we don't record the store.
1425 2014-01-06 Terry Guo <terry.guo@arm.com>
1427 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
1429 2014-01-05 Iain Sandoe <iain@codesourcery.com>
1432 * config/darwin.c (darwin_function_section): Adjust return values to
1433 correspond to optimisation changes made in r206070.
1435 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
1437 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
1438 from prefetch_block tune setting.
1439 (nocona_cost): Correct size of prefetch block to 64.
1441 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
1443 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
1444 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
1445 used to save the static chain register in the computation of the offset
1446 from which the FP registers need to be restored.
1448 2014-01-04 Jakub Jelinek <jakub@redhat.com>
1450 PR tree-optimization/59519
1451 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
1452 ICE if get_current_def (current_new_name) is already non-NULL, as long
1453 as it is a phi result of some other phi in *new_exit_bb that has
1456 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
1457 or vmovdqu* for misaligned_operand.
1458 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1459 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
1460 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
1461 aligned_mem for AVX512F masked aligned load and store builtins and for
1464 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
1466 PR tree-optimization/59651
1467 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1468 Address range for negative step should be added by TYPE_SIZE_UNIT.
1470 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
1472 * config/m68k/m68k.c (handle_move_double): Handle pushes with
1473 overlapping registers also for registers other than the stack pointer.
1475 2014-01-03 Marek Polacek <polacek@redhat.com>
1478 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
1481 2014-01-03 Jakub Jelinek <jakub@redhat.com>
1484 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
1487 * config/i386/i386.md (MODE_SIZE): New mode attribute.
1488 (push splitter): Use <P:MODE_SIZE> instead of
1489 GET_MODE_SIZE (<P:MODE>mode).
1490 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
1491 (mov -1, reg peephole2): Likewise.
1492 * config/i386/sse.md (*mov<mode>_internal,
1493 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1494 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
1495 *<code><mode>3, *andnot<mode>3<mask_name>,
1496 <mask_codefor><code><mode>3<mask_name>): Likewise.
1497 * config/i386/subst.md (mask_mode512bit_condition,
1498 sd_mask_mode512bit_condition): Likewise.
1500 2014-01-02 Xinliang David Li <davidxl@google.com>
1502 PR tree-optimization/59303
1503 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
1504 (dump_predicates): Better output format.
1505 (pred_equal_p): New function.
1506 (is_neq_relop_p): Ditto.
1507 (is_neq_zero_form_p): Ditto.
1508 (pred_expr_equal_p): Ditto.
1509 (pred_neg_p): Ditto.
1510 (simplify_pred): Ditto.
1511 (simplify_preds_2): Ditto.
1512 (simplify_preds_3): Ditto.
1513 (simplify_preds_4): Ditto.
1514 (simplify_preds): Ditto.
1516 (push_to_worklist): Ditto.
1517 (get_pred_info_from_cmp): Ditto.
1518 (is_degenerated_phi): Ditto.
1519 (normalize_one_pred_1): Ditto.
1520 (normalize_one_pred): Ditto.
1521 (normalize_one_pred_chain): Ditto.
1522 (normalize_preds): Ditto.
1523 (normalize_cond_1): Remove function.
1524 (normalize_cond): Ditto.
1525 (is_gcond_subset_of): Ditto.
1526 (is_subset_of_any): Ditto.
1527 (is_or_set_subset_of): Ditto.
1528 (is_and_set_subset_of): Ditto.
1529 (is_norm_cond_subset_of): Ditto.
1530 (pred_chain_length_cmp): Ditto.
1531 (convert_control_dep_chain_into_preds): Type change.
1532 (find_predicates): Ditto.
1533 (find_def_preds): Ditto.
1534 (destroy_predicates_vecs): Ditto.
1535 (find_matching_predicates_in_rest_chains): Ditto.
1536 (use_pred_not_overlap_with_undef_path_pred): Ditto.
1537 (is_pred_expr_subset): Ditto.
1538 (is_pred_chain_subset_of): Ditto.
1539 (is_included_in): Ditto.
1540 (is_superset_of): Ditto.
1542 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1544 Update copyright years.
1546 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1548 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
1549 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
1550 config/arc/arc.md, config/arc/arc.opt,
1551 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
1552 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
1553 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
1554 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
1555 config/linux-protos.h, config/linux.c, config/winnt-c.c,
1556 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
1557 vtable-verify.c, vtable-verify.h: Use the standard form for the
1560 2014-01-02 Tobias Burnus <burnus@net-b.de>
1562 * gcc.c (process_command): Update copyright notice dates.
1563 * gcov-dump.c: Ditto.
1565 * doc/cpp.texi: Bump @copying's copyright year.
1566 * doc/cppinternals.texi: Ditto.
1567 * doc/gcc.texi: Ditto.
1568 * doc/gccint.texi: Ditto.
1569 * doc/gcov.texi: Ditto.
1570 * doc/install.texi: Ditto.
1571 * doc/invoke.texi: Ditto.
1573 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1575 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
1577 2014-01-01 Jakub Jelinek <jakub@redhat.com>
1579 * config/i386/sse.md (*mov<mode>_internal): Guard
1580 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
1582 PR rtl-optimization/59647
1583 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
1584 new_rtx into UNSIGNED_FLOAT rtxes.
1586 Copyright (C) 2014 Free Software Foundation, Inc.
1588 Copying and distribution of this file, with or without modification,
1589 are permitted in any medium without royalty provided the copyright
1590 notice and this notice are preserved.