re PR target/59685 (ICE: in output_2305, at config/i386/sse.md:8919 with -march=bdver...
[gcc.git] / gcc / ChangeLog
1 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
2
3 PR target/59685
4 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
5 mode attribute in insn output.
6
7 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
8
9 * output.h (output_constant): Delete.
10 * varasm.c (output_constant): Make private.
11
12 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
13
14 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
15
16 2014-01-20 Jakub Jelinek <jakub@redhat.com>
17
18 PR middle-end/59860
19 * tree.h (fold_builtin_strcat): New prototype.
20 * builtins.c (fold_builtin_strcat): No longer static. Add len
21 argument, if non-NULL, don't call c_strlen. Optimize
22 directly into __builtin_memcpy instead of __builtin_strcpy.
23 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25
26 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
27
28 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29 for SImode_address_operand operands, having only a REG argument.
30
31 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
32
33 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34 loader name using mbig-endian.
35 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
36
37 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
38
39 * doc/invoke.texi (-march): Clarify documentation for AArch64.
40 (-mtune): Likewise.
41 (-mcpu): Likewise.
42
43 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
44
45 * config/aarch64/aarch64-protos.h
46 (aarch64_cannot_change_mode_class_ptr): Declare.
47 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
48 aarch64_cannot_change_mode_class_ptr): New.
49 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
50 backend hook aarch64_cannot_change_mode_class.
51
52 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
53
54 * common/config/aarch64/aarch64-common.c
55 (aarch64_handle_option): Don't handle any option order logic here.
56 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
57 selected_cpu, warn on architecture version mismatch.
58 (aarch64_override_options): Fix parsing order for option strings.
59
60 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
61 Iain Sandoe <iain@codesourcery.com>
62
63 PR bootstrap/59496
64 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
65 warning. Amend comment to reflect current functionality.
66
67 2014-01-20 Richard Biener <rguenther@suse.de>
68
69 PR middle-end/59860
70 * builtins.c (fold_builtin_strcat): Remove case better handled
71 by tree-ssa-strlen.c.
72
73 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
74
75 * config/aarch64/aarch64.opt
76 (mcpu, march, mtune): Make case-insensitive.
77
78 2014-01-20 Jakub Jelinek <jakub@redhat.com>
79
80 PR target/59880
81 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
82 if operands[1] is a REG or ZERO_EXTEND of a REG.
83
84 2014-01-19 Jan Hubicka <jh@suse.cz>
85
86 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
87
88 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
89
90 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
91 long non-pic millicode calls.
92
93 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
94
95 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
96
97 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
98 H.J. Lu <hongjiu.lu@intel.com>
99
100 PR target/59379
101 * config/i386/i386.md (*lea<mode>): Zero-extend return register
102 to DImode for zero-extended addresses.
103
104 2014-01-19 Jakub Jelinek <jakub@redhat.com>
105
106 PR rtl-optimization/57763
107 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
108 on the new indirect jump_insn and increment LABEL_NUSES (label).
109
110 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
111
112 PR bootstrap/59580
113 PR bootstrap/59583
114 * config.gcc (x86_archs): New variable.
115 (x86_64_archs): Likewise.
116 (x86_cpus): Likewise.
117 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
118 --with-arch/--with-cpu= options.
119 Support --with-arch=/--with-cpu={nehalem,westmere,
120 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
121
122 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
123
124 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
125 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
126
127 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
128
129 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
130
131 2014-01-18 Jakub Jelinek <jakub@redhat.com>
132
133 PR target/58944
134 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
135 clear cpp_get_options (parse_in)->warn_unused_macros for
136 ix86_target_macros_internal with cpp_define.
137
138 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
139
140 * jump.c (delete_related_insns): Keep (use (insn))s.
141 * reorg.c (redundant_insn): Check for barriers too.
142
143 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
144
145 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
146
147 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
148
149 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
150 call to $$dyncall when TARGET_LONG_CALLS is true.
151
152 2014-01-17 Jeff Law <law@redhat.com>
153
154 * ree.c (combine_set_extension): Temporarily disable test for
155 changing number of hard registers.
156
157 2014-01-17 Jan Hubicka <jh@suse.cz>
158
159 PR middle-end/58125
160 * ipa-inline-analysis.c (inline_free_summary):
161 Do not free summary of aliases.
162
163 2014-01-17 Jakub Jelinek <jakub@redhat.com>
164
165 PR middle-end/59706
166 * gimplify.c (gimplify_expr): Use create_tmp_var
167 instead of create_tmp_var_raw. If cond doesn't have
168 integral type, don't add the IFN_ANNOTATE builtin at all.
169
170 2014-01-17 Martin Jambor <mjambor@suse.cz>
171
172 PR ipa/59736
173 * ipa-cp.c (prev_edge_clone): New variable.
174 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
175 Also resize prev_edge_clone vector.
176 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
177 (ipcp_edge_removal_hook): New function.
178 (ipcp_driver): Register ipcp_edge_removal_hook.
179
180 2014-01-17 Andrew Pinski <apinski@cavium.com>
181 Steve Ellcey <sellcey@mips.com>
182
183 PR target/59462
184 * config/mips/mips.c (mips_print_operand): Check operand mode instead
185 of operator mode.
186
187 2014-01-17 Jeff Law <law@redhat.com>
188
189 PR middle-end/57904
190 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
191 so that pass_ccp runs first.
192
193 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
194
195 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
196 (ix86_adjust_cost): Use !TARGET_XXX.
197 (do_reorder_for_imul): Likewise.
198 (swap_top_of_ready_list): Likewise.
199 (ix86_sched_reorder): Likewise.
200
201 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
202
203 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
204 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
205 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
206 (intel_memset): New. Duplicate slm_memset.
207 (intel_cost): New. Duplicate slm_cost.
208 (m_INTEL): New macro.
209 (processor_target_table): Add "intel".
210 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
211 with PROCESSOR_INTEL for "intel".
212 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
213 PROCESSOR_SILVERMONT.
214 (ix86_issue_rate): Likewise.
215 (ix86_adjust_cost): Likewise.
216 (ia32_multipass_dfa_lookahead): Likewise.
217 (swap_top_of_ready_list): Likewise.
218 (ix86_sched_reorder): Likewise.
219 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
220 instead of TARGET_OPT_AGU.
221 * config/i386/i386.h (TARGET_INTEL): New.
222 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
223 (processor_type): Add PROCESSOR_INTEL.
224 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
225 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
226
227 2014-01-17 Marek Polacek <polacek@redhat.com>
228
229 PR c/58346
230 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
231 size is zero.
232
233 2014-01-17 Richard Biener <rguenther@suse.de>
234
235 PR tree-optimization/46590
236 * opts.c (default_options_table): Add entries for
237 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
238 all enabled at -O1 but not for -Og.
239 * common.opt (fbranch-count-reg): Remove Init(1).
240 (fmove-loop-invariants): Likewise.
241 (ftree-pta): Likewise.
242
243 2014-01-17 Jakub Jelinek <jakub@redhat.com>
244
245 * config/i386/i386.c (ix86_data_alignment): For compatibility with
246 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
247 decls to at least the GCC 4.8 used alignments.
248
249 PR fortran/59440
250 * tree-nested.c (convert_nonlocal_reference_stmt,
251 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
252 of GIMPLE_BIND stmts, adjust associated decls.
253
254 2014-01-17 Richard Biener <rguenther@suse.de>
255
256 PR tree-optimization/46590
257 * vec.h (vec<>::bseach): New member function implementing
258 binary search according to C89 bsearch.
259 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
260 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
261 bitmap pointer again. Make accesses_in_loop a flat array.
262 (mem_ref_obstack): New global.
263 (outermost_indep_loop): Adjust for mem_ref->stored changes.
264 (mark_ref_stored): Likewise.
265 (ref_indep_loop_p_2): Likewise.
266 (set_ref_stored_in_loop): New helper function.
267 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
268 (memref_free): Adjust.
269 (record_mem_ref_loc): Simplify.
270 (gather_mem_refs_stmt): Adjust.
271 (sort_locs_in_loop_postorder_cmp): New function.
272 (analyze_memory_references): Sort accesses_in_loop after
273 loop postorder number.
274 (find_ref_loc_in_loop_cmp): New function.
275 (for_all_locs_in_loop): Find relevant cluster of locs in
276 accesses_in_loop and iterate without recursion.
277 (execute_sm): Avoid uninit warning.
278 (struct ref_always_accessed): Simplify.
279 (ref_always_accessed::operator ()): Likewise.
280 (ref_always_accessed_p): Likewise.
281 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
282 loop postorder numbers here.
283 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
284 numbers.
285
286 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
287
288 PR c++/57945
289 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
290 on decls for which assemble_alias has been called.
291
292 2014-01-17 Nick Clifton <nickc@redhat.com>
293
294 * config/msp430/msp430.opt: (mcpu): New option.
295 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
296 (msp430_option_override): Parse target_cpu. If the MCU name
297 matches a generic string, clear target_mcu.
298 (msp430_attr): Allow numeric interrupt values up to 63.
299 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
300 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
301 option.
302 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
303 Add mcpu matches.
304 * config/msp430/msp430.md (popm): Use %J rather than %I.
305 (addsi3): Use msp430_nonimmediate_operand for operand 2.
306 (addhi_cy_i): Use immediate_operand for operand 2.
307 * doc/invoke.texi: Document -mcpu option.
308
309 2014-01-17 Richard Biener <rguenther@suse.de>
310
311 PR rtl-optimization/38518
312 * df.h (df_analyze_loop): Declare.
313 * df-core.c: Include cfgloop.h.
314 (df_analyze_1): Split out main part of df_analyze.
315 (df_analyze): Adjust.
316 (loop_inverted_post_order_compute): New function.
317 (loop_post_order_compute): Likewise.
318 (df_analyze_loop): New function avoiding whole-function
319 postorder computes.
320 * loop-invariant.c (find_defs): Use df_analyze_loop.
321 (find_invariants): Adjust.
322 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
323
324 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
325
326 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
327 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
328
329 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
330
331 * ipa-ref.c (ipa_remove_stmt_references): Fix references
332 traversal when removing references.
333
334 2014-01-16 Jan Hubicka <jh@suse.cz>
335
336 PR ipa/59775
337 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
338
339 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
340
341 PR middle-end/56791
342 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
343 pushing a reload for an autoinc when we had previously reloaded an
344 inner part of the address.
345
346 2014-01-16 Jakub Jelinek <jakub@redhat.com>
347
348 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
349 field.
350 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
351 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
352 when not giving up or versioning for alias only because of
353 loop->safelen.
354 (vect_analyze_data_ref_dependences): Set to true.
355 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
356 is a GIMPLE_PHI.
357 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
358 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
359 to the condition.
360
361 PR middle-end/58344
362 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
363
364 PR target/59839
365 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
366 operand 0 predicate for gathers, use a new pseudo as subtarget.
367
368 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
369
370 PR middle-end/59609
371 * lra-constraints.c (process_alt_operands): Add printing debug info.
372 Check absence of input/output reloads for matched operands too.
373
374 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
375
376 PR rtl-optimization/59835
377 * ira.c (ira_init_register_move_cost): Increase cost for
378 impossible modes.
379
380 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
381
382 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
383
384 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
385
386 PR target/59780
387 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
388 non-register objects. Use gen_(high/low)part more consistently.
389 Fix assertions.
390
391 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
392
393 PR target/59844
394 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
395 endian support, remove tests for WORDS_BIG_ENDIAN.
396 (p8_mfvsrd_3_<mode>): Likewise.
397 (reload_gpr_from_vsx<mode>): Likewise.
398 (reload_gpr_from_vsxsf): Likewise.
399 (p8_mfvsrd_4_disf): Likewise.
400
401 2014-01-16 Richard Biener <rguenther@suse.de>
402
403 PR rtl-optimization/46590
404 * lcm.c (compute_antinout_edge): Use postorder iteration.
405 (compute_laterin): Use inverted postorder iteration.
406
407 2014-01-16 Nick Clifton <nickc@redhat.com>
408
409 PR middle-end/28865
410 * varasm.c (output_constant): Return the number of bytes actually
411 emitted.
412 (output_constructor_array_range): Update the field size with the
413 number of bytes emitted by output_constant.
414 (output_constructor_regular_field): Likewise. Also do not
415 complain if the total number of bytes emitted is now greater
416 than the expected fieldpos.
417 * output.h (output_constant): Update prototype and descriptive comment.
418
419 2014-01-16 Marek Polacek <polacek@redhat.com>
420
421 PR middle-end/59827
422 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
423 it is error_mark_node.
424
425 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
426
427 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
428 VALID_AVX256_REG_OR_OI_MODE.
429
430 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
431
432 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
433 current procedure should be profiled.
434
435 2014-01-15 Andrew Pinski <apinski@cavium.com>
436
437 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
438 of moving from/to the STACK_REG register class.
439
440 2014-01-15 Richard Henderson <rth@redhat.com>
441
442 PR debug/54694
443 * reginfo.c (global_regs_decl): Globalize.
444 * rtl.h (global_regs_decl): Declare.
445 * ira.c (do_reload): Diagnose frame_pointer_needed and it
446 reserved via global_regs.
447
448 2014-01-15 Teresa Johnson <tejohnson@google.com>
449
450 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
451
452 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
453
454 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
455 and vmulosh rather than call gen_vec_widen_smult_*.
456 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
457 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
458 (vec_widen_smult_even_v16qi): Likewise.
459 (vec_widen_umult_even_v8hi): Likewise.
460 (vec_widen_smult_even_v8hi): Likewise.
461 (vec_widen_umult_odd_v16qi): Likewise.
462 (vec_widen_smult_odd_v16qi): Likewise.
463 (vec_widen_umult_odd_v8hi): Likewise.
464 (vec_widen_smult_odd_v8hi): Likewise.
465 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
466 vmuloub rather than call gen_vec_widen_umult_*.
467 (vec_widen_umult_lo_v16qi): Likewise.
468 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
469 vmulosb rather than call gen_vec_widen_smult_*.
470 (vec_widen_smult_lo_v16qi): Likewise.
471 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
472 rather than call gen_vec_widen_umult_*.
473 (vec_widen_umult_lo_v8hi): Likewise.
474 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
475 rather than call gen_vec_widen_smult_*.
476 (vec_widen_smult_lo_v8hi): Likewise.
477
478 2014-01-15 Jeff Law <law@redhat.com>
479
480 PR tree-optimization/59747
481 * ree.c (find_and_remove_re): Properly handle case where a second
482 eliminated extension requires widening a copy created for elimination
483 of a prior extension.
484 (combine_set_extension): Ensure that the number of hard regs needed
485 for a destination register does not change when we widen it.
486
487 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
488
489 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
490 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
491 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
492 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
493 (avr-*-rtems*): Likewise.
494 (bfin*-rtems*): Likewise.
495 (moxie-*-rtems*): Likewise.
496 (h8300-*-rtems*): Likewise.
497 (i[34567]86-*-rtems*): Likewise.
498 (lm32-*-rtems*): Likewise.
499 (m32r-*-rtems*): Likewise.
500 (m68k-*-rtems*): Likewise.
501 (microblaze*-*-rtems*): Likewise.
502 (mips*-*-rtems*): Likewise.
503 (powerpc-*-rtems*): Likewise.
504 (sh-*-rtems*): Likewise.
505 (sparc-*-rtems*): Likewise.
506 (sparc64-*-rtems*): Likewise.
507 (v850-*-rtems*): Likewise.
508 (m32c-*-rtems*): Likewise.
509
510 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
511
512 PR rtl-optimization/59511
513 * ira.c (ira_init_register_move_cost): Use memory costs for some
514 cases of register move cost calculations.
515 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
516 instead of BB frequency.
517 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
518 * lra-assigns.c (find_hard_regno_for): Ditto.
519
520 2014-01-15 Richard Biener <rguenther@suse.de>
521
522 PR tree-optimization/59822
523 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
524 (vectorizable_load): Use it to hoist defs of uses of invariant
525 loads out of the loop.
526
527 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
528 Kugan Vivekanandarajah <kuganv@linaro.org>
529
530 PR target/59695
531 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
532 truncation.
533
534 2014-01-15 Richard Biener <rguenther@suse.de>
535
536 PR rtl-optimization/59802
537 * lcm.c (compute_available): Use inverted postorder to seed
538 the initial worklist.
539
540 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
541
542 PR target/59803
543 * config/s390/s390.c (s390_preferred_reload_class): Don't return
544 ADDR_REGS for invalid symrefs in non-PIC code.
545
546 2014-01-15 Jakub Jelinek <jakub@redhat.com>
547
548 PR other/58712
549 * builtins.c (determine_block_size): Initialize *probable_max_size
550 even if len_rtx is CONST_INT.
551
552 2014-01-14 Andrew Pinski <apinski@cavium.com>
553
554 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
555 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
556 (cortexa53_tunings): Likewise.
557 (aarch64_sched_issue_rate): New function.
558 (TARGET_SCHED_ISSUE_RATE): Define.
559
560 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
561
562 * ira-costs.c (find_costs_and_classes): Add missed
563 ira_init_register_move_cost_if_necessary.
564
565 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
566
567 PR target/59787
568 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
569
570 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
571
572 PR target/59794
573 * config/i386/i386.c (type_natural_mode): Add a bool parameter
574 to indicate if type is used for function return value. Warn ABI
575 change if the vector mode isn't available for function return value.
576 (ix86_function_arg_advance): Pass false to type_natural_mode.
577 (ix86_function_arg): Likewise.
578 (ix86_gimplify_va_arg): Likewise.
579 (function_arg_32): Don't warn ABI change.
580 (ix86_function_value): Pass true to type_natural_mode.
581 (ix86_return_in_memory): Likewise.
582 (ix86_struct_value_rtx): Removed.
583 (TARGET_STRUCT_VALUE_RTX): Likewise.
584
585 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
586
587 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
588 converting a conditional jump into a conditional return.
589
590 2014-01-14 Richard Biener <rguenther@suse.de>
591
592 PR tree-optimization/58921
593 PR tree-optimization/59006
594 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
595 hoisting invariant stmts.
596 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
597 invariant loads on the preheader edge if possible.
598
599 2014-01-14 Joey Ye <joey.ye@arm.com>
600
601 * doc/plugin.texi (Building GCC plugins): Update to C++.
602
603 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
604
605 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
606 (_mm_rcp28_round_ss): Ditto.
607 (_mm_rsqrt28_round_sd): Ditto.
608 (_mm_rsqrt28_round_ss): Ditto.
609 (_mm_rcp28_sd): Ditto.
610 (_mm_rcp28_ss): Ditto.
611 (_mm_rsqrt28_sd): Ditto.
612 (_mm_rsqrt28_ss): Ditto.
613 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
614 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
615 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
616 (IX86_BUILTIN_RCP28SD): Ditto.
617 (IX86_BUILTIN_RCP28SS): Ditto.
618 (IX86_BUILTIN_RSQRT28SD): Ditto.
619 (IX86_BUILTIN_RSQRT28SS): Ditto.
620 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
621 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
622 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
623 (ix86_expand_special_args_builtin): Expand new FTYPE.
624 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
625 (srcp14<mode>): Make insn unary.
626 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
627 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
628 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
629 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
630 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
631 Fix rounding: make it SAE only.
632 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
633 Ditto.
634 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
635 Ditto.
636 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
637 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
638 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
639 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
640 (round_saeonly_mask_scalar_operand4): Ditto.
641 (round_saeonly_mask_scalar_op3): Ditto.
642 (round_saeonly_mask_scalar_op4): Ditto.
643
644 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
645
646 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
647 Implement -maltivec=be for vec_insert and vec_extract.
648
649 2014-01-10 DJ Delorie <dj@redhat.com>
650
651 * config/msp430/msp430.md (call_internal): Don't allow memory
652 references with SP as the base register.
653 (call_value_internal): Likewise.
654 * config/msp430/constraints.md (Yc): New. For memory references
655 that don't use SP as a base register.
656
657 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
658 "an integer without a # prefix"
659 * config/msp430/msp430.md (epilogue_helper): Use it.
660
661 2014-01-13 Jakub Jelinek <jakub@redhat.com>
662
663 PR target/59617
664 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
665 AVX512F gather builtins.
666 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
667 on gather decls with INTEGER_TYPE masktype.
668 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
669 directly into the builtin rather than hoisting it before loop.
670
671 PR tree-optimization/59387
672 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
673 (scev_const_prop): If folded_casts and type has undefined overflow,
674 use force_gimple_operand instead of force_gimple_operand_gsi and
675 for each added stmt if it is assign with
676 arith_code_with_undefined_signed_overflow, call
677 rewrite_to_defined_overflow.
678 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
679 gimple-fold.h instead.
680 (arith_code_with_undefined_signed_overflow,
681 rewrite_to_defined_overflow): Moved to ...
682 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
683 rewrite_to_defined_overflow): ... here. No longer static.
684 Include gimplify-me.h.
685 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
686 rewrite_to_defined_overflow): New prototypes.
687
688 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
689
690 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
691
692 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
693
694 * builtins.c (get_object_alignment_2): Minor tweak.
695 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
696
697 2014-01-13 Christian Bruel <christian.bruel@st.com>
698
699 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
700 optimized non constant lengths.
701
702 2014-01-13 Jakub Jelinek <jakub@redhat.com>
703
704 PR libgomp/59194
705 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
706 load as __atomic_load_N if possible.
707
708 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
709
710 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
711 target parameter.
712 (rs6000_expand_builtin): Adjust call.
713
714 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
715
716 PR target/58115
717 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
718 * config/rs6000/rs6000.c: Include target-globals.h.
719 (rs6000_set_current_function): Instead of doing target_reinit
720 unconditionally, use save_target_globals_default_opts and
721 restore_target_globals.
722
723 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
724 FPSCR.
725 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
726 (rs6000_expand_builtin): Handle mffs and mtfsf.
727 (rs6000_init_builtins): Define mffs and mtfsf.
728 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
729 (rs6000_mffs): New pattern.
730 (rs6000_mtfsf): New pattern.
731
732 2014-01-11 Bin Cheng <bin.cheng@arm.com>
733
734 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
735 Start narrowing with START. Apply candidate-use pair
736 and check overall cost in narrowing.
737 (iv_ca_prune): Pass new argument.
738
739 2014-01-10 Jeff Law <law@redhat.com>
740
741 PR middle-end/59743
742 * ree.c (combine_reaching_defs): Ensure the defining statement
743 occurs before the extension when optimizing extensions with
744 different source and destination hard registers.
745
746 2014-01-10 Jan Hubicka <jh@suse.cz>
747
748 PR ipa/58585
749 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
750 vtables into the type inheritance graph.
751
752 2014-01-10 Jakub Jelinek <jakub@redhat.com>
753
754 PR rtl-optimization/59754
755 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
756 modes in the REGNO != REGNO case.
757
758 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
759
760 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
761
762 2014-01-10 Jakub Jelinek <jakub@redhat.com>
763
764 PR tree-optimization/59745
765 * tree-predcom.c (tree_predictive_commoning_loop): Call
766 free_affine_expand_cache if giving up because components is NULL.
767
768 * target-globals.c (save_target_globals): Allocate < 4KB structs using
769 GC in payload of target_globals struct instead of allocating them on
770 the heap and the larger structs separately using GC.
771 * target-globals.h (struct target_globals): Make regs, hard_regs,
772 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
773 of GTY((skip)) and change type to void *.
774 (reset_target_globals): Cast loads from those fields to corresponding
775 types.
776
777 2014-01-10 Steve Ellcey <sellcey@mips.com>
778
779 PR plugins/59335
780 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
781 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
782 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
783
784 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
785
786 PR target/59744
787 * aarch64-modes.def (CC_Zmode): New flags mode.
788 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
789 represents an equality.
790 (aarch64_get_condition_code): Handle CC_Zmode.
791 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
792
793 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
794
795 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
796 extraction in good case.
797
798 2014-01-10 Richard Biener <rguenther@suse.de>
799
800 PR tree-optimization/59374
801 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
802 checking after SLP discovery. Mark stmts not participating
803 in any SLP instance properly.
804
805 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
806
807 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
808 when handling a SET rtx.
809
810 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
811
812 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
813 (cortex-a57): Likewise.
814 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
815
816 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
817
818 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
819 non-iwmmxt builtins.
820
821 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
822
823 PR ipa/58252
824 PR ipa/59226
825 * ipa-devirt.c record_target_from_binfo): Take as argument
826 stack of binfos and lookup matching one for virtual inheritance.
827 (possible_polymorphic_call_targets_1): Update.
828
829 2014-01-10 Huacai Chen <chenhc@lemote.com>
830
831 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
832 kernel strings for Loongson-2E/2F/3A.
833
834 2014-01-10 Jakub Jelinek <jakub@redhat.com>
835
836 PR middle-end/59670
837 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
838 is_gimple_call before calling gimple_call_internal_p.
839
840 2014-01-09 Steve Ellcey <sellcey@mips.com>
841
842 * Makefile.in (TREE_FLOW_H): Remove.
843 (TREE_SSA_H): Add file names from tree-flow.h.
844 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
845 * tree.h: Remove tree-flow.h reference.
846 * hash-table.h: Remove tree-flow.h reference.
847 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
848 reference with tree-ssa-loop.h.
849
850 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
851
852 * doc/invoke.texi: Add -maltivec={be,le} options, and document
853 default element-order behavior for -maltivec.
854 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
856 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
857 when targeting big endian, at least for now.
858 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
859
860 2014-01-09 Jakub Jelinek <jakub@redhat.com>
861
862 PR middle-end/47735
863 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
864 var satisfies use_register_for_decl, just take into account type
865 alignment, rather than decl alignment.
866
867 PR tree-optimization/59622
868 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
869 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
870 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
871 Don't devirtualize for inplace at all. For targets.length () == 1,
872 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
873
874 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
875
876 * config/i386/i386.md (cpu): Remove the unused btver1.
877
878 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
879
880 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
881
882 2014-01-09 Jakub Jelinek <jakub@redhat.com>
883
884 PR target/58115
885 * tree-core.h (struct target_globals): New forward declaration.
886 (struct tree_target_option): Add globals field.
887 * tree.h (TREE_TARGET_GLOBALS): Define.
888 (prepare_target_option_nodes_for_pch): New prototype.
889 * target-globals.h (struct target_globals): Define even if
890 !SWITCHABLE_TARGET.
891 * tree.c (prepare_target_option_node_for_pch,
892 prepare_target_option_nodes_for_pch): New functions.
893 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
894 * config/i386/i386.c: Include target-globals.h.
895 (ix86_set_current_function): Instead of doing target_reinit
896 unconditionally, use save_target_globals_default_opts and
897 restore_target_globals.
898
899 2014-01-09 Richard Biener <rguenther@suse.de>
900
901 PR tree-optimization/59715
902 * tree-cfg.h (split_critical_edges): Declare.
903 * tree-cfg.c (split_critical_edges): Export.
904 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
905
906 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
907
908 * cfgexpand.c (expand_stack_vars): Optionally disable
909 asan stack protection.
910 (expand_used_vars): Likewise.
911 (partition_stack_vars): Likewise.
912 * asan.c (asan_emit_stack_protection): Optionally disable
913 after return stack usage.
914 (instrument_derefs): Optionally disable memory access instrumentation.
915 (instrument_builtin_call): Likewise.
916 (instrument_strlen_call): Likewise.
917 (asan_protect_global): Optionally disable global variables protection.
918 * doc/invoke.texi: Added doc for new options.
919 * params.def: Added new options.
920 * params.h: Likewise.
921
922 2014-01-09 Jakub Jelinek <jakub@redhat.com>
923
924 PR rtl-optimization/59724
925 * ifcvt.c (cond_exec_process_if_block): Don't call
926 flow_find_head_matching_sequence with 0 longest_match.
927 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
928 non-active insns if !stop_after.
929 (try_head_merge_bb): Revert 2014-01-07 changes.
930
931 2014-01-08 Jeff Law <law@redhat.com>
932
933 * ree.c (get_sub_rtx): New function, extracted from...
934 (merge_def_and_ext): Here.
935 (combine_reaching_defs): Use get_sub_rtx.
936
937 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
938
939 * cgraph.h (varpool_variable_node): Do not choke on null node.
940
941 2014-01-08 Catherine Moore <clm@codesourcery.com>
942
943 * config/mips/mips.md (simple_return): Attempt to use JRC
944 for microMIPS.
945 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
946
947 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
948
949 PR rtl-optimization/59137
950 * reorg.c (steal_delay_list_from_target): Call update_block for
951 elided insns.
952 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
953
954 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
955
956 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
957 two duplicate entries.
958
959 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
960
961 Revert:
962 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
963
964 * config/mips/mips.c (mips_truncated_op_cost): New function.
965 (mips_rtx_costs): Adjust test for BADDU.
966 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
967
968 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
969
970 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
971 (*baddu_si): ...this new pattern.
972
973 2014-01-08 Jakub Jelinek <jakub@redhat.com>
974
975 PR ipa/59722
976 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
977
978 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
979
980 PR middle-end/57748
981 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
982 inner_reference_p.
983 (expand_expr, expand_normal): Adjust.
984 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
985 inner_reference_p. Use inner_reference_p to expand inner references.
986 (store_expr): Adjust.
987 * cfgexpand.c (expand_call_stmt): Adjust.
988
989 2014-01-08 Rong Xu <xur@google.com>
990
991 * gcov-io.c (gcov_var): Move from gcov-io.h.
992 (gcov_position): Ditto.
993 (gcov_is_error): Ditto.
994 (gcov_rewrite): Ditto.
995 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
996 only part to libgcc/libgcov.h.
997
998 2014-01-08 Marek Polacek <polacek@redhat.com>
999
1000 PR middle-end/59669
1001 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
1002
1003 2014-01-08 Marek Polacek <polacek@redhat.com>
1004
1005 PR sanitizer/59667
1006 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
1007
1008 2014-01-08 Jakub Jelinek <jakub@redhat.com>
1009
1010 PR rtl-optimization/59649
1011 * stor-layout.c (get_mode_bounds): For BImode return
1012 0 and STORE_FLAG_VALUE.
1013
1014 2014-01-08 Richard Biener <rguenther@suse.de>
1015
1016 PR middle-end/59630
1017 * gimple.h (is_gimple_builtin_call): Remove.
1018 (gimple_builtin_call_types_compatible_p): New.
1019 (gimple_call_builtin_p): New overload.
1020 * gimple.c (is_gimple_builtin_call): Remove.
1021 (validate_call): Rename to ...
1022 (gimple_builtin_call_types_compatible_p): ... this and export. Also
1023 check return types.
1024 (validate_type): New static function.
1025 (gimple_call_builtin_p): New overload and adjust.
1026 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
1027 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
1028 (gimple_fold_stmt_to_constant_1): Likewise.
1029 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
1030
1031 2014-01-08 Richard Biener <rguenther@suse.de>
1032
1033 PR middle-end/59471
1034 * gimplify.c (gimplify_expr): Gimplify register-register type
1035 VIEW_CONVERT_EXPRs to separate stmts.
1036
1037 2014-01-07 Jeff Law <law@redhat.com>
1038
1039 PR middle-end/53623
1040 * ree.c (combine_set_extension): Handle case where source
1041 and destination registers in an extension insn are different.
1042 (combine_reaching_defs): Allow source and destination registers
1043 in extension to be different under limited circumstances.
1044 (add_removable_extension): Remove restriction that the
1045 source and destination registers in the extension are the same.
1046 (find_and_remove_re): Emit a copy from the extension's
1047 destination to its source after the defining insn if
1048 the source and destination registers are different.
1049
1050 PR middle-end/59285
1051 * ifcvt.c (merge_if_block): If we are merging a block with more than
1052 one successor with a block with no successors, remove any BARRIER
1053 after the second block.
1054
1055 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
1056
1057 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
1058
1059 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
1060
1061 PR target/59652
1062 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
1063 for 14-bit register offsets when INT14_OK_STRICT is false.
1064
1065 2014-01-07 Roland Stigge <stigge@antcom.de>
1066 Michael Meissner <meissner@linux.vnet.ibm.com>
1067
1068 PR 57386/target
1069 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
1070 Only check TFmode for SPE constants. Don't check TImode or TDmode.
1071
1072 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
1073
1074 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
1075 -mcpu.
1076
1077 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
1078
1079 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
1080 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
1081 rtx is const0_rtx or not.
1082
1083 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
1084
1085 PR target/58115
1086 * target-globals.c (save_target_globals): Remove this_fn_optab
1087 handling.
1088 * toplev.c: Include optabs.h.
1089 (target_reinit): Temporarily restore the global options if another
1090 set of options are in force.
1091
1092 2014-01-07 Jakub Jelinek <jakub@redhat.com>
1093
1094 PR rtl-optimization/58668
1095 * cfgcleanup.c (flow_find_cross_jump): Don't count
1096 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
1097 to determine what is counted.
1098 (flow_find_head_matching_sequence): Use active_insn_p to determine
1099 what is counted.
1100 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
1101 counting change.
1102 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
1103 determine what is counted.
1104
1105 PR tree-optimization/59643
1106 * tree-predcom.c (split_data_refs_to_components): If one dr is
1107 read and one write, determine_offset fails and the write isn't
1108 in the bad component, just put the read into the bad component.
1109
1110 2014-01-07 Mike Stump <mikestump@comcast.net>
1111 Jakub Jelinek <jakub@redhat.com>
1112
1113 PR pch/59436
1114 * tree-core.h (struct tree_optimization_option): Change optabs
1115 type from unsigned char * to void *.
1116 * optabs.c (init_tree_optimization_optabs): Adjust
1117 TREE_OPTIMIZATION_OPTABS initialization.
1118
1119 2014-01-06 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR target/59644
1122 * config/i386/i386.h (struct machine_function): Add
1123 no_drap_save_restore field.
1124 * config/i386/i386.c (ix86_save_reg): Use
1125 !cfun->machine->no_drap_save_restore instead of
1126 crtl->stack_realign_needed.
1127 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
1128 this function clears frame_pointer_needed. Set
1129 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
1130 and DRAP reg is needed.
1131
1132 2014-01-06 Marek Polacek <polacek@redhat.com>
1133
1134 PR c/57773
1135 * doc/implement-c.texi: Mention that other integer types are
1136 permitted as bit-field types in strictly conforming mode.
1137
1138 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
1139
1140 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
1141 is newly allocated.
1142
1143 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
1144
1145 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
1146
1147 2014-01-06 Martin Jambor <mjambor@suse.cz>
1148
1149 PR ipa/59008
1150 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
1151 to int.
1152 * ipa-prop.c (ipa_print_node_params): Fix indentation.
1153
1154 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
1155
1156 PR debug/59350
1157 PR debug/59510
1158 * var-tracking.c (add_stores): Preserve the value of the source even if
1159 we don't record the store.
1160
1161 2014-01-06 Terry Guo <terry.guo@arm.com>
1162
1163 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
1164
1165 2014-01-05 Iain Sandoe <iain@codesourcery.com>
1166
1167 PR bootstrap/59541
1168 * config/darwin.c (darwin_function_section): Adjust return values to
1169 correspond to optimisation changes made in r206070.
1170
1171 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
1172
1173 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
1174 from prefetch_block tune setting.
1175 (nocona_cost): Correct size of prefetch block to 64.
1176
1177 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
1178
1179 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
1180 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
1181 used to save the static chain register in the computation of the offset
1182 from which the FP registers need to be restored.
1183
1184 2014-01-04 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR tree-optimization/59519
1187 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
1188 ICE if get_current_def (current_new_name) is already non-NULL, as long
1189 as it is a phi result of some other phi in *new_exit_bb that has
1190 the same argument.
1191
1192 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
1193 or vmovdqu* for misaligned_operand.
1194 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
1195 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
1196 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
1197 aligned_mem for AVX512F masked aligned load and store builtins and for
1198 non-temporal moves.
1199
1200 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
1201
1202 PR tree-optimization/59651
1203 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1204 Address range for negative step should be added by TYPE_SIZE_UNIT.
1205
1206 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
1207
1208 * config/m68k/m68k.c (handle_move_double): Handle pushes with
1209 overlapping registers also for registers other than the stack pointer.
1210
1211 2014-01-03 Marek Polacek <polacek@redhat.com>
1212
1213 PR other/59661
1214 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
1215 __builtin_FILE.
1216
1217 2014-01-03 Jakub Jelinek <jakub@redhat.com>
1218
1219 PR target/59625
1220 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
1221 asm goto as jump.
1222
1223 * config/i386/i386.md (MODE_SIZE): New mode attribute.
1224 (push splitter): Use <P:MODE_SIZE> instead of
1225 GET_MODE_SIZE (<P:MODE>mode).
1226 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
1227 (mov -1, reg peephole2): Likewise.
1228 * config/i386/sse.md (*mov<mode>_internal,
1229 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
1230 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
1231 *<code><mode>3, *andnot<mode>3<mask_name>,
1232 <mask_codefor><code><mode>3<mask_name>): Likewise.
1233 * config/i386/subst.md (mask_mode512bit_condition,
1234 sd_mask_mode512bit_condition): Likewise.
1235
1236 2014-01-02 Xinliang David Li <davidxl@google.com>
1237
1238 PR tree-optimization/59303
1239 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
1240 (dump_predicates): Better output format.
1241 (pred_equal_p): New function.
1242 (is_neq_relop_p): Ditto.
1243 (is_neq_zero_form_p): Ditto.
1244 (pred_expr_equal_p): Ditto.
1245 (pred_neg_p): Ditto.
1246 (simplify_pred): Ditto.
1247 (simplify_preds_2): Ditto.
1248 (simplify_preds_3): Ditto.
1249 (simplify_preds_4): Ditto.
1250 (simplify_preds): Ditto.
1251 (push_pred): Ditto.
1252 (push_to_worklist): Ditto.
1253 (get_pred_info_from_cmp): Ditto.
1254 (is_degenerated_phi): Ditto.
1255 (normalize_one_pred_1): Ditto.
1256 (normalize_one_pred): Ditto.
1257 (normalize_one_pred_chain): Ditto.
1258 (normalize_preds): Ditto.
1259 (normalize_cond_1): Remove function.
1260 (normalize_cond): Ditto.
1261 (is_gcond_subset_of): Ditto.
1262 (is_subset_of_any): Ditto.
1263 (is_or_set_subset_of): Ditto.
1264 (is_and_set_subset_of): Ditto.
1265 (is_norm_cond_subset_of): Ditto.
1266 (pred_chain_length_cmp): Ditto.
1267 (convert_control_dep_chain_into_preds): Type change.
1268 (find_predicates): Ditto.
1269 (find_def_preds): Ditto.
1270 (destroy_predicates_vecs): Ditto.
1271 (find_matching_predicates_in_rest_chains): Ditto.
1272 (use_pred_not_overlap_with_undef_path_pred): Ditto.
1273 (is_pred_expr_subset): Ditto.
1274 (is_pred_chain_subset_of): Ditto.
1275 (is_included_in): Ditto.
1276 (is_superset_of): Ditto.
1277
1278 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1279
1280 Update copyright years.
1281
1282 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1283
1284 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
1285 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
1286 config/arc/arc.md, config/arc/arc.opt,
1287 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
1288 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
1289 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
1290 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
1291 config/linux-protos.h, config/linux.c, config/winnt-c.c,
1292 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
1293 vtable-verify.c, vtable-verify.h: Use the standard form for the
1294 copyright notice.
1295
1296 2014-01-02 Tobias Burnus <burnus@net-b.de>
1297
1298 * gcc.c (process_command): Update copyright notice dates.
1299 * gcov-dump.c: Ditto.
1300 * gcov.c: Ditto.
1301 * doc/cpp.texi: Bump @copying's copyright year.
1302 * doc/cppinternals.texi: Ditto.
1303 * doc/gcc.texi: Ditto.
1304 * doc/gccint.texi: Ditto.
1305 * doc/gcov.texi: Ditto.
1306 * doc/install.texi: Ditto.
1307 * doc/invoke.texi: Ditto.
1308
1309 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1310
1311 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
1312
1313 2014-01-01 Jakub Jelinek <jakub@redhat.com>
1314
1315 * config/i386/sse.md (*mov<mode>_internal): Guard
1316 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
1317
1318 PR rtl-optimization/59647
1319 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
1320 new_rtx into UNSIGNED_FLOAT rtxes.
1321 \f
1322 Copyright (C) 2014 Free Software Foundation, Inc.
1323
1324 Copying and distribution of this file, with or without modification,
1325 are permitted in any medium without royalty provided the copyright
1326 notice and this notice are preserved.